]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - ld/configure
Fix regeneration of ld configure and makefiles
[thirdparty/binutils-gdb.git] / ld / configure
CommitLineData
252b5132 1#! /bin/sh
252b5132 2# Guess values for system-dependent variables and create Makefiles.
631ec08c 3# Generated by GNU Autoconf 2.69 for ld 2.39.50.
d0ac1c44
SM
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
81ecdfbb 7#
252b5132
RH
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
81ecdfbb
RW
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
42ecbf5e 14
81ecdfbb
RW
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
42ecbf5e
DJ
18 emulate sh
19 NULLCMD=:
81ecdfbb 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
42ecbf5e
DJ
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
42ecbf5e 31fi
42ecbf5e 32
81ecdfbb
RW
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
42ecbf5e
DJ
79fi
80
81
81ecdfbb
RW
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
d0ac1c44 90as_myself=
81ecdfbb
RW
91case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100IFS=$as_save_IFS
101
102 ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107 as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there. '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
42ecbf5e
DJ
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
81ecdfbb
RW
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
d0ac1c44
SM
135# Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
81ecdfbb
RW
160if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174esac
175fi
176"
177 as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191 exitcode=1; echo positional parameters were not saved.
192fi
d0ac1c44
SM
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
81ecdfbb
RW
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
3725885a
RW
199test \$(( 1 + 1 )) = 2 || exit 1
200
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
81ecdfbb
RW
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210else
211 as_have_required=no
212fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217as_found=false
218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
42ecbf5e 219do
81ecdfbb
RW
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
224 /*)
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
233fi
234fi
235 done;;
236 esac
237 as_found=false
238done
239$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242fi; }
243IFS=$as_save_IFS
244
245
246 if test "x$CONFIG_SHELL" != x; then :
d0ac1c44
SM
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249# neutralization value for shells without unset; and this also
250# works around shells that cannot unset nonexistent variables.
251# Preserve -v and -x to the replacement shell.
252BASH_ENV=/dev/null
253ENV=/dev/null
254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260esac
261exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262# Admittedly, this is quite paranoid, since all the known shells bail
263# out after a failed `exec'.
264$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265exit 255
81ecdfbb
RW
266fi
267
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
42ecbf5e 274 else
81ecdfbb
RW
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276$0: including any error possibly output before this
277$0: message. Then install a modern shell, or manually run
278$0: the script under such a shell if you do have one."
42ecbf5e 279 fi
81ecdfbb
RW
280 exit 1
281fi
282fi
283fi
284SHELL=${CONFIG_SHELL-/bin/sh}
285export SHELL
286# Unset more variables known to interfere with behavior of common tools.
287CLICOLOR_FORCE= GREP_OPTIONS=
288unset CLICOLOR_FORCE GREP_OPTIONS
289
290## --------------------- ##
291## M4sh Shell Functions. ##
292## --------------------- ##
293# as_fn_unset VAR
294# ---------------
295# Portably unset VAR.
296as_fn_unset ()
297{
298 { eval $1=; unset $1;}
299}
300as_unset=as_fn_unset
301
302# as_fn_set_status STATUS
303# -----------------------
304# Set $? to STATUS, without forking.
305as_fn_set_status ()
306{
307 return $1
308} # as_fn_set_status
309
310# as_fn_exit STATUS
311# -----------------
312# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313as_fn_exit ()
314{
315 set +e
316 as_fn_set_status $1
317 exit $1
318} # as_fn_exit
319
320# as_fn_mkdir_p
321# -------------
322# Create "$as_dir" as a directory, including parents if necessary.
323as_fn_mkdir_p ()
324{
325
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342$as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
d0ac1c44 363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
81ecdfbb
RW
364
365
366} # as_fn_mkdir_p
d0ac1c44
SM
367
368# as_fn_executable_p FILE
369# -----------------------
370# Test if FILE is an executable regular file.
371as_fn_executable_p ()
372{
373 test -f "$1" && test -x "$1"
374} # as_fn_executable_p
81ecdfbb
RW
375# as_fn_append VAR VALUE
376# ----------------------
377# Append the text in VALUE to the end of the definition contained in VAR. Take
378# advantage of any shell optimizations that allow amortized linear growth over
379# repeated appends, instead of the typical quadratic growth present in naive
380# implementations.
381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
383 {
384 eval $1+=\$2
385 }'
386else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391fi # as_fn_append
392
393# as_fn_arith ARG...
394# ------------------
395# Perform arithmetic evaluation on the ARGs, and store the result in the
396# global $as_val. Take advantage of shells that can avoid forks. The arguments
397# must be portable across $(()) and expr.
398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408fi # as_fn_arith
409
410
d0ac1c44
SM
411# as_fn_error STATUS ERROR [LINENO LOG_FD]
412# ----------------------------------------
81ecdfbb
RW
413# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
d0ac1c44 415# script with STATUS, using 1 if that was 0.
81ecdfbb
RW
416as_fn_error ()
417{
d0ac1c44
SM
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
81ecdfbb 422 fi
d0ac1c44 423 $as_echo "$as_me: error: $2" >&2
81ecdfbb
RW
424 as_fn_exit $as_status
425} # as_fn_error
42ecbf5e 426
81ecdfbb
RW
427if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
42ecbf5e
DJ
429 as_expr=expr
430else
431 as_expr=false
432fi
433
81ecdfbb 434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
42ecbf5e
DJ
435 as_basename=basename
436else
437 as_basename=false
438fi
439
81ecdfbb
RW
440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442else
443 as_dirname=false
444fi
42ecbf5e 445
81ecdfbb 446as_me=`$as_basename -- "$0" ||
42ecbf5e
DJ
447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450$as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\/\)$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\).*/{
460 s//\1/
461 q
462 }
463 s/.*/./; q'`
42ecbf5e 464
42ecbf5e
DJ
465# Avoid depending upon Character Ranges.
466as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469as_cr_digits='0123456789'
470as_cr_alnum=$as_cr_Letters$as_cr_digits
471
42ecbf5e 472
81ecdfbb
RW
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
479 p
480 /[$]LINENO/=
481 ' <$as_myself |
42ecbf5e 482 sed '
81ecdfbb
RW
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
42ecbf5e 487 N
81ecdfbb
RW
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
42ecbf5e 490 t loop
81ecdfbb 491 s/-\n.*//
42ecbf5e 492 ' >$as_me.lineno &&
81ecdfbb
RW
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
42ecbf5e 495
d0ac1c44
SM
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
42ecbf5e
DJ
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
81ecdfbb
RW
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
42ecbf5e
DJ
504 # Exit status is that of the last command.
505 exit
506}
507
81ecdfbb
RW
508ECHO_C= ECHO_N= ECHO_T=
509case `echo -n x` in #(((((
510-n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
517*)
518 ECHO_N='-n';;
42ecbf5e
DJ
519esac
520
81ecdfbb
RW
521rm -f conf$$ conf$$.exe conf$$.file
522if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
42ecbf5e 524else
81ecdfbb
RW
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
42ecbf5e 527fi
81ecdfbb
RW
528if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
42ecbf5e 530 as_ln_s='ln -s'
81ecdfbb
RW
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
d0ac1c44 534 # In both cases, we have to default to `cp -pR'.
81ecdfbb 535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d0ac1c44 536 as_ln_s='cp -pR'
81ecdfbb
RW
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
d0ac1c44 540 as_ln_s='cp -pR'
42ecbf5e 541 fi
42ecbf5e 542else
d0ac1c44 543 as_ln_s='cp -pR'
42ecbf5e 544fi
81ecdfbb
RW
545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546rmdir conf$$.dir 2>/dev/null
42ecbf5e
DJ
547
548if mkdir -p . 2>/dev/null; then
81ecdfbb 549 as_mkdir_p='mkdir -p "$as_dir"'
42ecbf5e
DJ
550else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553fi
554
d0ac1c44
SM
555as_test_x='test -x'
556as_executable_p=as_fn_executable_p
42ecbf5e
DJ
557
558# Sed expression to map a string onto a valid CPP name.
559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561# Sed expression to map a string onto a valid variable name.
562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
d7040cdb
SE
564SHELL=${CONFIG_SHELL-/bin/sh}
565
d7040cdb 566
d0ac1c44
SM
567test -n "$DJDIR" || exec 7<&0 </dev/null
568exec 6>&1
81ecdfbb 569
42ecbf5e 570# Name of the host.
d0ac1c44 571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
42ecbf5e
DJ
572# so uname gets run too.
573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
252b5132 574
42ecbf5e
DJ
575#
576# Initializations.
577#
252b5132 578ac_default_prefix=/usr/local
81ecdfbb 579ac_clean_files=
42ecbf5e 580ac_config_libobj_dir=.
81ecdfbb 581LIBOBJS=
42ecbf5e
DJ
582cross_compiling=no
583subdirs=
584MFLAGS=
585MAKEFLAGS=
42ecbf5e
DJ
586
587# Identity of this package.
2e98a7bd
AM
588PACKAGE_NAME='ld'
589PACKAGE_TARNAME='ld'
631ec08c
NC
590PACKAGE_VERSION='2.39.50'
591PACKAGE_STRING='ld 2.39.50'
2e98a7bd
AM
592PACKAGE_BUGREPORT=''
593PACKAGE_URL=''
42ecbf5e
DJ
594
595ac_unique_file="ldmain.c"
596# Factoring default headers for most tests.
597ac_includes_default="\
598#include <stdio.h>
81ecdfbb 599#ifdef HAVE_SYS_TYPES_H
42ecbf5e
DJ
600# include <sys/types.h>
601#endif
81ecdfbb 602#ifdef HAVE_SYS_STAT_H
42ecbf5e
DJ
603# include <sys/stat.h>
604#endif
81ecdfbb 605#ifdef STDC_HEADERS
42ecbf5e
DJ
606# include <stdlib.h>
607# include <stddef.h>
608#else
81ecdfbb 609# ifdef HAVE_STDLIB_H
42ecbf5e
DJ
610# include <stdlib.h>
611# endif
612#endif
81ecdfbb
RW
613#ifdef HAVE_STRING_H
614# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
42ecbf5e
DJ
615# include <memory.h>
616# endif
617# include <string.h>
618#endif
81ecdfbb 619#ifdef HAVE_STRINGS_H
42ecbf5e
DJ
620# include <strings.h>
621#endif
81ecdfbb 622#ifdef HAVE_INTTYPES_H
42ecbf5e 623# include <inttypes.h>
42ecbf5e 624#endif
81ecdfbb
RW
625#ifdef HAVE_STDINT_H
626# include <stdint.h>
627#endif
628#ifdef HAVE_UNISTD_H
42ecbf5e
DJ
629# include <unistd.h>
630#endif"
631
d0ac1c44 632ac_header_list=
81ecdfbb
RW
633ac_subst_vars='am__EXEEXT_FALSE
634am__EXEEXT_TRUE
635LTLIBOBJS
636LIBOBJS
87279e3c 637TESTCTFLIB
81ecdfbb
RW
638TESTBFDLIB
639EMULATION_LIBPATH
640LIB_PATH
641EMUL_EXTRA_OFILES
642EMULATION_OFILES
50ff67e6 643TDIRS
81ecdfbb 644EMUL
c58212ea
L
645elf_plt_unwind_list_options
646elf_shlib_list_options
647elf_list_options
81ecdfbb 648STRINGIFY
1ff6de03
NA
649zlibinc
650zlibdir
81ecdfbb 651NATIVE_LIB_DIRS
81ecdfbb
RW
652HDEFINES
653do_compare
654GENINSRC_NEVER_FALSE
655GENINSRC_NEVER_TRUE
81ecdfbb
RW
656LEXLIB
657LEX_OUTPUT_ROOT
658LEX
659YFLAGS
660YACC
661MSGMERGE
662MSGFMT
663MKINSTALLDIRS
664CATOBJEXT
665GENCAT
666INSTOBJEXT
667DATADIRNAME
668CATALOGS
669POSUB
670GMSGFMT
671XGETTEXT
672INCINTL
673LIBINTL_DEP
674LIBINTL
675USE_NLS
6757cf57 676WARN_WRITE_STRINGS
b879806f 677NO_WERROR
c5da1932 678WARN_CFLAGS_FOR_BUILD
b879806f 679WARN_CFLAGS
9e2bb0cb
LB
680JANSSON_LIBS
681JANSSON_CFLAGS
682PKG_CONFIG_LIBDIR
683PKG_CONFIG_PATH
684PKG_CONFIG
7cdfc346 685enable_libctf
094e34f2
NA
686ENABLE_LIBCTF_FALSE
687ENABLE_LIBCTF_TRUE
c774eab1 688enable_initfini_array
b879806f
AM
689installed_linker
690install_as_default
691TARGET_SYSTEM_ROOT_DEFINE
692TARGET_SYSTEM_ROOT
693use_sysroot
1d5269c9
MF
694ENABLE_BFD_64_BIT_FALSE
695ENABLE_BFD_64_BIT_TRUE
c8693053 696LARGEFILE_CPPFLAGS
3cb62297 697CXXCPP
81ecdfbb
RW
698OTOOL64
699OTOOL
700LIPO
701NMEDIT
702DSYMUTIL
81ecdfbb
RW
703RANLIB
704AR
705OBJDUMP
706LN_S
707NM
708ac_ct_DUMPBIN
709DUMPBIN
710LD
711FGREP
712SED
713LIBTOOL
b879806f 714EGREP
b879806f 715CPP
68880f31 716GREP
3cb62297
L
717am__fastdepCXX_FALSE
718am__fastdepCXX_TRUE
719CXXDEPMODE
720ac_ct_CXX
721CXXFLAGS
722CXX
81ecdfbb
RW
723am__fastdepCC_FALSE
724am__fastdepCC_TRUE
725CCDEPMODE
6eb7d830 726am__nodep
81ecdfbb
RW
727AMDEPBACKSLASH
728AMDEP_FALSE
729AMDEP_TRUE
5bbe6ec5 730am__quote
81ecdfbb
RW
731am__include
732DEPDIR
c774eab1
AM
733OBJEXT
734EXEEXT
735ac_ct_CC
736CPPFLAGS
737LDFLAGS
738CFLAGS
739CC
740MAINT
741MAINTAINER_MODE_FALSE
742MAINTAINER_MODE_TRUE
743AM_BACKSLASH
744AM_DEFAULT_VERBOSITY
745AM_DEFAULT_V
746AM_V
81ecdfbb
RW
747am__untar
748am__tar
749AMTAR
750am__leading_dot
751SET_MAKE
752AWK
753mkdir_p
754MKDIR_P
755INSTALL_STRIP_PROGRAM
756STRIP
757install_sh
758MAKEINFO
759AUTOHEADER
760AUTOMAKE
761AUTOCONF
762ACLOCAL
763VERSION
764PACKAGE
765CYGPATH_W
766am__isrc
767INSTALL_DATA
768INSTALL_SCRIPT
769INSTALL_PROGRAM
81ecdfbb
RW
770target_os
771target_vendor
772target_cpu
773target
774host_os
775host_vendor
776host_cpu
777host
778build_os
779build_vendor
780build_cpu
781build
782target_alias
783host_alias
784build_alias
785LIBS
786ECHO_T
787ECHO_N
788ECHO_C
789DEFS
790mandir
791localedir
792libdir
793psdir
794pdfdir
795dvidir
796htmldir
797infodir
798docdir
799oldincludedir
800includedir
801localstatedir
802sharedstatedir
803sysconfdir
804datadir
805datarootdir
806libexecdir
807sbindir
808bindir
809program_transform_name
810prefix
811exec_prefix
812PACKAGE_URL
813PACKAGE_BUGREPORT
814PACKAGE_STRING
815PACKAGE_VERSION
816PACKAGE_TARNAME
817PACKAGE_NAME
818PATH_SEPARATOR
5bbe6ec5 819SHELL'
50ff67e6 820ac_subst_files=''
81ecdfbb
RW
821ac_user_opts='
822enable_option_checking
d0ac1c44 823enable_silent_rules
64ac50ac 824enable_maintainer_mode
c774eab1 825enable_dependency_tracking
b879806f
AM
826enable_shared
827enable_static
828with_pic
829enable_fast_install
830with_gnu_ld
831enable_libtool_lock
832enable_plugins
833enable_largefile
43e05cd4 834enable_checking
81ecdfbb
RW
835with_lib_path
836enable_targets
837enable_64_bit_bfd
838with_sysroot
4fda8867 839enable_gold
81ecdfbb 840enable_got
6c3bc0f8 841enable_compressed_debug_sections
6734f10a 842enable_new_dtags
647e4d46 843enable_relro
b32632c4 844enable_textrel_check
f6aec96d 845enable_separate_code
ba951afb
NC
846enable_warn_execstack
847enable_warn_rwx_segments
848enable_default_execstack
23ae20f5 849enable_error_handling_script
2760f24c 850enable_default_hash_style
c774eab1 851enable_initfini_array
094e34f2 852enable_libctf
9e2bb0cb 853enable_jansson
81ecdfbb
RW
854enable_werror
855enable_build_warnings
81ecdfbb 856enable_nls
1ff6de03 857with_system_zlib
81ecdfbb
RW
858'
859 ac_precious_vars='build_alias
860host_alias
861target_alias
862CC
863CFLAGS
864LDFLAGS
865LIBS
866CPPFLAGS
3cb62297
L
867CXX
868CXXFLAGS
869CCC
b879806f 870CPP
3cb62297 871CXXCPP
9e2bb0cb
LB
872PKG_CONFIG
873PKG_CONFIG_PATH
874PKG_CONFIG_LIBDIR
875JANSSON_CFLAGS
876JANSSON_LIBS
81ecdfbb
RW
877YACC
878YFLAGS'
879
252b5132
RH
880
881# Initialize some variables set by options.
42ecbf5e
DJ
882ac_init_help=
883ac_init_version=false
81ecdfbb
RW
884ac_unrecognized_opts=
885ac_unrecognized_sep=
252b5132
RH
886# The variables have the same names as the options, with
887# dashes changed to underlines.
42ecbf5e 888cache_file=/dev/null
252b5132 889exec_prefix=NONE
252b5132 890no_create=
252b5132
RH
891no_recursion=
892prefix=NONE
893program_prefix=NONE
894program_suffix=NONE
895program_transform_name=s,x,x,
896silent=
897site=
898srcdir=
252b5132
RH
899verbose=
900x_includes=NONE
901x_libraries=NONE
42ecbf5e
DJ
902
903# Installation directory options.
904# These are left unexpanded so users can "make install exec_prefix=/foo"
905# and all the variables that are supposed to be based on exec_prefix
906# by default will actually change.
907# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 908# (The list follows the same order as the GNU Coding Standards.)
252b5132
RH
909bindir='${exec_prefix}/bin'
910sbindir='${exec_prefix}/sbin'
911libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
912datarootdir='${prefix}/share'
913datadir='${datarootdir}'
252b5132
RH
914sysconfdir='${prefix}/etc'
915sharedstatedir='${prefix}/com'
916localstatedir='${prefix}/var'
252b5132
RH
917includedir='${prefix}/include'
918oldincludedir='/usr/include'
2e98a7bd 919docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
81ecdfbb
RW
920infodir='${datarootdir}/info'
921htmldir='${docdir}'
922dvidir='${docdir}'
923pdfdir='${docdir}'
924psdir='${docdir}'
925libdir='${exec_prefix}/lib'
926localedir='${datarootdir}/locale'
927mandir='${datarootdir}/man'
252b5132 928
252b5132 929ac_prev=
81ecdfbb 930ac_dashdash=
252b5132
RH
931for ac_option
932do
252b5132
RH
933 # If the previous option needs an argument, assign it.
934 if test -n "$ac_prev"; then
81ecdfbb 935 eval $ac_prev=\$ac_option
252b5132
RH
936 ac_prev=
937 continue
938 fi
939
81ecdfbb 940 case $ac_option in
d0ac1c44
SM
941 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
942 *=) ac_optarg= ;;
943 *) ac_optarg=yes ;;
81ecdfbb 944 esac
252b5132
RH
945
946 # Accept the important Cygnus configure options, so we can diagnose typos.
947
81ecdfbb
RW
948 case $ac_dashdash$ac_option in
949 --)
950 ac_dashdash=yes ;;
252b5132
RH
951
952 -bindir | --bindir | --bindi | --bind | --bin | --bi)
953 ac_prev=bindir ;;
954 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
42ecbf5e 955 bindir=$ac_optarg ;;
252b5132
RH
956
957 -build | --build | --buil | --bui | --bu)
42ecbf5e 958 ac_prev=build_alias ;;
252b5132 959 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
42ecbf5e 960 build_alias=$ac_optarg ;;
252b5132
RH
961
962 -cache-file | --cache-file | --cache-fil | --cache-fi \
963 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
964 ac_prev=cache_file ;;
965 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
966 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
42ecbf5e
DJ
967 cache_file=$ac_optarg ;;
968
969 --config-cache | -C)
970 cache_file=config.cache ;;
252b5132 971
81ecdfbb 972 -datadir | --datadir | --datadi | --datad)
252b5132 973 ac_prev=datadir ;;
81ecdfbb 974 -datadir=* | --datadir=* | --datadi=* | --datad=*)
42ecbf5e 975 datadir=$ac_optarg ;;
252b5132 976
81ecdfbb
RW
977 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
978 | --dataroo | --dataro | --datar)
979 ac_prev=datarootdir ;;
980 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
981 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
982 datarootdir=$ac_optarg ;;
983
252b5132 984 -disable-* | --disable-*)
81ecdfbb 985 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
252b5132 986 # Reject names that are not valid shell variable names.
81ecdfbb 987 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 988 as_fn_error $? "invalid feature name: $ac_useropt"
81ecdfbb
RW
989 ac_useropt_orig=$ac_useropt
990 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
991 case $ac_user_opts in
992 *"
993"enable_$ac_useropt"
994"*) ;;
995 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
996 ac_unrecognized_sep=', ';;
997 esac
998 eval enable_$ac_useropt=no ;;
999
1000 -docdir | --docdir | --docdi | --doc | --do)
1001 ac_prev=docdir ;;
1002 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1003 docdir=$ac_optarg ;;
1004
1005 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1006 ac_prev=dvidir ;;
1007 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1008 dvidir=$ac_optarg ;;
252b5132
RH
1009
1010 -enable-* | --enable-*)
81ecdfbb 1011 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
252b5132 1012 # Reject names that are not valid shell variable names.
81ecdfbb 1013 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 1014 as_fn_error $? "invalid feature name: $ac_useropt"
81ecdfbb
RW
1015 ac_useropt_orig=$ac_useropt
1016 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1017 case $ac_user_opts in
1018 *"
1019"enable_$ac_useropt"
1020"*) ;;
1021 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1022 ac_unrecognized_sep=', ';;
252b5132 1023 esac
81ecdfbb 1024 eval enable_$ac_useropt=\$ac_optarg ;;
252b5132
RH
1025
1026 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1027 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1028 | --exec | --exe | --ex)
1029 ac_prev=exec_prefix ;;
1030 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1031 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1032 | --exec=* | --exe=* | --ex=*)
42ecbf5e 1033 exec_prefix=$ac_optarg ;;
252b5132
RH
1034
1035 -gas | --gas | --ga | --g)
1036 # Obsolete; use --with-gas.
1037 with_gas=yes ;;
1038
42ecbf5e
DJ
1039 -help | --help | --hel | --he | -h)
1040 ac_init_help=long ;;
1041 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1042 ac_init_help=recursive ;;
1043 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1044 ac_init_help=short ;;
252b5132
RH
1045
1046 -host | --host | --hos | --ho)
42ecbf5e 1047 ac_prev=host_alias ;;
252b5132 1048 -host=* | --host=* | --hos=* | --ho=*)
42ecbf5e 1049 host_alias=$ac_optarg ;;
252b5132 1050
81ecdfbb
RW
1051 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1052 ac_prev=htmldir ;;
1053 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1054 | --ht=*)
1055 htmldir=$ac_optarg ;;
1056
252b5132
RH
1057 -includedir | --includedir | --includedi | --included | --include \
1058 | --includ | --inclu | --incl | --inc)
1059 ac_prev=includedir ;;
1060 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1061 | --includ=* | --inclu=* | --incl=* | --inc=*)
42ecbf5e 1062 includedir=$ac_optarg ;;
252b5132
RH
1063
1064 -infodir | --infodir | --infodi | --infod | --info | --inf)
1065 ac_prev=infodir ;;
1066 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
42ecbf5e 1067 infodir=$ac_optarg ;;
252b5132
RH
1068
1069 -libdir | --libdir | --libdi | --libd)
1070 ac_prev=libdir ;;
1071 -libdir=* | --libdir=* | --libdi=* | --libd=*)
42ecbf5e 1072 libdir=$ac_optarg ;;
252b5132
RH
1073
1074 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1075 | --libexe | --libex | --libe)
1076 ac_prev=libexecdir ;;
1077 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1078 | --libexe=* | --libex=* | --libe=*)
42ecbf5e 1079 libexecdir=$ac_optarg ;;
252b5132 1080
81ecdfbb
RW
1081 -localedir | --localedir | --localedi | --localed | --locale)
1082 ac_prev=localedir ;;
1083 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1084 localedir=$ac_optarg ;;
1085
252b5132 1086 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 1087 | --localstate | --localstat | --localsta | --localst | --locals)
252b5132
RH
1088 ac_prev=localstatedir ;;
1089 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 1090 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
42ecbf5e 1091 localstatedir=$ac_optarg ;;
252b5132
RH
1092
1093 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1094 ac_prev=mandir ;;
1095 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
42ecbf5e 1096 mandir=$ac_optarg ;;
252b5132
RH
1097
1098 -nfp | --nfp | --nf)
1099 # Obsolete; use --without-fp.
1100 with_fp=no ;;
1101
1102 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
42ecbf5e 1103 | --no-cr | --no-c | -n)
252b5132
RH
1104 no_create=yes ;;
1105
1106 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1107 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1108 no_recursion=yes ;;
1109
1110 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1111 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1112 | --oldin | --oldi | --old | --ol | --o)
1113 ac_prev=oldincludedir ;;
1114 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1115 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1116 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
42ecbf5e 1117 oldincludedir=$ac_optarg ;;
252b5132
RH
1118
1119 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1120 ac_prev=prefix ;;
1121 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
42ecbf5e 1122 prefix=$ac_optarg ;;
252b5132
RH
1123
1124 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1125 | --program-pre | --program-pr | --program-p)
1126 ac_prev=program_prefix ;;
1127 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1128 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
42ecbf5e 1129 program_prefix=$ac_optarg ;;
252b5132
RH
1130
1131 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1132 | --program-suf | --program-su | --program-s)
1133 ac_prev=program_suffix ;;
1134 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1135 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
42ecbf5e 1136 program_suffix=$ac_optarg ;;
252b5132
RH
1137
1138 -program-transform-name | --program-transform-name \
1139 | --program-transform-nam | --program-transform-na \
1140 | --program-transform-n | --program-transform- \
1141 | --program-transform | --program-transfor \
1142 | --program-transfo | --program-transf \
1143 | --program-trans | --program-tran \
1144 | --progr-tra | --program-tr | --program-t)
1145 ac_prev=program_transform_name ;;
1146 -program-transform-name=* | --program-transform-name=* \
1147 | --program-transform-nam=* | --program-transform-na=* \
1148 | --program-transform-n=* | --program-transform-=* \
1149 | --program-transform=* | --program-transfor=* \
1150 | --program-transfo=* | --program-transf=* \
1151 | --program-trans=* | --program-tran=* \
1152 | --progr-tra=* | --program-tr=* | --program-t=*)
42ecbf5e 1153 program_transform_name=$ac_optarg ;;
252b5132 1154
81ecdfbb
RW
1155 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1156 ac_prev=pdfdir ;;
1157 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1158 pdfdir=$ac_optarg ;;
1159
1160 -psdir | --psdir | --psdi | --psd | --ps)
1161 ac_prev=psdir ;;
1162 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1163 psdir=$ac_optarg ;;
1164
252b5132
RH
1165 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1166 | -silent | --silent | --silen | --sile | --sil)
1167 silent=yes ;;
1168
1169 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1170 ac_prev=sbindir ;;
1171 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1172 | --sbi=* | --sb=*)
42ecbf5e 1173 sbindir=$ac_optarg ;;
252b5132
RH
1174
1175 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1176 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1177 | --sharedst | --shareds | --shared | --share | --shar \
1178 | --sha | --sh)
1179 ac_prev=sharedstatedir ;;
1180 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1181 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1182 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1183 | --sha=* | --sh=*)
42ecbf5e 1184 sharedstatedir=$ac_optarg ;;
252b5132
RH
1185
1186 -site | --site | --sit)
1187 ac_prev=site ;;
1188 -site=* | --site=* | --sit=*)
42ecbf5e 1189 site=$ac_optarg ;;
85fbca6a 1190
252b5132
RH
1191 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1192 ac_prev=srcdir ;;
1193 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
42ecbf5e 1194 srcdir=$ac_optarg ;;
252b5132
RH
1195
1196 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1197 | --syscon | --sysco | --sysc | --sys | --sy)
1198 ac_prev=sysconfdir ;;
1199 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1200 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
42ecbf5e 1201 sysconfdir=$ac_optarg ;;
252b5132
RH
1202
1203 -target | --target | --targe | --targ | --tar | --ta | --t)
42ecbf5e 1204 ac_prev=target_alias ;;
252b5132 1205 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
42ecbf5e 1206 target_alias=$ac_optarg ;;
252b5132
RH
1207
1208 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1209 verbose=yes ;;
1210
42ecbf5e
DJ
1211 -version | --version | --versio | --versi | --vers | -V)
1212 ac_init_version=: ;;
252b5132
RH
1213
1214 -with-* | --with-*)
81ecdfbb 1215 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
252b5132 1216 # Reject names that are not valid shell variable names.
81ecdfbb 1217 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 1218 as_fn_error $? "invalid package name: $ac_useropt"
81ecdfbb
RW
1219 ac_useropt_orig=$ac_useropt
1220 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1221 case $ac_user_opts in
1222 *"
1223"with_$ac_useropt"
1224"*) ;;
1225 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1226 ac_unrecognized_sep=', ';;
252b5132 1227 esac
81ecdfbb 1228 eval with_$ac_useropt=\$ac_optarg ;;
252b5132
RH
1229
1230 -without-* | --without-*)
81ecdfbb 1231 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
252b5132 1232 # Reject names that are not valid shell variable names.
81ecdfbb 1233 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 1234 as_fn_error $? "invalid package name: $ac_useropt"
81ecdfbb
RW
1235 ac_useropt_orig=$ac_useropt
1236 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1237 case $ac_user_opts in
1238 *"
1239"with_$ac_useropt"
1240"*) ;;
1241 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1242 ac_unrecognized_sep=', ';;
1243 esac
1244 eval with_$ac_useropt=no ;;
252b5132
RH
1245
1246 --x)
1247 # Obsolete; use --with-x.
1248 with_x=yes ;;
1249
1250 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1251 | --x-incl | --x-inc | --x-in | --x-i)
1252 ac_prev=x_includes ;;
1253 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1254 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
42ecbf5e 1255 x_includes=$ac_optarg ;;
252b5132
RH
1256
1257 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1258 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1259 ac_prev=x_libraries ;;
1260 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1261 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
42ecbf5e 1262 x_libraries=$ac_optarg ;;
252b5132 1263
d0ac1c44
SM
1264 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1265Try \`$0 --help' for more information"
252b5132
RH
1266 ;;
1267
42ecbf5e
DJ
1268 *=*)
1269 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1270 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1271 case $ac_envvar in #(
1272 '' | [0-9]* | *[!_$as_cr_alnum]* )
d0ac1c44 1273 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
81ecdfbb
RW
1274 esac
1275 eval $ac_envvar=\$ac_optarg
42ecbf5e
DJ
1276 export $ac_envvar ;;
1277
252b5132 1278 *)
42ecbf5e 1279 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1280 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
42ecbf5e 1281 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1282 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
d0ac1c44 1283 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
252b5132
RH
1284 ;;
1285
1286 esac
1287done
1288
1289if test -n "$ac_prev"; then
42ecbf5e 1290 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
d0ac1c44 1291 as_fn_error $? "missing argument to $ac_option"
252b5132 1292fi
252b5132 1293
81ecdfbb
RW
1294if test -n "$ac_unrecognized_opts"; then
1295 case $enable_option_checking in
1296 no) ;;
d0ac1c44 1297 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
81ecdfbb 1298 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
42ecbf5e 1299 esac
81ecdfbb 1300fi
252b5132 1301
81ecdfbb
RW
1302# Check all directory arguments for consistency.
1303for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1304 datadir sysconfdir sharedstatedir localstatedir includedir \
1305 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
31b0378d 1306 libdir localedir mandir
252b5132 1307do
81ecdfbb
RW
1308 eval ac_val=\$$ac_var
1309 # Remove trailing slashes.
1310 case $ac_val in
1311 */ )
1312 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1313 eval $ac_var=\$ac_val;;
1314 esac
1315 # Be sure to have absolute directory names.
42ecbf5e 1316 case $ac_val in
81ecdfbb
RW
1317 [\\/$]* | ?:[\\/]* ) continue;;
1318 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
252b5132 1319 esac
d0ac1c44 1320 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
252b5132
RH
1321done
1322
42ecbf5e
DJ
1323# There might be people who depend on the old broken behavior: `$host'
1324# used to hold the argument of --host etc.
1325# FIXME: To remove some day.
1326build=$build_alias
1327host=$host_alias
1328target=$target_alias
1329
1330# FIXME: To remove some day.
1331if test "x$host_alias" != x; then
1332 if test "x$build_alias" = x; then
1333 cross_compiling=maybe
42ecbf5e
DJ
1334 elif test "x$build_alias" != "x$host_alias"; then
1335 cross_compiling=yes
1336 fi
1337fi
e5a52504 1338
42ecbf5e
DJ
1339ac_tool_prefix=
1340test -n "$host_alias" && ac_tool_prefix=$host_alias-
1341
1342test "$silent" = yes && exec 6>/dev/null
252b5132 1343
252b5132 1344
81ecdfbb
RW
1345ac_pwd=`pwd` && test -n "$ac_pwd" &&
1346ac_ls_di=`ls -di .` &&
1347ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
d0ac1c44 1348 as_fn_error $? "working directory cannot be determined"
81ecdfbb 1349test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
d0ac1c44 1350 as_fn_error $? "pwd does not report name of working directory"
81ecdfbb
RW
1351
1352
252b5132
RH
1353# Find the source files, if location was not specified.
1354if test -z "$srcdir"; then
1355 ac_srcdir_defaulted=yes
81ecdfbb
RW
1356 # Try the directory containing this script, then the parent directory.
1357 ac_confdir=`$as_dirname -- "$as_myself" ||
1358$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1359 X"$as_myself" : 'X\(//\)[^/]' \| \
1360 X"$as_myself" : 'X\(//\)$' \| \
1361 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1362$as_echo X"$as_myself" |
1363 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1364 s//\1/
1365 q
1366 }
1367 /^X\(\/\/\)[^/].*/{
1368 s//\1/
1369 q
1370 }
1371 /^X\(\/\/\)$/{
1372 s//\1/
1373 q
1374 }
1375 /^X\(\/\).*/{
1376 s//\1/
1377 q
1378 }
1379 s/.*/./; q'`
252b5132 1380 srcdir=$ac_confdir
81ecdfbb 1381 if test ! -r "$srcdir/$ac_unique_file"; then
252b5132
RH
1382 srcdir=..
1383 fi
1384else
1385 ac_srcdir_defaulted=no
1386fi
81ecdfbb
RW
1387if test ! -r "$srcdir/$ac_unique_file"; then
1388 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
d0ac1c44 1389 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
81ecdfbb
RW
1390fi
1391ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1392ac_abs_confdir=`(
d0ac1c44 1393 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
81ecdfbb
RW
1394 pwd)`
1395# When building in place, set srcdir=.
1396if test "$ac_abs_confdir" = "$ac_pwd"; then
1397 srcdir=.
1398fi
1399# Remove unnecessary trailing slashes from srcdir.
1400# Double slashes in file names in object file debugging info
1401# mess up M-x gdb in Emacs.
1402case $srcdir in
1403*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1404esac
1405for ac_var in $ac_precious_vars; do
1406 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1407 eval ac_env_${ac_var}_value=\$${ac_var}
1408 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1409 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1410done
252b5132 1411
42ecbf5e
DJ
1412#
1413# Report the --help message.
1414#
1415if test "$ac_init_help" = "long"; then
1416 # Omit some internal or obsolete options to make the list less imposing.
1417 # This message is too long to be a string in the A/UX 3.1 sh.
1418 cat <<_ACEOF
631ec08c 1419\`configure' configures ld 2.39.50 to adapt to many kinds of systems.
252b5132 1420
42ecbf5e 1421Usage: $0 [OPTION]... [VAR=VALUE]...
252b5132 1422
42ecbf5e
DJ
1423To assign environment variables (e.g., CC, CFLAGS...), specify them as
1424VAR=VALUE. See below for descriptions of some of the useful variables.
252b5132 1425
42ecbf5e 1426Defaults for the options are specified in brackets.
ac48eca1 1427
42ecbf5e
DJ
1428Configuration:
1429 -h, --help display this help and exit
1430 --help=short display options specific to this package
1431 --help=recursive display the short help of all the included packages
1432 -V, --version display version information and exit
d0ac1c44 1433 -q, --quiet, --silent do not print \`checking ...' messages
42ecbf5e
DJ
1434 --cache-file=FILE cache test results in FILE [disabled]
1435 -C, --config-cache alias for \`--cache-file=config.cache'
1436 -n, --no-create do not create output files
1437 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1438
42ecbf5e
DJ
1439Installation directories:
1440 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1441 [$ac_default_prefix]
42ecbf5e 1442 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1443 [PREFIX]
ac48eca1 1444
42ecbf5e
DJ
1445By default, \`make install' will install all the files in
1446\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1447an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1448for instance \`--prefix=\$HOME'.
ac48eca1 1449
42ecbf5e 1450For better control, use the options below.
ac48eca1 1451
42ecbf5e 1452Fine tuning of the installation directories:
81ecdfbb
RW
1453 --bindir=DIR user executables [EPREFIX/bin]
1454 --sbindir=DIR system admin executables [EPREFIX/sbin]
1455 --libexecdir=DIR program executables [EPREFIX/libexec]
1456 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1457 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1458 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1459 --libdir=DIR object code libraries [EPREFIX/lib]
1460 --includedir=DIR C header files [PREFIX/include]
1461 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1462 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1463 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1464 --infodir=DIR info documentation [DATAROOTDIR/info]
1465 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1466 --mandir=DIR man documentation [DATAROOTDIR/man]
2e98a7bd 1467 --docdir=DIR documentation root [DATAROOTDIR/doc/ld]
81ecdfbb
RW
1468 --htmldir=DIR html documentation [DOCDIR]
1469 --dvidir=DIR dvi documentation [DOCDIR]
1470 --pdfdir=DIR pdf documentation [DOCDIR]
1471 --psdir=DIR ps documentation [DOCDIR]
42ecbf5e 1472_ACEOF
ac48eca1 1473
42ecbf5e 1474 cat <<\_ACEOF
252b5132 1475
42ecbf5e
DJ
1476Program names:
1477 --program-prefix=PREFIX prepend PREFIX to installed program names
1478 --program-suffix=SUFFIX append SUFFIX to installed program names
1479 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
252b5132 1480
42ecbf5e
DJ
1481System types:
1482 --build=BUILD configure for building on BUILD [guessed]
1483 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1484 --target=TARGET configure for building compilers for TARGET [HOST]
1485_ACEOF
252b5132 1486fi
252b5132 1487
42ecbf5e 1488if test -n "$ac_init_help"; then
2e98a7bd 1489 case $ac_init_help in
631ec08c 1490 short | recursive ) echo "Configuration of ld 2.39.50:";;
2e98a7bd 1491 esac
42ecbf5e 1492 cat <<\_ACEOF
e5a52504 1493
42ecbf5e 1494Optional Features:
81ecdfbb 1495 --disable-option-checking ignore unrecognized --enable/--with options
42ecbf5e
DJ
1496 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1497 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
d0ac1c44
SM
1498 --enable-silent-rules less verbose build output (undo: "make V=1")
1499 --disable-silent-rules verbose build output (undo: "make V=0")
1500 --enable-maintainer-mode
1501 enable make rules and dependencies not useful (and
1502 sometimes confusing) to the casual installer
c774eab1
AM
1503 --enable-dependency-tracking
1504 do not reject slow dependency extractors
1505 --disable-dependency-tracking
1506 speeds up one-time build
b879806f
AM
1507 --enable-shared[=PKGS] build shared libraries [default=yes]
1508 --enable-static[=PKGS] build static libraries [default=yes]
1509 --enable-fast-install[=PKGS]
1510 optimize for fast installation [default=yes]
1511 --disable-libtool-lock avoid locking (might break parallel builds)
1512 --enable-plugins Enable support for plugins
1513 --disable-largefile omit support for large files
43e05cd4 1514 --enable-checking enable run-time checks
ce2cded5
L
1515 --enable-targets alternative target configurations
1516 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
c7791212 1517 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
7fb9f789
NC
1518 --enable-got=<type> GOT handling scheme (target, single, negative,
1519 multigot)
4894d80b
L
1520 --enable-compressed-debug-sections={all,ld,none}
1521 compress debug sections by default]
6734f10a 1522 --enable-new-dtags set DT_RUNPATH instead of DT_RPATH by default]
647e4d46 1523 --enable-relro enable -z relro in ELF linker by default
b32632c4
L
1524 --enable-textrel-check=[yes|no|warning|error]
1525 enable DT_TEXTREL check in ELF linker
f6aec96d 1526 --enable-separate-code enable -z separate-code in ELF linker by default
ba951afb
NC
1527 --enable-warn-execstack enable warnings when creating an executable stack
1528 --enable-warn-rwx-segments
1529 enable warnings when creating segements with RWX
1530 permissions
1531 --enable-default-execstack
1532 create an executable stack if an input file is
1533 missing a .note.GNU-stack section
23ae20f5
NC
1534 --enable-error-handling-script
1535 enable/disable support for the
1536 --error-handling-script option
2760f24c
RG
1537 --enable-default-hash-style={sysv,gnu,both}
1538 use this default hash style
c774eab1 1539 --disable-initfini-array do not use .init_array/.fini_array sections
094e34f2 1540 --enable-libctf Handle .ctf type-info sections [default=yes]
9e2bb0cb 1541 --enable-jansson enable jansson [default=no]
ce2cded5
L
1542 --enable-werror treat compile warnings as errors
1543 --enable-build-warnings enable build-time compiler warnings
42ecbf5e 1544 --disable-nls do not use Native Language Support
42ecbf5e
DJ
1545
1546Optional Packages:
1547 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1548 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
d7040cdb
SE
1549 --with-pic try to use only PIC/non-PIC objects [default=use
1550 both]
1551 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
b879806f
AM
1552 --with-lib-path=dir1:dir2... set default LIB_PATH
1553 --with-sysroot=DIR Search for usr/lib et al within DIR.
1ff6de03 1554 --with-system-zlib use installed libz
42ecbf5e
DJ
1555
1556Some influential environment variables:
1557 CC C compiler command
1558 CFLAGS C compiler flags
1559 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1560 nonstandard directory <lib dir>
81ecdfbb 1561 LIBS libraries to pass to the linker, e.g. -l<library>
d0ac1c44 1562 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
81ecdfbb 1563 you have headers in a nonstandard directory <include dir>
3cb62297
L
1564 CXX C++ compiler command
1565 CXXFLAGS C++ compiler flags
b879806f 1566 CPP C preprocessor
3cb62297 1567 CXXCPP C++ preprocessor
9e2bb0cb
LB
1568 PKG_CONFIG path to pkg-config utility
1569 PKG_CONFIG_PATH
1570 directories to add to pkg-config's search path
1571 PKG_CONFIG_LIBDIR
1572 path overriding pkg-config's built-in search path
1573 JANSSON_CFLAGS
1574 C compiler flags for JANSSON, overriding pkg-config
1575 JANSSON_LIBS
1576 linker flags for JANSSON, overriding pkg-config
d0ac1c44
SM
1577 YACC The `Yet Another Compiler Compiler' implementation to use.
1578 Defaults to the first program found out of: `bison -y', `byacc',
1579 `yacc'.
81ecdfbb
RW
1580 YFLAGS The list of arguments that will be passed by default to $YACC.
1581 This script will default YFLAGS to the empty string to avoid a
1582 default value of `-d' given by some make applications.
42ecbf5e
DJ
1583
1584Use these variables to override the choices made by `configure' or to help
1585it to find libraries and programs with nonstandard names/locations.
1586
81ecdfbb 1587Report bugs to the package provider.
42ecbf5e 1588_ACEOF
81ecdfbb 1589ac_status=$?
42ecbf5e
DJ
1590fi
1591
1592if test "$ac_init_help" = "recursive"; then
1593 # If there are subdirs, report their specific --help.
42ecbf5e 1594 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1595 test -d "$ac_dir" ||
1596 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1597 continue
42ecbf5e
DJ
1598 ac_builddir=.
1599
81ecdfbb
RW
1600case "$ac_dir" in
1601.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1602*)
1603 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1604 # A ".." for each directory in $ac_dir_suffix.
1605 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1606 case $ac_top_builddir_sub in
1607 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1608 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1609 esac ;;
1610esac
1611ac_abs_top_builddir=$ac_pwd
1612ac_abs_builddir=$ac_pwd$ac_dir_suffix
1613# for backward compatibility:
1614ac_top_builddir=$ac_top_build_prefix
42ecbf5e
DJ
1615
1616case $srcdir in
81ecdfbb 1617 .) # We are building in place.
42ecbf5e 1618 ac_srcdir=.
81ecdfbb
RW
1619 ac_top_srcdir=$ac_top_builddir_sub
1620 ac_abs_top_srcdir=$ac_pwd ;;
1621 [\\/]* | ?:[\\/]* ) # Absolute name.
42ecbf5e 1622 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1623 ac_top_srcdir=$srcdir
1624 ac_abs_top_srcdir=$srcdir ;;
1625 *) # Relative name.
1626 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1627 ac_top_srcdir=$ac_top_build_prefix$srcdir
1628 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
42ecbf5e 1629esac
81ecdfbb
RW
1630ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1631
1632 cd "$ac_dir" || { ac_status=$?; continue; }
1633 # Check for guested configure.
1634 if test -f "$ac_srcdir/configure.gnu"; then
1635 echo &&
1636 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1637 elif test -f "$ac_srcdir/configure"; then
1638 echo &&
1639 $SHELL "$ac_srcdir/configure" --help=recursive
42ecbf5e 1640 else
81ecdfbb
RW
1641 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1642 fi || ac_status=$?
1643 cd "$ac_pwd" || { ac_status=$?; break; }
42ecbf5e 1644 done
a2d91340
AC
1645fi
1646
81ecdfbb 1647test -n "$ac_init_help" && exit $ac_status
42ecbf5e
DJ
1648if $ac_init_version; then
1649 cat <<\_ACEOF
631ec08c 1650ld configure 2.39.50
d0ac1c44 1651generated by GNU Autoconf 2.69
a2d91340 1652
d0ac1c44 1653Copyright (C) 2012 Free Software Foundation, Inc.
42ecbf5e
DJ
1654This configure script is free software; the Free Software Foundation
1655gives unlimited permission to copy, distribute and modify it.
1656_ACEOF
81ecdfbb 1657 exit
42ecbf5e 1658fi
a2d91340 1659
81ecdfbb
RW
1660## ------------------------ ##
1661## Autoconf initialization. ##
1662## ------------------------ ##
a2d91340 1663
81ecdfbb
RW
1664# ac_fn_c_try_compile LINENO
1665# --------------------------
1666# Try to compile conftest.$ac_ext, and return whether this succeeded.
1667ac_fn_c_try_compile ()
1668{
1669 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1670 rm -f conftest.$ac_objext
1671 if { { ac_try="$ac_compile"
1672case "(($ac_try" in
1673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1674 *) ac_try_echo=$ac_try;;
1675esac
1676eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1677$as_echo "$ac_try_echo"; } >&5
1678 (eval "$ac_compile") 2>conftest.err
1679 ac_status=$?
1680 if test -s conftest.err; then
1681 grep -v '^ *+' conftest.err >conftest.er1
1682 cat conftest.er1 >&5
1683 mv -f conftest.er1 conftest.err
1684 fi
1685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1686 test $ac_status = 0; } && {
1687 test -z "$ac_c_werror_flag" ||
1688 test ! -s conftest.err
1689 } && test -s conftest.$ac_objext; then :
1690 ac_retval=0
1691else
1692 $as_echo "$as_me: failed program was:" >&5
1693sed 's/^/| /' conftest.$ac_ext >&5
a2d91340 1694
81ecdfbb
RW
1695 ac_retval=1
1696fi
d0ac1c44
SM
1697 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1698 as_fn_set_status $ac_retval
81ecdfbb
RW
1699
1700} # ac_fn_c_try_compile
1701
b879806f
AM
1702# ac_fn_cxx_try_compile LINENO
1703# ----------------------------
1704# Try to compile conftest.$ac_ext, and return whether this succeeded.
1705ac_fn_cxx_try_compile ()
81ecdfbb
RW
1706{
1707 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
b879806f
AM
1708 rm -f conftest.$ac_objext
1709 if { { ac_try="$ac_compile"
81ecdfbb
RW
1710case "(($ac_try" in
1711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1712 *) ac_try_echo=$ac_try;;
1713esac
1714eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1715$as_echo "$ac_try_echo"; } >&5
b879806f 1716 (eval "$ac_compile") 2>conftest.err
81ecdfbb
RW
1717 ac_status=$?
1718 if test -s conftest.err; then
1719 grep -v '^ *+' conftest.err >conftest.er1
1720 cat conftest.er1 >&5
1721 mv -f conftest.er1 conftest.err
1722 fi
1723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
b879806f
AM
1724 test $ac_status = 0; } && {
1725 test -z "$ac_cxx_werror_flag" ||
81ecdfbb 1726 test ! -s conftest.err
b879806f 1727 } && test -s conftest.$ac_objext; then :
81ecdfbb
RW
1728 ac_retval=0
1729else
1730 $as_echo "$as_me: failed program was:" >&5
1731sed 's/^/| /' conftest.$ac_ext >&5
1732
b879806f 1733 ac_retval=1
81ecdfbb 1734fi
d0ac1c44
SM
1735 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1736 as_fn_set_status $ac_retval
81ecdfbb 1737
b879806f 1738} # ac_fn_cxx_try_compile
81ecdfbb 1739
b879806f
AM
1740# ac_fn_c_try_cpp LINENO
1741# ----------------------
1742# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1743ac_fn_c_try_cpp ()
3cb62297
L
1744{
1745 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
b879806f 1746 if { { ac_try="$ac_cpp conftest.$ac_ext"
3cb62297
L
1747case "(($ac_try" in
1748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1749 *) ac_try_echo=$ac_try;;
1750esac
1751eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1752$as_echo "$ac_try_echo"; } >&5
b879806f 1753 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
3cb62297
L
1754 ac_status=$?
1755 if test -s conftest.err; then
1756 grep -v '^ *+' conftest.err >conftest.er1
1757 cat conftest.er1 >&5
1758 mv -f conftest.er1 conftest.err
1759 fi
1760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
d0ac1c44 1761 test $ac_status = 0; } > conftest.i && {
b879806f 1762 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3cb62297 1763 test ! -s conftest.err
b879806f 1764 }; then :
3cb62297
L
1765 ac_retval=0
1766else
1767 $as_echo "$as_me: failed program was:" >&5
1768sed 's/^/| /' conftest.$ac_ext >&5
1769
b879806f 1770 ac_retval=1
3cb62297 1771fi
d0ac1c44
SM
1772 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1773 as_fn_set_status $ac_retval
3cb62297 1774
b879806f 1775} # ac_fn_c_try_cpp
3cb62297 1776
81ecdfbb
RW
1777# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1778# -------------------------------------------------------
1779# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1780# the include files in INCLUDES and setting the cache variable VAR
1781# accordingly.
1782ac_fn_c_check_header_mongrel ()
1783{
1784 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
d0ac1c44 1785 if eval \${$3+:} false; then :
81ecdfbb
RW
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1787$as_echo_n "checking for $2... " >&6; }
d0ac1c44 1788if eval \${$3+:} false; then :
81ecdfbb
RW
1789 $as_echo_n "(cached) " >&6
1790fi
1791eval ac_res=\$$3
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1793$as_echo "$ac_res" >&6; }
1794else
1795 # Is the header compilable?
1796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1797$as_echo_n "checking $2 usability... " >&6; }
1798cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1799/* end confdefs.h. */
1800$4
1801#include <$2>
1802_ACEOF
1803if ac_fn_c_try_compile "$LINENO"; then :
1804 ac_header_compiler=yes
1805else
1806 ac_header_compiler=no
1807fi
1808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1810$as_echo "$ac_header_compiler" >&6; }
1811
1812# Is the header present?
1813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1814$as_echo_n "checking $2 presence... " >&6; }
1815cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1816/* end confdefs.h. */
1817#include <$2>
1818_ACEOF
1819if ac_fn_c_try_cpp "$LINENO"; then :
1820 ac_header_preproc=yes
1821else
1822 ac_header_preproc=no
1823fi
d0ac1c44 1824rm -f conftest.err conftest.i conftest.$ac_ext
81ecdfbb
RW
1825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1826$as_echo "$ac_header_preproc" >&6; }
1827
1828# So? What about this header?
1829case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1830 yes:no: )
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1832$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1834$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1835 ;;
1836 no:yes:* )
1837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1838$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1840$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1842$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1844$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1846$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1847 ;;
1848esac
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1850$as_echo_n "checking for $2... " >&6; }
d0ac1c44 1851if eval \${$3+:} false; then :
81ecdfbb
RW
1852 $as_echo_n "(cached) " >&6
1853else
1854 eval "$3=\$ac_header_compiler"
1855fi
1856eval ac_res=\$$3
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1858$as_echo "$ac_res" >&6; }
1859fi
d0ac1c44 1860 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
81ecdfbb
RW
1861
1862} # ac_fn_c_check_header_mongrel
1863
1864# ac_fn_c_try_run LINENO
1865# ----------------------
1866# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1867# that executables *can* be run.
1868ac_fn_c_try_run ()
1869{
1870 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1871 if { { ac_try="$ac_link"
1872case "(($ac_try" in
1873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1874 *) ac_try_echo=$ac_try;;
1875esac
1876eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1877$as_echo "$ac_try_echo"; } >&5
1878 (eval "$ac_link") 2>&5
1879 ac_status=$?
1880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1881 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1882 { { case "(($ac_try" in
1883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1884 *) ac_try_echo=$ac_try;;
1885esac
1886eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1887$as_echo "$ac_try_echo"; } >&5
1888 (eval "$ac_try") 2>&5
1889 ac_status=$?
1890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1891 test $ac_status = 0; }; }; then :
1892 ac_retval=0
1893else
1894 $as_echo "$as_me: program exited with status $ac_status" >&5
1895 $as_echo "$as_me: failed program was:" >&5
1896sed 's/^/| /' conftest.$ac_ext >&5
1897
1898 ac_retval=$ac_status
1899fi
1900 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
d0ac1c44
SM
1901 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1902 as_fn_set_status $ac_retval
81ecdfbb
RW
1903
1904} # ac_fn_c_try_run
1905
1906# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1907# -------------------------------------------------------
1908# Tests whether HEADER exists and can be compiled using the include files in
1909# INCLUDES, setting the cache variable VAR accordingly.
1910ac_fn_c_check_header_compile ()
1911{
1912 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1914$as_echo_n "checking for $2... " >&6; }
d0ac1c44 1915if eval \${$3+:} false; then :
81ecdfbb
RW
1916 $as_echo_n "(cached) " >&6
1917else
1918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1919/* end confdefs.h. */
1920$4
1921#include <$2>
1922_ACEOF
1923if ac_fn_c_try_compile "$LINENO"; then :
1924 eval "$3=yes"
1925else
1926 eval "$3=no"
1927fi
1928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1929fi
1930eval ac_res=\$$3
1931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1932$as_echo "$ac_res" >&6; }
d0ac1c44 1933 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
81ecdfbb
RW
1934
1935} # ac_fn_c_check_header_compile
1936
c774eab1
AM
1937# ac_fn_c_try_link LINENO
1938# -----------------------
1939# Try to link conftest.$ac_ext, and return whether this succeeded.
1940ac_fn_c_try_link ()
1941{
1942 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1943 rm -f conftest.$ac_objext conftest$ac_exeext
1944 if { { ac_try="$ac_link"
1945case "(($ac_try" in
1946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1947 *) ac_try_echo=$ac_try;;
1948esac
1949eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1950$as_echo "$ac_try_echo"; } >&5
1951 (eval "$ac_link") 2>conftest.err
1952 ac_status=$?
1953 if test -s conftest.err; then
1954 grep -v '^ *+' conftest.err >conftest.er1
1955 cat conftest.er1 >&5
1956 mv -f conftest.er1 conftest.err
1957 fi
1958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1959 test $ac_status = 0; } && {
1960 test -z "$ac_c_werror_flag" ||
1961 test ! -s conftest.err
1962 } && test -s conftest$ac_exeext && {
1963 test "$cross_compiling" = yes ||
1964 test -x conftest$ac_exeext
1965 }; then :
1966 ac_retval=0
1967else
1968 $as_echo "$as_me: failed program was:" >&5
1969sed 's/^/| /' conftest.$ac_ext >&5
1970
1971 ac_retval=1
1972fi
1973 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1974 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1975 # interfere with the next link command; also delete a directory that is
1976 # left behind by Apple's compiler. We do this before executing the actions.
1977 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1978 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1979 as_fn_set_status $ac_retval
1980
1981} # ac_fn_c_try_link
1982
81ecdfbb
RW
1983# ac_fn_c_check_func LINENO FUNC VAR
1984# ----------------------------------
1985# Tests whether FUNC exists, setting the cache variable VAR accordingly
1986ac_fn_c_check_func ()
1987{
1988 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1990$as_echo_n "checking for $2... " >&6; }
d0ac1c44 1991if eval \${$3+:} false; then :
81ecdfbb
RW
1992 $as_echo_n "(cached) " >&6
1993else
1994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1995/* end confdefs.h. */
1996/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1997 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1998#define $2 innocuous_$2
1999
2000/* System header to define __stub macros and hopefully few prototypes,
2001 which can conflict with char $2 (); below.
2002 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2003 <limits.h> exists even on freestanding compilers. */
2004
2005#ifdef __STDC__
2006# include <limits.h>
2007#else
2008# include <assert.h>
2009#endif
2010
2011#undef $2
2012
2013/* Override any GCC internal prototype to avoid an error.
2014 Use char because int might match the return type of a GCC
2015 builtin and then its argument prototype would still apply. */
2016#ifdef __cplusplus
2017extern "C"
2018#endif
2019char $2 ();
2020/* The GNU C library defines this for functions which it implements
2021 to always fail with ENOSYS. Some functions are actually named
2022 something starting with __ and the normal name is an alias. */
2023#if defined __stub_$2 || defined __stub___$2
2024choke me
2025#endif
2026
2027int
2028main ()
2029{
2030return $2 ();
2031 ;
2032 return 0;
2033}
2034_ACEOF
2035if ac_fn_c_try_link "$LINENO"; then :
2036 eval "$3=yes"
2037else
2038 eval "$3=no"
2039fi
2040rm -f core conftest.err conftest.$ac_objext \
2041 conftest$ac_exeext conftest.$ac_ext
2042fi
2043eval ac_res=\$$3
2044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2045$as_echo "$ac_res" >&6; }
d0ac1c44 2046 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
81ecdfbb
RW
2047
2048} # ac_fn_c_check_func
2049
3cb62297
L
2050# ac_fn_cxx_try_cpp LINENO
2051# ------------------------
2052# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2053ac_fn_cxx_try_cpp ()
2054{
2055 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2056 if { { ac_try="$ac_cpp conftest.$ac_ext"
2057case "(($ac_try" in
2058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2059 *) ac_try_echo=$ac_try;;
2060esac
2061eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2062$as_echo "$ac_try_echo"; } >&5
2063 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2064 ac_status=$?
2065 if test -s conftest.err; then
2066 grep -v '^ *+' conftest.err >conftest.er1
2067 cat conftest.er1 >&5
2068 mv -f conftest.er1 conftest.err
2069 fi
2070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
d0ac1c44 2071 test $ac_status = 0; } > conftest.i && {
3cb62297
L
2072 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2073 test ! -s conftest.err
2074 }; then :
2075 ac_retval=0
2076else
2077 $as_echo "$as_me: failed program was:" >&5
2078sed 's/^/| /' conftest.$ac_ext >&5
2079
2080 ac_retval=1
2081fi
d0ac1c44
SM
2082 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2083 as_fn_set_status $ac_retval
3cb62297
L
2084
2085} # ac_fn_cxx_try_cpp
2086
2087# ac_fn_cxx_try_link LINENO
2088# -------------------------
2089# Try to link conftest.$ac_ext, and return whether this succeeded.
2090ac_fn_cxx_try_link ()
2091{
2092 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2093 rm -f conftest.$ac_objext conftest$ac_exeext
2094 if { { ac_try="$ac_link"
2095case "(($ac_try" in
2096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2097 *) ac_try_echo=$ac_try;;
2098esac
2099eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2100$as_echo "$ac_try_echo"; } >&5
2101 (eval "$ac_link") 2>conftest.err
2102 ac_status=$?
2103 if test -s conftest.err; then
2104 grep -v '^ *+' conftest.err >conftest.er1
2105 cat conftest.er1 >&5
2106 mv -f conftest.er1 conftest.err
2107 fi
2108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2109 test $ac_status = 0; } && {
2110 test -z "$ac_cxx_werror_flag" ||
2111 test ! -s conftest.err
2112 } && test -s conftest$ac_exeext && {
2113 test "$cross_compiling" = yes ||
d0ac1c44 2114 test -x conftest$ac_exeext
3cb62297
L
2115 }; then :
2116 ac_retval=0
2117else
2118 $as_echo "$as_me: failed program was:" >&5
2119sed 's/^/| /' conftest.$ac_ext >&5
2120
2121 ac_retval=1
2122fi
2123 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2124 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2125 # interfere with the next link command; also delete a directory that is
2126 # left behind by Apple's compiler. We do this before executing the actions.
2127 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
d0ac1c44
SM
2128 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2129 as_fn_set_status $ac_retval
3cb62297
L
2130
2131} # ac_fn_cxx_try_link
2132
81ecdfbb
RW
2133# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2134# --------------------------------------------
2135# Tries to find the compile-time value of EXPR in a program that includes
2136# INCLUDES, setting VAR accordingly. Returns whether the value could be
2137# computed
2138ac_fn_c_compute_int ()
2139{
2140 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2141 if test "$cross_compiling" = yes; then
2142 # Depending upon the size, compute the lo and hi bounds.
2143cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2144/* end confdefs.h. */
2145$4
2146int
2147main ()
2148{
2149static int test_array [1 - 2 * !(($2) >= 0)];
d0ac1c44
SM
2150test_array [0] = 0;
2151return test_array [0];
81ecdfbb
RW
2152
2153 ;
2154 return 0;
2155}
2156_ACEOF
2157if ac_fn_c_try_compile "$LINENO"; then :
2158 ac_lo=0 ac_mid=0
2159 while :; do
2160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2161/* end confdefs.h. */
2162$4
2163int
2164main ()
2165{
2166static int test_array [1 - 2 * !(($2) <= $ac_mid)];
d0ac1c44
SM
2167test_array [0] = 0;
2168return test_array [0];
81ecdfbb
RW
2169
2170 ;
2171 return 0;
2172}
2173_ACEOF
2174if ac_fn_c_try_compile "$LINENO"; then :
2175 ac_hi=$ac_mid; break
2176else
2177 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2178 if test $ac_lo -le $ac_mid; then
2179 ac_lo= ac_hi=
2180 break
2181 fi
2182 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2183fi
2184rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2185 done
2186else
2187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2188/* end confdefs.h. */
2189$4
2190int
2191main ()
2192{
2193static int test_array [1 - 2 * !(($2) < 0)];
d0ac1c44
SM
2194test_array [0] = 0;
2195return test_array [0];
81ecdfbb
RW
2196
2197 ;
2198 return 0;
2199}
2200_ACEOF
2201if ac_fn_c_try_compile "$LINENO"; then :
2202 ac_hi=-1 ac_mid=-1
2203 while :; do
2204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2205/* end confdefs.h. */
2206$4
2207int
2208main ()
2209{
2210static int test_array [1 - 2 * !(($2) >= $ac_mid)];
d0ac1c44
SM
2211test_array [0] = 0;
2212return test_array [0];
81ecdfbb
RW
2213
2214 ;
2215 return 0;
2216}
2217_ACEOF
2218if ac_fn_c_try_compile "$LINENO"; then :
2219 ac_lo=$ac_mid; break
2220else
2221 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2222 if test $ac_mid -le $ac_hi; then
2223 ac_lo= ac_hi=
2224 break
2225 fi
2226 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2227fi
2228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2229 done
2230else
2231 ac_lo= ac_hi=
2232fi
2233rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2234fi
2235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2236# Binary search between lo and hi bounds.
2237while test "x$ac_lo" != "x$ac_hi"; do
2238 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2240/* end confdefs.h. */
2241$4
2242int
2243main ()
2244{
2245static int test_array [1 - 2 * !(($2) <= $ac_mid)];
d0ac1c44
SM
2246test_array [0] = 0;
2247return test_array [0];
81ecdfbb
RW
2248
2249 ;
2250 return 0;
2251}
2252_ACEOF
2253if ac_fn_c_try_compile "$LINENO"; then :
2254 ac_hi=$ac_mid
2255else
2256 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2257fi
2258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2259done
2260case $ac_lo in #((
2261?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2262'') ac_retval=1 ;;
2263esac
2264 else
2265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2266/* end confdefs.h. */
2267$4
2268static long int longval () { return $2; }
2269static unsigned long int ulongval () { return $2; }
2270#include <stdio.h>
2271#include <stdlib.h>
2272int
2273main ()
2274{
2275
2276 FILE *f = fopen ("conftest.val", "w");
2277 if (! f)
2278 return 1;
2279 if (($2) < 0)
2280 {
2281 long int i = longval ();
2282 if (i != ($2))
2283 return 1;
2284 fprintf (f, "%ld", i);
2285 }
2286 else
2287 {
2288 unsigned long int i = ulongval ();
2289 if (i != ($2))
2290 return 1;
2291 fprintf (f, "%lu", i);
2292 }
2293 /* Do not output a trailing newline, as this causes \r\n confusion
2294 on some platforms. */
2295 return ferror (f) || fclose (f) != 0;
2296
2297 ;
2298 return 0;
2299}
2300_ACEOF
2301if ac_fn_c_try_run "$LINENO"; then :
2302 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2303else
2304 ac_retval=1
2305fi
2306rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2307 conftest.$ac_objext conftest.beam conftest.$ac_ext
2308rm -f conftest.val
2309
2310 fi
d0ac1c44
SM
2311 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2312 as_fn_set_status $ac_retval
81ecdfbb
RW
2313
2314} # ac_fn_c_compute_int
1d5269c9
MF
2315
2316# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2317# ---------------------------------------------
2318# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2319# accordingly.
2320ac_fn_c_check_decl ()
2321{
2322 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2323 as_decl_name=`echo $2|sed 's/ *(.*//'`
2324 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2326$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2327if eval \${$3+:} false; then :
2328 $as_echo_n "(cached) " >&6
2329else
2330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2331/* end confdefs.h. */
2332$4
2333int
2334main ()
2335{
2336#ifndef $as_decl_name
2337#ifdef __cplusplus
2338 (void) $as_decl_use;
2339#else
2340 (void) $as_decl_name;
2341#endif
2342#endif
2343
2344 ;
2345 return 0;
2346}
2347_ACEOF
2348if ac_fn_c_try_compile "$LINENO"; then :
2349 eval "$3=yes"
2350else
2351 eval "$3=no"
2352fi
2353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2354fi
2355eval ac_res=\$$3
2356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2357$as_echo "$ac_res" >&6; }
2358 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2359
2360} # ac_fn_c_check_decl
81ecdfbb
RW
2361cat >config.log <<_ACEOF
2362This file contains any messages produced by compilers while
2363running configure, to aid debugging if configure makes a mistake.
2364
631ec08c 2365It was created by ld $as_me 2.39.50, which was
d0ac1c44 2366generated by GNU Autoconf 2.69. Invocation command line was
81ecdfbb
RW
2367
2368 $ $0 $@
2369
2370_ACEOF
2371exec 5>>config.log
2372{
2373cat <<_ASUNAME
2374## --------- ##
2375## Platform. ##
2376## --------- ##
2377
2378hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2379uname -m = `(uname -m) 2>/dev/null || echo unknown`
2380uname -r = `(uname -r) 2>/dev/null || echo unknown`
2381uname -s = `(uname -s) 2>/dev/null || echo unknown`
2382uname -v = `(uname -v) 2>/dev/null || echo unknown`
2383
2384/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2385/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2386
2387/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2388/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2389/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2390/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
42ecbf5e
DJ
2391/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2392/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2393/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2394
2395_ASUNAME
2396
2397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2398for as_dir in $PATH
2399do
2400 IFS=$as_save_IFS
2401 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2402 $as_echo "PATH: $as_dir"
2403 done
2404IFS=$as_save_IFS
252b5132 2405
42ecbf5e 2406} >&5
5d64ca4e 2407
42ecbf5e 2408cat >&5 <<_ACEOF
5d64ca4e 2409
5d64ca4e 2410
42ecbf5e
DJ
2411## ----------- ##
2412## Core tests. ##
2413## ----------- ##
5d64ca4e 2414
42ecbf5e 2415_ACEOF
2469cfa2 2416
42ecbf5e
DJ
2417
2418# Keep a trace of the command line.
2419# Strip out --no-create and --no-recursion so they do not pile up.
2420# Strip out --silent because we don't want to record it for future runs.
2421# Also quote any args containing shell meta-characters.
2422# Make two passes to allow for proper duplicate-argument suppression.
2423ac_configure_args=
2424ac_configure_args0=
2425ac_configure_args1=
42ecbf5e
DJ
2426ac_must_keep_next=false
2427for ac_pass in 1 2
2428do
2429 for ac_arg
2430 do
2431 case $ac_arg in
2432 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2433 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2434 | -silent | --silent | --silen | --sile | --sil)
2435 continue ;;
81ecdfbb
RW
2436 *\'*)
2437 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
42ecbf5e
DJ
2438 esac
2439 case $ac_pass in
81ecdfbb 2440 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
42ecbf5e 2441 2)
81ecdfbb 2442 as_fn_append ac_configure_args1 " '$ac_arg'"
42ecbf5e
DJ
2443 if test $ac_must_keep_next = true; then
2444 ac_must_keep_next=false # Got value, back to normal.
2445 else
2446 case $ac_arg in
2447 *=* | --config-cache | -C | -disable-* | --disable-* \
2448 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2449 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2450 | -with-* | --with-* | -without-* | --without-* | --x)
2451 case "$ac_configure_args0 " in
2452 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2453 esac
2454 ;;
2455 -* ) ac_must_keep_next=true ;;
2456 esac
2457 fi
81ecdfbb 2458 as_fn_append ac_configure_args " '$ac_arg'"
42ecbf5e
DJ
2459 ;;
2460 esac
2461 done
2462done
81ecdfbb
RW
2463{ ac_configure_args0=; unset ac_configure_args0;}
2464{ ac_configure_args1=; unset ac_configure_args1;}
42ecbf5e
DJ
2465
2466# When interrupted or exit'd, cleanup temporary files, and complete
2467# config.log. We remove comments because anyway the quotes in there
2468# would cause problems or look ugly.
81ecdfbb
RW
2469# WARNING: Use '\'' to represent an apostrophe within the trap.
2470# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
42ecbf5e
DJ
2471trap 'exit_status=$?
2472 # Save into config.log some information that might help in debugging.
2473 {
2474 echo
2475
d0ac1c44 2476 $as_echo "## ---------------- ##
42ecbf5e 2477## Cache variables. ##
d0ac1c44 2478## ---------------- ##"
42ecbf5e
DJ
2479 echo
2480 # The following way of writing the cache mishandles newlines in values,
81ecdfbb
RW
2481(
2482 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2483 eval ac_val=\$$ac_var
2484 case $ac_val in #(
2485 *${as_nl}*)
2486 case $ac_var in #(
2487 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2488$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2489 esac
2490 case $ac_var in #(
2491 _ | IFS | as_nl) ;; #(
2492 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2493 *) { eval $ac_var=; unset $ac_var;} ;;
2494 esac ;;
2495 esac
2496 done
42ecbf5e 2497 (set) 2>&1 |
81ecdfbb
RW
2498 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2499 *${as_nl}ac_space=\ *)
42ecbf5e 2500 sed -n \
81ecdfbb
RW
2501 "s/'\''/'\''\\\\'\'''\''/g;
2502 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2503 ;; #(
42ecbf5e 2504 *)
81ecdfbb 2505 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
42ecbf5e 2506 ;;
81ecdfbb
RW
2507 esac |
2508 sort
2509)
42ecbf5e
DJ
2510 echo
2511
d0ac1c44 2512 $as_echo "## ----------------- ##
42ecbf5e 2513## Output variables. ##
d0ac1c44 2514## ----------------- ##"
42ecbf5e
DJ
2515 echo
2516 for ac_var in $ac_subst_vars
2517 do
81ecdfbb
RW
2518 eval ac_val=\$$ac_var
2519 case $ac_val in
2520 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2521 esac
2522 $as_echo "$ac_var='\''$ac_val'\''"
42ecbf5e
DJ
2523 done | sort
2524 echo
2525
2526 if test -n "$ac_subst_files"; then
d0ac1c44 2527 $as_echo "## ------------------- ##
81ecdfbb 2528## File substitutions. ##
d0ac1c44 2529## ------------------- ##"
42ecbf5e
DJ
2530 echo
2531 for ac_var in $ac_subst_files
2532 do
81ecdfbb
RW
2533 eval ac_val=\$$ac_var
2534 case $ac_val in
2535 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2536 esac
2537 $as_echo "$ac_var='\''$ac_val'\''"
42ecbf5e
DJ
2538 done | sort
2539 echo
2540 fi
2541
2542 if test -s confdefs.h; then
d0ac1c44 2543 $as_echo "## ----------- ##
42ecbf5e 2544## confdefs.h. ##
d0ac1c44 2545## ----------- ##"
42ecbf5e 2546 echo
81ecdfbb 2547 cat confdefs.h
42ecbf5e
DJ
2548 echo
2549 fi
2550 test "$ac_signal" != 0 &&
81ecdfbb
RW
2551 $as_echo "$as_me: caught signal $ac_signal"
2552 $as_echo "$as_me: exit $exit_status"
42ecbf5e 2553 } >&5
81ecdfbb
RW
2554 rm -f core *.core core.conftest.* &&
2555 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
42ecbf5e 2556 exit $exit_status
81ecdfbb 2557' 0
42ecbf5e 2558for ac_signal in 1 2 13 15; do
81ecdfbb 2559 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
42ecbf5e
DJ
2560done
2561ac_signal=0
2562
2563# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
2564rm -f -r conftest* confdefs.h
2565
2566$as_echo "/* confdefs.h */" > confdefs.h
42ecbf5e
DJ
2567
2568# Predefined preprocessor variables.
2569
2570cat >>confdefs.h <<_ACEOF
2571#define PACKAGE_NAME "$PACKAGE_NAME"
2572_ACEOF
2573
42ecbf5e
DJ
2574cat >>confdefs.h <<_ACEOF
2575#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2576_ACEOF
2577
42ecbf5e
DJ
2578cat >>confdefs.h <<_ACEOF
2579#define PACKAGE_VERSION "$PACKAGE_VERSION"
2580_ACEOF
2581
42ecbf5e
DJ
2582cat >>confdefs.h <<_ACEOF
2583#define PACKAGE_STRING "$PACKAGE_STRING"
2584_ACEOF
2585
42ecbf5e
DJ
2586cat >>confdefs.h <<_ACEOF
2587#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2588_ACEOF
2589
81ecdfbb
RW
2590cat >>confdefs.h <<_ACEOF
2591#define PACKAGE_URL "$PACKAGE_URL"
2592_ACEOF
2593
42ecbf5e
DJ
2594
2595# Let the site file select an alternate cache file if it wants to.
81ecdfbb
RW
2596# Prefer an explicitly selected file to automatically selected ones.
2597ac_site_file1=NONE
2598ac_site_file2=NONE
2599if test -n "$CONFIG_SITE"; then
d0ac1c44
SM
2600 # We do not want a PATH search for config.site.
2601 case $CONFIG_SITE in #((
2602 -*) ac_site_file1=./$CONFIG_SITE;;
2603 */*) ac_site_file1=$CONFIG_SITE;;
2604 *) ac_site_file1=./$CONFIG_SITE;;
2605 esac
81ecdfbb
RW
2606elif test "x$prefix" != xNONE; then
2607 ac_site_file1=$prefix/share/config.site
2608 ac_site_file2=$prefix/etc/config.site
2609else
2610 ac_site_file1=$ac_default_prefix/share/config.site
2611 ac_site_file2=$ac_default_prefix/etc/config.site
2612fi
2613for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2614do
2615 test "x$ac_site_file" = xNONE && continue
d0ac1c44 2616 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
81ecdfbb
RW
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2618$as_echo "$as_me: loading site script $ac_site_file" >&6;}
42ecbf5e 2619 sed 's/^/| /' "$ac_site_file" >&5
d0ac1c44
SM
2620 . "$ac_site_file" \
2621 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2622$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2623as_fn_error $? "failed to load site script $ac_site_file
2624See \`config.log' for more details" "$LINENO" 5; }
42ecbf5e
DJ
2625 fi
2626done
2627
2628if test -r "$cache_file"; then
d0ac1c44
SM
2629 # Some versions of bash will fail to source /dev/null (special files
2630 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2631 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
81ecdfbb
RW
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2633$as_echo "$as_me: loading cache $cache_file" >&6;}
42ecbf5e 2634 case $cache_file in
81ecdfbb
RW
2635 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2636 *) . "./$cache_file";;
42ecbf5e
DJ
2637 esac
2638 fi
2639else
81ecdfbb
RW
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2641$as_echo "$as_me: creating cache $cache_file" >&6;}
42ecbf5e
DJ
2642 >$cache_file
2643fi
2644
d0ac1c44
SM
2645as_fn_append ac_header_list " stdlib.h"
2646as_fn_append ac_header_list " unistd.h"
2647as_fn_append ac_header_list " sys/param.h"
42ecbf5e
DJ
2648# Check that the precious variables saved in the cache have kept the same
2649# value.
2650ac_cache_corrupted=false
81ecdfbb 2651for ac_var in $ac_precious_vars; do
42ecbf5e
DJ
2652 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2653 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
2654 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2655 eval ac_new_val=\$ac_env_${ac_var}_value
42ecbf5e
DJ
2656 case $ac_old_set,$ac_new_set in
2657 set,)
81ecdfbb
RW
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2659$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
42ecbf5e
DJ
2660 ac_cache_corrupted=: ;;
2661 ,set)
81ecdfbb
RW
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2663$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
42ecbf5e
DJ
2664 ac_cache_corrupted=: ;;
2665 ,);;
2666 *)
2667 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
2668 # differences in whitespace do not lead to failure.
2669 ac_old_val_w=`echo x $ac_old_val`
2670 ac_new_val_w=`echo x $ac_new_val`
2671 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2673$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2674 ac_cache_corrupted=:
2675 else
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2677$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2678 eval $ac_var=\$ac_old_val
2679 fi
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2681$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2683$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
42ecbf5e
DJ
2684 fi;;
2685 esac
2686 # Pass precious variables to config.status.
2687 if test "$ac_new_set" = set; then
2688 case $ac_new_val in
81ecdfbb 2689 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
42ecbf5e
DJ
2690 *) ac_arg=$ac_var=$ac_new_val ;;
2691 esac
2692 case " $ac_configure_args " in
2693 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
81ecdfbb 2694 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
42ecbf5e
DJ
2695 esac
2696 fi
2697done
2698if $ac_cache_corrupted; then
81ecdfbb
RW
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2700$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2702$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
d0ac1c44 2703 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
42ecbf5e 2704fi
81ecdfbb
RW
2705## -------------------- ##
2706## Main body of script. ##
2707## -------------------- ##
42ecbf5e
DJ
2708
2709ac_ext=c
2710ac_cpp='$CPP $CPPFLAGS'
2711ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2712ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2713ac_compiler_gnu=$ac_cv_c_compiler_gnu
2714
2715
2716
42ecbf5e 2717
da594c4a 2718
42ecbf5e
DJ
2719
2720
2721ac_aux_dir=
81ecdfbb 2722for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
d0ac1c44
SM
2723 if test -f "$ac_dir/install-sh"; then
2724 ac_aux_dir=$ac_dir
2725 ac_install_sh="$ac_aux_dir/install-sh -c"
2726 break
2727 elif test -f "$ac_dir/install.sh"; then
2728 ac_aux_dir=$ac_dir
2729 ac_install_sh="$ac_aux_dir/install.sh -c"
2730 break
2731 elif test -f "$ac_dir/shtool"; then
2732 ac_aux_dir=$ac_dir
2733 ac_install_sh="$ac_aux_dir/shtool install -c"
2734 break
2735 fi
42ecbf5e
DJ
2736done
2737if test -z "$ac_aux_dir"; then
d0ac1c44 2738 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
42ecbf5e 2739fi
81ecdfbb
RW
2740
2741# These three variables are undocumented and unsupported,
2742# and are intended to be withdrawn in a future Autoconf release.
2743# They can cause serious problems if a builder's source tree is in a directory
2744# whose full name contains unusual characters.
2745ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2746ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2747ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2748
42ecbf5e
DJ
2749
2750# Make sure we can run config.sub.
81ecdfbb 2751$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
d0ac1c44 2752 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
81ecdfbb
RW
2753
2754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2755$as_echo_n "checking build system type... " >&6; }
d0ac1c44 2756if ${ac_cv_build+:} false; then :
81ecdfbb
RW
2757 $as_echo_n "(cached) " >&6
2758else
2759 ac_build_alias=$build_alias
2760test "x$ac_build_alias" = x &&
2761 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2762test "x$ac_build_alias" = x &&
d0ac1c44 2763 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
81ecdfbb 2764ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
d0ac1c44 2765 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
81ecdfbb
RW
2766
2767fi
2768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2769$as_echo "$ac_cv_build" >&6; }
2770case $ac_cv_build in
2771*-*-*) ;;
d0ac1c44 2772*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
81ecdfbb 2773esac
42ecbf5e 2774build=$ac_cv_build
81ecdfbb
RW
2775ac_save_IFS=$IFS; IFS='-'
2776set x $ac_cv_build
2777shift
2778build_cpu=$1
2779build_vendor=$2
2780shift; shift
2781# Remember, the first character of IFS is used to create $*,
2782# except with old shells:
2783build_os=$*
2784IFS=$ac_save_IFS
2785case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
42ecbf5e
DJ
2786
2787
81ecdfbb
RW
2788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2789$as_echo_n "checking host system type... " >&6; }
d0ac1c44 2790if ${ac_cv_host+:} false; then :
81ecdfbb
RW
2791 $as_echo_n "(cached) " >&6
2792else
2793 if test "x$host_alias" = x; then
2794 ac_cv_host=$ac_cv_build
42ecbf5e 2795else
81ecdfbb 2796 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
d0ac1c44 2797 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
81ecdfbb 2798fi
42ecbf5e
DJ
2799
2800fi
81ecdfbb
RW
2801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2802$as_echo "$ac_cv_host" >&6; }
2803case $ac_cv_host in
2804*-*-*) ;;
d0ac1c44 2805*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
81ecdfbb 2806esac
42ecbf5e 2807host=$ac_cv_host
81ecdfbb
RW
2808ac_save_IFS=$IFS; IFS='-'
2809set x $ac_cv_host
2810shift
2811host_cpu=$1
2812host_vendor=$2
2813shift; shift
2814# Remember, the first character of IFS is used to create $*,
2815# except with old shells:
2816host_os=$*
2817IFS=$ac_save_IFS
2818case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
42ecbf5e
DJ
2819
2820
81ecdfbb
RW
2821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2822$as_echo_n "checking target system type... " >&6; }
d0ac1c44 2823if ${ac_cv_target+:} false; then :
81ecdfbb 2824 $as_echo_n "(cached) " >&6
42ecbf5e 2825else
81ecdfbb
RW
2826 if test "x$target_alias" = x; then
2827 ac_cv_target=$ac_cv_host
2828else
2829 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
d0ac1c44 2830 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
81ecdfbb 2831fi
42ecbf5e
DJ
2832
2833fi
81ecdfbb
RW
2834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2835$as_echo "$ac_cv_target" >&6; }
2836case $ac_cv_target in
2837*-*-*) ;;
d0ac1c44 2838*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
81ecdfbb 2839esac
42ecbf5e 2840target=$ac_cv_target
81ecdfbb
RW
2841ac_save_IFS=$IFS; IFS='-'
2842set x $ac_cv_target
2843shift
2844target_cpu=$1
2845target_vendor=$2
2846shift; shift
2847# Remember, the first character of IFS is used to create $*,
2848# except with old shells:
2849target_os=$*
2850IFS=$ac_save_IFS
2851case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
42ecbf5e
DJ
2852
2853
2854# The aliases save the names the user supplied, while $host etc.
2855# will get canonicalized.
2856test -n "$target_alias" &&
2857 test "$program_prefix$program_suffix$program_transform_name" = \
2858 NONENONEs,x,x, &&
2859 program_prefix=${target_alias}-
02ecc8e9 2860
d0ac1c44 2861
5bbe6ec5 2862am__api_version='1.15'
c774eab1
AM
2863
2864# Find a good install program. We prefer a C program (faster),
2865# so one script is as good as another. But avoid the broken or
2866# incompatible versions:
2867# SysV /etc/install, /usr/sbin/install
2868# SunOS /usr/etc/install
2869# IRIX /sbin/install
2870# AIX /bin/install
2871# AmigaOS /C/install, which installs bootblocks on floppy discs
2872# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2873# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2874# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2875# OS/2's system install, which has a completely different semantic
2876# ./install, which can be erroneously created by make from ./install.sh.
2877# Reject install programs that cannot install multiple files.
2878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2879$as_echo_n "checking for a BSD-compatible install... " >&6; }
2880if test -z "$INSTALL"; then
2881if ${ac_cv_path_install+:} false; then :
81ecdfbb 2882 $as_echo_n "(cached) " >&6
42ecbf5e 2883else
c774eab1 2884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42ecbf5e
DJ
2885for as_dir in $PATH
2886do
2887 IFS=$as_save_IFS
2888 test -z "$as_dir" && as_dir=.
c774eab1
AM
2889 # Account for people who put trailing slashes in PATH elements.
2890case $as_dir/ in #((
2891 ./ | .// | /[cC]/* | \
2892 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2893 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2894 /usr/ucb/* ) ;;
2895 *)
2896 # OSF1 and SCO ODT 3.0 have their own names for install.
2897 # Don't use installbsd from OSF since it installs stuff as root
2898 # by default.
2899 for ac_prog in ginstall scoinst install; do
2900 for ac_exec_ext in '' $ac_executable_extensions; do
2901 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2902 if test $ac_prog = install &&
2903 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2904 # AIX install. It has an incompatible calling convention.
2905 :
2906 elif test $ac_prog = install &&
2907 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2908 # program-specific install script used by HP pwplus--don't use.
2909 :
2910 else
2911 rm -rf conftest.one conftest.two conftest.dir
2912 echo one > conftest.one
2913 echo two > conftest.two
2914 mkdir conftest.dir
2915 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2916 test -s conftest.one && test -s conftest.two &&
2917 test -s conftest.dir/conftest.one &&
2918 test -s conftest.dir/conftest.two
2919 then
2920 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2921 break 3
2922 fi
2923 fi
2924 fi
2925 done
2926 done
2927 ;;
2928esac
2929
81ecdfbb
RW
2930 done
2931IFS=$as_save_IFS
42ecbf5e 2932
c774eab1
AM
2933rm -rf conftest.one conftest.two conftest.dir
2934
42ecbf5e 2935fi
c774eab1
AM
2936 if test "${ac_cv_path_install+set}" = set; then
2937 INSTALL=$ac_cv_path_install
2938 else
2939 # As a last resort, use the slow shell script. Don't cache a
2940 # value for INSTALL within a source directory, because that will
2941 # break other packages using the cache if that directory is
2942 # removed, or if the value is a relative name.
2943 INSTALL=$ac_install_sh
2944 fi
42ecbf5e 2945fi
c774eab1
AM
2946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2947$as_echo "$INSTALL" >&6; }
42ecbf5e 2948
c774eab1
AM
2949# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2950# It thinks the first close brace ends the variable substitution.
2951test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
252b5132 2952
42ecbf5e 2953test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
2954
2955test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2956
81ecdfbb
RW
2957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2958$as_echo_n "checking whether build environment is sane... " >&6; }
81ecdfbb
RW
2959# Reject unsafe characters in $srcdir or the absolute working directory
2960# name. Accept space and tab only in the latter.
2961am_lf='
2962'
2963case `pwd` in
2964 *[\\\"\#\$\&\'\`$am_lf]*)
d0ac1c44 2965 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
81ecdfbb
RW
2966esac
2967case $srcdir in
2968 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
d0ac1c44 2969 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
81ecdfbb
RW
2970esac
2971
d0ac1c44 2972# Do 'set' in a subshell so we don't clobber the current shell's
252b5132
RH
2973# arguments. Must try -L first in case configure is actually a
2974# symlink; some systems play weird games with the mod time of symlinks
2975# (eg FreeBSD returns the mod time of the symlink's containing
2976# directory).
2977if (
d0ac1c44
SM
2978 am_has_slept=no
2979 for am_try in 1 2; do
2980 echo "timestamp, slept: $am_has_slept" > conftest.file
2981 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2982 if test "$*" = "X"; then
2983 # -L didn't work.
2984 set X `ls -t "$srcdir/configure" conftest.file`
2985 fi
2986 if test "$*" != "X $srcdir/configure conftest.file" \
2987 && test "$*" != "X conftest.file $srcdir/configure"; then
2988
2989 # If neither matched, then we have a broken ls. This can happen
2990 # if, for instance, CONFIG_SHELL is bash and it inherits a
2991 # broken ls alias from the environment. This has actually
2992 # happened. Such a system could not be considered "sane".
2993 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2994 alias in your environment" "$LINENO" 5
2995 fi
2996 if test "$2" = conftest.file || test $am_try -eq 2; then
2997 break
2998 fi
2999 # Just in case.
3000 sleep 1
3001 am_has_slept=yes
3002 done
42ecbf5e 3003 test "$2" = conftest.file
252b5132
RH
3004 )
3005then
3006 # Ok.
3007 :
3008else
d0ac1c44 3009 as_fn_error $? "newly created file is older than distributed files!
81ecdfbb 3010Check your system clock" "$LINENO" 5
252b5132 3011fi
81ecdfbb
RW
3012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3013$as_echo "yes" >&6; }
d0ac1c44
SM
3014# If we didn't sleep, we still need to ensure time stamps of config.status and
3015# generated files are strictly newer.
3016am_sleep_pid=
3017if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3018 ( sleep 1 ) &
3019 am_sleep_pid=$!
3020fi
3021
3022rm -f conftest.file
3023
252b5132 3024test "$program_prefix" != NONE &&
81ecdfbb 3025 program_transform_name="s&^&$program_prefix&;$program_transform_name"
252b5132
RH
3026# Use a double $ so make ignores it.
3027test "$program_suffix" != NONE &&
81ecdfbb
RW
3028 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3029# Double any \ or $.
42ecbf5e 3030# By default was `s,x,x', remove it if useless.
81ecdfbb
RW
3031ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3032program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
42ecbf5e 3033
c774eab1
AM
3034# Expand $ac_aux_dir to an absolute path.
3035am_aux_dir=`cd "$ac_aux_dir" && pwd`
3036
81ecdfbb 3037if test x"${MISSING+set}" != xset; then
5bbe6ec5
NC
3038 case $am_aux_dir in
3039 *\ * | *\ *)
3040 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3041 *)
3042 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3043 esac
81ecdfbb 3044fi
42ecbf5e 3045# Use eval to expand $SHELL
d0ac1c44
SM
3046if eval "$MISSING --is-lightweight"; then
3047 am_missing_run="$MISSING "
42ecbf5e
DJ
3048else
3049 am_missing_run=
d0ac1c44
SM
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3051$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
81ecdfbb
RW
3052fi
3053
d0ac1c44 3054if test x"${install_sh+set}" != xset; then
81ecdfbb
RW
3055 case $am_aux_dir in
3056 *\ * | *\ *)
3057 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3058 *)
3059 install_sh="\${SHELL} $am_aux_dir/install-sh"
3060 esac
3061fi
3062
d0ac1c44
SM
3063# Installed binaries are usually stripped using 'strip' when the user
3064# run "make install-strip". However 'strip' might not be the right
81ecdfbb 3065# tool to use in cross-compilation environments, therefore Automake
d0ac1c44 3066# will honor the 'STRIP' environment variable to overrule this program.
81ecdfbb
RW
3067if test "$cross_compiling" != no; then
3068 if test -n "$ac_tool_prefix"; then
3069 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3070set dummy ${ac_tool_prefix}strip; ac_word=$2
3071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3072$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 3073if ${ac_cv_prog_STRIP+:} false; then :
81ecdfbb
RW
3074 $as_echo_n "(cached) " >&6
3075else
3076 if test -n "$STRIP"; then
3077 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3078else
3079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3080for as_dir in $PATH
3081do
3082 IFS=$as_save_IFS
3083 test -z "$as_dir" && as_dir=.
3084 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3085 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
81ecdfbb
RW
3086 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3088 break 2
3089 fi
3090done
3091 done
3092IFS=$as_save_IFS
3093
3094fi
3095fi
3096STRIP=$ac_cv_prog_STRIP
3097if test -n "$STRIP"; then
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3099$as_echo "$STRIP" >&6; }
3100else
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3102$as_echo "no" >&6; }
3103fi
3104
3105
3106fi
3107if test -z "$ac_cv_prog_STRIP"; then
3108 ac_ct_STRIP=$STRIP
3109 # Extract the first word of "strip", so it can be a program name with args.
3110set dummy strip; ac_word=$2
3111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3112$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 3113if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
81ecdfbb
RW
3114 $as_echo_n "(cached) " >&6
3115else
3116 if test -n "$ac_ct_STRIP"; then
3117 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3118else
3119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3120for as_dir in $PATH
3121do
3122 IFS=$as_save_IFS
3123 test -z "$as_dir" && as_dir=.
3124 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
81ecdfbb
RW
3126 ac_cv_prog_ac_ct_STRIP="strip"
3127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3128 break 2
3129 fi
3130done
3131 done
3132IFS=$as_save_IFS
3133
3134fi
3135fi
3136ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3137if test -n "$ac_ct_STRIP"; then
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3139$as_echo "$ac_ct_STRIP" >&6; }
3140else
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3142$as_echo "no" >&6; }
3143fi
3144
3145 if test "x$ac_ct_STRIP" = x; then
3146 STRIP=":"
3147 else
3148 case $cross_compiling:$ac_tool_warned in
3149yes:)
3150{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3151$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3152ac_tool_warned=yes ;;
3153esac
3154 STRIP=$ac_ct_STRIP
3155 fi
3156else
3157 STRIP="$ac_cv_prog_STRIP"
3158fi
3159
3160fi
3161INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3162
3163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3164$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3165if test -z "$MKDIR_P"; then
d0ac1c44 3166 if ${ac_cv_path_mkdir+:} false; then :
81ecdfbb
RW
3167 $as_echo_n "(cached) " >&6
3168else
3169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3170for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3171do
3172 IFS=$as_save_IFS
3173 test -z "$as_dir" && as_dir=.
3174 for ac_prog in mkdir gmkdir; do
3175 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3176 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
81ecdfbb
RW
3177 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3178 'mkdir (GNU coreutils) '* | \
3179 'mkdir (coreutils) '* | \
3180 'mkdir (fileutils) '4.1*)
3181 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3182 break 3;;
3183 esac
3184 done
3185 done
42ecbf5e 3186 done
81ecdfbb
RW
3187IFS=$as_save_IFS
3188
3189fi
3190
d0ac1c44 3191 test -d ./--version && rmdir ./--version
81ecdfbb
RW
3192 if test "${ac_cv_path_mkdir+set}" = set; then
3193 MKDIR_P="$ac_cv_path_mkdir -p"
42ecbf5e 3194 else
81ecdfbb
RW
3195 # As a last resort, use the slow shell script. Don't cache a
3196 # value for MKDIR_P within a source directory, because that will
3197 # break other packages using the cache if that directory is
3198 # removed, or if the value is a relative name.
81ecdfbb 3199 MKDIR_P="$ac_install_sh -d"
42ecbf5e
DJ
3200 fi
3201fi
81ecdfbb
RW
3202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3203$as_echo "$MKDIR_P" >&6; }
3204
42ecbf5e
DJ
3205for ac_prog in gawk mawk nawk awk
3206do
3207 # Extract the first word of "$ac_prog", so it can be a program name with args.
3208set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
3209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3210$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 3211if ${ac_cv_prog_AWK+:} false; then :
81ecdfbb 3212 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
3213else
3214 if test -n "$AWK"; then
3215 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3216else
3217as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3218for as_dir in $PATH
3219do
3220 IFS=$as_save_IFS
3221 test -z "$as_dir" && as_dir=.
81ecdfbb 3222 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3223 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42ecbf5e 3224 ac_cv_prog_AWK="$ac_prog"
81ecdfbb 3225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
3226 break 2
3227 fi
3228done
81ecdfbb
RW
3229 done
3230IFS=$as_save_IFS
42ecbf5e
DJ
3231
3232fi
3233fi
3234AWK=$ac_cv_prog_AWK
3235if test -n "$AWK"; then
81ecdfbb
RW
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3237$as_echo "$AWK" >&6; }
42ecbf5e 3238else
81ecdfbb
RW
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3240$as_echo "no" >&6; }
42ecbf5e 3241fi
252b5132 3242
81ecdfbb 3243
42ecbf5e
DJ
3244 test -n "$AWK" && break
3245done
252b5132 3246
81ecdfbb
RW
3247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3248$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3249set x ${MAKE-make}
3250ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
d0ac1c44 3251if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
81ecdfbb 3252 $as_echo_n "(cached) " >&6
252b5132 3253else
42ecbf5e 3254 cat >conftest.make <<\_ACEOF
81ecdfbb 3255SHELL = /bin/sh
252b5132 3256all:
81ecdfbb 3257 @echo '@@@%%%=$(MAKE)=@@@%%%'
42ecbf5e 3258_ACEOF
d0ac1c44 3259# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
81ecdfbb
RW
3260case `${MAKE-make} -f conftest.make 2>/dev/null` in
3261 *@@@%%%=?*=@@@%%%*)
3262 eval ac_cv_prog_make_${ac_make}_set=yes;;
3263 *)
3264 eval ac_cv_prog_make_${ac_make}_set=no;;
3265esac
42ecbf5e 3266rm -f conftest.make
252b5132 3267fi
81ecdfbb
RW
3268if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3270$as_echo "yes" >&6; }
252b5132
RH
3271 SET_MAKE=
3272else
81ecdfbb
RW
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3274$as_echo "no" >&6; }
252b5132
RH
3275 SET_MAKE="MAKE=${MAKE-make}"
3276fi
3277
42ecbf5e
DJ
3278rm -rf .tst 2>/dev/null
3279mkdir .tst 2>/dev/null
3280if test -d .tst; then
3281 am__leading_dot=.
3282else
3283 am__leading_dot=_
3284fi
3285rmdir .tst 2>/dev/null
3286
d0ac1c44
SM
3287# Check whether --enable-silent-rules was given.
3288if test "${enable_silent_rules+set}" = set; then :
3289 enableval=$enable_silent_rules;
3290fi
3291
3292case $enable_silent_rules in # (((
3293 yes) AM_DEFAULT_VERBOSITY=0;;
3294 no) AM_DEFAULT_VERBOSITY=1;;
3295 *) AM_DEFAULT_VERBOSITY=1;;
3296esac
3297am_make=${MAKE-make}
3298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3299$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3300if ${am_cv_make_support_nested_variables+:} false; then :
3301 $as_echo_n "(cached) " >&6
3302else
3303 if $as_echo 'TRUE=$(BAR$(V))
3304BAR0=false
3305BAR1=true
3306V=1
3307am__doit:
3308 @$(TRUE)
3309.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3310 am_cv_make_support_nested_variables=yes
3311else
3312 am_cv_make_support_nested_variables=no
3313fi
3314fi
3315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3316$as_echo "$am_cv_make_support_nested_variables" >&6; }
3317if test $am_cv_make_support_nested_variables = yes; then
3318 AM_V='$(V)'
3319 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3320else
3321 AM_V=$AM_DEFAULT_VERBOSITY
3322 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3323fi
3324AM_BACKSLASH='\'
3325
81ecdfbb
RW
3326if test "`cd $srcdir && pwd`" != "`pwd`"; then
3327 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3328 # is not polluted with repeated "-I."
3329 am__isrc=' -I$(srcdir)'
3330 # test to see if srcdir already configured
3331 if test -f $srcdir/config.status; then
d0ac1c44 3332 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
81ecdfbb 3333 fi
42ecbf5e 3334fi
252b5132 3335
42ecbf5e
DJ
3336# test whether we have cygpath
3337if test -z "$CYGPATH_W"; then
3338 if (cygpath --version) >/dev/null 2>/dev/null; then
3339 CYGPATH_W='cygpath -w'
3340 else
3341 CYGPATH_W=echo
3342 fi
252b5132 3343fi
42ecbf5e
DJ
3344
3345
3346# Define the identity of the package.
2e98a7bd 3347 PACKAGE='ld'
631ec08c 3348 VERSION='2.39.50'
42ecbf5e
DJ
3349
3350
3351cat >>confdefs.h <<_ACEOF
e5a52504 3352#define PACKAGE "$PACKAGE"
42ecbf5e
DJ
3353_ACEOF
3354
252b5132 3355
42ecbf5e 3356cat >>confdefs.h <<_ACEOF
e5a52504 3357#define VERSION "$VERSION"
42ecbf5e
DJ
3358_ACEOF
3359
3360# Some tools Automake needs.
3361
3362ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3363
3364
3365AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3366
3367
3368AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3369
3370
3371AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3372
e5a52504 3373
42ecbf5e 3374MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
e5a52504 3375
d0ac1c44
SM
3376# For better backward compatibility. To be removed once Automake 1.9.x
3377# dies out for good. For more background, see:
5bbe6ec5
NC
3378# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3379# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
d0ac1c44
SM
3380mkdir_p='$(MKDIR_P)'
3381
3382# We need awk for the "check" target (and possibly the TAP driver). The
3383# system "awk" is bad on some platforms.
6eb7d830
AM
3384# Always define AMTAR for backward compatibility. Yes, it's still used
3385# in the wild :-( We should find a proper way to deprecate it ...
3386AMTAR='$${TAR-tar}'
42ecbf5e 3387
d0ac1c44 3388
c774eab1
AM
3389# We'll loop over all known methods to create a tar archive until one works.
3390_am_tools='gnutar pax cpio none'
3391
3392am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3393
3394
42ecbf5e 3395
2469cfa2 3396
2469cfa2 3397
e5a52504 3398
d0ac1c44
SM
3399# POSIX will say in a future version that running "rm -f" with no argument
3400# is OK; and we want to be able to make that assumption in our Makefile
3401# recipes. So use an aggressive probe to check that the usage we want is
3402# actually supported "in the wild" to an acceptable degree.
3403# See automake bug#10828.
3404# To make any issue more visible, cause the running configure to be aborted
3405# by default if the 'rm' program in use doesn't match our expectations; the
3406# user can still override this though.
3407if rm -f && rm -fr && rm -rf; then : OK; else
3408 cat >&2 <<'END'
3409Oops!
3410
3411Your 'rm' program seems unable to run without file operands specified
3412on the command line, even when the '-f' option is present. This is contrary
3413to the behaviour of most rm programs out there, and not conforming with
3414the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3415
3416Please tell bug-automake@gnu.org about your system, including the value
3417of your $PATH and any error possibly output before this message. This
3418can help us improve future automake versions.
3419
3420END
3421 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3422 echo 'Configuration will proceed anyway, since you have set the' >&2
3423 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3424 echo >&2
3425 else
3426 cat >&2 <<'END'
3427Aborting the configuration process, to ensure you take notice of the issue.
3428
3429You can download and install GNU coreutils to get an 'rm' implementation
5bbe6ec5 3430that behaves properly: <http://www.gnu.org/software/coreutils/>.
d0ac1c44
SM
3431
3432If you want to complete the configuration process using your problematic
3433'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3434to "yes", and re-run configure.
3435
3436END
3437 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3438 fi
3439fi
3440
48b5f33a
MF
3441# Check whether --enable-silent-rules was given.
3442if test "${enable_silent_rules+set}" = set; then :
3443 enableval=$enable_silent_rules;
3444fi
3445
3446case $enable_silent_rules in # (((
3447 yes) AM_DEFAULT_VERBOSITY=0;;
3448 no) AM_DEFAULT_VERBOSITY=1;;
3449 *) AM_DEFAULT_VERBOSITY=0;;
3450esac
3451am_make=${MAKE-make}
3452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3453$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3454if ${am_cv_make_support_nested_variables+:} false; then :
3455 $as_echo_n "(cached) " >&6
3456else
3457 if $as_echo 'TRUE=$(BAR$(V))
3458BAR0=false
3459BAR1=true
3460V=1
3461am__doit:
3462 @$(TRUE)
3463.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3464 am_cv_make_support_nested_variables=yes
3465else
3466 am_cv_make_support_nested_variables=no
3467fi
3468fi
3469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3470$as_echo "$am_cv_make_support_nested_variables" >&6; }
3471if test $am_cv_make_support_nested_variables = yes; then
3472 AM_V='$(V)'
3473 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3474else
3475 AM_V=$AM_DEFAULT_VERBOSITY
3476 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3477fi
3478AM_BACKSLASH='\'
3479
42ecbf5e 3480
64ac50ac
RW
3481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3482$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3483 # Check whether --enable-maintainer-mode was given.
3484if test "${enable_maintainer_mode+set}" = set; then :
3485 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3486else
3487 USE_MAINTAINER_MODE=no
3488fi
3489
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3491$as_echo "$USE_MAINTAINER_MODE" >&6; }
3492 if test $USE_MAINTAINER_MODE = yes; then
3493 MAINTAINER_MODE_TRUE=
3494 MAINTAINER_MODE_FALSE='#'
3495else
3496 MAINTAINER_MODE_TRUE='#'
3497 MAINTAINER_MODE_FALSE=
3498fi
3499
3500 MAINT=$MAINTAINER_MODE_TRUE
3501
3502
3503
b879806f
AM
3504ac_ext=c
3505ac_cpp='$CPP $CPPFLAGS'
3506ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3507ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3508ac_compiler_gnu=$ac_cv_c_compiler_gnu
3509if test -n "$ac_tool_prefix"; then
3510 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3511set dummy ${ac_tool_prefix}gcc; ac_word=$2
3512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3513$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 3514if ${ac_cv_prog_CC+:} false; then :
b879806f
AM
3515 $as_echo_n "(cached) " >&6
3516else
3517 if test -n "$CC"; then
3518 ac_cv_prog_CC="$CC" # Let the user override the test.
3519else
3520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3521for as_dir in $PATH
3522do
3523 IFS=$as_save_IFS
3524 test -z "$as_dir" && as_dir=.
3525 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3526 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b879806f
AM
3527 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3529 break 2
3530 fi
3531done
3532 done
3533IFS=$as_save_IFS
d7040cdb 3534
81ecdfbb 3535fi
81ecdfbb 3536fi
b879806f
AM
3537CC=$ac_cv_prog_CC
3538if test -n "$CC"; then
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3540$as_echo "$CC" >&6; }
2469cfa2 3541else
b879806f
AM
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3543$as_echo "no" >&6; }
81ecdfbb 3544fi
d7040cdb
SE
3545
3546
b879806f
AM
3547fi
3548if test -z "$ac_cv_prog_CC"; then
3549 ac_ct_CC=$CC
3550 # Extract the first word of "gcc", so it can be a program name with args.
3551set dummy gcc; ac_word=$2
3552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3553$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 3554if ${ac_cv_prog_ac_ct_CC+:} false; then :
b879806f 3555 $as_echo_n "(cached) " >&6
e5a52504 3556else
b879806f
AM
3557 if test -n "$ac_ct_CC"; then
3558 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3559else
3560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3561for as_dir in $PATH
3562do
3563 IFS=$as_save_IFS
3564 test -z "$as_dir" && as_dir=.
3565 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3566 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b879806f
AM
3567 ac_cv_prog_ac_ct_CC="gcc"
3568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3569 break 2
3570 fi
3571done
3572 done
3573IFS=$as_save_IFS
d7040cdb 3574
81ecdfbb 3575fi
b879806f
AM
3576fi
3577ac_ct_CC=$ac_cv_prog_ac_ct_CC
3578if test -n "$ac_ct_CC"; then
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3580$as_echo "$ac_ct_CC" >&6; }
4fda8867 3581else
b879806f
AM
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3583$as_echo "no" >&6; }
4fda8867
NC
3584fi
3585
b879806f
AM
3586 if test "x$ac_ct_CC" = x; then
3587 CC=""
3588 else
3589 case $cross_compiling:$ac_tool_warned in
3590yes:)
3591{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3592$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3593ac_tool_warned=yes ;;
7fb9f789 3594esac
b879806f
AM
3595 CC=$ac_ct_CC
3596 fi
7fb9f789 3597else
b879806f 3598 CC="$ac_cv_prog_CC"
81ecdfbb
RW
3599fi
3600
b879806f
AM
3601if test -z "$CC"; then
3602 if test -n "$ac_tool_prefix"; then
3603 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3604set dummy ${ac_tool_prefix}cc; ac_word=$2
3605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3606$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 3607if ${ac_cv_prog_CC+:} false; then :
397841b5
AM
3608 $as_echo_n "(cached) " >&6
3609else
b879806f
AM
3610 if test -n "$CC"; then
3611 ac_cv_prog_CC="$CC" # Let the user override the test.
3612else
3613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3614for as_dir in $PATH
397841b5 3615do
b879806f
AM
3616 IFS=$as_save_IFS
3617 test -z "$as_dir" && as_dir=.
3618 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3619 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b879806f
AM
3620 ac_cv_prog_CC="${ac_tool_prefix}cc"
3621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3622 break 2
3623 fi
3624done
3625 done
3626IFS=$as_save_IFS
d7040cdb 3627
ce2cded5 3628fi
ce2cded5 3629fi
b879806f
AM
3630CC=$ac_cv_prog_CC
3631if test -n "$CC"; then
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3633$as_echo "$CC" >&6; }
3634else
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3636$as_echo "no" >&6; }
81ecdfbb
RW
3637fi
3638
d7040cdb 3639
b879806f 3640 fi
ce2cded5 3641fi
b879806f
AM
3642if test -z "$CC"; then
3643 # Extract the first word of "cc", so it can be a program name with args.
3644set dummy cc; ac_word=$2
3645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3646$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 3647if ${ac_cv_prog_CC+:} false; then :
b879806f 3648 $as_echo_n "(cached) " >&6
397841b5 3649else
b879806f
AM
3650 if test -n "$CC"; then
3651 ac_cv_prog_CC="$CC" # Let the user override the test.
3652else
3653 ac_prog_rejected=no
3654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3655for as_dir in $PATH
397841b5 3656do
b879806f
AM
3657 IFS=$as_save_IFS
3658 test -z "$as_dir" && as_dir=.
3659 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3660 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b879806f
AM
3661 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3662 ac_prog_rejected=yes
3663 continue
3664 fi
3665 ac_cv_prog_CC="cc"
3666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3667 break 2
3668 fi
3669done
3670 done
3671IFS=$as_save_IFS
d7040cdb 3672
b879806f
AM
3673if test $ac_prog_rejected = yes; then
3674 # We found a bogon in the path, so make sure we never use it.
3675 set dummy $ac_cv_prog_CC
3676 shift
3677 if test $# != 0; then
3678 # We chose a different compiler from the bogus one.
3679 # However, it has the same basename, so the bogon will be chosen
3680 # first if we set CC to just the basename; use the full file name.
3681 shift
3682 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3683 fi
397841b5 3684fi
397841b5 3685fi
b879806f
AM
3686fi
3687CC=$ac_cv_prog_CC
3688if test -n "$CC"; then
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3690$as_echo "$CC" >&6; }
397841b5 3691else
b879806f
AM
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3693$as_echo "no" >&6; }
ce2cded5 3694fi
d7040cdb 3695
397841b5 3696
b879806f
AM
3697fi
3698if test -z "$CC"; then
3699 if test -n "$ac_tool_prefix"; then
3700 for ac_prog in cl.exe
3701 do
3702 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3703set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3705$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 3706if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 3707 $as_echo_n "(cached) " >&6
d7040cdb 3708else
b879806f
AM
3709 if test -n "$CC"; then
3710 ac_cv_prog_CC="$CC" # Let the user override the test.
3711else
3712as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3713for as_dir in $PATH
d7040cdb
SE
3714do
3715 IFS=$as_save_IFS
3716 test -z "$as_dir" && as_dir=.
81ecdfbb 3717 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3718 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b879806f
AM
3719 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3721 break 2
3722 fi
3723done
397841b5
AM
3724 done
3725IFS=$as_save_IFS
d7040cdb 3726
252b5132 3727fi
b879806f
AM
3728fi
3729CC=$ac_cv_prog_CC
3730if test -n "$CC"; then
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3732$as_echo "$CC" >&6; }
3733else
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3735$as_echo "no" >&6; }
3736fi
397841b5
AM
3737
3738
b879806f
AM
3739 test -n "$CC" && break
3740 done
3741fi
3742if test -z "$CC"; then
3743 ac_ct_CC=$CC
3744 for ac_prog in cl.exe
3745do
3746 # Extract the first word of "$ac_prog", so it can be a program name with args.
3747set dummy $ac_prog; ac_word=$2
3748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3749$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 3750if ${ac_cv_prog_ac_ct_CC+:} false; then :
397841b5
AM
3751 $as_echo_n "(cached) " >&6
3752else
b879806f
AM
3753 if test -n "$ac_ct_CC"; then
3754 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3755else
3756as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3757for as_dir in $PATH
397841b5
AM
3758do
3759 IFS=$as_save_IFS
3760 test -z "$as_dir" && as_dir=.
397841b5 3761 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3762 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b879806f
AM
3763 ac_cv_prog_ac_ct_CC="$ac_prog"
3764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3765 break 2
3766 fi
3767done
397841b5
AM
3768 done
3769IFS=$as_save_IFS
397841b5 3770
397841b5 3771fi
397841b5 3772fi
b879806f
AM
3773ac_ct_CC=$ac_cv_prog_ac_ct_CC
3774if test -n "$ac_ct_CC"; then
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3776$as_echo "$ac_ct_CC" >&6; }
3777else
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3779$as_echo "no" >&6; }
397841b5
AM
3780fi
3781
397841b5 3782
b879806f
AM
3783 test -n "$ac_ct_CC" && break
3784done
397841b5 3785
b879806f
AM
3786 if test "x$ac_ct_CC" = x; then
3787 CC=""
3788 else
3789 case $cross_compiling:$ac_tool_warned in
3790yes:)
3791{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3792$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3793ac_tool_warned=yes ;;
397841b5 3794esac
b879806f
AM
3795 CC=$ac_ct_CC
3796 fi
397841b5
AM
3797fi
3798
397841b5
AM
3799fi
3800
3801
b879806f
AM
3802test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3803$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
3804as_fn_error $? "no acceptable C compiler found in \$PATH
3805See \`config.log' for more details" "$LINENO" 5; }
397841b5 3806
b879806f
AM
3807# Provide some information about the compiler.
3808$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3809set X $ac_compile
3810ac_compiler=$2
3811for ac_option in --version -v -V -qversion; do
3812 { { ac_try="$ac_compiler $ac_option >&5"
3813case "(($ac_try" in
3814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3815 *) ac_try_echo=$ac_try;;
3816esac
3817eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3818$as_echo "$ac_try_echo"; } >&5
c774eab1
AM
3819 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3820 ac_status=$?
3821 if test -s conftest.err; then
3822 sed '10a\
3823... rest of stderr output deleted ...
3824 10q' conftest.err >conftest.er1
3825 cat conftest.er1 >&5
3826 fi
3827 rm -f conftest.er1 conftest.err
3828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3829 test $ac_status = 0; }
3830done
3831
3832cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3833/* end confdefs.h. */
3834
3835int
3836main ()
3837{
3838
3839 ;
3840 return 0;
3841}
3842_ACEOF
3843ac_clean_files_save=$ac_clean_files
3844ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3845# Try to create an executable without -o first, disregard a.out.
3846# It will help us diagnose broken compilers, and finding out an intuition
3847# of exeext.
3848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3849$as_echo_n "checking whether the C compiler works... " >&6; }
3850ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3851
3852# The possible output files:
3853ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3854
3855ac_rmfiles=
3856for ac_file in $ac_files
3857do
3858 case $ac_file in
3859 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3860 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3861 esac
3862done
3863rm -f $ac_rmfiles
3864
3865if { { ac_try="$ac_link_default"
3866case "(($ac_try" in
3867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3868 *) ac_try_echo=$ac_try;;
3869esac
3870eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3871$as_echo "$ac_try_echo"; } >&5
3872 (eval "$ac_link_default") 2>&5
3873 ac_status=$?
3874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3875 test $ac_status = 0; }; then :
3876 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3877# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3878# in a Makefile. We should not override ac_cv_exeext if it was cached,
3879# so that the user can short-circuit this test for compilers unknown to
3880# Autoconf.
3881for ac_file in $ac_files ''
3882do
3883 test -f "$ac_file" || continue
3884 case $ac_file in
3885 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3886 ;;
3887 [ab].out )
3888 # We found the default executable, but exeext='' is most
3889 # certainly right.
3890 break;;
3891 *.* )
3892 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3893 then :; else
3894 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3895 fi
3896 # We set ac_cv_exeext here because the later test for it is not
3897 # safe: cross compilers may not add the suffix if given an `-o'
3898 # argument, so we may need to know it at that point already.
3899 # Even if this section looks crufty: it has the advantage of
3900 # actually working.
3901 break;;
3902 * )
3903 break;;
3904 esac
3905done
3906test "$ac_cv_exeext" = no && ac_cv_exeext=
3907
3908else
3909 ac_file=''
3910fi
3911if test -z "$ac_file"; then :
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3913$as_echo "no" >&6; }
3914$as_echo "$as_me: failed program was:" >&5
3915sed 's/^/| /' conftest.$ac_ext >&5
3916
3917{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3918$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3919as_fn_error 77 "C compiler cannot create executables
3920See \`config.log' for more details" "$LINENO" 5; }
3921else
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3923$as_echo "yes" >&6; }
3924fi
3925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3926$as_echo_n "checking for C compiler default output file name... " >&6; }
3927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3928$as_echo "$ac_file" >&6; }
3929ac_exeext=$ac_cv_exeext
3930
3931rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3932ac_clean_files=$ac_clean_files_save
3933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3934$as_echo_n "checking for suffix of executables... " >&6; }
3935if { { ac_try="$ac_link"
3936case "(($ac_try" in
3937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3938 *) ac_try_echo=$ac_try;;
3939esac
3940eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3941$as_echo "$ac_try_echo"; } >&5
3942 (eval "$ac_link") 2>&5
3943 ac_status=$?
3944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3945 test $ac_status = 0; }; then :
3946 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3947# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3948# work properly (i.e., refer to `conftest.exe'), while it won't with
3949# `rm'.
3950for ac_file in conftest.exe conftest conftest.*; do
3951 test -f "$ac_file" || continue
3952 case $ac_file in
3953 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3954 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3955 break;;
3956 * ) break;;
3957 esac
3958done
3959else
3960 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3961$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3962as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3963See \`config.log' for more details" "$LINENO" 5; }
3964fi
3965rm -f conftest conftest$ac_cv_exeext
3966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3967$as_echo "$ac_cv_exeext" >&6; }
3968
3969rm -f conftest.$ac_ext
3970EXEEXT=$ac_cv_exeext
3971ac_exeext=$EXEEXT
3972cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3973/* end confdefs.h. */
3974#include <stdio.h>
3975int
3976main ()
3977{
3978FILE *f = fopen ("conftest.out", "w");
3979 return ferror (f) || fclose (f) != 0;
3980
3981 ;
3982 return 0;
3983}
3984_ACEOF
3985ac_clean_files="$ac_clean_files conftest.out"
3986# Check that the compiler produces executables we can run. If not, either
3987# the compiler is broken, or we cross compile.
3988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3989$as_echo_n "checking whether we are cross compiling... " >&6; }
3990if test "$cross_compiling" != yes; then
3991 { { ac_try="$ac_link"
3992case "(($ac_try" in
3993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3994 *) ac_try_echo=$ac_try;;
3995esac
3996eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3997$as_echo "$ac_try_echo"; } >&5
3998 (eval "$ac_link") 2>&5
3999 ac_status=$?
4000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4001 test $ac_status = 0; }
4002 if { ac_try='./conftest$ac_cv_exeext'
4003 { { case "(($ac_try" in
4004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4005 *) ac_try_echo=$ac_try;;
4006esac
4007eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4008$as_echo "$ac_try_echo"; } >&5
4009 (eval "$ac_try") 2>&5
4010 ac_status=$?
4011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4012 test $ac_status = 0; }; }; then
4013 cross_compiling=no
4014 else
4015 if test "$cross_compiling" = maybe; then
4016 cross_compiling=yes
4017 else
4018 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4019$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4020as_fn_error $? "cannot run C compiled programs.
4021If you meant to cross compile, use \`--host'.
4022See \`config.log' for more details" "$LINENO" 5; }
4023 fi
4024 fi
4025fi
4026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4027$as_echo "$cross_compiling" >&6; }
4028
4029rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4030ac_clean_files=$ac_clean_files_save
4031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4032$as_echo_n "checking for suffix of object files... " >&6; }
4033if ${ac_cv_objext+:} false; then :
4034 $as_echo_n "(cached) " >&6
4035else
4036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4037/* end confdefs.h. */
4038
4039int
4040main ()
4041{
4042
4043 ;
4044 return 0;
4045}
4046_ACEOF
4047rm -f conftest.o conftest.obj
4048if { { ac_try="$ac_compile"
4049case "(($ac_try" in
4050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4051 *) ac_try_echo=$ac_try;;
4052esac
4053eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4054$as_echo "$ac_try_echo"; } >&5
4055 (eval "$ac_compile") 2>&5
b879806f 4056 ac_status=$?
b879806f 4057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
c774eab1
AM
4058 test $ac_status = 0; }; then :
4059 for ac_file in conftest.o conftest.obj conftest.*; do
4060 test -f "$ac_file" || continue;
4061 case $ac_file in
4062 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4063 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4064 break;;
4065 esac
b879806f 4066done
c774eab1
AM
4067else
4068 $as_echo "$as_me: failed program was:" >&5
4069sed 's/^/| /' conftest.$ac_ext >&5
397841b5 4070
c774eab1
AM
4071{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4072$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4073as_fn_error $? "cannot compute suffix of object files: cannot compile
4074See \`config.log' for more details" "$LINENO" 5; }
4075fi
4076rm -f conftest.$ac_cv_objext conftest.$ac_ext
4077fi
4078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4079$as_echo "$ac_cv_objext" >&6; }
4080OBJEXT=$ac_cv_objext
4081ac_objext=$OBJEXT
b879806f
AM
4082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4083$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
d0ac1c44 4084if ${ac_cv_c_compiler_gnu+:} false; then :
44350750
NC
4085 $as_echo_n "(cached) " >&6
4086else
4087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4088/* end confdefs.h. */
b879806f 4089
44350750
NC
4090int
4091main ()
4092{
b879806f
AM
4093#ifndef __GNUC__
4094 choke me
4095#endif
4096
4097 ;
44350750
NC
4098 return 0;
4099}
4100_ACEOF
b879806f
AM
4101if ac_fn_c_try_compile "$LINENO"; then :
4102 ac_compiler_gnu=yes
44350750 4103else
b879806f 4104 ac_compiler_gnu=no
44350750 4105fi
b879806f
AM
4106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4107ac_cv_c_compiler_gnu=$ac_compiler_gnu
4108
44350750 4109fi
b879806f
AM
4110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4111$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4112if test $ac_compiler_gnu = yes; then
4113 GCC=yes
4114else
4115 GCC=
4116fi
4117ac_test_CFLAGS=${CFLAGS+set}
4118ac_save_CFLAGS=$CFLAGS
4119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4120$as_echo_n "checking whether $CC accepts -g... " >&6; }
d0ac1c44 4121if ${ac_cv_prog_cc_g+:} false; then :
b879806f
AM
4122 $as_echo_n "(cached) " >&6
4123else
4124 ac_save_c_werror_flag=$ac_c_werror_flag
4125 ac_c_werror_flag=yes
4126 ac_cv_prog_cc_g=no
4127 CFLAGS="-g"
4128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4129/* end confdefs.h. */
44350750 4130
b879806f
AM
4131int
4132main ()
4133{
44350750 4134
b879806f
AM
4135 ;
4136 return 0;
4137}
4138_ACEOF
4139if ac_fn_c_try_compile "$LINENO"; then :
4140 ac_cv_prog_cc_g=yes
4141else
4142 CFLAGS=""
4143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4144/* end confdefs.h. */
4145
4146int
4147main ()
4148{
44350750 4149
b879806f
AM
4150 ;
4151 return 0;
4152}
4153_ACEOF
4154if ac_fn_c_try_compile "$LINENO"; then :
44350750 4155
b879806f
AM
4156else
4157 ac_c_werror_flag=$ac_save_c_werror_flag
4158 CFLAGS="-g"
4159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4160/* end confdefs.h. */
397841b5 4161
b879806f
AM
4162int
4163main ()
4164{
397841b5 4165
b879806f
AM
4166 ;
4167 return 0;
4168}
4169_ACEOF
4170if ac_fn_c_try_compile "$LINENO"; then :
4171 ac_cv_prog_cc_g=yes
4172fi
4173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4174fi
4175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4176fi
4177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4178 ac_c_werror_flag=$ac_save_c_werror_flag
4179fi
4180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4181$as_echo "$ac_cv_prog_cc_g" >&6; }
4182if test "$ac_test_CFLAGS" = set; then
4183 CFLAGS=$ac_save_CFLAGS
4184elif test $ac_cv_prog_cc_g = yes; then
4185 if test "$GCC" = yes; then
4186 CFLAGS="-g -O2"
4187 else
4188 CFLAGS="-g"
4189 fi
4190else
4191 if test "$GCC" = yes; then
4192 CFLAGS="-O2"
4193 else
4194 CFLAGS=
4195 fi
4196fi
4197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4198$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
d0ac1c44 4199if ${ac_cv_prog_cc_c89+:} false; then :
b879806f
AM
4200 $as_echo_n "(cached) " >&6
4201else
4202 ac_cv_prog_cc_c89=no
4203ac_save_CC=$CC
4204cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4205/* end confdefs.h. */
4206#include <stdarg.h>
4207#include <stdio.h>
d0ac1c44 4208struct stat;
b879806f
AM
4209/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4210struct buf { int x; };
4211FILE * (*rcsopen) (struct buf *, struct stat *, int);
4212static char *e (p, i)
4213 char **p;
4214 int i;
4215{
4216 return p[i];
4217}
4218static char *f (char * (*g) (char **, int), char **p, ...)
4219{
4220 char *s;
4221 va_list v;
4222 va_start (v,p);
4223 s = g (p, va_arg (v,int));
4224 va_end (v);
4225 return s;
4226}
df7b86aa 4227
b879806f
AM
4228/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4229 function prototypes and stuff, but not '\xHH' hex character constants.
4230 These don't provoke an error unfortunately, instead are silently treated
4231 as 'x'. The following induces an error, until -std is added to get
4232 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4233 array size at least. It's necessary to write '\x00'==0 to get something
4234 that's true only with -std. */
4235int osf4_cc_array ['\x00' == 0 ? 1 : -1];
df7b86aa 4236
b879806f
AM
4237/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4238 inside strings and character constants. */
4239#define FOO(x) 'x'
4240int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4241
4242int test (int i, double x);
4243struct s1 {int (*f) (int a);};
4244struct s2 {int (*f) (double a);};
4245int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4246int argc;
4247char **argv;
4248int
4249main ()
4250{
4251return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4252 ;
4253 return 0;
4254}
4255_ACEOF
4256for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4257 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4258do
4259 CC="$ac_save_CC $ac_arg"
4260 if ac_fn_c_try_compile "$LINENO"; then :
4261 ac_cv_prog_cc_c89=$ac_arg
397841b5 4262fi
b879806f
AM
4263rm -f core conftest.err conftest.$ac_objext
4264 test "x$ac_cv_prog_cc_c89" != "xno" && break
4265done
4266rm -f conftest.$ac_ext
4267CC=$ac_save_CC
4268
397841b5 4269fi
b879806f
AM
4270# AC_CACHE_VAL
4271case "x$ac_cv_prog_cc_c89" in
4272 x)
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4274$as_echo "none needed" >&6; } ;;
4275 xno)
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4277$as_echo "unsupported" >&6; } ;;
4278 *)
4279 CC="$CC $ac_cv_prog_cc_c89"
4280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4281$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4282esac
4283if test "x$ac_cv_prog_cc_c89" != xno; then :
397841b5 4284
b879806f 4285fi
397841b5
AM
4286
4287ac_ext=c
4288ac_cpp='$CPP $CPPFLAGS'
4289ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4290ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4291ac_compiler_gnu=$ac_cv_c_compiler_gnu
b879806f 4292
d0ac1c44
SM
4293ac_ext=c
4294ac_cpp='$CPP $CPPFLAGS'
4295ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4296ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4297ac_compiler_gnu=$ac_cv_c_compiler_gnu
4298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4299$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4300if ${am_cv_prog_cc_c_o+:} false; then :
4301 $as_echo_n "(cached) " >&6
4302else
4303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4304/* end confdefs.h. */
4305
4306int
4307main ()
4308{
4309
4310 ;
4311 return 0;
4312}
4313_ACEOF
4314 # Make sure it works both with $CC and with simple cc.
4315 # Following AC_PROG_CC_C_O, we do the test twice because some
4316 # compilers refuse to overwrite an existing .o file with -o,
4317 # though they will create one.
4318 am_cv_prog_cc_c_o=yes
4319 for am_i in 1 2; do
4320 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4321 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4322 ac_status=$?
4323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4324 (exit $ac_status); } \
4325 && test -f conftest2.$ac_objext; then
4326 : OK
4327 else
4328 am_cv_prog_cc_c_o=no
4329 break
4330 fi
4331 done
4332 rm -f core conftest*
4333 unset am_i
4334fi
4335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4336$as_echo "$am_cv_prog_cc_c_o" >&6; }
4337if test "$am_cv_prog_cc_c_o" != yes; then
4338 # Losing compiler, so override with the script.
4339 # FIXME: It is wrong to rewrite CC.
4340 # But if we don't then we get into trouble of one sort or another.
4341 # A longer-term fix would be to have automake use am__CC in this case,
4342 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4343 CC="$am_aux_dir/compile $CC"
4344fi
4345ac_ext=c
4346ac_cpp='$CPP $CPPFLAGS'
4347ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4348ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4349ac_compiler_gnu=$ac_cv_c_compiler_gnu
4350
c774eab1
AM
4351DEPDIR="${am__leading_dot}deps"
4352
4353ac_config_commands="$ac_config_commands depfiles"
4354
5bbe6ec5
NC
4355
4356am_make=${MAKE-make}
4357cat > confinc << 'END'
c774eab1 4358am__doit:
5bbe6ec5 4359 @echo this is the am__doit target
c774eab1
AM
4360.PHONY: am__doit
4361END
5bbe6ec5
NC
4362# If we don't find an include directive, just comment out the code.
4363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4364$as_echo_n "checking for style of include used by $am_make... " >&6; }
c774eab1
AM
4365am__include="#"
4366am__quote=
5bbe6ec5
NC
4367_am_result=none
4368# First try GNU make style include.
4369echo "include confinc" > confmf
4370# Ignore all kinds of additional output from 'make'.
4371case `$am_make -s -f confmf 2> /dev/null` in #(
4372*the\ am__doit\ target*)
4373 am__include=include
4374 am__quote=
4375 _am_result=GNU
4376 ;;
631ec08c 4377esac
5bbe6ec5
NC
4378# Now try BSD make style include.
4379if test "$am__include" = "#"; then
4380 echo '.include "confinc"' > confmf
4381 case `$am_make -s -f confmf 2> /dev/null` in #(
4382 *the\ am__doit\ target*)
4383 am__include=.include
4384 am__quote="\""
4385 _am_result=BSD
4386 ;;
4387 esac
4388fi
4389
4390
4391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4392$as_echo "$_am_result" >&6; }
4393rm -f confinc confmf
c774eab1
AM
4394
4395# Check whether --enable-dependency-tracking was given.
4396if test "${enable_dependency_tracking+set}" = set; then :
4397 enableval=$enable_dependency_tracking;
4398fi
4399
4400if test "x$enable_dependency_tracking" != xno; then
4401 am_depcomp="$ac_aux_dir/depcomp"
4402 AMDEPBACKSLASH='\'
4403 am__nodep='_no'
4404fi
4405 if test "x$enable_dependency_tracking" != xno; then
4406 AMDEP_TRUE=
4407 AMDEP_FALSE='#'
4408else
4409 AMDEP_TRUE='#'
4410 AMDEP_FALSE=
4411fi
4412
4413
4414
4415depcc="$CC" am_compiler_list=
4416
4417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4418$as_echo_n "checking dependency style of $depcc... " >&6; }
4419if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4420 $as_echo_n "(cached) " >&6
4421else
4422 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4423 # We make a subdir and do the tests there. Otherwise we can end up
4424 # making bogus files that we don't know about and never remove. For
4425 # instance it was reported that on HP-UX the gcc test will end up
4426 # making a dummy file named 'D' -- because '-MD' means "put the output
4427 # in D".
4428 rm -rf conftest.dir
4429 mkdir conftest.dir
4430 # Copy depcomp to subdir because otherwise we won't find it if we're
4431 # using a relative directory.
4432 cp "$am_depcomp" conftest.dir
4433 cd conftest.dir
4434 # We will build objects and dependencies in a subdirectory because
4435 # it helps to detect inapplicable dependency modes. For instance
4436 # both Tru64's cc and ICC support -MD to output dependencies as a
4437 # side effect of compilation, but ICC will put the dependencies in
4438 # the current directory while Tru64 will put them in the object
4439 # directory.
4440 mkdir sub
4441
4442 am_cv_CC_dependencies_compiler_type=none
4443 if test "$am_compiler_list" = ""; then
4444 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4445 fi
4446 am__universal=false
4447 case " $depcc " in #(
4448 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4449 esac
4450
4451 for depmode in $am_compiler_list; do
4452 # Setup a source with many dependencies, because some compilers
4453 # like to wrap large dependency lists on column 80 (with \), and
4454 # we should not choose a depcomp mode which is confused by this.
4455 #
4456 # We need to recreate these files for each test, as the compiler may
4457 # overwrite some of them when testing with obscure command lines.
4458 # This happens at least with the AIX C compiler.
4459 : > sub/conftest.c
4460 for i in 1 2 3 4 5 6; do
4461 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4462 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4463 # Solaris 10 /bin/sh.
4464 echo '/* dummy */' > sub/conftst$i.h
4465 done
4466 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4467
4468 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4469 # mode. It turns out that the SunPro C++ compiler does not properly
4470 # handle '-M -o', and we need to detect this. Also, some Intel
4471 # versions had trouble with output in subdirs.
4472 am__obj=sub/conftest.${OBJEXT-o}
4473 am__minus_obj="-o $am__obj"
4474 case $depmode in
4475 gcc)
4476 # This depmode causes a compiler race in universal mode.
4477 test "$am__universal" = false || continue
4478 ;;
4479 nosideeffect)
4480 # After this tag, mechanisms are not by side-effect, so they'll
4481 # only be used when explicitly requested.
4482 if test "x$enable_dependency_tracking" = xyes; then
4483 continue
4484 else
4485 break
4486 fi
4487 ;;
4488 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4489 # This compiler won't grok '-c -o', but also, the minuso test has
4490 # not run yet. These depmodes are late enough in the game, and
4491 # so weak that their functioning should not be impacted.
4492 am__obj=conftest.${OBJEXT-o}
4493 am__minus_obj=
4494 ;;
4495 none) break ;;
4496 esac
4497 if depmode=$depmode \
4498 source=sub/conftest.c object=$am__obj \
4499 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4500 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4501 >/dev/null 2>conftest.err &&
4502 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4503 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4504 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4505 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4506 # icc doesn't choke on unknown options, it will just issue warnings
4507 # or remarks (even with -Werror). So we grep stderr for any message
4508 # that says an option was ignored or not supported.
4509 # When given -MP, icc 7.0 and 7.1 complain thusly:
4510 # icc: Command line warning: ignoring option '-M'; no argument required
4511 # The diagnosis changed in icc 8.0:
4512 # icc: Command line remark: option '-MP' not supported
4513 if (grep 'ignoring option' conftest.err ||
4514 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4515 am_cv_CC_dependencies_compiler_type=$depmode
4516 break
4517 fi
4518 fi
4519 done
4520
4521 cd ..
4522 rm -rf conftest.dir
4523else
4524 am_cv_CC_dependencies_compiler_type=none
4525fi
4526
4527fi
4528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4529$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4530CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4531
4532 if
4533 test "x$enable_dependency_tracking" != xno \
4534 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4535 am__fastdepCC_TRUE=
4536 am__fastdepCC_FALSE='#'
4537else
4538 am__fastdepCC_TRUE='#'
4539 am__fastdepCC_FALSE=
4540fi
4541
d0ac1c44 4542
b879806f
AM
4543ac_ext=cpp
4544ac_cpp='$CXXCPP $CPPFLAGS'
4545ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4546ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4547ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4548if test -z "$CXX"; then
4549 if test -n "$CCC"; then
4550 CXX=$CCC
4551 else
4552 if test -n "$ac_tool_prefix"; then
4553 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4554 do
4555 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4556set dummy $ac_tool_prefix$ac_prog; ac_word=$2
397841b5
AM
4557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4558$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4559if ${ac_cv_prog_CXX+:} false; then :
397841b5
AM
4560 $as_echo_n "(cached) " >&6
4561else
b879806f
AM
4562 if test -n "$CXX"; then
4563 ac_cv_prog_CXX="$CXX" # Let the user override the test.
397841b5
AM
4564else
4565as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4566for as_dir in $PATH
4567do
4568 IFS=$as_save_IFS
4569 test -z "$as_dir" && as_dir=.
4570 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4571 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b879806f 4572 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
397841b5
AM
4573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4574 break 2
4575 fi
4576done
4577 done
4578IFS=$as_save_IFS
4579
4580fi
4581fi
b879806f
AM
4582CXX=$ac_cv_prog_CXX
4583if test -n "$CXX"; then
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4585$as_echo "$CXX" >&6; }
397841b5
AM
4586else
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4588$as_echo "no" >&6; }
4589fi
4590
4591
b879806f
AM
4592 test -n "$CXX" && break
4593 done
397841b5 4594fi
b879806f
AM
4595if test -z "$CXX"; then
4596 ac_ct_CXX=$CXX
4597 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4598do
4599 # Extract the first word of "$ac_prog", so it can be a program name with args.
4600set dummy $ac_prog; ac_word=$2
397841b5
AM
4601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4602$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4603if ${ac_cv_prog_ac_ct_CXX+:} false; then :
81ecdfbb 4604 $as_echo_n "(cached) " >&6
252b5132 4605else
b879806f
AM
4606 if test -n "$ac_ct_CXX"; then
4607 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
252b5132 4608else
ce2cded5
L
4609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4610for as_dir in $PATH
4611do
4612 IFS=$as_save_IFS
4613 test -z "$as_dir" && as_dir=.
81ecdfbb 4614 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4615 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b879806f 4616 ac_cv_prog_ac_ct_CXX="$ac_prog"
81ecdfbb 4617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
4618 break 2
4619 fi
4620done
81ecdfbb
RW
4621 done
4622IFS=$as_save_IFS
4623
252b5132
RH
4624fi
4625fi
b879806f
AM
4626ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4627if test -n "$ac_ct_CXX"; then
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4629$as_echo "$ac_ct_CXX" >&6; }
d7040cdb 4630else
81ecdfbb
RW
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4632$as_echo "no" >&6; }
d7040cdb
SE
4633fi
4634
81ecdfbb 4635
b879806f 4636 test -n "$ac_ct_CXX" && break
d7040cdb 4637done
d7040cdb 4638
b879806f
AM
4639 if test "x$ac_ct_CXX" = x; then
4640 CXX="g++"
81ecdfbb
RW
4641 else
4642 case $cross_compiling:$ac_tool_warned in
4643yes:)
4644{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4645$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4646ac_tool_warned=yes ;;
4647esac
b879806f 4648 CXX=$ac_ct_CXX
81ecdfbb 4649 fi
d7040cdb
SE
4650fi
4651
b879806f 4652 fi
d7040cdb 4653fi
ce2cded5 4654# Provide some information about the compiler.
b879806f 4655$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
81ecdfbb
RW
4656set X $ac_compile
4657ac_compiler=$2
4658for ac_option in --version -v -V -qversion; do
4659 { { ac_try="$ac_compiler $ac_option >&5"
4660case "(($ac_try" in
4661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4662 *) ac_try_echo=$ac_try;;
4663esac
4664eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4665$as_echo "$ac_try_echo"; } >&5
4666 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
ce2cded5 4667 ac_status=$?
81ecdfbb
RW
4668 if test -s conftest.err; then
4669 sed '10a\
4670... rest of stderr output deleted ...
4671 10q' conftest.err >conftest.er1
4672 cat conftest.er1 >&5
81ecdfbb 4673 fi
d0ac1c44 4674 rm -f conftest.er1 conftest.err
81ecdfbb
RW
4675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4676 test $ac_status = 0; }
4677done
d7040cdb 4678
b879806f
AM
4679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4680$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
d0ac1c44 4681if ${ac_cv_cxx_compiler_gnu+:} false; then :
81ecdfbb 4682 $as_echo_n "(cached) " >&6
d7040cdb 4683else
81ecdfbb 4684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 4685/* end confdefs.h. */
d7040cdb 4686
ce2cded5
L
4687int
4688main ()
4689{
4690#ifndef __GNUC__
4691 choke me
4692#endif
4693
4694 ;
4695 return 0;
4696}
4697_ACEOF
b879806f 4698if ac_fn_cxx_try_compile "$LINENO"; then :
ce2cded5 4699 ac_compiler_gnu=yes
d7040cdb 4700else
81ecdfbb 4701 ac_compiler_gnu=no
d7040cdb 4702fi
81ecdfbb 4703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b879806f 4704ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
d7040cdb 4705
ce2cded5 4706fi
b879806f
AM
4707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4708$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
81ecdfbb 4709if test $ac_compiler_gnu = yes; then
b879806f 4710 GXX=yes
81ecdfbb 4711else
b879806f 4712 GXX=
81ecdfbb 4713fi
b879806f
AM
4714ac_test_CXXFLAGS=${CXXFLAGS+set}
4715ac_save_CXXFLAGS=$CXXFLAGS
4716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4717$as_echo_n "checking whether $CXX accepts -g... " >&6; }
d0ac1c44 4718if ${ac_cv_prog_cxx_g+:} false; then :
81ecdfbb
RW
4719 $as_echo_n "(cached) " >&6
4720else
b879806f
AM
4721 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4722 ac_cxx_werror_flag=yes
4723 ac_cv_prog_cxx_g=no
4724 CXXFLAGS="-g"
81ecdfbb 4725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 4726/* end confdefs.h. */
d7040cdb 4727
ce2cded5
L
4728int
4729main ()
4730{
d7040cdb 4731
ce2cded5
L
4732 ;
4733 return 0;
4734}
4735_ACEOF
b879806f
AM
4736if ac_fn_cxx_try_compile "$LINENO"; then :
4737 ac_cv_prog_cxx_g=yes
ce2cded5 4738else
b879806f 4739 CXXFLAGS=""
81ecdfbb
RW
4740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4741/* end confdefs.h. */
4742
4743int
4744main ()
4745{
4746
4747 ;
4748 return 0;
4749}
4750_ACEOF
b879806f 4751if ac_fn_cxx_try_compile "$LINENO"; then :
81ecdfbb
RW
4752
4753else
b879806f
AM
4754 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4755 CXXFLAGS="-g"
81ecdfbb
RW
4756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4757/* end confdefs.h. */
4758
4759int
4760main ()
4761{
d7040cdb 4762
81ecdfbb
RW
4763 ;
4764 return 0;
4765}
4766_ACEOF
b879806f
AM
4767if ac_fn_cxx_try_compile "$LINENO"; then :
4768 ac_cv_prog_cxx_g=yes
81ecdfbb
RW
4769fi
4770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4771fi
4772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d7040cdb 4773fi
81ecdfbb 4774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b879806f 4775 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
ce2cded5 4776fi
b879806f
AM
4777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4778$as_echo "$ac_cv_prog_cxx_g" >&6; }
4779if test "$ac_test_CXXFLAGS" = set; then
4780 CXXFLAGS=$ac_save_CXXFLAGS
4781elif test $ac_cv_prog_cxx_g = yes; then
4782 if test "$GXX" = yes; then
4783 CXXFLAGS="-g -O2"
ce2cded5 4784 else
b879806f 4785 CXXFLAGS="-g"
ce2cded5 4786 fi
d7040cdb 4787else
b879806f
AM
4788 if test "$GXX" = yes; then
4789 CXXFLAGS="-O2"
ce2cded5 4790 else
b879806f 4791 CXXFLAGS=
ce2cded5 4792 fi
d7040cdb 4793fi
b879806f
AM
4794ac_ext=c
4795ac_cpp='$CPP $CPPFLAGS'
4796ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4797ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4798ac_compiler_gnu=$ac_cv_c_compiler_gnu
4799
4800depcc="$CXX" am_compiler_list=
4801
4802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4803$as_echo_n "checking dependency style of $depcc... " >&6; }
d0ac1c44 4804if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
81ecdfbb 4805 $as_echo_n "(cached) " >&6
d7040cdb 4806else
b879806f
AM
4807 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4808 # We make a subdir and do the tests there. Otherwise we can end up
4809 # making bogus files that we don't know about and never remove. For
4810 # instance it was reported that on HP-UX the gcc test will end up
d0ac1c44
SM
4811 # making a dummy file named 'D' -- because '-MD' means "put the output
4812 # in D".
6eb7d830 4813 rm -rf conftest.dir
b879806f
AM
4814 mkdir conftest.dir
4815 # Copy depcomp to subdir because otherwise we won't find it if we're
4816 # using a relative directory.
4817 cp "$am_depcomp" conftest.dir
4818 cd conftest.dir
4819 # We will build objects and dependencies in a subdirectory because
4820 # it helps to detect inapplicable dependency modes. For instance
4821 # both Tru64's cc and ICC support -MD to output dependencies as a
4822 # side effect of compilation, but ICC will put the dependencies in
4823 # the current directory while Tru64 will put them in the object
4824 # directory.
4825 mkdir sub
d7040cdb 4826
b879806f
AM
4827 am_cv_CXX_dependencies_compiler_type=none
4828 if test "$am_compiler_list" = ""; then
4829 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4830 fi
4831 am__universal=false
4832 case " $depcc " in #(
4833 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4834 esac
d7040cdb 4835
b879806f
AM
4836 for depmode in $am_compiler_list; do
4837 # Setup a source with many dependencies, because some compilers
4838 # like to wrap large dependency lists on column 80 (with \), and
4839 # we should not choose a depcomp mode which is confused by this.
4840 #
4841 # We need to recreate these files for each test, as the compiler may
4842 # overwrite some of them when testing with obscure command lines.
4843 # This happens at least with the AIX C compiler.
4844 : > sub/conftest.c
4845 for i in 1 2 3 4 5 6; do
4846 echo '#include "conftst'$i'.h"' >> sub/conftest.c
d0ac1c44
SM
4847 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4848 # Solaris 10 /bin/sh.
4849 echo '/* dummy */' > sub/conftst$i.h
b879806f
AM
4850 done
4851 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
81ecdfbb 4852
d0ac1c44 4853 # We check with '-c' and '-o' for the sake of the "dashmstdout"
b879806f 4854 # mode. It turns out that the SunPro C++ compiler does not properly
d0ac1c44
SM
4855 # handle '-M -o', and we need to detect this. Also, some Intel
4856 # versions had trouble with output in subdirs.
b879806f
AM
4857 am__obj=sub/conftest.${OBJEXT-o}
4858 am__minus_obj="-o $am__obj"
4859 case $depmode in
4860 gcc)
4861 # This depmode causes a compiler race in universal mode.
4862 test "$am__universal" = false || continue
4863 ;;
4864 nosideeffect)
d0ac1c44
SM
4865 # After this tag, mechanisms are not by side-effect, so they'll
4866 # only be used when explicitly requested.
b879806f
AM
4867 if test "x$enable_dependency_tracking" = xyes; then
4868 continue
4869 else
4870 break
4871 fi
4872 ;;
6eb7d830 4873 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
d0ac1c44 4874 # This compiler won't grok '-c -o', but also, the minuso test has
b879806f
AM
4875 # not run yet. These depmodes are late enough in the game, and
4876 # so weak that their functioning should not be impacted.
4877 am__obj=conftest.${OBJEXT-o}
4878 am__minus_obj=
4879 ;;
4880 none) break ;;
4881 esac
4882 if depmode=$depmode \
4883 source=sub/conftest.c object=$am__obj \
4884 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4885 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4886 >/dev/null 2>conftest.err &&
4887 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4888 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4889 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4890 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4891 # icc doesn't choke on unknown options, it will just issue warnings
4892 # or remarks (even with -Werror). So we grep stderr for any message
4893 # that says an option was ignored or not supported.
4894 # When given -MP, icc 7.0 and 7.1 complain thusly:
4895 # icc: Command line warning: ignoring option '-M'; no argument required
4896 # The diagnosis changed in icc 8.0:
4897 # icc: Command line remark: option '-MP' not supported
4898 if (grep 'ignoring option' conftest.err ||
4899 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4900 am_cv_CXX_dependencies_compiler_type=$depmode
4901 break
4902 fi
4903 fi
4904 done
4905
4906 cd ..
4907 rm -rf conftest.dir
4908else
4909 am_cv_CXX_dependencies_compiler_type=none
ce2cded5 4910fi
d7040cdb 4911
ce2cded5 4912fi
b879806f
AM
4913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4914$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4915CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
d7040cdb 4916
b879806f
AM
4917 if
4918 test "x$enable_dependency_tracking" != xno \
4919 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4920 am__fastdepCXX_TRUE=
4921 am__fastdepCXX_FALSE='#'
4922else
4923 am__fastdepCXX_TRUE='#'
4924 am__fastdepCXX_FALSE=
ce2cded5 4925fi
d7040cdb 4926
b879806f 4927
68880f31
CLT
4928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4929$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
d0ac1c44 4930if ${ac_cv_path_GREP+:} false; then :
68880f31
CLT
4931 $as_echo_n "(cached) " >&6
4932else
4933 if test -z "$GREP"; then
4934 ac_path_GREP_found=false
4935 # Loop through the user's path and test for each of PROGNAME-LIST
4936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4937for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4938do
4939 IFS=$as_save_IFS
4940 test -z "$as_dir" && as_dir=.
4941 for ac_prog in grep ggrep; do
4942 for ac_exec_ext in '' $ac_executable_extensions; do
4943 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 4944 as_fn_executable_p "$ac_path_GREP" || continue
68880f31
CLT
4945# Check for GNU ac_path_GREP and select it if it is found.
4946 # Check for GNU $ac_path_GREP
4947case `"$ac_path_GREP" --version 2>&1` in
4948*GNU*)
4949 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4950*)
4951 ac_count=0
4952 $as_echo_n 0123456789 >"conftest.in"
4953 while :
4954 do
4955 cat "conftest.in" "conftest.in" >"conftest.tmp"
4956 mv "conftest.tmp" "conftest.in"
4957 cp "conftest.in" "conftest.nl"
4958 $as_echo 'GREP' >> "conftest.nl"
4959 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4960 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4961 as_fn_arith $ac_count + 1 && ac_count=$as_val
4962 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4963 # Best one so far, save it but keep looking for a better one
4964 ac_cv_path_GREP="$ac_path_GREP"
4965 ac_path_GREP_max=$ac_count
4966 fi
4967 # 10*(2^10) chars as input seems more than enough
4968 test $ac_count -gt 10 && break
4969 done
4970 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4971esac
4972
4973 $ac_path_GREP_found && break 3
4974 done
4975 done
4976 done
4977IFS=$as_save_IFS
4978 if test -z "$ac_cv_path_GREP"; then
d0ac1c44 4979 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
68880f31
CLT
4980 fi
4981else
4982 ac_cv_path_GREP=$GREP
4983fi
4984
4985fi
4986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4987$as_echo "$ac_cv_path_GREP" >&6; }
4988 GREP="$ac_cv_path_GREP"
4989
4990
c774eab1 4991
ce2cded5
L
4992ac_ext=c
4993ac_cpp='$CPP $CPPFLAGS'
4994ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4995ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4996ac_compiler_gnu=$ac_cv_c_compiler_gnu
b879806f
AM
4997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4998$as_echo_n "checking how to run the C preprocessor... " >&6; }
4999# On Suns, sometimes $CPP names a directory.
5000if test -n "$CPP" && test -d "$CPP"; then
5001 CPP=
7357c5b6 5002fi
b879806f 5003if test -z "$CPP"; then
d0ac1c44 5004 if ${ac_cv_prog_CPP+:} false; then :
3cb62297
L
5005 $as_echo_n "(cached) " >&6
5006else
b879806f
AM
5007 # Double quotes because CPP needs to be expanded
5008 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5009 do
5010 ac_preproc_ok=false
5011for ac_c_preproc_warn_flag in '' yes
3cb62297 5012do
b879806f
AM
5013 # Use a header file that comes with gcc, so configuring glibc
5014 # with a fresh cross-compiler works.
5015 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5016 # <limits.h> exists even on freestanding compilers.
5017 # On the NeXT, cc -E runs the code through the compiler's parser,
5018 # not just through cpp. "Syntax error" is here to catch this case.
5019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5020/* end confdefs.h. */
5021#ifdef __STDC__
5022# include <limits.h>
5023#else
5024# include <assert.h>
5025#endif
5026 Syntax error
5027_ACEOF
5028if ac_fn_c_try_cpp "$LINENO"; then :
252b5132 5029
3cb62297 5030else
b879806f
AM
5031 # Broken: fails on valid input.
5032continue
7357c5b6 5033fi
d0ac1c44 5034rm -f conftest.err conftest.i conftest.$ac_ext
252b5132 5035
b879806f
AM
5036 # OK, works on sane cases. Now check whether nonexistent headers
5037 # can be detected and how.
5038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5039/* end confdefs.h. */
5040#include <ac_nonexistent.h>
5041_ACEOF
5042if ac_fn_c_try_cpp "$LINENO"; then :
5043 # Broken: success on invalid input.
5044continue
5045else
5046 # Passes both tests.
5047ac_preproc_ok=:
5048break
5049fi
d0ac1c44 5050rm -f conftest.err conftest.i conftest.$ac_ext
42ecbf5e 5051
3cb62297 5052done
b879806f 5053# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
d0ac1c44 5054rm -f conftest.i conftest.err conftest.$ac_ext
b879806f
AM
5055if $ac_preproc_ok; then :
5056 break
7357c5b6 5057fi
ac48eca1 5058
b879806f
AM
5059 done
5060 ac_cv_prog_CPP=$CPP
d7040cdb 5061
b879806f
AM
5062fi
5063 CPP=$ac_cv_prog_CPP
7357c5b6 5064else
b879806f
AM
5065 ac_cv_prog_CPP=$CPP
5066fi
5067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5068$as_echo "$CPP" >&6; }
5069ac_preproc_ok=false
5070for ac_c_preproc_warn_flag in '' yes
5071do
5072 # Use a header file that comes with gcc, so configuring glibc
5073 # with a fresh cross-compiler works.
5074 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5075 # <limits.h> exists even on freestanding compilers.
5076 # On the NeXT, cc -E runs the code through the compiler's parser,
5077 # not just through cpp. "Syntax error" is here to catch this case.
81ecdfbb 5078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6 5079/* end confdefs.h. */
b879806f
AM
5080#ifdef __STDC__
5081# include <limits.h>
5082#else
5083# include <assert.h>
3cb62297 5084#endif
b879806f 5085 Syntax error
7357c5b6 5086_ACEOF
b879806f
AM
5087if ac_fn_c_try_cpp "$LINENO"; then :
5088
81ecdfbb 5089else
b879806f
AM
5090 # Broken: fails on valid input.
5091continue
7357c5b6 5092fi
d0ac1c44 5093rm -f conftest.err conftest.i conftest.$ac_ext
81ecdfbb 5094
b879806f
AM
5095 # OK, works on sane cases. Now check whether nonexistent headers
5096 # can be detected and how.
5097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5098/* end confdefs.h. */
5099#include <ac_nonexistent.h>
5100_ACEOF
5101if ac_fn_c_try_cpp "$LINENO"; then :
5102 # Broken: success on invalid input.
5103continue
3cb62297 5104else
b879806f
AM
5105 # Passes both tests.
5106ac_preproc_ok=:
5107break
7357c5b6 5108fi
d0ac1c44 5109rm -f conftest.err conftest.i conftest.$ac_ext
252b5132 5110
b879806f
AM
5111done
5112# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
d0ac1c44 5113rm -f conftest.i conftest.err conftest.$ac_ext
b879806f 5114if $ac_preproc_ok; then :
252b5132 5115
3cb62297 5116else
b879806f
AM
5117 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5118$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
5119as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5120See \`config.log' for more details" "$LINENO" 5; }
b879806f 5121fi
42ecbf5e 5122
b879806f
AM
5123ac_ext=c
5124ac_cpp='$CPP $CPPFLAGS'
5125ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5126ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5127ac_compiler_gnu=$ac_cv_c_compiler_gnu
42ecbf5e
DJ
5128
5129
b879806f
AM
5130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5131$as_echo_n "checking for egrep... " >&6; }
d0ac1c44 5132if ${ac_cv_path_EGREP+:} false; then :
b879806f
AM
5133 $as_echo_n "(cached) " >&6
5134else
5135 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5136 then ac_cv_path_EGREP="$GREP -E"
5137 else
5138 if test -z "$EGREP"; then
5139 ac_path_EGREP_found=false
5140 # Loop through the user's path and test for each of PROGNAME-LIST
5141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5142for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5143do
5144 IFS=$as_save_IFS
5145 test -z "$as_dir" && as_dir=.
5146 for ac_prog in egrep; do
5147 for ac_exec_ext in '' $ac_executable_extensions; do
5148 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 5149 as_fn_executable_p "$ac_path_EGREP" || continue
b879806f
AM
5150# Check for GNU ac_path_EGREP and select it if it is found.
5151 # Check for GNU $ac_path_EGREP
5152case `"$ac_path_EGREP" --version 2>&1` in
5153*GNU*)
5154 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5155*)
5156 ac_count=0
5157 $as_echo_n 0123456789 >"conftest.in"
5158 while :
5159 do
5160 cat "conftest.in" "conftest.in" >"conftest.tmp"
5161 mv "conftest.tmp" "conftest.in"
5162 cp "conftest.in" "conftest.nl"
5163 $as_echo 'EGREP' >> "conftest.nl"
5164 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5165 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5166 as_fn_arith $ac_count + 1 && ac_count=$as_val
5167 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5168 # Best one so far, save it but keep looking for a better one
5169 ac_cv_path_EGREP="$ac_path_EGREP"
5170 ac_path_EGREP_max=$ac_count
5171 fi
5172 # 10*(2^10) chars as input seems more than enough
5173 test $ac_count -gt 10 && break
5174 done
5175 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5176esac
5177
5178 $ac_path_EGREP_found && break 3
5179 done
5180 done
5181 done
5182IFS=$as_save_IFS
5183 if test -z "$ac_cv_path_EGREP"; then
d0ac1c44 5184 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
b879806f
AM
5185 fi
5186else
5187 ac_cv_path_EGREP=$EGREP
5188fi
5189
5190 fi
5191fi
5192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5193$as_echo "$ac_cv_path_EGREP" >&6; }
5194 EGREP="$ac_cv_path_EGREP"
5195
5196
5197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5198$as_echo_n "checking for ANSI C header files... " >&6; }
d0ac1c44 5199if ${ac_cv_header_stdc+:} false; then :
b879806f
AM
5200 $as_echo_n "(cached) " >&6
5201else
5202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3cb62297 5203/* end confdefs.h. */
b879806f
AM
5204#include <stdlib.h>
5205#include <stdarg.h>
5206#include <string.h>
5207#include <float.h>
42ecbf5e 5208
3cb62297
L
5209int
5210main ()
5211{
42ecbf5e 5212
3cb62297
L
5213 ;
5214 return 0;
5215}
5216_ACEOF
b879806f
AM
5217if ac_fn_c_try_compile "$LINENO"; then :
5218 ac_cv_header_stdc=yes
5219else
5220 ac_cv_header_stdc=no
3cb62297
L
5221fi
5222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b879806f
AM
5223
5224if test $ac_cv_header_stdc = yes; then
5225 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5227/* end confdefs.h. */
5228#include <string.h>
5229
5230_ACEOF
5231if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5232 $EGREP "memchr" >/dev/null 2>&1; then :
5233
5234else
5235 ac_cv_header_stdc=no
3cb62297 5236fi
b879806f
AM
5237rm -f conftest*
5238
3cb62297 5239fi
b879806f
AM
5240
5241if test $ac_cv_header_stdc = yes; then
5242 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5244/* end confdefs.h. */
5245#include <stdlib.h>
5246
5247_ACEOF
5248if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5249 $EGREP "free" >/dev/null 2>&1; then :
5250
ce2cded5 5251else
b879806f 5252 ac_cv_header_stdc=no
ce2cded5 5253fi
b879806f 5254rm -f conftest*
42ecbf5e 5255
b879806f 5256fi
e5a52504 5257
b879806f
AM
5258if test $ac_cv_header_stdc = yes; then
5259 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5260 if test "$cross_compiling" = yes; then :
5261 :
3cb62297 5262else
b879806f
AM
5263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5264/* end confdefs.h. */
5265#include <ctype.h>
5266#include <stdlib.h>
5267#if ((' ' & 0x0FF) == 0x020)
5268# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5269# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5270#else
5271# define ISLOWER(c) \
5272 (('a' <= (c) && (c) <= 'i') \
5273 || ('j' <= (c) && (c) <= 'r') \
5274 || ('s' <= (c) && (c) <= 'z'))
5275# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5276#endif
3cb62297
L
5277
5278#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5279int
5280main ()
5281{
5282 int i;
5283 for (i = 0; i < 256; i++)
5284 if (XOR (islower (i), ISLOWER (i))
5285 || toupper (i) != TOUPPER (i))
5286 return 2;
5287 return 0;
5288}
5289_ACEOF
5290if ac_fn_c_try_run "$LINENO"; then :
5291
5292else
5293 ac_cv_header_stdc=no
5294fi
5295rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5296 conftest.$ac_objext conftest.beam conftest.$ac_ext
5297fi
5298
5299fi
5300fi
5301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5302$as_echo "$ac_cv_header_stdc" >&6; }
5303if test $ac_cv_header_stdc = yes; then
5304
5305$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5306
5307fi
5308
5309# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5310for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5311 inttypes.h stdint.h unistd.h
5312do :
5313 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5314ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5315"
d0ac1c44 5316if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3cb62297
L
5317 cat >>confdefs.h <<_ACEOF
5318#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5319_ACEOF
5320
5321fi
5322
5323done
5324
5325
5326
5327 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
d0ac1c44 5328if test "x$ac_cv_header_minix_config_h" = xyes; then :
3cb62297
L
5329 MINIX=yes
5330else
5331 MINIX=
5332fi
5333
5334
5335 if test "$MINIX" = yes; then
5336
5337$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5338
5339
5340$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5341
5342
5343$as_echo "#define _MINIX 1" >>confdefs.h
5344
5345 fi
5346
5347
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5349$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
d0ac1c44 5350if ${ac_cv_safe_to_define___extensions__+:} false; then :
3cb62297
L
5351 $as_echo_n "(cached) " >&6
5352else
5353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5354/* end confdefs.h. */
5355
d0ac1c44
SM
5356# define __EXTENSIONS__ 1
5357 $ac_includes_default
3cb62297
L
5358int
5359main ()
5360{
5361
5362 ;
5363 return 0;
5364}
5365_ACEOF
5366if ac_fn_c_try_compile "$LINENO"; then :
5367 ac_cv_safe_to_define___extensions__=yes
5368else
5369 ac_cv_safe_to_define___extensions__=no
5370fi
5371rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5372fi
5373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5374$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5375 test $ac_cv_safe_to_define___extensions__ = yes &&
5376 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5377
5378 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5379
5380 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5381
5382 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5383
5384 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5385
5386
5387
5388
5389
3cb62297 5390
b879806f
AM
5391case `pwd` in
5392 *\ * | *\ *)
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5394$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5395esac
3cb62297
L
5396
5397
da2f07f1 5398
b879806f
AM
5399macro_version='2.2.7a'
5400macro_revision='1.3134'
d7040cdb 5401
d7040cdb
SE
5402
5403
d7040cdb 5404
d7040cdb 5405
42ecbf5e 5406
d7040cdb 5407
252b5132 5408
252b5132 5409
252b5132 5410
252b5132
RH
5411
5412
ce2cded5 5413
b214d478 5414ltmain="$ac_aux_dir/ltmain.sh"
ce2cded5 5415
3725885a
RW
5416# Backslashify metacharacters that are still active within
5417# double-quoted strings.
5418sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5419
5420# Same as above, but do not quote variable references.
5421double_quote_subst='s/\(["`\\]\)/\\\1/g'
5422
5423# Sed substitution to delay expansion of an escaped shell variable in a
5424# double_quote_subst'ed string.
5425delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5426
5427# Sed substitution to delay expansion of an escaped single quote.
5428delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5429
5430# Sed substitution to avoid accidental globbing in evaled expressions
5431no_glob_subst='s/\*/\\\*/g'
5432
5433ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5434ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5435ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5436
5437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5438$as_echo_n "checking how to print strings... " >&6; }
5439# Test print first, because it will be a builtin if present.
5440if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5441 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5442 ECHO='print -r --'
5443elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5444 ECHO='printf %s\n'
5445else
5446 # Use this function as a fallback that always works.
5447 func_fallback_echo ()
5448 {
5449 eval 'cat <<_LTECHO_EOF
5450$1
5451_LTECHO_EOF'
5452 }
5453 ECHO='func_fallback_echo'
5454fi
5455
5456# func_echo_all arg...
5457# Invoke $ECHO with all args, space-separated.
5458func_echo_all ()
5459{
5460 $ECHO ""
5461}
5462
5463case "$ECHO" in
5464 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5465$as_echo "printf" >&6; } ;;
5466 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5467$as_echo "print -r" >&6; } ;;
5468 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5469$as_echo "cat" >&6; } ;;
5470esac
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
81ecdfbb
RW
5485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5486$as_echo_n "checking for a sed that does not truncate output... " >&6; }
d0ac1c44 5487if ${ac_cv_path_SED+:} false; then :
81ecdfbb
RW
5488 $as_echo_n "(cached) " >&6
5489else
5490 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5491 for ac_i in 1 2 3 4 5 6 7; do
5492 ac_script="$ac_script$as_nl$ac_script"
5493 done
5494 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5495 { ac_script=; unset ac_script;}
5496 if test -z "$SED"; then
5497 ac_path_SED_found=false
5498 # Loop through the user's path and test for each of PROGNAME-LIST
5499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7357c5b6
AM
5500for as_dir in $PATH
5501do
5502 IFS=$as_save_IFS
5503 test -z "$as_dir" && as_dir=.
81ecdfbb 5504 for ac_prog in sed gsed; do
7357c5b6 5505 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb 5506 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 5507 as_fn_executable_p "$ac_path_SED" || continue
81ecdfbb
RW
5508# Check for GNU ac_path_SED and select it if it is found.
5509 # Check for GNU $ac_path_SED
5510case `"$ac_path_SED" --version 2>&1` in
5511*GNU*)
5512 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5513*)
5514 ac_count=0
5515 $as_echo_n 0123456789 >"conftest.in"
5516 while :
5517 do
5518 cat "conftest.in" "conftest.in" >"conftest.tmp"
5519 mv "conftest.tmp" "conftest.in"
5520 cp "conftest.in" "conftest.nl"
5521 $as_echo '' >> "conftest.nl"
5522 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5523 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5524 as_fn_arith $ac_count + 1 && ac_count=$as_val
5525 if test $ac_count -gt ${ac_path_SED_max-0}; then
5526 # Best one so far, save it but keep looking for a better one
5527 ac_cv_path_SED="$ac_path_SED"
5528 ac_path_SED_max=$ac_count
5529 fi
5530 # 10*(2^10) chars as input seems more than enough
5531 test $ac_count -gt 10 && break
5532 done
5533 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5534esac
5535
5536 $ac_path_SED_found && break 3
7357c5b6
AM
5537 done
5538 done
81ecdfbb 5539 done
7357c5b6 5540IFS=$as_save_IFS
81ecdfbb 5541 if test -z "$ac_cv_path_SED"; then
d0ac1c44 5542 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
ce2cded5 5543 fi
81ecdfbb
RW
5544else
5545 ac_cv_path_SED=$SED
7357c5b6 5546fi
20e95c23 5547
81ecdfbb
RW
5548fi
5549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5550$as_echo "$ac_cv_path_SED" >&6; }
5551 SED="$ac_cv_path_SED"
5552 rm -f conftest.sed
20e95c23 5553
7357c5b6
AM
5554test -z "$SED" && SED=sed
5555Xsed="$SED -e 1s/^X//"
20e95c23
DJ
5556
5557
5558
5559
5560
5561
20e95c23 5562
20e95c23 5563
d7040cdb 5564
d7040cdb 5565
7357c5b6 5566
81ecdfbb
RW
5567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5568$as_echo_n "checking for fgrep... " >&6; }
d0ac1c44 5569if ${ac_cv_path_FGREP+:} false; then :
81ecdfbb 5570 $as_echo_n "(cached) " >&6
7357c5b6 5571else
81ecdfbb
RW
5572 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5573 then ac_cv_path_FGREP="$GREP -F"
5574 else
5575 if test -z "$FGREP"; then
5576 ac_path_FGREP_found=false
5577 # Loop through the user's path and test for each of PROGNAME-LIST
5578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5579for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5580do
5581 IFS=$as_save_IFS
5582 test -z "$as_dir" && as_dir=.
5583 for ac_prog in fgrep; do
5584 for ac_exec_ext in '' $ac_executable_extensions; do
5585 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 5586 as_fn_executable_p "$ac_path_FGREP" || continue
81ecdfbb
RW
5587# Check for GNU ac_path_FGREP and select it if it is found.
5588 # Check for GNU $ac_path_FGREP
5589case `"$ac_path_FGREP" --version 2>&1` in
5590*GNU*)
5591 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5592*)
5593 ac_count=0
5594 $as_echo_n 0123456789 >"conftest.in"
5595 while :
5596 do
5597 cat "conftest.in" "conftest.in" >"conftest.tmp"
5598 mv "conftest.tmp" "conftest.in"
5599 cp "conftest.in" "conftest.nl"
5600 $as_echo 'FGREP' >> "conftest.nl"
5601 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5602 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5603 as_fn_arith $ac_count + 1 && ac_count=$as_val
5604 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5605 # Best one so far, save it but keep looking for a better one
5606 ac_cv_path_FGREP="$ac_path_FGREP"
5607 ac_path_FGREP_max=$ac_count
7357c5b6 5608 fi
81ecdfbb
RW
5609 # 10*(2^10) chars as input seems more than enough
5610 test $ac_count -gt 10 && break
5611 done
5612 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5613esac
5614
5615 $ac_path_FGREP_found && break 3
5616 done
5617 done
5618 done
5619IFS=$as_save_IFS
5620 if test -z "$ac_cv_path_FGREP"; then
d0ac1c44 5621 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
81ecdfbb
RW
5622 fi
5623else
5624 ac_cv_path_FGREP=$FGREP
5625fi
5626
5627 fi
20e95c23 5628fi
81ecdfbb
RW
5629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5630$as_echo "$ac_cv_path_FGREP" >&6; }
5631 FGREP="$ac_cv_path_FGREP"
7357c5b6
AM
5632
5633
5634test -z "$GREP" && GREP=grep
5635
d7040cdb
SE
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
20e95c23 5647
ce2cded5 5648
d7040cdb 5649
7357c5b6
AM
5650
5651
5652
5653
81ecdfbb
RW
5654# Check whether --with-gnu-ld was given.
5655if test "${with_gnu_ld+set}" = set; then :
5656 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7357c5b6
AM
5657else
5658 with_gnu_ld=no
81ecdfbb
RW
5659fi
5660
7357c5b6
AM
5661ac_prog=ld
5662if test "$GCC" = yes; then
5663 # Check if gcc -print-prog-name=ld gives a path.
81ecdfbb
RW
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5665$as_echo_n "checking for ld used by $CC... " >&6; }
7357c5b6
AM
5666 case $host in
5667 *-*-mingw*)
5668 # gcc leaves a trailing carriage return which upsets mingw
5669 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5670 *)
5671 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5672 esac
5673 case $ac_prog in
5674 # Accept absolute paths.
5675 [\\/]* | ?:[\\/]*)
5676 re_direlt='/[^/][^/]*/\.\./'
5677 # Canonicalize the pathname of ld
5678 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5679 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5680 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5681 done
5682 test -z "$LD" && LD="$ac_prog"
5683 ;;
5684 "")
5685 # If it fails, then pretend we aren't using GCC.
5686 ac_prog=ld
5687 ;;
5688 *)
5689 # If it is relative, then search for the first ld in PATH.
5690 with_gnu_ld=unknown
5691 ;;
5692 esac
5693elif test "$with_gnu_ld" = yes; then
81ecdfbb
RW
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5695$as_echo_n "checking for GNU ld... " >&6; }
7357c5b6 5696else
81ecdfbb
RW
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5698$as_echo_n "checking for non-GNU ld... " >&6; }
ce2cded5 5699fi
d0ac1c44 5700if ${lt_cv_path_LD+:} false; then :
81ecdfbb 5701 $as_echo_n "(cached) " >&6
ce2cded5 5702else
7357c5b6
AM
5703 if test -z "$LD"; then
5704 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5705 for ac_dir in $PATH; do
5706 IFS="$lt_save_ifs"
5707 test -z "$ac_dir" && ac_dir=.
5708 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5709 lt_cv_path_LD="$ac_dir/$ac_prog"
5710 # Check to see if the program is GNU ld. I'd rather use --version,
5711 # but apparently some variants of GNU ld only accept -v.
5712 # Break only if it was the GNU/non-GNU ld that we prefer.
5713 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5714 *GNU* | *'with BFD'*)
5715 test "$with_gnu_ld" != no && break
5716 ;;
5717 *)
5718 test "$with_gnu_ld" != yes && break
5719 ;;
5720 esac
5721 fi
5722 done
5723 IFS="$lt_save_ifs"
ce2cded5 5724else
7357c5b6 5725 lt_cv_path_LD="$LD" # Let the user override the test with a path.
ce2cded5
L
5726fi
5727fi
7357c5b6
AM
5728
5729LD="$lt_cv_path_LD"
5730if test -n "$LD"; then
81ecdfbb
RW
5731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5732$as_echo "$LD" >&6; }
ce2cded5 5733else
81ecdfbb
RW
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5735$as_echo "no" >&6; }
ce2cded5 5736fi
d0ac1c44 5737test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
81ecdfbb
RW
5738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5739$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
d0ac1c44 5740if ${lt_cv_prog_gnu_ld+:} false; then :
81ecdfbb 5741 $as_echo_n "(cached) " >&6
ce2cded5 5742else
7357c5b6
AM
5743 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5744case `$LD -v 2>&1 </dev/null` in
5745*GNU* | *'with BFD'*)
5746 lt_cv_prog_gnu_ld=yes
5747 ;;
5748*)
5749 lt_cv_prog_gnu_ld=no
5750 ;;
5751esac
ce2cded5 5752fi
81ecdfbb
RW
5753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5754$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7357c5b6 5755with_gnu_ld=$lt_cv_prog_gnu_ld
d7040cdb
SE
5756
5757
5758
5759
5760
5761
5762
5763
5764
81ecdfbb
RW
5765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5766$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
d0ac1c44 5767if ${lt_cv_path_NM+:} false; then :
81ecdfbb 5768 $as_echo_n "(cached) " >&6
ce2cded5 5769else
7357c5b6 5770 if test -n "$NM"; then
b9004024
NA
5771 # Let the user override the nm to test.
5772 lt_nm_to_check="$NM"
5773 else
5774 lt_nm_to_check="${ac_tool_prefix}nm"
5775 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5776 lt_nm_to_check="$lt_nm_to_check nm"
5777 fi
5778 fi
caf606c9 5779 for lt_tmp_nm in "$lt_nm_to_check"; do
b9004024
NA
5780 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5781 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5782 IFS="$lt_save_ifs"
5783 test -z "$ac_dir" && ac_dir=.
caf606c9
NA
5784 # Strip out any user-provided options from the nm to test twice,
5785 # the first time to test to see if nm (rather than its options) has
5786 # an explicit path, the second time to yield a file which can be
5787 # nm'ed itself.
5788 tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
5789 case "$tmp_nm_path" in
b9004024
NA
5790 */*|*\\*) tmp_nm="$lt_tmp_nm";;
5791 *) tmp_nm="$ac_dir/$lt_tmp_nm";;
5792 esac
caf606c9
NA
5793 tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
5794 if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then
b9004024
NA
5795 # Check to see if the nm accepts a BSD-compat flag.
5796 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5797 # nm: unknown option "B" ignored
caf606c9 5798 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
b9004024
NA
5799 *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B"
5800 break
5801 ;;
5802 *)
caf606c9 5803 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
b9004024
NA
5804 *$tmp_nm*)
5805 lt_cv_path_NM="$tmp_nm -p"
5806 break
5807 ;;
5808 *)
5809 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5810 continue # so that we can try to find one that supports BSD flags
5811 ;;
5812 esac
5813 ;;
5814 esac
5815 fi
5816 done
5817 IFS="$lt_save_ifs"
5818 done
5819 : ${lt_cv_path_NM=no}
ce2cded5 5820fi
81ecdfbb
RW
5821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5822$as_echo "$lt_cv_path_NM" >&6; }
7357c5b6
AM
5823if test "$lt_cv_path_NM" != "no"; then
5824 NM="$lt_cv_path_NM"
ce2cded5 5825else
7357c5b6 5826 # Didn't find any BSD compatible name lister, look for dumpbin.
3725885a
RW
5827 if test -n "$DUMPBIN"; then :
5828 # Let the user override the test.
5829 else
5830 if test -n "$ac_tool_prefix"; then
5831 for ac_prog in dumpbin "link -dump"
7357c5b6
AM
5832 do
5833 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5834set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
5835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5836$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5837if ${ac_cv_prog_DUMPBIN+:} false; then :
81ecdfbb 5838 $as_echo_n "(cached) " >&6
20e95c23 5839else
7357c5b6
AM
5840 if test -n "$DUMPBIN"; then
5841 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
ce2cded5
L
5842else
5843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5844for as_dir in $PATH
5845do
5846 IFS=$as_save_IFS
5847 test -z "$as_dir" && as_dir=.
81ecdfbb 5848 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5849 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7357c5b6 5850 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
81ecdfbb 5851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
5852 break 2
5853 fi
5854done
81ecdfbb
RW
5855 done
5856IFS=$as_save_IFS
d7040cdb 5857
20e95c23 5858fi
ce2cded5 5859fi
7357c5b6
AM
5860DUMPBIN=$ac_cv_prog_DUMPBIN
5861if test -n "$DUMPBIN"; then
81ecdfbb
RW
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5863$as_echo "$DUMPBIN" >&6; }
42ecbf5e 5864else
81ecdfbb
RW
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5866$as_echo "no" >&6; }
42ecbf5e
DJ
5867fi
5868
81ecdfbb 5869
7357c5b6
AM
5870 test -n "$DUMPBIN" && break
5871 done
ce2cded5 5872fi
7357c5b6
AM
5873if test -z "$DUMPBIN"; then
5874 ac_ct_DUMPBIN=$DUMPBIN
3725885a 5875 for ac_prog in dumpbin "link -dump"
7357c5b6
AM
5876do
5877 # Extract the first word of "$ac_prog", so it can be a program name with args.
5878set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
5879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5880$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5881if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
81ecdfbb 5882 $as_echo_n "(cached) " >&6
42ecbf5e 5883else
7357c5b6
AM
5884 if test -n "$ac_ct_DUMPBIN"; then
5885 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
ce2cded5
L
5886else
5887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5888for as_dir in $PATH
5889do
5890 IFS=$as_save_IFS
5891 test -z "$as_dir" && as_dir=.
81ecdfbb 5892 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5893 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7357c5b6 5894 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
81ecdfbb 5895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
5896 break 2
5897 fi
5898done
81ecdfbb
RW
5899 done
5900IFS=$as_save_IFS
d7040cdb 5901
ce2cded5
L
5902fi
5903fi
7357c5b6
AM
5904ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5905if test -n "$ac_ct_DUMPBIN"; then
81ecdfbb
RW
5906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5907$as_echo "$ac_ct_DUMPBIN" >&6; }
ce2cded5 5908else
81ecdfbb
RW
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5910$as_echo "no" >&6; }
ce2cded5 5911fi
d7040cdb 5912
81ecdfbb 5913
7357c5b6 5914 test -n "$ac_ct_DUMPBIN" && break
ce2cded5 5915done
d7040cdb 5916
81ecdfbb
RW
5917 if test "x$ac_ct_DUMPBIN" = x; then
5918 DUMPBIN=":"
5919 else
5920 case $cross_compiling:$ac_tool_warned in
5921yes:)
5922{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5923$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5924ac_tool_warned=yes ;;
5925esac
5926 DUMPBIN=$ac_ct_DUMPBIN
5927 fi
ce2cded5 5928fi
7357c5b6 5929
3725885a
RW
5930 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5931 *COFF*)
5932 DUMPBIN="$DUMPBIN -symbols"
5933 ;;
5934 *)
5935 DUMPBIN=:
5936 ;;
5937 esac
5938 fi
7357c5b6
AM
5939
5940 if test "$DUMPBIN" != ":"; then
5941 NM="$DUMPBIN"
5942 fi
ce2cded5 5943fi
7357c5b6
AM
5944test -z "$NM" && NM=nm
5945
5946
5947
5948
5949
5950
81ecdfbb
RW
5951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5952$as_echo_n "checking the name lister ($NM) interface... " >&6; }
d0ac1c44 5953if ${lt_cv_nm_interface+:} false; then :
81ecdfbb 5954 $as_echo_n "(cached) " >&6
20e95c23 5955else
7357c5b6
AM
5956 lt_cv_nm_interface="BSD nm"
5957 echo "int some_variable = 0;" > conftest.$ac_ext
3725885a 5958 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7357c5b6
AM
5959 (eval "$ac_compile" 2>conftest.err)
5960 cat conftest.err >&5
3725885a 5961 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7357c5b6
AM
5962 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5963 cat conftest.err >&5
3725885a 5964 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7357c5b6
AM
5965 cat conftest.out >&5
5966 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5967 lt_cv_nm_interface="MS dumpbin"
5968 fi
5969 rm -f conftest*
20e95c23 5970fi
81ecdfbb
RW
5971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5972$as_echo "$lt_cv_nm_interface" >&6; }
20e95c23 5973
81ecdfbb
RW
5974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5975$as_echo_n "checking whether ln -s works... " >&6; }
7357c5b6
AM
5976LN_S=$as_ln_s
5977if test "$LN_S" = "ln -s"; then
81ecdfbb
RW
5978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5979$as_echo "yes" >&6; }
ce2cded5 5980else
81ecdfbb
RW
5981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5982$as_echo "no, using $LN_S" >&6; }
d7040cdb 5983fi
20e95c23 5984
7357c5b6 5985# find the maximum length of command line arguments
81ecdfbb
RW
5986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5987$as_echo_n "checking the maximum length of command line arguments... " >&6; }
d0ac1c44 5988if ${lt_cv_sys_max_cmd_len+:} false; then :
81ecdfbb 5989 $as_echo_n "(cached) " >&6
7357c5b6
AM
5990else
5991 i=0
5992 teststring="ABCD"
20e95c23 5993
7357c5b6
AM
5994 case $build_os in
5995 msdosdjgpp*)
5996 # On DJGPP, this test can blow up pretty badly due to problems in libc
5997 # (any single argument exceeding 2000 bytes causes a buffer overrun
5998 # during glob expansion). Even if it were fixed, the result of this
5999 # check would be larger than it should be.
6000 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6001 ;;
20e95c23 6002
7357c5b6
AM
6003 gnu*)
6004 # Under GNU Hurd, this test is not required because there is
6005 # no limit to the length of command line arguments.
6006 # Libtool will interpret -1 as no limit whatsoever
6007 lt_cv_sys_max_cmd_len=-1;
6008 ;;
20e95c23 6009
b214d478 6010 cygwin* | mingw* | cegcc*)
7357c5b6
AM
6011 # On Win9x/ME, this test blows up -- it succeeds, but takes
6012 # about 5 minutes as the teststring grows exponentially.
6013 # Worse, since 9x/ME are not pre-emptively multitasking,
6014 # you end up with a "frozen" computer, even though with patience
6015 # the test eventually succeeds (with a max line length of 256k).
6016 # Instead, let's just punt: use the minimum linelength reported by
6017 # all of the supported platforms: 8192 (on NT/2K/XP).
6018 lt_cv_sys_max_cmd_len=8192;
6019 ;;
20e95c23 6020
3725885a
RW
6021 mint*)
6022 # On MiNT this can take a long time and run out of memory.
6023 lt_cv_sys_max_cmd_len=8192;
6024 ;;
6025
7357c5b6
AM
6026 amigaos*)
6027 # On AmigaOS with pdksh, this test takes hours, literally.
6028 # So we just punt and use a minimum line length of 8192.
6029 lt_cv_sys_max_cmd_len=8192;
6030 ;;
20e95c23 6031
7357c5b6
AM
6032 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6033 # This has been around since 386BSD, at least. Likely further.
6034 if test -x /sbin/sysctl; then
6035 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6036 elif test -x /usr/sbin/sysctl; then
6037 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6038 else
6039 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6040 fi
6041 # And add a safety zone
6042 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6043 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6044 ;;
d7040cdb 6045
7357c5b6
AM
6046 interix*)
6047 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6048 lt_cv_sys_max_cmd_len=196608
6049 ;;
d7040cdb 6050
7357c5b6
AM
6051 osf*)
6052 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6053 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6054 # nice to cause kernel panics so lets avoid the loop below.
6055 # First set a reasonable default.
6056 lt_cv_sys_max_cmd_len=16384
6057 #
6058 if test -x /sbin/sysconfig; then
6059 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6060 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6061 esac
6062 fi
6063 ;;
6064 sco3.2v5*)
6065 lt_cv_sys_max_cmd_len=102400
6066 ;;
6067 sysv5* | sco5v6* | sysv4.2uw2*)
6068 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6069 if test -n "$kargmax"; then
6070 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6071 else
6072 lt_cv_sys_max_cmd_len=32768
6073 fi
ce2cded5
L
6074 ;;
6075 *)
b214d478
SE
6076 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6077 if test -n "$lt_cv_sys_max_cmd_len"; then
7357c5b6
AM
6078 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6079 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6080 else
6081 # Make teststring a little bigger before we do anything with it.
6082 # a 1K string should be a reasonable start.
6083 for i in 1 2 3 4 5 6 7 8 ; do
6084 teststring=$teststring$teststring
6085 done
6086 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6087 # If test is not a shell built-in, we'll probably end up computing a
6088 # maximum length that is only half of the actual maximum length, but
6089 # we can't tell.
3725885a
RW
6090 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6091 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7357c5b6
AM
6092 test $i != 17 # 1/2 MB should be enough
6093 do
6094 i=`expr $i + 1`
6095 teststring=$teststring$teststring
6096 done
6097 # Only check the string length outside the loop.
6098 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6099 teststring=
6100 # Add a significant safety factor because C++ compilers can tack on
6101 # massive amounts of additional arguments before passing them to the
6102 # linker. It appears as though 1/2 is a usable value.
6103 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6104 fi
ce2cded5
L
6105 ;;
6106 esac
d7040cdb 6107
7357c5b6 6108fi
d7040cdb 6109
7357c5b6 6110if test -n $lt_cv_sys_max_cmd_len ; then
81ecdfbb
RW
6111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6112$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7357c5b6 6113else
81ecdfbb
RW
6114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6115$as_echo "none" >&6; }
7357c5b6
AM
6116fi
6117max_cmd_len=$lt_cv_sys_max_cmd_len
d7040cdb
SE
6118
6119
6120
6121
6122
d7040cdb 6123
7357c5b6
AM
6124: ${CP="cp -f"}
6125: ${MV="mv -f"}
6126: ${RM="rm -f"}
d7040cdb 6127
81ecdfbb
RW
6128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6129$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7357c5b6
AM
6130# Try some XSI features
6131xsi_shell=no
6132( _lt_dummy="a/b/c"
6133 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
b214d478
SE
6134 = c,a/b,, \
6135 && eval 'test $(( 1 + 1 )) -eq 2 \
6136 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7357c5b6 6137 && xsi_shell=yes
81ecdfbb
RW
6138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6139$as_echo "$xsi_shell" >&6; }
d7040cdb 6140
d7040cdb 6141
81ecdfbb
RW
6142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6143$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7357c5b6
AM
6144lt_shell_append=no
6145( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6146 >/dev/null 2>&1 \
6147 && lt_shell_append=yes
81ecdfbb
RW
6148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6149$as_echo "$lt_shell_append" >&6; }
d7040cdb
SE
6150
6151
7357c5b6
AM
6152if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6153 lt_unset=unset
6154else
6155 lt_unset=false
6156fi
d7040cdb 6157
d7040cdb 6158
d7040cdb 6159
d7040cdb 6160
d7040cdb 6161
7357c5b6
AM
6162# test EBCDIC or ASCII
6163case `echo X|tr X '\101'` in
6164 A) # ASCII based system
6165 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6166 lt_SP2NL='tr \040 \012'
6167 lt_NL2SP='tr \015\012 \040\040'
6168 ;;
6169 *) # EBCDIC based system
6170 lt_SP2NL='tr \100 \n'
6171 lt_NL2SP='tr \r\n \100\100'
6172 ;;
6173esac
42ecbf5e 6174
d7040cdb
SE
6175
6176
6177
6178
6179
6180
d7040cdb 6181
d7040cdb 6182
81ecdfbb
RW
6183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6184$as_echo_n "checking for $LD option to reload object files... " >&6; }
d0ac1c44 6185if ${lt_cv_ld_reload_flag+:} false; then :
81ecdfbb 6186 $as_echo_n "(cached) " >&6
7357c5b6
AM
6187else
6188 lt_cv_ld_reload_flag='-r'
6189fi
81ecdfbb
RW
6190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6191$as_echo "$lt_cv_ld_reload_flag" >&6; }
7357c5b6
AM
6192reload_flag=$lt_cv_ld_reload_flag
6193case $reload_flag in
6194"" | " "*) ;;
6195*) reload_flag=" $reload_flag" ;;
6196esac
6197reload_cmds='$LD$reload_flag -o $output$reload_objs'
6198case $host_os in
6199 darwin*)
6200 if test "$GCC" = yes; then
6201 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6202 else
6203 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6204 fi
6205 ;;
6206esac
d7040cdb 6207
d7040cdb 6208
d7040cdb 6209
d7040cdb 6210
d7040cdb 6211
d7040cdb 6212
d7040cdb 6213
d7040cdb 6214
d7040cdb 6215
b214d478
SE
6216if test -n "$ac_tool_prefix"; then
6217 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6218set dummy ${ac_tool_prefix}objdump; ac_word=$2
81ecdfbb
RW
6219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6220$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6221if ${ac_cv_prog_OBJDUMP+:} false; then :
81ecdfbb 6222 $as_echo_n "(cached) " >&6
b214d478
SE
6223else
6224 if test -n "$OBJDUMP"; then
6225 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6226else
6227as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6228for as_dir in $PATH
6229do
6230 IFS=$as_save_IFS
6231 test -z "$as_dir" && as_dir=.
81ecdfbb 6232 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6233 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b214d478 6234 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
81ecdfbb 6235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
6236 break 2
6237 fi
6238done
81ecdfbb
RW
6239 done
6240IFS=$as_save_IFS
b214d478
SE
6241
6242fi
6243fi
6244OBJDUMP=$ac_cv_prog_OBJDUMP
6245if test -n "$OBJDUMP"; then
81ecdfbb
RW
6246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6247$as_echo "$OBJDUMP" >&6; }
b214d478 6248else
81ecdfbb
RW
6249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6250$as_echo "no" >&6; }
b214d478
SE
6251fi
6252
81ecdfbb 6253
b214d478
SE
6254fi
6255if test -z "$ac_cv_prog_OBJDUMP"; then
6256 ac_ct_OBJDUMP=$OBJDUMP
6257 # Extract the first word of "objdump", so it can be a program name with args.
6258set dummy objdump; ac_word=$2
81ecdfbb
RW
6259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6260$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6261if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
81ecdfbb 6262 $as_echo_n "(cached) " >&6
b214d478
SE
6263else
6264 if test -n "$ac_ct_OBJDUMP"; then
6265 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6266else
6267as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6268for as_dir in $PATH
6269do
6270 IFS=$as_save_IFS
6271 test -z "$as_dir" && as_dir=.
81ecdfbb 6272 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6273 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b214d478 6274 ac_cv_prog_ac_ct_OBJDUMP="objdump"
81ecdfbb 6275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
6276 break 2
6277 fi
6278done
81ecdfbb
RW
6279 done
6280IFS=$as_save_IFS
b214d478 6281
b214d478
SE
6282fi
6283fi
6284ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6285if test -n "$ac_ct_OBJDUMP"; then
81ecdfbb
RW
6286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6287$as_echo "$ac_ct_OBJDUMP" >&6; }
b214d478 6288else
81ecdfbb
RW
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6290$as_echo "no" >&6; }
b214d478
SE
6291fi
6292
81ecdfbb
RW
6293 if test "x$ac_ct_OBJDUMP" = x; then
6294 OBJDUMP="false"
6295 else
6296 case $cross_compiling:$ac_tool_warned in
6297yes:)
6298{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6299$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6300ac_tool_warned=yes ;;
6301esac
6302 OBJDUMP=$ac_ct_OBJDUMP
6303 fi
b214d478
SE
6304else
6305 OBJDUMP="$ac_cv_prog_OBJDUMP"
6306fi
6307
6308test -z "$OBJDUMP" && OBJDUMP=objdump
6309
6310
6311
6312
6313
6314
6315
6316
d7040cdb 6317
81ecdfbb
RW
6318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6319$as_echo_n "checking how to recognize dependent libraries... " >&6; }
d0ac1c44 6320if ${lt_cv_deplibs_check_method+:} false; then :
81ecdfbb 6321 $as_echo_n "(cached) " >&6
ce2cded5 6322else
7357c5b6
AM
6323 lt_cv_file_magic_cmd='$MAGIC_CMD'
6324lt_cv_file_magic_test_file=
6325lt_cv_deplibs_check_method='unknown'
6326# Need to set the preceding variable on all platforms that support
6327# interlibrary dependencies.
6328# 'none' -- dependencies not supported.
6329# `unknown' -- same as none, but documents that we really don't know.
6330# 'pass_all' -- all dependencies passed with no checks.
6331# 'test_compile' -- check by making test program.
6332# 'file_magic [[regex]]' -- check by looking for files in library path
6333# which responds to the $file_magic_cmd with a given extended regex.
6334# If you have `file' or equivalent on your system and you're not sure
6335# whether `pass_all' will *always* work, you probably want this one.
d7040cdb 6336
ce2cded5 6337case $host_os in
7357c5b6
AM
6338aix[4-9]*)
6339 lt_cv_deplibs_check_method=pass_all
ce2cded5 6340 ;;
7357c5b6
AM
6341
6342beos*)
6343 lt_cv_deplibs_check_method=pass_all
ce2cded5 6344 ;;
7357c5b6
AM
6345
6346bsdi[45]*)
6347 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6348 lt_cv_file_magic_cmd='/usr/bin/file -L'
6349 lt_cv_file_magic_test_file=/shlib/libc.so
ce2cded5 6350 ;;
7357c5b6
AM
6351
6352cygwin*)
6353 # func_win32_libid is a shell function defined in ltmain.sh
6354 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6355 lt_cv_file_magic_cmd='func_win32_libid'
ce2cded5 6356 ;;
7357c5b6
AM
6357
6358mingw* | pw32*)
6359 # Base MSYS/MinGW do not provide the 'file' command needed by
6360 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6361 # unless we find 'file', for example because we are cross-compiling.
3725885a
RW
6362 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6363 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7357c5b6
AM
6364 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6365 lt_cv_file_magic_cmd='func_win32_libid'
6366 else
6367 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6368 lt_cv_file_magic_cmd='$OBJDUMP -f'
6369 fi
ce2cded5 6370 ;;
7357c5b6 6371
3725885a 6372cegcc*)
b214d478
SE
6373 # use the weaker test based on 'objdump'. See mingw*.
6374 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6375 lt_cv_file_magic_cmd='$OBJDUMP -f'
6376 ;;
6377
7357c5b6
AM
6378darwin* | rhapsody*)
6379 lt_cv_deplibs_check_method=pass_all
ce2cded5 6380 ;;
7357c5b6
AM
6381
6382freebsd* | dragonfly*)
6383 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6384 case $host_cpu in
6385 i*86 )
6386 # Not sure whether the presence of OpenBSD here was a mistake.
6387 # Let's accept both of them until this is cleared up.
6388 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6389 lt_cv_file_magic_cmd=/usr/bin/file
6390 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6391 ;;
6392 esac
6393 else
6394 lt_cv_deplibs_check_method=pass_all
6395 fi
ce2cded5 6396 ;;
7357c5b6
AM
6397
6398gnu*)
6399 lt_cv_deplibs_check_method=pass_all
ce2cded5 6400 ;;
7357c5b6 6401
3725885a
RW
6402haiku*)
6403 lt_cv_deplibs_check_method=pass_all
6404 ;;
6405
7357c5b6
AM
6406hpux10.20* | hpux11*)
6407 lt_cv_file_magic_cmd=/usr/bin/file
6408 case $host_cpu in
6409 ia64*)
6410 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6411 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6412 ;;
6413 hppa*64*)
3725885a 6414 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]'
7357c5b6
AM
6415 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6416 ;;
6417 *)
3725885a 6418 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7357c5b6
AM
6419 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6420 ;;
6421 esac
ce2cded5 6422 ;;
d7040cdb 6423
7357c5b6
AM
6424interix[3-9]*)
6425 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6426 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6427 ;;
d7040cdb 6428
7357c5b6
AM
6429irix5* | irix6* | nonstopux*)
6430 case $LD in
6431 *-32|*"-32 ") libmagic=32-bit;;
6432 *-n32|*"-n32 ") libmagic=N32;;
6433 *-64|*"-64 ") libmagic=64-bit;;
6434 *) libmagic=never-match;;
6435 esac
6436 lt_cv_deplibs_check_method=pass_all
6437 ;;
d7040cdb 6438
7357c5b6 6439# This must be Linux ELF.
58e24671 6440linux* | k*bsd*-gnu | kopensolaris*-gnu)
7357c5b6
AM
6441 lt_cv_deplibs_check_method=pass_all
6442 ;;
d7040cdb 6443
7357c5b6
AM
6444netbsd*)
6445 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6446 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6447 else
6448 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6449 fi
ce2cded5 6450 ;;
d7040cdb 6451
7357c5b6
AM
6452newos6*)
6453 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6454 lt_cv_file_magic_cmd=/usr/bin/file
6455 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6456 ;;
d7040cdb 6457
7357c5b6
AM
6458*nto* | *qnx*)
6459 lt_cv_deplibs_check_method=pass_all
6460 ;;
d7040cdb 6461
7357c5b6
AM
6462openbsd*)
6463 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6464 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
ce2cded5 6465 else
7357c5b6 6466 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
ce2cded5 6467 fi
7357c5b6 6468 ;;
d7040cdb 6469
7357c5b6
AM
6470osf3* | osf4* | osf5*)
6471 lt_cv_deplibs_check_method=pass_all
6472 ;;
d7040cdb 6473
7357c5b6
AM
6474rdos*)
6475 lt_cv_deplibs_check_method=pass_all
6476 ;;
d7040cdb 6477
7357c5b6
AM
6478solaris*)
6479 lt_cv_deplibs_check_method=pass_all
6480 ;;
d7040cdb 6481
7357c5b6
AM
6482sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6483 lt_cv_deplibs_check_method=pass_all
6484 ;;
d7040cdb 6485
7357c5b6
AM
6486sysv4 | sysv4.3*)
6487 case $host_vendor in
6488 motorola)
6489 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]'
6490 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6491 ;;
6492 ncr)
6493 lt_cv_deplibs_check_method=pass_all
6494 ;;
6495 sequent)
6496 lt_cv_file_magic_cmd='/bin/file'
6497 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6498 ;;
6499 sni)
6500 lt_cv_file_magic_cmd='/bin/file'
6501 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6502 lt_cv_file_magic_test_file=/lib/libc.so
6503 ;;
6504 siemens)
6505 lt_cv_deplibs_check_method=pass_all
6506 ;;
6507 pc)
6508 lt_cv_deplibs_check_method=pass_all
6509 ;;
6510 esac
6511 ;;
d7040cdb 6512
7357c5b6
AM
6513tpf*)
6514 lt_cv_deplibs_check_method=pass_all
6515 ;;
6516esac
d7040cdb 6517
7357c5b6 6518fi
81ecdfbb
RW
6519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6520$as_echo "$lt_cv_deplibs_check_method" >&6; }
7357c5b6
AM
6521file_magic_cmd=$lt_cv_file_magic_cmd
6522deplibs_check_method=$lt_cv_deplibs_check_method
6523test -z "$deplibs_check_method" && deplibs_check_method=unknown
d7040cdb
SE
6524
6525
6526
7357c5b6
AM
6527
6528
6529
6530
6531
6532
6533
6534
6535
a4966cd9
L
6536plugin_option=
6537plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
6538for plugin in $plugin_names; do
6539 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
6540 if test x$plugin_so = x$plugin; then
6541 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
6542 fi
6543 if test x$plugin_so != x$plugin; then
6544 plugin_option="--plugin $plugin_so"
6545 break
6546 fi
6547done
6548
7357c5b6
AM
6549if test -n "$ac_tool_prefix"; then
6550 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6551set dummy ${ac_tool_prefix}ar; ac_word=$2
81ecdfbb
RW
6552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6553$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6554if ${ac_cv_prog_AR+:} false; then :
81ecdfbb 6555 $as_echo_n "(cached) " >&6
7357c5b6
AM
6556else
6557 if test -n "$AR"; then
6558 ac_cv_prog_AR="$AR" # Let the user override the test.
6559else
6560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6561for as_dir in $PATH
6562do
6563 IFS=$as_save_IFS
6564 test -z "$as_dir" && as_dir=.
81ecdfbb 6565 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6566 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7357c5b6 6567 ac_cv_prog_AR="${ac_tool_prefix}ar"
81ecdfbb 6568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6 6569 break 2
ce2cded5
L
6570 fi
6571done
81ecdfbb
RW
6572 done
6573IFS=$as_save_IFS
d7040cdb 6574
42ecbf5e 6575fi
ce2cded5 6576fi
7357c5b6
AM
6577AR=$ac_cv_prog_AR
6578if test -n "$AR"; then
81ecdfbb
RW
6579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6580$as_echo "$AR" >&6; }
42ecbf5e 6581else
81ecdfbb
RW
6582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6583$as_echo "no" >&6; }
42ecbf5e
DJ
6584fi
6585
81ecdfbb 6586
7357c5b6
AM
6587fi
6588if test -z "$ac_cv_prog_AR"; then
6589 ac_ct_AR=$AR
6590 # Extract the first word of "ar", so it can be a program name with args.
6591set dummy ar; ac_word=$2
81ecdfbb
RW
6592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6593$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6594if ${ac_cv_prog_ac_ct_AR+:} false; then :
81ecdfbb 6595 $as_echo_n "(cached) " >&6
7357c5b6
AM
6596else
6597 if test -n "$ac_ct_AR"; then
6598 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6599else
6600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6601for as_dir in $PATH
6602do
6603 IFS=$as_save_IFS
6604 test -z "$as_dir" && as_dir=.
81ecdfbb 6605 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7357c5b6 6607 ac_cv_prog_ac_ct_AR="ar"
81ecdfbb 6608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6
AM
6609 break 2
6610 fi
6611done
81ecdfbb
RW
6612 done
6613IFS=$as_save_IFS
42ecbf5e 6614
7357c5b6
AM
6615fi
6616fi
6617ac_ct_AR=$ac_cv_prog_ac_ct_AR
6618if test -n "$ac_ct_AR"; then
81ecdfbb
RW
6619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6620$as_echo "$ac_ct_AR" >&6; }
7357c5b6 6621else
81ecdfbb
RW
6622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6623$as_echo "no" >&6; }
7357c5b6 6624fi
d7040cdb 6625
81ecdfbb
RW
6626 if test "x$ac_ct_AR" = x; then
6627 AR="false"
6628 else
6629 case $cross_compiling:$ac_tool_warned in
6630yes:)
6631{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6632$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6633ac_tool_warned=yes ;;
6634esac
6635 AR=$ac_ct_AR
6636 fi
7357c5b6
AM
6637else
6638 AR="$ac_cv_prog_AR"
6639fi
d7040cdb 6640
7357c5b6 6641test -z "$AR" && AR=ar
a4966cd9
L
6642if test -n "$plugin_option"; then
6643 if $AR --help 2>&1 | grep -q "\--plugin"; then
83b33c6c
L
6644 touch conftest.c
6645 $AR $plugin_option rc conftest.a conftest.c
6646 if test "$?" != 0; then
6647 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
6648$as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
6649 else
6650 AR="$AR $plugin_option"
6651 fi
6652 rm -f conftest.*
a4966cd9
L
6653 fi
6654fi
7357c5b6 6655test -z "$AR_FLAGS" && AR_FLAGS=cru
d7040cdb
SE
6656
6657
6658
20e95c23 6659
d7040cdb 6660
d7040cdb
SE
6661
6662
6663
6664
6665
6666
7357c5b6
AM
6667if test -n "$ac_tool_prefix"; then
6668 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6669set dummy ${ac_tool_prefix}strip; ac_word=$2
81ecdfbb
RW
6670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6671$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6672if ${ac_cv_prog_STRIP+:} false; then :
81ecdfbb 6673 $as_echo_n "(cached) " >&6
7357c5b6
AM
6674else
6675 if test -n "$STRIP"; then
6676 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6677else
6678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6679for as_dir in $PATH
6680do
6681 IFS=$as_save_IFS
6682 test -z "$as_dir" && as_dir=.
81ecdfbb 6683 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6684 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7357c5b6 6685 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
81ecdfbb 6686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6 6687 break 2
ce2cded5 6688 fi
7357c5b6 6689done
81ecdfbb
RW
6690 done
6691IFS=$as_save_IFS
d7040cdb 6692
7357c5b6
AM
6693fi
6694fi
6695STRIP=$ac_cv_prog_STRIP
6696if test -n "$STRIP"; then
81ecdfbb
RW
6697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6698$as_echo "$STRIP" >&6; }
7357c5b6 6699else
81ecdfbb
RW
6700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6701$as_echo "no" >&6; }
7357c5b6
AM
6702fi
6703
81ecdfbb 6704
7357c5b6
AM
6705fi
6706if test -z "$ac_cv_prog_STRIP"; then
6707 ac_ct_STRIP=$STRIP
6708 # Extract the first word of "strip", so it can be a program name with args.
6709set dummy strip; ac_word=$2
81ecdfbb
RW
6710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6711$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6712if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
81ecdfbb 6713 $as_echo_n "(cached) " >&6
7357c5b6
AM
6714else
6715 if test -n "$ac_ct_STRIP"; then
6716 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6717else
6718as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6719for as_dir in $PATH
6720do
6721 IFS=$as_save_IFS
6722 test -z "$as_dir" && as_dir=.
81ecdfbb 6723 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6724 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7357c5b6 6725 ac_cv_prog_ac_ct_STRIP="strip"
81ecdfbb 6726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6 6727 break 2
ce2cded5 6728 fi
7357c5b6 6729done
81ecdfbb
RW
6730 done
6731IFS=$as_save_IFS
d7040cdb 6732
7357c5b6
AM
6733fi
6734fi
6735ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6736if test -n "$ac_ct_STRIP"; then
81ecdfbb
RW
6737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6738$as_echo "$ac_ct_STRIP" >&6; }
20e95c23 6739else
81ecdfbb
RW
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6741$as_echo "no" >&6; }
7357c5b6 6742fi
d7040cdb 6743
81ecdfbb
RW
6744 if test "x$ac_ct_STRIP" = x; then
6745 STRIP=":"
6746 else
6747 case $cross_compiling:$ac_tool_warned in
6748yes:)
6749{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6750$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6751ac_tool_warned=yes ;;
6752esac
6753 STRIP=$ac_ct_STRIP
6754 fi
7357c5b6
AM
6755else
6756 STRIP="$ac_cv_prog_STRIP"
6757fi
d7040cdb 6758
7357c5b6 6759test -z "$STRIP" && STRIP=:
d7040cdb 6760
d7040cdb
SE
6761
6762
6763
d7040cdb 6764
7357c5b6
AM
6765
6766if test -n "$ac_tool_prefix"; then
6767 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6768set dummy ${ac_tool_prefix}ranlib; ac_word=$2
81ecdfbb
RW
6769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6770$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6771if ${ac_cv_prog_RANLIB+:} false; then :
81ecdfbb 6772 $as_echo_n "(cached) " >&6
ce2cded5 6773else
7357c5b6
AM
6774 if test -n "$RANLIB"; then
6775 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6776else
6777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6778for as_dir in $PATH
ce2cded5 6779do
7357c5b6
AM
6780 IFS=$as_save_IFS
6781 test -z "$as_dir" && as_dir=.
81ecdfbb 6782 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6783 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7357c5b6 6784 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
81ecdfbb 6785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6 6786 break 2
ce2cded5 6787 fi
7357c5b6 6788done
81ecdfbb
RW
6789 done
6790IFS=$as_save_IFS
7357c5b6 6791
ce2cded5 6792fi
7357c5b6
AM
6793fi
6794RANLIB=$ac_cv_prog_RANLIB
6795if test -n "$RANLIB"; then
81ecdfbb
RW
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6797$as_echo "$RANLIB" >&6; }
ce2cded5 6798else
81ecdfbb
RW
6799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6800$as_echo "no" >&6; }
ce2cded5 6801fi
d7040cdb 6802
81ecdfbb 6803
7357c5b6
AM
6804fi
6805if test -z "$ac_cv_prog_RANLIB"; then
6806 ac_ct_RANLIB=$RANLIB
6807 # Extract the first word of "ranlib", so it can be a program name with args.
6808set dummy ranlib; ac_word=$2
81ecdfbb
RW
6809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6810$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6811if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
81ecdfbb 6812 $as_echo_n "(cached) " >&6
ce2cded5 6813else
7357c5b6
AM
6814 if test -n "$ac_ct_RANLIB"; then
6815 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6816else
6817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6818for as_dir in $PATH
6819do
6820 IFS=$as_save_IFS
6821 test -z "$as_dir" && as_dir=.
81ecdfbb 6822 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6823 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7357c5b6 6824 ac_cv_prog_ac_ct_RANLIB="ranlib"
81ecdfbb 6825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6
AM
6826 break 2
6827 fi
6828done
81ecdfbb
RW
6829 done
6830IFS=$as_save_IFS
7357c5b6 6831
ce2cded5 6832fi
7357c5b6
AM
6833fi
6834ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6835if test -n "$ac_ct_RANLIB"; then
81ecdfbb
RW
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6837$as_echo "$ac_ct_RANLIB" >&6; }
ce2cded5 6838else
81ecdfbb
RW
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6840$as_echo "no" >&6; }
ce2cded5 6841fi
d7040cdb 6842
81ecdfbb
RW
6843 if test "x$ac_ct_RANLIB" = x; then
6844 RANLIB=":"
6845 else
6846 case $cross_compiling:$ac_tool_warned in
6847yes:)
6848{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6849$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6850ac_tool_warned=yes ;;
6851esac
6852 RANLIB=$ac_ct_RANLIB
6853 fi
7357c5b6
AM
6854else
6855 RANLIB="$ac_cv_prog_RANLIB"
ce2cded5 6856fi
d7040cdb 6857
7357c5b6 6858test -z "$RANLIB" && RANLIB=:
a4966cd9
L
6859if test -n "$plugin_option" && test "$RANLIB" != ":"; then
6860 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
6861 RANLIB="$RANLIB $plugin_option"
6862 fi
6863fi
d7040cdb 6864
7357c5b6
AM
6865
6866
6867
6868
6869
6870# Determine commands to create old-style static archives.
b214d478 6871old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7357c5b6
AM
6872old_postinstall_cmds='chmod 644 $oldlib'
6873old_postuninstall_cmds=
6874
6875if test -n "$RANLIB"; then
6876 case $host_os in
6877 openbsd*)
6878 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6879 ;;
6880 *)
6881 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6882 ;;
6883 esac
6884 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
ce2cded5 6885fi
7357c5b6 6886
3725885a
RW
6887case $host_os in
6888 darwin*)
6889 lock_old_archive_extraction=yes ;;
6890 *)
6891 lock_old_archive_extraction=no ;;
6892esac
6893
6894
6895
6896
6897
6898
7357c5b6
AM
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932# If no C compiler was specified, use CC.
6933LTCC=${LTCC-"$CC"}
6934
6935# If no C compiler flags were specified, use CFLAGS.
6936LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6937
6938# Allow CC to be a program name with arguments.
6939compiler=$CC
6940
6941
6942# Check for command to grab the raw symbol name followed by C symbol from nm.
81ecdfbb
RW
6943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6944$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
d0ac1c44 6945if ${lt_cv_sys_global_symbol_pipe+:} false; then :
81ecdfbb 6946 $as_echo_n "(cached) " >&6
ce2cded5 6947else
d7040cdb 6948
7357c5b6
AM
6949# These are sane defaults that work on at least a few old systems.
6950# [They come from Ultrix. What could be older than Ultrix?!! ;)]
d7040cdb 6951
7357c5b6
AM
6952# Character class describing NM global symbol codes.
6953symcode='[BCDEGRST]'
6954
6955# Regexp to match symbols that can be accessed directly from C.
6956sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6957
6958# Define system-specific variables.
6959case $host_os in
6960aix*)
6961 symcode='[BCDT]'
6962 ;;
b214d478 6963cygwin* | mingw* | pw32* | cegcc*)
7357c5b6
AM
6964 symcode='[ABCDGISTW]'
6965 ;;
6966hpux*)
6967 if test "$host_cpu" = ia64; then
6968 symcode='[ABCDEGRST]'
ce2cded5 6969 fi
7357c5b6
AM
6970 ;;
6971irix* | nonstopux*)
6972 symcode='[BCDEGRST]'
6973 ;;
6974osf*)
6975 symcode='[BCDEGQRST]'
6976 ;;
6977solaris*)
b9004024 6978 symcode='[BCDRT]'
7357c5b6
AM
6979 ;;
6980sco3.2v5*)
6981 symcode='[DT]'
6982 ;;
6983sysv4.2uw2*)
6984 symcode='[DT]'
6985 ;;
6986sysv5* | sco5v6* | unixware* | OpenUNIX*)
6987 symcode='[ABDT]'
6988 ;;
6989sysv4)
6990 symcode='[DFNSTU]'
6991 ;;
6992esac
d7040cdb 6993
7357c5b6
AM
6994# If we're using GNU nm, then use its standard symbol codes.
6995case `$NM -V 2>&1` in
6996*GNU* | *'with BFD'*)
6997 symcode='[ABCDGIRSTW]' ;;
6998esac
d7040cdb 6999
7357c5b6
AM
7000# Transform an extracted symbol line into a proper C declaration.
7001# Some systems (esp. on ia64) link data and code symbols differently,
7002# so use this general approach.
7003lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7004
7005# Transform an extracted symbol line into symbol name and symbol address
7006lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
b214d478 7007lt_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'"
7357c5b6
AM
7008
7009# Handle CRLF in mingw tool chain
7010opt_cr=
7011case $build_os in
7012mingw*)
7013 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7014 ;;
7015esac
d7040cdb 7016
7357c5b6
AM
7017# Try without a prefix underscore, then with it.
7018for ac_symprfx in "" "_"; do
d7040cdb 7019
7357c5b6
AM
7020 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7021 symxfrm="\\1 $ac_symprfx\\2 \\2"
d7040cdb 7022
7357c5b6
AM
7023 # Write the raw and C identifiers.
7024 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7025 # Fake it for dumpbin and say T for any non-static function
7026 # and D for any global variable.
7027 # Also find C++ and __fastcall symbols from MSVC++,
7028 # which start with @ or ?.
7029 lt_cv_sys_global_symbol_pipe="$AWK '"\
7030" {last_section=section; section=\$ 3};"\
7031" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7032" \$ 0!~/External *\|/{next};"\
7033" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7034" {if(hide[section]) next};"\
7035" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7036" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7037" s[1]~/^[@?]/{print s[1], s[1]; next};"\
7038" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7039" ' prfx=^$ac_symprfx"
7040 else
7041 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7042 fi
d7040cdb 7043
7357c5b6
AM
7044 # Check to see that the pipe works correctly.
7045 pipe_works=no
d7040cdb 7046
7357c5b6
AM
7047 rm -f conftest*
7048 cat > conftest.$ac_ext <<_LT_EOF
7049#ifdef __cplusplus
7050extern "C" {
7051#endif
7052char nm_test_var;
7053void nm_test_func(void);
7054void nm_test_func(void){}
7055#ifdef __cplusplus
20e95c23 7056}
7357c5b6
AM
7057#endif
7058int main(){nm_test_var='a';nm_test_func();return(0);}
7059_LT_EOF
7060
81ecdfbb 7061 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6 7062 (eval $ac_compile) 2>&5
20e95c23 7063 ac_status=$?
81ecdfbb
RW
7064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7065 test $ac_status = 0; }; then
7357c5b6
AM
7066 # Now try to grab the symbols.
7067 nlist=conftest.nm
3725885a
RW
7068 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7069 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
20e95c23 7070 ac_status=$?
81ecdfbb
RW
7071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7072 test $ac_status = 0; } && test -s "$nlist"; then
7357c5b6
AM
7073 # Try sorting and uniquifying the output.
7074 if sort "$nlist" | uniq > "$nlist"T; then
7075 mv -f "$nlist"T "$nlist"
7076 else
7077 rm -f "$nlist"T
7078 fi
d7040cdb 7079
7357c5b6
AM
7080 # Make sure that we snagged all the symbols we need.
7081 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7082 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7083 cat <<_LT_EOF > conftest.$ac_ext
7084#ifdef __cplusplus
7085extern "C" {
7086#endif
ce2cded5 7087
7357c5b6
AM
7088_LT_EOF
7089 # Now generate the symbol file.
7090 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
ce2cded5 7091
7357c5b6 7092 cat <<_LT_EOF >> conftest.$ac_ext
42ecbf5e 7093
7357c5b6
AM
7094/* The mapping between symbol names and symbols. */
7095const struct {
7096 const char *name;
7097 void *address;
7098}
7099lt__PROGRAM__LTX_preloaded_symbols[] =
7100{
7101 { "@PROGRAM@", (void *) 0 },
7102_LT_EOF
7103 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7104 cat <<\_LT_EOF >> conftest.$ac_ext
7105 {0, (void *) 0}
7106};
d7040cdb 7107
7357c5b6
AM
7108/* This works around a problem in FreeBSD linker */
7109#ifdef FREEBSD_WORKAROUND
7110static const void *lt_preloaded_setup() {
7111 return lt__PROGRAM__LTX_preloaded_symbols;
7112}
ce2cded5 7113#endif
42ecbf5e 7114
7357c5b6 7115#ifdef __cplusplus
ce2cded5 7116}
7357c5b6
AM
7117#endif
7118_LT_EOF
7119 # Now try linking the two files.
7120 mv conftest.$ac_objext conftstm.$ac_objext
7121 lt_save_LIBS="$LIBS"
7122 lt_save_CFLAGS="$CFLAGS"
7123 LIBS="conftstm.$ac_objext"
7124 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
81ecdfbb 7125 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
ce2cded5
L
7126 (eval $ac_link) 2>&5
7127 ac_status=$?
81ecdfbb
RW
7128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7129 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7357c5b6
AM
7130 pipe_works=yes
7131 fi
7132 LIBS="$lt_save_LIBS"
7133 CFLAGS="$lt_save_CFLAGS"
7134 else
7135 echo "cannot find nm_test_func in $nlist" >&5
7136 fi
7137 else
7138 echo "cannot find nm_test_var in $nlist" >&5
7139 fi
7140 else
7141 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7142 fi
7143 else
7144 echo "$progname: failed program was:" >&5
7145 cat conftest.$ac_ext >&5
7146 fi
b214d478 7147 rm -rf conftest* conftst*
7357c5b6
AM
7148
7149 # Do not use the global_symbol_pipe unless it works.
7150 if test "$pipe_works" = yes; then
7151 break
7152 else
7153 lt_cv_sys_global_symbol_pipe=
7154 fi
7155done
42ecbf5e 7156
ce2cded5 7157fi
7357c5b6
AM
7158
7159if test -z "$lt_cv_sys_global_symbol_pipe"; then
7160 lt_cv_sys_global_symbol_to_cdecl=
ce2cded5 7161fi
7357c5b6 7162if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
81ecdfbb
RW
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7164$as_echo "failed" >&6; }
7357c5b6 7165else
81ecdfbb
RW
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7167$as_echo "ok" >&6; }
ce2cded5 7168fi
e5a52504 7169
d7040cdb 7170
e5a52504 7171
d7040cdb 7172
d7040cdb 7173
d7040cdb 7174
d7040cdb 7175
d7040cdb 7176
d7040cdb 7177
d7040cdb 7178
d7040cdb 7179
d7040cdb 7180
7357c5b6
AM
7181
7182
7183
b214d478
SE
7184
7185
7186
7187
7188
7357c5b6
AM
7189
7190
81ecdfbb
RW
7191# Check whether --enable-libtool-lock was given.
7192if test "${enable_libtool_lock+set}" = set; then :
7193 enableval=$enable_libtool_lock;
7194fi
7357c5b6 7195
7357c5b6
AM
7196test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7197
7198# Some flags need to be propagated to the compiler or linker for good
7199# libtool support.
7200case $host in
7201ia64-*-hpux*)
7202 # Find out which ABI we are using.
7203 echo 'int i;' > conftest.$ac_ext
81ecdfbb 7204 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
7205 (eval $ac_compile) 2>&5
7206 ac_status=$?
81ecdfbb
RW
7207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7208 test $ac_status = 0; }; then
7357c5b6
AM
7209 case `/usr/bin/file conftest.$ac_objext` in
7210 *ELF-32*)
7211 HPUX_IA64_MODE="32"
7212 ;;
7213 *ELF-64*)
7214 HPUX_IA64_MODE="64"
7215 ;;
7216 esac
7217 fi
7218 rm -rf conftest*
7219 ;;
7220*-*-irix6*)
7221 # Find out which ABI we are using.
3725885a 7222 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
81ecdfbb 7223 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
7224 (eval $ac_compile) 2>&5
7225 ac_status=$?
81ecdfbb
RW
7226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7227 test $ac_status = 0; }; then
7357c5b6
AM
7228 if test "$lt_cv_prog_gnu_ld" = yes; then
7229 case `/usr/bin/file conftest.$ac_objext` in
7230 *32-bit*)
7231 LD="${LD-ld} -melf32bsmip"
7232 ;;
7233 *N32*)
7234 LD="${LD-ld} -melf32bmipn32"
7235 ;;
7236 *64-bit*)
7237 LD="${LD-ld} -melf64bmip"
7238 ;;
7239 esac
7240 else
7241 case `/usr/bin/file conftest.$ac_objext` in
7242 *32-bit*)
7243 LD="${LD-ld} -32"
7244 ;;
7245 *N32*)
7246 LD="${LD-ld} -n32"
7247 ;;
7248 *64-bit*)
7249 LD="${LD-ld} -64"
7250 ;;
7251 esac
7252 fi
7253 fi
7254 rm -rf conftest*
7255 ;;
7256
cc9afea3 7257x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7357c5b6
AM
7258s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7259 # Find out which ABI we are using.
7260 echo 'int i;' > conftest.$ac_ext
81ecdfbb 7261 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
7262 (eval $ac_compile) 2>&5
7263 ac_status=$?
81ecdfbb
RW
7264 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7265 test $ac_status = 0; }; then
7357c5b6
AM
7266 case `/usr/bin/file conftest.o` in
7267 *32-bit*)
7268 case $host in
7269 x86_64-*kfreebsd*-gnu)
7270 LD="${LD-ld} -m elf_i386_fbsd"
7271 ;;
7272 x86_64-*linux*)
6d2920c8
L
7273 case `/usr/bin/file conftest.o` in
7274 *x86-64*)
7275 LD="${LD-ld} -m elf32_x86_64"
7276 ;;
7277 *)
7278 LD="${LD-ld} -m elf_i386"
7279 ;;
7280 esac
7357c5b6 7281 ;;
cc9afea3
AM
7282 powerpc64le-*linux*)
7283 LD="${LD-ld} -m elf32lppclinux"
7284 ;;
7285 powerpc64-*linux*)
7357c5b6
AM
7286 LD="${LD-ld} -m elf32ppclinux"
7287 ;;
7288 s390x-*linux*)
7289 LD="${LD-ld} -m elf_s390"
7290 ;;
7291 sparc64-*linux*)
7292 LD="${LD-ld} -m elf32_sparc"
7293 ;;
7294 esac
7295 ;;
7296 *64-bit*)
7297 case $host in
7298 x86_64-*kfreebsd*-gnu)
7299 LD="${LD-ld} -m elf_x86_64_fbsd"
7300 ;;
7301 x86_64-*linux*)
7302 LD="${LD-ld} -m elf_x86_64"
7303 ;;
cc9afea3
AM
7304 powerpcle-*linux*)
7305 LD="${LD-ld} -m elf64lppc"
7306 ;;
7307 powerpc-*linux*)
7357c5b6
AM
7308 LD="${LD-ld} -m elf64ppc"
7309 ;;
7310 s390*-*linux*|s390*-*tpf*)
7311 LD="${LD-ld} -m elf64_s390"
7312 ;;
7313 sparc*-*linux*)
7314 LD="${LD-ld} -m elf64_sparc"
7315 ;;
7316 esac
7317 ;;
7318 esac
7319 fi
7320 rm -rf conftest*
7321 ;;
7322
7323*-*-sco3.2v5*)
7324 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7325 SAVE_CFLAGS="$CFLAGS"
7326 CFLAGS="$CFLAGS -belf"
81ecdfbb
RW
7327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7328$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
d0ac1c44 7329if ${lt_cv_cc_needs_belf+:} false; then :
81ecdfbb 7330 $as_echo_n "(cached) " >&6
ce2cded5 7331else
7357c5b6
AM
7332 ac_ext=c
7333ac_cpp='$CPP $CPPFLAGS'
7334ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7335ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7336ac_compiler_gnu=$ac_cv_c_compiler_gnu
7337
81ecdfbb 7338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 7339/* end confdefs.h. */
d7040cdb 7340
7357c5b6
AM
7341int
7342main ()
7343{
7344
7345 ;
7346 return 0;
7347}
ce2cded5 7348_ACEOF
81ecdfbb 7349if ac_fn_c_try_link "$LINENO"; then :
7357c5b6 7350 lt_cv_cc_needs_belf=yes
ce2cded5 7351else
81ecdfbb 7352 lt_cv_cc_needs_belf=no
ce2cded5 7353fi
81ecdfbb
RW
7354rm -f core conftest.err conftest.$ac_objext \
7355 conftest$ac_exeext conftest.$ac_ext
7357c5b6
AM
7356 ac_ext=c
7357ac_cpp='$CPP $CPPFLAGS'
7358ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7359ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7360ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 7361
b214d478 7362fi
81ecdfbb
RW
7363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7364$as_echo "$lt_cv_cc_needs_belf" >&6; }
b214d478
SE
7365 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7366 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7367 CFLAGS="$SAVE_CFLAGS"
7368 fi
7369 ;;
7370sparc*-*solaris*)
7371 # Find out which ABI we are using.
7372 echo 'int i;' > conftest.$ac_ext
81ecdfbb 7373 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
b214d478
SE
7374 (eval $ac_compile) 2>&5
7375 ac_status=$?
81ecdfbb
RW
7376 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7377 test $ac_status = 0; }; then
b214d478
SE
7378 case `/usr/bin/file conftest.o` in
7379 *64-bit*)
7380 case $lt_cv_prog_gnu_ld in
7381 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7382 *)
7383 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7384 LD="${LD-ld} -64"
7385 fi
7386 ;;
7387 esac
7388 ;;
7389 esac
7390 fi
7391 rm -rf conftest*
7392 ;;
7393esac
7394
7395need_locks="$enable_libtool_lock"
7396
7397
7398 case $host_os in
7399 rhapsody* | darwin*)
7400 if test -n "$ac_tool_prefix"; then
7401 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7402set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
81ecdfbb
RW
7403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7404$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7405if ${ac_cv_prog_DSYMUTIL+:} false; then :
81ecdfbb 7406 $as_echo_n "(cached) " >&6
b214d478
SE
7407else
7408 if test -n "$DSYMUTIL"; then
7409 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7410else
7411as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7412for as_dir in $PATH
7413do
7414 IFS=$as_save_IFS
7415 test -z "$as_dir" && as_dir=.
81ecdfbb 7416 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7417 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b214d478 7418 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
81ecdfbb 7419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7420 break 2
7421 fi
7422done
81ecdfbb
RW
7423 done
7424IFS=$as_save_IFS
b214d478
SE
7425
7426fi
7427fi
7428DSYMUTIL=$ac_cv_prog_DSYMUTIL
7429if test -n "$DSYMUTIL"; then
81ecdfbb
RW
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7431$as_echo "$DSYMUTIL" >&6; }
b214d478 7432else
81ecdfbb
RW
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7434$as_echo "no" >&6; }
b214d478
SE
7435fi
7436
81ecdfbb 7437
b214d478
SE
7438fi
7439if test -z "$ac_cv_prog_DSYMUTIL"; then
7440 ac_ct_DSYMUTIL=$DSYMUTIL
7441 # Extract the first word of "dsymutil", so it can be a program name with args.
7442set dummy dsymutil; ac_word=$2
81ecdfbb
RW
7443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7444$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7445if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
81ecdfbb 7446 $as_echo_n "(cached) " >&6
b214d478
SE
7447else
7448 if test -n "$ac_ct_DSYMUTIL"; then
7449 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7450else
7451as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7452for as_dir in $PATH
7453do
7454 IFS=$as_save_IFS
7455 test -z "$as_dir" && as_dir=.
81ecdfbb 7456 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7457 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b214d478 7458 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
81ecdfbb 7459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7460 break 2
7461 fi
7462done
81ecdfbb
RW
7463 done
7464IFS=$as_save_IFS
b214d478 7465
b214d478
SE
7466fi
7467fi
7468ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7469if test -n "$ac_ct_DSYMUTIL"; then
81ecdfbb
RW
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7471$as_echo "$ac_ct_DSYMUTIL" >&6; }
b214d478 7472else
81ecdfbb
RW
7473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7474$as_echo "no" >&6; }
b214d478
SE
7475fi
7476
81ecdfbb
RW
7477 if test "x$ac_ct_DSYMUTIL" = x; then
7478 DSYMUTIL=":"
7479 else
7480 case $cross_compiling:$ac_tool_warned in
7481yes:)
7482{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7483$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7484ac_tool_warned=yes ;;
7485esac
7486 DSYMUTIL=$ac_ct_DSYMUTIL
7487 fi
b214d478
SE
7488else
7489 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7490fi
7491
7492 if test -n "$ac_tool_prefix"; then
7493 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7494set dummy ${ac_tool_prefix}nmedit; ac_word=$2
81ecdfbb
RW
7495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7496$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7497if ${ac_cv_prog_NMEDIT+:} false; then :
81ecdfbb 7498 $as_echo_n "(cached) " >&6
b214d478
SE
7499else
7500 if test -n "$NMEDIT"; then
7501 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7502else
7503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7504for as_dir in $PATH
7505do
7506 IFS=$as_save_IFS
7507 test -z "$as_dir" && as_dir=.
81ecdfbb 7508 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7509 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b214d478 7510 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
81ecdfbb 7511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7512 break 2
7513 fi
7514done
81ecdfbb
RW
7515 done
7516IFS=$as_save_IFS
b214d478
SE
7517
7518fi
7519fi
7520NMEDIT=$ac_cv_prog_NMEDIT
7521if test -n "$NMEDIT"; then
81ecdfbb
RW
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7523$as_echo "$NMEDIT" >&6; }
b214d478 7524else
81ecdfbb
RW
7525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7526$as_echo "no" >&6; }
b214d478
SE
7527fi
7528
81ecdfbb 7529
b214d478
SE
7530fi
7531if test -z "$ac_cv_prog_NMEDIT"; then
7532 ac_ct_NMEDIT=$NMEDIT
7533 # Extract the first word of "nmedit", so it can be a program name with args.
7534set dummy nmedit; ac_word=$2
81ecdfbb
RW
7535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7536$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7537if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
81ecdfbb 7538 $as_echo_n "(cached) " >&6
b214d478
SE
7539else
7540 if test -n "$ac_ct_NMEDIT"; then
7541 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7542else
7543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7544for as_dir in $PATH
7545do
7546 IFS=$as_save_IFS
7547 test -z "$as_dir" && as_dir=.
81ecdfbb 7548 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7549 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b214d478 7550 ac_cv_prog_ac_ct_NMEDIT="nmedit"
81ecdfbb 7551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7552 break 2
7553 fi
7554done
81ecdfbb
RW
7555 done
7556IFS=$as_save_IFS
b214d478 7557
b214d478
SE
7558fi
7559fi
7560ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7561if test -n "$ac_ct_NMEDIT"; then
81ecdfbb
RW
7562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7563$as_echo "$ac_ct_NMEDIT" >&6; }
b214d478 7564else
81ecdfbb
RW
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7566$as_echo "no" >&6; }
b214d478
SE
7567fi
7568
81ecdfbb
RW
7569 if test "x$ac_ct_NMEDIT" = x; then
7570 NMEDIT=":"
7571 else
7572 case $cross_compiling:$ac_tool_warned in
7573yes:)
7574{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7575$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7576ac_tool_warned=yes ;;
7577esac
7578 NMEDIT=$ac_ct_NMEDIT
7579 fi
b214d478
SE
7580else
7581 NMEDIT="$ac_cv_prog_NMEDIT"
7582fi
7583
7584 if test -n "$ac_tool_prefix"; then
7585 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7586set dummy ${ac_tool_prefix}lipo; ac_word=$2
81ecdfbb
RW
7587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7588$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7589if ${ac_cv_prog_LIPO+:} false; then :
81ecdfbb 7590 $as_echo_n "(cached) " >&6
b214d478
SE
7591else
7592 if test -n "$LIPO"; then
7593 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7594else
7595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7596for as_dir in $PATH
7597do
7598 IFS=$as_save_IFS
7599 test -z "$as_dir" && as_dir=.
81ecdfbb 7600 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b214d478 7602 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
81ecdfbb 7603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7604 break 2
7605 fi
7606done
81ecdfbb
RW
7607 done
7608IFS=$as_save_IFS
b214d478
SE
7609
7610fi
7611fi
7612LIPO=$ac_cv_prog_LIPO
7613if test -n "$LIPO"; then
81ecdfbb
RW
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7615$as_echo "$LIPO" >&6; }
b214d478 7616else
81ecdfbb
RW
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7618$as_echo "no" >&6; }
b214d478
SE
7619fi
7620
81ecdfbb 7621
b214d478
SE
7622fi
7623if test -z "$ac_cv_prog_LIPO"; then
7624 ac_ct_LIPO=$LIPO
7625 # Extract the first word of "lipo", so it can be a program name with args.
7626set dummy lipo; ac_word=$2
81ecdfbb
RW
7627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7628$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7629if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
81ecdfbb 7630 $as_echo_n "(cached) " >&6
b214d478
SE
7631else
7632 if test -n "$ac_ct_LIPO"; then
7633 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7634else
7635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7636for as_dir in $PATH
7637do
7638 IFS=$as_save_IFS
7639 test -z "$as_dir" && as_dir=.
81ecdfbb 7640 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b214d478 7642 ac_cv_prog_ac_ct_LIPO="lipo"
81ecdfbb 7643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7644 break 2
7645 fi
7646done
81ecdfbb
RW
7647 done
7648IFS=$as_save_IFS
b214d478 7649
b214d478
SE
7650fi
7651fi
7652ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7653if test -n "$ac_ct_LIPO"; then
81ecdfbb
RW
7654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7655$as_echo "$ac_ct_LIPO" >&6; }
b214d478 7656else
81ecdfbb
RW
7657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7658$as_echo "no" >&6; }
b214d478
SE
7659fi
7660
81ecdfbb
RW
7661 if test "x$ac_ct_LIPO" = x; then
7662 LIPO=":"
7663 else
7664 case $cross_compiling:$ac_tool_warned in
7665yes:)
7666{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7667$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7668ac_tool_warned=yes ;;
7669esac
7670 LIPO=$ac_ct_LIPO
7671 fi
b214d478
SE
7672else
7673 LIPO="$ac_cv_prog_LIPO"
7674fi
7675
7676 if test -n "$ac_tool_prefix"; then
7677 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7678set dummy ${ac_tool_prefix}otool; ac_word=$2
81ecdfbb
RW
7679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7680$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7681if ${ac_cv_prog_OTOOL+:} false; then :
81ecdfbb 7682 $as_echo_n "(cached) " >&6
b214d478
SE
7683else
7684 if test -n "$OTOOL"; then
7685 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7686else
7687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7688for as_dir in $PATH
7689do
7690 IFS=$as_save_IFS
7691 test -z "$as_dir" && as_dir=.
81ecdfbb 7692 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7693 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b214d478 7694 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
81ecdfbb 7695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7696 break 2
7697 fi
7698done
81ecdfbb
RW
7699 done
7700IFS=$as_save_IFS
b214d478
SE
7701
7702fi
7703fi
7704OTOOL=$ac_cv_prog_OTOOL
7705if test -n "$OTOOL"; then
81ecdfbb
RW
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7707$as_echo "$OTOOL" >&6; }
b214d478 7708else
81ecdfbb
RW
7709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7710$as_echo "no" >&6; }
b214d478
SE
7711fi
7712
81ecdfbb 7713
b214d478
SE
7714fi
7715if test -z "$ac_cv_prog_OTOOL"; then
7716 ac_ct_OTOOL=$OTOOL
7717 # Extract the first word of "otool", so it can be a program name with args.
7718set dummy otool; ac_word=$2
81ecdfbb
RW
7719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7720$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7721if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
81ecdfbb 7722 $as_echo_n "(cached) " >&6
b214d478
SE
7723else
7724 if test -n "$ac_ct_OTOOL"; then
7725 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7726else
7727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7728for as_dir in $PATH
7729do
7730 IFS=$as_save_IFS
7731 test -z "$as_dir" && as_dir=.
81ecdfbb 7732 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7733 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b214d478 7734 ac_cv_prog_ac_ct_OTOOL="otool"
81ecdfbb 7735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7736 break 2
7737 fi
7738done
81ecdfbb
RW
7739 done
7740IFS=$as_save_IFS
b214d478 7741
b214d478
SE
7742fi
7743fi
7744ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7745if test -n "$ac_ct_OTOOL"; then
81ecdfbb
RW
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7747$as_echo "$ac_ct_OTOOL" >&6; }
b214d478 7748else
81ecdfbb
RW
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7750$as_echo "no" >&6; }
b214d478
SE
7751fi
7752
81ecdfbb
RW
7753 if test "x$ac_ct_OTOOL" = x; then
7754 OTOOL=":"
7755 else
7756 case $cross_compiling:$ac_tool_warned in
7757yes:)
7758{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7759$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7760ac_tool_warned=yes ;;
7761esac
7762 OTOOL=$ac_ct_OTOOL
7763 fi
b214d478
SE
7764else
7765 OTOOL="$ac_cv_prog_OTOOL"
7766fi
7767
7768 if test -n "$ac_tool_prefix"; then
7769 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7770set dummy ${ac_tool_prefix}otool64; ac_word=$2
81ecdfbb
RW
7771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7772$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7773if ${ac_cv_prog_OTOOL64+:} false; then :
81ecdfbb 7774 $as_echo_n "(cached) " >&6
b214d478
SE
7775else
7776 if test -n "$OTOOL64"; then
7777 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7778else
7779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7780for as_dir in $PATH
7781do
7782 IFS=$as_save_IFS
7783 test -z "$as_dir" && as_dir=.
81ecdfbb 7784 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7785 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b214d478 7786 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
81ecdfbb 7787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7788 break 2
7789 fi
7790done
81ecdfbb
RW
7791 done
7792IFS=$as_save_IFS
b214d478
SE
7793
7794fi
7795fi
7796OTOOL64=$ac_cv_prog_OTOOL64
7797if test -n "$OTOOL64"; then
81ecdfbb
RW
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7799$as_echo "$OTOOL64" >&6; }
b214d478 7800else
81ecdfbb
RW
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7802$as_echo "no" >&6; }
b214d478
SE
7803fi
7804
81ecdfbb 7805
b214d478
SE
7806fi
7807if test -z "$ac_cv_prog_OTOOL64"; then
7808 ac_ct_OTOOL64=$OTOOL64
7809 # Extract the first word of "otool64", so it can be a program name with args.
7810set dummy otool64; ac_word=$2
81ecdfbb
RW
7811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7812$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7813if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
81ecdfbb 7814 $as_echo_n "(cached) " >&6
b214d478
SE
7815else
7816 if test -n "$ac_ct_OTOOL64"; then
7817 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7818else
7819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7820for as_dir in $PATH
7821do
7822 IFS=$as_save_IFS
7823 test -z "$as_dir" && as_dir=.
81ecdfbb 7824 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7825 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b214d478 7826 ac_cv_prog_ac_ct_OTOOL64="otool64"
81ecdfbb 7827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7828 break 2
7829 fi
7830done
81ecdfbb
RW
7831 done
7832IFS=$as_save_IFS
b214d478 7833
b214d478
SE
7834fi
7835fi
7836ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7837if test -n "$ac_ct_OTOOL64"; then
81ecdfbb
RW
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7839$as_echo "$ac_ct_OTOOL64" >&6; }
b214d478 7840else
81ecdfbb
RW
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7842$as_echo "no" >&6; }
b214d478
SE
7843fi
7844
81ecdfbb
RW
7845 if test "x$ac_ct_OTOOL64" = x; then
7846 OTOOL64=":"
7847 else
7848 case $cross_compiling:$ac_tool_warned in
7849yes:)
7850{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7851$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7852ac_tool_warned=yes ;;
7853esac
7854 OTOOL64=$ac_ct_OTOOL64
7855 fi
b214d478
SE
7856else
7857 OTOOL64="$ac_cv_prog_OTOOL64"
7858fi
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885
81ecdfbb
RW
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7887$as_echo_n "checking for -single_module linker flag... " >&6; }
d0ac1c44 7888if ${lt_cv_apple_cc_single_mod+:} false; then :
81ecdfbb 7889 $as_echo_n "(cached) " >&6
b214d478
SE
7890else
7891 lt_cv_apple_cc_single_mod=no
7892 if test -z "${LT_MULTI_MODULE}"; then
7893 # By default we will add the -single_module flag. You can override
7894 # by either setting the environment variable LT_MULTI_MODULE
7895 # non-empty at configure time, or by adding -multi_module to the
7896 # link flags.
7897 rm -rf libconftest.dylib*
7898 echo "int foo(void){return 1;}" > conftest.c
7899 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7900-dynamiclib -Wl,-single_module conftest.c" >&5
7901 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7902 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7903 _lt_result=$?
7904 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7905 lt_cv_apple_cc_single_mod=yes
7906 else
7907 cat conftest.err >&5
7908 fi
7909 rm -rf libconftest.dylib*
7910 rm -f conftest.*
7911 fi
7912fi
81ecdfbb
RW
7913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7914$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7916$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
d0ac1c44 7917if ${lt_cv_ld_exported_symbols_list+:} false; then :
81ecdfbb 7918 $as_echo_n "(cached) " >&6
b214d478
SE
7919else
7920 lt_cv_ld_exported_symbols_list=no
7921 save_LDFLAGS=$LDFLAGS
7922 echo "_main" > conftest.sym
7923 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
81ecdfbb 7924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b214d478
SE
7925/* end confdefs.h. */
7926
7927int
7928main ()
7929{
7930
7931 ;
7932 return 0;
7933}
7934_ACEOF
81ecdfbb 7935if ac_fn_c_try_link "$LINENO"; then :
b214d478
SE
7936 lt_cv_ld_exported_symbols_list=yes
7937else
81ecdfbb 7938 lt_cv_ld_exported_symbols_list=no
b214d478 7939fi
81ecdfbb
RW
7940rm -f core conftest.err conftest.$ac_objext \
7941 conftest$ac_exeext conftest.$ac_ext
b214d478
SE
7942 LDFLAGS="$save_LDFLAGS"
7943
7944fi
81ecdfbb
RW
7945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7946$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
3725885a
RW
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7948$as_echo_n "checking for -force_load linker flag... " >&6; }
d0ac1c44 7949if ${lt_cv_ld_force_load+:} false; then :
3725885a
RW
7950 $as_echo_n "(cached) " >&6
7951else
7952 lt_cv_ld_force_load=no
7953 cat > conftest.c << _LT_EOF
7954int forced_loaded() { return 2;}
7955_LT_EOF
7956 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7957 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7958 echo "$AR cru libconftest.a conftest.o" >&5
7959 $AR cru libconftest.a conftest.o 2>&5
7960 cat > conftest.c << _LT_EOF
7961int main() { return 0;}
7962_LT_EOF
7963 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7964 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7965 _lt_result=$?
7966 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7967 lt_cv_ld_force_load=yes
7968 else
7969 cat conftest.err >&5
7970 fi
7971 rm -f conftest.err libconftest.a conftest conftest.c
7972 rm -rf conftest.dSYM
7973
7974fi
7975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7976$as_echo "$lt_cv_ld_force_load" >&6; }
b214d478
SE
7977 case $host_os in
7978 rhapsody* | darwin1.[012])
7979 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7980 darwin1.*)
7981 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7982 darwin*) # darwin 5.x on
7983 # if running on 10.5 or later, the deployment target defaults
7984 # to the OS version, if on x86, and 10.4, the deployment
7985 # target defaults to 10.4. Don't you love it?
7986 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7987 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7988 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6e733cce 7989 10.[012][,.]*)
b214d478
SE
7990 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7991 10.*)
7992 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7993 esac
7994 ;;
7995 esac
7996 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7997 _lt_dar_single_mod='$single_module'
7998 fi
7999 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8000 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8001 else
8002 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8003 fi
3725885a 8004 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
b214d478
SE
8005 _lt_dsymutil='~$DSYMUTIL $lib || :'
8006 else
8007 _lt_dsymutil=
8008 fi
8009 ;;
8010 esac
8011
b214d478 8012for ac_header in dlfcn.h
81ecdfbb
RW
8013do :
8014 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8015"
d0ac1c44 8016if test "x$ac_cv_header_dlfcn_h" = xyes; then :
b214d478 8017 cat >>confdefs.h <<_ACEOF
81ecdfbb 8018#define HAVE_DLFCN_H 1
b214d478
SE
8019_ACEOF
8020
8021fi
8022
8023done
8024
8025
8026
3725885a
RW
8027
8028
3cb62297 8029
b214d478
SE
8030# Set options
8031
8032
8033
8034 enable_dlopen=no
8035
8036
8037 enable_win32_dll=no
8038
8039
81ecdfbb
RW
8040 # Check whether --enable-shared was given.
8041if test "${enable_shared+set}" = set; then :
8042 enableval=$enable_shared; p=${PACKAGE-default}
b214d478
SE
8043 case $enableval in
8044 yes) enable_shared=yes ;;
8045 no) enable_shared=no ;;
8046 *)
8047 enable_shared=no
8048 # Look at the argument we got. We use all the common list separators.
8049 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8050 for pkg in $enableval; do
8051 IFS="$lt_save_ifs"
8052 if test "X$pkg" = "X$p"; then
8053 enable_shared=yes
8054 fi
8055 done
8056 IFS="$lt_save_ifs"
8057 ;;
8058 esac
8059else
8060 enable_shared=yes
81ecdfbb 8061fi
b214d478
SE
8062
8063
8064
8065
8066
8067
8068
8069
81ecdfbb
RW
8070
8071 # Check whether --enable-static was given.
8072if test "${enable_static+set}" = set; then :
8073 enableval=$enable_static; p=${PACKAGE-default}
b214d478
SE
8074 case $enableval in
8075 yes) enable_static=yes ;;
8076 no) enable_static=no ;;
8077 *)
8078 enable_static=no
8079 # Look at the argument we got. We use all the common list separators.
8080 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8081 for pkg in $enableval; do
8082 IFS="$lt_save_ifs"
8083 if test "X$pkg" = "X$p"; then
8084 enable_static=yes
8085 fi
8086 done
8087 IFS="$lt_save_ifs"
8088 ;;
8089 esac
8090else
8091 enable_static=yes
81ecdfbb 8092fi
b214d478
SE
8093
8094
8095
8096
8097
8098
8099
8100
8101
81ecdfbb
RW
8102
8103# Check whether --with-pic was given.
8104if test "${with_pic+set}" = set; then :
8105 withval=$with_pic; pic_mode="$withval"
b214d478
SE
8106else
8107 pic_mode=default
81ecdfbb
RW
8108fi
8109
b214d478
SE
8110
8111test -z "$pic_mode" && pic_mode=default
8112
8113
8114
8115
8116
8117
8118
81ecdfbb
RW
8119 # Check whether --enable-fast-install was given.
8120if test "${enable_fast_install+set}" = set; then :
8121 enableval=$enable_fast_install; p=${PACKAGE-default}
b214d478
SE
8122 case $enableval in
8123 yes) enable_fast_install=yes ;;
8124 no) enable_fast_install=no ;;
8125 *)
8126 enable_fast_install=no
8127 # Look at the argument we got. We use all the common list separators.
8128 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8129 for pkg in $enableval; do
8130 IFS="$lt_save_ifs"
8131 if test "X$pkg" = "X$p"; then
8132 enable_fast_install=yes
8133 fi
8134 done
8135 IFS="$lt_save_ifs"
7357c5b6
AM
8136 ;;
8137 esac
b214d478
SE
8138else
8139 enable_fast_install=yes
81ecdfbb
RW
8140fi
8141
ce2cded5 8142
ce2cded5
L
8143
8144
ce2cded5 8145
42ecbf5e 8146
d7040cdb 8147
d7040cdb 8148
d7040cdb 8149
d7040cdb 8150
d7040cdb 8151
ce2cded5
L
8152# This can be used to rebuild libtool when needed
8153LIBTOOL_DEPS="$ltmain"
d7040cdb 8154
ce2cded5
L
8155# Always use our own libtool.
8156LIBTOOL='$(SHELL) $(top_builddir)/libtool'
d7040cdb 8157
d7040cdb 8158
d7040cdb 8159
d7040cdb 8160
d7040cdb 8161
d7040cdb 8162
d7040cdb 8163
d7040cdb 8164
d7040cdb 8165
d7040cdb 8166
d7040cdb 8167
d7040cdb 8168
d7040cdb 8169
d7040cdb 8170
d7040cdb 8171
d7040cdb 8172
d7040cdb
SE
8173
8174
8175
8176
8177
8178
8179
3725885a 8180
d7040cdb
SE
8181
8182
ce2cded5 8183test -z "$LN_S" && LN_S="ln -s"
d7040cdb
SE
8184
8185
8186
8187
8188
8189
d7040cdb
SE
8190
8191
8192
8193
8194
8195
8196
8197
ce2cded5
L
8198if test -n "${ZSH_VERSION+set}" ; then
8199 setopt NO_GLOB_SUBST
8200fi
d7040cdb 8201
81ecdfbb
RW
8202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8203$as_echo_n "checking for objdir... " >&6; }
d0ac1c44 8204if ${lt_cv_objdir+:} false; then :
81ecdfbb 8205 $as_echo_n "(cached) " >&6
ce2cded5
L
8206else
8207 rm -f .libs 2>/dev/null
8208mkdir .libs 2>/dev/null
8209if test -d .libs; then
8210 lt_cv_objdir=.libs
8211else
8212 # MS-DOS does not allow filenames that begin with a dot.
8213 lt_cv_objdir=_libs
8214fi
8215rmdir .libs 2>/dev/null
8216fi
81ecdfbb
RW
8217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8218$as_echo "$lt_cv_objdir" >&6; }
ce2cded5 8219objdir=$lt_cv_objdir
d7040cdb
SE
8220
8221
8222
8223
8224
ce2cded5
L
8225cat >>confdefs.h <<_ACEOF
8226#define LT_OBJDIR "$lt_cv_objdir/"
8227_ACEOF
d7040cdb
SE
8228
8229
8230
8231
ce2cded5
L
8232case $host_os in
8233aix3*)
8234 # AIX sometimes has problems with the GCC collect2 program. For some
8235 # reason, if we set the COLLECT_NAMES environment variable, the problems
8236 # vanish in a puff of smoke.
8237 if test "X${COLLECT_NAMES+set}" != Xset; then
8238 COLLECT_NAMES=
8239 export COLLECT_NAMES
8240 fi
8241 ;;
8242esac
d7040cdb 8243
ce2cded5
L
8244# Global variables:
8245ofile=libtool
8246can_build_shared=yes
d7040cdb 8247
ce2cded5
L
8248# All known linkers require a `.a' archive for static linking (except MSVC,
8249# which needs '.lib').
8250libext=a
d7040cdb 8251
ce2cded5 8252with_gnu_ld="$lt_cv_prog_gnu_ld"
d7040cdb 8253
ce2cded5
L
8254old_CC="$CC"
8255old_CFLAGS="$CFLAGS"
d7040cdb 8256
ce2cded5
L
8257# Set sane defaults for various variables
8258test -z "$CC" && CC=cc
8259test -z "$LTCC" && LTCC=$CC
8260test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8261test -z "$LD" && LD=ld
8262test -z "$ac_objext" && ac_objext=o
d7040cdb 8263
ce2cded5
L
8264for cc_temp in $compiler""; do
8265 case $cc_temp in
8266 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8267 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8268 \-*) ;;
8269 *) break;;
8270 esac
8271done
3725885a 8272cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
d7040cdb
SE
8273
8274
ce2cded5
L
8275# Only perform the check for file, if the check method requires it
8276test -z "$MAGIC_CMD" && MAGIC_CMD=file
8277case $deplibs_check_method in
8278file_magic*)
8279 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
81ecdfbb
RW
8280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8281$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
d0ac1c44 8282if ${lt_cv_path_MAGIC_CMD+:} false; then :
81ecdfbb 8283 $as_echo_n "(cached) " >&6
ce2cded5
L
8284else
8285 case $MAGIC_CMD in
8286[\\/*] | ?:[\\/]*)
8287 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8288 ;;
8289*)
8290 lt_save_MAGIC_CMD="$MAGIC_CMD"
8291 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8292 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8293 for ac_dir in $ac_dummy; do
8294 IFS="$lt_save_ifs"
8295 test -z "$ac_dir" && ac_dir=.
8296 if test -f $ac_dir/${ac_tool_prefix}file; then
8297 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8298 if test -n "$file_magic_test_file"; then
8299 case $deplibs_check_method in
8300 "file_magic "*)
8301 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8302 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8303 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8304 $EGREP "$file_magic_regex" > /dev/null; then
8305 :
8306 else
8307 cat <<_LT_EOF 1>&2
d7040cdb 8308
ce2cded5
L
8309*** Warning: the command libtool uses to detect shared libraries,
8310*** $file_magic_cmd, produces output that libtool cannot recognize.
8311*** The result is that libtool may fail to recognize shared libraries
8312*** as such. This will affect the creation of libtool libraries that
8313*** depend on shared libraries, but programs linked with such libtool
8314*** libraries will work regardless of this problem. Nevertheless, you
8315*** may want to report the problem to your system manager and/or to
8316*** bug-libtool@gnu.org
d7040cdb 8317
ce2cded5
L
8318_LT_EOF
8319 fi ;;
8320 esac
8321 fi
8322 break
8323 fi
8324 done
8325 IFS="$lt_save_ifs"
8326 MAGIC_CMD="$lt_save_MAGIC_CMD"
8327 ;;
8328esac
8329fi
d7040cdb 8330
ce2cded5
L
8331MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8332if test -n "$MAGIC_CMD"; then
81ecdfbb
RW
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8334$as_echo "$MAGIC_CMD" >&6; }
ce2cded5 8335else
81ecdfbb
RW
8336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8337$as_echo "no" >&6; }
ce2cded5 8338fi
d7040cdb
SE
8339
8340
8341
8342
8343
ce2cded5
L
8344if test -z "$lt_cv_path_MAGIC_CMD"; then
8345 if test -n "$ac_tool_prefix"; then
81ecdfbb
RW
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8347$as_echo_n "checking for file... " >&6; }
d0ac1c44 8348if ${lt_cv_path_MAGIC_CMD+:} false; then :
81ecdfbb 8349 $as_echo_n "(cached) " >&6
ce2cded5
L
8350else
8351 case $MAGIC_CMD in
8352[\\/*] | ?:[\\/]*)
8353 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8354 ;;
8355*)
8356 lt_save_MAGIC_CMD="$MAGIC_CMD"
8357 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8358 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8359 for ac_dir in $ac_dummy; do
8360 IFS="$lt_save_ifs"
8361 test -z "$ac_dir" && ac_dir=.
8362 if test -f $ac_dir/file; then
8363 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8364 if test -n "$file_magic_test_file"; then
8365 case $deplibs_check_method in
8366 "file_magic "*)
8367 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8368 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8369 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8370 $EGREP "$file_magic_regex" > /dev/null; then
8371 :
8372 else
8373 cat <<_LT_EOF 1>&2
d7040cdb 8374
ce2cded5
L
8375*** Warning: the command libtool uses to detect shared libraries,
8376*** $file_magic_cmd, produces output that libtool cannot recognize.
8377*** The result is that libtool may fail to recognize shared libraries
8378*** as such. This will affect the creation of libtool libraries that
8379*** depend on shared libraries, but programs linked with such libtool
8380*** libraries will work regardless of this problem. Nevertheless, you
8381*** may want to report the problem to your system manager and/or to
8382*** bug-libtool@gnu.org
d7040cdb 8383
ce2cded5
L
8384_LT_EOF
8385 fi ;;
8386 esac
8387 fi
8388 break
8389 fi
8390 done
8391 IFS="$lt_save_ifs"
8392 MAGIC_CMD="$lt_save_MAGIC_CMD"
8393 ;;
8394esac
8395fi
d7040cdb 8396
ce2cded5
L
8397MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8398if test -n "$MAGIC_CMD"; then
81ecdfbb
RW
8399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8400$as_echo "$MAGIC_CMD" >&6; }
ce2cded5 8401else
81ecdfbb
RW
8402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8403$as_echo "no" >&6; }
ce2cded5 8404fi
d7040cdb
SE
8405
8406
ce2cded5
L
8407 else
8408 MAGIC_CMD=:
8409 fi
8410fi
d7040cdb 8411
ce2cded5
L
8412 fi
8413 ;;
8414esac
d7040cdb 8415
ce2cded5 8416# Use C for the default configuration in the libtool script
d7040cdb 8417
ce2cded5
L
8418lt_save_CC="$CC"
8419ac_ext=c
8420ac_cpp='$CPP $CPPFLAGS'
8421ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8422ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8423ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb
SE
8424
8425
ce2cded5
L
8426# Source file extension for C test sources.
8427ac_ext=c
d7040cdb 8428
ce2cded5
L
8429# Object file extension for compiled C test sources.
8430objext=o
8431objext=$objext
d7040cdb 8432
ce2cded5
L
8433# Code to be used in simple compile tests
8434lt_simple_compile_test_code="int some_variable = 0;"
d7040cdb 8435
ce2cded5
L
8436# Code to be used in simple link tests
8437lt_simple_link_test_code='int main(){return(0);}'
d7040cdb
SE
8438
8439
8440
8441
8442
8443
8444
ce2cded5
L
8445# If no C compiler was specified, use CC.
8446LTCC=${LTCC-"$CC"}
d7040cdb 8447
ce2cded5
L
8448# If no C compiler flags were specified, use CFLAGS.
8449LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
d7040cdb 8450
ce2cded5
L
8451# Allow CC to be a program name with arguments.
8452compiler=$CC
d7040cdb 8453
ce2cded5
L
8454# Save the default compiler, since it gets overwritten when the other
8455# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8456compiler_DEFAULT=$CC
d7040cdb 8457
ce2cded5
L
8458# save warnings/boilerplate of simple test code
8459ac_outfile=conftest.$ac_objext
8460echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8461eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8462_lt_compiler_boilerplate=`cat conftest.err`
8463$RM conftest*
d7040cdb 8464
ce2cded5
L
8465ac_outfile=conftest.$ac_objext
8466echo "$lt_simple_link_test_code" >conftest.$ac_ext
8467eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8468_lt_linker_boilerplate=`cat conftest.err`
b214d478 8469$RM -r conftest*
d7040cdb
SE
8470
8471
ce2cded5
L
8472## CAVEAT EMPTOR:
8473## There is no encapsulation within the following macros, do not change
8474## the running order or otherwise move them around unless you know exactly
8475## what you are doing...
8476if test -n "$compiler"; then
d7040cdb 8477
ce2cded5 8478lt_prog_compiler_no_builtin_flag=
d7040cdb 8479
ce2cded5 8480if test "$GCC" = yes; then
3725885a
RW
8481 case $cc_basename in
8482 nvcc*)
8483 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8484 *)
8485 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8486 esac
d7040cdb 8487
81ecdfbb
RW
8488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8489$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
d0ac1c44 8490if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
81ecdfbb 8491 $as_echo_n "(cached) " >&6
ce2cded5
L
8492else
8493 lt_cv_prog_compiler_rtti_exceptions=no
8494 ac_outfile=conftest.$ac_objext
8495 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8496 lt_compiler_flag="-fno-rtti -fno-exceptions"
8497 # Insert the option either (1) after the last *FLAGS variable, or
8498 # (2) before a word containing "conftest.", or (3) at the end.
8499 # Note that $ac_compile itself does not contain backslashes and begins
8500 # with a dollar sign (not a hyphen), so the echo should work correctly.
8501 # The option is referenced via a variable to avoid confusing sed.
8502 lt_compile=`echo "$ac_compile" | $SED \
8503 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8504 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8505 -e 's:$: $lt_compiler_flag:'`
3725885a 8506 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
ce2cded5
L
8507 (eval "$lt_compile" 2>conftest.err)
8508 ac_status=$?
8509 cat conftest.err >&5
3725885a 8510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
8511 if (exit $ac_status) && test -s "$ac_outfile"; then
8512 # The compiler can only warn and ignore the option if not recognized
8513 # So say no if there are warnings other than the usual output.
3725885a 8514 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
ce2cded5
L
8515 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8516 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8517 lt_cv_prog_compiler_rtti_exceptions=yes
8518 fi
8519 fi
8520 $RM conftest*
d7040cdb 8521
ce2cded5 8522fi
81ecdfbb
RW
8523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8524$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
d7040cdb 8525
ce2cded5
L
8526if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8527 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8528else
8529 :
8530fi
d7040cdb 8531
ce2cded5 8532fi
d7040cdb
SE
8533
8534
8535
8536
8537
8538
ce2cded5
L
8539 lt_prog_compiler_wl=
8540lt_prog_compiler_pic=
8541lt_prog_compiler_static=
d7040cdb 8542
81ecdfbb
RW
8543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8544$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
d7040cdb 8545
ce2cded5
L
8546 if test "$GCC" = yes; then
8547 lt_prog_compiler_wl='-Wl,'
8548 lt_prog_compiler_static='-static'
d7040cdb 8549
ce2cded5
L
8550 case $host_os in
8551 aix*)
8552 # All AIX code is PIC.
8553 if test "$host_cpu" = ia64; then
8554 # AIX 5 now supports IA64 processor
8555 lt_prog_compiler_static='-Bstatic'
8556 fi
52204357 8557 lt_prog_compiler_pic='-fPIC'
ce2cded5 8558 ;;
d7040cdb 8559
ce2cded5 8560 amigaos*)
b214d478
SE
8561 case $host_cpu in
8562 powerpc)
8563 # see comment about AmigaOS4 .so support
8564 lt_prog_compiler_pic='-fPIC'
8565 ;;
8566 m68k)
8567 # FIXME: we need at least 68020 code to build shared libraries, but
8568 # adding the `-m68020' flag to GCC prevents building anything better,
8569 # like `-m68040'.
8570 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8571 ;;
8572 esac
ce2cded5 8573 ;;
d7040cdb 8574
ce2cded5
L
8575 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8576 # PIC is the default for these OSes.
8577 ;;
d7040cdb 8578
b214d478 8579 mingw* | cygwin* | pw32* | os2* | cegcc*)
ce2cded5
L
8580 # This hack is so that the source file can tell whether it is being
8581 # built for inclusion in a dll (and should export symbols for example).
8582 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8583 # (--disable-auto-import) libraries
8584 lt_prog_compiler_pic='-DDLL_EXPORT'
8585 ;;
d7040cdb 8586
ce2cded5
L
8587 darwin* | rhapsody*)
8588 # PIC is the default on this platform
8589 # Common symbols not allowed in MH_DYLIB files
8590 lt_prog_compiler_pic='-fno-common'
8591 ;;
d7040cdb 8592
3725885a
RW
8593 haiku*)
8594 # PIC is the default for Haiku.
8595 # The "-static" flag exists, but is broken.
8596 lt_prog_compiler_static=
8597 ;;
8598
ce2cded5 8599 hpux*)
b214d478
SE
8600 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8601 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8602 # sets the default TLS model and affects inlining.
ce2cded5 8603 case $host_cpu in
b214d478 8604 hppa*64*)
ce2cded5
L
8605 # +Z the default
8606 ;;
8607 *)
8608 lt_prog_compiler_pic='-fPIC'
8609 ;;
8610 esac
8611 ;;
d7040cdb 8612
ce2cded5
L
8613 interix[3-9]*)
8614 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8615 # Instead, we relocate shared libraries at runtime.
8616 ;;
d7040cdb 8617
ce2cded5
L
8618 msdosdjgpp*)
8619 # Just because we use GCC doesn't mean we suddenly get shared libraries
8620 # on systems that don't support them.
8621 lt_prog_compiler_can_build_shared=no
8622 enable_shared=no
8623 ;;
d7040cdb 8624
ce2cded5
L
8625 *nto* | *qnx*)
8626 # QNX uses GNU C++, but need to define -shared option too, otherwise
8627 # it will coredump.
8628 lt_prog_compiler_pic='-fPIC -shared'
8629 ;;
d7040cdb 8630
ce2cded5
L
8631 sysv4*MP*)
8632 if test -d /usr/nec; then
8633 lt_prog_compiler_pic=-Kconform_pic
8634 fi
8635 ;;
d7040cdb 8636
ce2cded5
L
8637 *)
8638 lt_prog_compiler_pic='-fPIC'
8639 ;;
8640 esac
3725885a
RW
8641
8642 case $cc_basename in
8643 nvcc*) # Cuda Compiler Driver 2.2
8644 lt_prog_compiler_wl='-Xlinker '
8645 lt_prog_compiler_pic='-Xcompiler -fPIC'
8646 ;;
8647 esac
ce2cded5
L
8648 else
8649 # PORTME Check for flag to pass linker flags through the system compiler.
8650 case $host_os in
8651 aix*)
8652 lt_prog_compiler_wl='-Wl,'
8653 if test "$host_cpu" = ia64; then
8654 # AIX 5 now supports IA64 processor
8655 lt_prog_compiler_static='-Bstatic'
8656 else
8657 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8658 fi
8659 ;;
d7040cdb 8660
b214d478 8661 mingw* | cygwin* | pw32* | os2* | cegcc*)
ce2cded5
L
8662 # This hack is so that the source file can tell whether it is being
8663 # built for inclusion in a dll (and should export symbols for example).
8664 lt_prog_compiler_pic='-DDLL_EXPORT'
8665 ;;
d7040cdb 8666
ce2cded5
L
8667 hpux9* | hpux10* | hpux11*)
8668 lt_prog_compiler_wl='-Wl,'
8669 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8670 # not for PA HP-UX.
8671 case $host_cpu in
8672 hppa*64*|ia64*)
8673 # +Z the default
8674 ;;
8675 *)
8676 lt_prog_compiler_pic='+Z'
8677 ;;
8678 esac
8679 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8680 lt_prog_compiler_static='${wl}-a ${wl}archive'
8681 ;;
d7040cdb 8682
ce2cded5
L
8683 irix5* | irix6* | nonstopux*)
8684 lt_prog_compiler_wl='-Wl,'
8685 # PIC (with -KPIC) is the default.
8686 lt_prog_compiler_static='-non_shared'
8687 ;;
d7040cdb 8688
58e24671 8689 linux* | k*bsd*-gnu | kopensolaris*-gnu)
ce2cded5 8690 case $cc_basename in
b214d478
SE
8691 # old Intel for x86_64 which still supported -KPIC.
8692 ecc*)
ce2cded5
L
8693 lt_prog_compiler_wl='-Wl,'
8694 lt_prog_compiler_pic='-KPIC'
8695 lt_prog_compiler_static='-static'
8696 ;;
b214d478
SE
8697 # icc used to be incompatible with GCC.
8698 # ICC 10 doesn't accept -KPIC any more.
8699 icc* | ifort*)
8700 lt_prog_compiler_wl='-Wl,'
8701 lt_prog_compiler_pic='-fPIC'
8702 lt_prog_compiler_static='-static'
8703 ;;
8704 # Lahey Fortran 8.1.
8705 lf95*)
8706 lt_prog_compiler_wl='-Wl,'
8707 lt_prog_compiler_pic='--shared'
8708 lt_prog_compiler_static='--static'
8709 ;;
3725885a 8710 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
ce2cded5
L
8711 # Portland Group compilers (*not* the Pentium gcc compiler,
8712 # which looks to be a dead project)
8713 lt_prog_compiler_wl='-Wl,'
8714 lt_prog_compiler_pic='-fpic'
8715 lt_prog_compiler_static='-Bstatic'
8716 ;;
8717 ccc*)
8718 lt_prog_compiler_wl='-Wl,'
8719 # All Alpha code is PIC.
8720 lt_prog_compiler_static='-non_shared'
8721 ;;
3725885a
RW
8722 xl* | bgxl* | bgf* | mpixl*)
8723 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
b214d478
SE
8724 lt_prog_compiler_wl='-Wl,'
8725 lt_prog_compiler_pic='-qpic'
8726 lt_prog_compiler_static='-qstaticlink'
8727 ;;
ce2cded5
L
8728 *)
8729 case `$CC -V 2>&1 | sed 5q` in
3725885a
RW
8730 *Sun\ F* | *Sun*Fortran*)
8731 # Sun Fortran 8.3 passes all unrecognized flags to the linker
ce2cded5
L
8732 lt_prog_compiler_pic='-KPIC'
8733 lt_prog_compiler_static='-Bstatic'
3725885a 8734 lt_prog_compiler_wl=''
ce2cded5 8735 ;;
3725885a
RW
8736 *Sun\ C*)
8737 # Sun C 5.9
ce2cded5
L
8738 lt_prog_compiler_pic='-KPIC'
8739 lt_prog_compiler_static='-Bstatic'
3725885a 8740 lt_prog_compiler_wl='-Wl,'
ce2cded5
L
8741 ;;
8742 esac
8743 ;;
8744 esac
8745 ;;
d7040cdb 8746
ce2cded5
L
8747 newsos6)
8748 lt_prog_compiler_pic='-KPIC'
8749 lt_prog_compiler_static='-Bstatic'
8750 ;;
d7040cdb 8751
ce2cded5
L
8752 *nto* | *qnx*)
8753 # QNX uses GNU C++, but need to define -shared option too, otherwise
8754 # it will coredump.
8755 lt_prog_compiler_pic='-fPIC -shared'
8756 ;;
d7040cdb 8757
ce2cded5
L
8758 osf3* | osf4* | osf5*)
8759 lt_prog_compiler_wl='-Wl,'
8760 # All OSF/1 code is PIC.
8761 lt_prog_compiler_static='-non_shared'
8762 ;;
d7040cdb 8763
ce2cded5
L
8764 rdos*)
8765 lt_prog_compiler_static='-non_shared'
8766 ;;
d7040cdb 8767
ce2cded5
L
8768 solaris*)
8769 lt_prog_compiler_pic='-KPIC'
8770 lt_prog_compiler_static='-Bstatic'
8771 case $cc_basename in
8772 f77* | f90* | f95*)
8773 lt_prog_compiler_wl='-Qoption ld ';;
8774 *)
8775 lt_prog_compiler_wl='-Wl,';;
8776 esac
8777 ;;
d7040cdb 8778
ce2cded5
L
8779 sunos4*)
8780 lt_prog_compiler_wl='-Qoption ld '
8781 lt_prog_compiler_pic='-PIC'
8782 lt_prog_compiler_static='-Bstatic'
8783 ;;
d7040cdb 8784
ce2cded5
L
8785 sysv4 | sysv4.2uw2* | sysv4.3*)
8786 lt_prog_compiler_wl='-Wl,'
8787 lt_prog_compiler_pic='-KPIC'
8788 lt_prog_compiler_static='-Bstatic'
8789 ;;
d7040cdb 8790
ce2cded5
L
8791 sysv4*MP*)
8792 if test -d /usr/nec ;then
8793 lt_prog_compiler_pic='-Kconform_pic'
8794 lt_prog_compiler_static='-Bstatic'
8795 fi
8796 ;;
d7040cdb 8797
ce2cded5
L
8798 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8799 lt_prog_compiler_wl='-Wl,'
8800 lt_prog_compiler_pic='-KPIC'
8801 lt_prog_compiler_static='-Bstatic'
8802 ;;
d7040cdb 8803
ce2cded5
L
8804 unicos*)
8805 lt_prog_compiler_wl='-Wl,'
8806 lt_prog_compiler_can_build_shared=no
8807 ;;
d7040cdb 8808
ce2cded5
L
8809 uts4*)
8810 lt_prog_compiler_pic='-pic'
8811 lt_prog_compiler_static='-Bstatic'
8812 ;;
d7040cdb 8813
ce2cded5
L
8814 *)
8815 lt_prog_compiler_can_build_shared=no
8816 ;;
8817 esac
8818 fi
d7040cdb 8819
ce2cded5
L
8820case $host_os in
8821 # For platforms which do not support PIC, -DPIC is meaningless:
8822 *djgpp*)
8823 lt_prog_compiler_pic=
8824 ;;
8825 *)
8826 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8827 ;;
8828esac
81ecdfbb
RW
8829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8830$as_echo "$lt_prog_compiler_pic" >&6; }
d7040cdb
SE
8831
8832
8833
8834
8835
8836
ce2cded5
L
8837#
8838# Check to make sure the PIC flag actually works.
8839#
8840if test -n "$lt_prog_compiler_pic"; then
81ecdfbb
RW
8841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8842$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
d0ac1c44 8843if ${lt_cv_prog_compiler_pic_works+:} false; then :
81ecdfbb 8844 $as_echo_n "(cached) " >&6
ce2cded5 8845else
b214d478 8846 lt_cv_prog_compiler_pic_works=no
ce2cded5
L
8847 ac_outfile=conftest.$ac_objext
8848 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8849 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8850 # Insert the option either (1) after the last *FLAGS variable, or
8851 # (2) before a word containing "conftest.", or (3) at the end.
8852 # Note that $ac_compile itself does not contain backslashes and begins
8853 # with a dollar sign (not a hyphen), so the echo should work correctly.
8854 # The option is referenced via a variable to avoid confusing sed.
8855 lt_compile=`echo "$ac_compile" | $SED \
8856 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8857 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8858 -e 's:$: $lt_compiler_flag:'`
3725885a 8859 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
ce2cded5
L
8860 (eval "$lt_compile" 2>conftest.err)
8861 ac_status=$?
8862 cat conftest.err >&5
3725885a 8863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
8864 if (exit $ac_status) && test -s "$ac_outfile"; then
8865 # The compiler can only warn and ignore the option if not recognized
8866 # So say no if there are warnings other than the usual output.
3725885a 8867 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
ce2cded5
L
8868 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8869 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
b214d478 8870 lt_cv_prog_compiler_pic_works=yes
ce2cded5
L
8871 fi
8872 fi
8873 $RM conftest*
d7040cdb 8874
ce2cded5 8875fi
81ecdfbb
RW
8876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8877$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
ce2cded5 8878
b214d478 8879if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
ce2cded5
L
8880 case $lt_prog_compiler_pic in
8881 "" | " "*) ;;
8882 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8883 esac
8884else
8885 lt_prog_compiler_pic=
8886 lt_prog_compiler_can_build_shared=no
8887fi
8888
8889fi
d7040cdb
SE
8890
8891
8892
8893
8894
8895
ce2cded5
L
8896#
8897# Check to make sure the static flag actually works.
8898#
8899wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
81ecdfbb
RW
8900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8901$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
d0ac1c44 8902if ${lt_cv_prog_compiler_static_works+:} false; then :
81ecdfbb 8903 $as_echo_n "(cached) " >&6
ce2cded5 8904else
b214d478 8905 lt_cv_prog_compiler_static_works=no
ce2cded5
L
8906 save_LDFLAGS="$LDFLAGS"
8907 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8908 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8909 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8910 # The linker can only warn and ignore the option if not recognized
8911 # So say no if there are warnings
8912 if test -s conftest.err; then
8913 # Append any errors to the config.log.
8914 cat conftest.err 1>&5
3725885a 8915 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
ce2cded5
L
8916 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8917 if diff conftest.exp conftest.er2 >/dev/null; then
b214d478 8918 lt_cv_prog_compiler_static_works=yes
ce2cded5
L
8919 fi
8920 else
b214d478 8921 lt_cv_prog_compiler_static_works=yes
ce2cded5
L
8922 fi
8923 fi
b214d478 8924 $RM -r conftest*
ce2cded5 8925 LDFLAGS="$save_LDFLAGS"
d7040cdb 8926
ce2cded5 8927fi
81ecdfbb
RW
8928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8929$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
d7040cdb 8930
b214d478 8931if test x"$lt_cv_prog_compiler_static_works" = xyes; then
ce2cded5
L
8932 :
8933else
8934 lt_prog_compiler_static=
8935fi
d7040cdb
SE
8936
8937
8938
8939
8940
8941
8942
81ecdfbb
RW
8943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8944$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
d0ac1c44 8945if ${lt_cv_prog_compiler_c_o+:} false; then :
81ecdfbb 8946 $as_echo_n "(cached) " >&6
ce2cded5
L
8947else
8948 lt_cv_prog_compiler_c_o=no
8949 $RM -r conftest 2>/dev/null
8950 mkdir conftest
8951 cd conftest
8952 mkdir out
8953 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 8954
ce2cded5
L
8955 lt_compiler_flag="-o out/conftest2.$ac_objext"
8956 # Insert the option either (1) after the last *FLAGS variable, or
8957 # (2) before a word containing "conftest.", or (3) at the end.
8958 # Note that $ac_compile itself does not contain backslashes and begins
8959 # with a dollar sign (not a hyphen), so the echo should work correctly.
8960 lt_compile=`echo "$ac_compile" | $SED \
8961 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8962 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8963 -e 's:$: $lt_compiler_flag:'`
3725885a 8964 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
ce2cded5
L
8965 (eval "$lt_compile" 2>out/conftest.err)
8966 ac_status=$?
8967 cat out/conftest.err >&5
3725885a 8968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
8969 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8970 then
8971 # The compiler can only warn and ignore the option if not recognized
8972 # So say no if there are warnings
3725885a 8973 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
ce2cded5
L
8974 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8975 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8976 lt_cv_prog_compiler_c_o=yes
8977 fi
8978 fi
8979 chmod u+w . 2>&5
8980 $RM conftest*
8981 # SGI C++ compiler will create directory out/ii_files/ for
8982 # template instantiation
8983 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8984 $RM out/* && rmdir out
8985 cd ..
8986 $RM -r conftest
8987 $RM conftest*
d7040cdb 8988
ce2cded5 8989fi
81ecdfbb
RW
8990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8991$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
d7040cdb
SE
8992
8993
8994
8995
8996
8997
81ecdfbb
RW
8998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8999$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
d0ac1c44 9000if ${lt_cv_prog_compiler_c_o+:} false; then :
81ecdfbb 9001 $as_echo_n "(cached) " >&6
ce2cded5
L
9002else
9003 lt_cv_prog_compiler_c_o=no
9004 $RM -r conftest 2>/dev/null
9005 mkdir conftest
9006 cd conftest
9007 mkdir out
9008 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 9009
ce2cded5
L
9010 lt_compiler_flag="-o out/conftest2.$ac_objext"
9011 # Insert the option either (1) after the last *FLAGS variable, or
9012 # (2) before a word containing "conftest.", or (3) at the end.
9013 # Note that $ac_compile itself does not contain backslashes and begins
9014 # with a dollar sign (not a hyphen), so the echo should work correctly.
9015 lt_compile=`echo "$ac_compile" | $SED \
9016 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9017 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9018 -e 's:$: $lt_compiler_flag:'`
3725885a 9019 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
ce2cded5
L
9020 (eval "$lt_compile" 2>out/conftest.err)
9021 ac_status=$?
9022 cat out/conftest.err >&5
3725885a 9023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
9024 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9025 then
9026 # The compiler can only warn and ignore the option if not recognized
9027 # So say no if there are warnings
3725885a 9028 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
ce2cded5
L
9029 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9030 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9031 lt_cv_prog_compiler_c_o=yes
9032 fi
9033 fi
9034 chmod u+w . 2>&5
9035 $RM conftest*
9036 # SGI C++ compiler will create directory out/ii_files/ for
9037 # template instantiation
9038 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9039 $RM out/* && rmdir out
9040 cd ..
9041 $RM -r conftest
9042 $RM conftest*
9043
9044fi
81ecdfbb
RW
9045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9046$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
ce2cded5
L
9047
9048
9049
9050
9051hard_links="nottested"
9052if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9053 # do not overwrite the value of need_locks provided by the user
81ecdfbb
RW
9054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9055$as_echo_n "checking if we can lock with hard links... " >&6; }
ce2cded5
L
9056 hard_links=yes
9057 $RM conftest*
9058 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9059 touch conftest.a
9060 ln conftest.a conftest.b 2>&5 || hard_links=no
9061 ln conftest.a conftest.b 2>/dev/null && hard_links=no
81ecdfbb
RW
9062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9063$as_echo "$hard_links" >&6; }
ce2cded5 9064 if test "$hard_links" = no; then
81ecdfbb
RW
9065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9066$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
ce2cded5 9067 need_locks=warn
d7040cdb 9068 fi
d7040cdb 9069else
ce2cded5 9070 need_locks=no
d7040cdb 9071fi
d7040cdb 9072
d7040cdb 9073
d7040cdb 9074
d7040cdb 9075
d7040cdb 9076
d7040cdb 9077
81ecdfbb
RW
9078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9079$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
d7040cdb 9080
ce2cded5
L
9081 runpath_var=
9082 allow_undefined_flag=
9083 always_export_symbols=no
9084 archive_cmds=
9085 archive_expsym_cmds=
9086 compiler_needs_object=no
9087 enable_shared_with_static_runtimes=no
9088 export_dynamic_flag_spec=
9089 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9090 hardcode_automatic=no
9091 hardcode_direct=no
9092 hardcode_direct_absolute=no
9093 hardcode_libdir_flag_spec=
9094 hardcode_libdir_flag_spec_ld=
9095 hardcode_libdir_separator=
9096 hardcode_minus_L=no
9097 hardcode_shlibpath_var=unsupported
9098 inherit_rpath=no
9099 link_all_deplibs=unknown
9100 module_cmds=
9101 module_expsym_cmds=
9102 old_archive_from_new_cmds=
9103 old_archive_from_expsyms_cmds=
9104 thread_safe_flag_spec=
9105 whole_archive_flag_spec=
9106 # include_expsyms should be a list of space-separated symbols to be *always*
9107 # included in the symbol list
9108 include_expsyms=
9109 # exclude_expsyms can be an extended regexp of symbols to exclude
9110 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9111 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9112 # as well as any symbol that contains `d'.
b214d478 9113 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
ce2cded5
L
9114 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9115 # platforms (ab)use it in PIC code, but their linkers get confused if
9116 # the symbol is explicitly referenced. Since portable code cannot
9117 # rely on this symbol name, it's probably fine to never include it in
9118 # preloaded symbol tables.
b214d478 9119 # Exclude shared library initialization/finalization symbols.
ce2cded5 9120 extract_expsyms_cmds=
d7040cdb 9121
ce2cded5 9122 case $host_os in
b214d478 9123 cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
9124 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9125 # When not using gcc, we currently assume that we are using
9126 # Microsoft Visual C++.
9127 if test "$GCC" != yes; then
9128 with_gnu_ld=no
9129 fi
d7040cdb 9130 ;;
ce2cded5
L
9131 interix*)
9132 # we just hope/assume this is gcc and not c89 (= MSVC++)
9133 with_gnu_ld=yes
9134 ;;
9135 openbsd*)
9136 with_gnu_ld=no
d7040cdb
SE
9137 ;;
9138 esac
d7040cdb 9139
ce2cded5 9140 ld_shlibs=yes
3725885a
RW
9141
9142 # On some targets, GNU ld is compatible enough with the native linker
9143 # that we're better off using the native interface for both.
9144 lt_use_gnu_ld_interface=no
ce2cded5 9145 if test "$with_gnu_ld" = yes; then
3725885a
RW
9146 case $host_os in
9147 aix*)
9148 # The AIX port of GNU ld has always aspired to compatibility
9149 # with the native linker. However, as the warning in the GNU ld
9150 # block says, versions before 2.19.5* couldn't really create working
9151 # shared libraries, regardless of the interface used.
9152 case `$LD -v 2>&1` in
9153 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9154 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9155 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9156 *)
9157 lt_use_gnu_ld_interface=yes
9158 ;;
9159 esac
9160 ;;
9161 *)
9162 lt_use_gnu_ld_interface=yes
9163 ;;
9164 esac
9165 fi
9166
9167 if test "$lt_use_gnu_ld_interface" = yes; then
ce2cded5
L
9168 # If archive_cmds runs LD, not CC, wlarc should be empty
9169 wlarc='${wl}'
d7040cdb 9170
ce2cded5
L
9171 # Set some defaults for GNU ld with shared library support. These
9172 # are reset later if shared libraries are not supported. Putting them
9173 # here allows them to be overridden if necessary.
9174 runpath_var=LD_RUN_PATH
9175 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9176 export_dynamic_flag_spec='${wl}--export-dynamic'
9177 # ancient GNU ld didn't support --whole-archive et. al.
9178 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9179 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9180 else
9181 whole_archive_flag_spec=
9182 fi
9183 supports_anon_versioning=no
9184 case `$LD -v 2>&1` in
3725885a 9185 *GNU\ gold*) supports_anon_versioning=yes ;;
ce2cded5
L
9186 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9187 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9188 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9189 *\ 2.11.*) ;; # other 2.11 versions
9190 *) supports_anon_versioning=yes ;;
9191 esac
d7040cdb 9192
ce2cded5
L
9193 # See if GNU ld supports shared libraries.
9194 case $host_os in
50e7d84b 9195 aix[3-9]*)
ce2cded5
L
9196 # On AIX/PPC, the GNU linker is very broken
9197 if test "$host_cpu" != ia64; then
9198 ld_shlibs=no
9199 cat <<_LT_EOF 1>&2
d7040cdb 9200
3725885a 9201*** Warning: the GNU linker, at least up to release 2.19, is reported
ce2cded5
L
9202*** to be unable to reliably create shared libraries on AIX.
9203*** Therefore, libtool is disabling shared libraries support. If you
3725885a
RW
9204*** really care for shared libraries, you may want to install binutils
9205*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9206*** You will then need to restart the configuration process.
d7040cdb 9207
ce2cded5
L
9208_LT_EOF
9209 fi
d7040cdb 9210 ;;
d7040cdb 9211
ce2cded5 9212 amigaos*)
b214d478
SE
9213 case $host_cpu in
9214 powerpc)
9215 # see comment about AmigaOS4 .so support
9216 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9217 archive_expsym_cmds=''
9218 ;;
9219 m68k)
9220 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)'
9221 hardcode_libdir_flag_spec='-L$libdir'
9222 hardcode_minus_L=yes
9223 ;;
9224 esac
ce2cded5 9225 ;;
d7040cdb 9226
ce2cded5
L
9227 beos*)
9228 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9229 allow_undefined_flag=unsupported
9230 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9231 # support --undefined. This deserves some investigation. FIXME
9232 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9233 else
9234 ld_shlibs=no
9235 fi
9236 ;;
d7040cdb 9237
b214d478 9238 cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
9239 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9240 # as there is no search path for DLLs.
9241 hardcode_libdir_flag_spec='-L$libdir'
3725885a 9242 export_dynamic_flag_spec='${wl}--export-all-symbols'
ce2cded5
L
9243 allow_undefined_flag=unsupported
9244 always_export_symbols=no
9245 enable_shared_with_static_runtimes=yes
9246 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9247
9248 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9249 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9250 # If the export-symbols file already is a .def file (1st line
9251 # is EXPORTS), use it as is; otherwise, prepend...
9252 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9253 cp $export_symbols $output_objdir/$soname.def;
d7040cdb 9254 else
ce2cded5
L
9255 echo EXPORTS > $output_objdir/$soname.def;
9256 cat $export_symbols >> $output_objdir/$soname.def;
9257 fi~
9258 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9259 else
9260 ld_shlibs=no
9261 fi
9262 ;;
d7040cdb 9263
3725885a
RW
9264 haiku*)
9265 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9266 link_all_deplibs=yes
9267 ;;
9268
ce2cded5
L
9269 interix[3-9]*)
9270 hardcode_direct=no
9271 hardcode_shlibpath_var=no
9272 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9273 export_dynamic_flag_spec='${wl}-E'
9274 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9275 # Instead, shared libraries are loaded at an image base (0x10000000 by
9276 # default) and relocated if they conflict, which is a slow very memory
9277 # consuming and fragmenting process. To avoid this, we pick a random,
9278 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9279 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9280 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9281 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'
9282 ;;
d7040cdb 9283
58e24671 9284 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
ce2cded5
L
9285 tmp_diet=no
9286 if test "$host_os" = linux-dietlibc; then
9287 case $cc_basename in
9288 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9289 esac
9290 fi
9291 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9292 && test "$tmp_diet" = no
9293 then
6e733cce 9294 tmp_addflag=' $pic_flag'
b214d478 9295 tmp_sharedflag='-shared'
ce2cded5
L
9296 case $cc_basename,$host_cpu in
9297 pgcc*) # Portland Group C compiler
3725885a 9298 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'
ce2cded5
L
9299 tmp_addflag=' $pic_flag'
9300 ;;
3725885a
RW
9301 pgf77* | pgf90* | pgf95* | pgfortran*)
9302 # Portland Group f77 and f90 compilers
9303 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'
ce2cded5
L
9304 tmp_addflag=' $pic_flag -Mnomain' ;;
9305 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9306 tmp_addflag=' -i_dynamic' ;;
9307 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9308 tmp_addflag=' -i_dynamic -nofor_main' ;;
9309 ifc* | ifort*) # Intel Fortran compiler
9310 tmp_addflag=' -nofor_main' ;;
b214d478
SE
9311 lf95*) # Lahey Fortran 8.1
9312 whole_archive_flag_spec=
9313 tmp_sharedflag='--shared' ;;
3725885a 9314 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
b214d478
SE
9315 tmp_sharedflag='-qmkshrobj'
9316 tmp_addflag= ;;
3725885a
RW
9317 nvcc*) # Cuda Compiler Driver 2.2
9318 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'
9319 compiler_needs_object=yes
9320 ;;
ce2cded5
L
9321 esac
9322 case `$CC -V 2>&1 | sed 5q` in
9323 *Sun\ C*) # Sun C 5.9
3725885a 9324 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'
ce2cded5
L
9325 compiler_needs_object=yes
9326 tmp_sharedflag='-G' ;;
9327 *Sun\ F*) # Sun Fortran 8.3
9328 tmp_sharedflag='-G' ;;
ce2cded5
L
9329 esac
9330 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
d7040cdb 9331
ce2cded5
L
9332 if test "x$supports_anon_versioning" = xyes; then
9333 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9334 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9335 echo "local: *; };" >> $output_objdir/$libname.ver~
9336 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9337 fi
b214d478
SE
9338
9339 case $cc_basename in
3725885a 9340 xlf* | bgf* | bgxlf* | mpixlf*)
b214d478
SE
9341 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9342 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9343 hardcode_libdir_flag_spec=
9344 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9345 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9346 if test "x$supports_anon_versioning" = xyes; then
9347 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9348 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9349 echo "local: *; };" >> $output_objdir/$libname.ver~
9350 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9351 fi
9352 ;;
9353 esac
ce2cded5
L
9354 else
9355 ld_shlibs=no
9356 fi
9357 ;;
d7040cdb 9358
ce2cded5
L
9359 netbsd*)
9360 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9361 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9362 wlarc=
9363 else
9364 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9365 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9366 fi
9367 ;;
9368
9369 solaris*)
9370 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9371 ld_shlibs=no
9372 cat <<_LT_EOF 1>&2
9373
9374*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9375*** create shared libraries on Solaris systems. Therefore, libtool
9376*** is disabling shared libraries support. We urge you to upgrade GNU
9377*** binutils to release 2.9.1 or newer. Another option is to modify
9378*** your PATH or compiler configuration so that the native linker is
9379*** used, and then restart.
9380
9381_LT_EOF
9382 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9383 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9384 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9385 else
9386 ld_shlibs=no
9387 fi
9388 ;;
9389
9390 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9391 case `$LD -v 2>&1` in
9392 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9393 ld_shlibs=no
9394 cat <<_LT_EOF 1>&2
9395
9396*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9397*** reliably create shared libraries on SCO systems. Therefore, libtool
9398*** is disabling shared libraries support. We urge you to upgrade GNU
9399*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9400*** your PATH or compiler configuration so that the native linker is
9401*** used, and then restart.
9402
9403_LT_EOF
9404 ;;
9405 *)
9406 # For security reasons, it is highly recommended that you always
9407 # use absolute paths for naming shared libraries, and exclude the
9408 # DT_RUNPATH tag from executables and libraries. But doing so
9409 # requires that you compile everything twice, which is a pain.
9410 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9411 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9412 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9413 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9414 else
9415 ld_shlibs=no
9416 fi
9417 ;;
9418 esac
9419 ;;
9420
9421 sunos4*)
9422 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9423 wlarc=
9424 hardcode_direct=yes
9425 hardcode_shlibpath_var=no
9426 ;;
9427
9428 *)
9429 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9430 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9431 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9432 else
9433 ld_shlibs=no
9434 fi
9435 ;;
9436 esac
9437
9438 if test "$ld_shlibs" = no; then
9439 runpath_var=
9440 hardcode_libdir_flag_spec=
9441 export_dynamic_flag_spec=
9442 whole_archive_flag_spec=
9443 fi
9444 else
9445 # PORTME fill in a description of your system's linker (not GNU ld)
9446 case $host_os in
9447 aix3*)
9448 allow_undefined_flag=unsupported
9449 always_export_symbols=yes
9450 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'
9451 # Note: this linker hardcodes the directories in LIBPATH if there
9452 # are no directories specified by -L.
9453 hardcode_minus_L=yes
9454 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9455 # Neither direct hardcoding nor static linking is supported with a
9456 # broken collect2.
9457 hardcode_direct=unsupported
9458 fi
9459 ;;
9460
50e7d84b 9461 aix[4-9]*)
ce2cded5
L
9462 if test "$host_cpu" = ia64; then
9463 # On IA64, the linker does run time linking by default, so we don't
9464 # have to do anything special.
9465 aix_use_runtimelinking=no
9466 exp_sym_flag='-Bexport'
9467 no_entry_flag=""
9468 else
9469 # If we're using GNU nm, then we don't want the "-C" option.
9470 # -C means demangle to AIX nm, but means don't demangle with GNU nm
3725885a
RW
9471 # Also, AIX nm treats weak defined symbols like other global
9472 # defined symbols, whereas GNU nm marks them as "W".
ce2cded5 9473 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
3725885a 9474 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'
ce2cded5 9475 else
5c14705f 9476 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
ce2cded5
L
9477 fi
9478 aix_use_runtimelinking=no
9479
9480 # Test if we are trying to use run time linking or normal
9481 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9482 # need to do runtime linking.
50e7d84b 9483 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
ce2cded5
L
9484 for ld_flag in $LDFLAGS; do
9485 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9486 aix_use_runtimelinking=yes
9487 break
9488 fi
9489 done
9490 ;;
9491 esac
9492
9493 exp_sym_flag='-bexport'
9494 no_entry_flag='-bnoentry'
9495 fi
9496
9497 # When large executables or shared objects are built, AIX ld can
9498 # have problems creating the table of contents. If linking a library
9499 # or program results in "error TOC overflow" add -mminimal-toc to
9500 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9501 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9502
9503 archive_cmds=''
9504 hardcode_direct=yes
9505 hardcode_direct_absolute=yes
9506 hardcode_libdir_separator=':'
9507 link_all_deplibs=yes
9508 file_list_spec='${wl}-f,'
9509
9510 if test "$GCC" = yes; then
9511 case $host_os in aix4.[012]|aix4.[012].*)
9512 # We only want to do this on AIX 4.2 and lower, the check
9513 # below for broken collect2 doesn't work under 4.3+
9514 collect2name=`${CC} -print-prog-name=collect2`
9515 if test -f "$collect2name" &&
9516 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9517 then
9518 # We have reworked collect2
9519 :
9520 else
9521 # We have old collect2
9522 hardcode_direct=unsupported
9523 # It fails to find uninstalled libraries when the uninstalled
9524 # path is not listed in the libpath. Setting hardcode_minus_L
9525 # to unsupported forces relinking
9526 hardcode_minus_L=yes
9527 hardcode_libdir_flag_spec='-L$libdir'
9528 hardcode_libdir_separator=
9529 fi
9530 ;;
9531 esac
9532 shared_flag='-shared'
9533 if test "$aix_use_runtimelinking" = yes; then
9534 shared_flag="$shared_flag "'${wl}-G'
9535 fi
9536 else
9537 # not using gcc
9538 if test "$host_cpu" = ia64; then
9539 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9540 # chokes on -Wl,-G. The following line is correct:
9541 shared_flag='-G'
9542 else
9543 if test "$aix_use_runtimelinking" = yes; then
9544 shared_flag='${wl}-G'
9545 else
9546 shared_flag='${wl}-bM:SRE'
9547 fi
9548 fi
9549 fi
9550
b214d478 9551 export_dynamic_flag_spec='${wl}-bexpall'
ce2cded5
L
9552 # It seems that -bexpall does not export symbols beginning with
9553 # underscore (_), so it is better to generate a list of symbols to export.
9554 always_export_symbols=yes
9555 if test "$aix_use_runtimelinking" = yes; then
9556 # Warning - without using the other runtime loading flags (-brtl),
9557 # -berok will link without error, but may produce a broken library.
9558 allow_undefined_flag='-berok'
9559 # Determine the default libpath from the value encoded in an
9560 # empty executable.
81ecdfbb 9561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5
L
9562/* end confdefs.h. */
9563
9564int
9565main ()
9566{
9567
9568 ;
9569 return 0;
9570}
9571_ACEOF
81ecdfbb 9572if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 9573
ce2cded5
L
9574lt_aix_libpath_sed='
9575 /Import File Strings/,/^$/ {
9576 /^0/ {
9577 s/^0 *\(.*\)$/\1/
9578 p
9579 }
9580 }'
9581aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9582# Check for a 64-bit object if we didn't find anything.
9583if test -z "$aix_libpath"; then
9584 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9585fi
d7040cdb 9586fi
81ecdfbb
RW
9587rm -f core conftest.err conftest.$ac_objext \
9588 conftest$ac_exeext conftest.$ac_ext
ce2cded5 9589if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
d7040cdb 9590
ce2cded5 9591 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
3725885a 9592 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"
ce2cded5
L
9593 else
9594 if test "$host_cpu" = ia64; then
9595 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9596 allow_undefined_flag="-z nodefs"
9597 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"
9598 else
9599 # Determine the default libpath from the value encoded in an
9600 # empty executable.
81ecdfbb 9601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 9602/* end confdefs.h. */
d7040cdb 9603
ce2cded5
L
9604int
9605main ()
9606{
d7040cdb 9607
ce2cded5
L
9608 ;
9609 return 0;
9610}
9611_ACEOF
81ecdfbb 9612if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 9613
ce2cded5
L
9614lt_aix_libpath_sed='
9615 /Import File Strings/,/^$/ {
9616 /^0/ {
9617 s/^0 *\(.*\)$/\1/
9618 p
9619 }
9620 }'
9621aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9622# Check for a 64-bit object if we didn't find anything.
9623if test -z "$aix_libpath"; then
9624 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9625fi
ce2cded5 9626fi
81ecdfbb
RW
9627rm -f core conftest.err conftest.$ac_objext \
9628 conftest$ac_exeext conftest.$ac_ext
ce2cded5 9629if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
d7040cdb 9630
ce2cded5
L
9631 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9632 # Warning - without using the other run time loading flags,
9633 # -berok will link without error, but may produce a broken library.
9634 no_undefined_flag=' ${wl}-bernotok'
9635 allow_undefined_flag=' ${wl}-berok'
3725885a
RW
9636 if test "$with_gnu_ld" = yes; then
9637 # We only use this code for GNU lds that support --whole-archive.
9638 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9639 else
9640 # Exported symbols can be pulled into shared objects from archives
9641 whole_archive_flag_spec='$convenience'
9642 fi
ce2cded5
L
9643 archive_cmds_need_lc=yes
9644 # This is similar to how AIX traditionally builds its shared libraries.
9645 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'
9646 fi
9647 fi
9648 ;;
d7040cdb 9649
ce2cded5 9650 amigaos*)
b214d478
SE
9651 case $host_cpu in
9652 powerpc)
9653 # see comment about AmigaOS4 .so support
9654 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9655 archive_expsym_cmds=''
9656 ;;
9657 m68k)
9658 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)'
9659 hardcode_libdir_flag_spec='-L$libdir'
9660 hardcode_minus_L=yes
9661 ;;
9662 esac
ce2cded5
L
9663 ;;
9664
9665 bsdi[45]*)
9666 export_dynamic_flag_spec=-rdynamic
9667 ;;
9668
b214d478 9669 cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
9670 # When not using gcc, we currently assume that we are using
9671 # Microsoft Visual C++.
9672 # hardcode_libdir_flag_spec is actually meaningless, as there is
9673 # no search path for DLLs.
9674 hardcode_libdir_flag_spec=' '
9675 allow_undefined_flag=unsupported
9676 # Tell ltmain to make .lib files, not .a files.
9677 libext=lib
9678 # Tell ltmain to make .dll files, not .so files.
9679 shrext_cmds=".dll"
9680 # FIXME: Setting linknames here is a bad hack.
3725885a 9681 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
ce2cded5
L
9682 # The linker will automatically build a .lib file if we build a DLL.
9683 old_archive_from_new_cmds='true'
9684 # FIXME: Should let the user specify the lib program.
9685 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9686 fix_srcfile_path='`cygpath -w "$srcfile"`'
9687 enable_shared_with_static_runtimes=yes
9688 ;;
9689
9690 darwin* | rhapsody*)
d7040cdb 9691
b214d478
SE
9692
9693 archive_cmds_need_lc=no
9694 hardcode_direct=no
9695 hardcode_automatic=yes
9696 hardcode_shlibpath_var=unsupported
3725885a
RW
9697 if test "$lt_cv_ld_force_load" = "yes"; then
9698 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\"`'
9699 else
9700 whole_archive_flag_spec=''
9701 fi
b214d478
SE
9702 link_all_deplibs=yes
9703 allow_undefined_flag="$_lt_dar_allow_undefined"
9704 case $cc_basename in
9705 ifort*) _lt_dar_can_shared=yes ;;
9706 *) _lt_dar_can_shared=$GCC ;;
9707 esac
9708 if test "$_lt_dar_can_shared" = "yes"; then
3725885a 9709 output_verbose_link_cmd=func_echo_all
b214d478
SE
9710 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9711 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9712 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}"
9713 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}"
9714
9715 else
9716 ld_shlibs=no
9717 fi
9718
ce2cded5 9719 ;;
d7040cdb 9720
ce2cded5
L
9721 dgux*)
9722 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9723 hardcode_libdir_flag_spec='-L$libdir'
9724 hardcode_shlibpath_var=no
9725 ;;
d7040cdb 9726
ce2cded5
L
9727 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9728 # support. Future versions do this automatically, but an explicit c++rt0.o
9729 # does not break anything, and helps significantly (at the cost of a little
9730 # extra space).
9731 freebsd2.2*)
9732 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9733 hardcode_libdir_flag_spec='-R$libdir'
9734 hardcode_direct=yes
9735 hardcode_shlibpath_var=no
d7040cdb 9736 ;;
d7040cdb 9737
ce2cded5 9738 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6d2920c8 9739 freebsd2.*)
ce2cded5
L
9740 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9741 hardcode_direct=yes
9742 hardcode_minus_L=yes
9743 hardcode_shlibpath_var=no
9744 ;;
d7040cdb 9745
ce2cded5
L
9746 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9747 freebsd* | dragonfly*)
9748 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9749 hardcode_libdir_flag_spec='-R$libdir'
9750 hardcode_direct=yes
9751 hardcode_shlibpath_var=no
9752 ;;
d7040cdb 9753
ce2cded5
L
9754 hpux9*)
9755 if test "$GCC" = yes; then
9756 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9757 else
9758 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'
9759 fi
9760 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9761 hardcode_libdir_separator=:
9762 hardcode_direct=yes
d7040cdb 9763
ce2cded5
L
9764 # hardcode_minus_L: Not really in the search PATH,
9765 # but as the default location of the library.
9766 hardcode_minus_L=yes
9767 export_dynamic_flag_spec='${wl}-E'
9768 ;;
d7040cdb 9769
ce2cded5 9770 hpux10*)
3725885a 9771 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
ce2cded5
L
9772 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9773 else
9774 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9775 fi
9776 if test "$with_gnu_ld" = no; then
9777 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9778 hardcode_libdir_flag_spec_ld='+b $libdir'
9779 hardcode_libdir_separator=:
9780 hardcode_direct=yes
9781 hardcode_direct_absolute=yes
9782 export_dynamic_flag_spec='${wl}-E'
9783 # hardcode_minus_L: Not really in the search PATH,
9784 # but as the default location of the library.
9785 hardcode_minus_L=yes
9786 fi
9787 ;;
d7040cdb 9788
ce2cded5 9789 hpux11*)
3725885a 9790 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
ce2cded5
L
9791 case $host_cpu in
9792 hppa*64*)
9793 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9794 ;;
9795 ia64*)
b214d478 9796 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
ce2cded5
L
9797 ;;
9798 *)
9799 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9800 ;;
9801 esac
9802 else
9803 case $host_cpu in
9804 hppa*64*)
9805 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9806 ;;
9807 ia64*)
9808 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9809 ;;
9810 *)
3725885a
RW
9811
9812 # Older versions of the 11.00 compiler do not understand -b yet
9813 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9815$as_echo_n "checking if $CC understands -b... " >&6; }
d0ac1c44 9816if ${lt_cv_prog_compiler__b+:} false; then :
3725885a
RW
9817 $as_echo_n "(cached) " >&6
9818else
9819 lt_cv_prog_compiler__b=no
9820 save_LDFLAGS="$LDFLAGS"
9821 LDFLAGS="$LDFLAGS -b"
9822 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9823 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9824 # The linker can only warn and ignore the option if not recognized
9825 # So say no if there are warnings
9826 if test -s conftest.err; then
9827 # Append any errors to the config.log.
9828 cat conftest.err 1>&5
9829 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9830 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9831 if diff conftest.exp conftest.er2 >/dev/null; then
9832 lt_cv_prog_compiler__b=yes
9833 fi
9834 else
9835 lt_cv_prog_compiler__b=yes
9836 fi
9837 fi
9838 $RM -r conftest*
9839 LDFLAGS="$save_LDFLAGS"
9840
9841fi
9842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9843$as_echo "$lt_cv_prog_compiler__b" >&6; }
9844
9845if test x"$lt_cv_prog_compiler__b" = xyes; then
9846 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9847else
9848 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9849fi
9850
ce2cded5
L
9851 ;;
9852 esac
9853 fi
9854 if test "$with_gnu_ld" = no; then
9855 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9856 hardcode_libdir_separator=:
d7040cdb 9857
ce2cded5
L
9858 case $host_cpu in
9859 hppa*64*|ia64*)
9860 hardcode_direct=no
9861 hardcode_shlibpath_var=no
9862 ;;
9863 *)
9864 hardcode_direct=yes
9865 hardcode_direct_absolute=yes
9866 export_dynamic_flag_spec='${wl}-E'
d7040cdb 9867
ce2cded5
L
9868 # hardcode_minus_L: Not really in the search PATH,
9869 # but as the default location of the library.
9870 hardcode_minus_L=yes
9871 ;;
9872 esac
9873 fi
9874 ;;
d7040cdb 9875
ce2cded5
L
9876 irix5* | irix6* | nonstopux*)
9877 if test "$GCC" = yes; then
3725885a 9878 archive_cmds='$CC -shared $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'
ce2cded5
L
9879 # Try to use the -exported_symbol ld option, if it does not
9880 # work, assume that -exports_file does not work either and
9881 # implicitly export all symbols.
9882 save_LDFLAGS="$LDFLAGS"
9883 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
81ecdfbb
RW
9884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9885/* end confdefs.h. */
ce2cded5
L
9886int foo(void) {}
9887_ACEOF
81ecdfbb 9888if ac_fn_c_try_link "$LINENO"; then :
3725885a 9889 archive_expsym_cmds='$CC -shared $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'
d7040cdb 9890
ce2cded5 9891fi
81ecdfbb
RW
9892rm -f core conftest.err conftest.$ac_objext \
9893 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
9894 LDFLAGS="$save_LDFLAGS"
9895 else
3725885a
RW
9896 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'
9897 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'
ce2cded5
L
9898 fi
9899 archive_cmds_need_lc='no'
9900 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9901 hardcode_libdir_separator=:
9902 inherit_rpath=yes
9903 link_all_deplibs=yes
9904 ;;
d7040cdb 9905
ce2cded5
L
9906 netbsd*)
9907 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9908 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9909 else
9910 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9911 fi
9912 hardcode_libdir_flag_spec='-R$libdir'
9913 hardcode_direct=yes
9914 hardcode_shlibpath_var=no
9915 ;;
d7040cdb 9916
ce2cded5
L
9917 newsos6)
9918 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9919 hardcode_direct=yes
9920 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9921 hardcode_libdir_separator=:
9922 hardcode_shlibpath_var=no
9923 ;;
d7040cdb 9924
ce2cded5
L
9925 *nto* | *qnx*)
9926 ;;
d7040cdb 9927
ce2cded5 9928 openbsd*)
b214d478
SE
9929 if test -f /usr/libexec/ld.so; then
9930 hardcode_direct=yes
9931 hardcode_shlibpath_var=no
9932 hardcode_direct_absolute=yes
9933 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
ce2cded5 9934 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
b214d478 9935 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
ce2cded5 9936 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
b214d478
SE
9937 export_dynamic_flag_spec='${wl}-E'
9938 else
9939 case $host_os in
9940 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9941 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9942 hardcode_libdir_flag_spec='-R$libdir'
9943 ;;
9944 *)
9945 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9946 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9947 ;;
9948 esac
9949 fi
9950 else
9951 ld_shlibs=no
ce2cded5
L
9952 fi
9953 ;;
d7040cdb 9954
ce2cded5
L
9955 os2*)
9956 hardcode_libdir_flag_spec='-L$libdir'
9957 hardcode_minus_L=yes
9958 allow_undefined_flag=unsupported
3725885a 9959 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'
ce2cded5
L
9960 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9961 ;;
d7040cdb 9962
ce2cded5
L
9963 osf3*)
9964 if test "$GCC" = yes; then
9965 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3725885a 9966 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'
ce2cded5
L
9967 else
9968 allow_undefined_flag=' -expect_unresolved \*'
3725885a 9969 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'
ce2cded5
L
9970 fi
9971 archive_cmds_need_lc='no'
9972 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9973 hardcode_libdir_separator=:
9974 ;;
d7040cdb 9975
ce2cded5
L
9976 osf4* | osf5*) # as osf3* with the addition of -msym flag
9977 if test "$GCC" = yes; then
9978 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3725885a 9979 archive_cmds='$CC -shared${allow_undefined_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'
ce2cded5
L
9980 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9981 else
9982 allow_undefined_flag=' -expect_unresolved \*'
3725885a 9983 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'
ce2cded5 9984 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~
3725885a 9985 $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'
d7040cdb 9986
ce2cded5
L
9987 # Both c and cxx compiler support -rpath directly
9988 hardcode_libdir_flag_spec='-rpath $libdir'
9989 fi
9990 archive_cmds_need_lc='no'
9991 hardcode_libdir_separator=:
9992 ;;
d7040cdb 9993
ce2cded5
L
9994 solaris*)
9995 no_undefined_flag=' -z defs'
9996 if test "$GCC" = yes; then
9997 wlarc='${wl}'
9998 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9999 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10000 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10001 else
10002 case `$CC -V 2>&1` in
10003 *"Compilers 5.0"*)
10004 wlarc=''
10005 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10006 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10007 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10008 ;;
10009 *)
10010 wlarc='${wl}'
10011 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10012 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10013 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10014 ;;
10015 esac
10016 fi
10017 hardcode_libdir_flag_spec='-R$libdir'
10018 hardcode_shlibpath_var=no
10019 case $host_os in
10020 solaris2.[0-5] | solaris2.[0-5].*) ;;
10021 *)
10022 # The compiler driver will combine and reorder linker options,
10023 # but understands `-z linker_flag'. GCC discards it without `$wl',
10024 # but is careful enough not to reorder.
10025 # Supported since Solaris 2.6 (maybe 2.5.1?)
10026 if test "$GCC" = yes; then
10027 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10028 else
10029 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10030 fi
10031 ;;
10032 esac
10033 link_all_deplibs=yes
10034 ;;
d7040cdb 10035
ce2cded5
L
10036 sunos4*)
10037 if test "x$host_vendor" = xsequent; then
10038 # Use $CC to link under sequent, because it throws in some extra .o
10039 # files that make .init and .fini sections work.
10040 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10041 else
10042 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10043 fi
10044 hardcode_libdir_flag_spec='-L$libdir'
10045 hardcode_direct=yes
10046 hardcode_minus_L=yes
10047 hardcode_shlibpath_var=no
10048 ;;
d7040cdb 10049
ce2cded5
L
10050 sysv4)
10051 case $host_vendor in
10052 sni)
10053 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10054 hardcode_direct=yes # is this really true???
10055 ;;
10056 siemens)
10057 ## LD is ld it makes a PLAMLIB
10058 ## CC just makes a GrossModule.
10059 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10060 reload_cmds='$CC -r -o $output$reload_objs'
10061 hardcode_direct=no
10062 ;;
10063 motorola)
10064 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10065 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10066 ;;
10067 esac
10068 runpath_var='LD_RUN_PATH'
10069 hardcode_shlibpath_var=no
10070 ;;
d7040cdb 10071
ce2cded5
L
10072 sysv4.3*)
10073 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10074 hardcode_shlibpath_var=no
10075 export_dynamic_flag_spec='-Bexport'
10076 ;;
d7040cdb 10077
ce2cded5
L
10078 sysv4*MP*)
10079 if test -d /usr/nec; then
10080 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10081 hardcode_shlibpath_var=no
10082 runpath_var=LD_RUN_PATH
10083 hardcode_runpath_var=yes
10084 ld_shlibs=yes
10085 fi
10086 ;;
d7040cdb 10087
ce2cded5
L
10088 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10089 no_undefined_flag='${wl}-z,text'
10090 archive_cmds_need_lc=no
10091 hardcode_shlibpath_var=no
10092 runpath_var='LD_RUN_PATH'
d7040cdb 10093
ce2cded5
L
10094 if test "$GCC" = yes; then
10095 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10096 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10097 else
10098 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10099 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10100 fi
10101 ;;
d7040cdb 10102
ce2cded5
L
10103 sysv5* | sco3.2v5* | sco5v6*)
10104 # Note: We can NOT use -z defs as we might desire, because we do not
10105 # link with -lc, and that would cause any symbols used from libc to
10106 # always be unresolved, which means just about no library would
10107 # ever link correctly. If we're not using GNU ld we use -z text
10108 # though, which does catch some bad symbols but isn't as heavy-handed
10109 # as -z defs.
10110 no_undefined_flag='${wl}-z,text'
10111 allow_undefined_flag='${wl}-z,nodefs'
10112 archive_cmds_need_lc=no
10113 hardcode_shlibpath_var=no
10114 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10115 hardcode_libdir_separator=':'
10116 link_all_deplibs=yes
10117 export_dynamic_flag_spec='${wl}-Bexport'
10118 runpath_var='LD_RUN_PATH'
d7040cdb 10119
ce2cded5
L
10120 if test "$GCC" = yes; then
10121 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10122 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10123 else
10124 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10125 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10126 fi
10127 ;;
d7040cdb 10128
ce2cded5
L
10129 uts4*)
10130 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10131 hardcode_libdir_flag_spec='-L$libdir'
10132 hardcode_shlibpath_var=no
10133 ;;
d7040cdb 10134
ce2cded5
L
10135 *)
10136 ld_shlibs=no
10137 ;;
10138 esac
d7040cdb 10139
ce2cded5
L
10140 if test x$host_vendor = xsni; then
10141 case $host in
10142 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10143 export_dynamic_flag_spec='${wl}-Blargedynsym'
10144 ;;
10145 esac
10146 fi
10147 fi
d7040cdb 10148
81ecdfbb
RW
10149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10150$as_echo "$ld_shlibs" >&6; }
ce2cded5 10151test "$ld_shlibs" = no && can_build_shared=no
d7040cdb 10152
ce2cded5 10153with_gnu_ld=$with_gnu_ld
d7040cdb
SE
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
ce2cded5
L
10169#
10170# Do we need to explicitly link libc?
10171#
10172case "x$archive_cmds_need_lc" in
10173x|xyes)
10174 # Assume -lc should be added
10175 archive_cmds_need_lc=yes
d7040cdb 10176
ce2cded5
L
10177 if test "$enable_shared" = yes && test "$GCC" = yes; then
10178 case $archive_cmds in
10179 *'~'*)
10180 # FIXME: we may have to deal with multi-command sequences.
10181 ;;
10182 '$CC '*)
10183 # Test whether the compiler implicitly links with -lc since on some
10184 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10185 # to ld, don't add -lc before -lgcc.
81ecdfbb
RW
10186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10187$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
d0ac1c44 10188if ${lt_cv_archive_cmds_need_lc+:} false; then :
81ecdfbb 10189 $as_echo_n "(cached) " >&6
39144654
RW
10190else
10191 $RM conftest*
10192 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 10193
81ecdfbb 10194 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
ce2cded5
L
10195 (eval $ac_compile) 2>&5
10196 ac_status=$?
81ecdfbb
RW
10197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10198 test $ac_status = 0; } 2>conftest.err; then
39144654
RW
10199 soname=conftest
10200 lib=conftest
10201 libobjs=conftest.$ac_objext
10202 deplibs=
10203 wl=$lt_prog_compiler_wl
10204 pic_flag=$lt_prog_compiler_pic
10205 compiler_flags=-v
10206 linker_flags=-v
10207 verstring=
10208 output_objdir=.
10209 libname=conftest
10210 lt_save_allow_undefined_flag=$allow_undefined_flag
10211 allow_undefined_flag=
81ecdfbb 10212 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
ce2cded5
L
10213 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10214 ac_status=$?
81ecdfbb
RW
10215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10216 test $ac_status = 0; }
39144654
RW
10217 then
10218 lt_cv_archive_cmds_need_lc=no
10219 else
10220 lt_cv_archive_cmds_need_lc=yes
10221 fi
10222 allow_undefined_flag=$lt_save_allow_undefined_flag
10223 else
10224 cat conftest.err 1>&5
10225 fi
10226 $RM conftest*
10227
10228fi
81ecdfbb
RW
10229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10230$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
39144654 10231 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
ce2cded5
L
10232 ;;
10233 esac
10234 fi
10235 ;;
10236esac
d7040cdb
SE
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
d7040cdb 10264
d7040cdb 10265
d7040cdb
SE
10266
10267
10268
10269
10270
10271
d7040cdb 10272
d7040cdb 10273
d7040cdb 10274
d7040cdb 10275
d7040cdb 10276
d7040cdb 10277
d7040cdb 10278
d7040cdb 10279
d7040cdb 10280
d7040cdb 10281
d7040cdb 10282
d7040cdb 10283
d7040cdb 10284
d7040cdb 10285
d7040cdb 10286
d7040cdb 10287
d7040cdb 10288
d7040cdb 10289
d7040cdb 10290
d7040cdb 10291
d7040cdb 10292
d7040cdb 10293
d7040cdb 10294
d7040cdb 10295
d7040cdb 10296
d7040cdb 10297
d7040cdb 10298
d7040cdb 10299
ce2cded5
L
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
81ecdfbb
RW
10394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10395$as_echo_n "checking dynamic linker characteristics... " >&6; }
b214d478
SE
10396
10397if test "$GCC" = yes; then
ce2cded5
L
10398 case $host_os in
10399 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10400 *) lt_awk_arg="/^libraries:/" ;;
10401 esac
3725885a
RW
10402 case $host_os in
10403 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10404 *) lt_sed_strip_eq="s,=/,/,g" ;;
10405 esac
10406 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10407 case $lt_search_path_spec in
10408 *\;*)
ce2cded5
L
10409 # if the path contains ";" then we assume it to be the separator
10410 # otherwise default to the standard path separator (i.e. ":") - it is
10411 # assumed that no part of a normal pathname contains ";" but that should
10412 # okay in the real world where ";" in dirpaths is itself problematic.
3725885a
RW
10413 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10414 ;;
10415 *)
10416 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10417 ;;
10418 esac
ce2cded5
L
10419 # Ok, now we have the path, separated by spaces, we can step through it
10420 # and add multilib dir if necessary.
10421 lt_tmp_lt_search_path_spec=
10422 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10423 for lt_sys_path in $lt_search_path_spec; do
10424 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10425 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10426 else
10427 test -d "$lt_sys_path" && \
10428 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10429 fi
10430 done
3725885a 10431 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
ce2cded5
L
10432BEGIN {RS=" "; FS="/|\n";} {
10433 lt_foo="";
10434 lt_count=0;
10435 for (lt_i = NF; lt_i > 0; lt_i--) {
10436 if ($lt_i != "" && $lt_i != ".") {
10437 if ($lt_i == "..") {
10438 lt_count++;
10439 } else {
10440 if (lt_count == 0) {
10441 lt_foo="/" $lt_i lt_foo;
10442 } else {
10443 lt_count--;
10444 }
10445 }
10446 }
10447 }
10448 if (lt_foo != "") { lt_freq[lt_foo]++; }
10449 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10450}'`
3725885a
RW
10451 # AWK program above erroneously prepends '/' to C:/dos/paths
10452 # for these hosts.
10453 case $host_os in
10454 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10455 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10456 esac
10457 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
d7040cdb 10458else
ce2cded5
L
10459 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10460fi
10461library_names_spec=
10462libname_spec='lib$name'
10463soname_spec=
10464shrext_cmds=".so"
10465postinstall_cmds=
10466postuninstall_cmds=
10467finish_cmds=
10468finish_eval=
10469shlibpath_var=
10470shlibpath_overrides_runpath=unknown
10471version_type=none
10472dynamic_linker="$host_os ld.so"
10473sys_lib_dlsearch_path_spec="/lib /usr/lib"
10474need_lib_prefix=unknown
10475hardcode_into_libs=no
10476
10477# when you set need_version to no, make sure it does not cause -set_version
10478# flags to be left without arguments
10479need_version=unknown
10480
10481case $host_os in
10482aix3*)
10483 version_type=linux
10484 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10485 shlibpath_var=LIBPATH
10486
10487 # AIX 3 has no versioning support, so we append a major version to the name.
10488 soname_spec='${libname}${release}${shared_ext}$major'
10489 ;;
10490
50e7d84b 10491aix[4-9]*)
ce2cded5
L
10492 version_type=linux
10493 need_lib_prefix=no
10494 need_version=no
10495 hardcode_into_libs=yes
10496 if test "$host_cpu" = ia64; then
10497 # AIX 5 supports IA64
10498 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10499 shlibpath_var=LD_LIBRARY_PATH
10500 else
10501 # With GCC up to 2.95.x, collect2 would create an import file
10502 # for dependence libraries. The import file would start with
10503 # the line `#! .'. This would cause the generated library to
10504 # depend on `.', always an invalid library. This was fixed in
10505 # development snapshots of GCC prior to 3.0.
10506 case $host_os in
10507 aix4 | aix4.[01] | aix4.[01].*)
10508 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10509 echo ' yes '
10510 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10511 :
10512 else
10513 can_build_shared=no
10514 fi
10515 ;;
10516 esac
10517 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10518 # soname into executable. Probably we can add versioning support to
10519 # collect2, so additional links can be useful in future.
10520 if test "$aix_use_runtimelinking" = yes; then
10521 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10522 # instead of lib<name>.a to let people know that these are not
10523 # typical AIX shared libraries.
10524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10525 else
10526 # We preserve .a as extension for shared libraries through AIX4.2
10527 # and later when we are not doing run time linking.
10528 library_names_spec='${libname}${release}.a $libname.a'
10529 soname_spec='${libname}${release}${shared_ext}$major'
10530 fi
10531 shlibpath_var=LIBPATH
10532 fi
10533 ;;
10534
10535amigaos*)
b214d478
SE
10536 case $host_cpu in
10537 powerpc)
10538 # Since July 2007 AmigaOS4 officially supports .so libraries.
10539 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10541 ;;
10542 m68k)
ce2cded5
L
10543 library_names_spec='$libname.ixlibrary $libname.a'
10544 # Create ${libname}_ixlibrary.a entries in /sys/libs.
3725885a 10545 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'
b214d478
SE
10546 ;;
10547 esac
ce2cded5
L
10548 ;;
10549
10550beos*)
10551 library_names_spec='${libname}${shared_ext}'
10552 dynamic_linker="$host_os ld.so"
10553 shlibpath_var=LIBRARY_PATH
10554 ;;
10555
10556bsdi[45]*)
10557 version_type=linux
10558 need_version=no
10559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10560 soname_spec='${libname}${release}${shared_ext}$major'
10561 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10562 shlibpath_var=LD_LIBRARY_PATH
10563 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10564 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10565 # the default ld.so.conf also contains /usr/contrib/lib and
10566 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10567 # libtool to hard-code these into programs
10568 ;;
10569
b214d478 10570cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
10571 version_type=windows
10572 shrext_cmds=".dll"
10573 need_version=no
10574 need_lib_prefix=no
10575
b214d478
SE
10576 case $GCC,$host_os in
10577 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
ce2cded5
L
10578 library_names_spec='$libname.dll.a'
10579 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10580 postinstall_cmds='base_file=`basename \${file}`~
10581 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10582 dldir=$destdir/`dirname \$dlpath`~
10583 test -d \$dldir || mkdir -p \$dldir~
10584 $install_prog $dir/$dlname \$dldir/$dlname~
10585 chmod a+x \$dldir/$dlname~
10586 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10587 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10588 fi'
10589 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10590 dlpath=$dir/\$dldll~
10591 $RM \$dlpath'
10592 shlibpath_overrides_runpath=yes
10593
10594 case $host_os in
10595 cygwin*)
10596 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10597 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
3725885a
RW
10598
10599 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
ce2cded5 10600 ;;
b214d478 10601 mingw* | cegcc*)
ce2cded5
L
10602 # MinGW DLLs use traditional 'lib' prefix
10603 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
ce2cded5
L
10604 ;;
10605 pw32*)
10606 # pw32 DLLs use 'pw' prefix rather than 'lib'
10607 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10608 ;;
10609 esac
10610 ;;
10611
10612 *)
10613 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10614 ;;
10615 esac
10616 dynamic_linker='Win32 ld.exe'
10617 # FIXME: first we should search . and the directory the executable is in
10618 shlibpath_var=PATH
10619 ;;
10620
10621darwin* | rhapsody*)
10622 dynamic_linker="$host_os dyld"
10623 version_type=darwin
10624 need_lib_prefix=no
10625 need_version=no
10626 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10627 soname_spec='${libname}${release}${major}$shared_ext'
10628 shlibpath_overrides_runpath=yes
10629 shlibpath_var=DYLD_LIBRARY_PATH
10630 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10631
10632 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10633 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10634 ;;
10635
10636dgux*)
10637 version_type=linux
10638 need_lib_prefix=no
10639 need_version=no
10640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10641 soname_spec='${libname}${release}${shared_ext}$major'
10642 shlibpath_var=LD_LIBRARY_PATH
10643 ;;
10644
ce2cded5
L
10645freebsd* | dragonfly*)
10646 # DragonFly does not have aout. When/if they implement a new
10647 # versioning mechanism, adjust this.
10648 if test -x /usr/bin/objformat; then
10649 objformat=`/usr/bin/objformat`
10650 else
10651 case $host_os in
6d2920c8 10652 freebsd[23].*) objformat=aout ;;
ce2cded5
L
10653 *) objformat=elf ;;
10654 esac
10655 fi
10656 version_type=freebsd-$objformat
10657 case $version_type in
10658 freebsd-elf*)
10659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10660 need_version=no
10661 need_lib_prefix=no
10662 ;;
10663 freebsd-*)
10664 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10665 need_version=yes
10666 ;;
10667 esac
10668 shlibpath_var=LD_LIBRARY_PATH
10669 case $host_os in
6d2920c8 10670 freebsd2.*)
ce2cded5
L
10671 shlibpath_overrides_runpath=yes
10672 ;;
10673 freebsd3.[01]* | freebsdelf3.[01]*)
10674 shlibpath_overrides_runpath=yes
10675 hardcode_into_libs=yes
10676 ;;
10677 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10678 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10679 shlibpath_overrides_runpath=no
10680 hardcode_into_libs=yes
10681 ;;
10682 *) # from 4.6 on, and DragonFly
10683 shlibpath_overrides_runpath=yes
10684 hardcode_into_libs=yes
10685 ;;
10686 esac
10687 ;;
10688
3725885a
RW
10689haiku*)
10690 version_type=linux
10691 need_lib_prefix=no
10692 need_version=no
10693 dynamic_linker="$host_os runtime_loader"
10694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10695 soname_spec='${libname}${release}${shared_ext}$major'
10696 shlibpath_var=LIBRARY_PATH
10697 shlibpath_overrides_runpath=yes
d85e70a3 10698 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
3725885a
RW
10699 hardcode_into_libs=yes
10700 ;;
10701
ce2cded5
L
10702hpux9* | hpux10* | hpux11*)
10703 # Give a soname corresponding to the major version so that dld.sl refuses to
10704 # link against other versions.
10705 version_type=sunos
10706 need_lib_prefix=no
10707 need_version=no
10708 case $host_cpu in
10709 ia64*)
10710 shrext_cmds='.so'
10711 hardcode_into_libs=yes
10712 dynamic_linker="$host_os dld.so"
10713 shlibpath_var=LD_LIBRARY_PATH
10714 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10716 soname_spec='${libname}${release}${shared_ext}$major'
10717 if test "X$HPUX_IA64_MODE" = X32; then
10718 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10719 else
10720 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10721 fi
10722 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10723 ;;
10724 hppa*64*)
10725 shrext_cmds='.sl'
10726 hardcode_into_libs=yes
10727 dynamic_linker="$host_os dld.sl"
10728 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10729 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10731 soname_spec='${libname}${release}${shared_ext}$major'
10732 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10733 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10734 ;;
10735 *)
10736 shrext_cmds='.sl'
10737 dynamic_linker="$host_os dld.sl"
10738 shlibpath_var=SHLIB_PATH
10739 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10741 soname_spec='${libname}${release}${shared_ext}$major'
10742 ;;
10743 esac
3725885a 10744 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
ce2cded5 10745 postinstall_cmds='chmod 555 $lib'
3725885a
RW
10746 # or fails outright, so override atomically:
10747 install_override_mode=555
ce2cded5
L
10748 ;;
10749
10750interix[3-9]*)
10751 version_type=linux
10752 need_lib_prefix=no
10753 need_version=no
10754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10755 soname_spec='${libname}${release}${shared_ext}$major'
10756 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10757 shlibpath_var=LD_LIBRARY_PATH
10758 shlibpath_overrides_runpath=no
10759 hardcode_into_libs=yes
10760 ;;
10761
10762irix5* | irix6* | nonstopux*)
10763 case $host_os in
10764 nonstopux*) version_type=nonstopux ;;
10765 *)
10766 if test "$lt_cv_prog_gnu_ld" = yes; then
10767 version_type=linux
10768 else
10769 version_type=irix
10770 fi ;;
10771 esac
10772 need_lib_prefix=no
10773 need_version=no
10774 soname_spec='${libname}${release}${shared_ext}$major'
10775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10776 case $host_os in
10777 irix5* | nonstopux*)
10778 libsuff= shlibsuff=
10779 ;;
10780 *)
10781 case $LD in # libtool.m4 will add one of these switches to LD
10782 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10783 libsuff= shlibsuff= libmagic=32-bit;;
10784 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10785 libsuff=32 shlibsuff=N32 libmagic=N32;;
10786 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10787 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10788 *) libsuff= shlibsuff= libmagic=never-match;;
10789 esac
10790 ;;
10791 esac
10792 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10793 shlibpath_overrides_runpath=no
10794 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10795 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10796 hardcode_into_libs=yes
10797 ;;
10798
10799# No shared lib support for Linux oldld, aout, or coff.
10800linux*oldld* | linux*aout* | linux*coff*)
10801 dynamic_linker=no
10802 ;;
10803
10804# This must be Linux ELF.
f4782128 10805linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
ce2cded5
L
10806 version_type=linux
10807 need_lib_prefix=no
10808 need_version=no
10809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10810 soname_spec='${libname}${release}${shared_ext}$major'
10811 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10812 shlibpath_var=LD_LIBRARY_PATH
10813 shlibpath_overrides_runpath=no
39144654 10814
ce2cded5 10815 # Some binutils ld are patched to set DT_RUNPATH
d0ac1c44 10816 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
81ecdfbb 10817 $as_echo_n "(cached) " >&6
39144654
RW
10818else
10819 lt_cv_shlibpath_overrides_runpath=no
10820 save_LDFLAGS=$LDFLAGS
10821 save_libdir=$libdir
10822 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10823 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
81ecdfbb 10824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
10825/* end confdefs.h. */
10826
d7040cdb
SE
10827int
10828main ()
10829{
ce2cded5 10830
d7040cdb
SE
10831 ;
10832 return 0;
10833}
10834_ACEOF
81ecdfbb
RW
10835if ac_fn_c_try_link "$LINENO"; then :
10836 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
39144654 10837 lt_cv_shlibpath_overrides_runpath=yes
d7040cdb 10838fi
d7040cdb 10839fi
81ecdfbb
RW
10840rm -f core conftest.err conftest.$ac_objext \
10841 conftest$ac_exeext conftest.$ac_ext
39144654
RW
10842 LDFLAGS=$save_LDFLAGS
10843 libdir=$save_libdir
10844
10845fi
10846
10847 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
d7040cdb 10848
ce2cded5
L
10849 # This implies no fast_install, which is unacceptable.
10850 # Some rework will be needed to allow for fast_install
10851 # before this can be enabled.
10852 hardcode_into_libs=yes
d7040cdb 10853
ce2cded5
L
10854 # Append ld.so.conf contents to the search path
10855 if test -f /etc/ld.so.conf; then
3725885a 10856 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' ' '`
ce2cded5
L
10857 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10858 fi
d7040cdb 10859
ce2cded5
L
10860 # We used to test for /lib/ld.so.1 and disable shared libraries on
10861 # powerpc, because MkLinux only supported shared libraries with the
10862 # GNU dynamic linker. Since this was broken with cross compilers,
10863 # most powerpc-linux boxes support dynamic linking these days and
10864 # people can always --disable-shared, the test was removed, and we
10865 # assume the GNU/Linux dynamic linker is in use.
10866 dynamic_linker='GNU/Linux ld.so'
10867 ;;
d7040cdb 10868
ce2cded5
L
10869netbsd*)
10870 version_type=sunos
10871 need_lib_prefix=no
10872 need_version=no
10873 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10875 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10876 dynamic_linker='NetBSD (a.out) ld.so'
10877 else
10878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10879 soname_spec='${libname}${release}${shared_ext}$major'
10880 dynamic_linker='NetBSD ld.elf_so'
10881 fi
10882 shlibpath_var=LD_LIBRARY_PATH
10883 shlibpath_overrides_runpath=yes
10884 hardcode_into_libs=yes
10885 ;;
d7040cdb 10886
ce2cded5
L
10887newsos6)
10888 version_type=linux
10889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10890 shlibpath_var=LD_LIBRARY_PATH
10891 shlibpath_overrides_runpath=yes
10892 ;;
d7040cdb 10893
ce2cded5
L
10894*nto* | *qnx*)
10895 version_type=qnx
10896 need_lib_prefix=no
10897 need_version=no
10898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10899 soname_spec='${libname}${release}${shared_ext}$major'
10900 shlibpath_var=LD_LIBRARY_PATH
10901 shlibpath_overrides_runpath=no
10902 hardcode_into_libs=yes
10903 dynamic_linker='ldqnx.so'
10904 ;;
d7040cdb 10905
ce2cded5
L
10906openbsd*)
10907 version_type=sunos
10908 sys_lib_dlsearch_path_spec="/usr/lib"
10909 need_lib_prefix=no
10910 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10911 case $host_os in
10912 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10913 *) need_version=no ;;
10914 esac
10915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10916 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10917 shlibpath_var=LD_LIBRARY_PATH
10918 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10919 case $host_os in
10920 openbsd2.[89] | openbsd2.[89].*)
10921 shlibpath_overrides_runpath=no
10922 ;;
10923 *)
10924 shlibpath_overrides_runpath=yes
10925 ;;
10926 esac
10927 else
10928 shlibpath_overrides_runpath=yes
10929 fi
10930 ;;
d7040cdb 10931
ce2cded5
L
10932os2*)
10933 libname_spec='$name'
10934 shrext_cmds=".dll"
10935 need_lib_prefix=no
10936 library_names_spec='$libname${shared_ext} $libname.a'
10937 dynamic_linker='OS/2 ld.exe'
10938 shlibpath_var=LIBPATH
10939 ;;
d7040cdb 10940
ce2cded5
L
10941osf3* | osf4* | osf5*)
10942 version_type=osf
10943 need_lib_prefix=no
10944 need_version=no
10945 soname_spec='${libname}${release}${shared_ext}$major'
10946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10947 shlibpath_var=LD_LIBRARY_PATH
10948 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10949 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10950 ;;
d7040cdb 10951
ce2cded5
L
10952rdos*)
10953 dynamic_linker=no
10954 ;;
d7040cdb 10955
ce2cded5
L
10956solaris*)
10957 version_type=linux
10958 need_lib_prefix=no
10959 need_version=no
10960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10961 soname_spec='${libname}${release}${shared_ext}$major'
10962 shlibpath_var=LD_LIBRARY_PATH
10963 shlibpath_overrides_runpath=yes
10964 hardcode_into_libs=yes
10965 # ldd complains unless libraries are executable
10966 postinstall_cmds='chmod +x $lib'
10967 ;;
d7040cdb 10968
ce2cded5
L
10969sunos4*)
10970 version_type=sunos
10971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10972 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10973 shlibpath_var=LD_LIBRARY_PATH
10974 shlibpath_overrides_runpath=yes
10975 if test "$with_gnu_ld" = yes; then
10976 need_lib_prefix=no
10977 fi
10978 need_version=yes
10979 ;;
d7040cdb 10980
ce2cded5
L
10981sysv4 | sysv4.3*)
10982 version_type=linux
10983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10984 soname_spec='${libname}${release}${shared_ext}$major'
10985 shlibpath_var=LD_LIBRARY_PATH
10986 case $host_vendor in
10987 sni)
10988 shlibpath_overrides_runpath=no
10989 need_lib_prefix=no
10990 runpath_var=LD_RUN_PATH
10991 ;;
10992 siemens)
10993 need_lib_prefix=no
10994 ;;
10995 motorola)
10996 need_lib_prefix=no
10997 need_version=no
10998 shlibpath_overrides_runpath=no
10999 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11000 ;;
11001 esac
11002 ;;
d7040cdb 11003
ce2cded5
L
11004sysv4*MP*)
11005 if test -d /usr/nec ;then
11006 version_type=linux
11007 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11008 soname_spec='$libname${shared_ext}.$major'
11009 shlibpath_var=LD_LIBRARY_PATH
11010 fi
11011 ;;
d7040cdb 11012
ce2cded5
L
11013sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11014 version_type=freebsd-elf
11015 need_lib_prefix=no
11016 need_version=no
11017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11018 soname_spec='${libname}${release}${shared_ext}$major'
11019 shlibpath_var=LD_LIBRARY_PATH
11020 shlibpath_overrides_runpath=yes
11021 hardcode_into_libs=yes
11022 if test "$with_gnu_ld" = yes; then
11023 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11024 else
11025 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11026 case $host_os in
11027 sco3.2v5*)
11028 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11029 ;;
11030 esac
11031 fi
11032 sys_lib_dlsearch_path_spec='/usr/lib'
11033 ;;
d7040cdb 11034
ce2cded5
L
11035tpf*)
11036 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11037 version_type=linux
11038 need_lib_prefix=no
11039 need_version=no
b214d478 11040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
ce2cded5
L
11041 shlibpath_var=LD_LIBRARY_PATH
11042 shlibpath_overrides_runpath=no
11043 hardcode_into_libs=yes
11044 ;;
d7040cdb 11045
ce2cded5
L
11046uts4*)
11047 version_type=linux
11048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11049 soname_spec='${libname}${release}${shared_ext}$major'
11050 shlibpath_var=LD_LIBRARY_PATH
11051 ;;
d7040cdb 11052
ce2cded5
L
11053*)
11054 dynamic_linker=no
11055 ;;
11056esac
81ecdfbb
RW
11057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11058$as_echo "$dynamic_linker" >&6; }
ce2cded5
L
11059test "$dynamic_linker" = no && can_build_shared=no
11060
11061variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11062if test "$GCC" = yes; then
11063 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
d7040cdb
SE
11064fi
11065
b214d478
SE
11066if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11067 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11068fi
11069if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11070 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11071fi
11072
d7040cdb
SE
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
d7040cdb 11084
d7040cdb 11085
d7040cdb 11086
d7040cdb 11087
d7040cdb
SE
11088
11089
11090
11091
d7040cdb 11092
d7040cdb
SE
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
d7040cdb
SE
11106
11107
11108
11109
d7040cdb
SE
11110
11111
11112
11113
d7040cdb 11114
d7040cdb 11115
d7040cdb 11116
d7040cdb 11117
d7040cdb 11118
d7040cdb 11119
d7040cdb 11120
d7040cdb
SE
11121
11122
11123
11124
11125
d7040cdb 11126
d7040cdb 11127
d7040cdb 11128
d7040cdb 11129
d7040cdb 11130
d7040cdb 11131
d7040cdb
SE
11132
11133
11134
11135
11136
d7040cdb
SE
11137
11138
d7040cdb 11139
d7040cdb 11140
d7040cdb 11141
d7040cdb 11142
ce2cded5
L
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
3725885a
RW
11153
11154
11155
11156
11157
ce2cded5
L
11158
11159
11160
11161
11162
11163
81ecdfbb
RW
11164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11165$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
ce2cded5
L
11166hardcode_action=
11167if test -n "$hardcode_libdir_flag_spec" ||
11168 test -n "$runpath_var" ||
11169 test "X$hardcode_automatic" = "Xyes" ; then
11170
11171 # We can hardcode non-existent directories.
11172 if test "$hardcode_direct" != no &&
11173 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11174 # have to relink, otherwise we might link with an installed library
11175 # when we should be linking with a yet-to-be-installed one
11176 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11177 test "$hardcode_minus_L" != no; then
11178 # Linking always hardcodes the temporary library directory.
11179 hardcode_action=relink
11180 else
11181 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11182 hardcode_action=immediate
d7040cdb 11183 fi
d7040cdb 11184else
ce2cded5
L
11185 # We cannot hardcode anything, or else we can only hardcode existing
11186 # directories.
11187 hardcode_action=unsupported
d7040cdb 11188fi
81ecdfbb
RW
11189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11190$as_echo "$hardcode_action" >&6; }
d7040cdb 11191
ce2cded5
L
11192if test "$hardcode_action" = relink ||
11193 test "$inherit_rpath" = yes; then
11194 # Fast installation is not supported
11195 enable_fast_install=no
11196elif test "$shlibpath_overrides_runpath" = yes ||
11197 test "$enable_shared" = no; then
11198 # Fast installation is not necessary
11199 enable_fast_install=needless
d7040cdb
SE
11200fi
11201
d7040cdb 11202
d7040cdb 11203
d7040cdb 11204
d7040cdb 11205
d7040cdb 11206
ce2cded5
L
11207 if test "x$enable_dlopen" != xyes; then
11208 enable_dlopen=unknown
11209 enable_dlopen_self=unknown
11210 enable_dlopen_self_static=unknown
d7040cdb 11211else
ce2cded5
L
11212 lt_cv_dlopen=no
11213 lt_cv_dlopen_libs=
d7040cdb 11214
ce2cded5
L
11215 case $host_os in
11216 beos*)
11217 lt_cv_dlopen="load_add_on"
11218 lt_cv_dlopen_libs=
11219 lt_cv_dlopen_self=yes
11220 ;;
d7040cdb 11221
b214d478 11222 mingw* | pw32* | cegcc*)
ce2cded5
L
11223 lt_cv_dlopen="LoadLibrary"
11224 lt_cv_dlopen_libs=
11225 ;;
11226
11227 cygwin*)
11228 lt_cv_dlopen="dlopen"
11229 lt_cv_dlopen_libs=
11230 ;;
11231
11232 darwin*)
11233 # if libdl is installed we need to link against it
81ecdfbb
RW
11234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11235$as_echo_n "checking for dlopen in -ldl... " >&6; }
d0ac1c44 11236if ${ac_cv_lib_dl_dlopen+:} false; then :
81ecdfbb 11237 $as_echo_n "(cached) " >&6
d7040cdb 11238else
ce2cded5
L
11239 ac_check_lib_save_LIBS=$LIBS
11240LIBS="-ldl $LIBS"
81ecdfbb 11241cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5
L
11242/* end confdefs.h. */
11243
81ecdfbb
RW
11244/* Override any GCC internal prototype to avoid an error.
11245 Use char because int might match the return type of a GCC
11246 builtin and then its argument prototype would still apply. */
ce2cded5
L
11247#ifdef __cplusplus
11248extern "C"
11249#endif
ce2cded5
L
11250char dlopen ();
11251int
11252main ()
11253{
81ecdfbb 11254return dlopen ();
ce2cded5
L
11255 ;
11256 return 0;
11257}
11258_ACEOF
81ecdfbb 11259if ac_fn_c_try_link "$LINENO"; then :
ce2cded5
L
11260 ac_cv_lib_dl_dlopen=yes
11261else
81ecdfbb 11262 ac_cv_lib_dl_dlopen=no
d7040cdb 11263fi
81ecdfbb
RW
11264rm -f core conftest.err conftest.$ac_objext \
11265 conftest$ac_exeext conftest.$ac_ext
ce2cded5 11266LIBS=$ac_check_lib_save_LIBS
d7040cdb 11267fi
81ecdfbb
RW
11268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11269$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
d0ac1c44 11270if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
ce2cded5 11271 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
d7040cdb 11272else
d7040cdb 11273
ce2cded5
L
11274 lt_cv_dlopen="dyld"
11275 lt_cv_dlopen_libs=
11276 lt_cv_dlopen_self=yes
11277
d7040cdb 11278fi
ce2cded5
L
11279
11280 ;;
11281
11282 *)
81ecdfbb 11283 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
d0ac1c44 11284if test "x$ac_cv_func_shl_load" = xyes; then :
ce2cded5
L
11285 lt_cv_dlopen="shl_load"
11286else
81ecdfbb
RW
11287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11288$as_echo_n "checking for shl_load in -ldld... " >&6; }
d0ac1c44 11289if ${ac_cv_lib_dld_shl_load+:} false; then :
81ecdfbb 11290 $as_echo_n "(cached) " >&6
ce2cded5
L
11291else
11292 ac_check_lib_save_LIBS=$LIBS
11293LIBS="-ldld $LIBS"
81ecdfbb 11294cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 11295/* end confdefs.h. */
d7040cdb 11296
81ecdfbb
RW
11297/* Override any GCC internal prototype to avoid an error.
11298 Use char because int might match the return type of a GCC
11299 builtin and then its argument prototype would still apply. */
ce2cded5
L
11300#ifdef __cplusplus
11301extern "C"
11302#endif
ce2cded5
L
11303char shl_load ();
11304int
11305main ()
11306{
81ecdfbb 11307return shl_load ();
ce2cded5
L
11308 ;
11309 return 0;
11310}
11311_ACEOF
81ecdfbb 11312if ac_fn_c_try_link "$LINENO"; then :
ce2cded5
L
11313 ac_cv_lib_dld_shl_load=yes
11314else
81ecdfbb 11315 ac_cv_lib_dld_shl_load=no
ce2cded5 11316fi
81ecdfbb
RW
11317rm -f core conftest.err conftest.$ac_objext \
11318 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
11319LIBS=$ac_check_lib_save_LIBS
11320fi
81ecdfbb
RW
11321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11322$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
d0ac1c44 11323if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
b214d478 11324 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
ce2cded5 11325else
81ecdfbb 11326 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
d0ac1c44 11327if test "x$ac_cv_func_dlopen" = xyes; then :
ce2cded5
L
11328 lt_cv_dlopen="dlopen"
11329else
81ecdfbb
RW
11330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11331$as_echo_n "checking for dlopen in -ldl... " >&6; }
d0ac1c44 11332if ${ac_cv_lib_dl_dlopen+:} false; then :
81ecdfbb 11333 $as_echo_n "(cached) " >&6
d7040cdb 11334else
ce2cded5
L
11335 ac_check_lib_save_LIBS=$LIBS
11336LIBS="-ldl $LIBS"
81ecdfbb 11337cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
11338/* end confdefs.h. */
11339
81ecdfbb
RW
11340/* Override any GCC internal prototype to avoid an error.
11341 Use char because int might match the return type of a GCC
11342 builtin and then its argument prototype would still apply. */
ce2cded5
L
11343#ifdef __cplusplus
11344extern "C"
11345#endif
ce2cded5 11346char dlopen ();
d7040cdb
SE
11347int
11348main ()
11349{
81ecdfbb 11350return dlopen ();
d7040cdb
SE
11351 ;
11352 return 0;
11353}
11354_ACEOF
81ecdfbb 11355if ac_fn_c_try_link "$LINENO"; then :
ce2cded5 11356 ac_cv_lib_dl_dlopen=yes
d7040cdb 11357else
81ecdfbb 11358 ac_cv_lib_dl_dlopen=no
d7040cdb 11359fi
81ecdfbb
RW
11360rm -f core conftest.err conftest.$ac_objext \
11361 conftest$ac_exeext conftest.$ac_ext
ce2cded5 11362LIBS=$ac_check_lib_save_LIBS
d7040cdb 11363fi
81ecdfbb
RW
11364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11365$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
d0ac1c44 11366if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
ce2cded5 11367 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
d7040cdb 11368else
81ecdfbb
RW
11369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11370$as_echo_n "checking for dlopen in -lsvld... " >&6; }
d0ac1c44 11371if ${ac_cv_lib_svld_dlopen+:} false; then :
81ecdfbb 11372 $as_echo_n "(cached) " >&6
d7040cdb 11373else
ce2cded5
L
11374 ac_check_lib_save_LIBS=$LIBS
11375LIBS="-lsvld $LIBS"
81ecdfbb 11376cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb 11377/* end confdefs.h. */
d7040cdb 11378
81ecdfbb
RW
11379/* Override any GCC internal prototype to avoid an error.
11380 Use char because int might match the return type of a GCC
11381 builtin and then its argument prototype would still apply. */
ce2cded5
L
11382#ifdef __cplusplus
11383extern "C"
11384#endif
ce2cded5 11385char dlopen ();
d7040cdb
SE
11386int
11387main ()
11388{
81ecdfbb 11389return dlopen ();
d7040cdb
SE
11390 ;
11391 return 0;
11392}
11393_ACEOF
81ecdfbb 11394if ac_fn_c_try_link "$LINENO"; then :
ce2cded5 11395 ac_cv_lib_svld_dlopen=yes
d7040cdb 11396else
81ecdfbb 11397 ac_cv_lib_svld_dlopen=no
d7040cdb 11398fi
81ecdfbb
RW
11399rm -f core conftest.err conftest.$ac_objext \
11400 conftest$ac_exeext conftest.$ac_ext
ce2cded5 11401LIBS=$ac_check_lib_save_LIBS
d7040cdb 11402fi
81ecdfbb
RW
11403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11404$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
d0ac1c44 11405if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
ce2cded5
L
11406 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11407else
81ecdfbb
RW
11408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11409$as_echo_n "checking for dld_link in -ldld... " >&6; }
d0ac1c44 11410if ${ac_cv_lib_dld_dld_link+:} false; then :
81ecdfbb 11411 $as_echo_n "(cached) " >&6
ce2cded5
L
11412else
11413 ac_check_lib_save_LIBS=$LIBS
11414LIBS="-ldld $LIBS"
81ecdfbb 11415cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5
L
11416/* end confdefs.h. */
11417
81ecdfbb
RW
11418/* Override any GCC internal prototype to avoid an error.
11419 Use char because int might match the return type of a GCC
11420 builtin and then its argument prototype would still apply. */
ce2cded5
L
11421#ifdef __cplusplus
11422extern "C"
11423#endif
ce2cded5 11424char dld_link ();
d7040cdb
SE
11425int
11426main ()
11427{
81ecdfbb 11428return dld_link ();
d7040cdb
SE
11429 ;
11430 return 0;
11431}
11432_ACEOF
81ecdfbb 11433if ac_fn_c_try_link "$LINENO"; then :
ce2cded5 11434 ac_cv_lib_dld_dld_link=yes
d7040cdb 11435else
81ecdfbb 11436 ac_cv_lib_dld_dld_link=no
d7040cdb 11437fi
81ecdfbb
RW
11438rm -f core conftest.err conftest.$ac_objext \
11439 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
11440LIBS=$ac_check_lib_save_LIBS
11441fi
81ecdfbb
RW
11442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11443$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
d0ac1c44 11444if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
b214d478 11445 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
ce2cded5
L
11446fi
11447
11448
11449fi
11450
11451
11452fi
11453
11454
11455fi
11456
11457
11458fi
11459
11460
11461fi
11462
11463 ;;
11464 esac
11465
11466 if test "x$lt_cv_dlopen" != xno; then
11467 enable_dlopen=yes
11468 else
11469 enable_dlopen=no
11470 fi
11471
11472 case $lt_cv_dlopen in
11473 dlopen)
11474 save_CPPFLAGS="$CPPFLAGS"
11475 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11476
11477 save_LDFLAGS="$LDFLAGS"
11478 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11479
11480 save_LIBS="$LIBS"
11481 LIBS="$lt_cv_dlopen_libs $LIBS"
11482
81ecdfbb
RW
11483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11484$as_echo_n "checking whether a program can dlopen itself... " >&6; }
d0ac1c44 11485if ${lt_cv_dlopen_self+:} false; then :
81ecdfbb 11486 $as_echo_n "(cached) " >&6
ce2cded5
L
11487else
11488 if test "$cross_compiling" = yes; then :
11489 lt_cv_dlopen_self=cross
11490else
11491 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11492 lt_status=$lt_dlunknown
11493 cat > conftest.$ac_ext <<_LT_EOF
5bbe6ec5 11494#line 11494 "configure"
ce2cded5
L
11495#include "confdefs.h"
11496
11497#if HAVE_DLFCN_H
11498#include <dlfcn.h>
11499#endif
11500
11501#include <stdio.h>
11502
11503#ifdef RTLD_GLOBAL
11504# define LT_DLGLOBAL RTLD_GLOBAL
11505#else
11506# ifdef DL_GLOBAL
11507# define LT_DLGLOBAL DL_GLOBAL
11508# else
11509# define LT_DLGLOBAL 0
11510# endif
11511#endif
11512
11513/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11514 find out it does not work in some platform. */
11515#ifndef LT_DLLAZY_OR_NOW
11516# ifdef RTLD_LAZY
11517# define LT_DLLAZY_OR_NOW RTLD_LAZY
11518# else
11519# ifdef DL_LAZY
11520# define LT_DLLAZY_OR_NOW DL_LAZY
11521# else
11522# ifdef RTLD_NOW
11523# define LT_DLLAZY_OR_NOW RTLD_NOW
11524# else
11525# ifdef DL_NOW
11526# define LT_DLLAZY_OR_NOW DL_NOW
11527# else
11528# define LT_DLLAZY_OR_NOW 0
11529# endif
11530# endif
11531# endif
11532# endif
11533#endif
11534
3725885a
RW
11535/* When -fvisbility=hidden is used, assume the code has been annotated
11536 correspondingly for the symbols needed. */
11537#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11538void fnord () __attribute__((visibility("default")));
11539#endif
11540
11541void fnord () { int i=42; }
ce2cded5 11542int main ()
d7040cdb 11543{
ce2cded5
L
11544 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11545 int status = $lt_dlunknown;
11546
11547 if (self)
11548 {
11549 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
3725885a
RW
11550 else
11551 {
11552 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11553 else puts (dlerror ());
11554 }
ce2cded5
L
11555 /* dlclose (self); */
11556 }
11557 else
11558 puts (dlerror ());
11559
b214d478 11560 return status;
d7040cdb 11561}
ce2cded5 11562_LT_EOF
81ecdfbb 11563 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
ce2cded5 11564 (eval $ac_link) 2>&5
d7040cdb 11565 ac_status=$?
81ecdfbb
RW
11566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11567 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
ce2cded5
L
11568 (./conftest; exit; ) >&5 2>/dev/null
11569 lt_status=$?
11570 case x$lt_status in
11571 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11572 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11573 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11574 esac
11575 else :
11576 # compilation failed
11577 lt_cv_dlopen_self=no
11578 fi
11579fi
11580rm -fr conftest*
11581
11582
11583fi
81ecdfbb
RW
11584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11585$as_echo "$lt_cv_dlopen_self" >&6; }
ce2cded5
L
11586
11587 if test "x$lt_cv_dlopen_self" = xyes; then
11588 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
81ecdfbb
RW
11589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11590$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
d0ac1c44 11591if ${lt_cv_dlopen_self_static+:} false; then :
81ecdfbb 11592 $as_echo_n "(cached) " >&6
ce2cded5
L
11593else
11594 if test "$cross_compiling" = yes; then :
11595 lt_cv_dlopen_self_static=cross
11596else
11597 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11598 lt_status=$lt_dlunknown
11599 cat > conftest.$ac_ext <<_LT_EOF
5bbe6ec5 11600#line 11600 "configure"
ce2cded5
L
11601#include "confdefs.h"
11602
11603#if HAVE_DLFCN_H
11604#include <dlfcn.h>
11605#endif
11606
11607#include <stdio.h>
11608
11609#ifdef RTLD_GLOBAL
11610# define LT_DLGLOBAL RTLD_GLOBAL
11611#else
11612# ifdef DL_GLOBAL
11613# define LT_DLGLOBAL DL_GLOBAL
11614# else
11615# define LT_DLGLOBAL 0
11616# endif
11617#endif
11618
11619/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11620 find out it does not work in some platform. */
11621#ifndef LT_DLLAZY_OR_NOW
11622# ifdef RTLD_LAZY
11623# define LT_DLLAZY_OR_NOW RTLD_LAZY
11624# else
11625# ifdef DL_LAZY
11626# define LT_DLLAZY_OR_NOW DL_LAZY
11627# else
11628# ifdef RTLD_NOW
11629# define LT_DLLAZY_OR_NOW RTLD_NOW
11630# else
11631# ifdef DL_NOW
11632# define LT_DLLAZY_OR_NOW DL_NOW
11633# else
11634# define LT_DLLAZY_OR_NOW 0
11635# endif
11636# endif
11637# endif
11638# endif
11639#endif
11640
3cb62297
L
11641/* When -fvisbility=hidden is used, assume the code has been annotated
11642 correspondingly for the symbols needed. */
11643#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11644void fnord () __attribute__((visibility("default")));
11645#endif
11646
11647void fnord () { int i=42; }
11648int main ()
11649{
11650 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11651 int status = $lt_dlunknown;
11652
11653 if (self)
11654 {
11655 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11656 else
11657 {
11658 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11659 else puts (dlerror ());
11660 }
11661 /* dlclose (self); */
11662 }
11663 else
11664 puts (dlerror ());
11665
11666 return status;
11667}
11668_LT_EOF
11669 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11670 (eval $ac_link) 2>&5
11671 ac_status=$?
11672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11673 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11674 (./conftest; exit; ) >&5 2>/dev/null
11675 lt_status=$?
11676 case x$lt_status in
11677 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11678 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11679 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11680 esac
11681 else :
11682 # compilation failed
11683 lt_cv_dlopen_self_static=no
11684 fi
11685fi
11686rm -fr conftest*
11687
11688
11689fi
11690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11691$as_echo "$lt_cv_dlopen_self_static" >&6; }
11692 fi
11693
11694 CPPFLAGS="$save_CPPFLAGS"
11695 LDFLAGS="$save_LDFLAGS"
11696 LIBS="$save_LIBS"
11697 ;;
11698 esac
11699
11700 case $lt_cv_dlopen_self in
11701 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11702 *) enable_dlopen_self=unknown ;;
11703 esac
11704
11705 case $lt_cv_dlopen_self_static in
11706 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11707 *) enable_dlopen_self_static=unknown ;;
11708 esac
11709fi
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727striplib=
11728old_striplib=
11729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11730$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11731if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11732 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11733 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11735$as_echo "yes" >&6; }
11736else
11737# FIXME - insert some real tests, host_os isn't really good enough
11738 case $host_os in
11739 darwin*)
11740 if test -n "$STRIP" ; then
11741 striplib="$STRIP -x"
11742 old_striplib="$STRIP -S"
11743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11744$as_echo "yes" >&6; }
11745 else
11746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11747$as_echo "no" >&6; }
11748 fi
11749 ;;
11750 *)
11751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11752$as_echo "no" >&6; }
11753 ;;
11754 esac
11755fi
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768 # Report which library types will actually be built
11769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11770$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11772$as_echo "$can_build_shared" >&6; }
11773
11774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11775$as_echo_n "checking whether to build shared libraries... " >&6; }
11776 test "$can_build_shared" = "no" && enable_shared=no
11777
11778 # On AIX, shared libraries and static libraries use the same namespace, and
11779 # are all built from PIC.
11780 case $host_os in
11781 aix3*)
11782 test "$enable_shared" = yes && enable_static=no
11783 if test -n "$RANLIB"; then
11784 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11785 postinstall_cmds='$RANLIB $lib'
11786 fi
11787 ;;
11788
11789 aix[4-9]*)
11790 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11791 test "$enable_shared" = yes && enable_static=no
11792 fi
11793 ;;
11794 esac
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11796$as_echo "$enable_shared" >&6; }
11797
11798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11799$as_echo_n "checking whether to build static libraries... " >&6; }
11800 # Make sure either enable_shared or enable_static is yes.
11801 test "$enable_shared" = yes || enable_static=yes
11802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11803$as_echo "$enable_static" >&6; }
11804
11805
11806
11807
11808fi
11809ac_ext=c
11810ac_cpp='$CPP $CPPFLAGS'
11811ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11812ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11813ac_compiler_gnu=$ac_cv_c_compiler_gnu
11814
11815CC="$lt_save_CC"
11816
11817 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11818 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11819 (test "X$CXX" != "Xg++"))) ; then
11820 ac_ext=cpp
11821ac_cpp='$CXXCPP $CPPFLAGS'
11822ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11823ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11824ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11826$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11827if test -z "$CXXCPP"; then
d0ac1c44 11828 if ${ac_cv_prog_CXXCPP+:} false; then :
3cb62297
L
11829 $as_echo_n "(cached) " >&6
11830else
11831 # Double quotes because CXXCPP needs to be expanded
11832 for CXXCPP in "$CXX -E" "/lib/cpp"
11833 do
11834 ac_preproc_ok=false
11835for ac_cxx_preproc_warn_flag in '' yes
11836do
11837 # Use a header file that comes with gcc, so configuring glibc
11838 # with a fresh cross-compiler works.
11839 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11840 # <limits.h> exists even on freestanding compilers.
11841 # On the NeXT, cc -E runs the code through the compiler's parser,
11842 # not just through cpp. "Syntax error" is here to catch this case.
11843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11844/* end confdefs.h. */
11845#ifdef __STDC__
11846# include <limits.h>
11847#else
11848# include <assert.h>
11849#endif
11850 Syntax error
11851_ACEOF
11852if ac_fn_cxx_try_cpp "$LINENO"; then :
11853
11854else
11855 # Broken: fails on valid input.
11856continue
11857fi
d0ac1c44 11858rm -f conftest.err conftest.i conftest.$ac_ext
3cb62297
L
11859
11860 # OK, works on sane cases. Now check whether nonexistent headers
11861 # can be detected and how.
11862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11863/* end confdefs.h. */
11864#include <ac_nonexistent.h>
11865_ACEOF
11866if ac_fn_cxx_try_cpp "$LINENO"; then :
11867 # Broken: success on invalid input.
11868continue
11869else
11870 # Passes both tests.
11871ac_preproc_ok=:
11872break
11873fi
d0ac1c44 11874rm -f conftest.err conftest.i conftest.$ac_ext
3cb62297
L
11875
11876done
11877# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
d0ac1c44 11878rm -f conftest.i conftest.err conftest.$ac_ext
3cb62297
L
11879if $ac_preproc_ok; then :
11880 break
11881fi
11882
11883 done
11884 ac_cv_prog_CXXCPP=$CXXCPP
11885
11886fi
11887 CXXCPP=$ac_cv_prog_CXXCPP
11888else
11889 ac_cv_prog_CXXCPP=$CXXCPP
11890fi
11891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11892$as_echo "$CXXCPP" >&6; }
11893ac_preproc_ok=false
11894for ac_cxx_preproc_warn_flag in '' yes
11895do
11896 # Use a header file that comes with gcc, so configuring glibc
11897 # with a fresh cross-compiler works.
11898 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11899 # <limits.h> exists even on freestanding compilers.
11900 # On the NeXT, cc -E runs the code through the compiler's parser,
11901 # not just through cpp. "Syntax error" is here to catch this case.
11902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11903/* end confdefs.h. */
11904#ifdef __STDC__
11905# include <limits.h>
11906#else
11907# include <assert.h>
11908#endif
11909 Syntax error
11910_ACEOF
11911if ac_fn_cxx_try_cpp "$LINENO"; then :
11912
11913else
11914 # Broken: fails on valid input.
11915continue
11916fi
d0ac1c44 11917rm -f conftest.err conftest.i conftest.$ac_ext
3cb62297
L
11918
11919 # OK, works on sane cases. Now check whether nonexistent headers
11920 # can be detected and how.
11921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11922/* end confdefs.h. */
11923#include <ac_nonexistent.h>
11924_ACEOF
11925if ac_fn_cxx_try_cpp "$LINENO"; then :
11926 # Broken: success on invalid input.
11927continue
11928else
11929 # Passes both tests.
11930ac_preproc_ok=:
11931break
11932fi
d0ac1c44 11933rm -f conftest.err conftest.i conftest.$ac_ext
3cb62297
L
11934
11935done
11936# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
d0ac1c44 11937rm -f conftest.i conftest.err conftest.$ac_ext
3cb62297
L
11938if $ac_preproc_ok; then :
11939
11940else
11941 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11942$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
11943as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
11944See \`config.log' for more details" "$LINENO" 5; }
3cb62297
L
11945fi
11946
11947ac_ext=c
11948ac_cpp='$CPP $CPPFLAGS'
11949ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11950ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11951ac_compiler_gnu=$ac_cv_c_compiler_gnu
11952
11953else
11954 _lt_caught_CXX_error=yes
11955fi
11956
11957ac_ext=cpp
11958ac_cpp='$CXXCPP $CPPFLAGS'
11959ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11960ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11961ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11962
11963archive_cmds_need_lc_CXX=no
11964allow_undefined_flag_CXX=
11965always_export_symbols_CXX=no
11966archive_expsym_cmds_CXX=
11967compiler_needs_object_CXX=no
11968export_dynamic_flag_spec_CXX=
11969hardcode_direct_CXX=no
11970hardcode_direct_absolute_CXX=no
11971hardcode_libdir_flag_spec_CXX=
11972hardcode_libdir_flag_spec_ld_CXX=
11973hardcode_libdir_separator_CXX=
11974hardcode_minus_L_CXX=no
11975hardcode_shlibpath_var_CXX=unsupported
11976hardcode_automatic_CXX=no
11977inherit_rpath_CXX=no
11978module_cmds_CXX=
11979module_expsym_cmds_CXX=
11980link_all_deplibs_CXX=unknown
11981old_archive_cmds_CXX=$old_archive_cmds
11982reload_flag_CXX=$reload_flag
11983reload_cmds_CXX=$reload_cmds
11984no_undefined_flag_CXX=
11985whole_archive_flag_spec_CXX=
11986enable_shared_with_static_runtimes_CXX=no
11987
11988# Source file extension for C++ test sources.
11989ac_ext=cpp
11990
11991# Object file extension for compiled C++ test sources.
11992objext=o
11993objext_CXX=$objext
11994
11995# No sense in running all these tests if we already determined that
11996# the CXX compiler isn't working. Some variables (like enable_shared)
11997# are currently assumed to apply to all compilers on this platform,
11998# and will be corrupted by setting them based on a non-working compiler.
11999if test "$_lt_caught_CXX_error" != yes; then
12000 # Code to be used in simple compile tests
12001 lt_simple_compile_test_code="int some_variable = 0;"
12002
12003 # Code to be used in simple link tests
12004 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12005
12006 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12007
12008
12009
12010
12011
12012
12013# If no C compiler was specified, use CC.
12014LTCC=${LTCC-"$CC"}
12015
12016# If no C compiler flags were specified, use CFLAGS.
12017LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12018
12019# Allow CC to be a program name with arguments.
12020compiler=$CC
12021
12022
12023 # save warnings/boilerplate of simple test code
12024 ac_outfile=conftest.$ac_objext
12025echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12026eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12027_lt_compiler_boilerplate=`cat conftest.err`
12028$RM conftest*
12029
12030 ac_outfile=conftest.$ac_objext
12031echo "$lt_simple_link_test_code" >conftest.$ac_ext
12032eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12033_lt_linker_boilerplate=`cat conftest.err`
12034$RM -r conftest*
12035
12036
12037 # Allow CC to be a program name with arguments.
12038 lt_save_CC=$CC
12039 lt_save_LD=$LD
12040 lt_save_GCC=$GCC
12041 GCC=$GXX
12042 lt_save_with_gnu_ld=$with_gnu_ld
12043 lt_save_path_LD=$lt_cv_path_LD
12044 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12045 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12046 else
12047 $as_unset lt_cv_prog_gnu_ld
12048 fi
12049 if test -n "${lt_cv_path_LDCXX+set}"; then
12050 lt_cv_path_LD=$lt_cv_path_LDCXX
12051 else
12052 $as_unset lt_cv_path_LD
12053 fi
12054 test -z "${LDCXX+set}" || LD=$LDCXX
12055 CC=${CXX-"c++"}
12056 compiler=$CC
12057 compiler_CXX=$CC
12058 for cc_temp in $compiler""; do
12059 case $cc_temp in
12060 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12061 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12062 \-*) ;;
12063 *) break;;
12064 esac
12065done
12066cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12067
12068
12069 if test -n "$compiler"; then
12070 # We don't want -fno-exception when compiling C++ code, so set the
12071 # no_builtin_flag separately
12072 if test "$GXX" = yes; then
12073 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12074 else
12075 lt_prog_compiler_no_builtin_flag_CXX=
12076 fi
12077
12078 if test "$GXX" = yes; then
12079 # Set up default GNU C++ configuration
12080
12081
12082
12083# Check whether --with-gnu-ld was given.
12084if test "${with_gnu_ld+set}" = set; then :
12085 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12086else
12087 with_gnu_ld=no
12088fi
12089
12090ac_prog=ld
12091if test "$GCC" = yes; then
12092 # Check if gcc -print-prog-name=ld gives a path.
12093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12094$as_echo_n "checking for ld used by $CC... " >&6; }
12095 case $host in
12096 *-*-mingw*)
12097 # gcc leaves a trailing carriage return which upsets mingw
12098 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12099 *)
12100 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12101 esac
12102 case $ac_prog in
12103 # Accept absolute paths.
12104 [\\/]* | ?:[\\/]*)
12105 re_direlt='/[^/][^/]*/\.\./'
12106 # Canonicalize the pathname of ld
12107 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12108 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12109 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12110 done
12111 test -z "$LD" && LD="$ac_prog"
12112 ;;
12113 "")
12114 # If it fails, then pretend we aren't using GCC.
12115 ac_prog=ld
12116 ;;
12117 *)
12118 # If it is relative, then search for the first ld in PATH.
12119 with_gnu_ld=unknown
12120 ;;
12121 esac
12122elif test "$with_gnu_ld" = yes; then
12123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12124$as_echo_n "checking for GNU ld... " >&6; }
12125else
12126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12127$as_echo_n "checking for non-GNU ld... " >&6; }
12128fi
d0ac1c44 12129if ${lt_cv_path_LD+:} false; then :
3cb62297
L
12130 $as_echo_n "(cached) " >&6
12131else
12132 if test -z "$LD"; then
12133 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12134 for ac_dir in $PATH; do
12135 IFS="$lt_save_ifs"
12136 test -z "$ac_dir" && ac_dir=.
12137 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12138 lt_cv_path_LD="$ac_dir/$ac_prog"
12139 # Check to see if the program is GNU ld. I'd rather use --version,
12140 # but apparently some variants of GNU ld only accept -v.
12141 # Break only if it was the GNU/non-GNU ld that we prefer.
12142 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12143 *GNU* | *'with BFD'*)
12144 test "$with_gnu_ld" != no && break
12145 ;;
12146 *)
12147 test "$with_gnu_ld" != yes && break
12148 ;;
12149 esac
12150 fi
12151 done
12152 IFS="$lt_save_ifs"
12153else
12154 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12155fi
12156fi
12157
12158LD="$lt_cv_path_LD"
12159if test -n "$LD"; then
12160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12161$as_echo "$LD" >&6; }
12162else
12163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12164$as_echo "no" >&6; }
12165fi
d0ac1c44 12166test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
3cb62297
L
12167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12168$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
d0ac1c44 12169if ${lt_cv_prog_gnu_ld+:} false; then :
3cb62297
L
12170 $as_echo_n "(cached) " >&6
12171else
12172 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12173case `$LD -v 2>&1 </dev/null` in
12174*GNU* | *'with BFD'*)
12175 lt_cv_prog_gnu_ld=yes
12176 ;;
12177*)
12178 lt_cv_prog_gnu_ld=no
12179 ;;
12180esac
12181fi
12182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12183$as_echo "$lt_cv_prog_gnu_ld" >&6; }
12184with_gnu_ld=$lt_cv_prog_gnu_ld
12185
12186
12187
12188
12189
12190
12191
12192 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12193 # archiving commands below assume that GNU ld is being used.
12194 if test "$with_gnu_ld" = yes; then
6e733cce
L
12195 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12196 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'
3cb62297
L
12197
12198 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12199 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12200
12201 # If archive_cmds runs LD, not CC, wlarc should be empty
12202 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12203 # investigate it a little bit more. (MM)
12204 wlarc='${wl}'
12205
12206 # ancient GNU ld didn't support --whole-archive et. al.
12207 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12208 $GREP 'no-whole-archive' > /dev/null; then
12209 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12210 else
12211 whole_archive_flag_spec_CXX=
12212 fi
12213 else
12214 with_gnu_ld=no
12215 wlarc=
12216
12217 # A generic and very simple default shared library creation
12218 # command for GNU C++ for the case where it uses the native
12219 # linker, instead of GNU ld. If possible, this setting should
12220 # overridden to take advantage of the native linker features on
12221 # the platform it is being used on.
12222 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12223 fi
12224
12225 # Commands to make compiler produce verbose output that lists
12226 # what "hidden" libraries, object files and flags are used when
12227 # linking a shared library.
12228 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12229
12230 else
12231 GXX=no
12232 with_gnu_ld=no
12233 wlarc=
12234 fi
12235
12236 # PORTME: fill in a description of your system's C++ link characteristics
12237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12238$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12239 ld_shlibs_CXX=yes
12240 case $host_os in
12241 aix3*)
12242 # FIXME: insert proper C++ library support
12243 ld_shlibs_CXX=no
12244 ;;
12245 aix[4-9]*)
12246 if test "$host_cpu" = ia64; then
12247 # On IA64, the linker does run time linking by default, so we don't
12248 # have to do anything special.
12249 aix_use_runtimelinking=no
12250 exp_sym_flag='-Bexport'
12251 no_entry_flag=""
12252 else
12253 aix_use_runtimelinking=no
12254
12255 # Test if we are trying to use run time linking or normal
12256 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12257 # need to do runtime linking.
12258 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12259 for ld_flag in $LDFLAGS; do
12260 case $ld_flag in
12261 *-brtl*)
12262 aix_use_runtimelinking=yes
12263 break
12264 ;;
12265 esac
12266 done
12267 ;;
12268 esac
12269
12270 exp_sym_flag='-bexport'
12271 no_entry_flag='-bnoentry'
12272 fi
12273
12274 # When large executables or shared objects are built, AIX ld can
12275 # have problems creating the table of contents. If linking a library
12276 # or program results in "error TOC overflow" add -mminimal-toc to
12277 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12278 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12279
12280 archive_cmds_CXX=''
12281 hardcode_direct_CXX=yes
12282 hardcode_direct_absolute_CXX=yes
12283 hardcode_libdir_separator_CXX=':'
12284 link_all_deplibs_CXX=yes
12285 file_list_spec_CXX='${wl}-f,'
12286
12287 if test "$GXX" = yes; then
12288 case $host_os in aix4.[012]|aix4.[012].*)
12289 # We only want to do this on AIX 4.2 and lower, the check
12290 # below for broken collect2 doesn't work under 4.3+
12291 collect2name=`${CC} -print-prog-name=collect2`
12292 if test -f "$collect2name" &&
12293 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12294 then
12295 # We have reworked collect2
12296 :
12297 else
12298 # We have old collect2
12299 hardcode_direct_CXX=unsupported
12300 # It fails to find uninstalled libraries when the uninstalled
12301 # path is not listed in the libpath. Setting hardcode_minus_L
12302 # to unsupported forces relinking
12303 hardcode_minus_L_CXX=yes
12304 hardcode_libdir_flag_spec_CXX='-L$libdir'
12305 hardcode_libdir_separator_CXX=
12306 fi
12307 esac
12308 shared_flag='-shared'
12309 if test "$aix_use_runtimelinking" = yes; then
12310 shared_flag="$shared_flag "'${wl}-G'
12311 fi
12312 else
12313 # not using gcc
12314 if test "$host_cpu" = ia64; then
12315 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12316 # chokes on -Wl,-G. The following line is correct:
12317 shared_flag='-G'
12318 else
12319 if test "$aix_use_runtimelinking" = yes; then
12320 shared_flag='${wl}-G'
12321 else
12322 shared_flag='${wl}-bM:SRE'
12323 fi
12324 fi
12325 fi
12326
12327 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12328 # It seems that -bexpall does not export symbols beginning with
12329 # underscore (_), so it is better to generate a list of symbols to
12330 # export.
12331 always_export_symbols_CXX=yes
12332 if test "$aix_use_runtimelinking" = yes; then
12333 # Warning - without using the other runtime loading flags (-brtl),
12334 # -berok will link without error, but may produce a broken library.
12335 allow_undefined_flag_CXX='-berok'
12336 # Determine the default libpath from the value encoded in an empty
12337 # executable.
12338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12339/* end confdefs.h. */
12340
12341int
12342main ()
12343{
12344
12345 ;
12346 return 0;
12347}
12348_ACEOF
12349if ac_fn_cxx_try_link "$LINENO"; then :
12350
12351lt_aix_libpath_sed='
12352 /Import File Strings/,/^$/ {
12353 /^0/ {
12354 s/^0 *\(.*\)$/\1/
12355 p
12356 }
12357 }'
12358aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12359# Check for a 64-bit object if we didn't find anything.
12360if test -z "$aix_libpath"; then
12361 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12362fi
12363fi
12364rm -f core conftest.err conftest.$ac_objext \
12365 conftest$ac_exeext conftest.$ac_ext
12366if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12367
12368 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12369
12370 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"
12371 else
12372 if test "$host_cpu" = ia64; then
12373 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12374 allow_undefined_flag_CXX="-z nodefs"
12375 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"
12376 else
12377 # Determine the default libpath from the value encoded in an
12378 # empty executable.
12379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12380/* end confdefs.h. */
12381
12382int
12383main ()
12384{
12385
12386 ;
12387 return 0;
12388}
12389_ACEOF
12390if ac_fn_cxx_try_link "$LINENO"; then :
12391
12392lt_aix_libpath_sed='
12393 /Import File Strings/,/^$/ {
12394 /^0/ {
12395 s/^0 *\(.*\)$/\1/
12396 p
12397 }
12398 }'
12399aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12400# Check for a 64-bit object if we didn't find anything.
12401if test -z "$aix_libpath"; then
12402 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12403fi
12404fi
12405rm -f core conftest.err conftest.$ac_objext \
12406 conftest$ac_exeext conftest.$ac_ext
12407if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12408
12409 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12410 # Warning - without using the other run time loading flags,
12411 # -berok will link without error, but may produce a broken library.
12412 no_undefined_flag_CXX=' ${wl}-bernotok'
12413 allow_undefined_flag_CXX=' ${wl}-berok'
12414 if test "$with_gnu_ld" = yes; then
12415 # We only use this code for GNU lds that support --whole-archive.
12416 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12417 else
12418 # Exported symbols can be pulled into shared objects from archives
12419 whole_archive_flag_spec_CXX='$convenience'
12420 fi
12421 archive_cmds_need_lc_CXX=yes
12422 # This is similar to how AIX traditionally builds its shared
12423 # libraries.
12424 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'
12425 fi
12426 fi
12427 ;;
12428
12429 beos*)
12430 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12431 allow_undefined_flag_CXX=unsupported
12432 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12433 # support --undefined. This deserves some investigation. FIXME
12434 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12435 else
12436 ld_shlibs_CXX=no
12437 fi
12438 ;;
12439
12440 chorus*)
12441 case $cc_basename in
12442 *)
12443 # FIXME: insert proper C++ library support
12444 ld_shlibs_CXX=no
12445 ;;
12446 esac
12447 ;;
12448
12449 cygwin* | mingw* | pw32* | cegcc*)
12450 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12451 # as there is no search path for DLLs.
12452 hardcode_libdir_flag_spec_CXX='-L$libdir'
12453 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12454 allow_undefined_flag_CXX=unsupported
12455 always_export_symbols_CXX=no
12456 enable_shared_with_static_runtimes_CXX=yes
12457
12458 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12459 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'
12460 # If the export-symbols file already is a .def file (1st line
12461 # is EXPORTS), use it as is; otherwise, prepend...
12462 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12463 cp $export_symbols $output_objdir/$soname.def;
12464 else
12465 echo EXPORTS > $output_objdir/$soname.def;
12466 cat $export_symbols >> $output_objdir/$soname.def;
12467 fi~
12468 $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'
12469 else
12470 ld_shlibs_CXX=no
12471 fi
12472 ;;
12473 darwin* | rhapsody*)
12474
12475
12476 archive_cmds_need_lc_CXX=no
12477 hardcode_direct_CXX=no
12478 hardcode_automatic_CXX=yes
12479 hardcode_shlibpath_var_CXX=unsupported
12480 if test "$lt_cv_ld_force_load" = "yes"; then
12481 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\"`'
12482 else
12483 whole_archive_flag_spec_CXX=''
12484 fi
12485 link_all_deplibs_CXX=yes
12486 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12487 case $cc_basename in
12488 ifort*) _lt_dar_can_shared=yes ;;
12489 *) _lt_dar_can_shared=$GCC ;;
12490 esac
12491 if test "$_lt_dar_can_shared" = "yes"; then
12492 output_verbose_link_cmd=func_echo_all
12493 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}"
12494 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12495 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}"
12496 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}"
12497 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12498 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}"
12499 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}"
12500 fi
12501
12502 else
12503 ld_shlibs_CXX=no
12504 fi
12505
12506 ;;
12507
12508 dgux*)
12509 case $cc_basename in
12510 ec++*)
12511 # FIXME: insert proper C++ library support
12512 ld_shlibs_CXX=no
12513 ;;
12514 ghcx*)
12515 # Green Hills C++ Compiler
12516 # FIXME: insert proper C++ library support
12517 ld_shlibs_CXX=no
12518 ;;
12519 *)
12520 # FIXME: insert proper C++ library support
12521 ld_shlibs_CXX=no
12522 ;;
12523 esac
12524 ;;
12525
6d2920c8 12526 freebsd2.*)
3cb62297
L
12527 # C++ shared libraries reported to be fairly broken before
12528 # switch to ELF
12529 ld_shlibs_CXX=no
12530 ;;
12531
12532 freebsd-elf*)
12533 archive_cmds_need_lc_CXX=no
12534 ;;
12535
12536 freebsd* | dragonfly*)
12537 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12538 # conventions
12539 ld_shlibs_CXX=yes
12540 ;;
12541
12542 gnu*)
12543 ;;
12544
12545 haiku*)
12546 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12547 link_all_deplibs_CXX=yes
12548 ;;
12549
12550 hpux9*)
12551 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12552 hardcode_libdir_separator_CXX=:
12553 export_dynamic_flag_spec_CXX='${wl}-E'
12554 hardcode_direct_CXX=yes
12555 hardcode_minus_L_CXX=yes # Not in the search PATH,
12556 # but as the default
12557 # location of the library.
12558
12559 case $cc_basename in
12560 CC*)
12561 # FIXME: insert proper C++ library support
12562 ld_shlibs_CXX=no
12563 ;;
12564 aCC*)
12565 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'
12566 # Commands to make compiler produce verbose output that lists
12567 # what "hidden" libraries, object files and flags are used when
12568 # linking a shared library.
12569 #
12570 # There doesn't appear to be a way to prevent this compiler from
12571 # explicitly linking system object files so we need to strip them
12572 # from the output so that they don't get included in the library
12573 # dependencies.
12574 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"'
12575 ;;
12576 *)
12577 if test "$GXX" = yes; then
12578 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${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'
12579 else
12580 # FIXME: insert proper C++ library support
12581 ld_shlibs_CXX=no
12582 fi
12583 ;;
12584 esac
12585 ;;
12586
12587 hpux10*|hpux11*)
12588 if test $with_gnu_ld = no; then
12589 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12590 hardcode_libdir_separator_CXX=:
12591
12592 case $host_cpu in
12593 hppa*64*|ia64*)
12594 ;;
12595 *)
12596 export_dynamic_flag_spec_CXX='${wl}-E'
12597 ;;
12598 esac
12599 fi
12600 case $host_cpu in
12601 hppa*64*|ia64*)
12602 hardcode_direct_CXX=no
12603 hardcode_shlibpath_var_CXX=no
12604 ;;
12605 *)
12606 hardcode_direct_CXX=yes
12607 hardcode_direct_absolute_CXX=yes
12608 hardcode_minus_L_CXX=yes # Not in the search PATH,
12609 # but as the default
12610 # location of the library.
12611 ;;
12612 esac
12613
12614 case $cc_basename in
12615 CC*)
12616 # FIXME: insert proper C++ library support
12617 ld_shlibs_CXX=no
12618 ;;
12619 aCC*)
12620 case $host_cpu in
12621 hppa*64*)
12622 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12623 ;;
12624 ia64*)
12625 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12626 ;;
12627 *)
12628 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12629 ;;
12630 esac
12631 # Commands to make compiler produce verbose output that lists
12632 # what "hidden" libraries, object files and flags are used when
12633 # linking a shared library.
12634 #
12635 # There doesn't appear to be a way to prevent this compiler from
12636 # explicitly linking system object files so we need to strip them
12637 # from the output so that they don't get included in the library
12638 # dependencies.
12639 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"'
12640 ;;
12641 *)
12642 if test "$GXX" = yes; then
12643 if test $with_gnu_ld = no; then
12644 case $host_cpu in
12645 hppa*64*)
12646 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12647 ;;
12648 ia64*)
12649 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12650 ;;
12651 *)
12652 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12653 ;;
12654 esac
12655 fi
12656 else
12657 # FIXME: insert proper C++ library support
12658 ld_shlibs_CXX=no
12659 fi
12660 ;;
12661 esac
12662 ;;
12663
12664 interix[3-9]*)
12665 hardcode_direct_CXX=no
12666 hardcode_shlibpath_var_CXX=no
12667 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12668 export_dynamic_flag_spec_CXX='${wl}-E'
12669 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12670 # Instead, shared libraries are loaded at an image base (0x10000000 by
12671 # default) and relocated if they conflict, which is a slow very memory
12672 # consuming and fragmenting process. To avoid this, we pick a random,
12673 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12674 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12675 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'
12676 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'
12677 ;;
12678 irix5* | irix6*)
12679 case $cc_basename in
12680 CC*)
12681 # SGI C++
12682 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'
12683
12684 # Archives containing C++ object files must be created using
12685 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12686 # necessary to make sure instantiated templates are included
12687 # in the archive.
12688 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12689 ;;
12690 *)
12691 if test "$GXX" = yes; then
12692 if test "$with_gnu_ld" = no; then
12693 archive_cmds_CXX='$CC -shared -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'
12694 else
12695 archive_cmds_CXX='$CC -shared -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'
12696 fi
12697 fi
12698 link_all_deplibs_CXX=yes
12699 ;;
12700 esac
12701 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12702 hardcode_libdir_separator_CXX=:
12703 inherit_rpath_CXX=yes
12704 ;;
12705
12706 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12707 case $cc_basename in
12708 KCC*)
12709 # Kuck and Associates, Inc. (KAI) C++ Compiler
12710
12711 # KCC will only create a shared library if the output file
12712 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12713 # to its proper name (with version) after linking.
12714 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'
12715 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'
12716 # Commands to make compiler produce verbose output that lists
12717 # what "hidden" libraries, object files and flags are used when
12718 # linking a shared library.
12719 #
12720 # There doesn't appear to be a way to prevent this compiler from
12721 # explicitly linking system object files so we need to strip them
12722 # from the output so that they don't get included in the library
12723 # dependencies.
12724 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"'
12725
12726 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12727 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12728
12729 # Archives containing C++ object files must be created using
12730 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12731 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12732 ;;
12733 icpc* | ecpc* )
12734 # Intel C++
12735 with_gnu_ld=yes
12736 # version 8.0 and above of icpc choke on multiply defined symbols
12737 # if we add $predep_objects and $postdep_objects, however 7.1 and
12738 # earlier do not add the objects themselves.
12739 case `$CC -V 2>&1` in
12740 *"Version 7."*)
12741 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12742 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'
12743 ;;
12744 *) # Version 8.0 or newer
12745 tmp_idyn=
12746 case $host_cpu in
12747 ia64*) tmp_idyn=' -i_dynamic';;
12748 esac
12749 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12750 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'
12751 ;;
12752 esac
12753 archive_cmds_need_lc_CXX=no
12754 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12755 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12756 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12757 ;;
12758 pgCC* | pgcpp*)
12759 # Portland Group C++ compiler
12760 case `$CC -V` in
12761 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12762 prelink_cmds_CXX='tpldir=Template.dir~
12763 rm -rf $tpldir~
12764 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12765 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12766 old_archive_cmds_CXX='tpldir=Template.dir~
12767 rm -rf $tpldir~
12768 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12769 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12770 $RANLIB $oldlib'
12771 archive_cmds_CXX='tpldir=Template.dir~
12772 rm -rf $tpldir~
12773 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12774 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12775 archive_expsym_cmds_CXX='tpldir=Template.dir~
12776 rm -rf $tpldir~
12777 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12778 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12779 ;;
12780 *) # Version 6 and above use weak symbols
12781 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12782 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'
12783 ;;
12784 esac
12785
12786 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12787 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12788 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'
12789 ;;
12790 cxx*)
12791 # Compaq C++
12792 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12793 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'
12794
12795 runpath_var=LD_RUN_PATH
12796 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12797 hardcode_libdir_separator_CXX=:
12798
12799 # Commands to make compiler produce verbose output that lists
12800 # what "hidden" libraries, object files and flags are used when
12801 # linking a shared library.
12802 #
12803 # There doesn't appear to be a way to prevent this compiler from
12804 # explicitly linking system object files so we need to strip them
12805 # from the output so that they don't get included in the library
12806 # dependencies.
12807 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'
12808 ;;
12809 xl* | mpixl* | bgxl*)
12810 # IBM XL 8.0 on PPC, with GNU ld
12811 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12812 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12813 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12814 if test "x$supports_anon_versioning" = xyes; then
12815 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12816 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12817 echo "local: *; };" >> $output_objdir/$libname.ver~
12818 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12819 fi
12820 ;;
12821 *)
12822 case `$CC -V 2>&1 | sed 5q` in
12823 *Sun\ C*)
12824 # Sun C++ 5.9
12825 no_undefined_flag_CXX=' -zdefs'
12826 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12827 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'
12828 hardcode_libdir_flag_spec_CXX='-R$libdir'
12829 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'
12830 compiler_needs_object_CXX=yes
12831
12832 # Not sure whether something based on
12833 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12834 # would be better.
12835 output_verbose_link_cmd='func_echo_all'
12836
12837 # Archives containing C++ object files must be created using
12838 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12839 # necessary to make sure instantiated templates are included
12840 # in the archive.
12841 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12842 ;;
12843 esac
12844 ;;
12845 esac
12846 ;;
12847
12848 lynxos*)
12849 # FIXME: insert proper C++ library support
12850 ld_shlibs_CXX=no
12851 ;;
12852
12853 m88k*)
12854 # FIXME: insert proper C++ library support
12855 ld_shlibs_CXX=no
12856 ;;
12857
12858 mvs*)
12859 case $cc_basename in
12860 cxx*)
12861 # FIXME: insert proper C++ library support
12862 ld_shlibs_CXX=no
12863 ;;
12864 *)
12865 # FIXME: insert proper C++ library support
12866 ld_shlibs_CXX=no
12867 ;;
12868 esac
12869 ;;
12870
12871 netbsd*)
12872 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12873 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12874 wlarc=
12875 hardcode_libdir_flag_spec_CXX='-R$libdir'
12876 hardcode_direct_CXX=yes
12877 hardcode_shlibpath_var_CXX=no
12878 fi
12879 # Workaround some broken pre-1.5 toolchains
12880 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12881 ;;
12882
12883 *nto* | *qnx*)
12884 ld_shlibs_CXX=yes
12885 ;;
12886
12887 openbsd2*)
12888 # C++ shared libraries are fairly broken
12889 ld_shlibs_CXX=no
12890 ;;
12891
12892 openbsd*)
12893 if test -f /usr/libexec/ld.so; then
12894 hardcode_direct_CXX=yes
12895 hardcode_shlibpath_var_CXX=no
12896 hardcode_direct_absolute_CXX=yes
12897 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12898 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12899 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12900 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12901 export_dynamic_flag_spec_CXX='${wl}-E'
12902 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12903 fi
12904 output_verbose_link_cmd=func_echo_all
12905 else
12906 ld_shlibs_CXX=no
12907 fi
12908 ;;
12909
12910 osf3* | osf4* | osf5*)
12911 case $cc_basename in
12912 KCC*)
12913 # Kuck and Associates, Inc. (KAI) C++ Compiler
12914
12915 # KCC will only create a shared library if the output file
12916 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12917 # to its proper name (with version) after linking.
12918 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'
12919
12920 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12921 hardcode_libdir_separator_CXX=:
12922
12923 # Archives containing C++ object files must be created using
12924 # the KAI C++ compiler.
12925 case $host in
12926 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12927 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12928 esac
12929 ;;
12930 RCC*)
12931 # Rational C++ 2.4.1
12932 # FIXME: insert proper C++ library support
12933 ld_shlibs_CXX=no
12934 ;;
12935 cxx*)
12936 case $host in
12937 osf3*)
12938 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12939 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'
12940 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12941 ;;
12942 *)
12943 allow_undefined_flag_CXX=' -expect_unresolved \*'
12944 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'
12945 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12946 echo "-hidden">> $lib.exp~
12947 $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~
12948 $RM $lib.exp'
12949 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12950 ;;
12951 esac
12952
12953 hardcode_libdir_separator_CXX=:
12954
12955 # Commands to make compiler produce verbose output that lists
12956 # what "hidden" libraries, object files and flags are used when
12957 # linking a shared library.
12958 #
12959 # There doesn't appear to be a way to prevent this compiler from
12960 # explicitly linking system object files so we need to strip them
12961 # from the output so that they don't get included in the library
12962 # dependencies.
12963 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"'
12964 ;;
12965 *)
12966 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12967 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12968 case $host in
12969 osf3*)
12970 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'
12971 ;;
12972 *)
12973 archive_cmds_CXX='$CC -shared -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'
12974 ;;
12975 esac
12976
12977 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12978 hardcode_libdir_separator_CXX=:
12979
12980 # Commands to make compiler produce verbose output that lists
12981 # what "hidden" libraries, object files and flags are used when
12982 # linking a shared library.
12983 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12984
12985 else
12986 # FIXME: insert proper C++ library support
12987 ld_shlibs_CXX=no
12988 fi
12989 ;;
12990 esac
12991 ;;
12992
12993 psos*)
12994 # FIXME: insert proper C++ library support
12995 ld_shlibs_CXX=no
12996 ;;
12997
12998 sunos4*)
12999 case $cc_basename in
13000 CC*)
13001 # Sun C++ 4.x
13002 # FIXME: insert proper C++ library support
13003 ld_shlibs_CXX=no
13004 ;;
13005 lcc*)
13006 # Lucid
13007 # FIXME: insert proper C++ library support
13008 ld_shlibs_CXX=no
13009 ;;
13010 *)
13011 # FIXME: insert proper C++ library support
13012 ld_shlibs_CXX=no
13013 ;;
13014 esac
13015 ;;
13016
13017 solaris*)
13018 case $cc_basename in
13019 CC*)
13020 # Sun C++ 4.2, 5.x and Centerline C++
13021 archive_cmds_need_lc_CXX=yes
13022 no_undefined_flag_CXX=' -zdefs'
13023 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13024 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13025 $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'
13026
13027 hardcode_libdir_flag_spec_CXX='-R$libdir'
13028 hardcode_shlibpath_var_CXX=no
13029 case $host_os in
13030 solaris2.[0-5] | solaris2.[0-5].*) ;;
13031 *)
13032 # The compiler driver will combine and reorder linker options,
13033 # but understands `-z linker_flag'.
13034 # Supported since Solaris 2.6 (maybe 2.5.1?)
13035 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13036 ;;
13037 esac
13038 link_all_deplibs_CXX=yes
13039
13040 output_verbose_link_cmd='func_echo_all'
13041
13042 # Archives containing C++ object files must be created using
13043 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13044 # necessary to make sure instantiated templates are included
13045 # in the archive.
13046 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13047 ;;
13048 gcx*)
13049 # Green Hills C++ Compiler
13050 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13051
13052 # The C++ compiler must be used to create the archive.
13053 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13054 ;;
13055 *)
13056 # GNU C++ compiler with Solaris linker
13057 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13058 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13059 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13060 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13061 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13062 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13063
13064 # Commands to make compiler produce verbose output that lists
13065 # what "hidden" libraries, object files and flags are used when
13066 # linking a shared library.
13067 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13068 else
13069 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13070 # platform.
13071 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13072 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13073 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13074
13075 # Commands to make compiler produce verbose output that lists
13076 # what "hidden" libraries, object files and flags are used when
13077 # linking a shared library.
13078 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13079 fi
13080
13081 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13082 case $host_os in
13083 solaris2.[0-5] | solaris2.[0-5].*) ;;
13084 *)
13085 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13086 ;;
13087 esac
13088 fi
13089 ;;
13090 esac
13091 ;;
13092
13093 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13094 no_undefined_flag_CXX='${wl}-z,text'
13095 archive_cmds_need_lc_CXX=no
13096 hardcode_shlibpath_var_CXX=no
13097 runpath_var='LD_RUN_PATH'
13098
13099 case $cc_basename in
13100 CC*)
13101 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13102 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13103 ;;
13104 *)
13105 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13106 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13107 ;;
13108 esac
13109 ;;
13110
13111 sysv5* | sco3.2v5* | sco5v6*)
13112 # Note: We can NOT use -z defs as we might desire, because we do not
13113 # link with -lc, and that would cause any symbols used from libc to
13114 # always be unresolved, which means just about no library would
13115 # ever link correctly. If we're not using GNU ld we use -z text
13116 # though, which does catch some bad symbols but isn't as heavy-handed
13117 # as -z defs.
13118 no_undefined_flag_CXX='${wl}-z,text'
13119 allow_undefined_flag_CXX='${wl}-z,nodefs'
13120 archive_cmds_need_lc_CXX=no
13121 hardcode_shlibpath_var_CXX=no
13122 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13123 hardcode_libdir_separator_CXX=':'
13124 link_all_deplibs_CXX=yes
13125 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13126 runpath_var='LD_RUN_PATH'
13127
13128 case $cc_basename in
13129 CC*)
13130 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13131 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13132 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13133 '"$old_archive_cmds_CXX"
13134 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13135 '"$reload_cmds_CXX"
13136 ;;
13137 *)
13138 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13139 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13140 ;;
13141 esac
13142 ;;
13143
13144 tandem*)
13145 case $cc_basename in
13146 NCC*)
13147 # NonStop-UX NCC 3.20
13148 # FIXME: insert proper C++ library support
13149 ld_shlibs_CXX=no
13150 ;;
13151 *)
13152 # FIXME: insert proper C++ library support
13153 ld_shlibs_CXX=no
13154 ;;
13155 esac
13156 ;;
13157
13158 vxworks*)
13159 # FIXME: insert proper C++ library support
13160 ld_shlibs_CXX=no
13161 ;;
13162
13163 *)
13164 # FIXME: insert proper C++ library support
13165 ld_shlibs_CXX=no
13166 ;;
13167 esac
13168
13169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13170$as_echo "$ld_shlibs_CXX" >&6; }
13171 test "$ld_shlibs_CXX" = no && can_build_shared=no
13172
13173 GCC_CXX="$GXX"
13174 LD_CXX="$LD"
13175
13176 ## CAVEAT EMPTOR:
13177 ## There is no encapsulation within the following macros, do not change
13178 ## the running order or otherwise move them around unless you know exactly
13179 ## what you are doing...
13180 # Dependencies to place before and after the object being linked:
13181predep_objects_CXX=
13182postdep_objects_CXX=
13183predeps_CXX=
13184postdeps_CXX=
13185compiler_lib_search_path_CXX=
13186
13187cat > conftest.$ac_ext <<_LT_EOF
13188class Foo
13189{
13190public:
13191 Foo (void) { a = 0; }
13192private:
13193 int a;
13194};
13195_LT_EOF
13196
13197if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13198 (eval $ac_compile) 2>&5
13199 ac_status=$?
13200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13201 test $ac_status = 0; }; then
13202 # Parse the compiler output and extract the necessary
13203 # objects, libraries and library flags.
13204
13205 # Sentinel used to keep track of whether or not we are before
13206 # the conftest object file.
13207 pre_test_object_deps_done=no
13208
13209 for p in `eval "$output_verbose_link_cmd"`; do
13210 case $p in
13211
13212 -L* | -R* | -l*)
13213 # Some compilers place space between "-{L,R}" and the path.
13214 # Remove the space.
13215 if test $p = "-L" ||
13216 test $p = "-R"; then
13217 prev=$p
13218 continue
13219 else
13220 prev=
13221 fi
13222
13223 if test "$pre_test_object_deps_done" = no; then
13224 case $p in
13225 -L* | -R*)
13226 # Internal compiler library paths should come after those
13227 # provided the user. The postdeps already come after the
13228 # user supplied libs so there is no need to process them.
13229 if test -z "$compiler_lib_search_path_CXX"; then
13230 compiler_lib_search_path_CXX="${prev}${p}"
13231 else
13232 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13233 fi
13234 ;;
13235 # The "-l" case would never come before the object being
13236 # linked, so don't bother handling this case.
13237 esac
13238 else
13239 if test -z "$postdeps_CXX"; then
13240 postdeps_CXX="${prev}${p}"
13241 else
13242 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13243 fi
13244 fi
13245 ;;
13246
13247 *.$objext)
13248 # This assumes that the test object file only shows up
13249 # once in the compiler output.
13250 if test "$p" = "conftest.$objext"; then
13251 pre_test_object_deps_done=yes
13252 continue
13253 fi
13254
13255 if test "$pre_test_object_deps_done" = no; then
13256 if test -z "$predep_objects_CXX"; then
13257 predep_objects_CXX="$p"
13258 else
13259 predep_objects_CXX="$predep_objects_CXX $p"
13260 fi
13261 else
13262 if test -z "$postdep_objects_CXX"; then
13263 postdep_objects_CXX="$p"
13264 else
13265 postdep_objects_CXX="$postdep_objects_CXX $p"
13266 fi
13267 fi
13268 ;;
13269
13270 *) ;; # Ignore the rest.
13271
13272 esac
13273 done
13274
13275 # Clean up.
13276 rm -f a.out a.exe
13277else
13278 echo "libtool.m4: error: problem compiling CXX test program"
13279fi
13280
13281$RM -f confest.$objext
13282
13283# PORTME: override above test on systems where it is broken
13284case $host_os in
13285interix[3-9]*)
13286 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13287 # hack all around it, let's just trust "g++" to DTRT.
13288 predep_objects_CXX=
13289 postdep_objects_CXX=
13290 postdeps_CXX=
13291 ;;
13292
13293linux*)
13294 case `$CC -V 2>&1 | sed 5q` in
13295 *Sun\ C*)
13296 # Sun C++ 5.9
13297
13298 # The more standards-conforming stlport4 library is
13299 # incompatible with the Cstd library. Avoid specifying
13300 # it if it's in CXXFLAGS. Ignore libCrun as
13301 # -library=stlport4 depends on it.
13302 case " $CXX $CXXFLAGS " in
13303 *" -library=stlport4 "*)
13304 solaris_use_stlport4=yes
13305 ;;
13306 esac
13307
13308 if test "$solaris_use_stlport4" != yes; then
13309 postdeps_CXX='-library=Cstd -library=Crun'
13310 fi
13311 ;;
13312 esac
13313 ;;
13314
13315solaris*)
13316 case $cc_basename in
13317 CC*)
13318 # The more standards-conforming stlport4 library is
13319 # incompatible with the Cstd library. Avoid specifying
13320 # it if it's in CXXFLAGS. Ignore libCrun as
13321 # -library=stlport4 depends on it.
13322 case " $CXX $CXXFLAGS " in
13323 *" -library=stlport4 "*)
13324 solaris_use_stlport4=yes
13325 ;;
13326 esac
13327
13328 # Adding this requires a known-good setup of shared libraries for
13329 # Sun compiler versions before 5.6, else PIC objects from an old
13330 # archive will be linked into the output, leading to subtle bugs.
13331 if test "$solaris_use_stlport4" != yes; then
13332 postdeps_CXX='-library=Cstd -library=Crun'
13333 fi
13334 ;;
13335 esac
13336 ;;
13337esac
13338
13339
13340case " $postdeps_CXX " in
13341*" -lc "*) archive_cmds_need_lc_CXX=no ;;
13342esac
13343 compiler_lib_search_dirs_CXX=
13344if test -n "${compiler_lib_search_path_CXX}"; then
13345 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13346fi
13347
13348
13349
13350
13351
13352
13353
13354
13355
13356
13357
13358
13359
13360
13361
13362
13363
13364
13365
13366
13367
13368
13369
13370
13371
13372
13373
13374
13375
13376
13377
13378 lt_prog_compiler_wl_CXX=
13379lt_prog_compiler_pic_CXX=
13380lt_prog_compiler_static_CXX=
13381
13382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13383$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13384
13385 # C++ specific cases for pic, static, wl, etc.
13386 if test "$GXX" = yes; then
13387 lt_prog_compiler_wl_CXX='-Wl,'
13388 lt_prog_compiler_static_CXX='-static'
13389
13390 case $host_os in
13391 aix*)
13392 # All AIX code is PIC.
13393 if test "$host_cpu" = ia64; then
13394 # AIX 5 now supports IA64 processor
13395 lt_prog_compiler_static_CXX='-Bstatic'
13396 fi
52204357 13397 lt_prog_compiler_pic_CXX='-fPIC'
3cb62297
L
13398 ;;
13399
13400 amigaos*)
13401 case $host_cpu in
13402 powerpc)
13403 # see comment about AmigaOS4 .so support
13404 lt_prog_compiler_pic_CXX='-fPIC'
13405 ;;
13406 m68k)
13407 # FIXME: we need at least 68020 code to build shared libraries, but
13408 # adding the `-m68020' flag to GCC prevents building anything better,
13409 # like `-m68040'.
13410 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13411 ;;
13412 esac
13413 ;;
13414
13415 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13416 # PIC is the default for these OSes.
13417 ;;
13418 mingw* | cygwin* | os2* | pw32* | cegcc*)
13419 # This hack is so that the source file can tell whether it is being
13420 # built for inclusion in a dll (and should export symbols for example).
13421 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13422 # (--disable-auto-import) libraries
13423 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13424 ;;
13425 darwin* | rhapsody*)
13426 # PIC is the default on this platform
13427 # Common symbols not allowed in MH_DYLIB files
13428 lt_prog_compiler_pic_CXX='-fno-common'
13429 ;;
13430 *djgpp*)
13431 # DJGPP does not support shared libraries at all
13432 lt_prog_compiler_pic_CXX=
13433 ;;
13434 haiku*)
13435 # PIC is the default for Haiku.
13436 # The "-static" flag exists, but is broken.
13437 lt_prog_compiler_static_CXX=
13438 ;;
13439 interix[3-9]*)
13440 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13441 # Instead, we relocate shared libraries at runtime.
13442 ;;
13443 sysv4*MP*)
13444 if test -d /usr/nec; then
13445 lt_prog_compiler_pic_CXX=-Kconform_pic
13446 fi
13447 ;;
13448 hpux*)
13449 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13450 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13451 # sets the default TLS model and affects inlining.
13452 case $host_cpu in
13453 hppa*64*)
13454 ;;
13455 *)
13456 lt_prog_compiler_pic_CXX='-fPIC'
13457 ;;
13458 esac
13459 ;;
13460 *qnx* | *nto*)
13461 # QNX uses GNU C++, but need to define -shared option too, otherwise
13462 # it will coredump.
13463 lt_prog_compiler_pic_CXX='-fPIC -shared'
13464 ;;
13465 *)
13466 lt_prog_compiler_pic_CXX='-fPIC'
13467 ;;
13468 esac
13469 else
13470 case $host_os in
13471 aix[4-9]*)
13472 # All AIX code is PIC.
13473 if test "$host_cpu" = ia64; then
13474 # AIX 5 now supports IA64 processor
13475 lt_prog_compiler_static_CXX='-Bstatic'
13476 else
13477 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13478 fi
13479 ;;
13480 chorus*)
13481 case $cc_basename in
13482 cxch68*)
13483 # Green Hills C++ Compiler
13484 # _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"
13485 ;;
13486 esac
13487 ;;
13488 dgux*)
13489 case $cc_basename in
13490 ec++*)
13491 lt_prog_compiler_pic_CXX='-KPIC'
13492 ;;
13493 ghcx*)
13494 # Green Hills C++ Compiler
13495 lt_prog_compiler_pic_CXX='-pic'
13496 ;;
13497 *)
13498 ;;
13499 esac
13500 ;;
13501 freebsd* | dragonfly*)
13502 # FreeBSD uses GNU C++
13503 ;;
13504 hpux9* | hpux10* | hpux11*)
13505 case $cc_basename in
13506 CC*)
13507 lt_prog_compiler_wl_CXX='-Wl,'
13508 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13509 if test "$host_cpu" != ia64; then
13510 lt_prog_compiler_pic_CXX='+Z'
13511 fi
13512 ;;
13513 aCC*)
13514 lt_prog_compiler_wl_CXX='-Wl,'
13515 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13516 case $host_cpu in
13517 hppa*64*|ia64*)
13518 # +Z the default
13519 ;;
13520 *)
13521 lt_prog_compiler_pic_CXX='+Z'
13522 ;;
13523 esac
13524 ;;
13525 *)
13526 ;;
13527 esac
13528 ;;
13529 interix*)
13530 # This is c89, which is MS Visual C++ (no shared libs)
13531 # Anyone wants to do a port?
13532 ;;
13533 irix5* | irix6* | nonstopux*)
13534 case $cc_basename in
13535 CC*)
13536 lt_prog_compiler_wl_CXX='-Wl,'
13537 lt_prog_compiler_static_CXX='-non_shared'
13538 # CC pic flag -KPIC is the default.
13539 ;;
13540 *)
13541 ;;
13542 esac
13543 ;;
13544 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13545 case $cc_basename in
13546 KCC*)
13547 # KAI C++ Compiler
13548 lt_prog_compiler_wl_CXX='--backend -Wl,'
13549 lt_prog_compiler_pic_CXX='-fPIC'
13550 ;;
13551 ecpc* )
13552 # old Intel C++ for x86_64 which still supported -KPIC.
13553 lt_prog_compiler_wl_CXX='-Wl,'
13554 lt_prog_compiler_pic_CXX='-KPIC'
13555 lt_prog_compiler_static_CXX='-static'
13556 ;;
13557 icpc* )
13558 # Intel C++, used to be incompatible with GCC.
13559 # ICC 10 doesn't accept -KPIC any more.
13560 lt_prog_compiler_wl_CXX='-Wl,'
13561 lt_prog_compiler_pic_CXX='-fPIC'
13562 lt_prog_compiler_static_CXX='-static'
13563 ;;
13564 pgCC* | pgcpp*)
13565 # Portland Group C++ compiler
13566 lt_prog_compiler_wl_CXX='-Wl,'
13567 lt_prog_compiler_pic_CXX='-fpic'
13568 lt_prog_compiler_static_CXX='-Bstatic'
13569 ;;
13570 cxx*)
13571 # Compaq C++
13572 # Make sure the PIC flag is empty. It appears that all Alpha
13573 # Linux and Compaq Tru64 Unix objects are PIC.
13574 lt_prog_compiler_pic_CXX=
13575 lt_prog_compiler_static_CXX='-non_shared'
13576 ;;
13577 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13578 # IBM XL 8.0, 9.0 on PPC and BlueGene
13579 lt_prog_compiler_wl_CXX='-Wl,'
13580 lt_prog_compiler_pic_CXX='-qpic'
13581 lt_prog_compiler_static_CXX='-qstaticlink'
13582 ;;
13583 *)
13584 case `$CC -V 2>&1 | sed 5q` in
13585 *Sun\ C*)
13586 # Sun C++ 5.9
13587 lt_prog_compiler_pic_CXX='-KPIC'
13588 lt_prog_compiler_static_CXX='-Bstatic'
13589 lt_prog_compiler_wl_CXX='-Qoption ld '
13590 ;;
13591 esac
13592 ;;
13593 esac
13594 ;;
13595 lynxos*)
13596 ;;
13597 m88k*)
13598 ;;
13599 mvs*)
13600 case $cc_basename in
13601 cxx*)
13602 lt_prog_compiler_pic_CXX='-W c,exportall'
13603 ;;
13604 *)
13605 ;;
13606 esac
13607 ;;
13608 netbsd*)
13609 ;;
13610 *qnx* | *nto*)
13611 # QNX uses GNU C++, but need to define -shared option too, otherwise
13612 # it will coredump.
13613 lt_prog_compiler_pic_CXX='-fPIC -shared'
13614 ;;
13615 osf3* | osf4* | osf5*)
13616 case $cc_basename in
13617 KCC*)
13618 lt_prog_compiler_wl_CXX='--backend -Wl,'
13619 ;;
13620 RCC*)
13621 # Rational C++ 2.4.1
13622 lt_prog_compiler_pic_CXX='-pic'
13623 ;;
13624 cxx*)
13625 # Digital/Compaq C++
13626 lt_prog_compiler_wl_CXX='-Wl,'
13627 # Make sure the PIC flag is empty. It appears that all Alpha
13628 # Linux and Compaq Tru64 Unix objects are PIC.
13629 lt_prog_compiler_pic_CXX=
13630 lt_prog_compiler_static_CXX='-non_shared'
13631 ;;
13632 *)
13633 ;;
13634 esac
13635 ;;
13636 psos*)
13637 ;;
13638 solaris*)
13639 case $cc_basename in
13640 CC*)
13641 # Sun C++ 4.2, 5.x and Centerline C++
13642 lt_prog_compiler_pic_CXX='-KPIC'
13643 lt_prog_compiler_static_CXX='-Bstatic'
13644 lt_prog_compiler_wl_CXX='-Qoption ld '
13645 ;;
13646 gcx*)
13647 # Green Hills C++ Compiler
13648 lt_prog_compiler_pic_CXX='-PIC'
13649 ;;
13650 *)
13651 ;;
13652 esac
13653 ;;
13654 sunos4*)
13655 case $cc_basename in
13656 CC*)
13657 # Sun C++ 4.x
13658 lt_prog_compiler_pic_CXX='-pic'
13659 lt_prog_compiler_static_CXX='-Bstatic'
13660 ;;
13661 lcc*)
13662 # Lucid
13663 lt_prog_compiler_pic_CXX='-pic'
13664 ;;
13665 *)
13666 ;;
13667 esac
13668 ;;
13669 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13670 case $cc_basename in
13671 CC*)
13672 lt_prog_compiler_wl_CXX='-Wl,'
13673 lt_prog_compiler_pic_CXX='-KPIC'
13674 lt_prog_compiler_static_CXX='-Bstatic'
13675 ;;
13676 esac
13677 ;;
13678 tandem*)
13679 case $cc_basename in
13680 NCC*)
13681 # NonStop-UX NCC 3.20
13682 lt_prog_compiler_pic_CXX='-KPIC'
13683 ;;
13684 *)
13685 ;;
13686 esac
13687 ;;
13688 vxworks*)
13689 ;;
13690 *)
13691 lt_prog_compiler_can_build_shared_CXX=no
13692 ;;
13693 esac
13694 fi
13695
13696case $host_os in
13697 # For platforms which do not support PIC, -DPIC is meaningless:
13698 *djgpp*)
13699 lt_prog_compiler_pic_CXX=
13700 ;;
13701 *)
13702 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13703 ;;
13704esac
13705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13706$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13707
13708
13709
13710#
13711# Check to make sure the PIC flag actually works.
13712#
13713if test -n "$lt_prog_compiler_pic_CXX"; then
13714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13715$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
d0ac1c44 13716if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
3cb62297
L
13717 $as_echo_n "(cached) " >&6
13718else
13719 lt_cv_prog_compiler_pic_works_CXX=no
13720 ac_outfile=conftest.$ac_objext
13721 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13722 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13723 # Insert the option either (1) after the last *FLAGS variable, or
13724 # (2) before a word containing "conftest.", or (3) at the end.
13725 # Note that $ac_compile itself does not contain backslashes and begins
13726 # with a dollar sign (not a hyphen), so the echo should work correctly.
13727 # The option is referenced via a variable to avoid confusing sed.
13728 lt_compile=`echo "$ac_compile" | $SED \
13729 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13730 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13731 -e 's:$: $lt_compiler_flag:'`
13732 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13733 (eval "$lt_compile" 2>conftest.err)
13734 ac_status=$?
13735 cat conftest.err >&5
13736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13737 if (exit $ac_status) && test -s "$ac_outfile"; then
13738 # The compiler can only warn and ignore the option if not recognized
13739 # So say no if there are warnings other than the usual output.
13740 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13741 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13742 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13743 lt_cv_prog_compiler_pic_works_CXX=yes
13744 fi
13745 fi
13746 $RM conftest*
13747
13748fi
13749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13750$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13751
13752if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13753 case $lt_prog_compiler_pic_CXX in
13754 "" | " "*) ;;
13755 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13756 esac
13757else
13758 lt_prog_compiler_pic_CXX=
13759 lt_prog_compiler_can_build_shared_CXX=no
13760fi
13761
13762fi
13763
13764
13765
13766#
13767# Check to make sure the static flag actually works.
13768#
13769wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13771$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
d0ac1c44 13772if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
3cb62297
L
13773 $as_echo_n "(cached) " >&6
13774else
13775 lt_cv_prog_compiler_static_works_CXX=no
13776 save_LDFLAGS="$LDFLAGS"
13777 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13778 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13779 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13780 # The linker can only warn and ignore the option if not recognized
13781 # So say no if there are warnings
13782 if test -s conftest.err; then
13783 # Append any errors to the config.log.
13784 cat conftest.err 1>&5
13785 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13786 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13787 if diff conftest.exp conftest.er2 >/dev/null; then
13788 lt_cv_prog_compiler_static_works_CXX=yes
13789 fi
13790 else
13791 lt_cv_prog_compiler_static_works_CXX=yes
13792 fi
13793 fi
13794 $RM -r conftest*
13795 LDFLAGS="$save_LDFLAGS"
13796
13797fi
13798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13799$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13800
13801if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13802 :
13803else
13804 lt_prog_compiler_static_CXX=
13805fi
13806
13807
13808
13809
13810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13811$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
d0ac1c44 13812if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
3cb62297
L
13813 $as_echo_n "(cached) " >&6
13814else
13815 lt_cv_prog_compiler_c_o_CXX=no
13816 $RM -r conftest 2>/dev/null
13817 mkdir conftest
13818 cd conftest
13819 mkdir out
13820 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13821
13822 lt_compiler_flag="-o out/conftest2.$ac_objext"
13823 # Insert the option either (1) after the last *FLAGS variable, or
13824 # (2) before a word containing "conftest.", or (3) at the end.
13825 # Note that $ac_compile itself does not contain backslashes and begins
13826 # with a dollar sign (not a hyphen), so the echo should work correctly.
13827 lt_compile=`echo "$ac_compile" | $SED \
13828 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13829 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13830 -e 's:$: $lt_compiler_flag:'`
13831 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13832 (eval "$lt_compile" 2>out/conftest.err)
13833 ac_status=$?
13834 cat out/conftest.err >&5
13835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13836 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13837 then
13838 # The compiler can only warn and ignore the option if not recognized
13839 # So say no if there are warnings
13840 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13841 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13842 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13843 lt_cv_prog_compiler_c_o_CXX=yes
13844 fi
13845 fi
13846 chmod u+w . 2>&5
13847 $RM conftest*
13848 # SGI C++ compiler will create directory out/ii_files/ for
13849 # template instantiation
13850 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13851 $RM out/* && rmdir out
13852 cd ..
13853 $RM -r conftest
13854 $RM conftest*
13855
13856fi
13857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13858$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13859
13860
13861
13862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13863$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
d0ac1c44 13864if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
3cb62297
L
13865 $as_echo_n "(cached) " >&6
13866else
13867 lt_cv_prog_compiler_c_o_CXX=no
13868 $RM -r conftest 2>/dev/null
13869 mkdir conftest
13870 cd conftest
13871 mkdir out
13872 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13873
13874 lt_compiler_flag="-o out/conftest2.$ac_objext"
13875 # Insert the option either (1) after the last *FLAGS variable, or
13876 # (2) before a word containing "conftest.", or (3) at the end.
13877 # Note that $ac_compile itself does not contain backslashes and begins
13878 # with a dollar sign (not a hyphen), so the echo should work correctly.
13879 lt_compile=`echo "$ac_compile" | $SED \
13880 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13881 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13882 -e 's:$: $lt_compiler_flag:'`
13883 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13884 (eval "$lt_compile" 2>out/conftest.err)
13885 ac_status=$?
13886 cat out/conftest.err >&5
13887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13888 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13889 then
13890 # The compiler can only warn and ignore the option if not recognized
13891 # So say no if there are warnings
13892 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13893 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13894 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13895 lt_cv_prog_compiler_c_o_CXX=yes
13896 fi
13897 fi
13898 chmod u+w . 2>&5
13899 $RM conftest*
13900 # SGI C++ compiler will create directory out/ii_files/ for
13901 # template instantiation
13902 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13903 $RM out/* && rmdir out
13904 cd ..
13905 $RM -r conftest
13906 $RM conftest*
13907
13908fi
13909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13910$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13911
13912
13913
13914
13915hard_links="nottested"
13916if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13917 # do not overwrite the value of need_locks provided by the user
13918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13919$as_echo_n "checking if we can lock with hard links... " >&6; }
13920 hard_links=yes
13921 $RM conftest*
13922 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13923 touch conftest.a
13924 ln conftest.a conftest.b 2>&5 || hard_links=no
13925 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13927$as_echo "$hard_links" >&6; }
13928 if test "$hard_links" = no; then
13929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13930$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13931 need_locks=warn
13932 fi
13933else
13934 need_locks=no
13935fi
13936
13937
13938
13939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13940$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13941
13942 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13943 case $host_os in
13944 aix[4-9]*)
13945 # If we're using GNU nm, then we don't want the "-C" option.
13946 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13947 # Also, AIX nm treats weak defined symbols like other global defined
13948 # symbols, whereas GNU nm marks them as "W".
13949 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13950 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'
13951 else
5c14705f 13952 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
3cb62297
L
13953 fi
13954 ;;
13955 pw32*)
13956 export_symbols_cmds_CXX="$ltdll_cmds"
13957 ;;
13958 cygwin* | mingw* | cegcc*)
13959 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
13960 ;;
13961 *)
13962 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13963 ;;
13964 esac
13965 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13966
13967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13968$as_echo "$ld_shlibs_CXX" >&6; }
13969test "$ld_shlibs_CXX" = no && can_build_shared=no
13970
13971with_gnu_ld_CXX=$with_gnu_ld
13972
13973
13974
13975
13976
13977
13978#
13979# Do we need to explicitly link libc?
13980#
13981case "x$archive_cmds_need_lc_CXX" in
13982x|xyes)
13983 # Assume -lc should be added
13984 archive_cmds_need_lc_CXX=yes
13985
13986 if test "$enable_shared" = yes && test "$GCC" = yes; then
13987 case $archive_cmds_CXX in
13988 *'~'*)
13989 # FIXME: we may have to deal with multi-command sequences.
13990 ;;
13991 '$CC '*)
13992 # Test whether the compiler implicitly links with -lc since on some
13993 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13994 # to ld, don't add -lc before -lgcc.
13995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13996$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
d0ac1c44 13997if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
3cb62297
L
13998 $as_echo_n "(cached) " >&6
13999else
14000 $RM conftest*
14001 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14002
14003 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14004 (eval $ac_compile) 2>&5
14005 ac_status=$?
14006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14007 test $ac_status = 0; } 2>conftest.err; then
14008 soname=conftest
14009 lib=conftest
14010 libobjs=conftest.$ac_objext
14011 deplibs=
14012 wl=$lt_prog_compiler_wl_CXX
14013 pic_flag=$lt_prog_compiler_pic_CXX
14014 compiler_flags=-v
14015 linker_flags=-v
14016 verstring=
14017 output_objdir=.
14018 libname=conftest
14019 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14020 allow_undefined_flag_CXX=
14021 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14022 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14023 ac_status=$?
14024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14025 test $ac_status = 0; }
14026 then
14027 lt_cv_archive_cmds_need_lc_CXX=no
14028 else
14029 lt_cv_archive_cmds_need_lc_CXX=yes
14030 fi
14031 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14032 else
14033 cat conftest.err 1>&5
14034 fi
14035 $RM conftest*
14036
14037fi
14038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14039$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14040 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14041 ;;
14042 esac
14043 fi
14044 ;;
14045esac
14046
14047
14048
14049
14050
14051
14052
14053
14054
14055
14056
14057
14058
14059
14060
14061
14062
14063
14064
14065
14066
14067
14068
14069
14070
14071
14072
14073
14074
14075
14076
14077
14078
14079
14080
14081
14082
14083
14084
14085
14086
14087
14088
14089
14090
14091
14092
14093
14094
14095
14096
14097
14098
14099
14100
14101
14102
14103
14104
14105
14106
14107
14108
14109
14110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14111$as_echo_n "checking dynamic linker characteristics... " >&6; }
14112
14113library_names_spec=
14114libname_spec='lib$name'
14115soname_spec=
14116shrext_cmds=".so"
14117postinstall_cmds=
14118postuninstall_cmds=
14119finish_cmds=
14120finish_eval=
14121shlibpath_var=
14122shlibpath_overrides_runpath=unknown
14123version_type=none
14124dynamic_linker="$host_os ld.so"
14125sys_lib_dlsearch_path_spec="/lib /usr/lib"
14126need_lib_prefix=unknown
14127hardcode_into_libs=no
14128
14129# when you set need_version to no, make sure it does not cause -set_version
14130# flags to be left without arguments
14131need_version=unknown
14132
14133case $host_os in
14134aix3*)
14135 version_type=linux
14136 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14137 shlibpath_var=LIBPATH
14138
14139 # AIX 3 has no versioning support, so we append a major version to the name.
14140 soname_spec='${libname}${release}${shared_ext}$major'
14141 ;;
14142
14143aix[4-9]*)
14144 version_type=linux
14145 need_lib_prefix=no
14146 need_version=no
14147 hardcode_into_libs=yes
14148 if test "$host_cpu" = ia64; then
14149 # AIX 5 supports IA64
14150 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14151 shlibpath_var=LD_LIBRARY_PATH
14152 else
14153 # With GCC up to 2.95.x, collect2 would create an import file
14154 # for dependence libraries. The import file would start with
14155 # the line `#! .'. This would cause the generated library to
14156 # depend on `.', always an invalid library. This was fixed in
14157 # development snapshots of GCC prior to 3.0.
14158 case $host_os in
14159 aix4 | aix4.[01] | aix4.[01].*)
14160 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14161 echo ' yes '
14162 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14163 :
14164 else
14165 can_build_shared=no
14166 fi
14167 ;;
14168 esac
14169 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14170 # soname into executable. Probably we can add versioning support to
14171 # collect2, so additional links can be useful in future.
14172 if test "$aix_use_runtimelinking" = yes; then
14173 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14174 # instead of lib<name>.a to let people know that these are not
14175 # typical AIX shared libraries.
14176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14177 else
14178 # We preserve .a as extension for shared libraries through AIX4.2
14179 # and later when we are not doing run time linking.
14180 library_names_spec='${libname}${release}.a $libname.a'
14181 soname_spec='${libname}${release}${shared_ext}$major'
14182 fi
14183 shlibpath_var=LIBPATH
14184 fi
14185 ;;
14186
14187amigaos*)
14188 case $host_cpu in
14189 powerpc)
14190 # Since July 2007 AmigaOS4 officially supports .so libraries.
14191 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14193 ;;
14194 m68k)
14195 library_names_spec='$libname.ixlibrary $libname.a'
14196 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14197 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'
14198 ;;
14199 esac
14200 ;;
14201
14202beos*)
14203 library_names_spec='${libname}${shared_ext}'
14204 dynamic_linker="$host_os ld.so"
14205 shlibpath_var=LIBRARY_PATH
14206 ;;
14207
14208bsdi[45]*)
14209 version_type=linux
14210 need_version=no
14211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14212 soname_spec='${libname}${release}${shared_ext}$major'
14213 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14214 shlibpath_var=LD_LIBRARY_PATH
14215 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14216 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14217 # the default ld.so.conf also contains /usr/contrib/lib and
14218 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14219 # libtool to hard-code these into programs
14220 ;;
14221
14222cygwin* | mingw* | pw32* | cegcc*)
14223 version_type=windows
14224 shrext_cmds=".dll"
14225 need_version=no
14226 need_lib_prefix=no
14227
14228 case $GCC,$host_os in
14229 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14230 library_names_spec='$libname.dll.a'
14231 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14232 postinstall_cmds='base_file=`basename \${file}`~
14233 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14234 dldir=$destdir/`dirname \$dlpath`~
14235 test -d \$dldir || mkdir -p \$dldir~
14236 $install_prog $dir/$dlname \$dldir/$dlname~
14237 chmod a+x \$dldir/$dlname~
14238 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14239 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14240 fi'
14241 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14242 dlpath=$dir/\$dldll~
14243 $RM \$dlpath'
14244 shlibpath_overrides_runpath=yes
14245
14246 case $host_os in
14247 cygwin*)
14248 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14249 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14250
14251 ;;
14252 mingw* | cegcc*)
14253 # MinGW DLLs use traditional 'lib' prefix
14254 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14255 ;;
14256 pw32*)
14257 # pw32 DLLs use 'pw' prefix rather than 'lib'
14258 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14259 ;;
14260 esac
14261 ;;
14262
14263 *)
14264 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14265 ;;
14266 esac
14267 dynamic_linker='Win32 ld.exe'
14268 # FIXME: first we should search . and the directory the executable is in
14269 shlibpath_var=PATH
14270 ;;
14271
14272darwin* | rhapsody*)
14273 dynamic_linker="$host_os dyld"
14274 version_type=darwin
14275 need_lib_prefix=no
14276 need_version=no
14277 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14278 soname_spec='${libname}${release}${major}$shared_ext'
14279 shlibpath_overrides_runpath=yes
14280 shlibpath_var=DYLD_LIBRARY_PATH
14281 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14282
14283 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14284 ;;
14285
14286dgux*)
14287 version_type=linux
14288 need_lib_prefix=no
14289 need_version=no
14290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14291 soname_spec='${libname}${release}${shared_ext}$major'
14292 shlibpath_var=LD_LIBRARY_PATH
14293 ;;
14294
3cb62297
L
14295freebsd* | dragonfly*)
14296 # DragonFly does not have aout. When/if they implement a new
14297 # versioning mechanism, adjust this.
14298 if test -x /usr/bin/objformat; then
14299 objformat=`/usr/bin/objformat`
14300 else
14301 case $host_os in
6d2920c8 14302 freebsd[23].*) objformat=aout ;;
3cb62297
L
14303 *) objformat=elf ;;
14304 esac
14305 fi
14306 version_type=freebsd-$objformat
14307 case $version_type in
14308 freebsd-elf*)
14309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14310 need_version=no
14311 need_lib_prefix=no
14312 ;;
14313 freebsd-*)
14314 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14315 need_version=yes
14316 ;;
14317 esac
14318 shlibpath_var=LD_LIBRARY_PATH
14319 case $host_os in
6d2920c8 14320 freebsd2.*)
3cb62297
L
14321 shlibpath_overrides_runpath=yes
14322 ;;
14323 freebsd3.[01]* | freebsdelf3.[01]*)
14324 shlibpath_overrides_runpath=yes
14325 hardcode_into_libs=yes
14326 ;;
14327 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14328 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14329 shlibpath_overrides_runpath=no
14330 hardcode_into_libs=yes
14331 ;;
14332 *) # from 4.6 on, and DragonFly
14333 shlibpath_overrides_runpath=yes
14334 hardcode_into_libs=yes
14335 ;;
14336 esac
14337 ;;
14338
3cb62297
L
14339haiku*)
14340 version_type=linux
14341 need_lib_prefix=no
14342 need_version=no
14343 dynamic_linker="$host_os runtime_loader"
14344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14345 soname_spec='${libname}${release}${shared_ext}$major'
14346 shlibpath_var=LIBRARY_PATH
14347 shlibpath_overrides_runpath=yes
d85e70a3 14348 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
3cb62297
L
14349 hardcode_into_libs=yes
14350 ;;
14351
14352hpux9* | hpux10* | hpux11*)
14353 # Give a soname corresponding to the major version so that dld.sl refuses to
14354 # link against other versions.
14355 version_type=sunos
14356 need_lib_prefix=no
14357 need_version=no
14358 case $host_cpu in
14359 ia64*)
14360 shrext_cmds='.so'
14361 hardcode_into_libs=yes
14362 dynamic_linker="$host_os dld.so"
14363 shlibpath_var=LD_LIBRARY_PATH
14364 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14366 soname_spec='${libname}${release}${shared_ext}$major'
14367 if test "X$HPUX_IA64_MODE" = X32; then
14368 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14369 else
14370 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14371 fi
14372 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14373 ;;
14374 hppa*64*)
14375 shrext_cmds='.sl'
14376 hardcode_into_libs=yes
14377 dynamic_linker="$host_os dld.sl"
14378 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14379 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14381 soname_spec='${libname}${release}${shared_ext}$major'
14382 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14383 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14384 ;;
14385 *)
14386 shrext_cmds='.sl'
14387 dynamic_linker="$host_os dld.sl"
14388 shlibpath_var=SHLIB_PATH
14389 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14391 soname_spec='${libname}${release}${shared_ext}$major'
14392 ;;
14393 esac
14394 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14395 postinstall_cmds='chmod 555 $lib'
14396 # or fails outright, so override atomically:
14397 install_override_mode=555
14398 ;;
14399
14400interix[3-9]*)
14401 version_type=linux
14402 need_lib_prefix=no
14403 need_version=no
14404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14405 soname_spec='${libname}${release}${shared_ext}$major'
14406 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14407 shlibpath_var=LD_LIBRARY_PATH
14408 shlibpath_overrides_runpath=no
14409 hardcode_into_libs=yes
14410 ;;
14411
14412irix5* | irix6* | nonstopux*)
14413 case $host_os in
14414 nonstopux*) version_type=nonstopux ;;
14415 *)
14416 if test "$lt_cv_prog_gnu_ld" = yes; then
14417 version_type=linux
14418 else
14419 version_type=irix
14420 fi ;;
14421 esac
14422 need_lib_prefix=no
14423 need_version=no
14424 soname_spec='${libname}${release}${shared_ext}$major'
14425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14426 case $host_os in
14427 irix5* | nonstopux*)
14428 libsuff= shlibsuff=
14429 ;;
14430 *)
14431 case $LD in # libtool.m4 will add one of these switches to LD
14432 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14433 libsuff= shlibsuff= libmagic=32-bit;;
14434 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14435 libsuff=32 shlibsuff=N32 libmagic=N32;;
14436 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14437 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14438 *) libsuff= shlibsuff= libmagic=never-match;;
14439 esac
14440 ;;
14441 esac
14442 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14443 shlibpath_overrides_runpath=no
14444 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14445 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14446 hardcode_into_libs=yes
14447 ;;
14448
14449# No shared lib support for Linux oldld, aout, or coff.
14450linux*oldld* | linux*aout* | linux*coff*)
14451 dynamic_linker=no
14452 ;;
14453
14454# This must be Linux ELF.
64307045 14455linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
3cb62297
L
14456 version_type=linux
14457 need_lib_prefix=no
14458 need_version=no
14459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14460 soname_spec='${libname}${release}${shared_ext}$major'
14461 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14462 shlibpath_var=LD_LIBRARY_PATH
14463 shlibpath_overrides_runpath=no
14464
14465 # Some binutils ld are patched to set DT_RUNPATH
d0ac1c44 14466 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
3cb62297
L
14467 $as_echo_n "(cached) " >&6
14468else
14469 lt_cv_shlibpath_overrides_runpath=no
14470 save_LDFLAGS=$LDFLAGS
14471 save_libdir=$libdir
14472 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14473 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14475/* end confdefs.h. */
14476
14477int
14478main ()
14479{
14480
14481 ;
14482 return 0;
14483}
14484_ACEOF
14485if ac_fn_cxx_try_link "$LINENO"; then :
14486 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14487 lt_cv_shlibpath_overrides_runpath=yes
14488fi
14489fi
14490rm -f core conftest.err conftest.$ac_objext \
14491 conftest$ac_exeext conftest.$ac_ext
14492 LDFLAGS=$save_LDFLAGS
14493 libdir=$save_libdir
14494
14495fi
14496
14497 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14498
14499 # This implies no fast_install, which is unacceptable.
14500 # Some rework will be needed to allow for fast_install
14501 # before this can be enabled.
14502 hardcode_into_libs=yes
14503
14504 # Append ld.so.conf contents to the search path
14505 if test -f /etc/ld.so.conf; then
14506 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' ' '`
14507 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14508 fi
14509
14510 # We used to test for /lib/ld.so.1 and disable shared libraries on
14511 # powerpc, because MkLinux only supported shared libraries with the
14512 # GNU dynamic linker. Since this was broken with cross compilers,
14513 # most powerpc-linux boxes support dynamic linking these days and
14514 # people can always --disable-shared, the test was removed, and we
14515 # assume the GNU/Linux dynamic linker is in use.
14516 dynamic_linker='GNU/Linux ld.so'
14517 ;;
14518
14519netbsd*)
14520 version_type=sunos
14521 need_lib_prefix=no
14522 need_version=no
14523 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14525 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14526 dynamic_linker='NetBSD (a.out) ld.so'
14527 else
14528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14529 soname_spec='${libname}${release}${shared_ext}$major'
14530 dynamic_linker='NetBSD ld.elf_so'
14531 fi
14532 shlibpath_var=LD_LIBRARY_PATH
14533 shlibpath_overrides_runpath=yes
14534 hardcode_into_libs=yes
14535 ;;
14536
14537newsos6)
14538 version_type=linux
14539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14540 shlibpath_var=LD_LIBRARY_PATH
14541 shlibpath_overrides_runpath=yes
14542 ;;
14543
14544*nto* | *qnx*)
14545 version_type=qnx
14546 need_lib_prefix=no
14547 need_version=no
14548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14549 soname_spec='${libname}${release}${shared_ext}$major'
14550 shlibpath_var=LD_LIBRARY_PATH
14551 shlibpath_overrides_runpath=no
14552 hardcode_into_libs=yes
14553 dynamic_linker='ldqnx.so'
14554 ;;
14555
14556openbsd*)
14557 version_type=sunos
14558 sys_lib_dlsearch_path_spec="/usr/lib"
14559 need_lib_prefix=no
14560 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14561 case $host_os in
14562 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14563 *) need_version=no ;;
14564 esac
14565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14566 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14567 shlibpath_var=LD_LIBRARY_PATH
14568 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14569 case $host_os in
14570 openbsd2.[89] | openbsd2.[89].*)
14571 shlibpath_overrides_runpath=no
14572 ;;
14573 *)
14574 shlibpath_overrides_runpath=yes
14575 ;;
14576 esac
14577 else
14578 shlibpath_overrides_runpath=yes
14579 fi
14580 ;;
14581
14582os2*)
14583 libname_spec='$name'
14584 shrext_cmds=".dll"
14585 need_lib_prefix=no
14586 library_names_spec='$libname${shared_ext} $libname.a'
14587 dynamic_linker='OS/2 ld.exe'
14588 shlibpath_var=LIBPATH
14589 ;;
14590
14591osf3* | osf4* | osf5*)
14592 version_type=osf
14593 need_lib_prefix=no
14594 need_version=no
14595 soname_spec='${libname}${release}${shared_ext}$major'
14596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14597 shlibpath_var=LD_LIBRARY_PATH
14598 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14599 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14600 ;;
14601
14602rdos*)
14603 dynamic_linker=no
14604 ;;
14605
14606solaris*)
14607 version_type=linux
14608 need_lib_prefix=no
14609 need_version=no
14610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14611 soname_spec='${libname}${release}${shared_ext}$major'
14612 shlibpath_var=LD_LIBRARY_PATH
14613 shlibpath_overrides_runpath=yes
14614 hardcode_into_libs=yes
14615 # ldd complains unless libraries are executable
14616 postinstall_cmds='chmod +x $lib'
14617 ;;
14618
14619sunos4*)
14620 version_type=sunos
14621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14622 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14623 shlibpath_var=LD_LIBRARY_PATH
14624 shlibpath_overrides_runpath=yes
14625 if test "$with_gnu_ld" = yes; then
14626 need_lib_prefix=no
14627 fi
14628 need_version=yes
14629 ;;
14630
14631sysv4 | sysv4.3*)
14632 version_type=linux
14633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14634 soname_spec='${libname}${release}${shared_ext}$major'
14635 shlibpath_var=LD_LIBRARY_PATH
14636 case $host_vendor in
14637 sni)
14638 shlibpath_overrides_runpath=no
14639 need_lib_prefix=no
14640 runpath_var=LD_RUN_PATH
14641 ;;
14642 siemens)
14643 need_lib_prefix=no
14644 ;;
14645 motorola)
14646 need_lib_prefix=no
14647 need_version=no
14648 shlibpath_overrides_runpath=no
14649 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14650 ;;
14651 esac
14652 ;;
14653
14654sysv4*MP*)
14655 if test -d /usr/nec ;then
14656 version_type=linux
14657 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14658 soname_spec='$libname${shared_ext}.$major'
14659 shlibpath_var=LD_LIBRARY_PATH
14660 fi
14661 ;;
14662
14663sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14664 version_type=freebsd-elf
14665 need_lib_prefix=no
14666 need_version=no
14667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14668 soname_spec='${libname}${release}${shared_ext}$major'
14669 shlibpath_var=LD_LIBRARY_PATH
14670 shlibpath_overrides_runpath=yes
14671 hardcode_into_libs=yes
14672 if test "$with_gnu_ld" = yes; then
14673 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14674 else
14675 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14676 case $host_os in
14677 sco3.2v5*)
14678 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14679 ;;
14680 esac
14681 fi
14682 sys_lib_dlsearch_path_spec='/usr/lib'
14683 ;;
14684
14685tpf*)
14686 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14687 version_type=linux
14688 need_lib_prefix=no
14689 need_version=no
14690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14691 shlibpath_var=LD_LIBRARY_PATH
14692 shlibpath_overrides_runpath=no
14693 hardcode_into_libs=yes
14694 ;;
14695
14696uts4*)
14697 version_type=linux
14698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14699 soname_spec='${libname}${release}${shared_ext}$major'
14700 shlibpath_var=LD_LIBRARY_PATH
14701 ;;
14702
14703*)
14704 dynamic_linker=no
14705 ;;
14706esac
14707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14708$as_echo "$dynamic_linker" >&6; }
14709test "$dynamic_linker" = no && can_build_shared=no
14710
14711variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14712if test "$GCC" = yes; then
14713 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14714fi
14715
14716if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14717 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14718fi
14719if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14720 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14721fi
14722
3725885a 14723
ce2cded5 14724
ce2cded5 14725
ce2cded5 14726
d7040cdb 14727
ce2cded5 14728
ce2cded5 14729
ce2cded5 14730
d7040cdb 14731
ce2cded5
L
14732
14733
14734
14735
14736
14737
14738
14739
14740
14741
14742
14743
14744
14745
14746
14747
ce2cded5
L
14748
14749
14750
14751
14752
14753
14754
14755
14756
14757
14758
14759
b879806f
AM
14760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14761$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14762hardcode_action_CXX=
14763if test -n "$hardcode_libdir_flag_spec_CXX" ||
14764 test -n "$runpath_var_CXX" ||
14765 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14766
14767 # We can hardcode non-existent directories.
14768 if test "$hardcode_direct_CXX" != no &&
14769 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14770 # have to relink, otherwise we might link with an installed library
14771 # when we should be linking with a yet-to-be-installed one
14772 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14773 test "$hardcode_minus_L_CXX" != no; then
14774 # Linking always hardcodes the temporary library directory.
14775 hardcode_action_CXX=relink
14776 else
14777 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14778 hardcode_action_CXX=immediate
14779 fi
14780else
14781 # We cannot hardcode anything, or else we can only hardcode existing
14782 # directories.
14783 hardcode_action_CXX=unsupported
14784fi
14785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14786$as_echo "$hardcode_action_CXX" >&6; }
14787
14788if test "$hardcode_action_CXX" = relink ||
14789 test "$inherit_rpath_CXX" = yes; then
14790 # Fast installation is not supported
14791 enable_fast_install=no
14792elif test "$shlibpath_overrides_runpath" = yes ||
14793 test "$enable_shared" = no; then
14794 # Fast installation is not necessary
14795 enable_fast_install=needless
14796fi
14797
14798
14799
14800
14801
14802
14803
14804 fi # test -n "$compiler"
14805
14806 CC=$lt_save_CC
14807 LDCXX=$LD
14808 LD=$lt_save_LD
14809 GCC=$lt_save_GCC
14810 with_gnu_ld=$lt_save_with_gnu_ld
14811 lt_cv_path_LDCXX=$lt_cv_path_LD
14812 lt_cv_path_LD=$lt_save_path_LD
14813 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14814 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14815fi # test "$_lt_caught_CXX_error" != yes
14816
14817ac_ext=c
14818ac_cpp='$CPP $CPPFLAGS'
14819ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14820ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14821ac_compiler_gnu=$ac_cv_c_compiler_gnu
14822
14823
14824
14825
14826
14827
14828
14829
14830
14831
14832
14833
14834
14835 ac_config_commands="$ac_config_commands libtool"
14836
14837
14838
14839
14840# Only expand once:
14841
14842
14843
14844# The tests for host and target for $enable_largefile require
14845# canonical names.
14846
14847
14848
14849# As the $enable_largefile decision depends on --enable-plugins we must set it
14850# even in directories otherwise not depending on the $plugins option.
14851
14852
14853 maybe_plugins=no
14854 for ac_header in dlfcn.h
14855do :
14856 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
14857"
d0ac1c44 14858if test "x$ac_cv_header_dlfcn_h" = xyes; then :
b879806f
AM
14859 cat >>confdefs.h <<_ACEOF
14860#define HAVE_DLFCN_H 1
14861_ACEOF
14862 maybe_plugins=yes
14863fi
14864
14865done
14866
14867 for ac_header in windows.h
14868do :
14869 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
14870"
d0ac1c44 14871if test "x$ac_cv_header_windows_h" = xyes; then :
b879806f
AM
14872 cat >>confdefs.h <<_ACEOF
14873#define HAVE_WINDOWS_H 1
14874_ACEOF
14875 maybe_plugins=yes
14876fi
14877
14878done
14879
14880
14881 # Check whether --enable-plugins was given.
14882if test "${enable_plugins+set}" = set; then :
14883 enableval=$enable_plugins; case "${enableval}" in
14884 no) plugins=no ;;
14885 *) plugins=yes
14886 if test "$maybe_plugins" != "yes" ; then
d0ac1c44 14887 as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
b879806f
AM
14888 fi ;;
14889 esac
14890else
14891 plugins=$maybe_plugins
14892
14893fi
14894
2974be62 14895 if test "$plugins" = "yes"; then
3cba8b6c
L
14896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
14897$as_echo_n "checking for library containing dlsym... " >&6; }
d0ac1c44 14898if ${ac_cv_search_dlsym+:} false; then :
2974be62
AM
14899 $as_echo_n "(cached) " >&6
14900else
14901 ac_func_search_save_LIBS=$LIBS
14902cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14903/* end confdefs.h. */
14904
14905/* Override any GCC internal prototype to avoid an error.
14906 Use char because int might match the return type of a GCC
14907 builtin and then its argument prototype would still apply. */
14908#ifdef __cplusplus
14909extern "C"
14910#endif
3cba8b6c 14911char dlsym ();
2974be62
AM
14912int
14913main ()
14914{
3cba8b6c 14915return dlsym ();
2974be62
AM
14916 ;
14917 return 0;
14918}
14919_ACEOF
14920for ac_lib in '' dl; do
14921 if test -z "$ac_lib"; then
14922 ac_res="none required"
14923 else
14924 ac_res=-l$ac_lib
14925 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14926 fi
14927 if ac_fn_c_try_link "$LINENO"; then :
3cba8b6c 14928 ac_cv_search_dlsym=$ac_res
2974be62
AM
14929fi
14930rm -f core conftest.err conftest.$ac_objext \
14931 conftest$ac_exeext
d0ac1c44 14932 if ${ac_cv_search_dlsym+:} false; then :
2974be62
AM
14933 break
14934fi
14935done
d0ac1c44 14936if ${ac_cv_search_dlsym+:} false; then :
2974be62
AM
14937
14938else
3cba8b6c 14939 ac_cv_search_dlsym=no
2974be62
AM
14940fi
14941rm conftest.$ac_ext
14942LIBS=$ac_func_search_save_LIBS
14943fi
3cba8b6c
L
14944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
14945$as_echo "$ac_cv_search_dlsym" >&6; }
14946ac_res=$ac_cv_search_dlsym
2974be62
AM
14947if test "$ac_res" != no; then :
14948 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14949
14950fi
14951
14952 fi
b879806f
AM
14953
14954
14955case "${host}" in
c8693053
RO
14956 sparc-*-solaris*|i?86-*-solaris*)
14957 # On native 32-bit Solaris/SPARC and x86, large-file and procfs support
14958 # were mutually exclusive until Solaris 11.3. Without procfs support,
14959 # the bfd/ elf module cannot provide certain routines such as
14960 # elfcore_write_prpsinfo or elfcore_write_prstatus. So unless the user
14961 # explicitly requested large-file support through the
14962 # --enable-largefile switch, disable large-file support in favor of
14963 # procfs support.
14964 #
14965 # Check if <sys/procfs.h> is incompatible with large-file support.
14966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14967/* end confdefs.h. */
14968#define _FILE_OFFSET_BITS 64
14969#define _STRUCTURED_PROC 1
14970#include <sys/procfs.h>
14971int
14972main ()
14973{
14974
14975 ;
14976 return 0;
14977}
14978_ACEOF
14979if ac_fn_c_try_compile "$LINENO"; then :
14980 acx_cv_procfs_lfs=yes
14981else
14982 acx_cv_procfs_lfs=no
14983fi
14984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14985 #
14986 # Forcefully disable large-file support only if necessary, gdb is in
14987 # tree and enabled.
14988 if test "${target}" = "${host}" -a "$acx_cv_procfs_lfs" = no \
14989 -a -d $srcdir/../gdb -a "$enable_gdb" != no; then
14990 : ${enable_largefile="no"}
14991 if test "$plugins" = yes; then
14992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
14993plugin support disabled; require large-file support which is incompatible with GDB." >&5
14994$as_echo "$as_me: WARNING:
14995plugin support disabled; require large-file support which is incompatible with GDB." >&2;}
14996 plugins=no
14997 fi
14998 fi
14999 #
15000 # Explicitly undef _FILE_OFFSET_BITS if enable_largefile=no for the
15001 # benefit of g++ 9+ which predefines it on Solaris.
15002 if test "$enable_largefile" = no; then
15003 LARGEFILE_CPPFLAGS="-U_FILE_OFFSET_BITS"
15004
15005 fi
b879806f
AM
15006 ;;
15007esac
15008
15009# Check whether --enable-largefile was given.
15010if test "${enable_largefile+set}" = set; then :
15011 enableval=$enable_largefile;
15012fi
15013
15014if test "$enable_largefile" != no; then
15015
15016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
15017$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
d0ac1c44 15018if ${ac_cv_sys_largefile_CC+:} false; then :
b879806f
AM
15019 $as_echo_n "(cached) " >&6
15020else
15021 ac_cv_sys_largefile_CC=no
15022 if test "$GCC" != yes; then
15023 ac_save_CC=$CC
15024 while :; do
15025 # IRIX 6.2 and later do not support large files by default,
15026 # so use the C compiler's -n32 option if that helps.
15027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15028/* end confdefs.h. */
15029#include <sys/types.h>
15030 /* Check that off_t can represent 2**63 - 1 correctly.
15031 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15032 since some C++ compilers masquerading as C compilers
15033 incorrectly reject 9223372036854775807. */
e0b2a78c 15034#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
b879806f
AM
15035 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15036 && LARGE_OFF_T % 2147483647 == 1)
15037 ? 1 : -1];
15038int
15039main ()
15040{
15041
15042 ;
15043 return 0;
15044}
15045_ACEOF
15046 if ac_fn_c_try_compile "$LINENO"; then :
15047 break
15048fi
15049rm -f core conftest.err conftest.$ac_objext
15050 CC="$CC -n32"
15051 if ac_fn_c_try_compile "$LINENO"; then :
15052 ac_cv_sys_largefile_CC=' -n32'; break
15053fi
15054rm -f core conftest.err conftest.$ac_objext
15055 break
15056 done
15057 CC=$ac_save_CC
15058 rm -f conftest.$ac_ext
15059 fi
15060fi
15061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
15062$as_echo "$ac_cv_sys_largefile_CC" >&6; }
15063 if test "$ac_cv_sys_largefile_CC" != no; then
15064 CC=$CC$ac_cv_sys_largefile_CC
15065 fi
15066
15067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
15068$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
d0ac1c44 15069if ${ac_cv_sys_file_offset_bits+:} false; then :
b879806f
AM
15070 $as_echo_n "(cached) " >&6
15071else
15072 while :; do
15073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15074/* end confdefs.h. */
15075#include <sys/types.h>
15076 /* Check that off_t can represent 2**63 - 1 correctly.
15077 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15078 since some C++ compilers masquerading as C compilers
15079 incorrectly reject 9223372036854775807. */
e0b2a78c 15080#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
b879806f
AM
15081 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15082 && LARGE_OFF_T % 2147483647 == 1)
15083 ? 1 : -1];
15084int
15085main ()
15086{
15087
15088 ;
15089 return 0;
15090}
15091_ACEOF
15092if ac_fn_c_try_compile "$LINENO"; then :
15093 ac_cv_sys_file_offset_bits=no; break
15094fi
15095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15097/* end confdefs.h. */
15098#define _FILE_OFFSET_BITS 64
15099#include <sys/types.h>
15100 /* Check that off_t can represent 2**63 - 1 correctly.
15101 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15102 since some C++ compilers masquerading as C compilers
15103 incorrectly reject 9223372036854775807. */
e0b2a78c 15104#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
b879806f
AM
15105 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15106 && LARGE_OFF_T % 2147483647 == 1)
15107 ? 1 : -1];
15108int
15109main ()
15110{
15111
15112 ;
15113 return 0;
15114}
15115_ACEOF
15116if ac_fn_c_try_compile "$LINENO"; then :
15117 ac_cv_sys_file_offset_bits=64; break
15118fi
15119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15120 ac_cv_sys_file_offset_bits=unknown
15121 break
15122done
15123fi
15124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
15125$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
15126case $ac_cv_sys_file_offset_bits in #(
15127 no | unknown) ;;
15128 *)
15129cat >>confdefs.h <<_ACEOF
15130#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
15131_ACEOF
15132;;
15133esac
15134rm -rf conftest*
15135 if test $ac_cv_sys_file_offset_bits = unknown; then
15136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
15137$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
d0ac1c44 15138if ${ac_cv_sys_large_files+:} false; then :
b879806f
AM
15139 $as_echo_n "(cached) " >&6
15140else
15141 while :; do
15142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15143/* end confdefs.h. */
15144#include <sys/types.h>
15145 /* Check that off_t can represent 2**63 - 1 correctly.
15146 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15147 since some C++ compilers masquerading as C compilers
15148 incorrectly reject 9223372036854775807. */
e0b2a78c 15149#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
b879806f
AM
15150 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15151 && LARGE_OFF_T % 2147483647 == 1)
15152 ? 1 : -1];
15153int
15154main ()
15155{
15156
15157 ;
15158 return 0;
15159}
15160_ACEOF
15161if ac_fn_c_try_compile "$LINENO"; then :
15162 ac_cv_sys_large_files=no; break
15163fi
15164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15166/* end confdefs.h. */
15167#define _LARGE_FILES 1
15168#include <sys/types.h>
15169 /* Check that off_t can represent 2**63 - 1 correctly.
15170 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15171 since some C++ compilers masquerading as C compilers
15172 incorrectly reject 9223372036854775807. */
e0b2a78c 15173#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
b879806f
AM
15174 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15175 && LARGE_OFF_T % 2147483647 == 1)
15176 ? 1 : -1];
15177int
15178main ()
15179{
15180
15181 ;
15182 return 0;
15183}
15184_ACEOF
15185if ac_fn_c_try_compile "$LINENO"; then :
15186 ac_cv_sys_large_files=1; break
15187fi
15188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15189 ac_cv_sys_large_files=unknown
15190 break
15191done
15192fi
15193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
15194$as_echo "$ac_cv_sys_large_files" >&6; }
15195case $ac_cv_sys_large_files in #(
15196 no | unknown) ;;
15197 *)
15198cat >>confdefs.h <<_ACEOF
15199#define _LARGE_FILES $ac_cv_sys_large_files
15200_ACEOF
15201;;
15202esac
15203rm -rf conftest*
15204 fi
d0ac1c44
SM
15205
15206
b879806f
AM
15207fi
15208
15209
15210
43e05cd4
AM
15211ac_checking=
15212. ${srcdir}/../bfd/development.sh
15213test "$development" = true && ac_checking=yes
15214# Check whether --enable-checking was given.
15215if test "${enable_checking+set}" = set; then :
15216 enableval=$enable_checking; case "${enableval}" in
15217 no|none) ac_checking= ;;
15218 *) ac_checking=yes ;;
15219esac
15220fi
15221if test x$ac_checking != x ; then
15222
15223$as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
15224
15225fi
15226
b879806f
AM
15227
15228# Check whether --with-lib-path was given.
15229if test "${with_lib_path+set}" = set; then :
15230 withval=$with_lib_path; LIB_PATH=$withval
15231fi
15232
15233# Check whether --enable-targets was given.
15234if test "${enable_targets+set}" = set; then :
15235 enableval=$enable_targets; case "${enableval}" in
d0ac1c44 15236 yes | "") as_fn_error $? "enable-targets option must specify target names or 'all'" "$LINENO" 5
6c19b93b 15237 ;;
b879806f
AM
15238 no) enable_targets= ;;
15239 *) enable_targets=$enableval ;;
15240esac
15241fi
1d5269c9 15242
b879806f
AM
15243# Check whether --enable-64-bit-bfd was given.
15244if test "${enable_64_bit_bfd+set}" = set; then :
1d5269c9
MF
15245 enableval=$enable_64_bit_bfd; case $enableval in #(
15246 yes|no) :
15247 ;; #(
15248 *) :
15249 as_fn_error $? "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;; #(
15250 *) :
15251 ;;
b879806f
AM
15252esac
15253else
1d5269c9
MF
15254 enable_64_bit_bfd=no
15255fi
15256
15257
15258if test "x$enable_64_bit_bfd" = "xno"; then :
15259 # The cast to long int works around a bug in the HP C Compiler
15260# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15261# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15262# This bug is HP SR number 8606223364.
15263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15264$as_echo_n "checking size of void *... " >&6; }
15265if ${ac_cv_sizeof_void_p+:} false; then :
15266 $as_echo_n "(cached) " >&6
15267else
15268 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
15269
15270else
15271 if test "$ac_cv_type_void_p" = yes; then
15272 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15273$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15274as_fn_error 77 "cannot compute sizeof (void *)
15275See \`config.log' for more details" "$LINENO" 5; }
15276 else
15277 ac_cv_sizeof_void_p=0
15278 fi
15279fi
15280
15281fi
15282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15283$as_echo "$ac_cv_sizeof_void_p" >&6; }
15284
15285
15286
15287cat >>confdefs.h <<_ACEOF
15288#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15289_ACEOF
15290
15291
15292 if test "x$ac_cv_sizeof_void_p" = "x8"; then :
15293 enable_64_bit_bfd=yes
b879806f
AM
15294fi
15295
1d5269c9
MF
15296fi
15297
15298 if test "x$enable_64_bit_bfd" = "xyes"; then
15299 ENABLE_BFD_64_BIT_TRUE=
15300 ENABLE_BFD_64_BIT_FALSE='#'
15301else
15302 ENABLE_BFD_64_BIT_TRUE='#'
15303 ENABLE_BFD_64_BIT_FALSE=
15304fi
15305
15306
15307
b879806f
AM
15308
15309# Check whether --with-sysroot was given.
15310if test "${with_sysroot+set}" = set; then :
15311 withval=$with_sysroot;
15312 case ${with_sysroot} in
15313 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
15314 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
15315 esac
15316
15317 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
15318 use_sysroot=yes
15319
15320 if test "x$prefix" = xNONE; then
15321 test_prefix=/usr/local
15322 else
15323 test_prefix=$prefix
15324 fi
15325 if test "x$exec_prefix" = xNONE; then
15326 test_exec_prefix=$test_prefix
15327 else
15328 test_exec_prefix=$exec_prefix
15329 fi
15330 case ${TARGET_SYSTEM_ROOT} in
15331 "${test_prefix}"|"${test_prefix}/"*|\
15332 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
15333 '${prefix}'|'${prefix}/'*|\
15334 '${exec_prefix}'|'${exec_prefix}/'*)
15335 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
15336 TARGET_SYSTEM_ROOT_DEFINE="$t"
15337 ;;
15338 esac
15339
15340else
15341
15342 use_sysroot=no
15343 TARGET_SYSTEM_ROOT=
15344 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
15345
15346fi
15347
15348
15349
15350
15351
15352# Check whether --enable-gold was given.
15353if test "${enable_gold+set}" = set; then :
15354 enableval=$enable_gold; case "${enableval}" in
15355 default)
15356 install_as_default=no
15357 installed_linker=ld.bfd
15358 ;;
15359 yes|no)
15360 install_as_default=yes
15361 installed_linker=ld.bfd
15362 ;;
15363 *)
d0ac1c44 15364 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
b879806f
AM
15365 ;;
15366 esac
15367else
15368 install_as_default=yes
15369 installed_linker=ld.bfd
15370fi
15371
15372
15373
15374
15375# Check whether --enable-got was given.
15376if test "${enable_got+set}" = set; then :
15377 enableval=$enable_got; case "${enableval}" in
15378 target | single | negative | multigot) got_handling=$enableval ;;
d0ac1c44 15379 *) as_fn_error $? "bad value ${enableval} for --enable-got option" "$LINENO" 5 ;;
b879806f
AM
15380esac
15381else
15382 got_handling=target
15383fi
15384
15385
15386case "${got_handling}" in
15387 target)
15388
15389$as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_TARGET_DEFAULT" >>confdefs.h
15390 ;;
15391 single)
15392
15393$as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_SINGLE" >>confdefs.h
15394 ;;
15395 negative)
15396
15397$as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_NEGATIVE" >>confdefs.h
15398 ;;
15399 multigot)
15400
15401$as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_MULTIGOT" >>confdefs.h
15402 ;;
d0ac1c44 15403 *) as_fn_error $? "bad value ${got_handling} for --enable-got option" "$LINENO" 5 ;;
b879806f
AM
15404esac
15405
6c3bc0f8
NC
15406# PR gas/19109
15407# Decide the default method for compressing debug sections.
15408ac_default_compressed_debug_sections=unset
15409# Provide a configure time option to override our default.
15410# Check whether --enable-compressed_debug_sections was given.
15411if test "${enable_compressed_debug_sections+set}" = set; then :
4894d80b 15412 enableval=$enable_compressed_debug_sections; case ,"${enableval}", in
9b4c123c 15413 ,yes, | ,all, | *,ld,*) ac_default_compressed_debug_sections=yes ;;
4894d80b 15414 ,no, | ,none,) ac_default_compressed_debug_sections=no ;;
6c3bc0f8
NC
15415esac
15416fi
15417
6734f10a
SB
15418# Decide setting DT_RUNPATH instead of DT_RPATH by default
15419ac_default_new_dtags=unset
15420# Provide a configure time option to override our default.
15421# Check whether --enable-new_dtags was given.
15422if test "${enable_new_dtags+set}" = set; then :
15423 enableval=$enable_new_dtags; case "${enableval}" in
15424 yes) ac_default_new_dtags=1 ;;
15425 no) ac_default_new_dtags=0 ;;
15426esac
15427fi
15428
647e4d46
L
15429# Decide if -z relro should be enabled in ELF linker by default.
15430ac_default_ld_z_relro=unset
15431# Provide a configure time option to override our default.
15432# Check whether --enable-relro was given.
15433if test "${enable_relro+set}" = set; then :
15434 enableval=$enable_relro; case "${enableval}" in
15435 yes) ac_default_ld_z_relro=1 ;;
15436 no) ac_default_ld_z_relro=0 ;;
15437esac
15438fi
15439
b32632c4
L
15440# Decide if DT_TEXTREL check should be enabled in ELF linker.
15441ac_default_ld_textrel_check=unset
15442# Check whether --enable-textrel-check was given.
15443if test "${enable_textrel_check+set}" = set; then :
15444 enableval=$enable_textrel_check; case "${enableval}" in
15445 yes|no|warning|error) ac_default_ld_textrel_check=${enableval} ;;
15446esac
15447fi
15448
15449
f6aec96d
L
15450# Decide if -z separate-code should be enabled in ELF linker by default.
15451ac_default_ld_z_separate_code=unset
15452# Check whether --enable-separate-code was given.
15453if test "${enable_separate_code+set}" = set; then :
15454 enableval=$enable_separate_code; case "${enableval}" in
15455 yes) ac_default_ld_z_separate_code=1 ;;
15456 no) ac_default_ld_z_separate_code=0 ;;
15457esac
15458fi
15459
15460
ba951afb 15461
bd7d326d
AM
15462# By default warn when an executable stack is created due to object files
15463# requesting such, not when the user specifies -z execstack.
ed1c7ad8 15464ac_default_ld_warn_execstack=2
ba951afb
NC
15465# Check whether --enable-warn-execstack was given.
15466if test "${enable_warn_execstack+set}" = set; then :
15467 enableval=$enable_warn_execstack; case "${enableval}" in
15468 yes) ac_default_ld_warn_execstack=1 ;;
bd7d326d 15469 no) ac_default_ld_warn_execstack=0 ;;
ba951afb
NC
15470esac
15471fi
15472
15473
15474ac_default_ld_warn_rwx_segments=unset
15475# Check whether --enable-warn-rwx-segments was given.
15476if test "${enable_warn_rwx_segments+set}" = set; then :
15477 enableval=$enable_warn_rwx_segments; case "${enableval}" in
15478 yes) ac_default_ld_warn_rwx_segments=1 ;;
15479 no) ac_default_ld_warn_rwx_segments=0 ;;
15480esac
15481fi
15482
15483
15484ac_default_ld_default_execstack=unset
15485# Check whether --enable-default-execstack was given.
15486if test "${enable_default_execstack+set}" = set; then :
15487 enableval=$enable_default_execstack; case "${enableval}" in
15488 yes) ac_default_ld_default_execstack=1 ;;
15489 no) ac_default_ld_default_execstack=0 ;;
15490esac
15491fi
15492
15493
15494
23ae20f5
NC
15495# Decide if --error-handling-script should be supported.
15496ac_support_error_handling_script=unset
15497# Check whether --enable-error-handling-script was given.
15498if test "${enable_error_handling_script+set}" = set; then :
15499 enableval=$enable_error_handling_script; case "${enableval}" in
15500 yes) ac_support_error_handling_script=1 ;;
15501 no) ac_support_error_handling_script=0 ;;
15502esac
15503fi
15504
15505
2760f24c
RG
15506# Decide which "--hash-style" to use by default
15507# Provide a configure time option to override our default.
15508# Check whether --enable-default-hash-style was given.
15509if test "${enable_default_hash_style+set}" = set; then :
15510 enableval=$enable_default_hash_style; case "${enable_default_hash_style}" in
15511 sysv | gnu | both) ;;
d0ac1c44 15512 *) as_fn_error $? "bad value ${enable_default_hash_style} for enable-default-hash-style option" "$LINENO" 5 ;;
2760f24c
RG
15513esac
15514else
15515 case "${target}" in
15516 # Enable gnu hash only on GNU targets, but not mips
15517 mips*-*-*) enable_default_hash_style=sysv ;;
15518 *-*-gnu* | *-*-linux* | *-*-nacl*) enable_default_hash_style=both ;;
15519 *) enable_default_hash_style=sysv ;;
15520esac
15521fi
15522
15523
15524case "${enable_default_hash_style}" in
15525 sysv | both) ac_default_emit_sysv_hash=1 ;;
15526 *) ac_default_emit_sysv_hash=0 ;;
15527esac
15528
15529case "${enable_default_hash_style}" in
15530 gnu | both) ac_default_emit_gnu_hash=1 ;;
15531 *) ac_default_emit_gnu_hash=0 ;;
15532esac
15533
c774eab1
AM
15534# Check whether --enable-initfini-array was given.
15535if test "${enable_initfini_array+set}" = set; then :
15536 enableval=$enable_initfini_array; case "${enableval}" in
15537 yes|no) ;;
15538 *) as_fn_error $? "invalid --enable-initfini-array argument" "$LINENO" 5 ;;
15539 esac
15540else
15541 enable_initfini_array=yes
15542fi
15543
15544
15545if test $enable_initfini_array = yes; then
15546
15547$as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
15548
15549fi
15550
094e34f2
NA
15551 # Check whether --enable-libctf was given.
15552if test "${enable_libctf+set}" = set; then :
15553 enableval=$enable_libctf;
15554 case "$enableval" in
15555 yes|no) ;;
15556 *) as_fn_error $? "Argument to enable/disable libctf must be yes or no" "$LINENO" 5 ;;
15557 esac
15558
15559else
15560 enable_libctf=yes
15561fi
15562
15563
15564if test "${enable_libctf}" = yes; then
15565
15566$as_echo "#define ENABLE_LIBCTF 1" >>confdefs.h
15567
15568fi
15569 if test "${enable_libctf}" = yes; then
15570 ENABLE_LIBCTF_TRUE=
15571 ENABLE_LIBCTF_FALSE='#'
15572else
15573 ENABLE_LIBCTF_TRUE='#'
15574 ENABLE_LIBCTF_FALSE=
15575fi
15576
15577
b879806f 15578
9e2bb0cb
LB
15579# Used to validate --package-metadata= input. Disabled by default.
15580# Check whether --enable-jansson was given.
15581if test "${enable_jansson+set}" = set; then :
15582 enableval=$enable_jansson; enable_jansson=$enableval
15583else
15584 enable_jansson="no"
15585fi
15586
15587
15588if test "x$enable_jansson" != "xno"; then
15589
15590
15591
15592
15593
15594
15595
15596if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
15597 if test -n "$ac_tool_prefix"; then
15598 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
15599set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
15600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15601$as_echo_n "checking for $ac_word... " >&6; }
15602if ${ac_cv_path_PKG_CONFIG+:} false; then :
15603 $as_echo_n "(cached) " >&6
15604else
15605 case $PKG_CONFIG in
15606 [\\/]* | ?:[\\/]*)
15607 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
15608 ;;
15609 *)
15610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15611for as_dir in $PATH
15612do
15613 IFS=$as_save_IFS
15614 test -z "$as_dir" && as_dir=.
15615 for ac_exec_ext in '' $ac_executable_extensions; do
15616 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15617 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15619 break 2
15620 fi
15621done
15622 done
15623IFS=$as_save_IFS
15624
15625 ;;
15626esac
15627fi
15628PKG_CONFIG=$ac_cv_path_PKG_CONFIG
15629if test -n "$PKG_CONFIG"; then
15630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
15631$as_echo "$PKG_CONFIG" >&6; }
15632else
15633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15634$as_echo "no" >&6; }
15635fi
15636
15637
15638fi
15639if test -z "$ac_cv_path_PKG_CONFIG"; then
15640 ac_pt_PKG_CONFIG=$PKG_CONFIG
15641 # Extract the first word of "pkg-config", so it can be a program name with args.
15642set dummy pkg-config; ac_word=$2
15643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15644$as_echo_n "checking for $ac_word... " >&6; }
15645if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
15646 $as_echo_n "(cached) " >&6
15647else
15648 case $ac_pt_PKG_CONFIG in
15649 [\\/]* | ?:[\\/]*)
15650 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
15651 ;;
15652 *)
15653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15654for as_dir in $PATH
15655do
15656 IFS=$as_save_IFS
15657 test -z "$as_dir" && as_dir=.
15658 for ac_exec_ext in '' $ac_executable_extensions; do
15659 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15660 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15662 break 2
15663 fi
15664done
15665 done
15666IFS=$as_save_IFS
15667
15668 ;;
15669esac
15670fi
15671ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
15672if test -n "$ac_pt_PKG_CONFIG"; then
15673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
15674$as_echo "$ac_pt_PKG_CONFIG" >&6; }
15675else
15676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15677$as_echo "no" >&6; }
15678fi
15679
15680 if test "x$ac_pt_PKG_CONFIG" = x; then
15681 PKG_CONFIG=""
15682 else
15683 case $cross_compiling:$ac_tool_warned in
15684yes:)
15685{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15686$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15687ac_tool_warned=yes ;;
15688esac
15689 PKG_CONFIG=$ac_pt_PKG_CONFIG
15690 fi
15691else
15692 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
15693fi
15694
15695fi
15696if test -n "$PKG_CONFIG"; then
15697 _pkg_min_version=0.9.0
15698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
15699$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
15700 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
15701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15702$as_echo "yes" >&6; }
15703 else
15704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15705$as_echo "no" >&6; }
15706 PKG_CONFIG=""
15707 fi
15708fi
15709 if test -n "$PKG_CONFIG"; then :
15710
15711
15712pkg_failed=no
15713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for jansson" >&5
15714$as_echo_n "checking for jansson... " >&6; }
15715
15716if test -n "$JANSSON_CFLAGS"; then
15717 pkg_cv_JANSSON_CFLAGS="$JANSSON_CFLAGS"
15718 elif test -n "$PKG_CONFIG"; then
15719 if test -n "$PKG_CONFIG" && \
15720 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jansson\""; } >&5
15721 ($PKG_CONFIG --exists --print-errors "jansson") 2>&5
15722 ac_status=$?
15723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15724 test $ac_status = 0; }; then
15725 pkg_cv_JANSSON_CFLAGS=`$PKG_CONFIG --cflags "jansson" 2>/dev/null`
15726 test "x$?" != "x0" && pkg_failed=yes
15727else
15728 pkg_failed=yes
15729fi
15730 else
15731 pkg_failed=untried
15732fi
15733if test -n "$JANSSON_LIBS"; then
15734 pkg_cv_JANSSON_LIBS="$JANSSON_LIBS"
15735 elif test -n "$PKG_CONFIG"; then
15736 if test -n "$PKG_CONFIG" && \
15737 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jansson\""; } >&5
15738 ($PKG_CONFIG --exists --print-errors "jansson") 2>&5
15739 ac_status=$?
15740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15741 test $ac_status = 0; }; then
15742 pkg_cv_JANSSON_LIBS=`$PKG_CONFIG --libs "jansson" 2>/dev/null`
15743 test "x$?" != "x0" && pkg_failed=yes
15744else
15745 pkg_failed=yes
15746fi
15747 else
15748 pkg_failed=untried
15749fi
15750
15751if test $pkg_failed = no; then
15752 pkg_save_LDFLAGS="$LDFLAGS"
15753 LDFLAGS="$LDFLAGS $pkg_cv_JANSSON_LIBS"
15754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15755/* end confdefs.h. */
15756
15757int
15758main ()
15759{
15760
15761 ;
15762 return 0;
15763}
15764_ACEOF
15765if ac_fn_c_try_link "$LINENO"; then :
15766
15767else
15768 pkg_failed=yes
15769fi
15770rm -f core conftest.err conftest.$ac_objext \
15771 conftest$ac_exeext conftest.$ac_ext
15772 LDFLAGS=$pkg_save_LDFLAGS
15773fi
15774
15775
15776
15777if test $pkg_failed = yes; then
15778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15779$as_echo "no" >&6; }
15780
15781if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15782 _pkg_short_errors_supported=yes
15783else
15784 _pkg_short_errors_supported=no
15785fi
15786 if test $_pkg_short_errors_supported = yes; then
15787 JANSSON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "jansson" 2>&1`
15788 else
15789 JANSSON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "jansson" 2>&1`
15790 fi
15791 # Put the nasty error message in config.log where it belongs
15792 echo "$JANSSON_PKG_ERRORS" >&5
15793
15794
15795 as_fn_error $? "Cannot find jansson library" "$LINENO" 5
15796
15797elif test $pkg_failed = untried; then
15798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15799$as_echo "no" >&6; }
15800
15801 as_fn_error $? "Cannot find jansson library" "$LINENO" 5
15802
15803else
15804 JANSSON_CFLAGS=$pkg_cv_JANSSON_CFLAGS
15805 JANSSON_LIBS=$pkg_cv_JANSSON_LIBS
15806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15807$as_echo "yes" >&6; }
15808
15809
15810$as_echo "#define HAVE_JANSSON 1" >>confdefs.h
15811
15812
15813
15814
15815fi
15816
15817else
15818
15819 as_fn_error $? "Cannot find pkg-config" "$LINENO" 5
15820
15821fi
15822fi
15823
7cdfc346 15824
b879806f
AM
15825# Set the 'development' global.
15826. $srcdir/../bfd/development.sh
15827
c5da1932
VZ
15828# Set acp_cpp_for_build variable
15829ac_cpp_for_build="$CC_FOR_BUILD -E $CPPFLAGS_FOR_BUILD"
15830
9780e045 15831# Default set of GCC warnings to enable.
b879806f 15832GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
c5da1932 15833GCC_WARN_CFLAGS_FOR_BUILD="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
9780e045
NC
15834
15835# Add -Wshadow if the compiler is a sufficiently recent version of GCC.
b879806f
AM
15836cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15837/* end confdefs.h. */
15838__GNUC__
15839_ACEOF
15840if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3107326d 15841 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
ce2cded5 15842
3cb62297 15843else
b879806f 15844 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
3cb62297 15845fi
b879806f 15846rm -f conftest*
ce2cded5 15847
ce2cded5 15848
9780e045
NC
15849# Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
15850cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15851/* end confdefs.h. */
15852__GNUC__
15853_ACEOF
15854if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3107326d 15855 $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
9780e045
NC
15856
15857else
15858 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144"
15859fi
15860rm -f conftest*
15861
15862
6757cf57
TS
15863# Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings.
15864WARN_WRITE_STRINGS=""
15865cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15866/* end confdefs.h. */
15867__GNUC__
15868_ACEOF
15869if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3107326d 15870 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
6757cf57
TS
15871
15872else
15873 WARN_WRITE_STRINGS="-Wwrite-strings"
15874fi
15875rm -f conftest*
15876
9780e045 15877
96fe4562 15878# Verify CC_FOR_BUILD to be compatible with warning flags
c5da1932
VZ
15879
15880# Add -Wshadow if the compiler is a sufficiently recent version of GCC.
15881cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15882/* end confdefs.h. */
15883__GNUC__
15884_ACEOF
15885if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
3107326d 15886 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
c5da1932
VZ
15887
15888else
15889 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wshadow"
15890fi
15891rm -f conftest*
15892
15893
15894# Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
15895cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15896/* end confdefs.h. */
15897__GNUC__
15898_ACEOF
15899if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
3107326d 15900 $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
c5da1932
VZ
15901
15902else
15903 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wstack-usage=262144"
15904fi
15905rm -f conftest*
15906
15907
b879806f
AM
15908# Check whether --enable-werror was given.
15909if test "${enable_werror+set}" = set; then :
15910 enableval=$enable_werror; case "${enableval}" in
15911 yes | y) ERROR_ON_WARNING="yes" ;;
15912 no | n) ERROR_ON_WARNING="no" ;;
d0ac1c44 15913 *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
b879806f
AM
15914 esac
15915fi
ce2cded5
L
15916
15917
b879806f
AM
15918# Disable -Wformat by default when using gcc on mingw
15919case "${host}" in
15920 *-*-mingw32*)
15921 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
15922 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
c5da1932 15923 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wno-format"
b879806f
AM
15924 fi
15925 ;;
15926 *) ;;
15927esac
ce2cded5 15928
b879806f
AM
15929# Enable -Werror by default when using gcc. Turn it off for releases.
15930if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then
15931 ERROR_ON_WARNING=yes
15932fi
d7040cdb 15933
b879806f
AM
15934NO_WERROR=
15935if test "${ERROR_ON_WARNING}" = yes ; then
9780e045 15936 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
c5da1932 15937 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Werror"
b879806f
AM
15938 NO_WERROR="-Wno-error"
15939fi
3cb62297 15940
b879806f
AM
15941if test "${GCC}" = yes ; then
15942 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
c5da1932 15943 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}"
b879806f 15944fi
67310ccd 15945
b879806f
AM
15946# Check whether --enable-build-warnings was given.
15947if test "${enable_build_warnings+set}" = set; then :
15948 enableval=$enable_build_warnings; case "${enableval}" in
c5da1932
VZ
15949 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}"
15950 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}";;
b879806f
AM
15951 no) if test "${GCC}" = yes ; then
15952 WARN_CFLAGS="-w"
c5da1932 15953 WARN_CFLAGS_FOR_BUILD="-w"
b879806f
AM
15954 fi;;
15955 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
c5da1932
VZ
15956 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}"
15957 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD} ${t}";;
b879806f 15958 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
c5da1932
VZ
15959 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}"
15960 WARN_CFLAGS_FOR_BUILD="${t} ${GCC_WARN_CFLAGS_FOR_BUILD}";;
15961 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`
15962 WARN_CFLAGS_FOR_BUILD=`echo "${enableval}" | sed -e "s/,/ /g"`;;
b879806f
AM
15963esac
15964fi
67310ccd 15965
d7040cdb 15966
b879806f
AM
15967if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
15968 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
15969fi
d7040cdb 15970
d7040cdb 15971
d7040cdb 15972
d7040cdb 15973
ce2cded5
L
15974
15975
6757cf57 15976
c5da1932 15977
b879806f
AM
15978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
15979$as_echo_n "checking for LC_MESSAGES... " >&6; }
d0ac1c44 15980if ${am_cv_val_LC_MESSAGES+:} false; then :
b879806f
AM
15981 $as_echo_n "(cached) " >&6
15982else
15983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15984/* end confdefs.h. */
15985#include <locale.h>
15986int
15987main ()
15988{
15989return LC_MESSAGES
15990 ;
15991 return 0;
15992}
15993_ACEOF
15994if ac_fn_c_try_link "$LINENO"; then :
15995 am_cv_val_LC_MESSAGES=yes
15996else
15997 am_cv_val_LC_MESSAGES=no
15998fi
15999rm -f core conftest.err conftest.$ac_objext \
16000 conftest$ac_exeext conftest.$ac_ext
16001fi
16002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
16003$as_echo "$am_cv_val_LC_MESSAGES" >&6; }
16004 if test $am_cv_val_LC_MESSAGES = yes; then
ce2cded5 16005
b879806f 16006$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
ce2cded5 16007
b879806f 16008 fi
ce2cded5 16009
ce2cded5 16010
b879806f 16011ac_config_headers="$ac_config_headers config.h:config.in"
ce2cded5
L
16012
16013
b879806f 16014# PR 14072
ce2cded5 16015
ce2cded5 16016
b879806f 16017if test -z "$target" ; then
d0ac1c44 16018 as_fn_error $? "Unrecognized target system type; please check config.sub." "$LINENO" 5
b879806f
AM
16019fi
16020if test -z "$host" ; then
d0ac1c44 16021 as_fn_error $? "Unrecognized host system type; please check config.sub." "$LINENO" 5
b879806f 16022fi
d7040cdb 16023
b879806f 16024# host-specific stuff:
d7040cdb 16025
e184813f 16026ALL_LINGUAS="bg da de es fi fr ga id it ja pt_BR ru sr sv tr uk vi zh_CN zh_TW"
d7040cdb
SE
16027# If we haven't got the data from the intl directory,
16028# assume NLS is disabled.
16029USE_NLS=no
16030LIBINTL=
16031LIBINTL_DEP=
16032INCINTL=
16033XGETTEXT=
16034GMSGFMT=
16035POSUB=
16036
16037if test -f ../intl/config.intl; then
16038 . ../intl/config.intl
16039fi
81ecdfbb
RW
16040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
16041$as_echo_n "checking whether NLS is requested... " >&6; }
d7040cdb 16042if test x"$USE_NLS" != xyes; then
81ecdfbb
RW
16043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16044$as_echo "no" >&6; }
d7040cdb 16045else
81ecdfbb
RW
16046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16047$as_echo "yes" >&6; }
d7040cdb 16048
81ecdfbb 16049$as_echo "#define ENABLE_NLS 1" >>confdefs.h
d7040cdb
SE
16050
16051
81ecdfbb
RW
16052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
16053$as_echo_n "checking for catalogs to be installed... " >&6; }
d7040cdb
SE
16054 # Look for .po and .gmo files in the source directory.
16055 CATALOGS=
16056 XLINGUAS=
16057 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
16058 # If there aren't any .gmo files the shell will give us the
16059 # literal string "../path/to/srcdir/po/*.gmo" which has to be
16060 # weeded out.
16061 case "$cat" in *\**)
16062 continue;;
16063 esac
16064 # The quadruple backslash is collapsed to a double backslash
16065 # by the backticks, then collapsed again by the double quotes,
16066 # leaving us with one backslash in the sed expression (right
16067 # before the dot that mustn't act as a wildcard).
16068 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
16069 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
16070 # The user is allowed to set LINGUAS to a list of languages to
16071 # install catalogs for. If it's empty that means "all of them."
16072 if test "x$LINGUAS" = x; then
16073 CATALOGS="$CATALOGS $cat"
16074 XLINGUAS="$XLINGUAS $lang"
16075 else
16076 case "$LINGUAS" in *$lang*)
16077 CATALOGS="$CATALOGS $cat"
16078 XLINGUAS="$XLINGUAS $lang"
16079 ;;
16080 esac
16081 fi
16082 done
16083 LINGUAS="$XLINGUAS"
81ecdfbb
RW
16084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
16085$as_echo "$LINGUAS" >&6; }
d7040cdb
SE
16086
16087
16088 DATADIRNAME=share
16089
16090 INSTOBJEXT=.mo
16091
16092 GENCAT=gencat
16093
16094 CATOBJEXT=.gmo
16095
16096fi
16097
16098 MKINSTALLDIRS=
16099 if test -n "$ac_aux_dir"; then
16100 case "$ac_aux_dir" in
16101 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
16102 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
16103 esac
16104 fi
16105 if test -z "$MKINSTALLDIRS"; then
16106 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
16107 fi
16108
16109
16110
81ecdfbb
RW
16111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
16112$as_echo_n "checking whether NLS is requested... " >&6; }
16113 # Check whether --enable-nls was given.
16114if test "${enable_nls+set}" = set; then :
16115 enableval=$enable_nls; USE_NLS=$enableval
d7040cdb
SE
16116else
16117 USE_NLS=yes
81ecdfbb
RW
16118fi
16119
16120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
16121$as_echo "$USE_NLS" >&6; }
d7040cdb
SE
16122
16123
16124
16125
16126
16127
16128# Prepare PATH_SEPARATOR.
16129# The user is always right.
16130if test "${PATH_SEPARATOR+set}" != set; then
16131 echo "#! /bin/sh" >conf$$.sh
16132 echo "exit 0" >>conf$$.sh
16133 chmod +x conf$$.sh
16134 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16135 PATH_SEPARATOR=';'
16136 else
16137 PATH_SEPARATOR=:
16138 fi
16139 rm -f conf$$.sh
16140fi
16141
16142# Find out how to test for executable files. Don't use a zero-byte file,
16143# as systems may use methods other than mode bits to determine executability.
16144cat >conf$$.file <<_ASEOF
16145#! /bin/sh
16146exit 0
16147_ASEOF
16148chmod +x conf$$.file
16149if test -x conf$$.file >/dev/null 2>&1; then
16150 ac_executable_p="test -x"
16151else
16152 ac_executable_p="test -f"
16153fi
16154rm -f conf$$.file
16155
16156# Extract the first word of "msgfmt", so it can be a program name with args.
16157set dummy msgfmt; ac_word=$2
81ecdfbb
RW
16158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16159$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 16160if ${ac_cv_path_MSGFMT+:} false; then :
81ecdfbb 16161 $as_echo_n "(cached) " >&6
d7040cdb
SE
16162else
16163 case "$MSGFMT" in
16164 [\\/]* | ?:[\\/]*)
16165 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16166 ;;
16167 *)
16168 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16169 for ac_dir in $PATH; do
16170 IFS="$ac_save_IFS"
16171 test -z "$ac_dir" && ac_dir=.
16172 for ac_exec_ext in '' $ac_executable_extensions; do
16173 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16174 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
16175 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16176 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
16177 break 2
16178 fi
16179 fi
16180 done
16181 done
16182 IFS="$ac_save_IFS"
16183 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
16184 ;;
16185esac
16186fi
16187MSGFMT="$ac_cv_path_MSGFMT"
16188if test "$MSGFMT" != ":"; then
81ecdfbb
RW
16189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
16190$as_echo "$MSGFMT" >&6; }
d7040cdb 16191else
81ecdfbb
RW
16192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16193$as_echo "no" >&6; }
d7040cdb
SE
16194fi
16195
16196 # Extract the first word of "gmsgfmt", so it can be a program name with args.
16197set dummy gmsgfmt; ac_word=$2
81ecdfbb
RW
16198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16199$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 16200if ${ac_cv_path_GMSGFMT+:} false; then :
81ecdfbb 16201 $as_echo_n "(cached) " >&6
d7040cdb
SE
16202else
16203 case $GMSGFMT in
16204 [\\/]* | ?:[\\/]*)
16205 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16206 ;;
16207 *)
16208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16209for as_dir in $PATH
16210do
16211 IFS=$as_save_IFS
16212 test -z "$as_dir" && as_dir=.
81ecdfbb 16213 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 16214 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7040cdb 16215 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 16216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
16217 break 2
16218 fi
16219done
81ecdfbb
RW
16220 done
16221IFS=$as_save_IFS
d7040cdb
SE
16222
16223 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16224 ;;
16225esac
16226fi
16227GMSGFMT=$ac_cv_path_GMSGFMT
d7040cdb 16228if test -n "$GMSGFMT"; then
81ecdfbb
RW
16229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
16230$as_echo "$GMSGFMT" >&6; }
d7040cdb 16231else
81ecdfbb
RW
16232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16233$as_echo "no" >&6; }
20e95c23 16234fi
42ecbf5e 16235
20e95c23 16236
252b5132 16237
81ecdfbb 16238
d7040cdb
SE
16239# Prepare PATH_SEPARATOR.
16240# The user is always right.
16241if test "${PATH_SEPARATOR+set}" != set; then
16242 echo "#! /bin/sh" >conf$$.sh
16243 echo "exit 0" >>conf$$.sh
16244 chmod +x conf$$.sh
16245 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16246 PATH_SEPARATOR=';'
16247 else
16248 PATH_SEPARATOR=:
16249 fi
16250 rm -f conf$$.sh
20e95c23 16251fi
252b5132 16252
d7040cdb
SE
16253# Find out how to test for executable files. Don't use a zero-byte file,
16254# as systems may use methods other than mode bits to determine executability.
16255cat >conf$$.file <<_ASEOF
16256#! /bin/sh
16257exit 0
16258_ASEOF
16259chmod +x conf$$.file
16260if test -x conf$$.file >/dev/null 2>&1; then
16261 ac_executable_p="test -x"
20e95c23 16262else
d7040cdb
SE
16263 ac_executable_p="test -f"
16264fi
16265rm -f conf$$.file
20e95c23 16266
d7040cdb
SE
16267# Extract the first word of "xgettext", so it can be a program name with args.
16268set dummy xgettext; ac_word=$2
81ecdfbb
RW
16269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16270$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 16271if ${ac_cv_path_XGETTEXT+:} false; then :
81ecdfbb 16272 $as_echo_n "(cached) " >&6
252b5132 16273else
d7040cdb
SE
16274 case "$XGETTEXT" in
16275 [\\/]* | ?:[\\/]*)
16276 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16277 ;;
16278 *)
16279 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16280 for ac_dir in $PATH; do
16281 IFS="$ac_save_IFS"
16282 test -z "$ac_dir" && ac_dir=.
16283 for ac_exec_ext in '' $ac_executable_extensions; do
16284 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16285 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16286 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16287 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
16288 break 2
16289 fi
16290 fi
16291 done
16292 done
16293 IFS="$ac_save_IFS"
16294 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16295 ;;
16296esac
252b5132 16297fi
d7040cdb
SE
16298XGETTEXT="$ac_cv_path_XGETTEXT"
16299if test "$XGETTEXT" != ":"; then
81ecdfbb
RW
16300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
16301$as_echo "$XGETTEXT" >&6; }
d5fbea21 16302else
81ecdfbb
RW
16303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16304$as_echo "no" >&6; }
d5fbea21
DJ
16305fi
16306
d7040cdb 16307 rm -f messages.po
d5fbea21 16308
20e95c23 16309
d7040cdb
SE
16310# Prepare PATH_SEPARATOR.
16311# The user is always right.
16312if test "${PATH_SEPARATOR+set}" != set; then
16313 echo "#! /bin/sh" >conf$$.sh
16314 echo "exit 0" >>conf$$.sh
16315 chmod +x conf$$.sh
16316 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16317 PATH_SEPARATOR=';'
16318 else
16319 PATH_SEPARATOR=:
16320 fi
16321 rm -f conf$$.sh
16322fi
20e95c23 16323
d7040cdb
SE
16324# Find out how to test for executable files. Don't use a zero-byte file,
16325# as systems may use methods other than mode bits to determine executability.
16326cat >conf$$.file <<_ASEOF
16327#! /bin/sh
16328exit 0
16329_ASEOF
16330chmod +x conf$$.file
16331if test -x conf$$.file >/dev/null 2>&1; then
16332 ac_executable_p="test -x"
16333else
16334 ac_executable_p="test -f"
16335fi
16336rm -f conf$$.file
20e95c23 16337
d7040cdb
SE
16338# Extract the first word of "msgmerge", so it can be a program name with args.
16339set dummy msgmerge; ac_word=$2
81ecdfbb
RW
16340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16341$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 16342if ${ac_cv_path_MSGMERGE+:} false; then :
81ecdfbb 16343 $as_echo_n "(cached) " >&6
d7040cdb
SE
16344else
16345 case "$MSGMERGE" in
16346 [\\/]* | ?:[\\/]*)
16347 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16348 ;;
16349 *)
16350 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16351 for ac_dir in $PATH; do
16352 IFS="$ac_save_IFS"
16353 test -z "$ac_dir" && ac_dir=.
16354 for ac_exec_ext in '' $ac_executable_extensions; do
16355 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16356 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
16357 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16358 break 2
16359 fi
16360 fi
16361 done
16362 done
16363 IFS="$ac_save_IFS"
16364 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16365 ;;
16366esac
16367fi
16368MSGMERGE="$ac_cv_path_MSGMERGE"
16369if test "$MSGMERGE" != ":"; then
81ecdfbb
RW
16370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
16371$as_echo "$MSGMERGE" >&6; }
d7040cdb 16372else
81ecdfbb
RW
16373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16374$as_echo "no" >&6; }
d7040cdb 16375fi
20e95c23
DJ
16376
16377
d7040cdb
SE
16378 if test "$GMSGFMT" != ":"; then
16379 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
16380 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16381 : ;
16382 else
16383 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
81ecdfbb
RW
16384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
16385$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
d7040cdb
SE
16386 GMSGFMT=":"
16387 fi
16388 fi
20e95c23 16389
d7040cdb
SE
16390 if test "$XGETTEXT" != ":"; then
16391 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16392 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16393 : ;
16394 else
81ecdfbb
RW
16395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
16396$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
d7040cdb
SE
16397 XGETTEXT=":"
16398 fi
16399 rm -f messages.po
20e95c23 16400 fi
42ecbf5e 16401
81ecdfbb 16402 ac_config_commands="$ac_config_commands default-1"
252b5132 16403
42ecbf5e 16404
252b5132 16405
42ecbf5e
DJ
16406
16407
d7040cdb 16408for ac_prog in 'bison -y' byacc
20e95c23 16409do
d7040cdb
SE
16410 # Extract the first word of "$ac_prog", so it can be a program name with args.
16411set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
16412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16413$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 16414if ${ac_cv_prog_YACC+:} false; then :
81ecdfbb 16415 $as_echo_n "(cached) " >&6
20e95c23 16416else
d7040cdb
SE
16417 if test -n "$YACC"; then
16418 ac_cv_prog_YACC="$YACC" # Let the user override the test.
42ecbf5e 16419else
d7040cdb
SE
16420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16421for as_dir in $PATH
16422do
16423 IFS=$as_save_IFS
16424 test -z "$as_dir" && as_dir=.
81ecdfbb 16425 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 16426 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7040cdb 16427 ac_cv_prog_YACC="$ac_prog"
81ecdfbb 16428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
16429 break 2
16430 fi
16431done
81ecdfbb
RW
16432 done
16433IFS=$as_save_IFS
42ecbf5e 16434
42ecbf5e 16435fi
e5a52504 16436fi
d7040cdb
SE
16437YACC=$ac_cv_prog_YACC
16438if test -n "$YACC"; then
81ecdfbb
RW
16439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
16440$as_echo "$YACC" >&6; }
42ecbf5e 16441else
81ecdfbb
RW
16442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16443$as_echo "no" >&6; }
42ecbf5e 16444fi
252b5132 16445
81ecdfbb 16446
d7040cdb 16447 test -n "$YACC" && break
42ecbf5e 16448done
d7040cdb 16449test -n "$YACC" || YACC="yacc"
d15b04bd 16450
d7040cdb
SE
16451for ac_prog in flex lex
16452do
16453 # Extract the first word of "$ac_prog", so it can be a program name with args.
16454set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
16455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16456$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 16457if ${ac_cv_prog_LEX+:} false; then :
81ecdfbb 16458 $as_echo_n "(cached) " >&6
d15b04bd 16459else
d7040cdb
SE
16460 if test -n "$LEX"; then
16461 ac_cv_prog_LEX="$LEX" # Let the user override the test.
16462else
16463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16464for as_dir in $PATH
16465do
16466 IFS=$as_save_IFS
16467 test -z "$as_dir" && as_dir=.
81ecdfbb 16468 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 16469 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7040cdb 16470 ac_cv_prog_LEX="$ac_prog"
81ecdfbb 16471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
16472 break 2
16473 fi
16474done
81ecdfbb
RW
16475 done
16476IFS=$as_save_IFS
d7040cdb
SE
16477
16478fi
16479fi
16480LEX=$ac_cv_prog_LEX
16481if test -n "$LEX"; then
81ecdfbb
RW
16482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
16483$as_echo "$LEX" >&6; }
d7040cdb 16484else
81ecdfbb
RW
16485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16486$as_echo "no" >&6; }
d15b04bd 16487fi
e5a52504 16488
81ecdfbb 16489
d7040cdb
SE
16490 test -n "$LEX" && break
16491done
16492test -n "$LEX" || LEX=":"
42ecbf5e 16493
3d961d0d
AM
16494case "$LEX" in
16495 :|*"missing "*) ;;
16496 *) cat >conftest.l <<_ACEOF
81ecdfbb
RW
16497%%
16498a { ECHO; }
16499b { REJECT; }
16500c { yymore (); }
16501d { yyless (1); }
d0ac1c44
SM
16502e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
16503 yyless ((input () != 0)); }
81ecdfbb
RW
16504f { unput (yytext[0]); }
16505. { BEGIN INITIAL; }
16506%%
16507#ifdef YYTEXT_POINTER
16508extern char *yytext;
d7040cdb 16509#endif
42ecbf5e 16510int
81ecdfbb 16511main (void)
42ecbf5e 16512{
81ecdfbb 16513 return ! yylex () + ! yywrap ();
42ecbf5e
DJ
16514}
16515_ACEOF
81ecdfbb
RW
16516{ { ac_try="$LEX conftest.l"
16517case "(($ac_try" in
16518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16519 *) ac_try_echo=$ac_try;;
16520esac
16521eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16522$as_echo "$ac_try_echo"; } >&5
16523 (eval "$LEX conftest.l") 2>&5
42ecbf5e 16524 ac_status=$?
81ecdfbb
RW
16525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16526 test $ac_status = 0; }
16527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
16528$as_echo_n "checking lex output file root... " >&6; }
d0ac1c44 16529if ${ac_cv_prog_lex_root+:} false; then :
81ecdfbb 16530 $as_echo_n "(cached) " >&6
42ecbf5e 16531else
42ecbf5e 16532
81ecdfbb
RW
16533if test -f lex.yy.c; then
16534 ac_cv_prog_lex_root=lex.yy
16535elif test -f lexyy.c; then
16536 ac_cv_prog_lex_root=lexyy
16537else
d0ac1c44 16538 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
42ecbf5e 16539fi
42ecbf5e 16540fi
81ecdfbb
RW
16541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
16542$as_echo "$ac_cv_prog_lex_root" >&6; }
16543LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
20e95c23 16544
81ecdfbb
RW
16545if test -z "${LEXLIB+set}"; then
16546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
16547$as_echo_n "checking lex library... " >&6; }
d0ac1c44 16548if ${ac_cv_lib_lex+:} false; then :
81ecdfbb 16549 $as_echo_n "(cached) " >&6
252b5132 16550else
20e95c23 16551
81ecdfbb
RW
16552 ac_save_LIBS=$LIBS
16553 ac_cv_lib_lex='none needed'
16554 for ac_lib in '' -lfl -ll; do
16555 LIBS="$ac_lib $ac_save_LIBS"
16556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16557/* end confdefs.h. */
16558`cat $LEX_OUTPUT_ROOT.c`
16559_ACEOF
16560if ac_fn_c_try_link "$LINENO"; then :
16561 ac_cv_lib_lex=$ac_lib
20e95c23 16562fi
81ecdfbb
RW
16563rm -f core conftest.err conftest.$ac_objext \
16564 conftest$ac_exeext conftest.$ac_ext
16565 test "$ac_cv_lib_lex" != 'none needed' && break
16566 done
16567 LIBS=$ac_save_LIBS
20e95c23
DJ
16568
16569fi
81ecdfbb
RW
16570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
16571$as_echo "$ac_cv_lib_lex" >&6; }
16572 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
d7040cdb 16573fi
20e95c23 16574
20e95c23 16575
81ecdfbb
RW
16576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
16577$as_echo_n "checking whether yytext is a pointer... " >&6; }
d0ac1c44 16578if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
81ecdfbb 16579 $as_echo_n "(cached) " >&6
d7040cdb
SE
16580else
16581 # POSIX says lex can declare yytext either as a pointer or an array; the
81ecdfbb 16582# default is implementation-dependent. Figure out which it is, since
d7040cdb
SE
16583# not all implementations provide the %pointer and %array declarations.
16584ac_cv_prog_lex_yytext_pointer=no
d7040cdb 16585ac_save_LIBS=$LIBS
81ecdfbb
RW
16586LIBS="$LEXLIB $ac_save_LIBS"
16587cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16588/* end confdefs.h. */
d0ac1c44
SM
16589
16590 #define YYTEXT_POINTER 1
d7040cdb 16591`cat $LEX_OUTPUT_ROOT.c`
20e95c23 16592_ACEOF
81ecdfbb 16593if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 16594 ac_cv_prog_lex_yytext_pointer=yes
d7040cdb 16595fi
81ecdfbb
RW
16596rm -f core conftest.err conftest.$ac_objext \
16597 conftest$ac_exeext conftest.$ac_ext
d7040cdb 16598LIBS=$ac_save_LIBS
d7040cdb
SE
16599
16600fi
81ecdfbb
RW
16601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
16602$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
d7040cdb
SE
16603if test $ac_cv_prog_lex_yytext_pointer = yes; then
16604
81ecdfbb 16605$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
d7040cdb
SE
16606
16607fi
81ecdfbb 16608rm -f conftest.l $LEX_OUTPUT_ROOT.c
3d961d0d
AM
16609 ;;
16610esac
d7040cdb
SE
16611if test "$LEX" = :; then
16612 LEX=${am_missing_run}flex
16613fi
16614
81ecdfbb
RW
16615
16616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
16617$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
16618 # Check whether --enable-maintainer-mode was given.
16619if test "${enable_maintainer_mode+set}" = set; then :
16620 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
252b5132 16621else
d7040cdb 16622 USE_MAINTAINER_MODE=no
81ecdfbb 16623fi
d7040cdb 16624
81ecdfbb
RW
16625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
16626$as_echo "$USE_MAINTAINER_MODE" >&6; }
16627 if test $USE_MAINTAINER_MODE = yes; then
d7040cdb
SE
16628 MAINTAINER_MODE_TRUE=
16629 MAINTAINER_MODE_FALSE='#'
16630else
16631 MAINTAINER_MODE_TRUE='#'
16632 MAINTAINER_MODE_FALSE=
252b5132 16633fi
252b5132 16634
d7040cdb
SE
16635 MAINT=$MAINTAINER_MODE_TRUE
16636
16637
81ecdfbb 16638 if false; then
d7040cdb
SE
16639 GENINSRC_NEVER_TRUE=
16640 GENINSRC_NEVER_FALSE='#'
16641else
16642 GENINSRC_NEVER_TRUE='#'
16643 GENINSRC_NEVER_FALSE=
252b5132
RH
16644fi
16645
81ecdfbb
RW
16646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
16647$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
d0ac1c44 16648if ${gcc_cv_prog_cmp_skip+:} false; then :
81ecdfbb 16649 $as_echo_n "(cached) " >&6
eccbf555
AM
16650else
16651 echo abfoo >t1
16652 echo cdfoo >t2
da17fe9d 16653 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
eccbf555
AM
16654 if cmp t1 t2 2 2 > /dev/null 2>&1; then
16655 if cmp t1 t2 1 1 > /dev/null 2>&1; then
16656 :
16657 else
16658 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
16659 fi
16660 fi
16661 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
16662 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
16663 :
16664 else
16665 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
16666 fi
16667 fi
16668 rm t1 t2
16669
16670fi
81ecdfbb
RW
16671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
16672$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
eccbf555
AM
16673do_compare="$gcc_cv_prog_cmp_skip"
16674
16675
d7040cdb
SE
16676
16677. ${srcdir}/configure.host
16678
16679
16680
c774eab1
AM
16681
16682# We use headers from include/ that check various HAVE_*_H macros, thus
16683# should ensure they are set by configure. This is true even when C99
16684# guarantees they are available.
16685# sha1.h and md4.h test HAVE_LIMITS_H, HAVE_SYS_TYPES_H and HAVE_STDINT_H
16686# plugin-api.h tests HAVE_STDINT_H and HAVE_INTTYPES_H
16687# Besides those, we need to check anything used in ld/ not in C99.
16688for ac_header in fcntl.h elf-hints.h limits.h inttypes.h stdint.h \
16689 sys/file.h sys/mman.h sys/param.h sys/stat.h sys/time.h \
16690 sys/types.h unistd.h
5d3236ee
DK
16691do :
16692 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16693ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
d0ac1c44 16694if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5d3236ee
DK
16695 cat >>confdefs.h <<_ACEOF
16696#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16697_ACEOF
16698
16699fi
16700
16701done
16702
c774eab1 16703for ac_func in close glob lseek mkstemp open realpath sbrk waitpid
81ecdfbb
RW
16704do :
16705 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16706ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
d0ac1c44 16707if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
42ecbf5e 16708 cat >>confdefs.h <<_ACEOF
81ecdfbb 16709#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
42ecbf5e 16710_ACEOF
252b5132 16711
252b5132
RH
16712fi
16713done
16714
5d3236ee 16715
42ecbf5e 16716
c774eab1
AM
16717case "${host}" in
16718*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
42ecbf5e 16719
c774eab1
AM
16720$as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
16721 ;;
16722esac
42ecbf5e 16723
c774eab1
AM
16724ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
16725if test "x$ac_cv_have_decl_asprintf" = xyes; then :
16726 ac_have_decl=1
42ecbf5e 16727else
c774eab1 16728 ac_have_decl=0
81ecdfbb 16729fi
e5a52504 16730
c774eab1
AM
16731cat >>confdefs.h <<_ACEOF
16732#define HAVE_DECL_ASPRINTF $ac_have_decl
16733_ACEOF
16734ac_fn_c_check_decl "$LINENO" "environ" "ac_cv_have_decl_environ" "$ac_includes_default"
16735if test "x$ac_cv_have_decl_environ" = xyes; then :
16736 ac_have_decl=1
42ecbf5e 16737else
c774eab1 16738 ac_have_decl=0
d15b04bd 16739fi
252b5132 16740
c774eab1
AM
16741cat >>confdefs.h <<_ACEOF
16742#define HAVE_DECL_ENVIRON $ac_have_decl
42ecbf5e 16743_ACEOF
c774eab1
AM
16744ac_fn_c_check_decl "$LINENO" "sbrk" "ac_cv_have_decl_sbrk" "$ac_includes_default"
16745if test "x$ac_cv_have_decl_sbrk" = xyes; then :
16746 ac_have_decl=1
42ecbf5e 16747else
c774eab1 16748 ac_have_decl=0
d15b04bd 16749fi
252b5132 16750
c774eab1
AM
16751cat >>confdefs.h <<_ACEOF
16752#define HAVE_DECL_SBRK $ac_have_decl
16753_ACEOF
252b5132
RH
16754
16755
d0ac1c44
SM
16756
16757
16758
16759 for ac_header in $ac_header_list
2aec968d
L
16760do :
16761 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
d0ac1c44
SM
16762ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
16763"
16764if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
2aec968d
L
16765 cat >>confdefs.h <<_ACEOF
16766#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16767_ACEOF
16768
16769fi
16770
16771done
16772
d0ac1c44
SM
16773
16774
16775
16776
16777
16778
16779
2aec968d
L
16780for ac_func in getpagesize
16781do :
16782 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
d0ac1c44 16783if test "x$ac_cv_func_getpagesize" = xyes; then :
2aec968d
L
16784 cat >>confdefs.h <<_ACEOF
16785#define HAVE_GETPAGESIZE 1
16786_ACEOF
16787
16788fi
16789done
16790
16791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
16792$as_echo_n "checking for working mmap... " >&6; }
d0ac1c44 16793if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
2aec968d
L
16794 $as_echo_n "(cached) " >&6
16795else
16796 if test "$cross_compiling" = yes; then :
16797 ac_cv_func_mmap_fixed_mapped=no
16798else
16799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16800/* end confdefs.h. */
16801$ac_includes_default
16802/* malloc might have been renamed as rpl_malloc. */
16803#undef malloc
16804
16805/* Thanks to Mike Haertel and Jim Avera for this test.
16806 Here is a matrix of mmap possibilities:
16807 mmap private not fixed
16808 mmap private fixed at somewhere currently unmapped
16809 mmap private fixed at somewhere already mapped
16810 mmap shared not fixed
16811 mmap shared fixed at somewhere currently unmapped
16812 mmap shared fixed at somewhere already mapped
16813 For private mappings, we should verify that changes cannot be read()
16814 back from the file, nor mmap's back from the file at a different
16815 address. (There have been systems where private was not correctly
16816 implemented like the infamous i386 svr4.0, and systems where the
16817 VM page cache was not coherent with the file system buffer cache
16818 like early versions of FreeBSD and possibly contemporary NetBSD.)
16819 For shared mappings, we should conversely verify that changes get
16820 propagated back to all the places they're supposed to be.
16821
16822 Grep wants private fixed already mapped.
16823 The main things grep needs to know about mmap are:
16824 * does it exist and is it safe to write into the mmap'd area
16825 * how to use it (BSD variants) */
16826
16827#include <fcntl.h>
16828#include <sys/mman.h>
16829
16830#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
16831char *malloc ();
16832#endif
16833
16834/* This mess was copied from the GNU getpagesize.h. */
16835#ifndef HAVE_GETPAGESIZE
2aec968d
L
16836# ifdef _SC_PAGESIZE
16837# define getpagesize() sysconf(_SC_PAGESIZE)
16838# else /* no _SC_PAGESIZE */
16839# ifdef HAVE_SYS_PARAM_H
16840# include <sys/param.h>
16841# ifdef EXEC_PAGESIZE
16842# define getpagesize() EXEC_PAGESIZE
16843# else /* no EXEC_PAGESIZE */
16844# ifdef NBPG
16845# define getpagesize() NBPG * CLSIZE
16846# ifndef CLSIZE
16847# define CLSIZE 1
16848# endif /* no CLSIZE */
16849# else /* no NBPG */
16850# ifdef NBPC
16851# define getpagesize() NBPC
16852# else /* no NBPC */
16853# ifdef PAGESIZE
16854# define getpagesize() PAGESIZE
16855# endif /* PAGESIZE */
16856# endif /* no NBPC */
16857# endif /* no NBPG */
16858# endif /* no EXEC_PAGESIZE */
16859# else /* no HAVE_SYS_PARAM_H */
16860# define getpagesize() 8192 /* punt totally */
16861# endif /* no HAVE_SYS_PARAM_H */
16862# endif /* no _SC_PAGESIZE */
16863
16864#endif /* no HAVE_GETPAGESIZE */
16865
16866int
16867main ()
16868{
16869 char *data, *data2, *data3;
d0ac1c44 16870 const char *cdata2;
2aec968d 16871 int i, pagesize;
d0ac1c44 16872 int fd, fd2;
2aec968d
L
16873
16874 pagesize = getpagesize ();
16875
16876 /* First, make a file with some known garbage in it. */
16877 data = (char *) malloc (pagesize);
16878 if (!data)
16879 return 1;
16880 for (i = 0; i < pagesize; ++i)
16881 *(data + i) = rand ();
16882 umask (0);
16883 fd = creat ("conftest.mmap", 0600);
16884 if (fd < 0)
d0ac1c44 16885 return 2;
2aec968d 16886 if (write (fd, data, pagesize) != pagesize)
d0ac1c44 16887 return 3;
2aec968d
L
16888 close (fd);
16889
d0ac1c44
SM
16890 /* Next, check that the tail of a page is zero-filled. File must have
16891 non-zero length, otherwise we risk SIGBUS for entire page. */
16892 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
16893 if (fd2 < 0)
16894 return 4;
16895 cdata2 = "";
16896 if (write (fd2, cdata2, 1) != 1)
16897 return 5;
16898 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
16899 if (data2 == MAP_FAILED)
16900 return 6;
16901 for (i = 0; i < pagesize; ++i)
16902 if (*(data2 + i))
16903 return 7;
16904 close (fd2);
16905 if (munmap (data2, pagesize))
16906 return 8;
16907
2aec968d
L
16908 /* Next, try to mmap the file at a fixed address which already has
16909 something else allocated at it. If we can, also make sure that
16910 we see the same garbage. */
16911 fd = open ("conftest.mmap", O_RDWR);
16912 if (fd < 0)
d0ac1c44 16913 return 9;
2aec968d
L
16914 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
16915 MAP_PRIVATE | MAP_FIXED, fd, 0L))
d0ac1c44 16916 return 10;
2aec968d
L
16917 for (i = 0; i < pagesize; ++i)
16918 if (*(data + i) != *(data2 + i))
d0ac1c44 16919 return 11;
2aec968d
L
16920
16921 /* Finally, make sure that changes to the mapped area do not
16922 percolate back to the file as seen by read(). (This is a bug on
16923 some variants of i386 svr4.0.) */
16924 for (i = 0; i < pagesize; ++i)
16925 *(data2 + i) = *(data2 + i) + 1;
16926 data3 = (char *) malloc (pagesize);
16927 if (!data3)
d0ac1c44 16928 return 12;
2aec968d 16929 if (read (fd, data3, pagesize) != pagesize)
d0ac1c44 16930 return 13;
2aec968d
L
16931 for (i = 0; i < pagesize; ++i)
16932 if (*(data + i) != *(data3 + i))
d0ac1c44 16933 return 14;
2aec968d
L
16934 close (fd);
16935 return 0;
16936}
16937_ACEOF
16938if ac_fn_c_try_run "$LINENO"; then :
16939 ac_cv_func_mmap_fixed_mapped=yes
16940else
16941 ac_cv_func_mmap_fixed_mapped=no
16942fi
16943rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16944 conftest.$ac_objext conftest.beam conftest.$ac_ext
16945fi
16946
16947fi
16948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
16949$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
16950if test $ac_cv_func_mmap_fixed_mapped = yes; then
16951
16952$as_echo "#define HAVE_MMAP 1" >>confdefs.h
16953
16954fi
d0ac1c44 16955rm -f conftest.mmap conftest.txt
2aec968d
L
16956
16957
5d3236ee
DK
16958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
16959$as_echo_n "checking for library containing dlopen... " >&6; }
d0ac1c44 16960if ${ac_cv_search_dlopen+:} false; then :
5d3236ee
DK
16961 $as_echo_n "(cached) " >&6
16962else
16963 ac_func_search_save_LIBS=$LIBS
16964cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16965/* end confdefs.h. */
16966
16967/* Override any GCC internal prototype to avoid an error.
16968 Use char because int might match the return type of a GCC
16969 builtin and then its argument prototype would still apply. */
16970#ifdef __cplusplus
16971extern "C"
16972#endif
16973char dlopen ();
16974int
16975main ()
16976{
16977return dlopen ();
16978 ;
16979 return 0;
16980}
16981_ACEOF
16982for ac_lib in '' dl; do
16983 if test -z "$ac_lib"; then
16984 ac_res="none required"
16985 else
16986 ac_res=-l$ac_lib
16987 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16988 fi
16989 if ac_fn_c_try_link "$LINENO"; then :
16990 ac_cv_search_dlopen=$ac_res
16991fi
16992rm -f core conftest.err conftest.$ac_objext \
16993 conftest$ac_exeext
d0ac1c44 16994 if ${ac_cv_search_dlopen+:} false; then :
5d3236ee
DK
16995 break
16996fi
16997done
d0ac1c44 16998if ${ac_cv_search_dlopen+:} false; then :
5d3236ee
DK
16999
17000else
17001 ac_cv_search_dlopen=no
17002fi
17003rm conftest.$ac_ext
17004LIBS=$ac_func_search_save_LIBS
17005fi
17006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
17007$as_echo "$ac_cv_search_dlopen" >&6; }
17008ac_res=$ac_cv_search_dlopen
17009if test "$ac_res" != no; then :
17010 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17011
3917d5d5
DK
17012fi
17013
5d3236ee 17014
81ecdfbb
RW
17015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
17016$as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
d0ac1c44 17017if ${ld_cv_decl_getopt_unistd_h+:} false; then :
81ecdfbb 17018 $as_echo_n "(cached) " >&6
34875e64 17019else
81ecdfbb 17020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e 17021/* end confdefs.h. */
34875e64 17022#include <unistd.h>
42ecbf5e
DJ
17023int
17024main ()
17025{
34875e64 17026extern int getopt (int, char *const*, const char *);
42ecbf5e
DJ
17027 ;
17028 return 0;
17029}
17030_ACEOF
81ecdfbb 17031if ac_fn_c_try_compile "$LINENO"; then :
34875e64
NC
17032 ld_cv_decl_getopt_unistd_h=yes
17033else
81ecdfbb 17034 ld_cv_decl_getopt_unistd_h=no
34875e64 17035fi
81ecdfbb 17036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34875e64
NC
17037fi
17038
81ecdfbb
RW
17039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_cv_decl_getopt_unistd_h" >&5
17040$as_echo "$ld_cv_decl_getopt_unistd_h" >&6; }
34875e64 17041if test $ld_cv_decl_getopt_unistd_h = yes; then
42ecbf5e 17042
81ecdfbb 17043$as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
34875e64
NC
17044
17045fi
42ecbf5e 17046
1ff6de03
NA
17047# Link in zlib if we can. This allows us to read and write
17048# compressed CTF sections.
17049
17050 # Use the system's zlib library.
17051 zlibdir="-L\$(top_builddir)/../zlib"
17052 zlibinc="-I\$(top_srcdir)/../zlib"
17053
17054# Check whether --with-system-zlib was given.
17055if test "${with_system_zlib+set}" = set; then :
17056 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
17057 zlibdir=
17058 zlibinc=
17059 fi
17060
17061fi
17062
17063
17064
17065
17066
597e2591
ILT
17067# When converting linker scripts into strings for use in emulation
17068# files, use astring.sed if the compiler supports ANSI string
17069# concatenation, or ostring.sed otherwise. This is to support the
17070# broken Microsoft MSVC compiler, which limits the length of string
17071# constants, while still supporting pre-ANSI compilers which do not
17072# support string concatenation.
81ecdfbb
RW
17073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ANSI C string concatenation works" >&5
17074$as_echo_n "checking whether ANSI C string concatenation works... " >&6; }
d0ac1c44 17075if ${ld_cv_string_concatenation+:} false; then :
81ecdfbb 17076 $as_echo_n "(cached) " >&6
42ecbf5e 17077else
81ecdfbb 17078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e 17079/* end confdefs.h. */
81ecdfbb 17080
314e9a4e
L
17081int
17082main ()
17083{
81ecdfbb 17084char *a = "a" "a";
314e9a4e
L
17085 ;
17086 return 0;
17087}
17088_ACEOF
81ecdfbb
RW
17089if ac_fn_c_try_compile "$LINENO"; then :
17090 ld_cv_string_concatenation=yes
314e9a4e 17091else
81ecdfbb 17092 ld_cv_string_concatenation=no
314e9a4e 17093fi
81ecdfbb 17094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
314e9a4e 17095fi
81ecdfbb
RW
17096
17097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_cv_string_concatenation" >&5
17098$as_echo "$ld_cv_string_concatenation" >&6; }
17099if test "$ld_cv_string_concatenation" = "yes"; then
17100 STRINGIFY=astring.sed
17101else
17102 STRINGIFY=ostring.sed
314e9a4e 17103fi
81ecdfbb
RW
17104
17105
17106# target-specific stuff:
17107
17108all_targets=
17109EMUL=
17110all_emuls=
17111all_emul_extras=
17112all_libpath=
50ff67e6 17113TDIRS=
81ecdfbb 17114
f38a2680
AM
17115elf_list_options=false
17116elf_shlib_list_options=false
17117elf_plt_unwind_list_options=false
81ecdfbb
RW
17118for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
17119do
17120 if test "$targ_alias" = "all"; then
17121 all_targets=true
f38a2680
AM
17122 elf_list_options=true
17123 elf_shlib_list_options=true
17124 elf_plt_unwind_list_options=true
81ecdfbb
RW
17125 else
17126 # Canonicalize the secondary target names.
17127 result=`$ac_config_sub $targ_alias 2>/dev/null`
17128 if test -n "$result"; then
17129 targ=$result
17130 else
17131 targ=$targ_alias
17132 fi
17133
17134 . ${srcdir}/configure.tgt
17135
17136 if test "$targ" = "$target"; then
17137 EMUL=$targ_emul
17138 fi
17139
1d5269c9 17140 if test x${enable_64_bit_bfd} = xno; then
81ecdfbb
RW
17141 . ${srcdir}/../bfd/config.bfd
17142 fi
17143
1d5269c9 17144 if test x${enable_64_bit_bfd} = xyes; then
81ecdfbb
RW
17145 targ_extra_emuls="$targ_extra_emuls $targ64_extra_emuls"
17146 targ_extra_libpath="$targ_extra_libpath $targ64_extra_libpath"
17147 fi
17148
17149 for i in $targ_emul $targ_extra_emuls $targ_extra_libpath; do
17150 case " $all_emuls " in
8c3fff59
AM
17151 *" e${i}.o "*) ;;
17152 *)
17153 all_emuls="$all_emuls e${i}.o"
17154 eval result=\$tdir_$i
17155 test -z "$result" && result=$targ_alias
50ff67e6
AM
17156 TDIRS="$TDIRS
17157tdir_$i=$result"
c58212ea
L
17158 case "${i}" in
17159 *elf*)
f38a2680 17160 elf_list_options=true
68880f31
CLT
17161 ;;
17162 *)
075a2b89 17163 if $GREP "TEMPLATE_NAME=elf" ${srcdir}/emulparams/${i}.sh >/dev/null 2>/dev/null; then
f38a2680 17164 elf_list_options=true
68880f31
CLT
17165 fi
17166 ;;
17167 esac
f38a2680 17168 if test "$elf_list_options" = "true"; then
c40e31a1
AM
17169 source_sh()
17170 {
17171 . $1
17172 }
17173 source_sh ${srcdir}/emulparams/${i}.sh
c58212ea 17174 if test x${GENERATE_SHLIB_SCRIPT} = xyes; then
f38a2680 17175 elf_shlib_list_options=true
c58212ea
L
17176 fi
17177 if test x${PLT_UNWIND} = xyes; then
f38a2680 17178 elf_plt_unwind_list_options=true
c58212ea 17179 fi
68880f31 17180 fi
c58212ea 17181 ;;
81ecdfbb
RW
17182 esac
17183 done
17184
17185 for i in $targ_emul $targ_extra_libpath; do
17186 case " $all_libpath " in
17187 *" ${i} "*) ;;
17188 *)
17189 if test -z "$all_libpath"; then
17190 all_libpath=${i}
17191 else
17192 all_libpath="$all_libpath ${i}"
17193 fi
17194 ;;
17195 esac
17196 done
17197
17198 for i in $targ_extra_ofiles; do
17199 case " $all_emul_extras " in
17200 *" ${i} "*) ;;
17201 *)
17202 all_emul_extras="$all_emul_extras ${i}"
17203 ;;
17204 esac
17205 done
5063daf7 17206
81ecdfbb
RW
17207 fi
17208done
17209
621ff761 17210if test x$ac_default_compressed_debug_sections = xyes ; then
6c3bc0f8
NC
17211
17212$as_echo "#define DEFAULT_FLAG_COMPRESS_DEBUG 1" >>confdefs.h
17213
17214fi
17215
6734f10a
SB
17216if test "${ac_default_new_dtags}" = unset; then
17217 ac_default_new_dtags=0
17218fi
17219
17220cat >>confdefs.h <<_ACEOF
17221#define DEFAULT_NEW_DTAGS $ac_default_new_dtags
17222_ACEOF
17223
17224
647e4d46
L
17225if test "${ac_default_ld_z_relro}" = unset; then
17226 ac_default_ld_z_relro=0
17227fi
17228
17229cat >>confdefs.h <<_ACEOF
17230#define DEFAULT_LD_Z_RELRO $ac_default_ld_z_relro
17231_ACEOF
17232
17233
b32632c4
L
17234ac_default_ld_textrel_check_warning=0
17235case "${ac_default_ld_textrel_check}" in
17236 unset|no)
17237 ac_default_ld_textrel_check=textrel_check_none
17238 ;;
17239 yes|warning)
17240 ac_default_ld_textrel_check=textrel_check_warning
17241 ac_default_ld_textrel_check_warning=1
17242 ;;
17243 error)
17244 ac_default_ld_textrel_check=textrel_check_error
17245 ;;
17246esac
17247
17248cat >>confdefs.h <<_ACEOF
17249#define DEFAULT_LD_TEXTREL_CHECK $ac_default_ld_textrel_check
17250_ACEOF
17251
17252
17253cat >>confdefs.h <<_ACEOF
17254#define DEFAULT_LD_TEXTREL_CHECK_WARNING $ac_default_ld_textrel_check_warning
17255_ACEOF
17256
17257
f6aec96d
L
17258if test "${ac_default_ld_z_separate_code}" = unset; then
17259 ac_default_ld_z_separate_code=0
17260fi
17261
17262cat >>confdefs.h <<_ACEOF
17263#define DEFAULT_LD_Z_SEPARATE_CODE $ac_default_ld_z_separate_code
17264_ACEOF
17265
17266
ba951afb 17267
ba951afb
NC
17268
17269cat >>confdefs.h <<_ACEOF
17270#define DEFAULT_LD_WARN_EXECSTACK $ac_default_ld_warn_execstack
17271_ACEOF
17272
17273
17274if test "${ac_default_ld_warn_rwx_segments}" = unset; then
ed1c7ad8 17275 ac_default_ld_warn_rwx_segments=1
ba951afb
NC
17276fi
17277
17278cat >>confdefs.h <<_ACEOF
17279#define DEFAULT_LD_WARN_RWX_SEGMENTS $ac_default_ld_warn_rwx_segments
17280_ACEOF
17281
17282
17283if test "${ac_default_ld_default_execstack}" = unset; then
17284 ac_default_ld_default_execstack=1
17285fi
17286
17287cat >>confdefs.h <<_ACEOF
17288#define DEFAULT_LD_EXECSTACK $ac_default_ld_default_execstack
17289_ACEOF
17290
17291
17292
23ae20f5
NC
17293if test "${ac_support_error_handling_script}" = unset; then
17294 ac_support_error_handling_script=1
17295fi
17296
17297cat >>confdefs.h <<_ACEOF
17298#define SUPPORT_ERROR_HANDLING_SCRIPT $ac_support_error_handling_script
17299_ACEOF
17300
17301
81ecdfbb 17302
2760f24c
RG
17303cat >>confdefs.h <<_ACEOF
17304#define DEFAULT_EMIT_SYSV_HASH $ac_default_emit_sysv_hash
17305_ACEOF
17306
17307
17308
17309cat >>confdefs.h <<_ACEOF
17310#define DEFAULT_EMIT_GNU_HASH $ac_default_emit_gnu_hash
17311_ACEOF
17312
17313
17314
81ecdfbb 17315
c58212ea
L
17316
17317
17318
50ff67e6 17319
81ecdfbb
RW
17320
17321
17322if test x${all_targets} = xtrue; then
1d5269c9 17323 if test x${enable_64_bit_bfd} = xyes; then
42ecbf5e 17324 EMULATION_OFILES='$(ALL_EMULATIONS) $(ALL_64_EMULATIONS)'
9d069ac3 17325 EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES) $(ALL_64_EMUL_EXTRA_OFILES)'
42ecbf5e
DJ
17326 else
17327 EMULATION_OFILES='$(ALL_EMULATIONS)'
9d069ac3 17328 EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES)'
42ecbf5e 17329 fi
42ecbf5e
DJ
17330else
17331 EMULATION_OFILES=$all_emuls
17332 EMUL_EXTRA_OFILES=$all_emul_extras
17333fi
17334
17335
17336
17337
17338EMULATION_LIBPATH=$all_libpath
17339
17340
17341if test x${enable_static} = xno; then
9165f454 17342 TESTBFDLIB="-Wl,--rpath,../bfd/.libs ../bfd/.libs/libbfd.so"
87279e3c 17343 TESTCTFLIB="-Wl,--rpath,../libctf/.libs ../libctf/.libs/libctf.so"
42ecbf5e
DJ
17344else
17345 TESTBFDLIB="../bfd/.libs/libbfd.a"
87279e3c 17346 TESTCTFLIB="../libctf/.libs/libctf.a"
42ecbf5e 17347fi
094e34f2
NA
17348if test "${enable_libctf}" = no; then
17349 TESTCTFLIB=
17350fi
42ecbf5e
DJ
17351
17352
87279e3c 17353
42ecbf5e
DJ
17354target_vendor=${target_vendor=$host_vendor}
17355case "$target_vendor" in
17356 hp) EXTRA_SHLIB_EXTENSION=".sl" ;;
17357 *) EXTRA_SHLIB_EXTENSION= ;;
17358esac
17359
17360case "$target_os" in
17361 lynxos) EXTRA_SHLIB_EXTENSION=".a" ;;
17362esac
17363
17364if test x${EXTRA_SHLIB_EXTENSION} != x ; then
17365
17366cat >>confdefs.h <<_ACEOF
17367#define EXTRA_SHLIB_EXTENSION "$EXTRA_SHLIB_EXTENSION"
17368_ACEOF
17369
17370fi
17371
33589acb
AM
17372ac_config_commands="$ac_config_commands default"
17373
17374
108a6f8e
CD
17375
17376
17377
17378
31dd3154 17379
81ecdfbb 17380ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
da594c4a 17381
42ecbf5e
DJ
17382cat >confcache <<\_ACEOF
17383# This file is a shell script that caches the results of configure
17384# tests run on this system so they can be shared between configure
17385# scripts and configure runs, see configure's option --config-cache.
17386# It is not useful on other systems. If it contains results you don't
17387# want to keep, you may remove or edit it.
17388#
17389# config.status only pays attention to the cache file if you give it
17390# the --recheck option to rerun configure.
17391#
17392# `ac_cv_env_foo' variables (set or unset) will be overridden when
17393# loading this file, other *unset* `ac_cv_foo' will be assigned the
17394# following values.
17395
17396_ACEOF
17397
17398# The following way of writing the cache mishandles newlines in values,
17399# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 17400# So, we kill variables containing newlines.
42ecbf5e
DJ
17401# Ultrix sh set writes to stderr and can't be redirected directly,
17402# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
17403(
17404 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17405 eval ac_val=\$$ac_var
17406 case $ac_val in #(
17407 *${as_nl}*)
17408 case $ac_var in #(
17409 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17410$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17411 esac
17412 case $ac_var in #(
17413 _ | IFS | as_nl) ;; #(
17414 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17415 *) { eval $ac_var=; unset $ac_var;} ;;
17416 esac ;;
17417 esac
17418 done
17419
42ecbf5e 17420 (set) 2>&1 |
81ecdfbb
RW
17421 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17422 *${as_nl}ac_space=\ *)
17423 # `set' does not quote correctly, so add quotes: double-quote
17424 # substitution turns \\\\ into \\, and sed turns \\ into \.
42ecbf5e
DJ
17425 sed -n \
17426 "s/'/'\\\\''/g;
17427 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 17428 ;; #(
42ecbf5e
DJ
17429 *)
17430 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 17431 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
42ecbf5e 17432 ;;
81ecdfbb
RW
17433 esac |
17434 sort
17435) |
42ecbf5e 17436 sed '
81ecdfbb 17437 /^ac_cv_env_/b end
42ecbf5e 17438 t clear
81ecdfbb 17439 :clear
42ecbf5e
DJ
17440 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17441 t end
81ecdfbb
RW
17442 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17443 :end' >>confcache
17444if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17445 if test -w "$cache_file"; then
d0ac1c44 17446 if test "x$cache_file" != "x/dev/null"; then
81ecdfbb
RW
17447 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17448$as_echo "$as_me: updating cache $cache_file" >&6;}
d0ac1c44
SM
17449 if test ! -f "$cache_file" || test -h "$cache_file"; then
17450 cat confcache >"$cache_file"
17451 else
17452 case $cache_file in #(
17453 */* | ?:*)
17454 mv -f confcache "$cache_file"$$ &&
17455 mv -f "$cache_file"$$ "$cache_file" ;; #(
17456 *)
17457 mv -f confcache "$cache_file" ;;
17458 esac
17459 fi
17460 fi
42ecbf5e 17461 else
81ecdfbb
RW
17462 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17463$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
42ecbf5e
DJ
17464 fi
17465fi
17466rm -f confcache
17467
17468test "x$prefix" = xNONE && prefix=$ac_default_prefix
17469# Let make expand exec_prefix.
17470test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17471
42ecbf5e
DJ
17472DEFS=-DHAVE_CONFIG_H
17473
17474ac_libobjs=
17475ac_ltlibobjs=
d0ac1c44 17476U=
42ecbf5e
DJ
17477for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17478 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
17479 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17480 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17481 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17482 # will be set to the directory where LIBOBJS objects are built.
17483 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17484 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
42ecbf5e
DJ
17485done
17486LIBOBJS=$ac_libobjs
17487
17488LTLIBOBJS=$ac_ltlibobjs
17489
17490
d0ac1c44
SM
17491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17492$as_echo_n "checking that generated files are newer than configure... " >&6; }
17493 if test -n "$am_sleep_pid"; then
17494 # Hide warnings about reused PIDs.
17495 wait $am_sleep_pid 2>/dev/null
17496 fi
17497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17498$as_echo "done" >&6; }
81ecdfbb
RW
17499 if test -n "$EXEEXT"; then
17500 am__EXEEXT_TRUE=
17501 am__EXEEXT_FALSE='#'
17502else
17503 am__EXEEXT_TRUE='#'
17504 am__EXEEXT_FALSE=
42ecbf5e 17505fi
81ecdfbb 17506
64ac50ac 17507if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
d0ac1c44 17508 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
64ac50ac
RW
17509Usually this means the macro was only invoked conditionally." "$LINENO" 5
17510fi
c774eab1
AM
17511if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17512 as_fn_error $? "conditional \"AMDEP\" was never defined.
17513Usually this means the macro was only invoked conditionally." "$LINENO" 5
17514fi
17515if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17516 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17517Usually this means the macro was only invoked conditionally." "$LINENO" 5
17518fi
3cb62297 17519if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
d0ac1c44 17520 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
3cb62297
L
17521Usually this means the macro was only invoked conditionally." "$LINENO" 5
17522fi
1d5269c9
MF
17523if test -z "${ENABLE_BFD_64_BIT_TRUE}" && test -z "${ENABLE_BFD_64_BIT_FALSE}"; then
17524 as_fn_error $? "conditional \"ENABLE_BFD_64_BIT\" was never defined.
17525Usually this means the macro was only invoked conditionally." "$LINENO" 5
17526fi
094e34f2
NA
17527if test -z "${ENABLE_LIBCTF_TRUE}" && test -z "${ENABLE_LIBCTF_FALSE}"; then
17528 as_fn_error $? "conditional \"ENABLE_LIBCTF\" was never defined.
17529Usually this means the macro was only invoked conditionally." "$LINENO" 5
17530fi
42ecbf5e 17531if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
d0ac1c44 17532 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
81ecdfbb 17533Usually this means the macro was only invoked conditionally." "$LINENO" 5
42ecbf5e 17534fi
d5fbea21 17535if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
d0ac1c44 17536 as_fn_error $? "conditional \"GENINSRC_NEVER\" was never defined.
81ecdfbb 17537Usually this means the macro was only invoked conditionally." "$LINENO" 5
d5fbea21 17538fi
42ecbf5e 17539
d0ac1c44 17540: "${CONFIG_STATUS=./config.status}"
81ecdfbb 17541ac_write_fail=0
42ecbf5e
DJ
17542ac_clean_files_save=$ac_clean_files
17543ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
17544{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17545$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17546as_write_fail=0
17547cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
42ecbf5e
DJ
17548#! $SHELL
17549# Generated by $as_me.
17550# Run this file to recreate the current configuration.
17551# Compiler output produced by configure, useful for debugging
17552# configure, is in config.log if it exists.
17553
17554debug=false
17555ac_cs_recheck=false
17556ac_cs_silent=false
42ecbf5e 17557
81ecdfbb
RW
17558SHELL=\${CONFIG_SHELL-$SHELL}
17559export SHELL
17560_ASEOF
17561cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17562## -------------------- ##
17563## M4sh Initialization. ##
17564## -------------------- ##
42ecbf5e 17565
81ecdfbb
RW
17566# Be more Bourne compatible
17567DUALCASE=1; export DUALCASE # for MKS sh
17568if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
42ecbf5e
DJ
17569 emulate sh
17570 NULLCMD=:
81ecdfbb 17571 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
42ecbf5e
DJ
17572 # is contrary to our usage. Disable this feature.
17573 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
17574 setopt NO_GLOB_SUBST
17575else
17576 case `(set -o) 2>/dev/null` in #(
17577 *posix*) :
17578 set -o posix ;; #(
17579 *) :
17580 ;;
17581esac
42ecbf5e 17582fi
42ecbf5e 17583
81ecdfbb
RW
17584
17585as_nl='
17586'
17587export as_nl
17588# Printing a long string crashes Solaris 7 /usr/bin/printf.
17589as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17590as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17591as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17592# Prefer a ksh shell builtin over an external printf program on Solaris,
17593# but without wasting forks for bash or zsh.
17594if test -z "$BASH_VERSION$ZSH_VERSION" \
17595 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17596 as_echo='print -r --'
17597 as_echo_n='print -rn --'
17598elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17599 as_echo='printf %s\n'
17600 as_echo_n='printf %s'
17601else
17602 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17603 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17604 as_echo_n='/usr/ucb/echo -n'
17605 else
17606 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17607 as_echo_n_body='eval
17608 arg=$1;
17609 case $arg in #(
17610 *"$as_nl"*)
17611 expr "X$arg" : "X\\(.*\\)$as_nl";
17612 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17613 esac;
17614 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17615 '
17616 export as_echo_n_body
17617 as_echo_n='sh -c $as_echo_n_body as_echo'
17618 fi
17619 export as_echo_body
17620 as_echo='sh -c $as_echo_body as_echo'
17621fi
17622
17623# The user is always right.
17624if test "${PATH_SEPARATOR+set}" != set; then
17625 PATH_SEPARATOR=:
17626 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17627 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17628 PATH_SEPARATOR=';'
17629 }
42ecbf5e
DJ
17630fi
17631
17632
81ecdfbb
RW
17633# IFS
17634# We need space, tab and new line, in precisely that order. Quoting is
17635# there to prevent editors from complaining about space-tab.
17636# (If _AS_PATH_WALK were called with IFS unset, it would disable word
17637# splitting by setting IFS to empty value.)
17638IFS=" "" $as_nl"
17639
17640# Find who we are. Look in the path if we contain no directory separator.
d0ac1c44 17641as_myself=
81ecdfbb
RW
17642case $0 in #((
17643 *[\\/]* ) as_myself=$0 ;;
17644 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17645for as_dir in $PATH
17646do
17647 IFS=$as_save_IFS
17648 test -z "$as_dir" && as_dir=.
17649 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17650 done
17651IFS=$as_save_IFS
17652
17653 ;;
17654esac
17655# We did not find ourselves, most probably we were run as `sh COMMAND'
17656# in which case we are not to be found in the path.
17657if test "x$as_myself" = x; then
17658 as_myself=$0
17659fi
17660if test ! -f "$as_myself"; then
17661 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17662 exit 1
17663fi
17664
17665# Unset variables that we do not need and which cause bugs (e.g. in
17666# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17667# suppresses any "Segmentation fault" message there. '((' could
17668# trigger a bug in pdksh 5.2.14.
17669for as_var in BASH_ENV ENV MAIL MAILPATH
17670do eval test x\${$as_var+set} = xset \
17671 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17672done
42ecbf5e
DJ
17673PS1='$ '
17674PS2='> '
17675PS4='+ '
17676
17677# NLS nuisances.
81ecdfbb
RW
17678LC_ALL=C
17679export LC_ALL
17680LANGUAGE=C
17681export LANGUAGE
17682
17683# CDPATH.
17684(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17685
17686
d0ac1c44
SM
17687# as_fn_error STATUS ERROR [LINENO LOG_FD]
17688# ----------------------------------------
81ecdfbb
RW
17689# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17690# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
d0ac1c44 17691# script with STATUS, using 1 if that was 0.
81ecdfbb
RW
17692as_fn_error ()
17693{
d0ac1c44
SM
17694 as_status=$1; test $as_status -eq 0 && as_status=1
17695 if test "$4"; then
17696 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17697 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
42ecbf5e 17698 fi
d0ac1c44 17699 $as_echo "$as_me: error: $2" >&2
81ecdfbb
RW
17700 as_fn_exit $as_status
17701} # as_fn_error
17702
17703
17704# as_fn_set_status STATUS
17705# -----------------------
17706# Set $? to STATUS, without forking.
17707as_fn_set_status ()
17708{
17709 return $1
17710} # as_fn_set_status
17711
17712# as_fn_exit STATUS
17713# -----------------
17714# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17715as_fn_exit ()
17716{
17717 set +e
17718 as_fn_set_status $1
17719 exit $1
17720} # as_fn_exit
17721
17722# as_fn_unset VAR
17723# ---------------
17724# Portably unset VAR.
17725as_fn_unset ()
17726{
17727 { eval $1=; unset $1;}
17728}
17729as_unset=as_fn_unset
17730# as_fn_append VAR VALUE
17731# ----------------------
17732# Append the text in VALUE to the end of the definition contained in VAR. Take
17733# advantage of any shell optimizations that allow amortized linear growth over
17734# repeated appends, instead of the typical quadratic growth present in naive
17735# implementations.
17736if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17737 eval 'as_fn_append ()
17738 {
17739 eval $1+=\$2
17740 }'
17741else
17742 as_fn_append ()
17743 {
17744 eval $1=\$$1\$2
17745 }
17746fi # as_fn_append
17747
17748# as_fn_arith ARG...
17749# ------------------
17750# Perform arithmetic evaluation on the ARGs, and store the result in the
17751# global $as_val. Take advantage of shells that can avoid forks. The arguments
17752# must be portable across $(()) and expr.
17753if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17754 eval 'as_fn_arith ()
17755 {
17756 as_val=$(( $* ))
17757 }'
17758else
17759 as_fn_arith ()
17760 {
17761 as_val=`expr "$@" || test $? -eq 1`
17762 }
17763fi # as_fn_arith
17764
42ecbf5e 17765
81ecdfbb
RW
17766if expr a : '\(a\)' >/dev/null 2>&1 &&
17767 test "X`expr 00001 : '.*\(...\)'`" = X001; then
42ecbf5e
DJ
17768 as_expr=expr
17769else
17770 as_expr=false
17771fi
17772
81ecdfbb 17773if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
42ecbf5e
DJ
17774 as_basename=basename
17775else
17776 as_basename=false
17777fi
17778
81ecdfbb
RW
17779if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17780 as_dirname=dirname
17781else
17782 as_dirname=false
17783fi
42ecbf5e 17784
81ecdfbb 17785as_me=`$as_basename -- "$0" ||
42ecbf5e
DJ
17786$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17787 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
17788 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17789$as_echo X/"$0" |
17790 sed '/^.*\/\([^/][^/]*\)\/*$/{
17791 s//\1/
17792 q
17793 }
17794 /^X\/\(\/\/\)$/{
17795 s//\1/
17796 q
17797 }
17798 /^X\/\(\/\).*/{
17799 s//\1/
17800 q
17801 }
17802 s/.*/./; q'`
42ecbf5e 17803
42ecbf5e
DJ
17804# Avoid depending upon Character Ranges.
17805as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17806as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17807as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17808as_cr_digits='0123456789'
17809as_cr_alnum=$as_cr_Letters$as_cr_digits
17810
81ecdfbb
RW
17811ECHO_C= ECHO_N= ECHO_T=
17812case `echo -n x` in #(((((
17813-n*)
17814 case `echo 'xy\c'` in
17815 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17816 xy) ECHO_C='\c';;
17817 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17818 ECHO_T=' ';;
17819 esac;;
17820*)
17821 ECHO_N='-n';;
42ecbf5e 17822esac
252b5132 17823
81ecdfbb
RW
17824rm -f conf$$ conf$$.exe conf$$.file
17825if test -d conf$$.dir; then
17826 rm -f conf$$.dir/conf$$.file
42ecbf5e 17827else
81ecdfbb
RW
17828 rm -f conf$$.dir
17829 mkdir conf$$.dir 2>/dev/null
42ecbf5e 17830fi
81ecdfbb
RW
17831if (echo >conf$$.file) 2>/dev/null; then
17832 if ln -s conf$$.file conf$$ 2>/dev/null; then
42ecbf5e 17833 as_ln_s='ln -s'
81ecdfbb
RW
17834 # ... but there are two gotchas:
17835 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17836 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
d0ac1c44 17837 # In both cases, we have to default to `cp -pR'.
81ecdfbb 17838 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d0ac1c44 17839 as_ln_s='cp -pR'
81ecdfbb
RW
17840 elif ln conf$$.file conf$$ 2>/dev/null; then
17841 as_ln_s=ln
17842 else
d0ac1c44 17843 as_ln_s='cp -pR'
252b5132 17844 fi
e5a52504 17845else
d0ac1c44 17846 as_ln_s='cp -pR'
e5a52504 17847fi
81ecdfbb
RW
17848rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17849rmdir conf$$.dir 2>/dev/null
17850
17851
17852# as_fn_mkdir_p
17853# -------------
17854# Create "$as_dir" as a directory, including parents if necessary.
17855as_fn_mkdir_p ()
17856{
17857
17858 case $as_dir in #(
17859 -*) as_dir=./$as_dir;;
17860 esac
17861 test -d "$as_dir" || eval $as_mkdir_p || {
17862 as_dirs=
17863 while :; do
17864 case $as_dir in #(
17865 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17866 *) as_qdir=$as_dir;;
17867 esac
17868 as_dirs="'$as_qdir' $as_dirs"
17869 as_dir=`$as_dirname -- "$as_dir" ||
17870$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17871 X"$as_dir" : 'X\(//\)[^/]' \| \
17872 X"$as_dir" : 'X\(//\)$' \| \
17873 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17874$as_echo X"$as_dir" |
17875 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17876 s//\1/
17877 q
17878 }
17879 /^X\(\/\/\)[^/].*/{
17880 s//\1/
17881 q
17882 }
17883 /^X\(\/\/\)$/{
17884 s//\1/
17885 q
17886 }
17887 /^X\(\/\).*/{
17888 s//\1/
17889 q
17890 }
17891 s/.*/./; q'`
17892 test -d "$as_dir" && break
17893 done
17894 test -z "$as_dirs" || eval "mkdir $as_dirs"
d0ac1c44 17895 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
81ecdfbb 17896
252b5132 17897
81ecdfbb 17898} # as_fn_mkdir_p
42ecbf5e 17899if mkdir -p . 2>/dev/null; then
81ecdfbb 17900 as_mkdir_p='mkdir -p "$as_dir"'
42ecbf5e
DJ
17901else
17902 test -d ./-p && rmdir ./-p
17903 as_mkdir_p=false
17904fi
252b5132 17905
d0ac1c44
SM
17906
17907# as_fn_executable_p FILE
17908# -----------------------
17909# Test if FILE is an executable regular file.
17910as_fn_executable_p ()
17911{
17912 test -f "$1" && test -x "$1"
17913} # as_fn_executable_p
17914as_test_x='test -x'
17915as_executable_p=as_fn_executable_p
252b5132 17916
42ecbf5e
DJ
17917# Sed expression to map a string onto a valid CPP name.
17918as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
f234d5fe 17919
42ecbf5e
DJ
17920# Sed expression to map a string onto a valid variable name.
17921as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
e5a52504 17922
e5a52504 17923
42ecbf5e 17924exec 6>&1
81ecdfbb
RW
17925## ----------------------------------- ##
17926## Main body of $CONFIG_STATUS script. ##
17927## ----------------------------------- ##
17928_ASEOF
17929test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
e5a52504 17930
81ecdfbb
RW
17931cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17932# Save the log message, to keep $0 and so on meaningful, and to
42ecbf5e 17933# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
17934# values after options handling.
17935ac_log="
631ec08c 17936This file was extended by ld $as_me 2.39.50, which was
d0ac1c44 17937generated by GNU Autoconf 2.69. Invocation command line was
42ecbf5e
DJ
17938
17939 CONFIG_FILES = $CONFIG_FILES
17940 CONFIG_HEADERS = $CONFIG_HEADERS
17941 CONFIG_LINKS = $CONFIG_LINKS
17942 CONFIG_COMMANDS = $CONFIG_COMMANDS
17943 $ $0 $@
e5a52504 17944
81ecdfbb
RW
17945on `(hostname || uname -n) 2>/dev/null | sed 1q`
17946"
17947
42ecbf5e
DJ
17948_ACEOF
17949
81ecdfbb
RW
17950case $ac_config_files in *"
17951"*) set x $ac_config_files; shift; ac_config_files=$*;;
17952esac
e5a52504 17953
81ecdfbb
RW
17954case $ac_config_headers in *"
17955"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17956esac
42ecbf5e 17957
42ecbf5e 17958
81ecdfbb
RW
17959cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17960# Files that config.status was made for.
17961config_files="$ac_config_files"
17962config_headers="$ac_config_headers"
17963config_commands="$ac_config_commands"
42ecbf5e 17964
81ecdfbb 17965_ACEOF
42ecbf5e 17966
81ecdfbb 17967cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42ecbf5e 17968ac_cs_usage="\
81ecdfbb
RW
17969\`$as_me' instantiates files and other configuration actions
17970from templates according to the current configuration. Unless the files
17971and actions are specified as TAGs, all are instantiated by default.
42ecbf5e 17972
81ecdfbb 17973Usage: $0 [OPTION]... [TAG]...
42ecbf5e
DJ
17974
17975 -h, --help print this help, then exit
81ecdfbb 17976 -V, --version print version number and configuration settings, then exit
d0ac1c44 17977 --config print configuration, then exit
81ecdfbb
RW
17978 -q, --quiet, --silent
17979 do not print progress messages
42ecbf5e
DJ
17980 -d, --debug don't remove temporary files
17981 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
17982 --file=FILE[:TEMPLATE]
17983 instantiate the configuration file FILE
17984 --header=FILE[:TEMPLATE]
17985 instantiate the configuration header FILE
42ecbf5e
DJ
17986
17987Configuration files:
17988$config_files
17989
17990Configuration headers:
17991$config_headers
17992
17993Configuration commands:
17994$config_commands
17995
81ecdfbb 17996Report bugs to the package provider."
42ecbf5e 17997
81ecdfbb
RW
17998_ACEOF
17999cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d0ac1c44 18000ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
42ecbf5e 18001ac_cs_version="\\
631ec08c 18002ld config.status 2.39.50
d0ac1c44
SM
18003configured by $0, generated by GNU Autoconf 2.69,
18004 with options \\"\$ac_cs_config\\"
42ecbf5e 18005
d0ac1c44 18006Copyright (C) 2012 Free Software Foundation, Inc.
42ecbf5e
DJ
18007This config.status script is free software; the Free Software Foundation
18008gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
18009
18010ac_pwd='$ac_pwd'
18011srcdir='$srcdir'
18012INSTALL='$INSTALL'
18013MKDIR_P='$MKDIR_P'
18014AWK='$AWK'
18015test -n "\$AWK" || AWK=awk
42ecbf5e
DJ
18016_ACEOF
18017
81ecdfbb
RW
18018cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18019# The default lists apply if the user does not specify any file.
42ecbf5e
DJ
18020ac_need_defaults=:
18021while test $# != 0
18022do
18023 case $1 in
d0ac1c44 18024 --*=?*)
81ecdfbb
RW
18025 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18026 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
42ecbf5e 18027 ac_shift=:
252b5132 18028 ;;
d0ac1c44
SM
18029 --*=)
18030 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18031 ac_optarg=
18032 ac_shift=:
18033 ;;
81ecdfbb 18034 *)
42ecbf5e
DJ
18035 ac_option=$1
18036 ac_optarg=$2
18037 ac_shift=shift
252b5132 18038 ;;
42ecbf5e 18039 esac
252b5132 18040
42ecbf5e
DJ
18041 case $ac_option in
18042 # Handling of the options.
42ecbf5e
DJ
18043 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18044 ac_cs_recheck=: ;;
81ecdfbb
RW
18045 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18046 $as_echo "$ac_cs_version"; exit ;;
d0ac1c44
SM
18047 --config | --confi | --conf | --con | --co | --c )
18048 $as_echo "$ac_cs_config"; exit ;;
81ecdfbb 18049 --debug | --debu | --deb | --de | --d | -d )
42ecbf5e
DJ
18050 debug=: ;;
18051 --file | --fil | --fi | --f )
18052 $ac_shift
81ecdfbb
RW
18053 case $ac_optarg in
18054 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
d0ac1c44 18055 '') as_fn_error $? "missing file argument" ;;
81ecdfbb
RW
18056 esac
18057 as_fn_append CONFIG_FILES " '$ac_optarg'"
42ecbf5e
DJ
18058 ac_need_defaults=false;;
18059 --header | --heade | --head | --hea )
18060 $ac_shift
81ecdfbb
RW
18061 case $ac_optarg in
18062 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18063 esac
18064 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
42ecbf5e 18065 ac_need_defaults=false;;
81ecdfbb
RW
18066 --he | --h)
18067 # Conflict between --help and --header
d0ac1c44 18068 as_fn_error $? "ambiguous option: \`$1'
81ecdfbb
RW
18069Try \`$0 --help' for more information.";;
18070 --help | --hel | -h )
18071 $as_echo "$ac_cs_usage"; exit ;;
42ecbf5e
DJ
18072 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18073 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18074 ac_cs_silent=: ;;
252b5132 18075
42ecbf5e 18076 # This is an error.
d0ac1c44 18077 -*) as_fn_error $? "unrecognized option: \`$1'
81ecdfbb 18078Try \`$0 --help' for more information." ;;
252b5132 18079
81ecdfbb
RW
18080 *) as_fn_append ac_config_targets " $1"
18081 ac_need_defaults=false ;;
252b5132 18082
42ecbf5e
DJ
18083 esac
18084 shift
18085done
d15b04bd 18086
42ecbf5e 18087ac_configure_extra_args=
e5a52504 18088
42ecbf5e
DJ
18089if $ac_cs_silent; then
18090 exec 6>/dev/null
18091 ac_configure_extra_args="$ac_configure_extra_args --silent"
18092fi
e5a52504 18093
42ecbf5e 18094_ACEOF
81ecdfbb 18095cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42ecbf5e 18096if \$ac_cs_recheck; then
d0ac1c44 18097 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
81ecdfbb
RW
18098 shift
18099 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18100 CONFIG_SHELL='$SHELL'
18101 export CONFIG_SHELL
18102 exec "\$@"
42ecbf5e
DJ
18103fi
18104
18105_ACEOF
81ecdfbb
RW
18106cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18107exec 5>>config.log
18108{
18109 echo
18110 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18111## Running $as_me. ##
18112_ASBOX
18113 $as_echo "$ac_log"
18114} >&5
42ecbf5e 18115
81ecdfbb
RW
18116_ACEOF
18117cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
252b5132 18118#
81ecdfbb 18119# INIT-COMMANDS
252b5132 18120#
5bbe6ec5 18121AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
d7040cdb
SE
18122
18123
18124# The HP-UX ksh and POSIX shell print the target directory to stdout
18125# if CDPATH is set.
18126(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18127
18128sed_quote_subst='$sed_quote_subst'
18129double_quote_subst='$double_quote_subst'
18130delay_variable_subst='$delay_variable_subst'
3725885a
RW
18131macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18132macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18133enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18134enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18135pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18136enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18137SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18138ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18139host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18140host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18141host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18142build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18143build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18144build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18145SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18146Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18147GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18148EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18149FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18150LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18151NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18152LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18153max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18154ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18155exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18156lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18157lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18158lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18159reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18160reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18161OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18162deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18163file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18164AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18165AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18166STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18167RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18168old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18169old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18170old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18171lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18172CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18173CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18174compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18175GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18176lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18177lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18178lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18179lt_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"`'
18180objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18181MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18182lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18183lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18184lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18185lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18186lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18187need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18188DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18189NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18190LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18191OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18192OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18193libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18194shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18195extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18196archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18197enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18198export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18199whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18200compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18201old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18202old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18203archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18204archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18205module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18206module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18207with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18208allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18209no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18210hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18211hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
18212hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18213hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18214hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18215hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18216hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18217hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18218inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18219link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18220fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
18221always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18222export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18223exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18224include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18225prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18226file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18227variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18228need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18229need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18230version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18231runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18232shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18233shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18234libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18235library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18236soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18237install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18238postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18239postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18240finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18241finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18242hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18243sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18244sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18245hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18246enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18247enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18248enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18249old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18250striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
3cb62297
L
18251compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18252predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18253postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18254predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18255postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18256compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18257LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
18258reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
18259reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18260old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18261compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
18262GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
18263lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
18264lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
18265lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
18266lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
18267lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
18268archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
18269enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
18270export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18271whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18272compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
18273old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18274old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18275archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18276archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18277module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18278module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18279with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
18280allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18281no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18282hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18283hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
18284hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
18285hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
18286hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
18287hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
18288hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
18289hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
18290inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
18291link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
18292fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
18293always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
18294export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18295exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18296include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18297prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18298file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
18299hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
18300compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
18301predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18302postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18303predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
18304postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
18305compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
d7040cdb
SE
18306
18307LTCC='$LTCC'
18308LTCFLAGS='$LTCFLAGS'
18309compiler='$compiler_DEFAULT'
18310
3725885a
RW
18311# A function that is used when there is no print builtin or printf.
18312func_fallback_echo ()
18313{
18314 eval 'cat <<_LTECHO_EOF
18315\$1
18316_LTECHO_EOF'
18317}
18318
d7040cdb 18319# Quote evaled strings.
3725885a
RW
18320for var in SHELL \
18321ECHO \
18322SED \
d7040cdb
SE
18323GREP \
18324EGREP \
18325FGREP \
18326LD \
18327NM \
18328LN_S \
18329lt_SP2NL \
18330lt_NL2SP \
18331reload_flag \
b214d478 18332OBJDUMP \
d7040cdb
SE
18333deplibs_check_method \
18334file_magic_cmd \
18335AR \
18336AR_FLAGS \
18337STRIP \
18338RANLIB \
18339CC \
18340CFLAGS \
18341compiler \
18342lt_cv_sys_global_symbol_pipe \
18343lt_cv_sys_global_symbol_to_cdecl \
18344lt_cv_sys_global_symbol_to_c_name_address \
b214d478 18345lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
d7040cdb
SE
18346lt_prog_compiler_no_builtin_flag \
18347lt_prog_compiler_wl \
18348lt_prog_compiler_pic \
18349lt_prog_compiler_static \
18350lt_cv_prog_compiler_c_o \
18351need_locks \
b214d478
SE
18352DSYMUTIL \
18353NMEDIT \
18354LIPO \
18355OTOOL \
18356OTOOL64 \
d7040cdb
SE
18357shrext_cmds \
18358export_dynamic_flag_spec \
18359whole_archive_flag_spec \
18360compiler_needs_object \
18361with_gnu_ld \
18362allow_undefined_flag \
18363no_undefined_flag \
18364hardcode_libdir_flag_spec \
18365hardcode_libdir_flag_spec_ld \
18366hardcode_libdir_separator \
18367fix_srcfile_path \
18368exclude_expsyms \
18369include_expsyms \
18370file_list_spec \
18371variables_saved_for_relink \
18372libname_spec \
18373library_names_spec \
18374soname_spec \
3725885a 18375install_override_mode \
d7040cdb
SE
18376finish_eval \
18377old_striplib \
3cb62297
L
18378striplib \
18379compiler_lib_search_dirs \
18380predep_objects \
18381postdep_objects \
18382predeps \
18383postdeps \
18384compiler_lib_search_path \
18385LD_CXX \
18386reload_flag_CXX \
18387compiler_CXX \
18388lt_prog_compiler_no_builtin_flag_CXX \
18389lt_prog_compiler_wl_CXX \
18390lt_prog_compiler_pic_CXX \
18391lt_prog_compiler_static_CXX \
18392lt_cv_prog_compiler_c_o_CXX \
18393export_dynamic_flag_spec_CXX \
18394whole_archive_flag_spec_CXX \
18395compiler_needs_object_CXX \
18396with_gnu_ld_CXX \
18397allow_undefined_flag_CXX \
18398no_undefined_flag_CXX \
18399hardcode_libdir_flag_spec_CXX \
18400hardcode_libdir_flag_spec_ld_CXX \
18401hardcode_libdir_separator_CXX \
18402fix_srcfile_path_CXX \
18403exclude_expsyms_CXX \
18404include_expsyms_CXX \
18405file_list_spec_CXX \
18406compiler_lib_search_dirs_CXX \
18407predep_objects_CXX \
18408postdep_objects_CXX \
18409predeps_CXX \
18410postdeps_CXX \
18411compiler_lib_search_path_CXX; do
3725885a 18412 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
d7040cdb 18413 *[\\\\\\\`\\"\\\$]*)
3725885a 18414 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
d7040cdb
SE
18415 ;;
18416 *)
18417 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18418 ;;
18419 esac
18420done
18421
18422# Double-quote double-evaled strings.
18423for var in reload_cmds \
18424old_postinstall_cmds \
18425old_postuninstall_cmds \
18426old_archive_cmds \
18427extract_expsyms_cmds \
18428old_archive_from_new_cmds \
18429old_archive_from_expsyms_cmds \
18430archive_cmds \
18431archive_expsym_cmds \
18432module_cmds \
18433module_expsym_cmds \
18434export_symbols_cmds \
18435prelink_cmds \
18436postinstall_cmds \
18437postuninstall_cmds \
18438finish_cmds \
18439sys_lib_search_path_spec \
3cb62297
L
18440sys_lib_dlsearch_path_spec \
18441reload_cmds_CXX \
18442old_archive_cmds_CXX \
18443old_archive_from_new_cmds_CXX \
18444old_archive_from_expsyms_cmds_CXX \
18445archive_cmds_CXX \
18446archive_expsym_cmds_CXX \
18447module_cmds_CXX \
18448module_expsym_cmds_CXX \
18449export_symbols_cmds_CXX \
18450prelink_cmds_CXX; do
3725885a 18451 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
d7040cdb 18452 *[\\\\\\\`\\"\\\$]*)
3725885a 18453 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
d7040cdb
SE
18454 ;;
18455 *)
18456 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18457 ;;
18458 esac
18459done
18460
d7040cdb
SE
18461ac_aux_dir='$ac_aux_dir'
18462xsi_shell='$xsi_shell'
18463lt_shell_append='$lt_shell_append'
18464
18465# See if we are running on zsh, and set the options which allow our
18466# commands through without removal of \ escapes INIT.
18467if test -n "\${ZSH_VERSION+set}" ; then
18468 setopt NO_GLOB_SUBST
18469fi
18470
18471
18472 PACKAGE='$PACKAGE'
18473 VERSION='$VERSION'
18474 TIMESTAMP='$TIMESTAMP'
18475 RM='$RM'
18476 ofile='$ofile'
18477
18478
18479
3cb62297
L
18480
18481
20e95c23
DJ
18482# Capture the value of obsolete ALL_LINGUAS because we need it to compute
18483 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
18484 # from automake.
18485 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
18486 # Capture the value of LINGUAS because we need it to compute CATALOGS.
18487 LINGUAS="${LINGUAS-%UNSET%}"
18488
42ecbf5e 18489
33589acb 18490
42ecbf5e
DJ
18491_ACEOF
18492
81ecdfbb 18493cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42ecbf5e 18494
81ecdfbb 18495# Handling of arguments.
42ecbf5e 18496for ac_config_target in $ac_config_targets
252b5132 18497do
81ecdfbb
RW
18498 case $ac_config_target in
18499 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
81ecdfbb 18500 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
b879806f 18501 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
81ecdfbb 18502 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
33589acb 18503 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
81ecdfbb
RW
18504 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18505 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
18506
d0ac1c44 18507 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
252b5132
RH
18508 esac
18509done
18510
81ecdfbb 18511
42ecbf5e
DJ
18512# If the user did not use the arguments to specify the items to instantiate,
18513# then the envvar interface is used. Set only those that are not.
18514# We use the long form for the default assignment because of an extremely
18515# bizarre bug on SunOS 4.1.3.
18516if $ac_need_defaults; then
18517 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18518 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18519 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18520fi
18521
18522# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 18523# simply because there is no reason against having it here, and in addition,
42ecbf5e 18524# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
18525# Hook for its removal unless debugging.
18526# Note that there is a small window in which the directory will not be cleaned:
18527# after its creation but before its name has been assigned to `$tmp'.
42ecbf5e
DJ
18528$debug ||
18529{
d0ac1c44 18530 tmp= ac_tmp=
81ecdfbb 18531 trap 'exit_status=$?
d0ac1c44
SM
18532 : "${ac_tmp:=$tmp}"
18533 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
81ecdfbb
RW
18534' 0
18535 trap 'as_fn_exit 1' 1 2 13 15
42ecbf5e 18536}
42ecbf5e 18537# Create a (secure) tmp directory for tmp files.
e5a52504 18538
42ecbf5e 18539{
81ecdfbb 18540 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
d0ac1c44 18541 test -d "$tmp"
42ecbf5e
DJ
18542} ||
18543{
81ecdfbb
RW
18544 tmp=./conf$$-$RANDOM
18545 (umask 077 && mkdir "$tmp")
d0ac1c44
SM
18546} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18547ac_tmp=$tmp
81ecdfbb
RW
18548
18549# Set up the scripts for CONFIG_FILES section.
18550# No need to generate them if there are no CONFIG_FILES.
18551# This happens for instance with `./config.status config.h'.
18552if test -n "$CONFIG_FILES"; then
18553
50ff67e6 18554
81ecdfbb
RW
18555ac_cr=`echo X | tr X '\015'`
18556# On cygwin, bash can eat \r inside `` if the user requested igncr.
18557# But we know of no other shell where ac_cr would be empty at this
18558# point, so we can use a bashism as a fallback.
18559if test "x$ac_cr" = x; then
18560 eval ac_cr=\$\'\\r\'
18561fi
18562ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18563if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
d0ac1c44 18564 ac_cs_awk_cr='\\r'
81ecdfbb
RW
18565else
18566 ac_cs_awk_cr=$ac_cr
18567fi
18568
d0ac1c44 18569echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
81ecdfbb
RW
18570_ACEOF
18571
e5a52504 18572
81ecdfbb
RW
18573{
18574 echo "cat >conf$$subs.awk <<_ACEOF" &&
18575 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18576 echo "_ACEOF"
18577} >conf$$subs.sh ||
d0ac1c44
SM
18578 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18579ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
81ecdfbb
RW
18580ac_delim='%!_!# '
18581for ac_last_try in false false false false false :; do
18582 . ./conf$$subs.sh ||
d0ac1c44 18583 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
81ecdfbb
RW
18584
18585 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18586 if test $ac_delim_n = $ac_delim_num; then
18587 break
18588 elif $ac_last_try; then
d0ac1c44 18589 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
81ecdfbb
RW
18590 else
18591 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18592 fi
18593done
18594rm -f conf$$subs.sh
18595
18596cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d0ac1c44 18597cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
81ecdfbb
RW
18598_ACEOF
18599sed -n '
18600h
18601s/^/S["/; s/!.*/"]=/
18602p
18603g
18604s/^[^!]*!//
18605:repl
18606t repl
18607s/'"$ac_delim"'$//
18608t delim
18609:nl
18610h
d0ac1c44 18611s/\(.\{148\}\)..*/\1/
81ecdfbb
RW
18612t more1
18613s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18614p
18615n
18616b repl
18617:more1
18618s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18619p
18620g
18621s/.\{148\}//
18622t nl
18623:delim
18624h
d0ac1c44 18625s/\(.\{148\}\)..*/\1/
81ecdfbb
RW
18626t more2
18627s/["\\]/\\&/g; s/^/"/; s/$/"/
18628p
18629b
18630:more2
18631s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18632p
18633g
18634s/.\{148\}//
18635t delim
18636' <conf$$subs.awk | sed '
18637/^[^""]/{
18638 N
18639 s/\n//
18640}
18641' >>$CONFIG_STATUS || ac_write_fail=1
18642rm -f conf$$subs.awk
18643cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18644_ACAWK
d0ac1c44 18645cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
81ecdfbb
RW
18646 for (key in S) S_is_set[key] = 1
18647 FS = "\a"
50ff67e6 18648
81ecdfbb
RW
18649}
18650{
18651 line = $ 0
18652 nfields = split(line, field, "@")
18653 substed = 0
18654 len = length(field[1])
18655 for (i = 2; i < nfields; i++) {
18656 key = field[i]
18657 keylen = length(key)
18658 if (S_is_set[key]) {
18659 value = S[key]
18660 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18661 len += length(value) + length(field[++i])
18662 substed = 1
18663 } else
18664 len += 1 + keylen
18665 }
50ff67e6 18666
81ecdfbb
RW
18667 print line
18668}
50ff67e6 18669
81ecdfbb
RW
18670_ACAWK
18671_ACEOF
18672cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18673if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18674 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18675else
18676 cat
d0ac1c44
SM
18677fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18678 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
42ecbf5e 18679_ACEOF
d15b04bd 18680
d0ac1c44
SM
18681# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18682# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
81ecdfbb
RW
18683# trailing colons and then remove the whole line if VPATH becomes empty
18684# (actually we leave an empty line to preserve line numbers).
18685if test "x$srcdir" = x.; then
d0ac1c44
SM
18686 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18687h
18688s///
18689s/^/:/
18690s/[ ]*$/:/
18691s/:\$(srcdir):/:/g
18692s/:\${srcdir}:/:/g
18693s/:@srcdir@:/:/g
18694s/^:*//
81ecdfbb 18695s/:*$//
d0ac1c44
SM
18696x
18697s/\(=[ ]*\).*/\1/
18698G
18699s/\n//
81ecdfbb
RW
18700s/^[^=]*=[ ]*$//
18701}'
18702fi
18703
18704cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18705fi # test -n "$CONFIG_FILES"
42ecbf5e 18706
81ecdfbb
RW
18707# Set up the scripts for CONFIG_HEADERS section.
18708# No need to generate them if there are no CONFIG_HEADERS.
18709# This happens for instance with `./config.status Makefile'.
18710if test -n "$CONFIG_HEADERS"; then
d0ac1c44 18711cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
81ecdfbb
RW
18712BEGIN {
18713_ACEOF
42ecbf5e 18714
81ecdfbb
RW
18715# Transform confdefs.h into an awk script `defines.awk', embedded as
18716# here-document in config.status, that substitutes the proper values into
18717# config.h.in to produce config.h.
252b5132 18718
81ecdfbb
RW
18719# Create a delimiter string that does not exist in confdefs.h, to ease
18720# handling of long lines.
18721ac_delim='%!_!# '
18722for ac_last_try in false false :; do
d0ac1c44
SM
18723 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18724 if test -z "$ac_tt"; then
81ecdfbb
RW
18725 break
18726 elif $ac_last_try; then
d0ac1c44 18727 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
81ecdfbb
RW
18728 else
18729 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18730 fi
18731done
18732
18733# For the awk script, D is an array of macro values keyed by name,
18734# likewise P contains macro parameters if any. Preserve backslash
18735# newline sequences.
18736
18737ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18738sed -n '
18739s/.\{148\}/&'"$ac_delim"'/g
18740t rset
18741:rset
18742s/^[ ]*#[ ]*define[ ][ ]*/ /
18743t def
18744d
18745:def
18746s/\\$//
18747t bsnl
18748s/["\\]/\\&/g
18749s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18750D["\1"]=" \3"/p
18751s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18752d
18753:bsnl
18754s/["\\]/\\&/g
18755s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18756D["\1"]=" \3\\\\\\n"\\/p
18757t cont
18758s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18759t cont
18760d
18761:cont
18762n
18763s/.\{148\}/&'"$ac_delim"'/g
18764t clear
18765:clear
18766s/\\$//
18767t bsnlc
18768s/["\\]/\\&/g; s/^/"/; s/$/"/p
18769d
18770:bsnlc
18771s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18772b cont
18773' <confdefs.h | sed '
18774s/'"$ac_delim"'/"\\\
18775"/g' >>$CONFIG_STATUS || ac_write_fail=1
18776
18777cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18778 for (key in D) D_is_set[key] = 1
18779 FS = "\a"
18780}
18781/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18782 line = \$ 0
18783 split(line, arg, " ")
18784 if (arg[1] == "#") {
18785 defundef = arg[2]
18786 mac1 = arg[3]
18787 } else {
18788 defundef = substr(arg[1], 2)
18789 mac1 = arg[2]
18790 }
18791 split(mac1, mac2, "(") #)
18792 macro = mac2[1]
18793 prefix = substr(line, 1, index(line, defundef) - 1)
18794 if (D_is_set[macro]) {
18795 # Preserve the white space surrounding the "#".
18796 print prefix "define", macro P[macro] D[macro]
18797 next
18798 } else {
18799 # Replace #undef with comments. This is necessary, for example,
18800 # in the case of _POSIX_SOURCE, which is predefined and required
18801 # on some systems where configure will not decide to define it.
18802 if (defundef == "undef") {
18803 print "/*", prefix defundef, macro, "*/"
18804 next
18805 }
18806 }
18807}
18808{ print }
18809_ACAWK
42ecbf5e 18810_ACEOF
81ecdfbb 18811cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
d0ac1c44 18812 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
81ecdfbb 18813fi # test -n "$CONFIG_HEADERS"
42ecbf5e 18814
81ecdfbb
RW
18815
18816eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18817shift
18818for ac_tag
18819do
18820 case $ac_tag in
18821 :[FHLC]) ac_mode=$ac_tag; continue;;
18822 esac
18823 case $ac_mode$ac_tag in
18824 :[FHL]*:*);;
d0ac1c44 18825 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
81ecdfbb
RW
18826 :[FH]-) ac_tag=-:-;;
18827 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18828 esac
18829 ac_save_IFS=$IFS
18830 IFS=:
18831 set x $ac_tag
18832 IFS=$ac_save_IFS
18833 shift
18834 ac_file=$1
18835 shift
18836
18837 case $ac_mode in
18838 :L) ac_source=$1;;
18839 :[FH])
18840 ac_file_inputs=
18841 for ac_f
18842 do
18843 case $ac_f in
d0ac1c44 18844 -) ac_f="$ac_tmp/stdin";;
81ecdfbb
RW
18845 *) # Look for the file first in the build tree, then in the source tree
18846 # (if the path is not absolute). The absolute path cannot be DOS-style,
18847 # because $ac_f cannot contain `:'.
18848 test -f "$ac_f" ||
18849 case $ac_f in
18850 [\\/$]*) false;;
18851 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18852 esac ||
d0ac1c44 18853 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
81ecdfbb
RW
18854 esac
18855 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18856 as_fn_append ac_file_inputs " '$ac_f'"
18857 done
18858
18859 # Let's still pretend it is `configure' which instantiates (i.e., don't
18860 # use $as_me), people would be surprised to read:
18861 # /* config.h. Generated by config.status. */
18862 configure_input='Generated from '`
18863 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18864 `' by configure.'
18865 if test x"$ac_file" != x-; then
18866 configure_input="$ac_file. $configure_input"
18867 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18868$as_echo "$as_me: creating $ac_file" >&6;}
252b5132 18869 fi
81ecdfbb
RW
18870 # Neutralize special characters interpreted by sed in replacement strings.
18871 case $configure_input in #(
18872 *\&* | *\|* | *\\* )
18873 ac_sed_conf_input=`$as_echo "$configure_input" |
18874 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18875 *) ac_sed_conf_input=$configure_input;;
18876 esac
252b5132 18877
81ecdfbb 18878 case $ac_tag in
d0ac1c44
SM
18879 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18880 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
81ecdfbb
RW
18881 esac
18882 ;;
252b5132
RH
18883 esac
18884
81ecdfbb 18885 ac_dir=`$as_dirname -- "$ac_file" ||
42ecbf5e
DJ
18886$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18887 X"$ac_file" : 'X\(//\)[^/]' \| \
18888 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
18889 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18890$as_echo X"$ac_file" |
18891 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18892 s//\1/
18893 q
18894 }
18895 /^X\(\/\/\)[^/].*/{
18896 s//\1/
18897 q
18898 }
18899 /^X\(\/\/\)$/{
18900 s//\1/
18901 q
18902 }
18903 /^X\(\/\).*/{
18904 s//\1/
18905 q
18906 }
18907 s/.*/./; q'`
18908 as_dir="$ac_dir"; as_fn_mkdir_p
42ecbf5e
DJ
18909 ac_builddir=.
18910
81ecdfbb
RW
18911case "$ac_dir" in
18912.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18913*)
18914 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18915 # A ".." for each directory in $ac_dir_suffix.
18916 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18917 case $ac_top_builddir_sub in
18918 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18919 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18920 esac ;;
18921esac
18922ac_abs_top_builddir=$ac_pwd
18923ac_abs_builddir=$ac_pwd$ac_dir_suffix
18924# for backward compatibility:
18925ac_top_builddir=$ac_top_build_prefix
252b5132 18926
42ecbf5e 18927case $srcdir in
81ecdfbb 18928 .) # We are building in place.
42ecbf5e 18929 ac_srcdir=.
81ecdfbb
RW
18930 ac_top_srcdir=$ac_top_builddir_sub
18931 ac_abs_top_srcdir=$ac_pwd ;;
18932 [\\/]* | ?:[\\/]* ) # Absolute name.
42ecbf5e 18933 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
18934 ac_top_srcdir=$srcdir
18935 ac_abs_top_srcdir=$srcdir ;;
18936 *) # Relative name.
18937 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18938 ac_top_srcdir=$ac_top_build_prefix$srcdir
18939 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
42ecbf5e 18940esac
81ecdfbb 18941ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
42ecbf5e 18942
252b5132 18943
81ecdfbb
RW
18944 case $ac_mode in
18945 :F)
18946 #
18947 # CONFIG_FILE
18948 #
e5a52504 18949
42ecbf5e
DJ
18950 case $INSTALL in
18951 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb
RW
18952 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18953 esac
18954 ac_MKDIR_P=$MKDIR_P
18955 case $MKDIR_P in
18956 [\\/$]* | ?:[\\/]* ) ;;
18957 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
d15b04bd 18958 esac
81ecdfbb 18959_ACEOF
e5a52504 18960
81ecdfbb
RW
18961cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18962# If the template does not know about datarootdir, expand it.
18963# FIXME: This hack should be removed a few years after 2.60.
18964ac_datarootdir_hack=; ac_datarootdir_seen=
18965ac_sed_dataroot='
18966/datarootdir/ {
18967 p
18968 q
18969}
18970/@datadir@/p
18971/@docdir@/p
18972/@infodir@/p
18973/@localedir@/p
18974/@mandir@/p'
18975case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18976*datarootdir*) ac_datarootdir_seen=yes;;
18977*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18979$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18980_ACEOF
18981cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18982 ac_datarootdir_hack='
18983 s&@datadir@&$datadir&g
18984 s&@docdir@&$docdir&g
18985 s&@infodir@&$infodir&g
18986 s&@localedir@&$localedir&g
18987 s&@mandir@&$mandir&g
18988 s&\\\${datarootdir}&$datarootdir&g' ;;
18989esac
42ecbf5e 18990_ACEOF
81ecdfbb
RW
18991
18992# Neutralize VPATH when `$srcdir' = `.'.
18993# Shell code in configure.ac might set extrasub.
18994# FIXME: do we really want to maintain this feature?
18995cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18996ac_sed_extra="$ac_vpsub
42ecbf5e
DJ
18997$extrasub
18998_ACEOF
81ecdfbb 18999cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42ecbf5e
DJ
19000:t
19001/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
19002s|@configure_input@|$ac_sed_conf_input|;t t
19003s&@top_builddir@&$ac_top_builddir_sub&;t t
19004s&@top_build_prefix@&$ac_top_build_prefix&;t t
19005s&@srcdir@&$ac_srcdir&;t t
19006s&@abs_srcdir@&$ac_abs_srcdir&;t t
19007s&@top_srcdir@&$ac_top_srcdir&;t t
19008s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19009s&@builddir@&$ac_builddir&;t t
19010s&@abs_builddir@&$ac_abs_builddir&;t t
19011s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19012s&@INSTALL@&$ac_INSTALL&;t t
19013s&@MKDIR_P@&$ac_MKDIR_P&;t t
19014$ac_datarootdir_hack
19015"
50ff67e6 19016eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
d0ac1c44 19017 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
81ecdfbb
RW
19018
19019test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
d0ac1c44
SM
19020 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19021 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19022 "$ac_tmp/out"`; test -z "$ac_out"; } &&
81ecdfbb 19023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d0ac1c44 19024which seems to be undefined. Please make sure it is defined" >&5
81ecdfbb 19025$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d0ac1c44 19026which seems to be undefined. Please make sure it is defined" >&2;}
81ecdfbb 19027
d0ac1c44 19028 rm -f "$ac_tmp/stdin"
42ecbf5e 19029 case $ac_file in
d0ac1c44
SM
19030 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19031 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
81ecdfbb 19032 esac \
d0ac1c44 19033 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
81ecdfbb
RW
19034 ;;
19035 :H)
19036 #
19037 # CONFIG_HEADER
19038 #
42ecbf5e 19039 if test x"$ac_file" != x-; then
81ecdfbb
RW
19040 {
19041 $as_echo "/* $configure_input */" \
d0ac1c44
SM
19042 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19043 } >"$ac_tmp/config.h" \
19044 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19045 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
81ecdfbb
RW
19046 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19047$as_echo "$as_me: $ac_file is unchanged" >&6;}
42ecbf5e 19048 else
81ecdfbb 19049 rm -f "$ac_file"
d0ac1c44
SM
19050 mv "$ac_tmp/config.h" "$ac_file" \
19051 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
252b5132 19052 fi
42ecbf5e 19053 else
81ecdfbb 19054 $as_echo "/* $configure_input */" \
d0ac1c44
SM
19055 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19056 || as_fn_error $? "could not create -" "$LINENO" 5
e5a52504 19057 fi
81ecdfbb
RW
19058# Compute "$ac_file"'s index in $config_headers.
19059_am_arg="$ac_file"
42ecbf5e
DJ
19060_am_stamp_count=1
19061for _am_header in $config_headers :; do
19062 case $_am_header in
81ecdfbb 19063 $_am_arg | $_am_arg:* )
42ecbf5e
DJ
19064 break ;;
19065 * )
19066 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19067 esac
19068done
81ecdfbb
RW
19069echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19070$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19071 X"$_am_arg" : 'X\(//\)[^/]' \| \
19072 X"$_am_arg" : 'X\(//\)$' \| \
19073 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19074$as_echo X"$_am_arg" |
19075 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19076 s//\1/
19077 q
19078 }
19079 /^X\(\/\/\)[^/].*/{
19080 s//\1/
19081 q
19082 }
19083 /^X\(\/\/\)$/{
19084 s//\1/
19085 q
19086 }
19087 /^X\(\/\).*/{
19088 s//\1/
19089 q
19090 }
19091 s/.*/./; q'`/stamp-h$_am_stamp_count
19092 ;;
42ecbf5e 19093
81ecdfbb
RW
19094 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19095$as_echo "$as_me: executing $ac_file commands" >&6;}
19096 ;;
19097 esac
42ecbf5e
DJ
19098
19099
81ecdfbb
RW
19100 case $ac_file$ac_mode in
19101 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
d0ac1c44 19102 # Older Autoconf quotes --file arguments for eval, but not when files
81ecdfbb
RW
19103 # are listed without --file. Let's play safe and only enable the eval
19104 # if we detect the quoting.
5bbe6ec5
NC
19105 case $CONFIG_FILES in
19106 *\'*) eval set x "$CONFIG_FILES" ;;
19107 *) set x $CONFIG_FILES ;;
19108 esac
81ecdfbb 19109 shift
5bbe6ec5 19110 for mf
81ecdfbb
RW
19111 do
19112 # Strip MF so we end up with the name of the file.
5bbe6ec5
NC
19113 mf=`echo "$mf" | sed -e 's/:.*$//'`
19114 # Check whether this is an Automake generated Makefile or not.
19115 # We used to match only the files named 'Makefile.in', but
19116 # some people rename them; so instead we look at the file content.
19117 # Grep'ing the first line is not enough: some people post-process
19118 # each Makefile.in and add a new line on top of each file to say so.
19119 # Grep'ing the whole file is not good either: AIX grep has a line
81ecdfbb 19120 # limit of 2048, but all sed's we know have understand at least 4000.
5bbe6ec5
NC
19121 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19122 dirpart=`$as_dirname -- "$mf" ||
19123$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19124 X"$mf" : 'X\(//\)[^/]' \| \
19125 X"$mf" : 'X\(//\)$' \| \
19126 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19127$as_echo X"$mf" |
81ecdfbb
RW
19128 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19129 s//\1/
19130 q
19131 }
19132 /^X\(\/\/\)[^/].*/{
19133 s//\1/
19134 q
19135 }
19136 /^X\(\/\/\)$/{
19137 s//\1/
19138 q
19139 }
19140 /^X\(\/\).*/{
19141 s//\1/
19142 q
19143 }
19144 s/.*/./; q'`
5bbe6ec5
NC
19145 else
19146 continue
19147 fi
19148 # Extract the definition of DEPDIR, am__include, and am__quote
19149 # from the Makefile without running 'make'.
19150 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19151 test -z "$DEPDIR" && continue
19152 am__include=`sed -n 's/^am__include = //p' < "$mf"`
19153 test -z "$am__include" && continue
19154 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19155 # Find all dependency output files, they are included files with
19156 # $(DEPDIR) in their names. We invoke sed twice because it is the
19157 # simplest approach to changing $(DEPDIR) to its actual value in the
19158 # expansion.
19159 for file in `sed -n "
19160 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19161 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
19162 # Make sure the directory exists.
19163 test -f "$dirpart/$file" && continue
19164 fdir=`$as_dirname -- "$file" ||
19165$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19166 X"$file" : 'X\(//\)[^/]' \| \
19167 X"$file" : 'X\(//\)$' \| \
19168 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19169$as_echo X"$file" |
19170 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
81ecdfbb
RW
19171 s//\1/
19172 q
19173 }
5bbe6ec5 19174 /^X\(\/\/\)[^/].*/{
b232f81a
NA
19175 s//\1/
19176 q
19177 }
5bbe6ec5
NC
19178 /^X\(\/\/\)$/{
19179 s//\1/
19180 q
19181 }
19182 /^X\(\/\).*/{
81ecdfbb
RW
19183 s//\1/
19184 q
19185 }
19186 s/.*/./; q'`
5bbe6ec5
NC
19187 as_dir=$dirpart/$fdir; as_fn_mkdir_p
19188 # echo "creating $dirpart/$file"
19189 echo '# dummy' > "$dirpart/$file"
19190 done
42ecbf5e 19191 done
81ecdfbb 19192}
d7040cdb 19193 ;;
81ecdfbb 19194 "libtool":C)
d7040cdb
SE
19195
19196 # See if we are running on zsh, and set the options which allow our
19197 # commands through without removal of \ escapes.
19198 if test -n "${ZSH_VERSION+set}" ; then
19199 setopt NO_GLOB_SUBST
19200 fi
19201
19202 cfgfile="${ofile}T"
19203 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19204 $RM "$cfgfile"
19205
19206 cat <<_LT_EOF >> "$cfgfile"
19207#! $SHELL
19208
19209# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
b214d478 19210# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
d7040cdb
SE
19211# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19212# NOTE: Changes made to this file will be lost: look at ltmain.sh.
19213#
b214d478 19214# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
3725885a 19215# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
b214d478 19216# Written by Gordon Matzigkeit, 1996
d7040cdb 19217#
b214d478 19218# This file is part of GNU Libtool.
d7040cdb 19219#
b214d478
SE
19220# GNU Libtool is free software; you can redistribute it and/or
19221# modify it under the terms of the GNU General Public License as
19222# published by the Free Software Foundation; either version 2 of
19223# the License, or (at your option) any later version.
d7040cdb 19224#
b214d478
SE
19225# As a special exception to the GNU General Public License,
19226# if you distribute this file as part of a program or library that
19227# is built using GNU Libtool, you may include this file under the
19228# same distribution terms that you use for the rest of that program.
d7040cdb 19229#
b214d478
SE
19230# GNU Libtool is distributed in the hope that it will be useful,
19231# but WITHOUT ANY WARRANTY; without even the implied warranty of
19232# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19233# GNU General Public License for more details.
d7040cdb 19234#
b214d478
SE
19235# You should have received a copy of the GNU General Public License
19236# along with GNU Libtool; see the file COPYING. If not, a copy
19237# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19238# obtained by writing to the Free Software Foundation, Inc.,
19239# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
d7040cdb
SE
19240
19241
19242# The names of the tagged configurations supported by this script.
3cb62297 19243available_tags="CXX "
d7040cdb
SE
19244
19245# ### BEGIN LIBTOOL CONFIG
19246
19247# Which release of libtool.m4 was used?
19248macro_version=$macro_version
19249macro_revision=$macro_revision
19250
19251# Whether or not to build shared libraries.
19252build_libtool_libs=$enable_shared
19253
19254# Whether or not to build static libraries.
19255build_old_libs=$enable_static
19256
19257# What type of objects to build.
19258pic_mode=$pic_mode
19259
19260# Whether or not to optimize for fast installation.
19261fast_install=$enable_fast_install
19262
3725885a
RW
19263# Shell to use when invoking shell scripts.
19264SHELL=$lt_SHELL
19265
19266# An echo program that protects backslashes.
19267ECHO=$lt_ECHO
19268
d7040cdb
SE
19269# The host system.
19270host_alias=$host_alias
19271host=$host
19272host_os=$host_os
19273
19274# The build system.
19275build_alias=$build_alias
19276build=$build
19277build_os=$build_os
19278
19279# A sed program that does not truncate output.
19280SED=$lt_SED
19281
19282# Sed that helps us avoid accidentally triggering echo(1) options like -n.
19283Xsed="\$SED -e 1s/^X//"
19284
19285# A grep program that handles long lines.
19286GREP=$lt_GREP
19287
19288# An ERE matcher.
19289EGREP=$lt_EGREP
19290
19291# A literal string matcher.
19292FGREP=$lt_FGREP
19293
19294# A BSD- or MS-compatible name lister.
19295NM=$lt_NM
19296
19297# Whether we need soft or hard links.
19298LN_S=$lt_LN_S
19299
19300# What is the maximum length of a command?
19301max_cmd_len=$max_cmd_len
19302
19303# Object file suffix (normally "o").
19304objext=$ac_objext
19305
19306# Executable file suffix (normally "").
19307exeext=$exeext
19308
19309# whether the shell understands "unset".
19310lt_unset=$lt_unset
19311
19312# turn spaces into newlines.
19313SP2NL=$lt_lt_SP2NL
19314
19315# turn newlines into spaces.
19316NL2SP=$lt_lt_NL2SP
19317
b214d478
SE
19318# An object symbol dumper.
19319OBJDUMP=$lt_OBJDUMP
19320
d7040cdb
SE
19321# Method to check whether dependent libraries are shared objects.
19322deplibs_check_method=$lt_deplibs_check_method
19323
19324# Command to use when deplibs_check_method == "file_magic".
19325file_magic_cmd=$lt_file_magic_cmd
19326
19327# The archiver.
19328AR=$lt_AR
19329AR_FLAGS=$lt_AR_FLAGS
19330
19331# A symbol stripping program.
19332STRIP=$lt_STRIP
19333
19334# Commands used to install an old-style archive.
19335RANLIB=$lt_RANLIB
19336old_postinstall_cmds=$lt_old_postinstall_cmds
19337old_postuninstall_cmds=$lt_old_postuninstall_cmds
19338
3725885a
RW
19339# Whether to use a lock for old archive extraction.
19340lock_old_archive_extraction=$lock_old_archive_extraction
19341
d7040cdb
SE
19342# A C compiler.
19343LTCC=$lt_CC
19344
19345# LTCC compiler flags.
19346LTCFLAGS=$lt_CFLAGS
19347
19348# Take the output of nm and produce a listing of raw symbols and C names.
19349global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19350
19351# Transform the output of nm in a proper C declaration.
19352global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19353
19354# Transform the output of nm in a C name address pair.
19355global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19356
b214d478
SE
19357# Transform the output of nm in a C name address pair when lib prefix is needed.
19358global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19359
d7040cdb
SE
19360# The name of the directory that contains temporary libtool files.
19361objdir=$objdir
19362
d7040cdb
SE
19363# Used to examine libraries when file_magic_cmd begins with "file".
19364MAGIC_CMD=$MAGIC_CMD
19365
19366# Must we lock files when doing compilation?
19367need_locks=$lt_need_locks
19368
b214d478
SE
19369# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19370DSYMUTIL=$lt_DSYMUTIL
19371
19372# Tool to change global to local symbols on Mac OS X.
19373NMEDIT=$lt_NMEDIT
19374
19375# Tool to manipulate fat objects and archives on Mac OS X.
19376LIPO=$lt_LIPO
19377
19378# ldd/readelf like tool for Mach-O binaries on Mac OS X.
19379OTOOL=$lt_OTOOL
19380
19381# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19382OTOOL64=$lt_OTOOL64
19383
d7040cdb
SE
19384# Old archive suffix (normally "a").
19385libext=$libext
19386
19387# Shared library suffix (normally ".so").
19388shrext_cmds=$lt_shrext_cmds
19389
19390# The commands to extract the exported symbol list from a shared archive.
19391extract_expsyms_cmds=$lt_extract_expsyms_cmds
19392
19393# Variables whose values should be saved in libtool wrapper scripts and
19394# restored at link time.
19395variables_saved_for_relink=$lt_variables_saved_for_relink
19396
19397# Do we need the "lib" prefix for modules?
19398need_lib_prefix=$need_lib_prefix
19399
19400# Do we need a version for libraries?
19401need_version=$need_version
19402
19403# Library versioning type.
19404version_type=$version_type
19405
19406# Shared library runtime path variable.
19407runpath_var=$runpath_var
19408
19409# Shared library path variable.
19410shlibpath_var=$shlibpath_var
19411
19412# Is shlibpath searched before the hard-coded library search path?
19413shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19414
19415# Format of library name prefix.
19416libname_spec=$lt_libname_spec
19417
19418# List of archive names. First name is the real one, the rest are links.
19419# The last name is the one that the linker finds with -lNAME
19420library_names_spec=$lt_library_names_spec
19421
19422# The coded name of the library, if different from the real name.
19423soname_spec=$lt_soname_spec
19424
3725885a
RW
19425# Permission mode override for installation of shared libraries.
19426install_override_mode=$lt_install_override_mode
19427
d7040cdb
SE
19428# Command to use after installation of a shared archive.
19429postinstall_cmds=$lt_postinstall_cmds
19430
19431# Command to use after uninstallation of a shared archive.
19432postuninstall_cmds=$lt_postuninstall_cmds
19433
19434# Commands used to finish a libtool library installation in a directory.
19435finish_cmds=$lt_finish_cmds
19436
19437# As "finish_cmds", except a single script fragment to be evaled but
19438# not shown.
19439finish_eval=$lt_finish_eval
19440
19441# Whether we should hardcode library paths into libraries.
19442hardcode_into_libs=$hardcode_into_libs
19443
19444# Compile-time system search path for libraries.
19445sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19446
19447# Run-time system search path for libraries.
19448sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19449
19450# Whether dlopen is supported.
19451dlopen_support=$enable_dlopen
19452
19453# Whether dlopen of programs is supported.
19454dlopen_self=$enable_dlopen_self
19455
19456# Whether dlopen of statically linked programs is supported.
19457dlopen_self_static=$enable_dlopen_self_static
19458
19459# Commands to strip libraries.
19460old_striplib=$lt_old_striplib
19461striplib=$lt_striplib
19462
19463
19464# The linker used to build libraries.
19465LD=$lt_LD
19466
3725885a
RW
19467# How to create reloadable object files.
19468reload_flag=$lt_reload_flag
19469reload_cmds=$lt_reload_cmds
19470
d7040cdb
SE
19471# Commands used to build an old-style archive.
19472old_archive_cmds=$lt_old_archive_cmds
19473
19474# A language specific compiler.
19475CC=$lt_compiler
19476
19477# Is the compiler the GNU compiler?
19478with_gcc=$GCC
19479
19480# Compiler flag to turn off builtin functions.
19481no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19482
19483# How to pass a linker flag through the compiler.
19484wl=$lt_lt_prog_compiler_wl
19485
19486# Additional compiler flags for building library objects.
19487pic_flag=$lt_lt_prog_compiler_pic
19488
19489# Compiler flag to prevent dynamic linking.
19490link_static_flag=$lt_lt_prog_compiler_static
19491
19492# Does compiler simultaneously support -c and -o options?
19493compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19494
19495# Whether or not to add -lc for building shared libraries.
19496build_libtool_need_lc=$archive_cmds_need_lc
19497
19498# Whether or not to disallow shared libs when runtime libs are static.
19499allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19500
19501# Compiler flag to allow reflexive dlopens.
19502export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19503
19504# Compiler flag to generate shared objects directly from archives.
19505whole_archive_flag_spec=$lt_whole_archive_flag_spec
19506
19507# Whether the compiler copes with passing no objects directly.
19508compiler_needs_object=$lt_compiler_needs_object
19509
19510# Create an old-style archive from a shared archive.
19511old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19512
19513# Create a temporary old-style archive to link instead of a shared archive.
19514old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19515
19516# Commands used to build a shared archive.
19517archive_cmds=$lt_archive_cmds
19518archive_expsym_cmds=$lt_archive_expsym_cmds
19519
19520# Commands used to build a loadable module if different from building
19521# a shared archive.
19522module_cmds=$lt_module_cmds
19523module_expsym_cmds=$lt_module_expsym_cmds
19524
19525# Whether we are building with GNU ld or not.
19526with_gnu_ld=$lt_with_gnu_ld
19527
19528# Flag that allows shared libraries with undefined symbols to be built.
19529allow_undefined_flag=$lt_allow_undefined_flag
19530
19531# Flag that enforces no undefined symbols.
19532no_undefined_flag=$lt_no_undefined_flag
19533
19534# Flag to hardcode \$libdir into a binary during linking.
19535# This must work even if \$libdir does not exist
19536hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19537
19538# If ld is used when linking, flag to hardcode \$libdir into a binary
19539# during linking. This must work even if \$libdir does not exist.
19540hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19541
19542# Whether we need a single "-rpath" flag with a separated argument.
19543hardcode_libdir_separator=$lt_hardcode_libdir_separator
19544
19545# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19546# DIR into the resulting binary.
19547hardcode_direct=$hardcode_direct
19548
19549# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19550# DIR into the resulting binary and the resulting library dependency is
19551# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19552# library is relocated.
19553hardcode_direct_absolute=$hardcode_direct_absolute
19554
19555# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19556# into the resulting binary.
19557hardcode_minus_L=$hardcode_minus_L
19558
19559# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19560# into the resulting binary.
19561hardcode_shlibpath_var=$hardcode_shlibpath_var
19562
19563# Set to "yes" if building a shared library automatically hardcodes DIR
19564# into the library and all subsequent libraries and executables linked
19565# against it.
19566hardcode_automatic=$hardcode_automatic
19567
19568# Set to yes if linker adds runtime paths of dependent libraries
19569# to runtime path list.
19570inherit_rpath=$inherit_rpath
19571
19572# Whether libtool must link a program against all its dependency libraries.
19573link_all_deplibs=$link_all_deplibs
19574
19575# Fix the shell variable \$srcfile for the compiler.
19576fix_srcfile_path=$lt_fix_srcfile_path
19577
19578# Set to "yes" if exported symbols are required.
19579always_export_symbols=$always_export_symbols
19580
19581# The commands to list exported symbols.
19582export_symbols_cmds=$lt_export_symbols_cmds
19583
19584# Symbols that should not be listed in the preloaded symbols.
19585exclude_expsyms=$lt_exclude_expsyms
19586
19587# Symbols that must always be exported.
19588include_expsyms=$lt_include_expsyms
19589
19590# Commands necessary for linking programs (against libraries) with templates.
19591prelink_cmds=$lt_prelink_cmds
19592
19593# Specify filename containing input files.
19594file_list_spec=$lt_file_list_spec
19595
19596# How to hardcode a shared library path into an executable.
19597hardcode_action=$hardcode_action
19598
3cb62297
L
19599# The directories searched by this compiler when creating a shared library.
19600compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19601
19602# Dependencies to place before and after the objects being linked to
19603# create a shared library.
19604predep_objects=$lt_predep_objects
19605postdep_objects=$lt_postdep_objects
19606predeps=$lt_predeps
19607postdeps=$lt_postdeps
19608
19609# The library search path used internally by the compiler when linking
19610# a shared library.
19611compiler_lib_search_path=$lt_compiler_lib_search_path
19612
d7040cdb
SE
19613# ### END LIBTOOL CONFIG
19614
19615_LT_EOF
19616
19617 case $host_os in
19618 aix3*)
19619 cat <<\_LT_EOF >> "$cfgfile"
19620# AIX sometimes has problems with the GCC collect2 program. For some
19621# reason, if we set the COLLECT_NAMES environment variable, the problems
19622# vanish in a puff of smoke.
19623if test "X${COLLECT_NAMES+set}" != Xset; then
19624 COLLECT_NAMES=
19625 export COLLECT_NAMES
19626fi
19627_LT_EOF
19628 ;;
19629 esac
19630
19631
19632ltmain="$ac_aux_dir/ltmain.sh"
19633
19634
19635 # We use sed instead of cat because bash on DJGPP gets confused if
19636 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19637 # text mode, it properly converts lines to CR/LF. This bash problem
19638 # is reportedly fixed, but why not run on old versions too?
19639 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19640 || (rm -f "$cfgfile"; exit 1)
19641
19642 case $xsi_shell in
19643 yes)
19644 cat << \_LT_EOF >> "$cfgfile"
b214d478 19645
d7040cdb
SE
19646# func_dirname file append nondir_replacement
19647# Compute the dirname of FILE. If nonempty, add APPEND to the result,
19648# otherwise set result to NONDIR_REPLACEMENT.
19649func_dirname ()
19650{
19651 case ${1} in
19652 */*) func_dirname_result="${1%/*}${2}" ;;
19653 * ) func_dirname_result="${3}" ;;
19654 esac
19655}
19656
19657# func_basename file
19658func_basename ()
19659{
19660 func_basename_result="${1##*/}"
19661}
19662
b214d478
SE
19663# func_dirname_and_basename file append nondir_replacement
19664# perform func_basename and func_dirname in a single function
19665# call:
19666# dirname: Compute the dirname of FILE. If nonempty,
19667# add APPEND to the result, otherwise set result
19668# to NONDIR_REPLACEMENT.
19669# value returned in "$func_dirname_result"
19670# basename: Compute filename of FILE.
19671# value retuned in "$func_basename_result"
19672# Implementation must be kept synchronized with func_dirname
19673# and func_basename. For efficiency, we do not delegate to
19674# those functions but instead duplicate the functionality here.
19675func_dirname_and_basename ()
19676{
19677 case ${1} in
19678 */*) func_dirname_result="${1%/*}${2}" ;;
19679 * ) func_dirname_result="${3}" ;;
19680 esac
19681 func_basename_result="${1##*/}"
19682}
19683
d7040cdb
SE
19684# func_stripname prefix suffix name
19685# strip PREFIX and SUFFIX off of NAME.
19686# PREFIX and SUFFIX must not contain globbing or regex special
19687# characters, hashes, percent signs, but SUFFIX may contain a leading
19688# dot (in which case that matches only a dot).
19689func_stripname ()
19690{
19691 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19692 # positional parameters, so assign one to ordinary parameter first.
19693 func_stripname_result=${3}
19694 func_stripname_result=${func_stripname_result#"${1}"}
19695 func_stripname_result=${func_stripname_result%"${2}"}
19696}
19697
19698# func_opt_split
19699func_opt_split ()
19700{
19701 func_opt_split_opt=${1%%=*}
19702 func_opt_split_arg=${1#*=}
19703}
19704
19705# func_lo2o object
19706func_lo2o ()
19707{
19708 case ${1} in
19709 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19710 *) func_lo2o_result=${1} ;;
19711 esac
19712}
b214d478
SE
19713
19714# func_xform libobj-or-source
19715func_xform ()
19716{
19717 func_xform_result=${1%.*}.lo
19718}
19719
19720# func_arith arithmetic-term...
19721func_arith ()
19722{
19723 func_arith_result=$(( $* ))
19724}
19725
19726# func_len string
19727# STRING may not start with a hyphen.
19728func_len ()
19729{
19730 func_len_result=${#1}
19731}
19732
d7040cdb
SE
19733_LT_EOF
19734 ;;
19735 *) # Bourne compatible functions.
19736 cat << \_LT_EOF >> "$cfgfile"
b214d478 19737
d7040cdb
SE
19738# func_dirname file append nondir_replacement
19739# Compute the dirname of FILE. If nonempty, add APPEND to the result,
19740# otherwise set result to NONDIR_REPLACEMENT.
19741func_dirname ()
19742{
19743 # Extract subdirectory from the argument.
3725885a 19744 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
d7040cdb
SE
19745 if test "X$func_dirname_result" = "X${1}"; then
19746 func_dirname_result="${3}"
19747 else
19748 func_dirname_result="$func_dirname_result${2}"
19749 fi
19750}
19751
19752# func_basename file
19753func_basename ()
19754{
3725885a 19755 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
d7040cdb
SE
19756}
19757
b214d478 19758
d7040cdb
SE
19759# func_stripname prefix suffix name
19760# strip PREFIX and SUFFIX off of NAME.
19761# PREFIX and SUFFIX must not contain globbing or regex special
19762# characters, hashes, percent signs, but SUFFIX may contain a leading
19763# dot (in which case that matches only a dot).
19764# func_strip_suffix prefix name
19765func_stripname ()
19766{
19767 case ${2} in
3725885a
RW
19768 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
19769 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
d7040cdb
SE
19770 esac
19771}
19772
19773# sed scripts:
19774my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19775my_sed_long_arg='1s/^-[^=]*=//'
19776
19777# func_opt_split
19778func_opt_split ()
19779{
3725885a
RW
19780 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
19781 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
d7040cdb
SE
19782}
19783
19784# func_lo2o object
19785func_lo2o ()
19786{
3725885a 19787 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
d7040cdb 19788}
b214d478
SE
19789
19790# func_xform libobj-or-source
19791func_xform ()
19792{
3725885a 19793 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
b214d478
SE
19794}
19795
19796# func_arith arithmetic-term...
19797func_arith ()
19798{
19799 func_arith_result=`expr "$@"`
19800}
19801
19802# func_len string
19803# STRING may not start with a hyphen.
19804func_len ()
19805{
19806 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19807}
19808
d7040cdb
SE
19809_LT_EOF
19810esac
19811
19812case $lt_shell_append in
19813 yes)
19814 cat << \_LT_EOF >> "$cfgfile"
19815
19816# func_append var value
19817# Append VALUE to the end of shell variable VAR.
19818func_append ()
19819{
19820 eval "$1+=\$2"
19821}
19822_LT_EOF
19823 ;;
19824 *)
19825 cat << \_LT_EOF >> "$cfgfile"
19826
19827# func_append var value
19828# Append VALUE to the end of shell variable VAR.
19829func_append ()
19830{
19831 eval "$1=\$$1\$2"
19832}
b214d478 19833
d7040cdb
SE
19834_LT_EOF
19835 ;;
19836 esac
19837
19838
19839 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19840 || (rm -f "$cfgfile"; exit 1)
19841
19842 mv -f "$cfgfile" "$ofile" ||
19843 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19844 chmod +x "$ofile"
19845
3cb62297
L
19846
19847 cat <<_LT_EOF >> "$ofile"
19848
19849# ### BEGIN LIBTOOL TAG CONFIG: CXX
19850
19851# The linker used to build libraries.
19852LD=$lt_LD_CXX
19853
19854# How to create reloadable object files.
19855reload_flag=$lt_reload_flag_CXX
19856reload_cmds=$lt_reload_cmds_CXX
19857
19858# Commands used to build an old-style archive.
19859old_archive_cmds=$lt_old_archive_cmds_CXX
19860
19861# A language specific compiler.
19862CC=$lt_compiler_CXX
19863
19864# Is the compiler the GNU compiler?
19865with_gcc=$GCC_CXX
19866
19867# Compiler flag to turn off builtin functions.
19868no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19869
19870# How to pass a linker flag through the compiler.
19871wl=$lt_lt_prog_compiler_wl_CXX
19872
19873# Additional compiler flags for building library objects.
19874pic_flag=$lt_lt_prog_compiler_pic_CXX
19875
19876# Compiler flag to prevent dynamic linking.
19877link_static_flag=$lt_lt_prog_compiler_static_CXX
19878
19879# Does compiler simultaneously support -c and -o options?
19880compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19881
19882# Whether or not to add -lc for building shared libraries.
19883build_libtool_need_lc=$archive_cmds_need_lc_CXX
19884
19885# Whether or not to disallow shared libs when runtime libs are static.
19886allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19887
19888# Compiler flag to allow reflexive dlopens.
19889export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19890
19891# Compiler flag to generate shared objects directly from archives.
19892whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19893
19894# Whether the compiler copes with passing no objects directly.
19895compiler_needs_object=$lt_compiler_needs_object_CXX
19896
19897# Create an old-style archive from a shared archive.
19898old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19899
19900# Create a temporary old-style archive to link instead of a shared archive.
19901old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19902
19903# Commands used to build a shared archive.
19904archive_cmds=$lt_archive_cmds_CXX
19905archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19906
19907# Commands used to build a loadable module if different from building
19908# a shared archive.
19909module_cmds=$lt_module_cmds_CXX
19910module_expsym_cmds=$lt_module_expsym_cmds_CXX
19911
19912# Whether we are building with GNU ld or not.
19913with_gnu_ld=$lt_with_gnu_ld_CXX
19914
19915# Flag that allows shared libraries with undefined symbols to be built.
19916allow_undefined_flag=$lt_allow_undefined_flag_CXX
19917
19918# Flag that enforces no undefined symbols.
19919no_undefined_flag=$lt_no_undefined_flag_CXX
19920
19921# Flag to hardcode \$libdir into a binary during linking.
19922# This must work even if \$libdir does not exist
19923hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19924
19925# If ld is used when linking, flag to hardcode \$libdir into a binary
19926# during linking. This must work even if \$libdir does not exist.
19927hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19928
19929# Whether we need a single "-rpath" flag with a separated argument.
19930hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19931
19932# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19933# DIR into the resulting binary.
19934hardcode_direct=$hardcode_direct_CXX
19935
19936# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19937# DIR into the resulting binary and the resulting library dependency is
19938# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19939# library is relocated.
19940hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19941
19942# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19943# into the resulting binary.
19944hardcode_minus_L=$hardcode_minus_L_CXX
19945
19946# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19947# into the resulting binary.
19948hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19949
19950# Set to "yes" if building a shared library automatically hardcodes DIR
19951# into the library and all subsequent libraries and executables linked
19952# against it.
19953hardcode_automatic=$hardcode_automatic_CXX
19954
19955# Set to yes if linker adds runtime paths of dependent libraries
19956# to runtime path list.
19957inherit_rpath=$inherit_rpath_CXX
19958
19959# Whether libtool must link a program against all its dependency libraries.
19960link_all_deplibs=$link_all_deplibs_CXX
19961
19962# Fix the shell variable \$srcfile for the compiler.
19963fix_srcfile_path=$lt_fix_srcfile_path_CXX
19964
19965# Set to "yes" if exported symbols are required.
19966always_export_symbols=$always_export_symbols_CXX
19967
19968# The commands to list exported symbols.
19969export_symbols_cmds=$lt_export_symbols_cmds_CXX
19970
19971# Symbols that should not be listed in the preloaded symbols.
19972exclude_expsyms=$lt_exclude_expsyms_CXX
19973
19974# Symbols that must always be exported.
19975include_expsyms=$lt_include_expsyms_CXX
19976
19977# Commands necessary for linking programs (against libraries) with templates.
19978prelink_cmds=$lt_prelink_cmds_CXX
19979
19980# Specify filename containing input files.
19981file_list_spec=$lt_file_list_spec_CXX
19982
19983# How to hardcode a shared library path into an executable.
19984hardcode_action=$hardcode_action_CXX
19985
19986# The directories searched by this compiler when creating a shared library.
19987compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19988
19989# Dependencies to place before and after the objects being linked to
19990# create a shared library.
19991predep_objects=$lt_predep_objects_CXX
19992postdep_objects=$lt_postdep_objects_CXX
19993predeps=$lt_predeps_CXX
19994postdeps=$lt_postdeps_CXX
19995
19996# The library search path used internally by the compiler when linking
19997# a shared library.
19998compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19999
20000# ### END LIBTOOL TAG CONFIG: CXX
20001_LT_EOF
20002
42ecbf5e 20003 ;;
81ecdfbb 20004 "default-1":C)
20e95c23
DJ
20005 for ac_file in $CONFIG_FILES; do
20006 # Support "outfile[:infile[:infile...]]"
20007 case "$ac_file" in
20008 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
20009 esac
20010 # PO directories have a Makefile.in generated from Makefile.in.in.
20011 case "$ac_file" in */Makefile.in)
20012 # Adjust a relative srcdir.
20013 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
3cac54d2 20014 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
20e95c23
DJ
20015 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
20016 # In autoconf-2.13 it is called $ac_given_srcdir.
20017 # In autoconf-2.50 it is called $srcdir.
20018 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
20019 case "$ac_given_srcdir" in
20020 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
20021 /*) top_srcdir="$ac_given_srcdir" ;;
20022 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
20023 esac
20024 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
20025 rm -f "$ac_dir/POTFILES"
20026 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
20027 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
20028 POMAKEFILEDEPS="POTFILES.in"
20029 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
20030 # on $ac_dir but don't depend on user-specified configuration
20031 # parameters.
20032 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
20033 # The LINGUAS file contains the set of available languages.
20034 if test -n "$OBSOLETE_ALL_LINGUAS"; then
37a42ee9 20035 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete"
20e95c23
DJ
20036 fi
20037 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
20038 # Hide the ALL_LINGUAS assigment from automake.
20039 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
20040 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
20041 else
37a42ee9 20042 # The set of available languages was given in configure.ac.
20e95c23
DJ
20043 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
20044 fi
20045 case "$ac_given_srcdir" in
20046 .) srcdirpre= ;;
20047 *) srcdirpre='$(srcdir)/' ;;
20048 esac
20049 POFILES=
20050 GMOFILES=
20051 UPDATEPOFILES=
20052 DUMMYPOFILES=
20053 for lang in $ALL_LINGUAS; do
20054 POFILES="$POFILES $srcdirpre$lang.po"
20055 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
20056 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
20057 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
20058 done
20059 # CATALOGS depends on both $ac_dir and the user's LINGUAS
20060 # environment variable.
20061 INST_LINGUAS=
20062 if test -n "$ALL_LINGUAS"; then
20063 for presentlang in $ALL_LINGUAS; do
20064 useit=no
20065 if test "%UNSET%" != "$LINGUAS"; then
20066 desiredlanguages="$LINGUAS"
20067 else
20068 desiredlanguages="$ALL_LINGUAS"
20069 fi
20070 for desiredlang in $desiredlanguages; do
20071 # Use the presentlang catalog if desiredlang is
20072 # a. equal to presentlang, or
20073 # b. a variant of presentlang (because in this case,
20074 # presentlang can be used as a fallback for messages
20075 # which are not translated in the desiredlang catalog).
20076 case "$desiredlang" in
20077 "$presentlang"*) useit=yes;;
20078 esac
20079 done
20080 if test $useit = yes; then
20081 INST_LINGUAS="$INST_LINGUAS $presentlang"
20082 fi
20083 done
20084 fi
20085 CATALOGS=
20086 if test -n "$INST_LINGUAS"; then
20087 for lang in $INST_LINGUAS; do
20088 CATALOGS="$CATALOGS $lang.gmo"
20089 done
20090 fi
20091 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
20092 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
20093 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
20094 if test -f "$f"; then
20095 case "$f" in
20096 *.orig | *.bak | *~) ;;
20097 *) cat "$f" >> "$ac_dir/Makefile" ;;
20098 esac
20099 fi
20100 done
20101 fi
20102 ;;
20103 esac
20104 done ;;
33589acb
AM
20105 "default":C)
20106case "$srcdir" in
20107 .) srcdirpre= ;;
20108 *) srcdirpre='$(srcdir)/' ;;
20109esac
20110POFILES=
20111GMOFILES=
20112for lang in dummy $OBSOLETE_ALL_LINGUAS; do
20113 if test $lang != dummy; then
20114 POFILES="$POFILES $srcdirpre$lang.po"
20115 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
20116 fi
20117done
20118sed -e '/^SRC-POTFILES =/r po/SRC-POTFILES' \
20119 -e '/^BLD-POTFILES =/r po/BLD-POTFILES' \
20120 -e "s,@POFILES@,$POFILES," \
20121 -e "s,@GMOFILES@,$GMOFILES," \
20122 po/Makefile.in > po/Makefile ;;
81ecdfbb 20123
42ecbf5e 20124 esac
81ecdfbb 20125done # for ac_tag
42ecbf5e 20126
42ecbf5e 20127
81ecdfbb 20128as_fn_exit 0
42ecbf5e 20129_ACEOF
42ecbf5e
DJ
20130ac_clean_files=$ac_clean_files_save
20131
81ecdfbb 20132test $ac_write_fail = 0 ||
d0ac1c44 20133 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
81ecdfbb 20134
42ecbf5e
DJ
20135
20136# configure is writing to config.log, and then calls config.status.
20137# config.status does its own redirection, appending to config.log.
20138# Unfortunately, on DOS this fails, as config.log is still kept open
20139# by configure, so config.status won't be able to write to it; its
20140# output is simply discarded. So we exec the FD to /dev/null,
20141# effectively closing config.log, so it can be properly (re)opened and
20142# appended to by config.status. When coming back to configure, we
20143# need to make the FD available again.
20144if test "$no_create" != yes; then
20145 ac_cs_success=:
20146 ac_config_status_args=
20147 test "$silent" = yes &&
20148 ac_config_status_args="$ac_config_status_args --quiet"
20149 exec 5>/dev/null
20150 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20151 exec 5>>config.log
20152 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20153 # would make configure fail if this is the last instruction.
d0ac1c44 20154 $ac_cs_success || as_fn_exit 1
81ecdfbb
RW
20155fi
20156if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20157 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20158$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
42ecbf5e 20159fi
252b5132 20160
d546b610
L
20161
20162
20163touch config.status.tmp
20164if touch --reference=config.status config.status.tmp > /dev/null 2>&1; then
20165 sed '/as_fn_exit 0/i \
20166sed -e \"s/^\t\\\(\\\$(AM_V_CCLD)\\\)/\t+ \\\1/\" Makefile > Makefile.tmp \
20167touch --reference=Makefile Makefile.tmp \
20168mv Makefile.tmp Makefile \
20169' config.status > config.status.tmp
20170 touch --reference=config.status config.status.tmp
20171 mv config.status.tmp config.status
20172 chmod +x config.status
20173 sed -e "s/^\t\(\$(AM_V_CCLD)\)/\t+ \1/" Makefile > Makefile.tmp
20174 touch --reference=Makefile Makefile.tmp
20175 mv Makefile.tmp Makefile
20176else
20177 rm -f config.status.tmp
20178fi