ENABLE_CHECKING in bfd, opcodes, binutils, ld
[deliverable/binutils-gdb.git] / binutils / configure
CommitLineData
252b5132 1#! /bin/sh
252b5132 2# Guess values for system-dependent variables and create Makefiles.
573fe3fb 3# Generated by GNU Autoconf 2.69 for binutils 2.36.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
42ecbf5e 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
426
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='binutils'
589PACKAGE_TARNAME='binutils'
573fe3fb
NC
590PACKAGE_VERSION='2.36.50'
591PACKAGE_STRING='binutils 2.36.50'
2e98a7bd
AM
592PACKAGE_BUGREPORT=''
593PACKAGE_URL=''
42ecbf5e
DJ
594
595ac_unique_file="ar.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
34156b23 632ac_header_list=
81ecdfbb
RW
633ac_subst_vars='am__EXEEXT_FALSE
634am__EXEEXT_TRUE
635LTLIBOBJS
636LIBOBJS
637EMULATION_VECTOR
638EMULATION
6abcee90 639OBJDUMP_PRIVATE_OFILES
81ecdfbb
RW
640OBJDUMP_DEFS
641BUILD_INSTALL_MISC
642BUILD_MISC
643BUILD_DLLWRAP
644BUILD_WINDMC
645BUILD_WINDRES
646DLLTOOL_DEFS
647BUILD_DLLTOOL
648BUILD_SRCONV
81ecdfbb
RW
649LTLIBICONV
650LIBICONV
0ee42ecd
L
651zlibinc
652zlibdir
81ecdfbb
RW
653DEMANGLER_NAME
654EXEEXT_FOR_BUILD
655CC_FOR_BUILD
656HDEFINES
657GENINSRC_NEVER_FALSE
658GENINSRC_NEVER_TRUE
659MAINT
660MAINTAINER_MODE_FALSE
661MAINTAINER_MODE_TRUE
662MSGMERGE
663MSGFMT
664MKINSTALLDIRS
665CATOBJEXT
666GENCAT
667INSTOBJEXT
668DATADIRNAME
669CATALOGS
670POSUB
671GMSGFMT
672XGETTEXT
673INCINTL
674LIBINTL_DEP
675LIBINTL
676USE_NLS
677LEXLIB
678LEX_OUTPUT_ROOT
679LEX
680YFLAGS
681YACC
6757cf57 682WARN_WRITE_STRINGS
81ecdfbb 683NO_WERROR
c5da1932 684WARN_CFLAGS_FOR_BUILD
81ecdfbb 685WARN_CFLAGS
094e34f2
NA
686ENABLE_LIBCTF_FALSE
687ENABLE_LIBCTF_TRUE
f6720b1c
AM
688DEBUGINFOD_LIBS
689DEBUGINFOD_CFLAGS
690PKG_CONFIG_LIBDIR
691PKG_CONFIG_PATH
692PKG_CONFIG
c8693053 693LARGEFILE_CPPFLAGS
81ecdfbb
RW
694OTOOL64
695OTOOL
696LIPO
697NMEDIT
698DSYMUTIL
81ecdfbb
RW
699RANLIB
700AR
701OBJDUMP
702LN_S
703NM
704ac_ct_DUMPBIN
705DUMPBIN
706LD
707FGREP
708SED
709LIBTOOL
710EGREP
711GREP
712CPP
713am__fastdepCC_FALSE
714am__fastdepCC_TRUE
715CCDEPMODE
6eb7d830 716am__nodep
81ecdfbb
RW
717AMDEPBACKSLASH
718AMDEP_FALSE
719AMDEP_TRUE
720am__quote
721am__include
722DEPDIR
87b9f255
AM
723OBJEXT
724EXEEXT
725ac_ct_CC
726CPPFLAGS
727LDFLAGS
728CFLAGS
729CC
730AM_BACKSLASH
731AM_DEFAULT_VERBOSITY
732AM_DEFAULT_V
733AM_V
81ecdfbb
RW
734am__untar
735am__tar
736AMTAR
737am__leading_dot
738SET_MAKE
739AWK
740mkdir_p
741MKDIR_P
742INSTALL_STRIP_PROGRAM
743STRIP
744install_sh
745MAKEINFO
746AUTOHEADER
747AUTOMAKE
748AUTOCONF
749ACLOCAL
750VERSION
751PACKAGE
752CYGPATH_W
753am__isrc
754INSTALL_DATA
755INSTALL_SCRIPT
756INSTALL_PROGRAM
81ecdfbb
RW
757target_os
758target_vendor
759target_cpu
760target
761host_os
762host_vendor
763host_cpu
764host
765build_os
766build_vendor
767build_cpu
768build
769target_alias
770host_alias
771build_alias
772LIBS
773ECHO_T
774ECHO_N
775ECHO_C
776DEFS
777mandir
778localedir
779libdir
780psdir
781pdfdir
782dvidir
783htmldir
784infodir
785docdir
786oldincludedir
787includedir
788localstatedir
789sharedstatedir
790sysconfdir
791datadir
792datarootdir
793libexecdir
794sbindir
795bindir
796program_transform_name
797prefix
798exec_prefix
799PACKAGE_URL
800PACKAGE_BUGREPORT
801PACKAGE_STRING
802PACKAGE_VERSION
803PACKAGE_TARNAME
804PACKAGE_NAME
805PATH_SEPARATOR
806SHELL'
42ecbf5e 807ac_subst_files=''
81ecdfbb
RW
808ac_user_opts='
809enable_option_checking
d0ac1c44 810enable_silent_rules
87b9f255 811enable_dependency_tracking
81ecdfbb
RW
812enable_shared
813enable_static
814with_pic
815enable_fast_install
816with_gnu_ld
817enable_libtool_lock
b879806f
AM
818enable_plugins
819enable_largefile
43e05cd4 820enable_checking
81ecdfbb 821enable_targets
9cb80f72 822enable_deterministic_archives
7fac9594 823enable_default_strings_all
e6f6aa8d 824enable_f_for_ifunc_symbols
c46b7066 825enable_follow_debug_links
301a9420 826with_debuginfod
094e34f2 827enable_libctf
81ecdfbb
RW
828enable_werror
829enable_build_warnings
830enable_nls
831enable_maintainer_mode
0ee42ecd 832with_system_zlib
81ecdfbb
RW
833enable_rpath
834with_libiconv_prefix
9f1528a1 835with_libiconv_type
81ecdfbb
RW
836'
837 ac_precious_vars='build_alias
838host_alias
839target_alias
840CC
841CFLAGS
842LDFLAGS
843LIBS
844CPPFLAGS
845CPP
f6720b1c
AM
846PKG_CONFIG
847PKG_CONFIG_PATH
848PKG_CONFIG_LIBDIR
849DEBUGINFOD_CFLAGS
850DEBUGINFOD_LIBS
81ecdfbb
RW
851YACC
852YFLAGS'
853
252b5132
RH
854
855# Initialize some variables set by options.
42ecbf5e
DJ
856ac_init_help=
857ac_init_version=false
81ecdfbb
RW
858ac_unrecognized_opts=
859ac_unrecognized_sep=
252b5132
RH
860# The variables have the same names as the options, with
861# dashes changed to underlines.
42ecbf5e 862cache_file=/dev/null
252b5132 863exec_prefix=NONE
252b5132 864no_create=
252b5132
RH
865no_recursion=
866prefix=NONE
867program_prefix=NONE
868program_suffix=NONE
869program_transform_name=s,x,x,
870silent=
871site=
872srcdir=
252b5132
RH
873verbose=
874x_includes=NONE
875x_libraries=NONE
42ecbf5e
DJ
876
877# Installation directory options.
878# These are left unexpanded so users can "make install exec_prefix=/foo"
879# and all the variables that are supposed to be based on exec_prefix
880# by default will actually change.
881# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 882# (The list follows the same order as the GNU Coding Standards.)
252b5132
RH
883bindir='${exec_prefix}/bin'
884sbindir='${exec_prefix}/sbin'
885libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
886datarootdir='${prefix}/share'
887datadir='${datarootdir}'
252b5132
RH
888sysconfdir='${prefix}/etc'
889sharedstatedir='${prefix}/com'
890localstatedir='${prefix}/var'
252b5132
RH
891includedir='${prefix}/include'
892oldincludedir='/usr/include'
2e98a7bd 893docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
81ecdfbb
RW
894infodir='${datarootdir}/info'
895htmldir='${docdir}'
896dvidir='${docdir}'
897pdfdir='${docdir}'
898psdir='${docdir}'
899libdir='${exec_prefix}/lib'
900localedir='${datarootdir}/locale'
901mandir='${datarootdir}/man'
252b5132 902
252b5132 903ac_prev=
81ecdfbb 904ac_dashdash=
252b5132
RH
905for ac_option
906do
252b5132
RH
907 # If the previous option needs an argument, assign it.
908 if test -n "$ac_prev"; then
81ecdfbb 909 eval $ac_prev=\$ac_option
252b5132
RH
910 ac_prev=
911 continue
912 fi
913
81ecdfbb 914 case $ac_option in
d0ac1c44
SM
915 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
916 *=) ac_optarg= ;;
917 *) ac_optarg=yes ;;
81ecdfbb 918 esac
252b5132
RH
919
920 # Accept the important Cygnus configure options, so we can diagnose typos.
921
81ecdfbb
RW
922 case $ac_dashdash$ac_option in
923 --)
924 ac_dashdash=yes ;;
252b5132
RH
925
926 -bindir | --bindir | --bindi | --bind | --bin | --bi)
927 ac_prev=bindir ;;
928 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
42ecbf5e 929 bindir=$ac_optarg ;;
252b5132
RH
930
931 -build | --build | --buil | --bui | --bu)
42ecbf5e 932 ac_prev=build_alias ;;
252b5132 933 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
42ecbf5e 934 build_alias=$ac_optarg ;;
252b5132
RH
935
936 -cache-file | --cache-file | --cache-fil | --cache-fi \
937 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
938 ac_prev=cache_file ;;
939 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
940 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
42ecbf5e
DJ
941 cache_file=$ac_optarg ;;
942
943 --config-cache | -C)
944 cache_file=config.cache ;;
252b5132 945
81ecdfbb 946 -datadir | --datadir | --datadi | --datad)
252b5132 947 ac_prev=datadir ;;
81ecdfbb 948 -datadir=* | --datadir=* | --datadi=* | --datad=*)
42ecbf5e 949 datadir=$ac_optarg ;;
252b5132 950
81ecdfbb
RW
951 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
952 | --dataroo | --dataro | --datar)
953 ac_prev=datarootdir ;;
954 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
955 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
956 datarootdir=$ac_optarg ;;
957
252b5132 958 -disable-* | --disable-*)
81ecdfbb 959 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
252b5132 960 # Reject names that are not valid shell variable names.
81ecdfbb 961 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 962 as_fn_error $? "invalid feature name: $ac_useropt"
81ecdfbb
RW
963 ac_useropt_orig=$ac_useropt
964 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
965 case $ac_user_opts in
966 *"
967"enable_$ac_useropt"
968"*) ;;
969 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
970 ac_unrecognized_sep=', ';;
971 esac
972 eval enable_$ac_useropt=no ;;
973
974 -docdir | --docdir | --docdi | --doc | --do)
975 ac_prev=docdir ;;
976 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
977 docdir=$ac_optarg ;;
978
979 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
980 ac_prev=dvidir ;;
981 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
982 dvidir=$ac_optarg ;;
252b5132
RH
983
984 -enable-* | --enable-*)
81ecdfbb 985 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
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--enable-$ac_useropt_orig"
996 ac_unrecognized_sep=', ';;
252b5132 997 esac
81ecdfbb 998 eval enable_$ac_useropt=\$ac_optarg ;;
252b5132
RH
999
1000 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1001 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1002 | --exec | --exe | --ex)
1003 ac_prev=exec_prefix ;;
1004 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1005 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1006 | --exec=* | --exe=* | --ex=*)
42ecbf5e 1007 exec_prefix=$ac_optarg ;;
252b5132
RH
1008
1009 -gas | --gas | --ga | --g)
1010 # Obsolete; use --with-gas.
1011 with_gas=yes ;;
1012
42ecbf5e
DJ
1013 -help | --help | --hel | --he | -h)
1014 ac_init_help=long ;;
1015 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1016 ac_init_help=recursive ;;
1017 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1018 ac_init_help=short ;;
252b5132
RH
1019
1020 -host | --host | --hos | --ho)
42ecbf5e 1021 ac_prev=host_alias ;;
252b5132 1022 -host=* | --host=* | --hos=* | --ho=*)
42ecbf5e 1023 host_alias=$ac_optarg ;;
252b5132 1024
81ecdfbb
RW
1025 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1026 ac_prev=htmldir ;;
1027 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1028 | --ht=*)
1029 htmldir=$ac_optarg ;;
1030
252b5132
RH
1031 -includedir | --includedir | --includedi | --included | --include \
1032 | --includ | --inclu | --incl | --inc)
1033 ac_prev=includedir ;;
1034 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1035 | --includ=* | --inclu=* | --incl=* | --inc=*)
42ecbf5e 1036 includedir=$ac_optarg ;;
252b5132
RH
1037
1038 -infodir | --infodir | --infodi | --infod | --info | --inf)
1039 ac_prev=infodir ;;
1040 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
42ecbf5e 1041 infodir=$ac_optarg ;;
252b5132
RH
1042
1043 -libdir | --libdir | --libdi | --libd)
1044 ac_prev=libdir ;;
1045 -libdir=* | --libdir=* | --libdi=* | --libd=*)
42ecbf5e 1046 libdir=$ac_optarg ;;
252b5132
RH
1047
1048 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1049 | --libexe | --libex | --libe)
1050 ac_prev=libexecdir ;;
1051 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1052 | --libexe=* | --libex=* | --libe=*)
42ecbf5e 1053 libexecdir=$ac_optarg ;;
252b5132 1054
81ecdfbb
RW
1055 -localedir | --localedir | --localedi | --localed | --locale)
1056 ac_prev=localedir ;;
1057 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1058 localedir=$ac_optarg ;;
1059
252b5132 1060 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 1061 | --localstate | --localstat | --localsta | --localst | --locals)
252b5132
RH
1062 ac_prev=localstatedir ;;
1063 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 1064 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
42ecbf5e 1065 localstatedir=$ac_optarg ;;
252b5132
RH
1066
1067 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1068 ac_prev=mandir ;;
1069 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
42ecbf5e 1070 mandir=$ac_optarg ;;
252b5132
RH
1071
1072 -nfp | --nfp | --nf)
1073 # Obsolete; use --without-fp.
1074 with_fp=no ;;
1075
1076 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
42ecbf5e 1077 | --no-cr | --no-c | -n)
252b5132
RH
1078 no_create=yes ;;
1079
1080 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1081 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1082 no_recursion=yes ;;
1083
1084 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1085 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1086 | --oldin | --oldi | --old | --ol | --o)
1087 ac_prev=oldincludedir ;;
1088 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1089 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1090 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
42ecbf5e 1091 oldincludedir=$ac_optarg ;;
252b5132
RH
1092
1093 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1094 ac_prev=prefix ;;
1095 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
42ecbf5e 1096 prefix=$ac_optarg ;;
252b5132
RH
1097
1098 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1099 | --program-pre | --program-pr | --program-p)
1100 ac_prev=program_prefix ;;
1101 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1102 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
42ecbf5e 1103 program_prefix=$ac_optarg ;;
252b5132
RH
1104
1105 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1106 | --program-suf | --program-su | --program-s)
1107 ac_prev=program_suffix ;;
1108 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1109 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
42ecbf5e 1110 program_suffix=$ac_optarg ;;
252b5132
RH
1111
1112 -program-transform-name | --program-transform-name \
1113 | --program-transform-nam | --program-transform-na \
1114 | --program-transform-n | --program-transform- \
1115 | --program-transform | --program-transfor \
1116 | --program-transfo | --program-transf \
1117 | --program-trans | --program-tran \
1118 | --progr-tra | --program-tr | --program-t)
1119 ac_prev=program_transform_name ;;
1120 -program-transform-name=* | --program-transform-name=* \
1121 | --program-transform-nam=* | --program-transform-na=* \
1122 | --program-transform-n=* | --program-transform-=* \
1123 | --program-transform=* | --program-transfor=* \
1124 | --program-transfo=* | --program-transf=* \
1125 | --program-trans=* | --program-tran=* \
1126 | --progr-tra=* | --program-tr=* | --program-t=*)
42ecbf5e 1127 program_transform_name=$ac_optarg ;;
252b5132 1128
81ecdfbb
RW
1129 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1130 ac_prev=pdfdir ;;
1131 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1132 pdfdir=$ac_optarg ;;
1133
1134 -psdir | --psdir | --psdi | --psd | --ps)
1135 ac_prev=psdir ;;
1136 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1137 psdir=$ac_optarg ;;
1138
252b5132
RH
1139 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1140 | -silent | --silent | --silen | --sile | --sil)
1141 silent=yes ;;
1142
1143 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1144 ac_prev=sbindir ;;
1145 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1146 | --sbi=* | --sb=*)
42ecbf5e 1147 sbindir=$ac_optarg ;;
252b5132
RH
1148
1149 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1150 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1151 | --sharedst | --shareds | --shared | --share | --shar \
1152 | --sha | --sh)
1153 ac_prev=sharedstatedir ;;
1154 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1155 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1156 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1157 | --sha=* | --sh=*)
42ecbf5e 1158 sharedstatedir=$ac_optarg ;;
252b5132
RH
1159
1160 -site | --site | --sit)
1161 ac_prev=site ;;
1162 -site=* | --site=* | --sit=*)
42ecbf5e 1163 site=$ac_optarg ;;
252b5132
RH
1164
1165 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1166 ac_prev=srcdir ;;
1167 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
42ecbf5e 1168 srcdir=$ac_optarg ;;
252b5132
RH
1169
1170 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1171 | --syscon | --sysco | --sysc | --sys | --sy)
1172 ac_prev=sysconfdir ;;
1173 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1174 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
42ecbf5e 1175 sysconfdir=$ac_optarg ;;
252b5132
RH
1176
1177 -target | --target | --targe | --targ | --tar | --ta | --t)
42ecbf5e 1178 ac_prev=target_alias ;;
252b5132 1179 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
42ecbf5e 1180 target_alias=$ac_optarg ;;
252b5132
RH
1181
1182 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1183 verbose=yes ;;
1184
42ecbf5e
DJ
1185 -version | --version | --versio | --versi | --vers | -V)
1186 ac_init_version=: ;;
252b5132
RH
1187
1188 -with-* | --with-*)
81ecdfbb 1189 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
252b5132 1190 # Reject names that are not valid shell variable names.
81ecdfbb 1191 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 1192 as_fn_error $? "invalid package name: $ac_useropt"
81ecdfbb
RW
1193 ac_useropt_orig=$ac_useropt
1194 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1195 case $ac_user_opts in
1196 *"
1197"with_$ac_useropt"
1198"*) ;;
1199 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1200 ac_unrecognized_sep=', ';;
252b5132 1201 esac
81ecdfbb 1202 eval with_$ac_useropt=\$ac_optarg ;;
252b5132
RH
1203
1204 -without-* | --without-*)
81ecdfbb 1205 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
252b5132 1206 # Reject names that are not valid shell variable names.
81ecdfbb 1207 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 1208 as_fn_error $? "invalid package name: $ac_useropt"
81ecdfbb
RW
1209 ac_useropt_orig=$ac_useropt
1210 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1211 case $ac_user_opts in
1212 *"
1213"with_$ac_useropt"
1214"*) ;;
1215 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1216 ac_unrecognized_sep=', ';;
1217 esac
1218 eval with_$ac_useropt=no ;;
252b5132
RH
1219
1220 --x)
1221 # Obsolete; use --with-x.
1222 with_x=yes ;;
1223
1224 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1225 | --x-incl | --x-inc | --x-in | --x-i)
1226 ac_prev=x_includes ;;
1227 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1228 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
42ecbf5e 1229 x_includes=$ac_optarg ;;
252b5132
RH
1230
1231 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1232 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1233 ac_prev=x_libraries ;;
1234 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1235 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
42ecbf5e 1236 x_libraries=$ac_optarg ;;
252b5132 1237
d0ac1c44
SM
1238 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1239Try \`$0 --help' for more information"
252b5132
RH
1240 ;;
1241
42ecbf5e
DJ
1242 *=*)
1243 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1244 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1245 case $ac_envvar in #(
1246 '' | [0-9]* | *[!_$as_cr_alnum]* )
d0ac1c44 1247 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
81ecdfbb
RW
1248 esac
1249 eval $ac_envvar=\$ac_optarg
42ecbf5e
DJ
1250 export $ac_envvar ;;
1251
252b5132 1252 *)
42ecbf5e 1253 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1254 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
42ecbf5e 1255 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1256 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
d0ac1c44 1257 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
252b5132
RH
1258 ;;
1259
1260 esac
1261done
1262
1263if test -n "$ac_prev"; then
42ecbf5e 1264 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
d0ac1c44 1265 as_fn_error $? "missing argument to $ac_option"
252b5132
RH
1266fi
1267
81ecdfbb
RW
1268if test -n "$ac_unrecognized_opts"; then
1269 case $enable_option_checking in
1270 no) ;;
d0ac1c44 1271 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
81ecdfbb 1272 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
42ecbf5e 1273 esac
81ecdfbb 1274fi
252b5132 1275
81ecdfbb
RW
1276# Check all directory arguments for consistency.
1277for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1278 datadir sysconfdir sharedstatedir localstatedir includedir \
1279 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
e0b2a78c 1280 libdir localedir mandir
252b5132 1281do
81ecdfbb
RW
1282 eval ac_val=\$$ac_var
1283 # Remove trailing slashes.
42ecbf5e 1284 case $ac_val in
81ecdfbb
RW
1285 */ )
1286 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1287 eval $ac_var=\$ac_val;;
252b5132 1288 esac
81ecdfbb
RW
1289 # Be sure to have absolute directory names.
1290 case $ac_val in
1291 [\\/$]* | ?:[\\/]* ) continue;;
1292 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1293 esac
d0ac1c44 1294 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
252b5132
RH
1295done
1296
42ecbf5e
DJ
1297# There might be people who depend on the old broken behavior: `$host'
1298# used to hold the argument of --host etc.
1299# FIXME: To remove some day.
1300build=$build_alias
1301host=$host_alias
1302target=$target_alias
1303
1304# FIXME: To remove some day.
1305if test "x$host_alias" != x; then
1306 if test "x$build_alias" = x; then
1307 cross_compiling=maybe
42ecbf5e
DJ
1308 elif test "x$build_alias" != "x$host_alias"; then
1309 cross_compiling=yes
1310 fi
1311fi
e5a52504 1312
42ecbf5e
DJ
1313ac_tool_prefix=
1314test -n "$host_alias" && ac_tool_prefix=$host_alias-
1315
1316test "$silent" = yes && exec 6>/dev/null
252b5132 1317
252b5132 1318
81ecdfbb
RW
1319ac_pwd=`pwd` && test -n "$ac_pwd" &&
1320ac_ls_di=`ls -di .` &&
1321ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
d0ac1c44 1322 as_fn_error $? "working directory cannot be determined"
81ecdfbb 1323test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
d0ac1c44 1324 as_fn_error $? "pwd does not report name of working directory"
81ecdfbb
RW
1325
1326
252b5132
RH
1327# Find the source files, if location was not specified.
1328if test -z "$srcdir"; then
1329 ac_srcdir_defaulted=yes
81ecdfbb
RW
1330 # Try the directory containing this script, then the parent directory.
1331 ac_confdir=`$as_dirname -- "$as_myself" ||
1332$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1333 X"$as_myself" : 'X\(//\)[^/]' \| \
1334 X"$as_myself" : 'X\(//\)$' \| \
1335 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1336$as_echo X"$as_myself" |
1337 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1338 s//\1/
1339 q
1340 }
1341 /^X\(\/\/\)[^/].*/{
1342 s//\1/
1343 q
1344 }
1345 /^X\(\/\/\)$/{
1346 s//\1/
1347 q
1348 }
1349 /^X\(\/\).*/{
1350 s//\1/
1351 q
1352 }
1353 s/.*/./; q'`
252b5132 1354 srcdir=$ac_confdir
81ecdfbb 1355 if test ! -r "$srcdir/$ac_unique_file"; then
252b5132
RH
1356 srcdir=..
1357 fi
1358else
1359 ac_srcdir_defaulted=no
1360fi
81ecdfbb
RW
1361if test ! -r "$srcdir/$ac_unique_file"; then
1362 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
d0ac1c44 1363 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
81ecdfbb
RW
1364fi
1365ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1366ac_abs_confdir=`(
d0ac1c44 1367 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
81ecdfbb
RW
1368 pwd)`
1369# When building in place, set srcdir=.
1370if test "$ac_abs_confdir" = "$ac_pwd"; then
1371 srcdir=.
1372fi
1373# Remove unnecessary trailing slashes from srcdir.
1374# Double slashes in file names in object file debugging info
1375# mess up M-x gdb in Emacs.
1376case $srcdir in
1377*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1378esac
1379for ac_var in $ac_precious_vars; do
1380 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1381 eval ac_env_${ac_var}_value=\$${ac_var}
1382 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1383 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1384done
252b5132 1385
42ecbf5e
DJ
1386#
1387# Report the --help message.
1388#
1389if test "$ac_init_help" = "long"; then
1390 # Omit some internal or obsolete options to make the list less imposing.
1391 # This message is too long to be a string in the A/UX 3.1 sh.
1392 cat <<_ACEOF
573fe3fb 1393\`configure' configures binutils 2.36.50 to adapt to many kinds of systems.
252b5132 1394
42ecbf5e 1395Usage: $0 [OPTION]... [VAR=VALUE]...
252b5132 1396
42ecbf5e
DJ
1397To assign environment variables (e.g., CC, CFLAGS...), specify them as
1398VAR=VALUE. See below for descriptions of some of the useful variables.
252b5132 1399
42ecbf5e 1400Defaults for the options are specified in brackets.
ac48eca1 1401
42ecbf5e
DJ
1402Configuration:
1403 -h, --help display this help and exit
1404 --help=short display options specific to this package
1405 --help=recursive display the short help of all the included packages
1406 -V, --version display version information and exit
d0ac1c44 1407 -q, --quiet, --silent do not print \`checking ...' messages
42ecbf5e
DJ
1408 --cache-file=FILE cache test results in FILE [disabled]
1409 -C, --config-cache alias for \`--cache-file=config.cache'
1410 -n, --no-create do not create output files
1411 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1412
42ecbf5e
DJ
1413Installation directories:
1414 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1415 [$ac_default_prefix]
42ecbf5e 1416 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1417 [PREFIX]
ac48eca1 1418
42ecbf5e
DJ
1419By default, \`make install' will install all the files in
1420\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1421an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1422for instance \`--prefix=\$HOME'.
ac48eca1 1423
42ecbf5e 1424For better control, use the options below.
ac48eca1 1425
42ecbf5e 1426Fine tuning of the installation directories:
81ecdfbb
RW
1427 --bindir=DIR user executables [EPREFIX/bin]
1428 --sbindir=DIR system admin executables [EPREFIX/sbin]
1429 --libexecdir=DIR program executables [EPREFIX/libexec]
1430 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1431 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1432 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1433 --libdir=DIR object code libraries [EPREFIX/lib]
1434 --includedir=DIR C header files [PREFIX/include]
1435 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1436 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1437 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1438 --infodir=DIR info documentation [DATAROOTDIR/info]
1439 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1440 --mandir=DIR man documentation [DATAROOTDIR/man]
2e98a7bd 1441 --docdir=DIR documentation root [DATAROOTDIR/doc/binutils]
81ecdfbb
RW
1442 --htmldir=DIR html documentation [DOCDIR]
1443 --dvidir=DIR dvi documentation [DOCDIR]
1444 --pdfdir=DIR pdf documentation [DOCDIR]
1445 --psdir=DIR ps documentation [DOCDIR]
42ecbf5e 1446_ACEOF
ac48eca1 1447
42ecbf5e 1448 cat <<\_ACEOF
252b5132 1449
42ecbf5e
DJ
1450Program names:
1451 --program-prefix=PREFIX prepend PREFIX to installed program names
1452 --program-suffix=SUFFIX append SUFFIX to installed program names
1453 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
252b5132 1454
42ecbf5e
DJ
1455System types:
1456 --build=BUILD configure for building on BUILD [guessed]
1457 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1458 --target=TARGET configure for building compilers for TARGET [HOST]
1459_ACEOF
252b5132 1460fi
252b5132 1461
42ecbf5e 1462if test -n "$ac_init_help"; then
2e98a7bd 1463 case $ac_init_help in
573fe3fb 1464 short | recursive ) echo "Configuration of binutils 2.36.50:";;
2e98a7bd 1465 esac
42ecbf5e 1466 cat <<\_ACEOF
252b5132 1467
42ecbf5e 1468Optional Features:
81ecdfbb 1469 --disable-option-checking ignore unrecognized --enable/--with options
42ecbf5e
DJ
1470 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1471 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
87b9f255
AM
1472 --enable-silent-rules less verbose build output (undo: "make V=1")
1473 --disable-silent-rules verbose build output (undo: "make V=0")
d0ac1c44
SM
1474 --enable-dependency-tracking
1475 do not reject slow dependency extractors
1476 --disable-dependency-tracking
1477 speeds up one-time build
81ecdfbb
RW
1478 --enable-shared[=PKGS] build shared libraries [default=yes]
1479 --enable-static[=PKGS] build static libraries [default=yes]
d7040cdb
SE
1480 --enable-fast-install[=PKGS]
1481 optimize for fast installation [default=yes]
42ecbf5e 1482 --disable-libtool-lock avoid locking (might break parallel builds)
b879806f
AM
1483 --enable-plugins Enable support for plugins
1484 --disable-largefile omit support for large files
43e05cd4 1485 --enable-checking enable run-time checks
42ecbf5e 1486 --enable-targets alternative target configurations
9cb80f72
RM
1487 --enable-deterministic-archives
1488 ar and ranlib default to -D behavior
7fac9594
NC
1489 --disable-default-strings-all
1490 strings defaults to --data behavior
e6f6aa8d
NC
1491 --enable-f-for-ifunc-symbols
1492 Have nm use F and f for global and local ifunc
1493 symbols
c46b7066
NC
1494 --enable-follow-debug-links
1495 Have readelf and objdump follow debug links by
1496 default
094e34f2 1497 --enable-libctf Handle .ctf type-info sections [default=yes]
241a6c40
AM
1498 --enable-werror treat compile warnings as errors
1499 --enable-build-warnings enable build-time compiler warnings
42ecbf5e 1500 --disable-nls do not use Native Language Support
d0ac1c44
SM
1501 --enable-maintainer-mode
1502 enable make rules and dependencies not useful (and
1503 sometimes confusing) to the casual installer
5ba684e2 1504 --disable-rpath do not hardcode runtime library paths
42ecbf5e
DJ
1505
1506Optional Packages:
1507 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1508 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
d7040cdb
SE
1509 --with-pic try to use only PIC/non-PIC objects [default=use
1510 both]
1511 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
301a9420
AM
1512 --with-debuginfod Enable debuginfo lookups with debuginfod
1513 (auto/yes/no)
0ee42ecd 1514 --with-system-zlib use installed libz
5ba684e2
NC
1515 --with-gnu-ld assume the C compiler uses GNU ld default=no
1516 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1517 --without-libiconv-prefix don't search for libiconv in includedir and libdir
9f1528a1 1518 --with-libiconv-type=TYPE type of library to search for (auto/static/shared)
252b5132 1519
42ecbf5e
DJ
1520Some influential environment variables:
1521 CC C compiler command
1522 CFLAGS C compiler flags
1523 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1524 nonstandard directory <lib dir>
81ecdfbb 1525 LIBS libraries to pass to the linker, e.g. -l<library>
d0ac1c44 1526 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
81ecdfbb 1527 you have headers in a nonstandard directory <include dir>
42ecbf5e 1528 CPP C preprocessor
f6720b1c
AM
1529 PKG_CONFIG path to pkg-config utility
1530 PKG_CONFIG_PATH
1531 directories to add to pkg-config's search path
1532 PKG_CONFIG_LIBDIR
1533 path overriding pkg-config's built-in search path
1534 DEBUGINFOD_CFLAGS
1535 C compiler flags for DEBUGINFOD, overriding pkg-config
1536 DEBUGINFOD_LIBS
1537 linker flags for DEBUGINFOD, overriding pkg-config
d0ac1c44
SM
1538 YACC The `Yet Another Compiler Compiler' implementation to use.
1539 Defaults to the first program found out of: `bison -y', `byacc',
1540 `yacc'.
81ecdfbb
RW
1541 YFLAGS The list of arguments that will be passed by default to $YACC.
1542 This script will default YFLAGS to the empty string to avoid a
1543 default value of `-d' given by some make applications.
e5a52504 1544
42ecbf5e
DJ
1545Use these variables to override the choices made by `configure' or to help
1546it to find libraries and programs with nonstandard names/locations.
1547
81ecdfbb 1548Report bugs to the package provider.
42ecbf5e 1549_ACEOF
81ecdfbb 1550ac_status=$?
252b5132
RH
1551fi
1552
42ecbf5e
DJ
1553if test "$ac_init_help" = "recursive"; then
1554 # If there are subdirs, report their specific --help.
42ecbf5e 1555 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1556 test -d "$ac_dir" ||
1557 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1558 continue
42ecbf5e
DJ
1559 ac_builddir=.
1560
81ecdfbb
RW
1561case "$ac_dir" in
1562.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1563*)
1564 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1565 # A ".." for each directory in $ac_dir_suffix.
1566 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1567 case $ac_top_builddir_sub in
1568 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1569 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1570 esac ;;
1571esac
1572ac_abs_top_builddir=$ac_pwd
1573ac_abs_builddir=$ac_pwd$ac_dir_suffix
1574# for backward compatibility:
1575ac_top_builddir=$ac_top_build_prefix
252b5132 1576
42ecbf5e 1577case $srcdir in
81ecdfbb 1578 .) # We are building in place.
42ecbf5e 1579 ac_srcdir=.
81ecdfbb
RW
1580 ac_top_srcdir=$ac_top_builddir_sub
1581 ac_abs_top_srcdir=$ac_pwd ;;
1582 [\\/]* | ?:[\\/]* ) # Absolute name.
42ecbf5e 1583 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1584 ac_top_srcdir=$srcdir
1585 ac_abs_top_srcdir=$srcdir ;;
1586 *) # Relative name.
1587 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1588 ac_top_srcdir=$ac_top_build_prefix$srcdir
1589 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
252b5132 1590esac
81ecdfbb
RW
1591ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1592
1593 cd "$ac_dir" || { ac_status=$?; continue; }
1594 # Check for guested configure.
1595 if test -f "$ac_srcdir/configure.gnu"; then
1596 echo &&
1597 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1598 elif test -f "$ac_srcdir/configure"; then
1599 echo &&
1600 $SHELL "$ac_srcdir/configure" --help=recursive
42ecbf5e 1601 else
81ecdfbb
RW
1602 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1603 fi || ac_status=$?
1604 cd "$ac_pwd" || { ac_status=$?; break; }
42ecbf5e
DJ
1605 done
1606fi
5d64ca4e 1607
81ecdfbb 1608test -n "$ac_init_help" && exit $ac_status
42ecbf5e
DJ
1609if $ac_init_version; then
1610 cat <<\_ACEOF
573fe3fb 1611binutils configure 2.36.50
d0ac1c44 1612generated by GNU Autoconf 2.69
5d64ca4e 1613
d0ac1c44 1614Copyright (C) 2012 Free Software Foundation, Inc.
42ecbf5e
DJ
1615This configure script is free software; the Free Software Foundation
1616gives unlimited permission to copy, distribute and modify it.
1617_ACEOF
81ecdfbb 1618 exit
42ecbf5e 1619fi
252b5132 1620
81ecdfbb
RW
1621## ------------------------ ##
1622## Autoconf initialization. ##
1623## ------------------------ ##
e5a52504 1624
81ecdfbb
RW
1625# ac_fn_c_try_compile LINENO
1626# --------------------------
1627# Try to compile conftest.$ac_ext, and return whether this succeeded.
1628ac_fn_c_try_compile ()
42ecbf5e 1629{
81ecdfbb
RW
1630 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1631 rm -f conftest.$ac_objext
1632 if { { ac_try="$ac_compile"
1633case "(($ac_try" in
1634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1635 *) ac_try_echo=$ac_try;;
1636esac
1637eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1638$as_echo "$ac_try_echo"; } >&5
1639 (eval "$ac_compile") 2>conftest.err
1640 ac_status=$?
1641 if test -s conftest.err; then
1642 grep -v '^ *+' conftest.err >conftest.er1
1643 cat conftest.er1 >&5
1644 mv -f conftest.er1 conftest.err
1645 fi
1646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1647 test $ac_status = 0; } && {
1648 test -z "$ac_c_werror_flag" ||
1649 test ! -s conftest.err
1650 } && test -s conftest.$ac_objext; then :
1651 ac_retval=0
1652else
1653 $as_echo "$as_me: failed program was:" >&5
1654sed 's/^/| /' conftest.$ac_ext >&5
42ecbf5e 1655
81ecdfbb
RW
1656 ac_retval=1
1657fi
d0ac1c44
SM
1658 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1659 as_fn_set_status $ac_retval
42ecbf5e 1660
81ecdfbb
RW
1661} # ac_fn_c_try_compile
1662
81ecdfbb
RW
1663# ac_fn_c_try_cpp LINENO
1664# ----------------------
1665# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1666ac_fn_c_try_cpp ()
1667{
1668 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1669 if { { ac_try="$ac_cpp conftest.$ac_ext"
1670case "(($ac_try" in
1671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1672 *) ac_try_echo=$ac_try;;
1673esac
1674eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1675$as_echo "$ac_try_echo"; } >&5
1676 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1677 ac_status=$?
1678 if test -s conftest.err; then
1679 grep -v '^ *+' conftest.err >conftest.er1
1680 cat conftest.er1 >&5
1681 mv -f conftest.er1 conftest.err
1682 fi
1683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
d0ac1c44 1684 test $ac_status = 0; } > conftest.i && {
81ecdfbb
RW
1685 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1686 test ! -s conftest.err
1687 }; then :
1688 ac_retval=0
1689else
1690 $as_echo "$as_me: failed program was:" >&5
1691sed 's/^/| /' conftest.$ac_ext >&5
1692
1693 ac_retval=1
1694fi
d0ac1c44
SM
1695 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1696 as_fn_set_status $ac_retval
81ecdfbb
RW
1697
1698} # ac_fn_c_try_cpp
1699
1700# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1701# -------------------------------------------------------
1702# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1703# the include files in INCLUDES and setting the cache variable VAR
1704# accordingly.
1705ac_fn_c_check_header_mongrel ()
1706{
1707 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
d0ac1c44 1708 if eval \${$3+:} false; then :
81ecdfbb
RW
1709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1710$as_echo_n "checking for $2... " >&6; }
d0ac1c44 1711if eval \${$3+:} false; then :
81ecdfbb
RW
1712 $as_echo_n "(cached) " >&6
1713fi
1714eval ac_res=\$$3
1715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1716$as_echo "$ac_res" >&6; }
1717else
1718 # Is the header compilable?
1719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1720$as_echo_n "checking $2 usability... " >&6; }
1721cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1722/* end confdefs.h. */
1723$4
1724#include <$2>
1725_ACEOF
1726if ac_fn_c_try_compile "$LINENO"; then :
1727 ac_header_compiler=yes
1728else
1729 ac_header_compiler=no
1730fi
1731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1733$as_echo "$ac_header_compiler" >&6; }
1734
1735# Is the header present?
1736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1737$as_echo_n "checking $2 presence... " >&6; }
1738cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1739/* end confdefs.h. */
1740#include <$2>
1741_ACEOF
1742if ac_fn_c_try_cpp "$LINENO"; then :
1743 ac_header_preproc=yes
1744else
1745 ac_header_preproc=no
1746fi
d0ac1c44 1747rm -f conftest.err conftest.i conftest.$ac_ext
81ecdfbb
RW
1748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1749$as_echo "$ac_header_preproc" >&6; }
1750
1751# So? What about this header?
1752case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1753 yes:no: )
1754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1755$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1757$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1758 ;;
1759 no:yes:* )
1760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1761$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1763$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1765$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1767$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1769$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1770 ;;
1771esac
1772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1773$as_echo_n "checking for $2... " >&6; }
d0ac1c44 1774if eval \${$3+:} false; then :
81ecdfbb
RW
1775 $as_echo_n "(cached) " >&6
1776else
1777 eval "$3=\$ac_header_compiler"
1778fi
1779eval ac_res=\$$3
1780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1781$as_echo "$ac_res" >&6; }
1782fi
d0ac1c44 1783 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
81ecdfbb
RW
1784
1785} # ac_fn_c_check_header_mongrel
1786
1787# ac_fn_c_try_run LINENO
1788# ----------------------
1789# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1790# that executables *can* be run.
1791ac_fn_c_try_run ()
1792{
1793 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1794 if { { ac_try="$ac_link"
1795case "(($ac_try" in
1796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1797 *) ac_try_echo=$ac_try;;
1798esac
1799eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1800$as_echo "$ac_try_echo"; } >&5
1801 (eval "$ac_link") 2>&5
1802 ac_status=$?
1803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1804 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1805 { { case "(($ac_try" in
1806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1807 *) ac_try_echo=$ac_try;;
1808esac
1809eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1810$as_echo "$ac_try_echo"; } >&5
1811 (eval "$ac_try") 2>&5
1812 ac_status=$?
1813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1814 test $ac_status = 0; }; }; then :
1815 ac_retval=0
1816else
1817 $as_echo "$as_me: program exited with status $ac_status" >&5
1818 $as_echo "$as_me: failed program was:" >&5
1819sed 's/^/| /' conftest.$ac_ext >&5
1820
1821 ac_retval=$ac_status
1822fi
1823 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
d0ac1c44
SM
1824 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1825 as_fn_set_status $ac_retval
81ecdfbb
RW
1826
1827} # ac_fn_c_try_run
1828
1829# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1830# -------------------------------------------------------
1831# Tests whether HEADER exists and can be compiled using the include files in
1832# INCLUDES, setting the cache variable VAR accordingly.
1833ac_fn_c_check_header_compile ()
1834{
1835 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1837$as_echo_n "checking for $2... " >&6; }
d0ac1c44 1838if eval \${$3+:} false; then :
81ecdfbb
RW
1839 $as_echo_n "(cached) " >&6
1840else
1841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1842/* end confdefs.h. */
1843$4
1844#include <$2>
1845_ACEOF
1846if ac_fn_c_try_compile "$LINENO"; then :
1847 eval "$3=yes"
1848else
1849 eval "$3=no"
1850fi
1851rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1852fi
1853eval ac_res=\$$3
1854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1855$as_echo "$ac_res" >&6; }
d0ac1c44 1856 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
81ecdfbb
RW
1857
1858} # ac_fn_c_check_header_compile
1859
87b9f255
AM
1860# ac_fn_c_try_link LINENO
1861# -----------------------
1862# Try to link conftest.$ac_ext, and return whether this succeeded.
1863ac_fn_c_try_link ()
1864{
1865 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1866 rm -f conftest.$ac_objext conftest$ac_exeext
1867 if { { ac_try="$ac_link"
1868case "(($ac_try" in
1869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1870 *) ac_try_echo=$ac_try;;
1871esac
1872eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1873$as_echo "$ac_try_echo"; } >&5
1874 (eval "$ac_link") 2>conftest.err
1875 ac_status=$?
1876 if test -s conftest.err; then
1877 grep -v '^ *+' conftest.err >conftest.er1
1878 cat conftest.er1 >&5
1879 mv -f conftest.er1 conftest.err
1880 fi
1881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1882 test $ac_status = 0; } && {
1883 test -z "$ac_c_werror_flag" ||
1884 test ! -s conftest.err
1885 } && test -s conftest$ac_exeext && {
1886 test "$cross_compiling" = yes ||
1887 test -x conftest$ac_exeext
1888 }; then :
1889 ac_retval=0
1890else
1891 $as_echo "$as_me: failed program was:" >&5
1892sed 's/^/| /' conftest.$ac_ext >&5
1893
1894 ac_retval=1
1895fi
1896 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1897 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1898 # interfere with the next link command; also delete a directory that is
1899 # left behind by Apple's compiler. We do this before executing the actions.
1900 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1901 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1902 as_fn_set_status $ac_retval
1903
1904} # ac_fn_c_try_link
1905
81ecdfbb
RW
1906# ac_fn_c_check_func LINENO FUNC VAR
1907# ----------------------------------
1908# Tests whether FUNC exists, setting the cache variable VAR accordingly
1909ac_fn_c_check_func ()
1910{
1911 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1913$as_echo_n "checking for $2... " >&6; }
d0ac1c44 1914if eval \${$3+:} false; then :
81ecdfbb
RW
1915 $as_echo_n "(cached) " >&6
1916else
1917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1918/* end confdefs.h. */
1919/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1920 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1921#define $2 innocuous_$2
1922
1923/* System header to define __stub macros and hopefully few prototypes,
1924 which can conflict with char $2 (); below.
1925 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1926 <limits.h> exists even on freestanding compilers. */
1927
1928#ifdef __STDC__
1929# include <limits.h>
1930#else
1931# include <assert.h>
1932#endif
1933
1934#undef $2
1935
1936/* Override any GCC internal prototype to avoid an error.
1937 Use char because int might match the return type of a GCC
1938 builtin and then its argument prototype would still apply. */
1939#ifdef __cplusplus
1940extern "C"
1941#endif
1942char $2 ();
1943/* The GNU C library defines this for functions which it implements
1944 to always fail with ENOSYS. Some functions are actually named
1945 something starting with __ and the normal name is an alias. */
1946#if defined __stub_$2 || defined __stub___$2
1947choke me
1948#endif
1949
1950int
1951main ()
1952{
1953return $2 ();
1954 ;
1955 return 0;
1956}
1957_ACEOF
1958if ac_fn_c_try_link "$LINENO"; then :
1959 eval "$3=yes"
1960else
1961 eval "$3=no"
1962fi
1963rm -f core conftest.err conftest.$ac_objext \
1964 conftest$ac_exeext conftest.$ac_ext
1965fi
1966eval ac_res=\$$3
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1968$as_echo "$ac_res" >&6; }
d0ac1c44 1969 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
81ecdfbb
RW
1970
1971} # ac_fn_c_check_func
1972
4c219c2e
AM
1973# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1974# --------------------------------------------
1975# Tries to find the compile-time value of EXPR in a program that includes
1976# INCLUDES, setting VAR accordingly. Returns whether the value could be
1977# computed
1978ac_fn_c_compute_int ()
1979{
1980 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1981 if test "$cross_compiling" = yes; then
1982 # Depending upon the size, compute the lo and hi bounds.
1983cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1984/* end confdefs.h. */
1985$4
1986int
1987main ()
1988{
1989static int test_array [1 - 2 * !(($2) >= 0)];
d0ac1c44
SM
1990test_array [0] = 0;
1991return test_array [0];
4c219c2e
AM
1992
1993 ;
1994 return 0;
1995}
1996_ACEOF
1997if ac_fn_c_try_compile "$LINENO"; then :
1998 ac_lo=0 ac_mid=0
1999 while :; do
2000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2001/* end confdefs.h. */
2002$4
2003int
2004main ()
2005{
2006static int test_array [1 - 2 * !(($2) <= $ac_mid)];
d0ac1c44
SM
2007test_array [0] = 0;
2008return test_array [0];
4c219c2e
AM
2009
2010 ;
2011 return 0;
2012}
2013_ACEOF
2014if ac_fn_c_try_compile "$LINENO"; then :
2015 ac_hi=$ac_mid; break
2016else
2017 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2018 if test $ac_lo -le $ac_mid; then
2019 ac_lo= ac_hi=
2020 break
2021 fi
2022 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2023fi
2024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2025 done
2026else
2027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2028/* end confdefs.h. */
2029$4
2030int
2031main ()
2032{
2033static int test_array [1 - 2 * !(($2) < 0)];
d0ac1c44
SM
2034test_array [0] = 0;
2035return test_array [0];
4c219c2e
AM
2036
2037 ;
2038 return 0;
2039}
2040_ACEOF
2041if ac_fn_c_try_compile "$LINENO"; then :
2042 ac_hi=-1 ac_mid=-1
2043 while :; do
2044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2045/* end confdefs.h. */
2046$4
2047int
2048main ()
2049{
2050static int test_array [1 - 2 * !(($2) >= $ac_mid)];
d0ac1c44
SM
2051test_array [0] = 0;
2052return test_array [0];
4c219c2e
AM
2053
2054 ;
2055 return 0;
2056}
2057_ACEOF
2058if ac_fn_c_try_compile "$LINENO"; then :
2059 ac_lo=$ac_mid; break
2060else
2061 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2062 if test $ac_mid -le $ac_hi; then
2063 ac_lo= ac_hi=
2064 break
2065 fi
2066 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2067fi
2068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2069 done
2070else
2071 ac_lo= ac_hi=
2072fi
2073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2074fi
2075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2076# Binary search between lo and hi bounds.
2077while test "x$ac_lo" != "x$ac_hi"; do
2078 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2080/* end confdefs.h. */
2081$4
2082int
2083main ()
2084{
2085static int test_array [1 - 2 * !(($2) <= $ac_mid)];
d0ac1c44
SM
2086test_array [0] = 0;
2087return test_array [0];
4c219c2e
AM
2088
2089 ;
2090 return 0;
2091}
2092_ACEOF
2093if ac_fn_c_try_compile "$LINENO"; then :
2094 ac_hi=$ac_mid
2095else
2096 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2097fi
2098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2099done
2100case $ac_lo in #((
2101?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2102'') ac_retval=1 ;;
2103esac
2104 else
2105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2106/* end confdefs.h. */
2107$4
2108static long int longval () { return $2; }
2109static unsigned long int ulongval () { return $2; }
2110#include <stdio.h>
2111#include <stdlib.h>
2112int
2113main ()
2114{
2115
2116 FILE *f = fopen ("conftest.val", "w");
2117 if (! f)
2118 return 1;
2119 if (($2) < 0)
2120 {
2121 long int i = longval ();
2122 if (i != ($2))
2123 return 1;
2124 fprintf (f, "%ld", i);
2125 }
2126 else
2127 {
2128 unsigned long int i = ulongval ();
2129 if (i != ($2))
2130 return 1;
2131 fprintf (f, "%lu", i);
2132 }
2133 /* Do not output a trailing newline, as this causes \r\n confusion
2134 on some platforms. */
2135 return ferror (f) || fclose (f) != 0;
2136
2137 ;
2138 return 0;
2139}
2140_ACEOF
2141if ac_fn_c_try_run "$LINENO"; then :
2142 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2143else
2144 ac_retval=1
2145fi
2146rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2147 conftest.$ac_objext conftest.beam conftest.$ac_ext
2148rm -f conftest.val
2149
2150 fi
d0ac1c44
SM
2151 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2152 as_fn_set_status $ac_retval
4c219c2e
AM
2153
2154} # ac_fn_c_compute_int
2155
f6720b1c
AM
2156# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2157# ---------------------------------------------
2158# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2159# accordingly.
2160ac_fn_c_check_decl ()
2161{
2162 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2163 as_decl_name=`echo $2|sed 's/ *(.*//'`
2164 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2166$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2167if eval \${$3+:} false; then :
2168 $as_echo_n "(cached) " >&6
2169else
2170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2171/* end confdefs.h. */
2172$4
2173int
2174main ()
2175{
2176#ifndef $as_decl_name
2177#ifdef __cplusplus
2178 (void) $as_decl_use;
2179#else
2180 (void) $as_decl_name;
2181#endif
2182#endif
2183
2184 ;
2185 return 0;
2186}
2187_ACEOF
2188if ac_fn_c_try_compile "$LINENO"; then :
2189 eval "$3=yes"
2190else
2191 eval "$3=no"
2192fi
2193rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2194fi
2195eval ac_res=\$$3
2196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2197$as_echo "$ac_res" >&6; }
2198 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2199
2200} # ac_fn_c_check_decl
81ecdfbb
RW
2201cat >config.log <<_ACEOF
2202This file contains any messages produced by compilers while
2203running configure, to aid debugging if configure makes a mistake.
2204
573fe3fb 2205It was created by binutils $as_me 2.36.50, which was
d0ac1c44 2206generated by GNU Autoconf 2.69. Invocation command line was
81ecdfbb
RW
2207
2208 $ $0 $@
2209
2210_ACEOF
2211exec 5>>config.log
2212{
2213cat <<_ASUNAME
2214## --------- ##
2215## Platform. ##
2216## --------- ##
2217
2218hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2219uname -m = `(uname -m) 2>/dev/null || echo unknown`
2220uname -r = `(uname -r) 2>/dev/null || echo unknown`
2221uname -s = `(uname -s) 2>/dev/null || echo unknown`
2222uname -v = `(uname -v) 2>/dev/null || echo unknown`
2223
2224/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2225/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2226
2227/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2228/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2229/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2230/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2231/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2232/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2233/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
42ecbf5e
DJ
2234
2235_ASUNAME
2236
2237as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2238for as_dir in $PATH
2239do
2240 IFS=$as_save_IFS
2241 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2242 $as_echo "PATH: $as_dir"
2243 done
2244IFS=$as_save_IFS
e5a52504 2245
42ecbf5e 2246} >&5
ceae3e33 2247
42ecbf5e 2248cat >&5 <<_ACEOF
e5a52504 2249
42ecbf5e
DJ
2250
2251## ----------- ##
2252## Core tests. ##
2253## ----------- ##
2254
2255_ACEOF
2256
2257
2258# Keep a trace of the command line.
2259# Strip out --no-create and --no-recursion so they do not pile up.
2260# Strip out --silent because we don't want to record it for future runs.
2261# Also quote any args containing shell meta-characters.
2262# Make two passes to allow for proper duplicate-argument suppression.
2263ac_configure_args=
2264ac_configure_args0=
2265ac_configure_args1=
42ecbf5e
DJ
2266ac_must_keep_next=false
2267for ac_pass in 1 2
2268do
2269 for ac_arg
2270 do
2271 case $ac_arg in
2272 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2273 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2274 | -silent | --silent | --silen | --sile | --sil)
2275 continue ;;
81ecdfbb
RW
2276 *\'*)
2277 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
42ecbf5e
DJ
2278 esac
2279 case $ac_pass in
81ecdfbb 2280 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
42ecbf5e 2281 2)
81ecdfbb 2282 as_fn_append ac_configure_args1 " '$ac_arg'"
42ecbf5e
DJ
2283 if test $ac_must_keep_next = true; then
2284 ac_must_keep_next=false # Got value, back to normal.
2285 else
2286 case $ac_arg in
2287 *=* | --config-cache | -C | -disable-* | --disable-* \
2288 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2289 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2290 | -with-* | --with-* | -without-* | --without-* | --x)
2291 case "$ac_configure_args0 " in
2292 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2293 esac
2294 ;;
2295 -* ) ac_must_keep_next=true ;;
2296 esac
2297 fi
81ecdfbb 2298 as_fn_append ac_configure_args " '$ac_arg'"
42ecbf5e
DJ
2299 ;;
2300 esac
2301 done
2302done
81ecdfbb
RW
2303{ ac_configure_args0=; unset ac_configure_args0;}
2304{ ac_configure_args1=; unset ac_configure_args1;}
42ecbf5e
DJ
2305
2306# When interrupted or exit'd, cleanup temporary files, and complete
2307# config.log. We remove comments because anyway the quotes in there
2308# would cause problems or look ugly.
81ecdfbb
RW
2309# WARNING: Use '\'' to represent an apostrophe within the trap.
2310# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
42ecbf5e
DJ
2311trap 'exit_status=$?
2312 # Save into config.log some information that might help in debugging.
2313 {
2314 echo
2315
d0ac1c44 2316 $as_echo "## ---------------- ##
42ecbf5e 2317## Cache variables. ##
d0ac1c44 2318## ---------------- ##"
42ecbf5e
DJ
2319 echo
2320 # The following way of writing the cache mishandles newlines in values,
81ecdfbb
RW
2321(
2322 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2323 eval ac_val=\$$ac_var
2324 case $ac_val in #(
2325 *${as_nl}*)
2326 case $ac_var in #(
2327 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2328$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2329 esac
2330 case $ac_var in #(
2331 _ | IFS | as_nl) ;; #(
2332 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2333 *) { eval $ac_var=; unset $ac_var;} ;;
2334 esac ;;
2335 esac
2336 done
42ecbf5e 2337 (set) 2>&1 |
81ecdfbb
RW
2338 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2339 *${as_nl}ac_space=\ *)
42ecbf5e 2340 sed -n \
81ecdfbb
RW
2341 "s/'\''/'\''\\\\'\'''\''/g;
2342 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2343 ;; #(
42ecbf5e 2344 *)
81ecdfbb 2345 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
42ecbf5e 2346 ;;
81ecdfbb
RW
2347 esac |
2348 sort
2349)
42ecbf5e
DJ
2350 echo
2351
d0ac1c44 2352 $as_echo "## ----------------- ##
42ecbf5e 2353## Output variables. ##
d0ac1c44 2354## ----------------- ##"
42ecbf5e
DJ
2355 echo
2356 for ac_var in $ac_subst_vars
2357 do
81ecdfbb
RW
2358 eval ac_val=\$$ac_var
2359 case $ac_val in
2360 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2361 esac
2362 $as_echo "$ac_var='\''$ac_val'\''"
42ecbf5e
DJ
2363 done | sort
2364 echo
2365
2366 if test -n "$ac_subst_files"; then
d0ac1c44 2367 $as_echo "## ------------------- ##
81ecdfbb 2368## File substitutions. ##
d0ac1c44 2369## ------------------- ##"
42ecbf5e
DJ
2370 echo
2371 for ac_var in $ac_subst_files
2372 do
81ecdfbb
RW
2373 eval ac_val=\$$ac_var
2374 case $ac_val in
2375 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2376 esac
2377 $as_echo "$ac_var='\''$ac_val'\''"
42ecbf5e
DJ
2378 done | sort
2379 echo
2380 fi
2381
2382 if test -s confdefs.h; then
d0ac1c44 2383 $as_echo "## ----------- ##
42ecbf5e 2384## confdefs.h. ##
d0ac1c44 2385## ----------- ##"
42ecbf5e 2386 echo
81ecdfbb 2387 cat confdefs.h
42ecbf5e
DJ
2388 echo
2389 fi
2390 test "$ac_signal" != 0 &&
81ecdfbb
RW
2391 $as_echo "$as_me: caught signal $ac_signal"
2392 $as_echo "$as_me: exit $exit_status"
42ecbf5e 2393 } >&5
81ecdfbb
RW
2394 rm -f core *.core core.conftest.* &&
2395 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
42ecbf5e 2396 exit $exit_status
81ecdfbb 2397' 0
42ecbf5e 2398for ac_signal in 1 2 13 15; do
81ecdfbb 2399 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
42ecbf5e
DJ
2400done
2401ac_signal=0
2402
2403# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
2404rm -f -r conftest* confdefs.h
2405
2406$as_echo "/* confdefs.h */" > confdefs.h
42ecbf5e
DJ
2407
2408# Predefined preprocessor variables.
2409
2410cat >>confdefs.h <<_ACEOF
2411#define PACKAGE_NAME "$PACKAGE_NAME"
2412_ACEOF
2413
42ecbf5e
DJ
2414cat >>confdefs.h <<_ACEOF
2415#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2416_ACEOF
2417
42ecbf5e
DJ
2418cat >>confdefs.h <<_ACEOF
2419#define PACKAGE_VERSION "$PACKAGE_VERSION"
2420_ACEOF
2421
42ecbf5e
DJ
2422cat >>confdefs.h <<_ACEOF
2423#define PACKAGE_STRING "$PACKAGE_STRING"
2424_ACEOF
2425
42ecbf5e
DJ
2426cat >>confdefs.h <<_ACEOF
2427#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2428_ACEOF
2429
81ecdfbb
RW
2430cat >>confdefs.h <<_ACEOF
2431#define PACKAGE_URL "$PACKAGE_URL"
2432_ACEOF
2433
42ecbf5e
DJ
2434
2435# Let the site file select an alternate cache file if it wants to.
81ecdfbb
RW
2436# Prefer an explicitly selected file to automatically selected ones.
2437ac_site_file1=NONE
2438ac_site_file2=NONE
2439if test -n "$CONFIG_SITE"; then
d0ac1c44
SM
2440 # We do not want a PATH search for config.site.
2441 case $CONFIG_SITE in #((
2442 -*) ac_site_file1=./$CONFIG_SITE;;
2443 */*) ac_site_file1=$CONFIG_SITE;;
2444 *) ac_site_file1=./$CONFIG_SITE;;
2445 esac
81ecdfbb
RW
2446elif test "x$prefix" != xNONE; then
2447 ac_site_file1=$prefix/share/config.site
2448 ac_site_file2=$prefix/etc/config.site
2449else
2450 ac_site_file1=$ac_default_prefix/share/config.site
2451 ac_site_file2=$ac_default_prefix/etc/config.site
2452fi
2453for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2454do
2455 test "x$ac_site_file" = xNONE && continue
d0ac1c44 2456 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
81ecdfbb
RW
2457 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2458$as_echo "$as_me: loading site script $ac_site_file" >&6;}
42ecbf5e 2459 sed 's/^/| /' "$ac_site_file" >&5
d0ac1c44
SM
2460 . "$ac_site_file" \
2461 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2462$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2463as_fn_error $? "failed to load site script $ac_site_file
2464See \`config.log' for more details" "$LINENO" 5; }
42ecbf5e
DJ
2465 fi
2466done
2467
2468if test -r "$cache_file"; then
d0ac1c44
SM
2469 # Some versions of bash will fail to source /dev/null (special files
2470 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2471 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
81ecdfbb
RW
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2473$as_echo "$as_me: loading cache $cache_file" >&6;}
42ecbf5e 2474 case $cache_file in
81ecdfbb
RW
2475 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2476 *) . "./$cache_file";;
42ecbf5e
DJ
2477 esac
2478 fi
2479else
81ecdfbb
RW
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2481$as_echo "$as_me: creating cache $cache_file" >&6;}
42ecbf5e
DJ
2482 >$cache_file
2483fi
2484
34156b23
L
2485as_fn_append ac_header_list " stdlib.h"
2486as_fn_append ac_header_list " unistd.h"
2487as_fn_append ac_header_list " sys/param.h"
42ecbf5e
DJ
2488# Check that the precious variables saved in the cache have kept the same
2489# value.
2490ac_cache_corrupted=false
81ecdfbb 2491for ac_var in $ac_precious_vars; do
42ecbf5e
DJ
2492 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2493 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
2494 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2495 eval ac_new_val=\$ac_env_${ac_var}_value
42ecbf5e
DJ
2496 case $ac_old_set,$ac_new_set in
2497 set,)
81ecdfbb
RW
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2499$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
42ecbf5e
DJ
2500 ac_cache_corrupted=: ;;
2501 ,set)
81ecdfbb
RW
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2503$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
42ecbf5e
DJ
2504 ac_cache_corrupted=: ;;
2505 ,);;
2506 *)
2507 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
2508 # differences in whitespace do not lead to failure.
2509 ac_old_val_w=`echo x $ac_old_val`
2510 ac_new_val_w=`echo x $ac_new_val`
2511 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2512 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2513$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2514 ac_cache_corrupted=:
2515 else
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2517$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2518 eval $ac_var=\$ac_old_val
2519 fi
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2521$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2522 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2523$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
42ecbf5e
DJ
2524 fi;;
2525 esac
2526 # Pass precious variables to config.status.
2527 if test "$ac_new_set" = set; then
2528 case $ac_new_val in
81ecdfbb 2529 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
42ecbf5e
DJ
2530 *) ac_arg=$ac_var=$ac_new_val ;;
2531 esac
2532 case " $ac_configure_args " in
2533 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
81ecdfbb 2534 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
42ecbf5e
DJ
2535 esac
2536 fi
2537done
2538if $ac_cache_corrupted; then
81ecdfbb
RW
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2540$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2541 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2542$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
d0ac1c44 2543 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
42ecbf5e 2544fi
81ecdfbb
RW
2545## -------------------- ##
2546## Main body of script. ##
2547## -------------------- ##
42ecbf5e
DJ
2548
2549ac_ext=c
2550ac_cpp='$CPP $CPPFLAGS'
2551ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2552ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2553ac_compiler_gnu=$ac_cv_c_compiler_gnu
2554
2555
2556
42ecbf5e 2557
da594c4a 2558
42ecbf5e
DJ
2559
2560
2561ac_aux_dir=
81ecdfbb 2562for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
d0ac1c44
SM
2563 if test -f "$ac_dir/install-sh"; then
2564 ac_aux_dir=$ac_dir
2565 ac_install_sh="$ac_aux_dir/install-sh -c"
2566 break
2567 elif test -f "$ac_dir/install.sh"; then
2568 ac_aux_dir=$ac_dir
2569 ac_install_sh="$ac_aux_dir/install.sh -c"
2570 break
2571 elif test -f "$ac_dir/shtool"; then
2572 ac_aux_dir=$ac_dir
2573 ac_install_sh="$ac_aux_dir/shtool install -c"
2574 break
2575 fi
42ecbf5e
DJ
2576done
2577if test -z "$ac_aux_dir"; then
d0ac1c44 2578 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
42ecbf5e 2579fi
81ecdfbb
RW
2580
2581# These three variables are undocumented and unsupported,
2582# and are intended to be withdrawn in a future Autoconf release.
2583# They can cause serious problems if a builder's source tree is in a directory
2584# whose full name contains unusual characters.
2585ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2586ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2587ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2588
42ecbf5e
DJ
2589
2590# Make sure we can run config.sub.
81ecdfbb 2591$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
d0ac1c44 2592 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
81ecdfbb
RW
2593
2594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2595$as_echo_n "checking build system type... " >&6; }
d0ac1c44 2596if ${ac_cv_build+:} false; then :
81ecdfbb
RW
2597 $as_echo_n "(cached) " >&6
2598else
2599 ac_build_alias=$build_alias
2600test "x$ac_build_alias" = x &&
2601 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2602test "x$ac_build_alias" = x &&
d0ac1c44 2603 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
81ecdfbb 2604ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
d0ac1c44 2605 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
81ecdfbb
RW
2606
2607fi
2608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2609$as_echo "$ac_cv_build" >&6; }
2610case $ac_cv_build in
2611*-*-*) ;;
d0ac1c44 2612*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
81ecdfbb 2613esac
42ecbf5e 2614build=$ac_cv_build
81ecdfbb
RW
2615ac_save_IFS=$IFS; IFS='-'
2616set x $ac_cv_build
2617shift
2618build_cpu=$1
2619build_vendor=$2
2620shift; shift
2621# Remember, the first character of IFS is used to create $*,
2622# except with old shells:
2623build_os=$*
2624IFS=$ac_save_IFS
2625case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
42ecbf5e
DJ
2626
2627
81ecdfbb
RW
2628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2629$as_echo_n "checking host system type... " >&6; }
d0ac1c44 2630if ${ac_cv_host+:} false; then :
81ecdfbb 2631 $as_echo_n "(cached) " >&6
42ecbf5e 2632else
81ecdfbb
RW
2633 if test "x$host_alias" = x; then
2634 ac_cv_host=$ac_cv_build
2635else
2636 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
d0ac1c44 2637 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
81ecdfbb 2638fi
42ecbf5e
DJ
2639
2640fi
81ecdfbb
RW
2641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2642$as_echo "$ac_cv_host" >&6; }
2643case $ac_cv_host in
2644*-*-*) ;;
d0ac1c44 2645*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
81ecdfbb 2646esac
42ecbf5e 2647host=$ac_cv_host
81ecdfbb
RW
2648ac_save_IFS=$IFS; IFS='-'
2649set x $ac_cv_host
2650shift
2651host_cpu=$1
2652host_vendor=$2
2653shift; shift
2654# Remember, the first character of IFS is used to create $*,
2655# except with old shells:
2656host_os=$*
2657IFS=$ac_save_IFS
2658case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
42ecbf5e
DJ
2659
2660
81ecdfbb
RW
2661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2662$as_echo_n "checking target system type... " >&6; }
d0ac1c44 2663if ${ac_cv_target+:} false; then :
81ecdfbb
RW
2664 $as_echo_n "(cached) " >&6
2665else
2666 if test "x$target_alias" = x; then
2667 ac_cv_target=$ac_cv_host
42ecbf5e 2668else
81ecdfbb 2669 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
d0ac1c44 2670 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
81ecdfbb 2671fi
42ecbf5e
DJ
2672
2673fi
81ecdfbb
RW
2674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2675$as_echo "$ac_cv_target" >&6; }
2676case $ac_cv_target in
2677*-*-*) ;;
d0ac1c44 2678*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
81ecdfbb 2679esac
42ecbf5e 2680target=$ac_cv_target
81ecdfbb
RW
2681ac_save_IFS=$IFS; IFS='-'
2682set x $ac_cv_target
2683shift
2684target_cpu=$1
2685target_vendor=$2
2686shift; shift
2687# Remember, the first character of IFS is used to create $*,
2688# except with old shells:
2689target_os=$*
2690IFS=$ac_save_IFS
2691case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
42ecbf5e
DJ
2692
2693
2694# The aliases save the names the user supplied, while $host etc.
2695# will get canonicalized.
2696test -n "$target_alias" &&
2697 test "$program_prefix$program_suffix$program_transform_name" = \
2698 NONENONEs,x,x, &&
2699 program_prefix=${target_alias}-
d0ac1c44 2700
87b9f255
AM
2701am__api_version='1.15'
2702
2703# Find a good install program. We prefer a C program (faster),
2704# so one script is as good as another. But avoid the broken or
2705# incompatible versions:
2706# SysV /etc/install, /usr/sbin/install
2707# SunOS /usr/etc/install
2708# IRIX /sbin/install
2709# AIX /bin/install
2710# AmigaOS /C/install, which installs bootblocks on floppy discs
2711# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2712# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2713# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2714# OS/2's system install, which has a completely different semantic
2715# ./install, which can be erroneously created by make from ./install.sh.
2716# Reject install programs that cannot install multiple files.
2717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2718$as_echo_n "checking for a BSD-compatible install... " >&6; }
2719if test -z "$INSTALL"; then
2720if ${ac_cv_path_install+:} false; then :
81ecdfbb 2721 $as_echo_n "(cached) " >&6
42ecbf5e 2722else
87b9f255 2723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42ecbf5e
DJ
2724for as_dir in $PATH
2725do
2726 IFS=$as_save_IFS
2727 test -z "$as_dir" && as_dir=.
87b9f255
AM
2728 # Account for people who put trailing slashes in PATH elements.
2729case $as_dir/ in #((
2730 ./ | .// | /[cC]/* | \
2731 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2732 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2733 /usr/ucb/* ) ;;
2734 *)
2735 # OSF1 and SCO ODT 3.0 have their own names for install.
2736 # Don't use installbsd from OSF since it installs stuff as root
2737 # by default.
2738 for ac_prog in ginstall scoinst install; do
2739 for ac_exec_ext in '' $ac_executable_extensions; do
2740 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2741 if test $ac_prog = install &&
2742 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2743 # AIX install. It has an incompatible calling convention.
2744 :
2745 elif test $ac_prog = install &&
2746 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2747 # program-specific install script used by HP pwplus--don't use.
2748 :
2749 else
2750 rm -rf conftest.one conftest.two conftest.dir
2751 echo one > conftest.one
2752 echo two > conftest.two
2753 mkdir conftest.dir
2754 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2755 test -s conftest.one && test -s conftest.two &&
2756 test -s conftest.dir/conftest.one &&
2757 test -s conftest.dir/conftest.two
2758 then
2759 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2760 break 3
2761 fi
2762 fi
2763 fi
2764 done
2765 done
2766 ;;
2767esac
2768
81ecdfbb
RW
2769 done
2770IFS=$as_save_IFS
42ecbf5e 2771
87b9f255
AM
2772rm -rf conftest.one conftest.two conftest.dir
2773
252b5132
RH
2774fi
2775 if test "${ac_cv_path_install+set}" = set; then
42ecbf5e 2776 INSTALL=$ac_cv_path_install
252b5132 2777 else
58c85be7
RW
2778 # As a last resort, use the slow shell script. Don't cache a
2779 # value for INSTALL within a source directory, because that will
252b5132 2780 # break other packages using the cache if that directory is
58c85be7 2781 # removed, or if the value is a relative name.
42ecbf5e 2782 INSTALL=$ac_install_sh
252b5132
RH
2783 fi
2784fi
81ecdfbb
RW
2785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2786$as_echo "$INSTALL" >&6; }
252b5132
RH
2787
2788# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2789# It thinks the first close brace ends the variable substitution.
2790test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2791
42ecbf5e 2792test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
2793
2794test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2795
81ecdfbb
RW
2796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2797$as_echo_n "checking whether build environment is sane... " >&6; }
81ecdfbb
RW
2798# Reject unsafe characters in $srcdir or the absolute working directory
2799# name. Accept space and tab only in the latter.
2800am_lf='
2801'
2802case `pwd` in
2803 *[\\\"\#\$\&\'\`$am_lf]*)
d0ac1c44 2804 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
81ecdfbb
RW
2805esac
2806case $srcdir in
2807 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
d0ac1c44 2808 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
81ecdfbb
RW
2809esac
2810
d0ac1c44 2811# Do 'set' in a subshell so we don't clobber the current shell's
252b5132
RH
2812# arguments. Must try -L first in case configure is actually a
2813# symlink; some systems play weird games with the mod time of symlinks
2814# (eg FreeBSD returns the mod time of the symlink's containing
2815# directory).
2816if (
d0ac1c44
SM
2817 am_has_slept=no
2818 for am_try in 1 2; do
2819 echo "timestamp, slept: $am_has_slept" > conftest.file
2820 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2821 if test "$*" = "X"; then
2822 # -L didn't work.
2823 set X `ls -t "$srcdir/configure" conftest.file`
2824 fi
2825 if test "$*" != "X $srcdir/configure conftest.file" \
2826 && test "$*" != "X conftest.file $srcdir/configure"; then
2827
2828 # If neither matched, then we have a broken ls. This can happen
2829 # if, for instance, CONFIG_SHELL is bash and it inherits a
2830 # broken ls alias from the environment. This has actually
2831 # happened. Such a system could not be considered "sane".
2832 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2833 alias in your environment" "$LINENO" 5
2834 fi
2835 if test "$2" = conftest.file || test $am_try -eq 2; then
2836 break
2837 fi
2838 # Just in case.
2839 sleep 1
2840 am_has_slept=yes
2841 done
42ecbf5e 2842 test "$2" = conftest.file
252b5132
RH
2843 )
2844then
2845 # Ok.
2846 :
2847else
d0ac1c44 2848 as_fn_error $? "newly created file is older than distributed files!
81ecdfbb 2849Check your system clock" "$LINENO" 5
42ecbf5e 2850fi
81ecdfbb
RW
2851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2852$as_echo "yes" >&6; }
d0ac1c44
SM
2853# If we didn't sleep, we still need to ensure time stamps of config.status and
2854# generated files are strictly newer.
2855am_sleep_pid=
2856if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2857 ( sleep 1 ) &
2858 am_sleep_pid=$!
2859fi
2860
2861rm -f conftest.file
2862
42ecbf5e 2863test "$program_prefix" != NONE &&
81ecdfbb 2864 program_transform_name="s&^&$program_prefix&;$program_transform_name"
42ecbf5e
DJ
2865# Use a double $ so make ignores it.
2866test "$program_suffix" != NONE &&
81ecdfbb
RW
2867 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2868# Double any \ or $.
42ecbf5e 2869# By default was `s,x,x', remove it if useless.
81ecdfbb
RW
2870ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2871program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
42ecbf5e 2872
87b9f255
AM
2873# Expand $ac_aux_dir to an absolute path.
2874am_aux_dir=`cd "$ac_aux_dir" && pwd`
2875
81ecdfbb
RW
2876if test x"${MISSING+set}" != xset; then
2877 case $am_aux_dir in
2878 *\ * | *\ *)
2879 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2880 *)
2881 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2882 esac
2883fi
42ecbf5e 2884# Use eval to expand $SHELL
d0ac1c44
SM
2885if eval "$MISSING --is-lightweight"; then
2886 am_missing_run="$MISSING "
42ecbf5e
DJ
2887else
2888 am_missing_run=
d0ac1c44
SM
2889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2890$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
42ecbf5e
DJ
2891fi
2892
d0ac1c44 2893if test x"${install_sh+set}" != xset; then
81ecdfbb
RW
2894 case $am_aux_dir in
2895 *\ * | *\ *)
2896 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2897 *)
2898 install_sh="\${SHELL} $am_aux_dir/install-sh"
2899 esac
2900fi
2901
d0ac1c44
SM
2902# Installed binaries are usually stripped using 'strip' when the user
2903# run "make install-strip". However 'strip' might not be the right
81ecdfbb 2904# tool to use in cross-compilation environments, therefore Automake
d0ac1c44 2905# will honor the 'STRIP' environment variable to overrule this program.
81ecdfbb
RW
2906if test "$cross_compiling" != no; then
2907 if test -n "$ac_tool_prefix"; then
2908 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2909set dummy ${ac_tool_prefix}strip; ac_word=$2
2910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2911$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 2912if ${ac_cv_prog_STRIP+:} false; then :
81ecdfbb 2913 $as_echo_n "(cached) " >&6
42ecbf5e 2914else
81ecdfbb
RW
2915 if test -n "$STRIP"; then
2916 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
42ecbf5e
DJ
2917else
2918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2919for as_dir in $PATH
2920do
2921 IFS=$as_save_IFS
2922 test -z "$as_dir" && as_dir=.
81ecdfbb 2923 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2924 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
81ecdfbb
RW
2925 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2927 break 2
2928 fi
2929done
2930 done
2931IFS=$as_save_IFS
2932
2933fi
2934fi
2935STRIP=$ac_cv_prog_STRIP
2936if test -n "$STRIP"; then
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2938$as_echo "$STRIP" >&6; }
2939else
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2941$as_echo "no" >&6; }
2942fi
2943
2944
2945fi
2946if test -z "$ac_cv_prog_STRIP"; then
2947 ac_ct_STRIP=$STRIP
2948 # Extract the first word of "strip", so it can be a program name with args.
2949set dummy strip; ac_word=$2
2950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2951$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 2952if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
81ecdfbb
RW
2953 $as_echo_n "(cached) " >&6
2954else
2955 if test -n "$ac_ct_STRIP"; then
2956 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2957else
2958as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2959for as_dir in $PATH
2960do
2961 IFS=$as_save_IFS
2962 test -z "$as_dir" && as_dir=.
2963 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2964 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
81ecdfbb
RW
2965 ac_cv_prog_ac_ct_STRIP="strip"
2966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
2967 break 2
2968 fi
2969done
81ecdfbb
RW
2970 done
2971IFS=$as_save_IFS
2972
2973fi
2974fi
2975ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2976if test -n "$ac_ct_STRIP"; then
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2978$as_echo "$ac_ct_STRIP" >&6; }
2979else
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2981$as_echo "no" >&6; }
2982fi
2983
2984 if test "x$ac_ct_STRIP" = x; then
2985 STRIP=":"
2986 else
2987 case $cross_compiling:$ac_tool_warned in
2988yes:)
2989{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2990$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2991ac_tool_warned=yes ;;
2992esac
2993 STRIP=$ac_ct_STRIP
2994 fi
2995else
2996 STRIP="$ac_cv_prog_STRIP"
2997fi
2998
2999fi
3000INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3001
3002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3003$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3004if test -z "$MKDIR_P"; then
d0ac1c44 3005 if ${ac_cv_path_mkdir+:} false; then :
81ecdfbb
RW
3006 $as_echo_n "(cached) " >&6
3007else
3008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3009for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3010do
3011 IFS=$as_save_IFS
3012 test -z "$as_dir" && as_dir=.
3013 for ac_prog in mkdir gmkdir; do
3014 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3015 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
81ecdfbb
RW
3016 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3017 'mkdir (GNU coreutils) '* | \
3018 'mkdir (coreutils) '* | \
3019 'mkdir (fileutils) '4.1*)
3020 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3021 break 3;;
3022 esac
3023 done
3024 done
3025 done
3026IFS=$as_save_IFS
3027
3028fi
3029
d0ac1c44 3030 test -d ./--version && rmdir ./--version
81ecdfbb
RW
3031 if test "${ac_cv_path_mkdir+set}" = set; then
3032 MKDIR_P="$ac_cv_path_mkdir -p"
3033 else
3034 # As a last resort, use the slow shell script. Don't cache a
3035 # value for MKDIR_P within a source directory, because that will
3036 # break other packages using the cache if that directory is
3037 # removed, or if the value is a relative name.
81ecdfbb
RW
3038 MKDIR_P="$ac_install_sh -d"
3039 fi
3040fi
3041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3042$as_echo "$MKDIR_P" >&6; }
3043
81ecdfbb
RW
3044for ac_prog in gawk mawk nawk awk
3045do
3046 # Extract the first word of "$ac_prog", so it can be a program name with args.
3047set dummy $ac_prog; ac_word=$2
3048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3049$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 3050if ${ac_cv_prog_AWK+:} false; then :
81ecdfbb
RW
3051 $as_echo_n "(cached) " >&6
3052else
3053 if test -n "$AWK"; then
3054 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3055else
3056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3057for as_dir in $PATH
3058do
3059 IFS=$as_save_IFS
3060 test -z "$as_dir" && as_dir=.
3061 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3062 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
81ecdfbb
RW
3063 ac_cv_prog_AWK="$ac_prog"
3064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3065 break 2
3066 fi
42ecbf5e 3067done
81ecdfbb
RW
3068 done
3069IFS=$as_save_IFS
42ecbf5e
DJ
3070
3071fi
3072fi
3073AWK=$ac_cv_prog_AWK
3074if test -n "$AWK"; then
81ecdfbb
RW
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3076$as_echo "$AWK" >&6; }
42ecbf5e 3077else
81ecdfbb
RW
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3079$as_echo "no" >&6; }
42ecbf5e
DJ
3080fi
3081
81ecdfbb 3082
42ecbf5e
DJ
3083 test -n "$AWK" && break
3084done
3085
81ecdfbb
RW
3086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3087$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3088set x ${MAKE-make}
3089ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
d0ac1c44 3090if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
81ecdfbb 3091 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
3092else
3093 cat >conftest.make <<\_ACEOF
81ecdfbb 3094SHELL = /bin/sh
42ecbf5e 3095all:
81ecdfbb 3096 @echo '@@@%%%=$(MAKE)=@@@%%%'
42ecbf5e 3097_ACEOF
d0ac1c44 3098# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
81ecdfbb
RW
3099case `${MAKE-make} -f conftest.make 2>/dev/null` in
3100 *@@@%%%=?*=@@@%%%*)
3101 eval ac_cv_prog_make_${ac_make}_set=yes;;
3102 *)
3103 eval ac_cv_prog_make_${ac_make}_set=no;;
3104esac
42ecbf5e
DJ
3105rm -f conftest.make
3106fi
81ecdfbb
RW
3107if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3109$as_echo "yes" >&6; }
42ecbf5e
DJ
3110 SET_MAKE=
3111else
81ecdfbb
RW
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3113$as_echo "no" >&6; }
42ecbf5e
DJ
3114 SET_MAKE="MAKE=${MAKE-make}"
3115fi
3116
3117rm -rf .tst 2>/dev/null
3118mkdir .tst 2>/dev/null
3119if test -d .tst; then
3120 am__leading_dot=.
3121else
3122 am__leading_dot=_
3123fi
3124rmdir .tst 2>/dev/null
3125
d0ac1c44
SM
3126# Check whether --enable-silent-rules was given.
3127if test "${enable_silent_rules+set}" = set; then :
3128 enableval=$enable_silent_rules;
3129fi
3130
3131case $enable_silent_rules in # (((
3132 yes) AM_DEFAULT_VERBOSITY=0;;
3133 no) AM_DEFAULT_VERBOSITY=1;;
3134 *) AM_DEFAULT_VERBOSITY=1;;
3135esac
3136am_make=${MAKE-make}
3137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3138$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3139if ${am_cv_make_support_nested_variables+:} false; then :
3140 $as_echo_n "(cached) " >&6
3141else
3142 if $as_echo 'TRUE=$(BAR$(V))
3143BAR0=false
3144BAR1=true
3145V=1
3146am__doit:
3147 @$(TRUE)
3148.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3149 am_cv_make_support_nested_variables=yes
3150else
3151 am_cv_make_support_nested_variables=no
3152fi
3153fi
3154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3155$as_echo "$am_cv_make_support_nested_variables" >&6; }
3156if test $am_cv_make_support_nested_variables = yes; then
3157 AM_V='$(V)'
3158 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3159else
3160 AM_V=$AM_DEFAULT_VERBOSITY
3161 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3162fi
3163AM_BACKSLASH='\'
3164
81ecdfbb
RW
3165if test "`cd $srcdir && pwd`" != "`pwd`"; then
3166 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3167 # is not polluted with repeated "-I."
3168 am__isrc=' -I$(srcdir)'
3169 # test to see if srcdir already configured
3170 if test -f $srcdir/config.status; then
d0ac1c44 3171 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
81ecdfbb 3172 fi
42ecbf5e
DJ
3173fi
3174
3175# test whether we have cygpath
3176if test -z "$CYGPATH_W"; then
3177 if (cygpath --version) >/dev/null 2>/dev/null; then
3178 CYGPATH_W='cygpath -w'
3179 else
3180 CYGPATH_W=echo
3181 fi
3182fi
3183
3184
3185# Define the identity of the package.
2e98a7bd 3186 PACKAGE='binutils'
573fe3fb 3187 VERSION='2.36.50'
42ecbf5e
DJ
3188
3189
3190cat >>confdefs.h <<_ACEOF
3191#define PACKAGE "$PACKAGE"
3192_ACEOF
3193
3194
3195cat >>confdefs.h <<_ACEOF
3196#define VERSION "$VERSION"
3197_ACEOF
3198
3199# Some tools Automake needs.
3200
3201ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3202
3203
3204AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3205
3206
3207AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3208
3209
3210AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3211
3212
3213MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3214
d0ac1c44
SM
3215# For better backward compatibility. To be removed once Automake 1.9.x
3216# dies out for good. For more background, see:
3217# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3218# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3219mkdir_p='$(MKDIR_P)'
3220
3221# We need awk for the "check" target (and possibly the TAP driver). The
87b9f255
AM
3222# system "awk" is bad on some platforms.
3223# Always define AMTAR for backward compatibility. Yes, it's still used
3224# in the wild :-( We should find a proper way to deprecate it ...
3225AMTAR='$${TAR-tar}'
3226
3227
3228# We'll loop over all known methods to create a tar archive until one works.
3229_am_tools='gnutar pax cpio none'
3230
3231am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
42ecbf5e 3232
252b5132 3233
42ecbf5e 3234
252b5132
RH
3235
3236
3237
d0ac1c44
SM
3238# POSIX will say in a future version that running "rm -f" with no argument
3239# is OK; and we want to be able to make that assumption in our Makefile
3240# recipes. So use an aggressive probe to check that the usage we want is
3241# actually supported "in the wild" to an acceptable degree.
3242# See automake bug#10828.
3243# To make any issue more visible, cause the running configure to be aborted
3244# by default if the 'rm' program in use doesn't match our expectations; the
3245# user can still override this though.
3246if rm -f && rm -fr && rm -rf; then : OK; else
3247 cat >&2 <<'END'
3248Oops!
3249
3250Your 'rm' program seems unable to run without file operands specified
3251on the command line, even when the '-f' option is present. This is contrary
3252to the behaviour of most rm programs out there, and not conforming with
3253the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3254
3255Please tell bug-automake@gnu.org about your system, including the value
3256of your $PATH and any error possibly output before this message. This
3257can help us improve future automake versions.
3258
3259END
3260 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3261 echo 'Configuration will proceed anyway, since you have set the' >&2
3262 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3263 echo >&2
3264 else
3265 cat >&2 <<'END'
3266Aborting the configuration process, to ensure you take notice of the issue.
3267
3268You can download and install GNU coreutils to get an 'rm' implementation
3269that behaves properly: <http://www.gnu.org/software/coreutils/>.
3270
3271If you want to complete the configuration process using your problematic
3272'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3273to "yes", and re-run configure.
3274
3275END
3276 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3277 fi
3278fi
3279
42ecbf5e 3280
d45dc31f
SE
3281ac_ext=c
3282ac_cpp='$CPP $CPPFLAGS'
3283ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3284ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3285ac_compiler_gnu=$ac_cv_c_compiler_gnu
3286if test -n "$ac_tool_prefix"; then
3287 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3288set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
3289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3290$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 3291if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 3292 $as_echo_n "(cached) " >&6
252b5132 3293else
d45dc31f
SE
3294 if test -n "$CC"; then
3295 ac_cv_prog_CC="$CC" # Let the user override the test.
1a09a22c 3296else
d45dc31f
SE
3297as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3298for as_dir in $PATH
3299do
3300 IFS=$as_save_IFS
3301 test -z "$as_dir" && as_dir=.
81ecdfbb 3302 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3303 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d45dc31f 3304 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 3305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d45dc31f
SE
3306 break 2
3307 fi
3308done
81ecdfbb
RW
3309 done
3310IFS=$as_save_IFS
ceae3e33 3311
d45dc31f
SE
3312fi
3313fi
3314CC=$ac_cv_prog_CC
3315if test -n "$CC"; then
81ecdfbb
RW
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3317$as_echo "$CC" >&6; }
252b5132 3318else
81ecdfbb
RW
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3320$as_echo "no" >&6; }
252b5132 3321fi
d45dc31f 3322
81ecdfbb 3323
d45dc31f
SE
3324fi
3325if test -z "$ac_cv_prog_CC"; then
3326 ac_ct_CC=$CC
3327 # Extract the first word of "gcc", so it can be a program name with args.
3328set dummy gcc; ac_word=$2
81ecdfbb
RW
3329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3330$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 3331if ${ac_cv_prog_ac_ct_CC+:} false; then :
81ecdfbb 3332 $as_echo_n "(cached) " >&6
252b5132 3333else
d45dc31f
SE
3334 if test -n "$ac_ct_CC"; then
3335 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
252b5132 3336else
d45dc31f
SE
3337as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3338for as_dir in $PATH
3339do
3340 IFS=$as_save_IFS
3341 test -z "$as_dir" && as_dir=.
81ecdfbb 3342 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3343 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d45dc31f 3344 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 3345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d45dc31f
SE
3346 break 2
3347 fi
3348done
81ecdfbb
RW
3349 done
3350IFS=$as_save_IFS
d45dc31f 3351
252b5132
RH
3352fi
3353fi
d45dc31f
SE
3354ac_ct_CC=$ac_cv_prog_ac_ct_CC
3355if test -n "$ac_ct_CC"; then
81ecdfbb
RW
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3357$as_echo "$ac_ct_CC" >&6; }
252b5132 3358else
81ecdfbb
RW
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3360$as_echo "no" >&6; }
252b5132 3361fi
d45dc31f 3362
81ecdfbb
RW
3363 if test "x$ac_ct_CC" = x; then
3364 CC=""
3365 else
3366 case $cross_compiling:$ac_tool_warned in
3367yes:)
3368{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3369$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3370ac_tool_warned=yes ;;
3371esac
3372 CC=$ac_ct_CC
3373 fi
d45dc31f
SE
3374else
3375 CC="$ac_cv_prog_CC"
3376fi
3377
3378if test -z "$CC"; then
81ecdfbb
RW
3379 if test -n "$ac_tool_prefix"; then
3380 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
d45dc31f 3381set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
3382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3383$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 3384if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 3385 $as_echo_n "(cached) " >&6
252b5132 3386else
d45dc31f
SE
3387 if test -n "$CC"; then
3388 ac_cv_prog_CC="$CC" # Let the user override the test.
252b5132 3389else
d45dc31f
SE
3390as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3391for as_dir in $PATH
3392do
3393 IFS=$as_save_IFS
3394 test -z "$as_dir" && as_dir=.
81ecdfbb 3395 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3396 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d45dc31f 3397 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 3398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d45dc31f
SE
3399 break 2
3400 fi
3401done
81ecdfbb
RW
3402 done
3403IFS=$as_save_IFS
d45dc31f 3404
252b5132
RH
3405fi
3406fi
d45dc31f
SE
3407CC=$ac_cv_prog_CC
3408if test -n "$CC"; then
81ecdfbb
RW
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3410$as_echo "$CC" >&6; }
d45dc31f 3411else
81ecdfbb
RW
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3413$as_echo "no" >&6; }
252b5132
RH
3414fi
3415
252b5132 3416
81ecdfbb 3417 fi
d45dc31f
SE
3418fi
3419if test -z "$CC"; then
3420 # Extract the first word of "cc", so it can be a program name with args.
3421set dummy cc; ac_word=$2
81ecdfbb
RW
3422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3423$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 3424if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 3425 $as_echo_n "(cached) " >&6
252b5132 3426else
d45dc31f
SE
3427 if test -n "$CC"; then
3428 ac_cv_prog_CC="$CC" # Let the user override the test.
3429else
3430 ac_prog_rejected=no
3431as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3432for as_dir in $PATH
3433do
3434 IFS=$as_save_IFS
3435 test -z "$as_dir" && as_dir=.
81ecdfbb 3436 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3437 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d45dc31f
SE
3438 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3439 ac_prog_rejected=yes
3440 continue
3441 fi
3442 ac_cv_prog_CC="cc"
81ecdfbb 3443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d45dc31f
SE
3444 break 2
3445 fi
3446done
81ecdfbb
RW
3447 done
3448IFS=$as_save_IFS
d45dc31f
SE
3449
3450if test $ac_prog_rejected = yes; then
3451 # We found a bogon in the path, so make sure we never use it.
3452 set dummy $ac_cv_prog_CC
3453 shift
3454 if test $# != 0; then
3455 # We chose a different compiler from the bogus one.
3456 # However, it has the same basename, so the bogon will be chosen
3457 # first if we set CC to just the basename; use the full file name.
3458 shift
3459 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3460 fi
3461fi
3462fi
3463fi
3464CC=$ac_cv_prog_CC
3465if test -n "$CC"; then
81ecdfbb
RW
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3467$as_echo "$CC" >&6; }
d45dc31f 3468else
81ecdfbb
RW
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3470$as_echo "no" >&6; }
252b5132
RH
3471fi
3472
81ecdfbb 3473
d45dc31f
SE
3474fi
3475if test -z "$CC"; then
3476 if test -n "$ac_tool_prefix"; then
81ecdfbb 3477 for ac_prog in cl.exe
d45dc31f
SE
3478 do
3479 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3480set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
3481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3482$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 3483if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 3484 $as_echo_n "(cached) " >&6
ac48eca1 3485else
d45dc31f
SE
3486 if test -n "$CC"; then
3487 ac_cv_prog_CC="$CC" # Let the user override the test.
3488else
3489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3490for as_dir in $PATH
3491do
3492 IFS=$as_save_IFS
3493 test -z "$as_dir" && as_dir=.
81ecdfbb 3494 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3495 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d45dc31f 3496 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 3497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d45dc31f
SE
3498 break 2
3499 fi
3500done
81ecdfbb
RW
3501 done
3502IFS=$as_save_IFS
ac48eca1 3503
d45dc31f
SE
3504fi
3505fi
3506CC=$ac_cv_prog_CC
3507if test -n "$CC"; then
81ecdfbb
RW
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3509$as_echo "$CC" >&6; }
d45dc31f 3510else
81ecdfbb
RW
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3512$as_echo "no" >&6; }
d45dc31f 3513fi
ac48eca1 3514
81ecdfbb 3515
d45dc31f
SE
3516 test -n "$CC" && break
3517 done
3518fi
3519if test -z "$CC"; then
3520 ac_ct_CC=$CC
81ecdfbb 3521 for ac_prog in cl.exe
d45dc31f
SE
3522do
3523 # Extract the first word of "$ac_prog", so it can be a program name with args.
3524set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
3525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3526$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 3527if ${ac_cv_prog_ac_ct_CC+:} false; then :
81ecdfbb 3528 $as_echo_n "(cached) " >&6
d45dc31f
SE
3529else
3530 if test -n "$ac_ct_CC"; then
3531 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3532else
3533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3534for as_dir in $PATH
3535do
3536 IFS=$as_save_IFS
3537 test -z "$as_dir" && as_dir=.
81ecdfbb 3538 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3539 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d45dc31f 3540 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 3541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d45dc31f
SE
3542 break 2
3543 fi
3544done
81ecdfbb
RW
3545 done
3546IFS=$as_save_IFS
ac48eca1 3547
d45dc31f
SE
3548fi
3549fi
3550ac_ct_CC=$ac_cv_prog_ac_ct_CC
3551if test -n "$ac_ct_CC"; then
81ecdfbb
RW
3552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3553$as_echo "$ac_ct_CC" >&6; }
d45dc31f 3554else
81ecdfbb
RW
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3556$as_echo "no" >&6; }
d45dc31f 3557fi
ac48eca1 3558
81ecdfbb 3559
d45dc31f
SE
3560 test -n "$ac_ct_CC" && break
3561done
ac48eca1 3562
81ecdfbb
RW
3563 if test "x$ac_ct_CC" = x; then
3564 CC=""
3565 else
3566 case $cross_compiling:$ac_tool_warned in
3567yes:)
3568{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3569$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3570ac_tool_warned=yes ;;
3571esac
3572 CC=$ac_ct_CC
3573 fi
d45dc31f 3574fi
ac48eca1 3575
87b9f255
AM
3576fi
3577
3578
3579test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3580$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3581as_fn_error $? "no acceptable C compiler found in \$PATH
3582See \`config.log' for more details" "$LINENO" 5; }
3583
3584# Provide some information about the compiler.
3585$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3586set X $ac_compile
3587ac_compiler=$2
3588for ac_option in --version -v -V -qversion; do
3589 { { ac_try="$ac_compiler $ac_option >&5"
3590case "(($ac_try" in
3591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3592 *) ac_try_echo=$ac_try;;
3593esac
3594eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3595$as_echo "$ac_try_echo"; } >&5
3596 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3597 ac_status=$?
3598 if test -s conftest.err; then
3599 sed '10a\
3600... rest of stderr output deleted ...
3601 10q' conftest.err >conftest.er1
3602 cat conftest.er1 >&5
3603 fi
3604 rm -f conftest.er1 conftest.err
3605 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3606 test $ac_status = 0; }
3607done
3608
3609cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3610/* end confdefs.h. */
3611
3612int
3613main ()
3614{
3615
3616 ;
3617 return 0;
3618}
3619_ACEOF
3620ac_clean_files_save=$ac_clean_files
3621ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3622# Try to create an executable without -o first, disregard a.out.
3623# It will help us diagnose broken compilers, and finding out an intuition
3624# of exeext.
3625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3626$as_echo_n "checking whether the C compiler works... " >&6; }
3627ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3628
3629# The possible output files:
3630ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3631
3632ac_rmfiles=
3633for ac_file in $ac_files
3634do
3635 case $ac_file in
3636 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3637 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3638 esac
3639done
3640rm -f $ac_rmfiles
3641
3642if { { ac_try="$ac_link_default"
3643case "(($ac_try" in
3644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3645 *) ac_try_echo=$ac_try;;
3646esac
3647eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3648$as_echo "$ac_try_echo"; } >&5
3649 (eval "$ac_link_default") 2>&5
3650 ac_status=$?
3651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3652 test $ac_status = 0; }; then :
3653 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3654# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3655# in a Makefile. We should not override ac_cv_exeext if it was cached,
3656# so that the user can short-circuit this test for compilers unknown to
3657# Autoconf.
3658for ac_file in $ac_files ''
3659do
3660 test -f "$ac_file" || continue
3661 case $ac_file in
3662 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3663 ;;
3664 [ab].out )
3665 # We found the default executable, but exeext='' is most
3666 # certainly right.
3667 break;;
3668 *.* )
3669 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3670 then :; else
3671 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3672 fi
3673 # We set ac_cv_exeext here because the later test for it is not
3674 # safe: cross compilers may not add the suffix if given an `-o'
3675 # argument, so we may need to know it at that point already.
3676 # Even if this section looks crufty: it has the advantage of
3677 # actually working.
3678 break;;
3679 * )
3680 break;;
3681 esac
3682done
3683test "$ac_cv_exeext" = no && ac_cv_exeext=
3684
3685else
3686 ac_file=''
3687fi
3688if test -z "$ac_file"; then :
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3690$as_echo "no" >&6; }
3691$as_echo "$as_me: failed program was:" >&5
3692sed 's/^/| /' conftest.$ac_ext >&5
3693
3694{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3695$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3696as_fn_error 77 "C compiler cannot create executables
3697See \`config.log' for more details" "$LINENO" 5; }
3698else
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3700$as_echo "yes" >&6; }
3701fi
3702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3703$as_echo_n "checking for C compiler default output file name... " >&6; }
3704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3705$as_echo "$ac_file" >&6; }
3706ac_exeext=$ac_cv_exeext
3707
3708rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3709ac_clean_files=$ac_clean_files_save
3710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3711$as_echo_n "checking for suffix of executables... " >&6; }
3712if { { ac_try="$ac_link"
3713case "(($ac_try" in
3714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3715 *) ac_try_echo=$ac_try;;
3716esac
3717eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3718$as_echo "$ac_try_echo"; } >&5
3719 (eval "$ac_link") 2>&5
3720 ac_status=$?
3721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3722 test $ac_status = 0; }; then :
3723 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3724# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3725# work properly (i.e., refer to `conftest.exe'), while it won't with
3726# `rm'.
3727for ac_file in conftest.exe conftest conftest.*; do
3728 test -f "$ac_file" || continue
3729 case $ac_file in
3730 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3731 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3732 break;;
3733 * ) break;;
3734 esac
3735done
3736else
3737 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3738$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3739as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3740See \`config.log' for more details" "$LINENO" 5; }
3741fi
3742rm -f conftest conftest$ac_cv_exeext
3743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3744$as_echo "$ac_cv_exeext" >&6; }
3745
3746rm -f conftest.$ac_ext
3747EXEEXT=$ac_cv_exeext
3748ac_exeext=$EXEEXT
3749cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3750/* end confdefs.h. */
3751#include <stdio.h>
3752int
3753main ()
3754{
3755FILE *f = fopen ("conftest.out", "w");
3756 return ferror (f) || fclose (f) != 0;
3757
3758 ;
3759 return 0;
3760}
3761_ACEOF
3762ac_clean_files="$ac_clean_files conftest.out"
3763# Check that the compiler produces executables we can run. If not, either
3764# the compiler is broken, or we cross compile.
3765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3766$as_echo_n "checking whether we are cross compiling... " >&6; }
3767if test "$cross_compiling" != yes; then
3768 { { ac_try="$ac_link"
3769case "(($ac_try" in
3770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3771 *) ac_try_echo=$ac_try;;
3772esac
3773eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3774$as_echo "$ac_try_echo"; } >&5
3775 (eval "$ac_link") 2>&5
3776 ac_status=$?
3777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3778 test $ac_status = 0; }
3779 if { ac_try='./conftest$ac_cv_exeext'
3780 { { case "(($ac_try" in
3781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3782 *) ac_try_echo=$ac_try;;
3783esac
3784eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3785$as_echo "$ac_try_echo"; } >&5
3786 (eval "$ac_try") 2>&5
3787 ac_status=$?
3788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3789 test $ac_status = 0; }; }; then
3790 cross_compiling=no
3791 else
3792 if test "$cross_compiling" = maybe; then
3793 cross_compiling=yes
3794 else
3795 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3796$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3797as_fn_error $? "cannot run C compiled programs.
3798If you meant to cross compile, use \`--host'.
3799See \`config.log' for more details" "$LINENO" 5; }
3800 fi
3801 fi
3802fi
3803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3804$as_echo "$cross_compiling" >&6; }
3805
3806rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3807ac_clean_files=$ac_clean_files_save
3808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3809$as_echo_n "checking for suffix of object files... " >&6; }
3810if ${ac_cv_objext+:} false; then :
3811 $as_echo_n "(cached) " >&6
3812else
3813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3814/* end confdefs.h. */
ac48eca1 3815
87b9f255
AM
3816int
3817main ()
3818{
ac48eca1 3819
87b9f255
AM
3820 ;
3821 return 0;
3822}
3823_ACEOF
3824rm -f conftest.o conftest.obj
3825if { { ac_try="$ac_compile"
81ecdfbb
RW
3826case "(($ac_try" in
3827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3828 *) ac_try_echo=$ac_try;;
3829esac
3830eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3831$as_echo "$ac_try_echo"; } >&5
87b9f255 3832 (eval "$ac_compile") 2>&5
d45dc31f 3833 ac_status=$?
81ecdfbb 3834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
87b9f255
AM
3835 test $ac_status = 0; }; then :
3836 for ac_file in conftest.o conftest.obj conftest.*; do
3837 test -f "$ac_file" || continue;
3838 case $ac_file in
3839 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3840 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3841 break;;
3842 esac
81ecdfbb 3843done
87b9f255
AM
3844else
3845 $as_echo "$as_me: failed program was:" >&5
3846sed 's/^/| /' conftest.$ac_ext >&5
ac48eca1 3847
87b9f255
AM
3848{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3849$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3850as_fn_error $? "cannot compute suffix of object files: cannot compile
3851See \`config.log' for more details" "$LINENO" 5; }
3852fi
3853rm -f conftest.$ac_cv_objext conftest.$ac_ext
3854fi
3855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3856$as_echo "$ac_cv_objext" >&6; }
3857OBJEXT=$ac_cv_objext
3858ac_objext=$OBJEXT
81ecdfbb
RW
3859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3860$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
d0ac1c44 3861if ${ac_cv_c_compiler_gnu+:} false; then :
81ecdfbb 3862 $as_echo_n "(cached) " >&6
bdcfeba5 3863else
81ecdfbb 3864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d45dc31f 3865/* end confdefs.h. */
bdcfeba5 3866
d45dc31f
SE
3867int
3868main ()
3869{
3870#ifndef __GNUC__
3871 choke me
3872#endif
bdcfeba5 3873
d45dc31f
SE
3874 ;
3875 return 0;
3876}
3877_ACEOF
81ecdfbb 3878if ac_fn_c_try_compile "$LINENO"; then :
d45dc31f
SE
3879 ac_compiler_gnu=yes
3880else
81ecdfbb 3881 ac_compiler_gnu=no
bdcfeba5 3882fi
81ecdfbb 3883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d45dc31f 3884ac_cv_c_compiler_gnu=$ac_compiler_gnu
bdcfeba5 3885
bdcfeba5 3886fi
81ecdfbb
RW
3887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3888$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3889if test $ac_compiler_gnu = yes; then
3890 GCC=yes
3891else
3892 GCC=
3893fi
d45dc31f
SE
3894ac_test_CFLAGS=${CFLAGS+set}
3895ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
3896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3897$as_echo_n "checking whether $CC accepts -g... " >&6; }
d0ac1c44 3898if ${ac_cv_prog_cc_g+:} false; then :
81ecdfbb
RW
3899 $as_echo_n "(cached) " >&6
3900else
3901 ac_save_c_werror_flag=$ac_c_werror_flag
3902 ac_c_werror_flag=yes
3903 ac_cv_prog_cc_g=no
3904 CFLAGS="-g"
3905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d45dc31f 3906/* end confdefs.h. */
ac48eca1 3907
d45dc31f
SE
3908int
3909main ()
3910{
ac48eca1 3911
d45dc31f
SE
3912 ;
3913 return 0;
3914}
3915_ACEOF
81ecdfbb 3916if ac_fn_c_try_compile "$LINENO"; then :
d45dc31f 3917 ac_cv_prog_cc_g=yes
ac48eca1 3918else
81ecdfbb
RW
3919 CFLAGS=""
3920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3921/* end confdefs.h. */
3922
3923int
3924main ()
3925{
3926
3927 ;
3928 return 0;
3929}
3930_ACEOF
3931if ac_fn_c_try_compile "$LINENO"; then :
3932
3933else
3934 ac_c_werror_flag=$ac_save_c_werror_flag
3935 CFLAGS="-g"
3936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3937/* end confdefs.h. */
3938
3939int
3940main ()
3941{
ac48eca1 3942
81ecdfbb
RW
3943 ;
3944 return 0;
3945}
3946_ACEOF
3947if ac_fn_c_try_compile "$LINENO"; then :
3948 ac_cv_prog_cc_g=yes
3949fi
3950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ac48eca1 3951fi
81ecdfbb 3952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ac48eca1 3953fi
81ecdfbb
RW
3954rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3955 ac_c_werror_flag=$ac_save_c_werror_flag
3956fi
3957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3958$as_echo "$ac_cv_prog_cc_g" >&6; }
d45dc31f
SE
3959if test "$ac_test_CFLAGS" = set; then
3960 CFLAGS=$ac_save_CFLAGS
3961elif test $ac_cv_prog_cc_g = yes; then
3962 if test "$GCC" = yes; then
3963 CFLAGS="-g -O2"
ac48eca1 3964 else
d45dc31f 3965 CFLAGS="-g"
42ecbf5e 3966 fi
ac48eca1 3967else
d45dc31f
SE
3968 if test "$GCC" = yes; then
3969 CFLAGS="-O2"
3970 else
3971 CFLAGS=
42ecbf5e 3972 fi
ac48eca1 3973fi
81ecdfbb
RW
3974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3975$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
d0ac1c44 3976if ${ac_cv_prog_cc_c89+:} false; then :
81ecdfbb 3977 $as_echo_n "(cached) " >&6
d45dc31f 3978else
81ecdfbb 3979 ac_cv_prog_cc_c89=no
d45dc31f 3980ac_save_CC=$CC
81ecdfbb 3981cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e 3982/* end confdefs.h. */
d45dc31f
SE
3983#include <stdarg.h>
3984#include <stdio.h>
d0ac1c44 3985struct stat;
d45dc31f
SE
3986/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3987struct buf { int x; };
3988FILE * (*rcsopen) (struct buf *, struct stat *, int);
3989static char *e (p, i)
3990 char **p;
3991 int i;
3992{
3993 return p[i];
3994}
3995static char *f (char * (*g) (char **, int), char **p, ...)
3996{
3997 char *s;
3998 va_list v;
3999 va_start (v,p);
4000 s = g (p, va_arg (v,int));
4001 va_end (v);
4002 return s;
4003}
4004
4005/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4006 function prototypes and stuff, but not '\xHH' hex character constants.
4007 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 4008 as 'x'. The following induces an error, until -std is added to get
d45dc31f
SE
4009 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4010 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 4011 that's true only with -std. */
d45dc31f 4012int osf4_cc_array ['\x00' == 0 ? 1 : -1];
252b5132 4013
81ecdfbb
RW
4014/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4015 inside strings and character constants. */
4016#define FOO(x) 'x'
4017int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4018
d45dc31f
SE
4019int test (int i, double x);
4020struct s1 {int (*f) (int a);};
4021struct s2 {int (*f) (double a);};
4022int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4023int argc;
4024char **argv;
42ecbf5e
DJ
4025int
4026main ()
4027{
d45dc31f 4028return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
42ecbf5e
DJ
4029 ;
4030 return 0;
4031}
4032_ACEOF
81ecdfbb
RW
4033for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4034 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
d45dc31f
SE
4035do
4036 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
4037 if ac_fn_c_try_compile "$LINENO"; then :
4038 ac_cv_prog_cc_c89=$ac_arg
252b5132 4039fi
81ecdfbb
RW
4040rm -f core conftest.err conftest.$ac_objext
4041 test "x$ac_cv_prog_cc_c89" != "xno" && break
d45dc31f 4042done
81ecdfbb 4043rm -f conftest.$ac_ext
d45dc31f 4044CC=$ac_save_CC
ac48eca1 4045
252b5132 4046fi
81ecdfbb
RW
4047# AC_CACHE_VAL
4048case "x$ac_cv_prog_cc_c89" in
4049 x)
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4051$as_echo "none needed" >&6; } ;;
4052 xno)
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4054$as_echo "unsupported" >&6; } ;;
d45dc31f 4055 *)
81ecdfbb
RW
4056 CC="$CC $ac_cv_prog_cc_c89"
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4058$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
252b5132 4059esac
81ecdfbb 4060if test "x$ac_cv_prog_cc_c89" != xno; then :
252b5132 4061
d45dc31f 4062fi
ac48eca1 4063
d45dc31f
SE
4064ac_ext=c
4065ac_cpp='$CPP $CPPFLAGS'
4066ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4067ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4068ac_compiler_gnu=$ac_cv_c_compiler_gnu
42ecbf5e 4069
d0ac1c44
SM
4070ac_ext=c
4071ac_cpp='$CPP $CPPFLAGS'
4072ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4073ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4074ac_compiler_gnu=$ac_cv_c_compiler_gnu
4075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4076$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4077if ${am_cv_prog_cc_c_o+:} false; then :
4078 $as_echo_n "(cached) " >&6
4079else
4080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4081/* end confdefs.h. */
4082
4083int
4084main ()
4085{
4086
4087 ;
4088 return 0;
4089}
4090_ACEOF
4091 # Make sure it works both with $CC and with simple cc.
4092 # Following AC_PROG_CC_C_O, we do the test twice because some
4093 # compilers refuse to overwrite an existing .o file with -o,
4094 # though they will create one.
4095 am_cv_prog_cc_c_o=yes
4096 for am_i in 1 2; do
4097 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4098 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4099 ac_status=$?
4100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4101 (exit $ac_status); } \
4102 && test -f conftest2.$ac_objext; then
4103 : OK
4104 else
4105 am_cv_prog_cc_c_o=no
4106 break
4107 fi
4108 done
4109 rm -f core conftest*
4110 unset am_i
4111fi
4112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4113$as_echo "$am_cv_prog_cc_c_o" >&6; }
4114if test "$am_cv_prog_cc_c_o" != yes; then
4115 # Losing compiler, so override with the script.
4116 # FIXME: It is wrong to rewrite CC.
4117 # But if we don't then we get into trouble of one sort or another.
4118 # A longer-term fix would be to have automake use am__CC in this case,
4119 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4120 CC="$am_aux_dir/compile $CC"
4121fi
87b9f255
AM
4122ac_ext=c
4123ac_cpp='$CPP $CPPFLAGS'
4124ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4125ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4126ac_compiler_gnu=$ac_cv_c_compiler_gnu
4127
4128DEPDIR="${am__leading_dot}deps"
4129
4130ac_config_commands="$ac_config_commands depfiles"
4131
4132
4133am_make=${MAKE-make}
4134cat > confinc << 'END'
4135am__doit:
4136 @echo this is the am__doit target
4137.PHONY: am__doit
4138END
4139# If we don't find an include directive, just comment out the code.
4140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4141$as_echo_n "checking for style of include used by $am_make... " >&6; }
4142am__include="#"
4143am__quote=
4144_am_result=none
4145# First try GNU make style include.
4146echo "include confinc" > confmf
4147# Ignore all kinds of additional output from 'make'.
4148case `$am_make -s -f confmf 2> /dev/null` in #(
4149*the\ am__doit\ target*)
4150 am__include=include
4151 am__quote=
4152 _am_result=GNU
4153 ;;
4154esac
4155# Now try BSD make style include.
4156if test "$am__include" = "#"; then
4157 echo '.include "confinc"' > confmf
4158 case `$am_make -s -f confmf 2> /dev/null` in #(
4159 *the\ am__doit\ target*)
4160 am__include=.include
4161 am__quote="\""
4162 _am_result=BSD
4163 ;;
4164 esac
4165fi
4166
4167
4168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4169$as_echo "$_am_result" >&6; }
4170rm -f confinc confmf
4171
4172# Check whether --enable-dependency-tracking was given.
4173if test "${enable_dependency_tracking+set}" = set; then :
4174 enableval=$enable_dependency_tracking;
4175fi
4176
4177if test "x$enable_dependency_tracking" != xno; then
4178 am_depcomp="$ac_aux_dir/depcomp"
4179 AMDEPBACKSLASH='\'
4180 am__nodep='_no'
4181fi
4182 if test "x$enable_dependency_tracking" != xno; then
4183 AMDEP_TRUE=
4184 AMDEP_FALSE='#'
4185else
4186 AMDEP_TRUE='#'
4187 AMDEP_FALSE=
4188fi
4189
4190
4191
4192depcc="$CC" am_compiler_list=
4193
4194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4195$as_echo_n "checking dependency style of $depcc... " >&6; }
4196if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4197 $as_echo_n "(cached) " >&6
4198else
4199 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4200 # We make a subdir and do the tests there. Otherwise we can end up
4201 # making bogus files that we don't know about and never remove. For
4202 # instance it was reported that on HP-UX the gcc test will end up
4203 # making a dummy file named 'D' -- because '-MD' means "put the output
4204 # in D".
4205 rm -rf conftest.dir
4206 mkdir conftest.dir
4207 # Copy depcomp to subdir because otherwise we won't find it if we're
4208 # using a relative directory.
4209 cp "$am_depcomp" conftest.dir
4210 cd conftest.dir
4211 # We will build objects and dependencies in a subdirectory because
4212 # it helps to detect inapplicable dependency modes. For instance
4213 # both Tru64's cc and ICC support -MD to output dependencies as a
4214 # side effect of compilation, but ICC will put the dependencies in
4215 # the current directory while Tru64 will put them in the object
4216 # directory.
4217 mkdir sub
4218
4219 am_cv_CC_dependencies_compiler_type=none
4220 if test "$am_compiler_list" = ""; then
4221 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4222 fi
4223 am__universal=false
4224 case " $depcc " in #(
4225 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4226 esac
4227
4228 for depmode in $am_compiler_list; do
4229 # Setup a source with many dependencies, because some compilers
4230 # like to wrap large dependency lists on column 80 (with \), and
4231 # we should not choose a depcomp mode which is confused by this.
4232 #
4233 # We need to recreate these files for each test, as the compiler may
4234 # overwrite some of them when testing with obscure command lines.
4235 # This happens at least with the AIX C compiler.
4236 : > sub/conftest.c
4237 for i in 1 2 3 4 5 6; do
4238 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4239 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4240 # Solaris 10 /bin/sh.
4241 echo '/* dummy */' > sub/conftst$i.h
4242 done
4243 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4244
4245 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4246 # mode. It turns out that the SunPro C++ compiler does not properly
4247 # handle '-M -o', and we need to detect this. Also, some Intel
4248 # versions had trouble with output in subdirs.
4249 am__obj=sub/conftest.${OBJEXT-o}
4250 am__minus_obj="-o $am__obj"
4251 case $depmode in
4252 gcc)
4253 # This depmode causes a compiler race in universal mode.
4254 test "$am__universal" = false || continue
4255 ;;
4256 nosideeffect)
4257 # After this tag, mechanisms are not by side-effect, so they'll
4258 # only be used when explicitly requested.
4259 if test "x$enable_dependency_tracking" = xyes; then
4260 continue
4261 else
4262 break
4263 fi
4264 ;;
4265 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4266 # This compiler won't grok '-c -o', but also, the minuso test has
4267 # not run yet. These depmodes are late enough in the game, and
4268 # so weak that their functioning should not be impacted.
4269 am__obj=conftest.${OBJEXT-o}
4270 am__minus_obj=
4271 ;;
4272 none) break ;;
4273 esac
4274 if depmode=$depmode \
4275 source=sub/conftest.c object=$am__obj \
4276 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4277 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4278 >/dev/null 2>conftest.err &&
4279 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4280 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4281 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4282 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4283 # icc doesn't choke on unknown options, it will just issue warnings
4284 # or remarks (even with -Werror). So we grep stderr for any message
4285 # that says an option was ignored or not supported.
4286 # When given -MP, icc 7.0 and 7.1 complain thusly:
4287 # icc: Command line warning: ignoring option '-M'; no argument required
4288 # The diagnosis changed in icc 8.0:
4289 # icc: Command line remark: option '-MP' not supported
4290 if (grep 'ignoring option' conftest.err ||
4291 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4292 am_cv_CC_dependencies_compiler_type=$depmode
4293 break
4294 fi
4295 fi
4296 done
4297
4298 cd ..
4299 rm -rf conftest.dir
4300else
4301 am_cv_CC_dependencies_compiler_type=none
4302fi
4303
4304fi
4305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4306$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4307CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4308
4309 if
4310 test "x$enable_dependency_tracking" != xno \
4311 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4312 am__fastdepCC_TRUE=
4313 am__fastdepCC_FALSE='#'
4314else
4315 am__fastdepCC_TRUE='#'
4316 am__fastdepCC_FALSE=
4317fi
4318
d0ac1c44
SM
4319
4320
7357c5b6
AM
4321ac_ext=c
4322ac_cpp='$CPP $CPPFLAGS'
4323ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4324ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4325ac_compiler_gnu=$ac_cv_c_compiler_gnu
81ecdfbb
RW
4326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4327$as_echo_n "checking how to run the C preprocessor... " >&6; }
7357c5b6
AM
4328# On Suns, sometimes $CPP names a directory.
4329if test -n "$CPP" && test -d "$CPP"; then
4330 CPP=
4331fi
4332if test -z "$CPP"; then
d0ac1c44 4333 if ${ac_cv_prog_CPP+:} false; then :
81ecdfbb 4334 $as_echo_n "(cached) " >&6
7357c5b6
AM
4335else
4336 # Double quotes because CPP needs to be expanded
4337 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4338 do
4339 ac_preproc_ok=false
4340for ac_c_preproc_warn_flag in '' yes
4341do
4342 # Use a header file that comes with gcc, so configuring glibc
4343 # with a fresh cross-compiler works.
4344 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4345 # <limits.h> exists even on freestanding compilers.
4346 # On the NeXT, cc -E runs the code through the compiler's parser,
4347 # not just through cpp. "Syntax error" is here to catch this case.
81ecdfbb 4348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4349/* end confdefs.h. */
4350#ifdef __STDC__
4351# include <limits.h>
4352#else
4353# include <assert.h>
4354#endif
4355 Syntax error
4356_ACEOF
81ecdfbb 4357if ac_fn_c_try_cpp "$LINENO"; then :
d7040cdb 4358
81ecdfbb 4359else
7357c5b6
AM
4360 # Broken: fails on valid input.
4361continue
4362fi
d0ac1c44 4363rm -f conftest.err conftest.i conftest.$ac_ext
d7040cdb 4364
81ecdfbb 4365 # OK, works on sane cases. Now check whether nonexistent headers
7357c5b6 4366 # can be detected and how.
81ecdfbb 4367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4368/* end confdefs.h. */
4369#include <ac_nonexistent.h>
4370_ACEOF
81ecdfbb 4371if ac_fn_c_try_cpp "$LINENO"; then :
7357c5b6
AM
4372 # Broken: success on invalid input.
4373continue
4374else
7357c5b6
AM
4375 # Passes both tests.
4376ac_preproc_ok=:
4377break
4378fi
d0ac1c44 4379rm -f conftest.err conftest.i conftest.$ac_ext
d7040cdb 4380
7357c5b6
AM
4381done
4382# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
d0ac1c44 4383rm -f conftest.i conftest.err conftest.$ac_ext
81ecdfbb 4384if $ac_preproc_ok; then :
7357c5b6
AM
4385 break
4386fi
d7040cdb 4387
7357c5b6
AM
4388 done
4389 ac_cv_prog_CPP=$CPP
d7040cdb 4390
7357c5b6
AM
4391fi
4392 CPP=$ac_cv_prog_CPP
4393else
4394 ac_cv_prog_CPP=$CPP
4395fi
81ecdfbb
RW
4396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4397$as_echo "$CPP" >&6; }
7357c5b6
AM
4398ac_preproc_ok=false
4399for ac_c_preproc_warn_flag in '' yes
4400do
4401 # Use a header file that comes with gcc, so configuring glibc
4402 # with a fresh cross-compiler works.
4403 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4404 # <limits.h> exists even on freestanding compilers.
4405 # On the NeXT, cc -E runs the code through the compiler's parser,
4406 # not just through cpp. "Syntax error" is here to catch this case.
81ecdfbb 4407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4408/* end confdefs.h. */
4409#ifdef __STDC__
4410# include <limits.h>
4411#else
4412# include <assert.h>
4413#endif
4414 Syntax error
4415_ACEOF
81ecdfbb 4416if ac_fn_c_try_cpp "$LINENO"; then :
d7040cdb 4417
81ecdfbb 4418else
7357c5b6
AM
4419 # Broken: fails on valid input.
4420continue
4421fi
d0ac1c44 4422rm -f conftest.err conftest.i conftest.$ac_ext
d7040cdb 4423
81ecdfbb 4424 # OK, works on sane cases. Now check whether nonexistent headers
7357c5b6 4425 # can be detected and how.
81ecdfbb 4426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4427/* end confdefs.h. */
4428#include <ac_nonexistent.h>
4429_ACEOF
81ecdfbb 4430if ac_fn_c_try_cpp "$LINENO"; then :
7357c5b6
AM
4431 # Broken: success on invalid input.
4432continue
4433else
7357c5b6
AM
4434 # Passes both tests.
4435ac_preproc_ok=:
4436break
4437fi
d0ac1c44 4438rm -f conftest.err conftest.i conftest.$ac_ext
d7040cdb 4439
7357c5b6
AM
4440done
4441# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
d0ac1c44 4442rm -f conftest.i conftest.err conftest.$ac_ext
81ecdfbb
RW
4443if $ac_preproc_ok; then :
4444
7357c5b6 4445else
81ecdfbb
RW
4446 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4447$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
4448as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4449See \`config.log' for more details" "$LINENO" 5; }
7357c5b6 4450fi
d7040cdb 4451
7357c5b6
AM
4452ac_ext=c
4453ac_cpp='$CPP $CPPFLAGS'
4454ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4455ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4456ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb
SE
4457
4458
81ecdfbb
RW
4459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4460$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
d0ac1c44 4461if ${ac_cv_path_GREP+:} false; then :
81ecdfbb 4462 $as_echo_n "(cached) " >&6
7357c5b6 4463else
81ecdfbb
RW
4464 if test -z "$GREP"; then
4465 ac_path_GREP_found=false
4466 # Loop through the user's path and test for each of PROGNAME-LIST
4467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4468for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4469do
4470 IFS=$as_save_IFS
4471 test -z "$as_dir" && as_dir=.
4472 for ac_prog in grep ggrep; do
4473 for ac_exec_ext in '' $ac_executable_extensions; do
4474 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 4475 as_fn_executable_p "$ac_path_GREP" || continue
81ecdfbb
RW
4476# Check for GNU ac_path_GREP and select it if it is found.
4477 # Check for GNU $ac_path_GREP
4478case `"$ac_path_GREP" --version 2>&1` in
4479*GNU*)
4480 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4481*)
4482 ac_count=0
4483 $as_echo_n 0123456789 >"conftest.in"
4484 while :
4485 do
4486 cat "conftest.in" "conftest.in" >"conftest.tmp"
4487 mv "conftest.tmp" "conftest.in"
4488 cp "conftest.in" "conftest.nl"
4489 $as_echo 'GREP' >> "conftest.nl"
4490 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4491 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4492 as_fn_arith $ac_count + 1 && ac_count=$as_val
4493 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4494 # Best one so far, save it but keep looking for a better one
4495 ac_cv_path_GREP="$ac_path_GREP"
4496 ac_path_GREP_max=$ac_count
7357c5b6 4497 fi
81ecdfbb
RW
4498 # 10*(2^10) chars as input seems more than enough
4499 test $ac_count -gt 10 && break
4500 done
4501 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4502esac
4503
4504 $ac_path_GREP_found && break 3
4505 done
4506 done
4507 done
4508IFS=$as_save_IFS
4509 if test -z "$ac_cv_path_GREP"; then
d0ac1c44 4510 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
81ecdfbb
RW
4511 fi
4512else
4513 ac_cv_path_GREP=$GREP
4514fi
4515
7357c5b6 4516fi
81ecdfbb
RW
4517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4518$as_echo "$ac_cv_path_GREP" >&6; }
4519 GREP="$ac_cv_path_GREP"
d7040cdb 4520
d7040cdb 4521
81ecdfbb
RW
4522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4523$as_echo_n "checking for egrep... " >&6; }
d0ac1c44 4524if ${ac_cv_path_EGREP+:} false; then :
81ecdfbb 4525 $as_echo_n "(cached) " >&6
7357c5b6 4526else
81ecdfbb
RW
4527 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4528 then ac_cv_path_EGREP="$GREP -E"
4529 else
4530 if test -z "$EGREP"; then
4531 ac_path_EGREP_found=false
4532 # Loop through the user's path and test for each of PROGNAME-LIST
4533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4534for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4535do
4536 IFS=$as_save_IFS
4537 test -z "$as_dir" && as_dir=.
4538 for ac_prog in egrep; do
4539 for ac_exec_ext in '' $ac_executable_extensions; do
4540 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 4541 as_fn_executable_p "$ac_path_EGREP" || continue
81ecdfbb
RW
4542# Check for GNU ac_path_EGREP and select it if it is found.
4543 # Check for GNU $ac_path_EGREP
4544case `"$ac_path_EGREP" --version 2>&1` in
4545*GNU*)
4546 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4547*)
4548 ac_count=0
4549 $as_echo_n 0123456789 >"conftest.in"
4550 while :
4551 do
4552 cat "conftest.in" "conftest.in" >"conftest.tmp"
4553 mv "conftest.tmp" "conftest.in"
4554 cp "conftest.in" "conftest.nl"
4555 $as_echo 'EGREP' >> "conftest.nl"
4556 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4557 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4558 as_fn_arith $ac_count + 1 && ac_count=$as_val
4559 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4560 # Best one so far, save it but keep looking for a better one
4561 ac_cv_path_EGREP="$ac_path_EGREP"
4562 ac_path_EGREP_max=$ac_count
4563 fi
4564 # 10*(2^10) chars as input seems more than enough
4565 test $ac_count -gt 10 && break
4566 done
4567 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4568esac
4569
4570 $ac_path_EGREP_found && break 3
4571 done
4572 done
4573 done
4574IFS=$as_save_IFS
4575 if test -z "$ac_cv_path_EGREP"; then
d0ac1c44 4576 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
81ecdfbb
RW
4577 fi
4578else
4579 ac_cv_path_EGREP=$EGREP
4580fi
4581
4582 fi
4583fi
4584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4585$as_echo "$ac_cv_path_EGREP" >&6; }
4586 EGREP="$ac_cv_path_EGREP"
4587
4588
4589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4590$as_echo_n "checking for ANSI C header files... " >&6; }
d0ac1c44 4591if ${ac_cv_header_stdc+:} false; then :
81ecdfbb
RW
4592 $as_echo_n "(cached) " >&6
4593else
4594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4595/* end confdefs.h. */
4596#include <stdlib.h>
4597#include <stdarg.h>
4598#include <string.h>
4599#include <float.h>
d7040cdb 4600
7357c5b6
AM
4601int
4602main ()
4603{
d7040cdb 4604
7357c5b6
AM
4605 ;
4606 return 0;
4607}
4608_ACEOF
81ecdfbb 4609if ac_fn_c_try_compile "$LINENO"; then :
7357c5b6
AM
4610 ac_cv_header_stdc=yes
4611else
81ecdfbb 4612 ac_cv_header_stdc=no
7357c5b6 4613fi
81ecdfbb 4614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d7040cdb 4615
7357c5b6
AM
4616if test $ac_cv_header_stdc = yes; then
4617 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
81ecdfbb 4618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4619/* end confdefs.h. */
4620#include <string.h>
d7040cdb 4621
7357c5b6
AM
4622_ACEOF
4623if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb
RW
4624 $EGREP "memchr" >/dev/null 2>&1; then :
4625
d45dc31f 4626else
7357c5b6
AM
4627 ac_cv_header_stdc=no
4628fi
4629rm -f conftest*
d7040cdb 4630
7357c5b6 4631fi
d7040cdb 4632
7357c5b6
AM
4633if test $ac_cv_header_stdc = yes; then
4634 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
81ecdfbb 4635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4636/* end confdefs.h. */
4637#include <stdlib.h>
d7040cdb 4638
7357c5b6
AM
4639_ACEOF
4640if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb
RW
4641 $EGREP "free" >/dev/null 2>&1; then :
4642
7357c5b6
AM
4643else
4644 ac_cv_header_stdc=no
4645fi
4646rm -f conftest*
d7040cdb 4647
7357c5b6 4648fi
d7040cdb 4649
7357c5b6
AM
4650if test $ac_cv_header_stdc = yes; then
4651 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
81ecdfbb 4652 if test "$cross_compiling" = yes; then :
7357c5b6
AM
4653 :
4654else
81ecdfbb 4655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4656/* end confdefs.h. */
4657#include <ctype.h>
81ecdfbb 4658#include <stdlib.h>
7357c5b6
AM
4659#if ((' ' & 0x0FF) == 0x020)
4660# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4661# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4662#else
4663# define ISLOWER(c) \
4664 (('a' <= (c) && (c) <= 'i') \
4665 || ('j' <= (c) && (c) <= 'r') \
4666 || ('s' <= (c) && (c) <= 'z'))
4667# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4668#endif
d7040cdb 4669
7357c5b6
AM
4670#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4671int
4672main ()
4673{
4674 int i;
4675 for (i = 0; i < 256; i++)
4676 if (XOR (islower (i), ISLOWER (i))
4677 || toupper (i) != TOUPPER (i))
81ecdfbb
RW
4678 return 2;
4679 return 0;
7357c5b6
AM
4680}
4681_ACEOF
81ecdfbb 4682if ac_fn_c_try_run "$LINENO"; then :
d7040cdb 4683
81ecdfbb
RW
4684else
4685 ac_cv_header_stdc=no
7357c5b6 4686fi
81ecdfbb
RW
4687rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4688 conftest.$ac_objext conftest.beam conftest.$ac_ext
7357c5b6 4689fi
81ecdfbb 4690
7357c5b6
AM
4691fi
4692fi
81ecdfbb
RW
4693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4694$as_echo "$ac_cv_header_stdc" >&6; }
7357c5b6 4695if test $ac_cv_header_stdc = yes; then
d7040cdb 4696
81ecdfbb 4697$as_echo "#define STDC_HEADERS 1" >>confdefs.h
d7040cdb 4698
7357c5b6 4699fi
d7040cdb 4700
7357c5b6 4701# On IRIX 5.3, sys/types and inttypes.h are conflicting.
81ecdfbb
RW
4702for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4703 inttypes.h stdint.h unistd.h
4704do :
4705 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4706ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4707"
d0ac1c44 4708if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
81ecdfbb
RW
4709 cat >>confdefs.h <<_ACEOF
4710#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4711_ACEOF
d7040cdb 4712
81ecdfbb 4713fi
d7040cdb 4714
81ecdfbb 4715done
d7040cdb
SE
4716
4717
4718
81ecdfbb 4719 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
d0ac1c44 4720if test "x$ac_cv_header_minix_config_h" = xyes; then :
81ecdfbb
RW
4721 MINIX=yes
4722else
4723 MINIX=
4724fi
d7040cdb
SE
4725
4726
81ecdfbb 4727 if test "$MINIX" = yes; then
d7040cdb 4728
81ecdfbb 4729$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
d7040cdb 4730
d7040cdb 4731
81ecdfbb 4732$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
d7040cdb
SE
4733
4734
81ecdfbb 4735$as_echo "#define _MINIX 1" >>confdefs.h
d7040cdb 4736
81ecdfbb 4737 fi
d7040cdb
SE
4738
4739
81ecdfbb
RW
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4741$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
d0ac1c44 4742if ${ac_cv_safe_to_define___extensions__+:} false; then :
81ecdfbb 4743 $as_echo_n "(cached) " >&6
7357c5b6 4744else
81ecdfbb 4745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6 4746/* end confdefs.h. */
d7040cdb 4747
d0ac1c44
SM
4748# define __EXTENSIONS__ 1
4749 $ac_includes_default
7357c5b6
AM
4750int
4751main ()
4752{
d7040cdb 4753
7357c5b6
AM
4754 ;
4755 return 0;
4756}
4757_ACEOF
81ecdfbb 4758if ac_fn_c_try_compile "$LINENO"; then :
7357c5b6 4759 ac_cv_safe_to_define___extensions__=yes
d7040cdb 4760else
81ecdfbb 4761 ac_cv_safe_to_define___extensions__=no
d7040cdb 4762fi
81ecdfbb 4763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7357c5b6 4764fi
81ecdfbb
RW
4765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4766$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
7357c5b6 4767 test $ac_cv_safe_to_define___extensions__ = yes &&
81ecdfbb 4768 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
d7040cdb 4769
81ecdfbb 4770 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
d7040cdb 4771
81ecdfbb 4772 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
d7040cdb 4773
81ecdfbb 4774 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
d7040cdb 4775
81ecdfbb 4776 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
d7040cdb
SE
4777
4778
e3525117 4779
5691d22d 4780
81ecdfbb 4781
718a6fd8
SE
4782case `pwd` in
4783 *\ * | *\ *)
81ecdfbb
RW
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4785$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
718a6fd8 4786esac
d7040cdb
SE
4787
4788
7357c5b6 4789
f2c621e4
AS
4790macro_version='2.2.7a'
4791macro_revision='1.3134'
7357c5b6
AM
4792
4793
4794
4795
4796
4797
7357c5b6
AM
4798
4799
4800
4801
4802
4803
4804
718a6fd8 4805ltmain="$ac_aux_dir/ltmain.sh"
7357c5b6 4806
3725885a
RW
4807# Backslashify metacharacters that are still active within
4808# double-quoted strings.
4809sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4810
4811# Same as above, but do not quote variable references.
4812double_quote_subst='s/\(["`\\]\)/\\\1/g'
4813
4814# Sed substitution to delay expansion of an escaped shell variable in a
4815# double_quote_subst'ed string.
4816delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4817
4818# Sed substitution to delay expansion of an escaped single quote.
4819delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4820
4821# Sed substitution to avoid accidental globbing in evaled expressions
4822no_glob_subst='s/\*/\\\*/g'
4823
4824ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4825ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4826ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4827
4828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4829$as_echo_n "checking how to print strings... " >&6; }
4830# Test print first, because it will be a builtin if present.
f2c621e4 4831if test "X`print -r -- -n 2>/dev/null`" = X-n && \
3725885a
RW
4832 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4833 ECHO='print -r --'
4834elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4835 ECHO='printf %s\n'
4836else
4837 # Use this function as a fallback that always works.
4838 func_fallback_echo ()
4839 {
4840 eval 'cat <<_LTECHO_EOF
4841$1
4842_LTECHO_EOF'
4843 }
4844 ECHO='func_fallback_echo'
4845fi
4846
4847# func_echo_all arg...
4848# Invoke $ECHO with all args, space-separated.
4849func_echo_all ()
4850{
4851 $ECHO ""
4852}
4853
4854case "$ECHO" in
4855 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4856$as_echo "printf" >&6; } ;;
4857 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4858$as_echo "print -r" >&6; } ;;
4859 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4860$as_echo "cat" >&6; } ;;
4861esac
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
81ecdfbb
RW
4876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4877$as_echo_n "checking for a sed that does not truncate output... " >&6; }
d0ac1c44 4878if ${ac_cv_path_SED+:} false; then :
81ecdfbb 4879 $as_echo_n "(cached) " >&6
7357c5b6 4880else
81ecdfbb
RW
4881 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4882 for ac_i in 1 2 3 4 5 6 7; do
4883 ac_script="$ac_script$as_nl$ac_script"
4884 done
4885 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4886 { ac_script=; unset ac_script;}
4887 if test -z "$SED"; then
4888 ac_path_SED_found=false
4889 # Loop through the user's path and test for each of PROGNAME-LIST
4890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7357c5b6
AM
4891for as_dir in $PATH
4892do
4893 IFS=$as_save_IFS
4894 test -z "$as_dir" && as_dir=.
81ecdfbb 4895 for ac_prog in sed gsed; do
7357c5b6 4896 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb 4897 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 4898 as_fn_executable_p "$ac_path_SED" || continue
81ecdfbb
RW
4899# Check for GNU ac_path_SED and select it if it is found.
4900 # Check for GNU $ac_path_SED
4901case `"$ac_path_SED" --version 2>&1` in
4902*GNU*)
4903 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4904*)
4905 ac_count=0
4906 $as_echo_n 0123456789 >"conftest.in"
4907 while :
4908 do
4909 cat "conftest.in" "conftest.in" >"conftest.tmp"
4910 mv "conftest.tmp" "conftest.in"
4911 cp "conftest.in" "conftest.nl"
4912 $as_echo '' >> "conftest.nl"
4913 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4914 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4915 as_fn_arith $ac_count + 1 && ac_count=$as_val
4916 if test $ac_count -gt ${ac_path_SED_max-0}; then
4917 # Best one so far, save it but keep looking for a better one
4918 ac_cv_path_SED="$ac_path_SED"
4919 ac_path_SED_max=$ac_count
4920 fi
4921 # 10*(2^10) chars as input seems more than enough
4922 test $ac_count -gt 10 && break
4923 done
4924 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4925esac
4926
4927 $ac_path_SED_found && break 3
7357c5b6
AM
4928 done
4929 done
81ecdfbb 4930 done
7357c5b6 4931IFS=$as_save_IFS
81ecdfbb 4932 if test -z "$ac_cv_path_SED"; then
d0ac1c44 4933 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7357c5b6 4934 fi
81ecdfbb
RW
4935else
4936 ac_cv_path_SED=$SED
7357c5b6
AM
4937fi
4938
81ecdfbb
RW
4939fi
4940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4941$as_echo "$ac_cv_path_SED" >&6; }
4942 SED="$ac_cv_path_SED"
4943 rm -f conftest.sed
7357c5b6
AM
4944
4945test -z "$SED" && SED=sed
4946Xsed="$SED -e 1s/^X//"
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
81ecdfbb
RW
4958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4959$as_echo_n "checking for fgrep... " >&6; }
d0ac1c44 4960if ${ac_cv_path_FGREP+:} false; then :
81ecdfbb 4961 $as_echo_n "(cached) " >&6
7357c5b6 4962else
81ecdfbb
RW
4963 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4964 then ac_cv_path_FGREP="$GREP -F"
4965 else
4966 if test -z "$FGREP"; then
4967 ac_path_FGREP_found=false
4968 # Loop through the user's path and test for each of PROGNAME-LIST
4969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4970for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4971do
4972 IFS=$as_save_IFS
4973 test -z "$as_dir" && as_dir=.
4974 for ac_prog in fgrep; do
4975 for ac_exec_ext in '' $ac_executable_extensions; do
4976 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 4977 as_fn_executable_p "$ac_path_FGREP" || continue
81ecdfbb
RW
4978# Check for GNU ac_path_FGREP and select it if it is found.
4979 # Check for GNU $ac_path_FGREP
4980case `"$ac_path_FGREP" --version 2>&1` in
4981*GNU*)
4982 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4983*)
4984 ac_count=0
4985 $as_echo_n 0123456789 >"conftest.in"
4986 while :
4987 do
4988 cat "conftest.in" "conftest.in" >"conftest.tmp"
4989 mv "conftest.tmp" "conftest.in"
4990 cp "conftest.in" "conftest.nl"
4991 $as_echo 'FGREP' >> "conftest.nl"
4992 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4993 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4994 as_fn_arith $ac_count + 1 && ac_count=$as_val
4995 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4996 # Best one so far, save it but keep looking for a better one
4997 ac_cv_path_FGREP="$ac_path_FGREP"
4998 ac_path_FGREP_max=$ac_count
7357c5b6 4999 fi
81ecdfbb
RW
5000 # 10*(2^10) chars as input seems more than enough
5001 test $ac_count -gt 10 && break
5002 done
5003 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5004esac
5005
5006 $ac_path_FGREP_found && break 3
5007 done
5008 done
5009 done
5010IFS=$as_save_IFS
5011 if test -z "$ac_cv_path_FGREP"; then
d0ac1c44 5012 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
81ecdfbb
RW
5013 fi
5014else
5015 ac_cv_path_FGREP=$FGREP
5016fi
5017
5018 fi
7357c5b6 5019fi
81ecdfbb
RW
5020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5021$as_echo "$ac_cv_path_FGREP" >&6; }
5022 FGREP="$ac_cv_path_FGREP"
7357c5b6
AM
5023
5024
5025test -z "$GREP" && GREP=grep
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
81ecdfbb
RW
5045# Check whether --with-gnu-ld was given.
5046if test "${with_gnu_ld+set}" = set; then :
5047 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7357c5b6
AM
5048else
5049 with_gnu_ld=no
81ecdfbb
RW
5050fi
5051
7357c5b6
AM
5052ac_prog=ld
5053if test "$GCC" = yes; then
5054 # Check if gcc -print-prog-name=ld gives a path.
81ecdfbb
RW
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5056$as_echo_n "checking for ld used by $CC... " >&6; }
7357c5b6
AM
5057 case $host in
5058 *-*-mingw*)
d45dc31f
SE
5059 # gcc leaves a trailing carriage return which upsets mingw
5060 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5061 *)
5062 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5063 esac
5064 case $ac_prog in
5065 # Accept absolute paths.
d7040cdb 5066 [\\/]* | ?:[\\/]*)
d45dc31f 5067 re_direlt='/[^/][^/]*/\.\./'
d7040cdb
SE
5068 # Canonicalize the pathname of ld
5069 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5070 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5071 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
d45dc31f
SE
5072 done
5073 test -z "$LD" && LD="$ac_prog"
5074 ;;
5075 "")
5076 # If it fails, then pretend we aren't using GCC.
5077 ac_prog=ld
5078 ;;
5079 *)
5080 # If it is relative, then search for the first ld in PATH.
5081 with_gnu_ld=unknown
5082 ;;
5083 esac
5084elif test "$with_gnu_ld" = yes; then
81ecdfbb
RW
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5086$as_echo_n "checking for GNU ld... " >&6; }
d45dc31f 5087else
81ecdfbb
RW
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5089$as_echo_n "checking for non-GNU ld... " >&6; }
d45dc31f 5090fi
d0ac1c44 5091if ${lt_cv_path_LD+:} false; then :
81ecdfbb 5092 $as_echo_n "(cached) " >&6
d45dc31f
SE
5093else
5094 if test -z "$LD"; then
d7040cdb 5095 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
d45dc31f 5096 for ac_dir in $PATH; do
d7040cdb 5097 IFS="$lt_save_ifs"
d45dc31f
SE
5098 test -z "$ac_dir" && ac_dir=.
5099 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5100 lt_cv_path_LD="$ac_dir/$ac_prog"
5101 # Check to see if the program is GNU ld. I'd rather use --version,
d7040cdb 5102 # but apparently some variants of GNU ld only accept -v.
d45dc31f 5103 # Break only if it was the GNU/non-GNU ld that we prefer.
d7040cdb
SE
5104 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5105 *GNU* | *'with BFD'*)
d45dc31f 5106 test "$with_gnu_ld" != no && break
d7040cdb
SE
5107 ;;
5108 *)
d45dc31f 5109 test "$with_gnu_ld" != yes && break
d7040cdb
SE
5110 ;;
5111 esac
d45dc31f
SE
5112 fi
5113 done
d7040cdb 5114 IFS="$lt_save_ifs"
d45dc31f
SE
5115else
5116 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5117fi
5118fi
1ad12f97 5119
d45dc31f
SE
5120LD="$lt_cv_path_LD"
5121if test -n "$LD"; then
81ecdfbb
RW
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5123$as_echo "$LD" >&6; }
d45dc31f 5124else
81ecdfbb
RW
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5126$as_echo "no" >&6; }
d45dc31f 5127fi
d0ac1c44 5128test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
81ecdfbb
RW
5129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5130$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
d0ac1c44 5131if ${lt_cv_prog_gnu_ld+:} false; then :
81ecdfbb 5132 $as_echo_n "(cached) " >&6
d45dc31f 5133else
d7040cdb
SE
5134 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5135case `$LD -v 2>&1 </dev/null` in
5136*GNU* | *'with BFD'*)
d45dc31f 5137 lt_cv_prog_gnu_ld=yes
d7040cdb
SE
5138 ;;
5139*)
d45dc31f 5140 lt_cv_prog_gnu_ld=no
d7040cdb
SE
5141 ;;
5142esac
d45dc31f 5143fi
81ecdfbb
RW
5144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5145$as_echo "$lt_cv_prog_gnu_ld" >&6; }
d45dc31f 5146with_gnu_ld=$lt_cv_prog_gnu_ld
569acd2c 5147
d45dc31f 5148
42ecbf5e 5149
d7040cdb
SE
5150
5151
5152
5153
5154
5155
81ecdfbb
RW
5156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5157$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
d0ac1c44 5158if ${lt_cv_path_NM+:} false; then :
81ecdfbb 5159 $as_echo_n "(cached) " >&6
d45dc31f
SE
5160else
5161 if test -n "$NM"; then
5162 # Let the user override the test.
5163 lt_cv_path_NM="$NM"
5164else
d7040cdb
SE
5165 lt_nm_to_check="${ac_tool_prefix}nm"
5166 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5167 lt_nm_to_check="$lt_nm_to_check nm"
5168 fi
5169 for lt_tmp_nm in $lt_nm_to_check; do
5170 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5171 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5172 IFS="$lt_save_ifs"
5173 test -z "$ac_dir" && ac_dir=.
5174 tmp_nm="$ac_dir/$lt_tmp_nm"
5175 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5176 # Check to see if the nm accepts a BSD-compat flag.
5177 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5178 # nm: unknown option "B" ignored
5179 # Tru64's nm complains that /dev/null is an invalid object file
5180 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5181 */dev/null* | *'Invalid file or object type'*)
5182 lt_cv_path_NM="$tmp_nm -B"
5183 break
5184 ;;
5185 *)
5186 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5187 */dev/null*)
5188 lt_cv_path_NM="$tmp_nm -p"
5189 break
5190 ;;
5191 *)
5192 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5193 continue # so that we can try to find one that supports BSD flags
5194 ;;
5195 esac
5196 ;;
5197 esac
d45dc31f 5198 fi
d7040cdb
SE
5199 done
5200 IFS="$lt_save_ifs"
d45dc31f 5201 done
d7040cdb 5202 : ${lt_cv_path_NM=no}
d45dc31f 5203fi
a541e3ce 5204fi
81ecdfbb
RW
5205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5206$as_echo "$lt_cv_path_NM" >&6; }
d7040cdb
SE
5207if test "$lt_cv_path_NM" != "no"; then
5208 NM="$lt_cv_path_NM"
d45dc31f 5209else
d7040cdb 5210 # Didn't find any BSD compatible name lister, look for dumpbin.
3725885a
RW
5211 if test -n "$DUMPBIN"; then :
5212 # Let the user override the test.
5213 else
5214 if test -n "$ac_tool_prefix"; then
5215 for ac_prog in dumpbin "link -dump"
d7040cdb
SE
5216 do
5217 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5218set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
5219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5220$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5221if ${ac_cv_prog_DUMPBIN+:} false; then :
81ecdfbb 5222 $as_echo_n "(cached) " >&6
d45dc31f 5223else
d7040cdb
SE
5224 if test -n "$DUMPBIN"; then
5225 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5226else
5227as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5228for as_dir in $PATH
5229do
5230 IFS=$as_save_IFS
5231 test -z "$as_dir" && as_dir=.
81ecdfbb 5232 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5233 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7040cdb 5234 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
81ecdfbb 5235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
5236 break 2
5237 fi
5238done
81ecdfbb
RW
5239 done
5240IFS=$as_save_IFS
398ee8f1 5241
d7040cdb
SE
5242fi
5243fi
5244DUMPBIN=$ac_cv_prog_DUMPBIN
5245if test -n "$DUMPBIN"; then
81ecdfbb
RW
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5247$as_echo "$DUMPBIN" >&6; }
d7040cdb 5248else
81ecdfbb
RW
5249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5250$as_echo "no" >&6; }
d7040cdb 5251fi
d15b04bd 5252
81ecdfbb 5253
d7040cdb
SE
5254 test -n "$DUMPBIN" && break
5255 done
5256fi
5257if test -z "$DUMPBIN"; then
5258 ac_ct_DUMPBIN=$DUMPBIN
3725885a 5259 for ac_prog in dumpbin "link -dump"
d7040cdb
SE
5260do
5261 # Extract the first word of "$ac_prog", so it can be a program name with args.
5262set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
5263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5264$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5265if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
81ecdfbb 5266 $as_echo_n "(cached) " >&6
d7040cdb
SE
5267else
5268 if test -n "$ac_ct_DUMPBIN"; then
5269 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5270else
5271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5272for as_dir in $PATH
5273do
5274 IFS=$as_save_IFS
5275 test -z "$as_dir" && as_dir=.
81ecdfbb 5276 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5277 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7040cdb 5278 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
81ecdfbb 5279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb 5280 break 2
d45dc31f 5281 fi
d7040cdb 5282done
81ecdfbb
RW
5283 done
5284IFS=$as_save_IFS
d15b04bd 5285
d7040cdb
SE
5286fi
5287fi
5288ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5289if test -n "$ac_ct_DUMPBIN"; then
81ecdfbb
RW
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5291$as_echo "$ac_ct_DUMPBIN" >&6; }
d7040cdb 5292else
81ecdfbb
RW
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5294$as_echo "no" >&6; }
d7040cdb 5295fi
42ecbf5e 5296
81ecdfbb 5297
d7040cdb
SE
5298 test -n "$ac_ct_DUMPBIN" && break
5299done
d45dc31f 5300
81ecdfbb
RW
5301 if test "x$ac_ct_DUMPBIN" = x; then
5302 DUMPBIN=":"
5303 else
5304 case $cross_compiling:$ac_tool_warned in
5305yes:)
5306{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5307$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5308ac_tool_warned=yes ;;
5309esac
5310 DUMPBIN=$ac_ct_DUMPBIN
5311 fi
d7040cdb 5312fi
d45dc31f 5313
3725885a
RW
5314 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5315 *COFF*)
5316 DUMPBIN="$DUMPBIN -symbols"
5317 ;;
5318 *)
5319 DUMPBIN=:
5320 ;;
5321 esac
5322 fi
d45dc31f 5323
d7040cdb
SE
5324 if test "$DUMPBIN" != ":"; then
5325 NM="$DUMPBIN"
42ecbf5e 5326 fi
d7040cdb
SE
5327fi
5328test -z "$NM" && NM=nm
d45dc31f 5329
42ecbf5e 5330
d15b04bd 5331
42ecbf5e 5332
d45dc31f 5333
42ecbf5e 5334
81ecdfbb
RW
5335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5336$as_echo_n "checking the name lister ($NM) interface... " >&6; }
d0ac1c44 5337if ${lt_cv_nm_interface+:} false; then :
81ecdfbb 5338 $as_echo_n "(cached) " >&6
d7040cdb
SE
5339else
5340 lt_cv_nm_interface="BSD nm"
5341 echo "int some_variable = 0;" > conftest.$ac_ext
3725885a 5342 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
d7040cdb
SE
5343 (eval "$ac_compile" 2>conftest.err)
5344 cat conftest.err >&5
3725885a 5345 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
d7040cdb
SE
5346 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5347 cat conftest.err >&5
3725885a 5348 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
d7040cdb
SE
5349 cat conftest.out >&5
5350 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5351 lt_cv_nm_interface="MS dumpbin"
5352 fi
5353 rm -f conftest*
42ecbf5e 5354fi
81ecdfbb
RW
5355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5356$as_echo "$lt_cv_nm_interface" >&6; }
42ecbf5e 5357
81ecdfbb
RW
5358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5359$as_echo_n "checking whether ln -s works... " >&6; }
d7040cdb
SE
5360LN_S=$as_ln_s
5361if test "$LN_S" = "ln -s"; then
81ecdfbb
RW
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5363$as_echo "yes" >&6; }
d7040cdb 5364else
81ecdfbb
RW
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5366$as_echo "no, using $LN_S" >&6; }
d7040cdb 5367fi
d45dc31f
SE
5368
5369# find the maximum length of command line arguments
81ecdfbb
RW
5370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5371$as_echo_n "checking the maximum length of command line arguments... " >&6; }
d0ac1c44 5372if ${lt_cv_sys_max_cmd_len+:} false; then :
81ecdfbb 5373 $as_echo_n "(cached) " >&6
42ecbf5e 5374else
d45dc31f
SE
5375 i=0
5376 teststring="ABCD"
5377
5378 case $build_os in
5379 msdosdjgpp*)
5380 # On DJGPP, this test can blow up pretty badly due to problems in libc
5381 # (any single argument exceeding 2000 bytes causes a buffer overrun
5382 # during glob expansion). Even if it were fixed, the result of this
5383 # check would be larger than it should be.
5384 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5385 ;;
5386
d7040cdb
SE
5387 gnu*)
5388 # Under GNU Hurd, this test is not required because there is
5389 # no limit to the length of command line arguments.
5390 # Libtool will interpret -1 as no limit whatsoever
5391 lt_cv_sys_max_cmd_len=-1;
5392 ;;
5393
718a6fd8 5394 cygwin* | mingw* | cegcc*)
d45dc31f
SE
5395 # On Win9x/ME, this test blows up -- it succeeds, but takes
5396 # about 5 minutes as the teststring grows exponentially.
5397 # Worse, since 9x/ME are not pre-emptively multitasking,
5398 # you end up with a "frozen" computer, even though with patience
5399 # the test eventually succeeds (with a max line length of 256k).
5400 # Instead, let's just punt: use the minimum linelength reported by
5401 # all of the supported platforms: 8192 (on NT/2K/XP).
5402 lt_cv_sys_max_cmd_len=8192;
5403 ;;
5404
3725885a
RW
5405 mint*)
5406 # On MiNT this can take a long time and run out of memory.
5407 lt_cv_sys_max_cmd_len=8192;
5408 ;;
5409
d45dc31f
SE
5410 amigaos*)
5411 # On AmigaOS with pdksh, this test takes hours, literally.
5412 # So we just punt and use a minimum line length of 8192.
5413 lt_cv_sys_max_cmd_len=8192;
5414 ;;
5415
5416 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5417 # This has been around since 386BSD, at least. Likely further.
5418 if test -x /sbin/sysctl; then
5419 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5420 elif test -x /usr/sbin/sysctl; then
5421 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5422 else
d7040cdb 5423 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
d45dc31f
SE
5424 fi
5425 # And add a safety zone
5426 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5427 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5428 ;;
d7040cdb
SE
5429
5430 interix*)
5431 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5432 lt_cv_sys_max_cmd_len=196608
5433 ;;
5434
5435 osf*)
5436 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5437 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5438 # nice to cause kernel panics so lets avoid the loop below.
5439 # First set a reasonable default.
5440 lt_cv_sys_max_cmd_len=16384
5441 #
5442 if test -x /sbin/sysconfig; then
5443 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5444 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5445 esac
5446 fi
5447 ;;
5448 sco3.2v5*)
5449 lt_cv_sys_max_cmd_len=102400
5450 ;;
5451 sysv5* | sco5v6* | sysv4.2uw2*)
5452 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5453 if test -n "$kargmax"; then
5454 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5455 else
5456 lt_cv_sys_max_cmd_len=32768
5457 fi
5458 ;;
5459 *)
718a6fd8
SE
5460 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5461 if test -n "$lt_cv_sys_max_cmd_len"; then
5ba684e2
NC
5462 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5463 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5464 else
5465 # Make teststring a little bigger before we do anything with it.
5466 # a 1K string should be a reasonable start.
5467 for i in 1 2 3 4 5 6 7 8 ; do
5468 teststring=$teststring$teststring
5469 done
5470 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5471 # If test is not a shell built-in, we'll probably end up computing a
5472 # maximum length that is only half of the actual maximum length, but
5473 # we can't tell.
3725885a
RW
5474 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5475 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5ba684e2
NC
5476 test $i != 17 # 1/2 MB should be enough
5477 do
5478 i=`expr $i + 1`
5479 teststring=$teststring$teststring
5480 done
5481 # Only check the string length outside the loop.
5482 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5483 teststring=
5484 # Add a significant safety factor because C++ compilers can tack on
5485 # massive amounts of additional arguments before passing them to the
5486 # linker. It appears as though 1/2 is a usable value.
5487 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5488 fi
d7040cdb 5489 ;;
d45dc31f 5490 esac
42ecbf5e 5491
42ecbf5e
DJ
5492fi
5493
d7040cdb 5494if test -n $lt_cv_sys_max_cmd_len ; then
81ecdfbb
RW
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5496$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
252b5132 5497else
81ecdfbb
RW
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5499$as_echo "none" >&6; }
252b5132 5500fi
d7040cdb 5501max_cmd_len=$lt_cv_sys_max_cmd_len
e5a52504 5502
d45dc31f 5503
42ecbf5e 5504
d45dc31f 5505
d45dc31f 5506
d7040cdb 5507
d7040cdb
SE
5508: ${CP="cp -f"}
5509: ${MV="mv -f"}
5510: ${RM="rm -f"}
5511
81ecdfbb
RW
5512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5513$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
d7040cdb
SE
5514# Try some XSI features
5515xsi_shell=no
5516( _lt_dummy="a/b/c"
f2c621e4
AS
5517 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5518 = c,a/b,, \
718a6fd8
SE
5519 && eval 'test $(( 1 + 1 )) -eq 2 \
5520 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
d7040cdb 5521 && xsi_shell=yes
81ecdfbb
RW
5522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5523$as_echo "$xsi_shell" >&6; }
d7040cdb
SE
5524
5525
81ecdfbb
RW
5526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5527$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
d7040cdb
SE
5528lt_shell_append=no
5529( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5530 >/dev/null 2>&1 \
5531 && lt_shell_append=yes
81ecdfbb
RW
5532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5533$as_echo "$lt_shell_append" >&6; }
d7040cdb
SE
5534
5535
5536if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5537 lt_unset=unset
252b5132 5538else
d7040cdb 5539 lt_unset=false
252b5132
RH
5540fi
5541
d7040cdb
SE
5542
5543
5544
5545
5546# test EBCDIC or ASCII
5547case `echo X|tr X '\101'` in
5548 A) # ASCII based system
5549 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5550 lt_SP2NL='tr \040 \012'
5551 lt_NL2SP='tr \015\012 \040\040'
5552 ;;
5553 *) # EBCDIC based system
5554 lt_SP2NL='tr \100 \n'
5555 lt_NL2SP='tr \r\n \100\100'
5556 ;;
5557esac
5558
5559
5560
5561
5562
5563
5564
5565
5566
81ecdfbb
RW
5567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5568$as_echo_n "checking for $LD option to reload object files... " >&6; }
d0ac1c44 5569if ${lt_cv_ld_reload_flag+:} false; then :
81ecdfbb 5570 $as_echo_n "(cached) " >&6
252b5132 5571else
d7040cdb
SE
5572 lt_cv_ld_reload_flag='-r'
5573fi
81ecdfbb
RW
5574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5575$as_echo "$lt_cv_ld_reload_flag" >&6; }
d7040cdb
SE
5576reload_flag=$lt_cv_ld_reload_flag
5577case $reload_flag in
5578"" | " "*) ;;
5579*) reload_flag=" $reload_flag" ;;
5580esac
5581reload_cmds='$LD$reload_flag -o $output$reload_objs'
5582case $host_os in
5583 darwin*)
5584 if test "$GCC" = yes; then
5585 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5586 else
5587 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5588 fi
5589 ;;
5590esac
5591
5592
5593
5594
5595
5596
5597
5598
5599
718a6fd8
SE
5600if test -n "$ac_tool_prefix"; then
5601 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5602set dummy ${ac_tool_prefix}objdump; ac_word=$2
81ecdfbb
RW
5603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5604$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5605if ${ac_cv_prog_OBJDUMP+:} false; then :
81ecdfbb 5606 $as_echo_n "(cached) " >&6
718a6fd8
SE
5607else
5608 if test -n "$OBJDUMP"; then
5609 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5610else
5611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5612for as_dir in $PATH
5613do
5614 IFS=$as_save_IFS
5615 test -z "$as_dir" && as_dir=.
81ecdfbb 5616 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5617 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
718a6fd8 5618 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
81ecdfbb 5619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
5620 break 2
5621 fi
5622done
81ecdfbb
RW
5623 done
5624IFS=$as_save_IFS
718a6fd8
SE
5625
5626fi
5627fi
5628OBJDUMP=$ac_cv_prog_OBJDUMP
5629if test -n "$OBJDUMP"; then
81ecdfbb
RW
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5631$as_echo "$OBJDUMP" >&6; }
718a6fd8 5632else
81ecdfbb
RW
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5634$as_echo "no" >&6; }
718a6fd8
SE
5635fi
5636
81ecdfbb 5637
718a6fd8
SE
5638fi
5639if test -z "$ac_cv_prog_OBJDUMP"; then
5640 ac_ct_OBJDUMP=$OBJDUMP
5641 # Extract the first word of "objdump", so it can be a program name with args.
5642set dummy objdump; ac_word=$2
81ecdfbb
RW
5643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5644$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5645if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
81ecdfbb 5646 $as_echo_n "(cached) " >&6
718a6fd8
SE
5647else
5648 if test -n "$ac_ct_OBJDUMP"; then
5649 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5650else
5651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5652for as_dir in $PATH
5653do
5654 IFS=$as_save_IFS
5655 test -z "$as_dir" && as_dir=.
81ecdfbb 5656 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5657 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
718a6fd8 5658 ac_cv_prog_ac_ct_OBJDUMP="objdump"
81ecdfbb 5659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
5660 break 2
5661 fi
5662done
81ecdfbb
RW
5663 done
5664IFS=$as_save_IFS
718a6fd8 5665
718a6fd8
SE
5666fi
5667fi
5668ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5669if test -n "$ac_ct_OBJDUMP"; then
81ecdfbb
RW
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5671$as_echo "$ac_ct_OBJDUMP" >&6; }
718a6fd8 5672else
81ecdfbb
RW
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5674$as_echo "no" >&6; }
718a6fd8
SE
5675fi
5676
81ecdfbb
RW
5677 if test "x$ac_ct_OBJDUMP" = x; then
5678 OBJDUMP="false"
5679 else
5680 case $cross_compiling:$ac_tool_warned in
5681yes:)
5682{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5683$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5684ac_tool_warned=yes ;;
5685esac
5686 OBJDUMP=$ac_ct_OBJDUMP
5687 fi
718a6fd8
SE
5688else
5689 OBJDUMP="$ac_cv_prog_OBJDUMP"
5690fi
5691
5692test -z "$OBJDUMP" && OBJDUMP=objdump
5693
5694
5695
5696
5697
5698
5699
5700
d7040cdb 5701
81ecdfbb
RW
5702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5703$as_echo_n "checking how to recognize dependent libraries... " >&6; }
d0ac1c44 5704if ${lt_cv_deplibs_check_method+:} false; then :
81ecdfbb 5705 $as_echo_n "(cached) " >&6
d7040cdb
SE
5706else
5707 lt_cv_file_magic_cmd='$MAGIC_CMD'
5708lt_cv_file_magic_test_file=
5709lt_cv_deplibs_check_method='unknown'
5710# Need to set the preceding variable on all platforms that support
5711# interlibrary dependencies.
5712# 'none' -- dependencies not supported.
5713# `unknown' -- same as none, but documents that we really don't know.
5714# 'pass_all' -- all dependencies passed with no checks.
5715# 'test_compile' -- check by making test program.
5716# 'file_magic [[regex]]' -- check by looking for files in library path
5717# which responds to the $file_magic_cmd with a given extended regex.
5718# If you have `file' or equivalent on your system and you're not sure
5719# whether `pass_all' will *always* work, you probably want this one.
5720
5721case $host_os in
50e7d84b 5722aix[4-9]*)
d7040cdb
SE
5723 lt_cv_deplibs_check_method=pass_all
5724 ;;
5725
5726beos*)
5727 lt_cv_deplibs_check_method=pass_all
5728 ;;
5729
5730bsdi[45]*)
5731 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5732 lt_cv_file_magic_cmd='/usr/bin/file -L'
5733 lt_cv_file_magic_test_file=/shlib/libc.so
5734 ;;
5735
5736cygwin*)
5737 # func_win32_libid is a shell function defined in ltmain.sh
5738 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5739 lt_cv_file_magic_cmd='func_win32_libid'
5740 ;;
5741
5742mingw* | pw32*)
5743 # Base MSYS/MinGW do not provide the 'file' command needed by
5744 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5745 # unless we find 'file', for example because we are cross-compiling.
3725885a
RW
5746 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5747 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
d7040cdb
SE
5748 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5749 lt_cv_file_magic_cmd='func_win32_libid'
5750 else
f2c621e4 5751 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
d7040cdb
SE
5752 lt_cv_file_magic_cmd='$OBJDUMP -f'
5753 fi
5754 ;;
5755
3725885a 5756cegcc*)
718a6fd8
SE
5757 # use the weaker test based on 'objdump'. See mingw*.
5758 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5759 lt_cv_file_magic_cmd='$OBJDUMP -f'
5760 ;;
5761
d7040cdb
SE
5762darwin* | rhapsody*)
5763 lt_cv_deplibs_check_method=pass_all
d45dc31f 5764 ;;
d7040cdb
SE
5765
5766freebsd* | dragonfly*)
5767 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5768 case $host_cpu in
5769 i*86 )
5770 # Not sure whether the presence of OpenBSD here was a mistake.
5771 # Let's accept both of them until this is cleared up.
5772 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5773 lt_cv_file_magic_cmd=/usr/bin/file
5774 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5775 ;;
5776 esac
5777 else
5778 lt_cv_deplibs_check_method=pass_all
5779 fi
5780 ;;
5781
5782gnu*)
5783 lt_cv_deplibs_check_method=pass_all
d45dc31f 5784 ;;
d7040cdb 5785
3725885a
RW
5786haiku*)
5787 lt_cv_deplibs_check_method=pass_all
5788 ;;
5789
d7040cdb
SE
5790hpux10.20* | hpux11*)
5791 lt_cv_file_magic_cmd=/usr/bin/file
5792 case $host_cpu in
5793 ia64*)
5794 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5795 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5796 ;;
5797 hppa*64*)
3725885a 5798 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]'
d7040cdb
SE
5799 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5800 ;;
d45dc31f 5801 *)
3725885a 5802 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
d7040cdb
SE
5803 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5804 ;;
5805 esac
5806 ;;
42ecbf5e 5807
d7040cdb
SE
5808interix[3-9]*)
5809 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5810 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5811 ;;
42ecbf5e 5812
d7040cdb
SE
5813irix5* | irix6* | nonstopux*)
5814 case $LD in
5815 *-32|*"-32 ") libmagic=32-bit;;
5816 *-n32|*"-n32 ") libmagic=N32;;
5817 *-64|*"-64 ") libmagic=64-bit;;
5818 *) libmagic=never-match;;
5819 esac
5820 lt_cv_deplibs_check_method=pass_all
d45dc31f 5821 ;;
42ecbf5e 5822
d7040cdb 5823# This must be Linux ELF.
58e24671 5824linux* | k*bsd*-gnu | kopensolaris*-gnu)
d7040cdb
SE
5825 lt_cv_deplibs_check_method=pass_all
5826 ;;
252b5132 5827
d7040cdb
SE
5828netbsd*)
5829 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5830 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
d45dc31f 5831 else
d7040cdb 5832 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
d45dc31f 5833 fi
d7040cdb
SE
5834 ;;
5835
5836newos6*)
5837 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5838 lt_cv_file_magic_cmd=/usr/bin/file
5839 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5840 ;;
5841
5842*nto* | *qnx*)
5843 lt_cv_deplibs_check_method=pass_all
5844 ;;
42ecbf5e 5845
d7040cdb
SE
5846openbsd*)
5847 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5848 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5849 else
5850 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
d45dc31f
SE
5851 fi
5852 ;;
d7040cdb
SE
5853
5854osf3* | osf4* | osf5*)
5855 lt_cv_deplibs_check_method=pass_all
5856 ;;
5857
5858rdos*)
5859 lt_cv_deplibs_check_method=pass_all
5860 ;;
5861
5862solaris*)
5863 lt_cv_deplibs_check_method=pass_all
5864 ;;
5865
5866sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5867 lt_cv_deplibs_check_method=pass_all
5868 ;;
5869
5870sysv4 | sysv4.3*)
5871 case $host_vendor in
5872 motorola)
5873 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]'
5874 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5875 ;;
5876 ncr)
5877 lt_cv_deplibs_check_method=pass_all
5878 ;;
5879 sequent)
5880 lt_cv_file_magic_cmd='/bin/file'
5881 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5882 ;;
5883 sni)
5884 lt_cv_file_magic_cmd='/bin/file'
5885 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5886 lt_cv_file_magic_test_file=/lib/libc.so
5887 ;;
5888 siemens)
5889 lt_cv_deplibs_check_method=pass_all
5890 ;;
5891 pc)
5892 lt_cv_deplibs_check_method=pass_all
5893 ;;
5894 esac
5895 ;;
5896
5897tpf*)
5898 lt_cv_deplibs_check_method=pass_all
5899 ;;
d45dc31f 5900esac
42ecbf5e 5901
d7040cdb 5902fi
81ecdfbb
RW
5903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5904$as_echo "$lt_cv_deplibs_check_method" >&6; }
d7040cdb
SE
5905file_magic_cmd=$lt_cv_file_magic_cmd
5906deplibs_check_method=$lt_cv_deplibs_check_method
5907test -z "$deplibs_check_method" && deplibs_check_method=unknown
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
a4966cd9
L
5920plugin_option=
5921plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
5922for plugin in $plugin_names; do
5923 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
5924 if test x$plugin_so = x$plugin; then
5925 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
5926 fi
5927 if test x$plugin_so != x$plugin; then
5928 plugin_option="--plugin $plugin_so"
5929 break
5930 fi
5931done
5932
d45dc31f 5933if test -n "$ac_tool_prefix"; then
f2c621e4
AS
5934 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5935set dummy ${ac_tool_prefix}ar; ac_word=$2
81ecdfbb
RW
5936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5937$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5938if ${ac_cv_prog_AR+:} false; then :
81ecdfbb 5939 $as_echo_n "(cached) " >&6
42ecbf5e 5940else
d7040cdb
SE
5941 if test -n "$AR"; then
5942 ac_cv_prog_AR="$AR" # Let the user override the test.
d45dc31f
SE
5943else
5944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5945for as_dir in $PATH
5946do
5947 IFS=$as_save_IFS
5948 test -z "$as_dir" && as_dir=.
81ecdfbb 5949 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5950 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
f2c621e4 5951 ac_cv_prog_AR="${ac_tool_prefix}ar"
81ecdfbb 5952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d45dc31f
SE
5953 break 2
5954 fi
5955done
81ecdfbb
RW
5956 done
5957IFS=$as_save_IFS
42ecbf5e 5958
42ecbf5e 5959fi
d45dc31f 5960fi
d7040cdb
SE
5961AR=$ac_cv_prog_AR
5962if test -n "$AR"; then
81ecdfbb
RW
5963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5964$as_echo "$AR" >&6; }
d45dc31f 5965else
81ecdfbb
RW
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5967$as_echo "no" >&6; }
d45dc31f 5968fi
42ecbf5e 5969
81ecdfbb 5970
42ecbf5e 5971fi
f2c621e4 5972if test -z "$ac_cv_prog_AR"; then
d7040cdb 5973 ac_ct_AR=$AR
f2c621e4
AS
5974 # Extract the first word of "ar", so it can be a program name with args.
5975set dummy ar; ac_word=$2
81ecdfbb
RW
5976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5977$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5978if ${ac_cv_prog_ac_ct_AR+:} false; then :
81ecdfbb 5979 $as_echo_n "(cached) " >&6
42ecbf5e 5980else
d7040cdb
SE
5981 if test -n "$ac_ct_AR"; then
5982 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
42ecbf5e 5983else
d45dc31f
SE
5984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5985for as_dir in $PATH
5986do
5987 IFS=$as_save_IFS
5988 test -z "$as_dir" && as_dir=.
81ecdfbb 5989 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5990 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
f2c621e4 5991 ac_cv_prog_ac_ct_AR="ar"
81ecdfbb 5992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d45dc31f
SE
5993 break 2
5994 fi
5995done
81ecdfbb
RW
5996 done
5997IFS=$as_save_IFS
42ecbf5e 5998
42ecbf5e 5999fi
42ecbf5e 6000fi
d7040cdb
SE
6001ac_ct_AR=$ac_cv_prog_ac_ct_AR
6002if test -n "$ac_ct_AR"; then
81ecdfbb
RW
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6004$as_echo "$ac_ct_AR" >&6; }
252b5132 6005else
81ecdfbb
RW
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6007$as_echo "no" >&6; }
252b5132 6008fi
252b5132 6009
81ecdfbb
RW
6010 if test "x$ac_ct_AR" = x; then
6011 AR="false"
6012 else
6013 case $cross_compiling:$ac_tool_warned in
6014yes:)
6015{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6016$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6017ac_tool_warned=yes ;;
6018esac
6019 AR=$ac_ct_AR
6020 fi
df7b86aa 6021else
f2c621e4
AS
6022 AR="$ac_cv_prog_AR"
6023fi
df7b86aa 6024
f2c621e4 6025test -z "$AR" && AR=ar
a4966cd9
L
6026if test -n "$plugin_option"; then
6027 if $AR --help 2>&1 | grep -q "\--plugin"; then
83b33c6c
L
6028 touch conftest.c
6029 $AR $plugin_option rc conftest.a conftest.c
6030 if test "$?" != 0; then
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
6032$as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
6033 else
6034 AR="$AR $plugin_option"
6035 fi
6036 rm -f conftest.*
a4966cd9
L
6037 fi
6038fi
f2c621e4 6039test -z "$AR_FLAGS" && AR_FLAGS=cru
df7b86aa 6040
df7b86aa 6041
df7b86aa 6042
df7b86aa 6043
df7b86aa 6044
d7040cdb
SE
6045
6046
6047
6048
6049
6050
d45dc31f
SE
6051if test -n "$ac_tool_prefix"; then
6052 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6053set dummy ${ac_tool_prefix}strip; ac_word=$2
81ecdfbb
RW
6054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6055$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6056if ${ac_cv_prog_STRIP+:} false; then :
81ecdfbb 6057 $as_echo_n "(cached) " >&6
d45dc31f
SE
6058else
6059 if test -n "$STRIP"; then
6060 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6061else
6062as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6063for as_dir in $PATH
42ecbf5e 6064do
d45dc31f
SE
6065 IFS=$as_save_IFS
6066 test -z "$as_dir" && as_dir=.
81ecdfbb 6067 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6068 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d45dc31f 6069 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
81ecdfbb 6070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d45dc31f
SE
6071 break 2
6072 fi
6073done
81ecdfbb
RW
6074 done
6075IFS=$as_save_IFS
d45dc31f
SE
6076
6077fi
6078fi
6079STRIP=$ac_cv_prog_STRIP
6080if test -n "$STRIP"; then
81ecdfbb
RW
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6082$as_echo "$STRIP" >&6; }
252b5132 6083else
81ecdfbb
RW
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6085$as_echo "no" >&6; }
d45dc31f 6086fi
42ecbf5e 6087
81ecdfbb 6088
252b5132 6089fi
d45dc31f
SE
6090if test -z "$ac_cv_prog_STRIP"; then
6091 ac_ct_STRIP=$STRIP
6092 # Extract the first word of "strip", so it can be a program name with args.
6093set dummy strip; ac_word=$2
81ecdfbb
RW
6094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6095$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6096if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
81ecdfbb 6097 $as_echo_n "(cached) " >&6
d45dc31f
SE
6098else
6099 if test -n "$ac_ct_STRIP"; then
6100 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6101else
6102as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6103for as_dir in $PATH
6104do
6105 IFS=$as_save_IFS
6106 test -z "$as_dir" && as_dir=.
81ecdfbb 6107 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6108 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d45dc31f 6109 ac_cv_prog_ac_ct_STRIP="strip"
81ecdfbb 6110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d45dc31f
SE
6111 break 2
6112 fi
6113done
81ecdfbb
RW
6114 done
6115IFS=$as_save_IFS
42ecbf5e 6116
d45dc31f
SE
6117fi
6118fi
6119ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6120if test -n "$ac_ct_STRIP"; then
81ecdfbb
RW
6121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6122$as_echo "$ac_ct_STRIP" >&6; }
d45dc31f 6123else
81ecdfbb
RW
6124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6125$as_echo "no" >&6; }
252b5132 6126fi
e5a52504 6127
81ecdfbb
RW
6128 if test "x$ac_ct_STRIP" = x; then
6129 STRIP=":"
6130 else
6131 case $cross_compiling:$ac_tool_warned in
6132yes:)
6133{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6134$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6135ac_tool_warned=yes ;;
6136esac
6137 STRIP=$ac_ct_STRIP
6138 fi
d45dc31f
SE
6139else
6140 STRIP="$ac_cv_prog_STRIP"
6141fi
e5a52504 6142
d7040cdb 6143test -z "$STRIP" && STRIP=:
d45dc31f 6144
d45dc31f
SE
6145
6146
d45dc31f 6147
d45dc31f
SE
6148
6149
d7040cdb
SE
6150if test -n "$ac_tool_prefix"; then
6151 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6152set dummy ${ac_tool_prefix}ranlib; ac_word=$2
81ecdfbb
RW
6153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6154$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6155if ${ac_cv_prog_RANLIB+:} false; then :
81ecdfbb 6156 $as_echo_n "(cached) " >&6
d45dc31f 6157else
d7040cdb
SE
6158 if test -n "$RANLIB"; then
6159 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6160else
6161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6162for as_dir in $PATH
6163do
6164 IFS=$as_save_IFS
6165 test -z "$as_dir" && as_dir=.
81ecdfbb 6166 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6167 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7040cdb 6168 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
81ecdfbb 6169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb 6170 break 2
d45dc31f 6171 fi
d7040cdb 6172done
81ecdfbb
RW
6173 done
6174IFS=$as_save_IFS
d45dc31f 6175
d7040cdb
SE
6176fi
6177fi
6178RANLIB=$ac_cv_prog_RANLIB
6179if test -n "$RANLIB"; then
81ecdfbb
RW
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6181$as_echo "$RANLIB" >&6; }
d7040cdb 6182else
81ecdfbb
RW
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6184$as_echo "no" >&6; }
d7040cdb 6185fi
d45dc31f 6186
81ecdfbb 6187
d7040cdb
SE
6188fi
6189if test -z "$ac_cv_prog_RANLIB"; then
6190 ac_ct_RANLIB=$RANLIB
6191 # Extract the first word of "ranlib", so it can be a program name with args.
6192set dummy ranlib; ac_word=$2
81ecdfbb
RW
6193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6194$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6195if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
81ecdfbb 6196 $as_echo_n "(cached) " >&6
d7040cdb
SE
6197else
6198 if test -n "$ac_ct_RANLIB"; then
6199 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6200else
6201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6202for as_dir in $PATH
6203do
6204 IFS=$as_save_IFS
6205 test -z "$as_dir" && as_dir=.
81ecdfbb 6206 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6207 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7040cdb 6208 ac_cv_prog_ac_ct_RANLIB="ranlib"
81ecdfbb 6209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb 6210 break 2
d45dc31f 6211 fi
d7040cdb 6212done
81ecdfbb
RW
6213 done
6214IFS=$as_save_IFS
d45dc31f 6215
d7040cdb
SE
6216fi
6217fi
6218ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6219if test -n "$ac_ct_RANLIB"; then
81ecdfbb
RW
6220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6221$as_echo "$ac_ct_RANLIB" >&6; }
d15b04bd 6222else
81ecdfbb
RW
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6224$as_echo "no" >&6; }
d7040cdb 6225fi
252b5132 6226
81ecdfbb
RW
6227 if test "x$ac_ct_RANLIB" = x; then
6228 RANLIB=":"
6229 else
6230 case $cross_compiling:$ac_tool_warned in
6231yes:)
6232{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6233$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6234ac_tool_warned=yes ;;
6235esac
6236 RANLIB=$ac_ct_RANLIB
6237 fi
d7040cdb
SE
6238else
6239 RANLIB="$ac_cv_prog_RANLIB"
6240fi
d45dc31f 6241
d7040cdb 6242test -z "$RANLIB" && RANLIB=:
a4966cd9
L
6243if test -n "$plugin_option" && test "$RANLIB" != ":"; then
6244 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
6245 RANLIB="$RANLIB $plugin_option"
6246 fi
6247fi
d45dc31f 6248
d45dc31f 6249
d45dc31f 6250
42ecbf5e 6251
e5a52504 6252
d7040cdb
SE
6253
6254# Determine commands to create old-style static archives.
718a6fd8 6255old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
d7040cdb
SE
6256old_postinstall_cmds='chmod 644 $oldlib'
6257old_postuninstall_cmds=
6258
6259if test -n "$RANLIB"; then
6260 case $host_os in
6261 openbsd*)
6262 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6263 ;;
6264 *)
6265 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6266 ;;
6267 esac
6268 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
d45dc31f 6269fi
d45dc31f 6270
3725885a
RW
6271case $host_os in
6272 darwin*)
6273 lock_old_archive_extraction=yes ;;
6274 *)
6275 lock_old_archive_extraction=no ;;
6276esac
6277
6278
6279
6280
6281
6282
d45dc31f 6283
d45dc31f
SE
6284
6285
d15b04bd 6286
3e321448 6287
d45dc31f 6288
d45dc31f 6289
d45dc31f
SE
6290
6291
d45dc31f 6292
d45dc31f 6293
d45dc31f
SE
6294
6295
6296
6297
6298
6299
6300
d45dc31f 6301
d45dc31f 6302
d45dc31f 6303
d45dc31f 6304
d45dc31f 6305
d45dc31f 6306
d45dc31f 6307
d45dc31f 6308
3e321448
L
6309
6310
d45dc31f
SE
6311
6312
d45dc31f
SE
6313
6314
d45dc31f 6315
d7040cdb
SE
6316# If no C compiler was specified, use CC.
6317LTCC=${LTCC-"$CC"}
42ecbf5e 6318
d7040cdb
SE
6319# If no C compiler flags were specified, use CFLAGS.
6320LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
e5a52504 6321
d7040cdb
SE
6322# Allow CC to be a program name with arguments.
6323compiler=$CC
d15b04bd 6324
d7040cdb
SE
6325
6326# Check for command to grab the raw symbol name followed by C symbol from nm.
81ecdfbb
RW
6327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6328$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
d0ac1c44 6329if ${lt_cv_sys_global_symbol_pipe+:} false; then :
81ecdfbb 6330 $as_echo_n "(cached) " >&6
d15b04bd 6331else
d7040cdb
SE
6332
6333# These are sane defaults that work on at least a few old systems.
6334# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6335
6336# Character class describing NM global symbol codes.
6337symcode='[BCDEGRST]'
6338
6339# Regexp to match symbols that can be accessed directly from C.
6340sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6341
6342# Define system-specific variables.
6343case $host_os in
6344aix*)
6345 symcode='[BCDT]'
6346 ;;
718a6fd8 6347cygwin* | mingw* | pw32* | cegcc*)
d7040cdb
SE
6348 symcode='[ABCDGISTW]'
6349 ;;
6350hpux*)
6351 if test "$host_cpu" = ia64; then
6352 symcode='[ABCDEGRST]'
42ecbf5e 6353 fi
d7040cdb
SE
6354 ;;
6355irix* | nonstopux*)
6356 symcode='[BCDEGRST]'
6357 ;;
6358osf*)
6359 symcode='[BCDEGQRST]'
6360 ;;
6361solaris*)
6362 symcode='[BDRT]'
6363 ;;
6364sco3.2v5*)
6365 symcode='[DT]'
6366 ;;
6367sysv4.2uw2*)
6368 symcode='[DT]'
6369 ;;
6370sysv5* | sco5v6* | unixware* | OpenUNIX*)
6371 symcode='[ABDT]'
6372 ;;
6373sysv4)
6374 symcode='[DFNSTU]'
6375 ;;
6376esac
d15b04bd 6377
d7040cdb
SE
6378# If we're using GNU nm, then use its standard symbol codes.
6379case `$NM -V 2>&1` in
6380*GNU* | *'with BFD'*)
6381 symcode='[ABCDGIRSTW]' ;;
6382esac
e5a52504 6383
d7040cdb
SE
6384# Transform an extracted symbol line into a proper C declaration.
6385# Some systems (esp. on ia64) link data and code symbols differently,
7357c5b6
AM
6386# so use this general approach.
6387lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
d7040cdb 6388
7357c5b6 6389# Transform an extracted symbol line into symbol name and symbol address
f2c621e4
AS
6390lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6391lt_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'"
d7040cdb 6392
7357c5b6
AM
6393# Handle CRLF in mingw tool chain
6394opt_cr=
6395case $build_os in
6396mingw*)
6397 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6398 ;;
6399esac
d7040cdb 6400
7357c5b6
AM
6401# Try without a prefix underscore, then with it.
6402for ac_symprfx in "" "_"; do
d7040cdb 6403
7357c5b6
AM
6404 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6405 symxfrm="\\1 $ac_symprfx\\2 \\2"
d7040cdb 6406
7357c5b6
AM
6407 # Write the raw and C identifiers.
6408 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6409 # Fake it for dumpbin and say T for any non-static function
6410 # and D for any global variable.
6411 # Also find C++ and __fastcall symbols from MSVC++,
6412 # which start with @ or ?.
6413 lt_cv_sys_global_symbol_pipe="$AWK '"\
6414" {last_section=section; section=\$ 3};"\
6415" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6416" \$ 0!~/External *\|/{next};"\
6417" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6418" {if(hide[section]) next};"\
6419" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6420" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6421" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6422" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6423" ' prfx=^$ac_symprfx"
6424 else
6425 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6426 fi
6427
6428 # Check to see that the pipe works correctly.
6429 pipe_works=no
6430
6431 rm -f conftest*
6432 cat > conftest.$ac_ext <<_LT_EOF
6433#ifdef __cplusplus
6434extern "C" {
6435#endif
6436char nm_test_var;
6437void nm_test_func(void);
6438void nm_test_func(void){}
6439#ifdef __cplusplus
d7040cdb 6440}
7357c5b6
AM
6441#endif
6442int main(){nm_test_var='a';nm_test_func();return(0);}
6443_LT_EOF
6444
81ecdfbb 6445 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6 6446 (eval $ac_compile) 2>&5
42ecbf5e 6447 ac_status=$?
81ecdfbb
RW
6448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6449 test $ac_status = 0; }; then
7357c5b6
AM
6450 # Now try to grab the symbols.
6451 nlist=conftest.nm
3725885a
RW
6452 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6453 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
42ecbf5e 6454 ac_status=$?
81ecdfbb
RW
6455 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6456 test $ac_status = 0; } && test -s "$nlist"; then
7357c5b6
AM
6457 # Try sorting and uniquifying the output.
6458 if sort "$nlist" | uniq > "$nlist"T; then
6459 mv -f "$nlist"T "$nlist"
6460 else
6461 rm -f "$nlist"T
6462 fi
d7040cdb 6463
7357c5b6
AM
6464 # Make sure that we snagged all the symbols we need.
6465 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6466 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6467 cat <<_LT_EOF > conftest.$ac_ext
6468#ifdef __cplusplus
6469extern "C" {
6470#endif
e5a52504 6471
7357c5b6
AM
6472_LT_EOF
6473 # Now generate the symbol file.
6474 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7148cc28 6475
7357c5b6 6476 cat <<_LT_EOF >> conftest.$ac_ext
d7040cdb 6477
7357c5b6 6478/* The mapping between symbol names and symbols. */
f2c621e4 6479const struct {
7357c5b6
AM
6480 const char *name;
6481 void *address;
6482}
6483lt__PROGRAM__LTX_preloaded_symbols[] =
6484{
6485 { "@PROGRAM@", (void *) 0 },
6486_LT_EOF
6487 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6488 cat <<\_LT_EOF >> conftest.$ac_ext
6489 {0, (void *) 0}
6490};
d7040cdb 6491
7357c5b6
AM
6492/* This works around a problem in FreeBSD linker */
6493#ifdef FREEBSD_WORKAROUND
6494static const void *lt_preloaded_setup() {
6495 return lt__PROGRAM__LTX_preloaded_symbols;
6496}
d7040cdb
SE
6497#endif
6498
7357c5b6 6499#ifdef __cplusplus
d7040cdb 6500}
7357c5b6
AM
6501#endif
6502_LT_EOF
6503 # Now try linking the two files.
6504 mv conftest.$ac_objext conftstm.$ac_objext
f2c621e4
AS
6505 lt_save_LIBS="$LIBS"
6506 lt_save_CFLAGS="$CFLAGS"
7357c5b6
AM
6507 LIBS="conftstm.$ac_objext"
6508 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
81ecdfbb 6509 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
d7040cdb
SE
6510 (eval $ac_link) 2>&5
6511 ac_status=$?
81ecdfbb
RW
6512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6513 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7357c5b6
AM
6514 pipe_works=yes
6515 fi
f2c621e4
AS
6516 LIBS="$lt_save_LIBS"
6517 CFLAGS="$lt_save_CFLAGS"
7357c5b6
AM
6518 else
6519 echo "cannot find nm_test_func in $nlist" >&5
6520 fi
6521 else
6522 echo "cannot find nm_test_var in $nlist" >&5
6523 fi
6524 else
6525 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6526 fi
6527 else
6528 echo "$progname: failed program was:" >&5
6529 cat conftest.$ac_ext >&5
6530 fi
718a6fd8 6531 rm -rf conftest* conftst*
7357c5b6
AM
6532
6533 # Do not use the global_symbol_pipe unless it works.
6534 if test "$pipe_works" = yes; then
6535 break
6536 else
6537 lt_cv_sys_global_symbol_pipe=
6538 fi
6539done
d7040cdb 6540
d7040cdb 6541fi
7357c5b6
AM
6542
6543if test -z "$lt_cv_sys_global_symbol_pipe"; then
6544 lt_cv_sys_global_symbol_to_cdecl=
d7040cdb 6545fi
7357c5b6 6546if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
81ecdfbb
RW
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6548$as_echo "failed" >&6; }
7357c5b6 6549else
81ecdfbb
RW
6550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6551$as_echo "ok" >&6; }
d7040cdb 6552fi
20e95c23 6553
20e95c23 6554
20e95c23 6555
20e95c23 6556
20e95c23 6557
20e95c23 6558
20e95c23
DJ
6559
6560
7357c5b6
AM
6561
6562
6563
718a6fd8
SE
6564
6565
6566
6567
6568
7357c5b6 6569
df7b86aa
NC
6570
6571
6572
6573
7357c5b6 6574
81ecdfbb
RW
6575# Check whether --enable-libtool-lock was given.
6576if test "${enable_libtool_lock+set}" = set; then :
6577 enableval=$enable_libtool_lock;
6578fi
7357c5b6 6579
7357c5b6
AM
6580test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6581
6582# Some flags need to be propagated to the compiler or linker for good
6583# libtool support.
6584case $host in
6585ia64-*-hpux*)
6586 # Find out which ABI we are using.
6587 echo 'int i;' > conftest.$ac_ext
81ecdfbb 6588 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
6589 (eval $ac_compile) 2>&5
6590 ac_status=$?
81ecdfbb
RW
6591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6592 test $ac_status = 0; }; then
7357c5b6
AM
6593 case `/usr/bin/file conftest.$ac_objext` in
6594 *ELF-32*)
6595 HPUX_IA64_MODE="32"
6596 ;;
6597 *ELF-64*)
6598 HPUX_IA64_MODE="64"
6599 ;;
6600 esac
6601 fi
6602 rm -rf conftest*
6603 ;;
6604*-*-irix6*)
6605 # Find out which ABI we are using.
3725885a 6606 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
81ecdfbb 6607 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
6608 (eval $ac_compile) 2>&5
6609 ac_status=$?
81ecdfbb
RW
6610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6611 test $ac_status = 0; }; then
7357c5b6
AM
6612 if test "$lt_cv_prog_gnu_ld" = yes; then
6613 case `/usr/bin/file conftest.$ac_objext` in
6614 *32-bit*)
6615 LD="${LD-ld} -melf32bsmip"
6616 ;;
6617 *N32*)
6618 LD="${LD-ld} -melf32bmipn32"
6619 ;;
6620 *64-bit*)
6621 LD="${LD-ld} -melf64bmip"
6622 ;;
6623 esac
6624 else
6625 case `/usr/bin/file conftest.$ac_objext` in
6626 *32-bit*)
6627 LD="${LD-ld} -32"
6628 ;;
6629 *N32*)
6630 LD="${LD-ld} -n32"
6631 ;;
6632 *64-bit*)
6633 LD="${LD-ld} -64"
6634 ;;
6635 esac
6636 fi
6637 fi
6638 rm -rf conftest*
6639 ;;
6640
cc9afea3 6641x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7357c5b6
AM
6642s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6643 # Find out which ABI we are using.
6644 echo 'int i;' > conftest.$ac_ext
81ecdfbb 6645 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
6646 (eval $ac_compile) 2>&5
6647 ac_status=$?
81ecdfbb
RW
6648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6649 test $ac_status = 0; }; then
7357c5b6
AM
6650 case `/usr/bin/file conftest.o` in
6651 *32-bit*)
6652 case $host in
6653 x86_64-*kfreebsd*-gnu)
6654 LD="${LD-ld} -m elf_i386_fbsd"
6655 ;;
6656 x86_64-*linux*)
6d2920c8
L
6657 case `/usr/bin/file conftest.o` in
6658 *x86-64*)
6659 LD="${LD-ld} -m elf32_x86_64"
6660 ;;
6661 *)
6662 LD="${LD-ld} -m elf_i386"
6663 ;;
6664 esac
7357c5b6 6665 ;;
cc9afea3
AM
6666 powerpc64le-*linux*)
6667 LD="${LD-ld} -m elf32lppclinux"
6668 ;;
6669 powerpc64-*linux*)
7357c5b6
AM
6670 LD="${LD-ld} -m elf32ppclinux"
6671 ;;
6672 s390x-*linux*)
6673 LD="${LD-ld} -m elf_s390"
6674 ;;
6675 sparc64-*linux*)
6676 LD="${LD-ld} -m elf32_sparc"
6677 ;;
6678 esac
6679 ;;
6680 *64-bit*)
6681 case $host in
6682 x86_64-*kfreebsd*-gnu)
6683 LD="${LD-ld} -m elf_x86_64_fbsd"
6684 ;;
6685 x86_64-*linux*)
6686 LD="${LD-ld} -m elf_x86_64"
6687 ;;
cc9afea3
AM
6688 powerpcle-*linux*)
6689 LD="${LD-ld} -m elf64lppc"
6690 ;;
6691 powerpc-*linux*)
7357c5b6
AM
6692 LD="${LD-ld} -m elf64ppc"
6693 ;;
6694 s390*-*linux*|s390*-*tpf*)
6695 LD="${LD-ld} -m elf64_s390"
6696 ;;
6697 sparc*-*linux*)
6698 LD="${LD-ld} -m elf64_sparc"
6699 ;;
6700 esac
6701 ;;
6702 esac
6703 fi
6704 rm -rf conftest*
6705 ;;
6706
6707*-*-sco3.2v5*)
6708 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6709 SAVE_CFLAGS="$CFLAGS"
6710 CFLAGS="$CFLAGS -belf"
81ecdfbb
RW
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6712$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
d0ac1c44 6713if ${lt_cv_cc_needs_belf+:} false; then :
81ecdfbb 6714 $as_echo_n "(cached) " >&6
d7040cdb 6715else
7357c5b6
AM
6716 ac_ext=c
6717ac_cpp='$CPP $CPPFLAGS'
6718ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6719ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6720ac_compiler_gnu=$ac_cv_c_compiler_gnu
6721
81ecdfbb 6722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb 6723/* end confdefs.h. */
20e95c23 6724
7357c5b6
AM
6725int
6726main ()
6727{
6728
6729 ;
6730 return 0;
6731}
d7040cdb 6732_ACEOF
81ecdfbb 6733if ac_fn_c_try_link "$LINENO"; then :
7357c5b6 6734 lt_cv_cc_needs_belf=yes
d15b04bd 6735else
81ecdfbb 6736 lt_cv_cc_needs_belf=no
d7040cdb 6737fi
81ecdfbb
RW
6738rm -f core conftest.err conftest.$ac_objext \
6739 conftest$ac_exeext conftest.$ac_ext
7357c5b6
AM
6740 ac_ext=c
6741ac_cpp='$CPP $CPPFLAGS'
6742ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6743ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6744ac_compiler_gnu=$ac_cv_c_compiler_gnu
20e95c23 6745
718a6fd8 6746fi
81ecdfbb
RW
6747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6748$as_echo "$lt_cv_cc_needs_belf" >&6; }
718a6fd8
SE
6749 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6750 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6751 CFLAGS="$SAVE_CFLAGS"
6752 fi
6753 ;;
6754sparc*-*solaris*)
6755 # Find out which ABI we are using.
6756 echo 'int i;' > conftest.$ac_ext
81ecdfbb 6757 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
718a6fd8
SE
6758 (eval $ac_compile) 2>&5
6759 ac_status=$?
81ecdfbb
RW
6760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6761 test $ac_status = 0; }; then
718a6fd8
SE
6762 case `/usr/bin/file conftest.o` in
6763 *64-bit*)
6764 case $lt_cv_prog_gnu_ld in
6765 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6766 *)
6767 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6768 LD="${LD-ld} -64"
6769 fi
6770 ;;
6771 esac
6772 ;;
6773 esac
6774 fi
df7b86aa
NC
6775 rm -rf conftest*
6776 ;;
6777esac
6778
6779need_locks="$enable_libtool_lock"
6780
718a6fd8
SE
6781
6782 case $host_os in
6783 rhapsody* | darwin*)
6784 if test -n "$ac_tool_prefix"; then
6785 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6786set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
81ecdfbb
RW
6787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6788$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6789if ${ac_cv_prog_DSYMUTIL+:} false; then :
81ecdfbb 6790 $as_echo_n "(cached) " >&6
718a6fd8
SE
6791else
6792 if test -n "$DSYMUTIL"; then
6793 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6794else
6795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6796for as_dir in $PATH
6797do
6798 IFS=$as_save_IFS
6799 test -z "$as_dir" && as_dir=.
81ecdfbb 6800 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6801 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
718a6fd8 6802 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
81ecdfbb 6803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
6804 break 2
6805 fi
6806done
81ecdfbb
RW
6807 done
6808IFS=$as_save_IFS
718a6fd8
SE
6809
6810fi
6811fi
6812DSYMUTIL=$ac_cv_prog_DSYMUTIL
6813if test -n "$DSYMUTIL"; then
81ecdfbb
RW
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6815$as_echo "$DSYMUTIL" >&6; }
718a6fd8 6816else
81ecdfbb
RW
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6818$as_echo "no" >&6; }
718a6fd8
SE
6819fi
6820
81ecdfbb 6821
718a6fd8
SE
6822fi
6823if test -z "$ac_cv_prog_DSYMUTIL"; then
6824 ac_ct_DSYMUTIL=$DSYMUTIL
6825 # Extract the first word of "dsymutil", so it can be a program name with args.
6826set dummy dsymutil; ac_word=$2
81ecdfbb
RW
6827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6828$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6829if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
81ecdfbb 6830 $as_echo_n "(cached) " >&6
718a6fd8
SE
6831else
6832 if test -n "$ac_ct_DSYMUTIL"; then
6833 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6834else
6835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6836for as_dir in $PATH
6837do
6838 IFS=$as_save_IFS
6839 test -z "$as_dir" && as_dir=.
81ecdfbb 6840 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6841 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
718a6fd8 6842 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
81ecdfbb 6843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
6844 break 2
6845 fi
6846done
81ecdfbb
RW
6847 done
6848IFS=$as_save_IFS
718a6fd8 6849
718a6fd8
SE
6850fi
6851fi
6852ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6853if test -n "$ac_ct_DSYMUTIL"; then
81ecdfbb
RW
6854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6855$as_echo "$ac_ct_DSYMUTIL" >&6; }
718a6fd8 6856else
81ecdfbb
RW
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6858$as_echo "no" >&6; }
718a6fd8
SE
6859fi
6860
81ecdfbb
RW
6861 if test "x$ac_ct_DSYMUTIL" = x; then
6862 DSYMUTIL=":"
6863 else
6864 case $cross_compiling:$ac_tool_warned in
6865yes:)
6866{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6867$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6868ac_tool_warned=yes ;;
6869esac
6870 DSYMUTIL=$ac_ct_DSYMUTIL
6871 fi
718a6fd8
SE
6872else
6873 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6874fi
6875
6876 if test -n "$ac_tool_prefix"; then
6877 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6878set dummy ${ac_tool_prefix}nmedit; ac_word=$2
81ecdfbb
RW
6879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6880$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6881if ${ac_cv_prog_NMEDIT+:} false; then :
81ecdfbb 6882 $as_echo_n "(cached) " >&6
718a6fd8
SE
6883else
6884 if test -n "$NMEDIT"; then
6885 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6886else
6887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6888for as_dir in $PATH
6889do
6890 IFS=$as_save_IFS
6891 test -z "$as_dir" && as_dir=.
81ecdfbb 6892 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6893 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
718a6fd8 6894 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
81ecdfbb 6895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
6896 break 2
6897 fi
6898done
81ecdfbb
RW
6899 done
6900IFS=$as_save_IFS
718a6fd8
SE
6901
6902fi
6903fi
6904NMEDIT=$ac_cv_prog_NMEDIT
6905if test -n "$NMEDIT"; then
81ecdfbb
RW
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6907$as_echo "$NMEDIT" >&6; }
718a6fd8 6908else
81ecdfbb
RW
6909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6910$as_echo "no" >&6; }
718a6fd8
SE
6911fi
6912
81ecdfbb 6913
718a6fd8
SE
6914fi
6915if test -z "$ac_cv_prog_NMEDIT"; then
6916 ac_ct_NMEDIT=$NMEDIT
6917 # Extract the first word of "nmedit", so it can be a program name with args.
6918set dummy nmedit; ac_word=$2
81ecdfbb
RW
6919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6920$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6921if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
81ecdfbb 6922 $as_echo_n "(cached) " >&6
718a6fd8
SE
6923else
6924 if test -n "$ac_ct_NMEDIT"; then
6925 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6926else
6927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6928for as_dir in $PATH
6929do
6930 IFS=$as_save_IFS
6931 test -z "$as_dir" && as_dir=.
81ecdfbb 6932 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6933 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
718a6fd8 6934 ac_cv_prog_ac_ct_NMEDIT="nmedit"
81ecdfbb 6935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
6936 break 2
6937 fi
6938done
81ecdfbb
RW
6939 done
6940IFS=$as_save_IFS
718a6fd8 6941
718a6fd8
SE
6942fi
6943fi
6944ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6945if test -n "$ac_ct_NMEDIT"; then
81ecdfbb
RW
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6947$as_echo "$ac_ct_NMEDIT" >&6; }
718a6fd8 6948else
81ecdfbb
RW
6949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6950$as_echo "no" >&6; }
718a6fd8
SE
6951fi
6952
81ecdfbb
RW
6953 if test "x$ac_ct_NMEDIT" = x; then
6954 NMEDIT=":"
6955 else
6956 case $cross_compiling:$ac_tool_warned in
6957yes:)
6958{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6959$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6960ac_tool_warned=yes ;;
6961esac
6962 NMEDIT=$ac_ct_NMEDIT
6963 fi
718a6fd8
SE
6964else
6965 NMEDIT="$ac_cv_prog_NMEDIT"
6966fi
6967
6968 if test -n "$ac_tool_prefix"; then
6969 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6970set dummy ${ac_tool_prefix}lipo; ac_word=$2
81ecdfbb
RW
6971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6972$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6973if ${ac_cv_prog_LIPO+:} false; then :
81ecdfbb 6974 $as_echo_n "(cached) " >&6
718a6fd8
SE
6975else
6976 if test -n "$LIPO"; then
6977 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6978else
6979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6980for as_dir in $PATH
6981do
6982 IFS=$as_save_IFS
6983 test -z "$as_dir" && as_dir=.
81ecdfbb 6984 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6985 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
718a6fd8 6986 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
81ecdfbb 6987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
6988 break 2
6989 fi
6990done
81ecdfbb
RW
6991 done
6992IFS=$as_save_IFS
718a6fd8
SE
6993
6994fi
6995fi
6996LIPO=$ac_cv_prog_LIPO
6997if test -n "$LIPO"; then
81ecdfbb
RW
6998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6999$as_echo "$LIPO" >&6; }
718a6fd8 7000else
81ecdfbb
RW
7001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7002$as_echo "no" >&6; }
718a6fd8
SE
7003fi
7004
81ecdfbb 7005
718a6fd8
SE
7006fi
7007if test -z "$ac_cv_prog_LIPO"; then
7008 ac_ct_LIPO=$LIPO
7009 # Extract the first word of "lipo", so it can be a program name with args.
7010set dummy lipo; ac_word=$2
81ecdfbb
RW
7011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7012$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7013if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
81ecdfbb 7014 $as_echo_n "(cached) " >&6
718a6fd8
SE
7015else
7016 if test -n "$ac_ct_LIPO"; then
7017 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7018else
7019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7020for as_dir in $PATH
7021do
7022 IFS=$as_save_IFS
7023 test -z "$as_dir" && as_dir=.
81ecdfbb 7024 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7025 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
718a6fd8 7026 ac_cv_prog_ac_ct_LIPO="lipo"
81ecdfbb 7027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7028 break 2
7029 fi
7030done
81ecdfbb
RW
7031 done
7032IFS=$as_save_IFS
718a6fd8 7033
718a6fd8
SE
7034fi
7035fi
7036ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7037if test -n "$ac_ct_LIPO"; then
81ecdfbb
RW
7038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7039$as_echo "$ac_ct_LIPO" >&6; }
718a6fd8 7040else
81ecdfbb
RW
7041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7042$as_echo "no" >&6; }
718a6fd8
SE
7043fi
7044
81ecdfbb
RW
7045 if test "x$ac_ct_LIPO" = x; then
7046 LIPO=":"
7047 else
7048 case $cross_compiling:$ac_tool_warned in
7049yes:)
7050{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7051$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7052ac_tool_warned=yes ;;
7053esac
7054 LIPO=$ac_ct_LIPO
7055 fi
718a6fd8
SE
7056else
7057 LIPO="$ac_cv_prog_LIPO"
7058fi
7059
7060 if test -n "$ac_tool_prefix"; then
7061 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7062set dummy ${ac_tool_prefix}otool; ac_word=$2
81ecdfbb
RW
7063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7064$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7065if ${ac_cv_prog_OTOOL+:} false; then :
81ecdfbb 7066 $as_echo_n "(cached) " >&6
718a6fd8
SE
7067else
7068 if test -n "$OTOOL"; then
7069 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7070else
7071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7072for as_dir in $PATH
7073do
7074 IFS=$as_save_IFS
7075 test -z "$as_dir" && as_dir=.
81ecdfbb 7076 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
718a6fd8 7078 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
81ecdfbb 7079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7080 break 2
7081 fi
7082done
81ecdfbb
RW
7083 done
7084IFS=$as_save_IFS
718a6fd8
SE
7085
7086fi
7087fi
7088OTOOL=$ac_cv_prog_OTOOL
7089if test -n "$OTOOL"; then
81ecdfbb
RW
7090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7091$as_echo "$OTOOL" >&6; }
718a6fd8 7092else
81ecdfbb
RW
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7094$as_echo "no" >&6; }
718a6fd8
SE
7095fi
7096
81ecdfbb 7097
718a6fd8
SE
7098fi
7099if test -z "$ac_cv_prog_OTOOL"; then
7100 ac_ct_OTOOL=$OTOOL
7101 # Extract the first word of "otool", so it can be a program name with args.
7102set dummy otool; ac_word=$2
81ecdfbb
RW
7103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7104$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7105if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
81ecdfbb 7106 $as_echo_n "(cached) " >&6
718a6fd8
SE
7107else
7108 if test -n "$ac_ct_OTOOL"; then
7109 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7110else
7111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7112for as_dir in $PATH
7113do
7114 IFS=$as_save_IFS
7115 test -z "$as_dir" && as_dir=.
81ecdfbb 7116 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7117 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
718a6fd8 7118 ac_cv_prog_ac_ct_OTOOL="otool"
81ecdfbb 7119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7120 break 2
7121 fi
7122done
81ecdfbb
RW
7123 done
7124IFS=$as_save_IFS
718a6fd8 7125
718a6fd8
SE
7126fi
7127fi
7128ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7129if test -n "$ac_ct_OTOOL"; then
81ecdfbb
RW
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7131$as_echo "$ac_ct_OTOOL" >&6; }
718a6fd8 7132else
81ecdfbb
RW
7133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7134$as_echo "no" >&6; }
718a6fd8
SE
7135fi
7136
81ecdfbb
RW
7137 if test "x$ac_ct_OTOOL" = x; then
7138 OTOOL=":"
7139 else
7140 case $cross_compiling:$ac_tool_warned in
7141yes:)
7142{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7143$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7144ac_tool_warned=yes ;;
7145esac
7146 OTOOL=$ac_ct_OTOOL
7147 fi
718a6fd8
SE
7148else
7149 OTOOL="$ac_cv_prog_OTOOL"
7150fi
7151
7152 if test -n "$ac_tool_prefix"; then
7153 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7154set dummy ${ac_tool_prefix}otool64; ac_word=$2
81ecdfbb
RW
7155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7156$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7157if ${ac_cv_prog_OTOOL64+:} false; then :
81ecdfbb 7158 $as_echo_n "(cached) " >&6
718a6fd8
SE
7159else
7160 if test -n "$OTOOL64"; then
7161 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7162else
7163as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7164for as_dir in $PATH
7165do
7166 IFS=$as_save_IFS
7167 test -z "$as_dir" && as_dir=.
81ecdfbb 7168 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7169 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
718a6fd8 7170 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
81ecdfbb 7171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7172 break 2
7173 fi
7174done
81ecdfbb
RW
7175 done
7176IFS=$as_save_IFS
718a6fd8
SE
7177
7178fi
7179fi
7180OTOOL64=$ac_cv_prog_OTOOL64
7181if test -n "$OTOOL64"; then
81ecdfbb
RW
7182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7183$as_echo "$OTOOL64" >&6; }
718a6fd8 7184else
81ecdfbb
RW
7185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7186$as_echo "no" >&6; }
718a6fd8
SE
7187fi
7188
81ecdfbb 7189
718a6fd8
SE
7190fi
7191if test -z "$ac_cv_prog_OTOOL64"; then
7192 ac_ct_OTOOL64=$OTOOL64
7193 # Extract the first word of "otool64", so it can be a program name with args.
7194set dummy otool64; ac_word=$2
81ecdfbb
RW
7195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7196$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7197if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
81ecdfbb 7198 $as_echo_n "(cached) " >&6
718a6fd8
SE
7199else
7200 if test -n "$ac_ct_OTOOL64"; then
7201 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7202else
7203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7204for as_dir in $PATH
7205do
7206 IFS=$as_save_IFS
7207 test -z "$as_dir" && as_dir=.
81ecdfbb 7208 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7209 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
718a6fd8 7210 ac_cv_prog_ac_ct_OTOOL64="otool64"
81ecdfbb 7211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7212 break 2
7213 fi
7214done
81ecdfbb
RW
7215 done
7216IFS=$as_save_IFS
718a6fd8 7217
718a6fd8
SE
7218fi
7219fi
7220ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7221if test -n "$ac_ct_OTOOL64"; then
81ecdfbb
RW
7222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7223$as_echo "$ac_ct_OTOOL64" >&6; }
718a6fd8 7224else
81ecdfbb
RW
7225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7226$as_echo "no" >&6; }
718a6fd8
SE
7227fi
7228
81ecdfbb
RW
7229 if test "x$ac_ct_OTOOL64" = x; then
7230 OTOOL64=":"
7231 else
7232 case $cross_compiling:$ac_tool_warned in
7233yes:)
7234{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7235$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7236ac_tool_warned=yes ;;
7237esac
7238 OTOOL64=$ac_ct_OTOOL64
7239 fi
718a6fd8
SE
7240else
7241 OTOOL64="$ac_cv_prog_OTOOL64"
7242fi
7243
7244
7245
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269
81ecdfbb
RW
7270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7271$as_echo_n "checking for -single_module linker flag... " >&6; }
d0ac1c44 7272if ${lt_cv_apple_cc_single_mod+:} false; then :
81ecdfbb 7273 $as_echo_n "(cached) " >&6
718a6fd8
SE
7274else
7275 lt_cv_apple_cc_single_mod=no
7276 if test -z "${LT_MULTI_MODULE}"; then
7277 # By default we will add the -single_module flag. You can override
7278 # by either setting the environment variable LT_MULTI_MODULE
7279 # non-empty at configure time, or by adding -multi_module to the
7280 # link flags.
7281 rm -rf libconftest.dylib*
7282 echo "int foo(void){return 1;}" > conftest.c
7283 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7284-dynamiclib -Wl,-single_module conftest.c" >&5
7285 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7286 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7287 _lt_result=$?
7288 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7289 lt_cv_apple_cc_single_mod=yes
7290 else
7291 cat conftest.err >&5
7292 fi
7293 rm -rf libconftest.dylib*
7294 rm -f conftest.*
7295 fi
7296fi
81ecdfbb
RW
7297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7298$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7300$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
d0ac1c44 7301if ${lt_cv_ld_exported_symbols_list+:} false; then :
81ecdfbb 7302 $as_echo_n "(cached) " >&6
718a6fd8
SE
7303else
7304 lt_cv_ld_exported_symbols_list=no
7305 save_LDFLAGS=$LDFLAGS
7306 echo "_main" > conftest.sym
7307 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
81ecdfbb 7308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
718a6fd8
SE
7309/* end confdefs.h. */
7310
7311int
7312main ()
7313{
7314
7315 ;
7316 return 0;
7317}
7318_ACEOF
81ecdfbb 7319if ac_fn_c_try_link "$LINENO"; then :
718a6fd8
SE
7320 lt_cv_ld_exported_symbols_list=yes
7321else
81ecdfbb 7322 lt_cv_ld_exported_symbols_list=no
718a6fd8 7323fi
81ecdfbb
RW
7324rm -f core conftest.err conftest.$ac_objext \
7325 conftest$ac_exeext conftest.$ac_ext
718a6fd8
SE
7326 LDFLAGS="$save_LDFLAGS"
7327
7328fi
81ecdfbb
RW
7329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7330$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
3725885a
RW
7331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7332$as_echo_n "checking for -force_load linker flag... " >&6; }
d0ac1c44 7333if ${lt_cv_ld_force_load+:} false; then :
3725885a
RW
7334 $as_echo_n "(cached) " >&6
7335else
7336 lt_cv_ld_force_load=no
7337 cat > conftest.c << _LT_EOF
7338int forced_loaded() { return 2;}
7339_LT_EOF
7340 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7341 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7342 echo "$AR cru libconftest.a conftest.o" >&5
7343 $AR cru libconftest.a conftest.o 2>&5
7344 cat > conftest.c << _LT_EOF
7345int main() { return 0;}
7346_LT_EOF
7347 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7348 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7349 _lt_result=$?
7350 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7351 lt_cv_ld_force_load=yes
7352 else
7353 cat conftest.err >&5
7354 fi
7355 rm -f conftest.err libconftest.a conftest conftest.c
7356 rm -rf conftest.dSYM
7357
7358fi
7359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7360$as_echo "$lt_cv_ld_force_load" >&6; }
718a6fd8
SE
7361 case $host_os in
7362 rhapsody* | darwin1.[012])
7363 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7364 darwin1.*)
7365 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7366 darwin*) # darwin 5.x on
7367 # if running on 10.5 or later, the deployment target defaults
7368 # to the OS version, if on x86, and 10.4, the deployment
7369 # target defaults to 10.4. Don't you love it?
7370 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7371 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7372 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6e733cce 7373 10.[012][,.]*)
718a6fd8
SE
7374 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7375 10.*)
7376 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7377 esac
7378 ;;
7379 esac
7380 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7381 _lt_dar_single_mod='$single_module'
7382 fi
7383 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7384 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7385 else
7386 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7387 fi
3725885a 7388 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
718a6fd8
SE
7389 _lt_dsymutil='~$DSYMUTIL $lib || :'
7390 else
7391 _lt_dsymutil=
7392 fi
7393 ;;
7394 esac
7395
718a6fd8 7396for ac_header in dlfcn.h
81ecdfbb
RW
7397do :
7398 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7399"
d0ac1c44 7400if test "x$ac_cv_header_dlfcn_h" = xyes; then :
718a6fd8 7401 cat >>confdefs.h <<_ACEOF
81ecdfbb 7402#define HAVE_DLFCN_H 1
718a6fd8
SE
7403_ACEOF
7404
7405fi
7406
7407done
7408
7409
7410
3725885a
RW
7411
7412
718a6fd8
SE
7413# Set options
7414
7415
7416
7417 enable_dlopen=no
7418
7419
7420 enable_win32_dll=no
7421
7422
81ecdfbb
RW
7423 # Check whether --enable-shared was given.
7424if test "${enable_shared+set}" = set; then :
7425 enableval=$enable_shared; p=${PACKAGE-default}
718a6fd8
SE
7426 case $enableval in
7427 yes) enable_shared=yes ;;
7428 no) enable_shared=no ;;
7429 *)
7430 enable_shared=no
7431 # Look at the argument we got. We use all the common list separators.
7432 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7433 for pkg in $enableval; do
7434 IFS="$lt_save_ifs"
7435 if test "X$pkg" = "X$p"; then
7436 enable_shared=yes
7437 fi
7438 done
7439 IFS="$lt_save_ifs"
7440 ;;
7441 esac
7442else
7443 enable_shared=yes
81ecdfbb 7444fi
718a6fd8
SE
7445
7446
7447
7448
7449
7450
7451
7452
81ecdfbb
RW
7453
7454 # Check whether --enable-static was given.
7455if test "${enable_static+set}" = set; then :
7456 enableval=$enable_static; p=${PACKAGE-default}
718a6fd8
SE
7457 case $enableval in
7458 yes) enable_static=yes ;;
7459 no) enable_static=no ;;
7460 *)
7461 enable_static=no
7462 # Look at the argument we got. We use all the common list separators.
7463 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7464 for pkg in $enableval; do
7465 IFS="$lt_save_ifs"
7466 if test "X$pkg" = "X$p"; then
7467 enable_static=yes
7468 fi
7469 done
7470 IFS="$lt_save_ifs"
7471 ;;
7472 esac
7473else
7474 enable_static=yes
81ecdfbb 7475fi
718a6fd8
SE
7476
7477
7478
7479
7480
7481
7482
7483
7484
81ecdfbb
RW
7485
7486# Check whether --with-pic was given.
7487if test "${with_pic+set}" = set; then :
7488 withval=$with_pic; pic_mode="$withval"
718a6fd8
SE
7489else
7490 pic_mode=default
81ecdfbb
RW
7491fi
7492
718a6fd8
SE
7493
7494test -z "$pic_mode" && pic_mode=default
7495
7496
7497
7498
7499
7500
7501
81ecdfbb
RW
7502 # Check whether --enable-fast-install was given.
7503if test "${enable_fast_install+set}" = set; then :
7504 enableval=$enable_fast_install; p=${PACKAGE-default}
718a6fd8
SE
7505 case $enableval in
7506 yes) enable_fast_install=yes ;;
7507 no) enable_fast_install=no ;;
7508 *)
7509 enable_fast_install=no
7510 # Look at the argument we got. We use all the common list separators.
7511 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7512 for pkg in $enableval; do
7513 IFS="$lt_save_ifs"
7514 if test "X$pkg" = "X$p"; then
7515 enable_fast_install=yes
7516 fi
7517 done
7518 IFS="$lt_save_ifs"
7357c5b6
AM
7519 ;;
7520 esac
718a6fd8
SE
7521else
7522 enable_fast_install=yes
81ecdfbb
RW
7523fi
7524
20e95c23 7525
20e95c23
DJ
7526
7527
42ecbf5e 7528
d7040cdb 7529
20e95c23 7530
d7040cdb 7531
d7040cdb
SE
7532
7533
7534
7535# This can be used to rebuild libtool when needed
7536LIBTOOL_DEPS="$ltmain"
7537
7538# Always use our own libtool.
7539LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
3725885a 7563
d7040cdb
SE
7564
7565
7566test -z "$LN_S" && LN_S="ln -s"
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581if test -n "${ZSH_VERSION+set}" ; then
7582 setopt NO_GLOB_SUBST
7583fi
7584
81ecdfbb
RW
7585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7586$as_echo_n "checking for objdir... " >&6; }
d0ac1c44 7587if ${lt_cv_objdir+:} false; then :
81ecdfbb 7588 $as_echo_n "(cached) " >&6
20e95c23 7589else
d7040cdb
SE
7590 rm -f .libs 2>/dev/null
7591mkdir .libs 2>/dev/null
7592if test -d .libs; then
7593 lt_cv_objdir=.libs
42ecbf5e 7594else
d7040cdb
SE
7595 # MS-DOS does not allow filenames that begin with a dot.
7596 lt_cv_objdir=_libs
7597fi
7598rmdir .libs 2>/dev/null
42ecbf5e 7599fi
81ecdfbb
RW
7600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7601$as_echo "$lt_cv_objdir" >&6; }
d7040cdb 7602objdir=$lt_cv_objdir
42ecbf5e 7603
d7040cdb
SE
7604
7605
7606
7607
7608cat >>confdefs.h <<_ACEOF
7609#define LT_OBJDIR "$lt_cv_objdir/"
7610_ACEOF
7611
7612
7613
7614
d7040cdb
SE
7615case $host_os in
7616aix3*)
7617 # AIX sometimes has problems with the GCC collect2 program. For some
7618 # reason, if we set the COLLECT_NAMES environment variable, the problems
7619 # vanish in a puff of smoke.
7620 if test "X${COLLECT_NAMES+set}" != Xset; then
7621 COLLECT_NAMES=
7622 export COLLECT_NAMES
7623 fi
7624 ;;
7625esac
7626
d7040cdb
SE
7627# Global variables:
7628ofile=libtool
7629can_build_shared=yes
7630
7631# All known linkers require a `.a' archive for static linking (except MSVC,
7632# which needs '.lib').
7633libext=a
7634
7635with_gnu_ld="$lt_cv_prog_gnu_ld"
7636
7637old_CC="$CC"
7638old_CFLAGS="$CFLAGS"
7639
7640# Set sane defaults for various variables
7641test -z "$CC" && CC=cc
7642test -z "$LTCC" && LTCC=$CC
7643test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7644test -z "$LD" && LD=ld
7645test -z "$ac_objext" && ac_objext=o
7646
7647for cc_temp in $compiler""; do
7648 case $cc_temp in
7649 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7650 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7651 \-*) ;;
7652 *) break;;
7653 esac
7654done
3725885a 7655cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
d7040cdb
SE
7656
7657
7658# Only perform the check for file, if the check method requires it
7659test -z "$MAGIC_CMD" && MAGIC_CMD=file
7660case $deplibs_check_method in
7661file_magic*)
7662 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
81ecdfbb
RW
7663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7664$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
d0ac1c44 7665if ${lt_cv_path_MAGIC_CMD+:} false; then :
81ecdfbb 7666 $as_echo_n "(cached) " >&6
42ecbf5e 7667else
d7040cdb
SE
7668 case $MAGIC_CMD in
7669[\\/*] | ?:[\\/]*)
7670 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
20e95c23 7671 ;;
d7040cdb
SE
7672*)
7673 lt_save_MAGIC_CMD="$MAGIC_CMD"
7674 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7675 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7676 for ac_dir in $ac_dummy; do
7677 IFS="$lt_save_ifs"
7678 test -z "$ac_dir" && ac_dir=.
7679 if test -f $ac_dir/${ac_tool_prefix}file; then
7680 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7681 if test -n "$file_magic_test_file"; then
7682 case $deplibs_check_method in
7683 "file_magic "*)
7684 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7685 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7686 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7687 $EGREP "$file_magic_regex" > /dev/null; then
7688 :
7689 else
7690 cat <<_LT_EOF 1>&2
42ecbf5e 7691
d7040cdb
SE
7692*** Warning: the command libtool uses to detect shared libraries,
7693*** $file_magic_cmd, produces output that libtool cannot recognize.
7694*** The result is that libtool may fail to recognize shared libraries
7695*** as such. This will affect the creation of libtool libraries that
7696*** depend on shared libraries, but programs linked with such libtool
7697*** libraries will work regardless of this problem. Nevertheless, you
7698*** may want to report the problem to your system manager and/or to
7699*** bug-libtool@gnu.org
7700
7701_LT_EOF
7702 fi ;;
7703 esac
7704 fi
7705 break
7706 fi
7707 done
7708 IFS="$lt_save_ifs"
7709 MAGIC_CMD="$lt_save_MAGIC_CMD"
20e95c23
DJ
7710 ;;
7711esac
42ecbf5e 7712fi
20e95c23 7713
d7040cdb
SE
7714MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7715if test -n "$MAGIC_CMD"; then
81ecdfbb
RW
7716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7717$as_echo "$MAGIC_CMD" >&6; }
42ecbf5e 7718else
81ecdfbb
RW
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7720$as_echo "no" >&6; }
42ecbf5e
DJ
7721fi
7722
20e95c23
DJ
7723
7724
42ecbf5e 7725
20e95c23 7726
d7040cdb
SE
7727if test -z "$lt_cv_path_MAGIC_CMD"; then
7728 if test -n "$ac_tool_prefix"; then
81ecdfbb
RW
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7730$as_echo_n "checking for file... " >&6; }
d0ac1c44 7731if ${lt_cv_path_MAGIC_CMD+:} false; then :
81ecdfbb 7732 $as_echo_n "(cached) " >&6
42ecbf5e 7733else
d7040cdb
SE
7734 case $MAGIC_CMD in
7735[\\/*] | ?:[\\/]*)
7736 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7737 ;;
7738*)
7739 lt_save_MAGIC_CMD="$MAGIC_CMD"
7740 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7741 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7742 for ac_dir in $ac_dummy; do
7743 IFS="$lt_save_ifs"
7744 test -z "$ac_dir" && ac_dir=.
7745 if test -f $ac_dir/file; then
7746 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7747 if test -n "$file_magic_test_file"; then
7748 case $deplibs_check_method in
7749 "file_magic "*)
7750 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7751 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7752 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7753 $EGREP "$file_magic_regex" > /dev/null; then
7754 :
7755 else
7756 cat <<_LT_EOF 1>&2
7757
7758*** Warning: the command libtool uses to detect shared libraries,
7759*** $file_magic_cmd, produces output that libtool cannot recognize.
7760*** The result is that libtool may fail to recognize shared libraries
7761*** as such. This will affect the creation of libtool libraries that
7762*** depend on shared libraries, but programs linked with such libtool
7763*** libraries will work regardless of this problem. Nevertheless, you
7764*** may want to report the problem to your system manager and/or to
7765*** bug-libtool@gnu.org
7766
7767_LT_EOF
7768 fi ;;
7769 esac
7770 fi
7771 break
7772 fi
7773 done
7774 IFS="$lt_save_ifs"
7775 MAGIC_CMD="$lt_save_MAGIC_CMD"
7776 ;;
20e95c23
DJ
7777esac
7778fi
d7040cdb
SE
7779
7780MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7781if test -n "$MAGIC_CMD"; then
81ecdfbb
RW
7782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7783$as_echo "$MAGIC_CMD" >&6; }
20e95c23 7784else
81ecdfbb
RW
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7786$as_echo "no" >&6; }
20e95c23
DJ
7787fi
7788
20e95c23 7789
42ecbf5e 7790 else
d7040cdb 7791 MAGIC_CMD=:
42ecbf5e 7792 fi
42ecbf5e 7793fi
42ecbf5e 7794
20e95c23 7795 fi
d7040cdb
SE
7796 ;;
7797esac
42ecbf5e 7798
d7040cdb 7799# Use C for the default configuration in the libtool script
42ecbf5e 7800
d7040cdb
SE
7801lt_save_CC="$CC"
7802ac_ext=c
7803ac_cpp='$CPP $CPPFLAGS'
7804ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7805ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7806ac_compiler_gnu=$ac_cv_c_compiler_gnu
42ecbf5e 7807
42ecbf5e 7808
d7040cdb
SE
7809# Source file extension for C test sources.
7810ac_ext=c
42ecbf5e 7811
d7040cdb
SE
7812# Object file extension for compiled C test sources.
7813objext=o
7814objext=$objext
42ecbf5e 7815
d7040cdb
SE
7816# Code to be used in simple compile tests
7817lt_simple_compile_test_code="int some_variable = 0;"
42ecbf5e 7818
d7040cdb
SE
7819# Code to be used in simple link tests
7820lt_simple_link_test_code='int main(){return(0);}'
42ecbf5e 7821
ac48eca1 7822
42ecbf5e 7823
42ecbf5e 7824
d5fbea21 7825
d5fbea21
DJ
7826
7827
d7040cdb
SE
7828# If no C compiler was specified, use CC.
7829LTCC=${LTCC-"$CC"}
20e95c23 7830
d7040cdb
SE
7831# If no C compiler flags were specified, use CFLAGS.
7832LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
42ecbf5e 7833
d7040cdb
SE
7834# Allow CC to be a program name with arguments.
7835compiler=$CC
252b5132 7836
d7040cdb
SE
7837# Save the default compiler, since it gets overwritten when the other
7838# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7839compiler_DEFAULT=$CC
42ecbf5e 7840
d7040cdb
SE
7841# save warnings/boilerplate of simple test code
7842ac_outfile=conftest.$ac_objext
7843echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7844eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7845_lt_compiler_boilerplate=`cat conftest.err`
7846$RM conftest*
252b5132 7847
d7040cdb
SE
7848ac_outfile=conftest.$ac_objext
7849echo "$lt_simple_link_test_code" >conftest.$ac_ext
7850eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7851_lt_linker_boilerplate=`cat conftest.err`
718a6fd8 7852$RM -r conftest*
252b5132 7853
42ecbf5e 7854
f2c621e4
AS
7855## CAVEAT EMPTOR:
7856## There is no encapsulation within the following macros, do not change
7857## the running order or otherwise move them around unless you know exactly
7858## what you are doing...
d7040cdb 7859if test -n "$compiler"; then
252b5132 7860
d7040cdb 7861lt_prog_compiler_no_builtin_flag=
252b5132 7862
d7040cdb 7863if test "$GCC" = yes; then
3725885a
RW
7864 case $cc_basename in
7865 nvcc*)
7866 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7867 *)
7868 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7869 esac
d15b04bd 7870
81ecdfbb
RW
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7872$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
d0ac1c44 7873if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
81ecdfbb 7874 $as_echo_n "(cached) " >&6
252b5132 7875else
d7040cdb
SE
7876 lt_cv_prog_compiler_rtti_exceptions=no
7877 ac_outfile=conftest.$ac_objext
7878 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7879 lt_compiler_flag="-fno-rtti -fno-exceptions"
7880 # Insert the option either (1) after the last *FLAGS variable, or
7881 # (2) before a word containing "conftest.", or (3) at the end.
7882 # Note that $ac_compile itself does not contain backslashes and begins
7883 # with a dollar sign (not a hyphen), so the echo should work correctly.
7884 # The option is referenced via a variable to avoid confusing sed.
7885 lt_compile=`echo "$ac_compile" | $SED \
7886 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7887 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7888 -e 's:$: $lt_compiler_flag:'`
3725885a 7889 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
d7040cdb
SE
7890 (eval "$lt_compile" 2>conftest.err)
7891 ac_status=$?
7892 cat conftest.err >&5
3725885a 7893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb
SE
7894 if (exit $ac_status) && test -s "$ac_outfile"; then
7895 # The compiler can only warn and ignore the option if not recognized
7896 # So say no if there are warnings other than the usual output.
3725885a 7897 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
d7040cdb
SE
7898 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7899 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7900 lt_cv_prog_compiler_rtti_exceptions=yes
7901 fi
7902 fi
7903 $RM conftest*
42ecbf5e 7904
252b5132 7905fi
81ecdfbb
RW
7906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7907$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
d7040cdb
SE
7908
7909if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7910 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
20e95c23 7911else
d7040cdb 7912 :
252b5132 7913fi
252b5132
RH
7914
7915fi
d7040cdb
SE
7916
7917
7918
7919
7920
7921
7922 lt_prog_compiler_wl=
7923lt_prog_compiler_pic=
7924lt_prog_compiler_static=
7925
f2c621e4
AS
7926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7927$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
d7040cdb
SE
7928
7929 if test "$GCC" = yes; then
7930 lt_prog_compiler_wl='-Wl,'
7931 lt_prog_compiler_static='-static'
7932
7933 case $host_os in
7934 aix*)
7935 # All AIX code is PIC.
7936 if test "$host_cpu" = ia64; then
7937 # AIX 5 now supports IA64 processor
7938 lt_prog_compiler_static='-Bstatic'
7939 fi
6c9c0a50 7940 lt_prog_compiler_pic='-fPIC'
d7040cdb
SE
7941 ;;
7942
7943 amigaos*)
718a6fd8
SE
7944 case $host_cpu in
7945 powerpc)
7946 # see comment about AmigaOS4 .so support
7947 lt_prog_compiler_pic='-fPIC'
7948 ;;
7949 m68k)
7950 # FIXME: we need at least 68020 code to build shared libraries, but
7951 # adding the `-m68020' flag to GCC prevents building anything better,
7952 # like `-m68040'.
7953 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7954 ;;
7955 esac
d7040cdb
SE
7956 ;;
7957
7958 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7959 # PIC is the default for these OSes.
7960 ;;
7961
718a6fd8 7962 mingw* | cygwin* | pw32* | os2* | cegcc*)
d7040cdb
SE
7963 # This hack is so that the source file can tell whether it is being
7964 # built for inclusion in a dll (and should export symbols for example).
7965 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7966 # (--disable-auto-import) libraries
7967 lt_prog_compiler_pic='-DDLL_EXPORT'
7968 ;;
7969
7970 darwin* | rhapsody*)
7971 # PIC is the default on this platform
7972 # Common symbols not allowed in MH_DYLIB files
7973 lt_prog_compiler_pic='-fno-common'
7974 ;;
7975
3725885a
RW
7976 haiku*)
7977 # PIC is the default for Haiku.
7978 # The "-static" flag exists, but is broken.
7979 lt_prog_compiler_static=
7980 ;;
7981
d7040cdb 7982 hpux*)
718a6fd8
SE
7983 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7984 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7985 # sets the default TLS model and affects inlining.
d7040cdb 7986 case $host_cpu in
718a6fd8 7987 hppa*64*)
d7040cdb
SE
7988 # +Z the default
7989 ;;
7990 *)
7991 lt_prog_compiler_pic='-fPIC'
7992 ;;
7993 esac
7994 ;;
7995
7996 interix[3-9]*)
7997 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7998 # Instead, we relocate shared libraries at runtime.
7999 ;;
8000
8001 msdosdjgpp*)
8002 # Just because we use GCC doesn't mean we suddenly get shared libraries
8003 # on systems that don't support them.
8004 lt_prog_compiler_can_build_shared=no
8005 enable_shared=no
8006 ;;
8007
8008 *nto* | *qnx*)
8009 # QNX uses GNU C++, but need to define -shared option too, otherwise
8010 # it will coredump.
8011 lt_prog_compiler_pic='-fPIC -shared'
8012 ;;
8013
8014 sysv4*MP*)
8015 if test -d /usr/nec; then
8016 lt_prog_compiler_pic=-Kconform_pic
8017 fi
8018 ;;
8019
8020 *)
8021 lt_prog_compiler_pic='-fPIC'
8022 ;;
8023 esac
3725885a
RW
8024
8025 case $cc_basename in
8026 nvcc*) # Cuda Compiler Driver 2.2
8027 lt_prog_compiler_wl='-Xlinker '
8028 lt_prog_compiler_pic='-Xcompiler -fPIC'
8029 ;;
8030 esac
d7040cdb
SE
8031 else
8032 # PORTME Check for flag to pass linker flags through the system compiler.
8033 case $host_os in
8034 aix*)
8035 lt_prog_compiler_wl='-Wl,'
8036 if test "$host_cpu" = ia64; then
8037 # AIX 5 now supports IA64 processor
8038 lt_prog_compiler_static='-Bstatic'
8039 else
8040 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8041 fi
8042 ;;
d7040cdb 8043
718a6fd8 8044 mingw* | cygwin* | pw32* | os2* | cegcc*)
d7040cdb
SE
8045 # This hack is so that the source file can tell whether it is being
8046 # built for inclusion in a dll (and should export symbols for example).
8047 lt_prog_compiler_pic='-DDLL_EXPORT'
8048 ;;
8049
8050 hpux9* | hpux10* | hpux11*)
8051 lt_prog_compiler_wl='-Wl,'
8052 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8053 # not for PA HP-UX.
8054 case $host_cpu in
8055 hppa*64*|ia64*)
8056 # +Z the default
8057 ;;
8058 *)
8059 lt_prog_compiler_pic='+Z'
8060 ;;
8061 esac
8062 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8063 lt_prog_compiler_static='${wl}-a ${wl}archive'
8064 ;;
8065
8066 irix5* | irix6* | nonstopux*)
8067 lt_prog_compiler_wl='-Wl,'
8068 # PIC (with -KPIC) is the default.
8069 lt_prog_compiler_static='-non_shared'
8070 ;;
8071
58e24671 8072 linux* | k*bsd*-gnu | kopensolaris*-gnu)
d7040cdb 8073 case $cc_basename in
718a6fd8
SE
8074 # old Intel for x86_64 which still supported -KPIC.
8075 ecc*)
d7040cdb
SE
8076 lt_prog_compiler_wl='-Wl,'
8077 lt_prog_compiler_pic='-KPIC'
8078 lt_prog_compiler_static='-static'
8079 ;;
718a6fd8
SE
8080 # icc used to be incompatible with GCC.
8081 # ICC 10 doesn't accept -KPIC any more.
8082 icc* | ifort*)
8083 lt_prog_compiler_wl='-Wl,'
8084 lt_prog_compiler_pic='-fPIC'
8085 lt_prog_compiler_static='-static'
8086 ;;
8087 # Lahey Fortran 8.1.
8088 lf95*)
8089 lt_prog_compiler_wl='-Wl,'
8090 lt_prog_compiler_pic='--shared'
8091 lt_prog_compiler_static='--static'
8092 ;;
3725885a 8093 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
d7040cdb
SE
8094 # Portland Group compilers (*not* the Pentium gcc compiler,
8095 # which looks to be a dead project)
8096 lt_prog_compiler_wl='-Wl,'
8097 lt_prog_compiler_pic='-fpic'
8098 lt_prog_compiler_static='-Bstatic'
8099 ;;
8100 ccc*)
8101 lt_prog_compiler_wl='-Wl,'
8102 # All Alpha code is PIC.
8103 lt_prog_compiler_static='-non_shared'
8104 ;;
3725885a
RW
8105 xl* | bgxl* | bgf* | mpixl*)
8106 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
718a6fd8
SE
8107 lt_prog_compiler_wl='-Wl,'
8108 lt_prog_compiler_pic='-qpic'
8109 lt_prog_compiler_static='-qstaticlink'
8110 ;;
d7040cdb
SE
8111 *)
8112 case `$CC -V 2>&1 | sed 5q` in
3725885a
RW
8113 *Sun\ F* | *Sun*Fortran*)
8114 # Sun Fortran 8.3 passes all unrecognized flags to the linker
d7040cdb
SE
8115 lt_prog_compiler_pic='-KPIC'
8116 lt_prog_compiler_static='-Bstatic'
3725885a 8117 lt_prog_compiler_wl=''
d7040cdb 8118 ;;
3725885a
RW
8119 *Sun\ C*)
8120 # Sun C 5.9
d7040cdb
SE
8121 lt_prog_compiler_pic='-KPIC'
8122 lt_prog_compiler_static='-Bstatic'
3725885a 8123 lt_prog_compiler_wl='-Wl,'
d7040cdb
SE
8124 ;;
8125 esac
8126 ;;
8127 esac
8128 ;;
8129
8130 newsos6)
8131 lt_prog_compiler_pic='-KPIC'
8132 lt_prog_compiler_static='-Bstatic'
8133 ;;
8134
8135 *nto* | *qnx*)
8136 # QNX uses GNU C++, but need to define -shared option too, otherwise
8137 # it will coredump.
8138 lt_prog_compiler_pic='-fPIC -shared'
8139 ;;
8140
8141 osf3* | osf4* | osf5*)
8142 lt_prog_compiler_wl='-Wl,'
8143 # All OSF/1 code is PIC.
8144 lt_prog_compiler_static='-non_shared'
8145 ;;
8146
8147 rdos*)
8148 lt_prog_compiler_static='-non_shared'
8149 ;;
8150
8151 solaris*)
8152 lt_prog_compiler_pic='-KPIC'
8153 lt_prog_compiler_static='-Bstatic'
8154 case $cc_basename in
f2c621e4 8155 f77* | f90* | f95*)
d7040cdb
SE
8156 lt_prog_compiler_wl='-Qoption ld ';;
8157 *)
8158 lt_prog_compiler_wl='-Wl,';;
8159 esac
8160 ;;
8161
8162 sunos4*)
8163 lt_prog_compiler_wl='-Qoption ld '
8164 lt_prog_compiler_pic='-PIC'
8165 lt_prog_compiler_static='-Bstatic'
8166 ;;
8167
8168 sysv4 | sysv4.2uw2* | sysv4.3*)
8169 lt_prog_compiler_wl='-Wl,'
8170 lt_prog_compiler_pic='-KPIC'
8171 lt_prog_compiler_static='-Bstatic'
8172 ;;
8173
8174 sysv4*MP*)
8175 if test -d /usr/nec ;then
8176 lt_prog_compiler_pic='-Kconform_pic'
8177 lt_prog_compiler_static='-Bstatic'
8178 fi
8179 ;;
8180
8181 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8182 lt_prog_compiler_wl='-Wl,'
8183 lt_prog_compiler_pic='-KPIC'
8184 lt_prog_compiler_static='-Bstatic'
8185 ;;
8186
8187 unicos*)
8188 lt_prog_compiler_wl='-Wl,'
8189 lt_prog_compiler_can_build_shared=no
8190 ;;
8191
8192 uts4*)
8193 lt_prog_compiler_pic='-pic'
8194 lt_prog_compiler_static='-Bstatic'
8195 ;;
8196
8197 *)
8198 lt_prog_compiler_can_build_shared=no
8199 ;;
8200 esac
8201 fi
8202
8203case $host_os in
8204 # For platforms which do not support PIC, -DPIC is meaningless:
8205 *djgpp*)
8206 lt_prog_compiler_pic=
8207 ;;
8208 *)
8209 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8210 ;;
8211esac
f2c621e4
AS
8212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8213$as_echo "$lt_prog_compiler_pic" >&6; }
8214
8215
8216
8217
d7040cdb
SE
8218
8219
8220#
8221# Check to make sure the PIC flag actually works.
8222#
8223if test -n "$lt_prog_compiler_pic"; then
81ecdfbb
RW
8224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8225$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
d0ac1c44 8226if ${lt_cv_prog_compiler_pic_works+:} false; then :
81ecdfbb 8227 $as_echo_n "(cached) " >&6
42ecbf5e 8228else
718a6fd8 8229 lt_cv_prog_compiler_pic_works=no
d7040cdb
SE
8230 ac_outfile=conftest.$ac_objext
8231 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8232 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8233 # Insert the option either (1) after the last *FLAGS variable, or
8234 # (2) before a word containing "conftest.", or (3) at the end.
8235 # Note that $ac_compile itself does not contain backslashes and begins
8236 # with a dollar sign (not a hyphen), so the echo should work correctly.
8237 # The option is referenced via a variable to avoid confusing sed.
8238 lt_compile=`echo "$ac_compile" | $SED \
8239 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8240 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8241 -e 's:$: $lt_compiler_flag:'`
3725885a 8242 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
d7040cdb
SE
8243 (eval "$lt_compile" 2>conftest.err)
8244 ac_status=$?
8245 cat conftest.err >&5
3725885a 8246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb
SE
8247 if (exit $ac_status) && test -s "$ac_outfile"; then
8248 # The compiler can only warn and ignore the option if not recognized
8249 # So say no if there are warnings other than the usual output.
3725885a 8250 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
d7040cdb
SE
8251 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8252 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
718a6fd8 8253 lt_cv_prog_compiler_pic_works=yes
d7040cdb
SE
8254 fi
8255 fi
8256 $RM conftest*
42ecbf5e 8257
252b5132 8258fi
81ecdfbb
RW
8259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8260$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
d7040cdb 8261
718a6fd8 8262if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
d7040cdb
SE
8263 case $lt_prog_compiler_pic in
8264 "" | " "*) ;;
8265 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8266 esac
252b5132 8267else
d7040cdb
SE
8268 lt_prog_compiler_pic=
8269 lt_prog_compiler_can_build_shared=no
252b5132 8270fi
252b5132
RH
8271
8272fi
42ecbf5e 8273
d7040cdb
SE
8274
8275
8276
8277
8278
8279#
8280# Check to make sure the static flag actually works.
8281#
8282wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
81ecdfbb
RW
8283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8284$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
d0ac1c44 8285if ${lt_cv_prog_compiler_static_works+:} false; then :
81ecdfbb 8286 $as_echo_n "(cached) " >&6
42ecbf5e 8287else
718a6fd8 8288 lt_cv_prog_compiler_static_works=no
d7040cdb
SE
8289 save_LDFLAGS="$LDFLAGS"
8290 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8291 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8292 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8293 # The linker can only warn and ignore the option if not recognized
8294 # So say no if there are warnings
8295 if test -s conftest.err; then
8296 # Append any errors to the config.log.
8297 cat conftest.err 1>&5
3725885a 8298 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
d7040cdb
SE
8299 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8300 if diff conftest.exp conftest.er2 >/dev/null; then
718a6fd8 8301 lt_cv_prog_compiler_static_works=yes
d7040cdb
SE
8302 fi
8303 else
718a6fd8 8304 lt_cv_prog_compiler_static_works=yes
d7040cdb
SE
8305 fi
8306 fi
718a6fd8 8307 $RM -r conftest*
d7040cdb 8308 LDFLAGS="$save_LDFLAGS"
42ecbf5e 8309
42ecbf5e 8310fi
81ecdfbb
RW
8311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8312$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
d7040cdb 8313
718a6fd8 8314if test x"$lt_cv_prog_compiler_static_works" = xyes; then
d7040cdb
SE
8315 :
8316else
8317 lt_prog_compiler_static=
42ecbf5e 8318fi
42ecbf5e 8319
252b5132 8320
252b5132 8321
42ecbf5e 8322
252b5132 8323
20e95c23 8324
d7040cdb 8325
81ecdfbb
RW
8326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8327$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
d0ac1c44 8328if ${lt_cv_prog_compiler_c_o+:} false; then :
81ecdfbb 8329 $as_echo_n "(cached) " >&6
252b5132 8330else
d7040cdb
SE
8331 lt_cv_prog_compiler_c_o=no
8332 $RM -r conftest 2>/dev/null
8333 mkdir conftest
8334 cd conftest
8335 mkdir out
8336 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8337
8338 lt_compiler_flag="-o out/conftest2.$ac_objext"
8339 # Insert the option either (1) after the last *FLAGS variable, or
8340 # (2) before a word containing "conftest.", or (3) at the end.
8341 # Note that $ac_compile itself does not contain backslashes and begins
8342 # with a dollar sign (not a hyphen), so the echo should work correctly.
8343 lt_compile=`echo "$ac_compile" | $SED \
8344 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8345 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8346 -e 's:$: $lt_compiler_flag:'`
3725885a 8347 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
d7040cdb
SE
8348 (eval "$lt_compile" 2>out/conftest.err)
8349 ac_status=$?
8350 cat out/conftest.err >&5
3725885a 8351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb
SE
8352 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8353 then
8354 # The compiler can only warn and ignore the option if not recognized
8355 # So say no if there are warnings
3725885a 8356 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
d7040cdb
SE
8357 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8358 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8359 lt_cv_prog_compiler_c_o=yes
8360 fi
8361 fi
8362 chmod u+w . 2>&5
8363 $RM conftest*
8364 # SGI C++ compiler will create directory out/ii_files/ for
8365 # template instantiation
8366 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8367 $RM out/* && rmdir out
8368 cd ..
8369 $RM -r conftest
8370 $RM conftest*
8371
252b5132 8372fi
81ecdfbb
RW
8373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8374$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
42ecbf5e 8375
20e95c23 8376
20e95c23
DJ
8377
8378
d7040cdb
SE
8379
8380
81ecdfbb
RW
8381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8382$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
d0ac1c44 8383if ${lt_cv_prog_compiler_c_o+:} false; then :
81ecdfbb 8384 $as_echo_n "(cached) " >&6
42ecbf5e 8385else
d7040cdb
SE
8386 lt_cv_prog_compiler_c_o=no
8387 $RM -r conftest 2>/dev/null
8388 mkdir conftest
8389 cd conftest
8390 mkdir out
8391 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8392
8393 lt_compiler_flag="-o out/conftest2.$ac_objext"
8394 # Insert the option either (1) after the last *FLAGS variable, or
8395 # (2) before a word containing "conftest.", or (3) at the end.
8396 # Note that $ac_compile itself does not contain backslashes and begins
8397 # with a dollar sign (not a hyphen), so the echo should work correctly.
8398 lt_compile=`echo "$ac_compile" | $SED \
8399 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8400 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8401 -e 's:$: $lt_compiler_flag:'`
3725885a 8402 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
d7040cdb
SE
8403 (eval "$lt_compile" 2>out/conftest.err)
8404 ac_status=$?
8405 cat out/conftest.err >&5
3725885a 8406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb
SE
8407 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8408 then
8409 # The compiler can only warn and ignore the option if not recognized
8410 # So say no if there are warnings
3725885a 8411 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
d7040cdb
SE
8412 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8413 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8414 lt_cv_prog_compiler_c_o=yes
8415 fi
8416 fi
8417 chmod u+w . 2>&5
8418 $RM conftest*
8419 # SGI C++ compiler will create directory out/ii_files/ for
8420 # template instantiation
8421 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8422 $RM out/* && rmdir out
8423 cd ..
8424 $RM -r conftest
8425 $RM conftest*
8426
8427fi
81ecdfbb
RW
8428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8429$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
d7040cdb
SE
8430
8431
8432
8433
8434hard_links="nottested"
8435if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8436 # do not overwrite the value of need_locks provided by the user
81ecdfbb
RW
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8438$as_echo_n "checking if we can lock with hard links... " >&6; }
d7040cdb
SE
8439 hard_links=yes
8440 $RM conftest*
8441 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8442 touch conftest.a
8443 ln conftest.a conftest.b 2>&5 || hard_links=no
8444 ln conftest.a conftest.b 2>/dev/null && hard_links=no
81ecdfbb
RW
8445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8446$as_echo "$hard_links" >&6; }
d7040cdb 8447 if test "$hard_links" = no; then
81ecdfbb
RW
8448 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8449$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
d7040cdb
SE
8450 need_locks=warn
8451 fi
8452else
8453 need_locks=no
8454fi
8455
8456
8457
8458
8459
8460
81ecdfbb
RW
8461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8462$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
d7040cdb
SE
8463
8464 runpath_var=
8465 allow_undefined_flag=
8466 always_export_symbols=no
8467 archive_cmds=
8468 archive_expsym_cmds=
8469 compiler_needs_object=no
8470 enable_shared_with_static_runtimes=no
8471 export_dynamic_flag_spec=
8472 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8473 hardcode_automatic=no
8474 hardcode_direct=no
8475 hardcode_direct_absolute=no
8476 hardcode_libdir_flag_spec=
8477 hardcode_libdir_flag_spec_ld=
8478 hardcode_libdir_separator=
8479 hardcode_minus_L=no
8480 hardcode_shlibpath_var=unsupported
8481 inherit_rpath=no
8482 link_all_deplibs=unknown
8483 module_cmds=
8484 module_expsym_cmds=
8485 old_archive_from_new_cmds=
8486 old_archive_from_expsyms_cmds=
8487 thread_safe_flag_spec=
8488 whole_archive_flag_spec=
8489 # include_expsyms should be a list of space-separated symbols to be *always*
8490 # included in the symbol list
8491 include_expsyms=
8492 # exclude_expsyms can be an extended regexp of symbols to exclude
8493 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8494 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8495 # as well as any symbol that contains `d'.
718a6fd8 8496 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
d7040cdb
SE
8497 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8498 # platforms (ab)use it in PIC code, but their linkers get confused if
8499 # the symbol is explicitly referenced. Since portable code cannot
8500 # rely on this symbol name, it's probably fine to never include it in
8501 # preloaded symbol tables.
718a6fd8 8502 # Exclude shared library initialization/finalization symbols.
d7040cdb
SE
8503 extract_expsyms_cmds=
8504
8505 case $host_os in
718a6fd8 8506 cygwin* | mingw* | pw32* | cegcc*)
d7040cdb
SE
8507 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8508 # When not using gcc, we currently assume that we are using
8509 # Microsoft Visual C++.
8510 if test "$GCC" != yes; then
8511 with_gnu_ld=no
8512 fi
8513 ;;
8514 interix*)
8515 # we just hope/assume this is gcc and not c89 (= MSVC++)
8516 with_gnu_ld=yes
8517 ;;
8518 openbsd*)
8519 with_gnu_ld=no
8520 ;;
8521 esac
8522
8523 ld_shlibs=yes
3725885a
RW
8524
8525 # On some targets, GNU ld is compatible enough with the native linker
8526 # that we're better off using the native interface for both.
8527 lt_use_gnu_ld_interface=no
d7040cdb 8528 if test "$with_gnu_ld" = yes; then
3725885a
RW
8529 case $host_os in
8530 aix*)
8531 # The AIX port of GNU ld has always aspired to compatibility
8532 # with the native linker. However, as the warning in the GNU ld
8533 # block says, versions before 2.19.5* couldn't really create working
8534 # shared libraries, regardless of the interface used.
8535 case `$LD -v 2>&1` in
8536 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8537 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8538 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8539 *)
8540 lt_use_gnu_ld_interface=yes
8541 ;;
8542 esac
8543 ;;
8544 *)
8545 lt_use_gnu_ld_interface=yes
8546 ;;
8547 esac
8548 fi
8549
8550 if test "$lt_use_gnu_ld_interface" = yes; then
d7040cdb
SE
8551 # If archive_cmds runs LD, not CC, wlarc should be empty
8552 wlarc='${wl}'
8553
8554 # Set some defaults for GNU ld with shared library support. These
8555 # are reset later if shared libraries are not supported. Putting them
8556 # here allows them to be overridden if necessary.
8557 runpath_var=LD_RUN_PATH
8558 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8559 export_dynamic_flag_spec='${wl}--export-dynamic'
8560 # ancient GNU ld didn't support --whole-archive et. al.
8561 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8562 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8563 else
8564 whole_archive_flag_spec=
8565 fi
8566 supports_anon_versioning=no
8567 case `$LD -v 2>&1` in
3725885a 8568 *GNU\ gold*) supports_anon_versioning=yes ;;
d7040cdb
SE
8569 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8570 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8571 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8572 *\ 2.11.*) ;; # other 2.11 versions
8573 *) supports_anon_versioning=yes ;;
8574 esac
8575
8576 # See if GNU ld supports shared libraries.
8577 case $host_os in
50e7d84b 8578 aix[3-9]*)
d7040cdb
SE
8579 # On AIX/PPC, the GNU linker is very broken
8580 if test "$host_cpu" != ia64; then
8581 ld_shlibs=no
8582 cat <<_LT_EOF 1>&2
8583
3725885a 8584*** Warning: the GNU linker, at least up to release 2.19, is reported
d7040cdb
SE
8585*** to be unable to reliably create shared libraries on AIX.
8586*** Therefore, libtool is disabling shared libraries support. If you
3725885a
RW
8587*** really care for shared libraries, you may want to install binutils
8588*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8589*** You will then need to restart the configuration process.
d7040cdb
SE
8590
8591_LT_EOF
8592 fi
8593 ;;
8594
8595 amigaos*)
718a6fd8
SE
8596 case $host_cpu in
8597 powerpc)
8598 # see comment about AmigaOS4 .so support
8599 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8600 archive_expsym_cmds=''
8601 ;;
8602 m68k)
8603 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)'
8604 hardcode_libdir_flag_spec='-L$libdir'
8605 hardcode_minus_L=yes
8606 ;;
8607 esac
d7040cdb
SE
8608 ;;
8609
8610 beos*)
8611 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8612 allow_undefined_flag=unsupported
8613 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8614 # support --undefined. This deserves some investigation. FIXME
8615 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8616 else
8617 ld_shlibs=no
8618 fi
8619 ;;
8620
718a6fd8 8621 cygwin* | mingw* | pw32* | cegcc*)
d7040cdb
SE
8622 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8623 # as there is no search path for DLLs.
8624 hardcode_libdir_flag_spec='-L$libdir'
3725885a 8625 export_dynamic_flag_spec='${wl}--export-all-symbols'
d7040cdb
SE
8626 allow_undefined_flag=unsupported
8627 always_export_symbols=no
8628 enable_shared_with_static_runtimes=yes
f2c621e4 8629 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
d7040cdb
SE
8630
8631 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8632 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8633 # If the export-symbols file already is a .def file (1st line
8634 # is EXPORTS), use it as is; otherwise, prepend...
8635 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8636 cp $export_symbols $output_objdir/$soname.def;
8637 else
8638 echo EXPORTS > $output_objdir/$soname.def;
8639 cat $export_symbols >> $output_objdir/$soname.def;
8640 fi~
8641 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8642 else
8643 ld_shlibs=no
8644 fi
8645 ;;
8646
3725885a
RW
8647 haiku*)
8648 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8649 link_all_deplibs=yes
8650 ;;
8651
d7040cdb
SE
8652 interix[3-9]*)
8653 hardcode_direct=no
8654 hardcode_shlibpath_var=no
8655 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8656 export_dynamic_flag_spec='${wl}-E'
8657 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8658 # Instead, shared libraries are loaded at an image base (0x10000000 by
8659 # default) and relocated if they conflict, which is a slow very memory
8660 # consuming and fragmenting process. To avoid this, we pick a random,
8661 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8662 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8663 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8664 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'
8665 ;;
8666
58e24671 8667 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
d7040cdb
SE
8668 tmp_diet=no
8669 if test "$host_os" = linux-dietlibc; then
8670 case $cc_basename in
8671 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8672 esac
8673 fi
8674 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8675 && test "$tmp_diet" = no
8676 then
6e733cce 8677 tmp_addflag=' $pic_flag'
718a6fd8 8678 tmp_sharedflag='-shared'
d7040cdb
SE
8679 case $cc_basename,$host_cpu in
8680 pgcc*) # Portland Group C compiler
3725885a 8681 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'
d7040cdb
SE
8682 tmp_addflag=' $pic_flag'
8683 ;;
3725885a
RW
8684 pgf77* | pgf90* | pgf95* | pgfortran*)
8685 # Portland Group f77 and f90 compilers
8686 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'
d7040cdb
SE
8687 tmp_addflag=' $pic_flag -Mnomain' ;;
8688 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8689 tmp_addflag=' -i_dynamic' ;;
8690 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8691 tmp_addflag=' -i_dynamic -nofor_main' ;;
8692 ifc* | ifort*) # Intel Fortran compiler
8693 tmp_addflag=' -nofor_main' ;;
718a6fd8
SE
8694 lf95*) # Lahey Fortran 8.1
8695 whole_archive_flag_spec=
8696 tmp_sharedflag='--shared' ;;
3725885a 8697 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
718a6fd8
SE
8698 tmp_sharedflag='-qmkshrobj'
8699 tmp_addflag= ;;
3725885a
RW
8700 nvcc*) # Cuda Compiler Driver 2.2
8701 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'
8702 compiler_needs_object=yes
8703 ;;
d7040cdb
SE
8704 esac
8705 case `$CC -V 2>&1 | sed 5q` in
8706 *Sun\ C*) # Sun C 5.9
3725885a 8707 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'
d7040cdb
SE
8708 compiler_needs_object=yes
8709 tmp_sharedflag='-G' ;;
8710 *Sun\ F*) # Sun Fortran 8.3
8711 tmp_sharedflag='-G' ;;
d7040cdb
SE
8712 esac
8713 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8714
8715 if test "x$supports_anon_versioning" = xyes; then
8716 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8717 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8718 echo "local: *; };" >> $output_objdir/$libname.ver~
8719 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8720 fi
718a6fd8
SE
8721
8722 case $cc_basename in
3725885a 8723 xlf* | bgf* | bgxlf* | mpixlf*)
718a6fd8
SE
8724 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8725 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8726 hardcode_libdir_flag_spec=
8727 hardcode_libdir_flag_spec_ld='-rpath $libdir'
f2c621e4 8728 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
718a6fd8
SE
8729 if test "x$supports_anon_versioning" = xyes; then
8730 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8731 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8732 echo "local: *; };" >> $output_objdir/$libname.ver~
f2c621e4 8733 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
718a6fd8
SE
8734 fi
8735 ;;
8736 esac
d7040cdb
SE
8737 else
8738 ld_shlibs=no
8739 fi
8740 ;;
8741
8742 netbsd*)
8743 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8744 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8745 wlarc=
8746 else
f2c621e4
AS
8747 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8748 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
d7040cdb
SE
8749 fi
8750 ;;
8751
8752 solaris*)
8753 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8754 ld_shlibs=no
8755 cat <<_LT_EOF 1>&2
8756
8757*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8758*** create shared libraries on Solaris systems. Therefore, libtool
8759*** is disabling shared libraries support. We urge you to upgrade GNU
8760*** binutils to release 2.9.1 or newer. Another option is to modify
8761*** your PATH or compiler configuration so that the native linker is
8762*** used, and then restart.
8763
8764_LT_EOF
8765 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
f2c621e4
AS
8766 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8767 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
d7040cdb
SE
8768 else
8769 ld_shlibs=no
8770 fi
8771 ;;
8772
8773 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8774 case `$LD -v 2>&1` in
8775 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8776 ld_shlibs=no
8777 cat <<_LT_EOF 1>&2
8778
8779*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8780*** reliably create shared libraries on SCO systems. Therefore, libtool
8781*** is disabling shared libraries support. We urge you to upgrade GNU
8782*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8783*** your PATH or compiler configuration so that the native linker is
8784*** used, and then restart.
8785
8786_LT_EOF
8787 ;;
8788 *)
8789 # For security reasons, it is highly recommended that you always
8790 # use absolute paths for naming shared libraries, and exclude the
8791 # DT_RUNPATH tag from executables and libraries. But doing so
8792 # requires that you compile everything twice, which is a pain.
8793 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8794 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8795 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8796 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8797 else
8798 ld_shlibs=no
8799 fi
8800 ;;
8801 esac
8802 ;;
8803
8804 sunos4*)
8805 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8806 wlarc=
8807 hardcode_direct=yes
8808 hardcode_shlibpath_var=no
8809 ;;
8810
8811 *)
8812 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
f2c621e4
AS
8813 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8814 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
d7040cdb
SE
8815 else
8816 ld_shlibs=no
8817 fi
8818 ;;
8819 esac
8820
8821 if test "$ld_shlibs" = no; then
8822 runpath_var=
8823 hardcode_libdir_flag_spec=
8824 export_dynamic_flag_spec=
8825 whole_archive_flag_spec=
8826 fi
8827 else
8828 # PORTME fill in a description of your system's linker (not GNU ld)
8829 case $host_os in
8830 aix3*)
8831 allow_undefined_flag=unsupported
8832 always_export_symbols=yes
8833 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'
8834 # Note: this linker hardcodes the directories in LIBPATH if there
8835 # are no directories specified by -L.
8836 hardcode_minus_L=yes
8837 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8838 # Neither direct hardcoding nor static linking is supported with a
8839 # broken collect2.
8840 hardcode_direct=unsupported
8841 fi
8842 ;;
8843
50e7d84b 8844 aix[4-9]*)
d7040cdb
SE
8845 if test "$host_cpu" = ia64; then
8846 # On IA64, the linker does run time linking by default, so we don't
8847 # have to do anything special.
8848 aix_use_runtimelinking=no
8849 exp_sym_flag='-Bexport'
8850 no_entry_flag=""
8851 else
8852 # If we're using GNU nm, then we don't want the "-C" option.
8853 # -C means demangle to AIX nm, but means don't demangle with GNU nm
3725885a
RW
8854 # Also, AIX nm treats weak defined symbols like other global
8855 # defined symbols, whereas GNU nm marks them as "W".
d7040cdb 8856 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
3725885a 8857 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'
d7040cdb 8858 else
5c14705f 8859 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'
d7040cdb
SE
8860 fi
8861 aix_use_runtimelinking=no
8862
8863 # Test if we are trying to use run time linking or normal
8864 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8865 # need to do runtime linking.
50e7d84b 8866 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
d7040cdb
SE
8867 for ld_flag in $LDFLAGS; do
8868 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8869 aix_use_runtimelinking=yes
8870 break
8871 fi
8872 done
8873 ;;
8874 esac
8875
8876 exp_sym_flag='-bexport'
8877 no_entry_flag='-bnoentry'
8878 fi
8879
8880 # When large executables or shared objects are built, AIX ld can
8881 # have problems creating the table of contents. If linking a library
8882 # or program results in "error TOC overflow" add -mminimal-toc to
8883 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8884 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8885
8886 archive_cmds=''
8887 hardcode_direct=yes
8888 hardcode_direct_absolute=yes
8889 hardcode_libdir_separator=':'
8890 link_all_deplibs=yes
8891 file_list_spec='${wl}-f,'
8892
8893 if test "$GCC" = yes; then
8894 case $host_os in aix4.[012]|aix4.[012].*)
8895 # We only want to do this on AIX 4.2 and lower, the check
8896 # below for broken collect2 doesn't work under 4.3+
8897 collect2name=`${CC} -print-prog-name=collect2`
8898 if test -f "$collect2name" &&
8899 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8900 then
8901 # We have reworked collect2
8902 :
8903 else
8904 # We have old collect2
8905 hardcode_direct=unsupported
8906 # It fails to find uninstalled libraries when the uninstalled
8907 # path is not listed in the libpath. Setting hardcode_minus_L
8908 # to unsupported forces relinking
8909 hardcode_minus_L=yes
8910 hardcode_libdir_flag_spec='-L$libdir'
8911 hardcode_libdir_separator=
8912 fi
8913 ;;
8914 esac
8915 shared_flag='-shared'
8916 if test "$aix_use_runtimelinking" = yes; then
8917 shared_flag="$shared_flag "'${wl}-G'
8918 fi
8919 else
8920 # not using gcc
8921 if test "$host_cpu" = ia64; then
8922 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8923 # chokes on -Wl,-G. The following line is correct:
8924 shared_flag='-G'
8925 else
8926 if test "$aix_use_runtimelinking" = yes; then
8927 shared_flag='${wl}-G'
8928 else
8929 shared_flag='${wl}-bM:SRE'
8930 fi
8931 fi
8932 fi
8933
718a6fd8 8934 export_dynamic_flag_spec='${wl}-bexpall'
d7040cdb
SE
8935 # It seems that -bexpall does not export symbols beginning with
8936 # underscore (_), so it is better to generate a list of symbols to export.
8937 always_export_symbols=yes
8938 if test "$aix_use_runtimelinking" = yes; then
8939 # Warning - without using the other runtime loading flags (-brtl),
8940 # -berok will link without error, but may produce a broken library.
8941 allow_undefined_flag='-berok'
8942 # Determine the default libpath from the value encoded in an
8943 # empty executable.
f2c621e4 8944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e 8945/* end confdefs.h. */
d7040cdb
SE
8946
8947int
8948main ()
8949{
8950
8951 ;
8952 return 0;
8953}
42ecbf5e 8954_ACEOF
81ecdfbb 8955if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 8956
f2c621e4
AS
8957lt_aix_libpath_sed='
8958 /Import File Strings/,/^$/ {
8959 /^0/ {
8960 s/^0 *\(.*\)$/\1/
8961 p
8962 }
8963 }'
8964aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8965# Check for a 64-bit object if we didn't find anything.
8966if test -z "$aix_libpath"; then
8967 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8968fi
252b5132 8969fi
81ecdfbb
RW
8970rm -f core conftest.err conftest.$ac_objext \
8971 conftest$ac_exeext conftest.$ac_ext
f2c621e4 8972if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
252b5132 8973
d7040cdb 8974 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
3725885a 8975 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"
d7040cdb
SE
8976 else
8977 if test "$host_cpu" = ia64; then
8978 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8979 allow_undefined_flag="-z nodefs"
8980 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"
8981 else
8982 # Determine the default libpath from the value encoded in an
8983 # empty executable.
f2c621e4 8984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e 8985/* end confdefs.h. */
d7040cdb
SE
8986
8987int
8988main ()
8989{
8990
8991 ;
8992 return 0;
8993}
42ecbf5e 8994_ACEOF
81ecdfbb 8995if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 8996
f2c621e4
AS
8997lt_aix_libpath_sed='
8998 /Import File Strings/,/^$/ {
8999 /^0/ {
9000 s/^0 *\(.*\)$/\1/
9001 p
9002 }
9003 }'
9004aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9005# Check for a 64-bit object if we didn't find anything.
9006if test -z "$aix_libpath"; then
9007 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9008fi
252b5132 9009fi
81ecdfbb
RW
9010rm -f core conftest.err conftest.$ac_objext \
9011 conftest$ac_exeext conftest.$ac_ext
f2c621e4 9012if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
d7040cdb
SE
9013
9014 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9015 # Warning - without using the other run time loading flags,
9016 # -berok will link without error, but may produce a broken library.
9017 no_undefined_flag=' ${wl}-bernotok'
9018 allow_undefined_flag=' ${wl}-berok'
3725885a
RW
9019 if test "$with_gnu_ld" = yes; then
9020 # We only use this code for GNU lds that support --whole-archive.
9021 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9022 else
9023 # Exported symbols can be pulled into shared objects from archives
9024 whole_archive_flag_spec='$convenience'
9025 fi
d7040cdb
SE
9026 archive_cmds_need_lc=yes
9027 # This is similar to how AIX traditionally builds its shared libraries.
9028 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'
9029 fi
9030 fi
9031 ;;
42ecbf5e 9032
d7040cdb 9033 amigaos*)
718a6fd8
SE
9034 case $host_cpu in
9035 powerpc)
9036 # see comment about AmigaOS4 .so support
9037 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9038 archive_expsym_cmds=''
9039 ;;
9040 m68k)
9041 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)'
9042 hardcode_libdir_flag_spec='-L$libdir'
9043 hardcode_minus_L=yes
9044 ;;
9045 esac
d7040cdb 9046 ;;
252b5132 9047
d7040cdb
SE
9048 bsdi[45]*)
9049 export_dynamic_flag_spec=-rdynamic
9050 ;;
252b5132 9051
718a6fd8 9052 cygwin* | mingw* | pw32* | cegcc*)
d7040cdb
SE
9053 # When not using gcc, we currently assume that we are using
9054 # Microsoft Visual C++.
9055 # hardcode_libdir_flag_spec is actually meaningless, as there is
9056 # no search path for DLLs.
f2c621e4
AS
9057 hardcode_libdir_flag_spec=' '
9058 allow_undefined_flag=unsupported
9059 # Tell ltmain to make .lib files, not .a files.
9060 libext=lib
9061 # Tell ltmain to make .dll files, not .so files.
9062 shrext_cmds=".dll"
9063 # FIXME: Setting linknames here is a bad hack.
9064 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9065 # The linker will automatically build a .lib file if we build a DLL.
9066 old_archive_from_new_cmds='true'
9067 # FIXME: Should let the user specify the lib program.
9068 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9069 fix_srcfile_path='`cygpath -w "$srcfile"`'
9070 enable_shared_with_static_runtimes=yes
d7040cdb 9071 ;;
252b5132 9072
d7040cdb 9073 darwin* | rhapsody*)
c46f8c51 9074
718a6fd8
SE
9075
9076 archive_cmds_need_lc=no
9077 hardcode_direct=no
9078 hardcode_automatic=yes
9079 hardcode_shlibpath_var=unsupported
3725885a
RW
9080 if test "$lt_cv_ld_force_load" = "yes"; then
9081 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\"`'
9082 else
9083 whole_archive_flag_spec=''
9084 fi
718a6fd8
SE
9085 link_all_deplibs=yes
9086 allow_undefined_flag="$_lt_dar_allow_undefined"
9087 case $cc_basename in
9088 ifort*) _lt_dar_can_shared=yes ;;
9089 *) _lt_dar_can_shared=$GCC ;;
9090 esac
9091 if test "$_lt_dar_can_shared" = "yes"; then
3725885a 9092 output_verbose_link_cmd=func_echo_all
718a6fd8
SE
9093 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9094 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9095 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}"
9096 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}"
9097
9098 else
9099 ld_shlibs=no
9100 fi
9101
d7040cdb 9102 ;;
42ecbf5e 9103
d7040cdb
SE
9104 dgux*)
9105 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9106 hardcode_libdir_flag_spec='-L$libdir'
9107 hardcode_shlibpath_var=no
9108 ;;
252b5132 9109
d7040cdb
SE
9110 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9111 # support. Future versions do this automatically, but an explicit c++rt0.o
9112 # does not break anything, and helps significantly (at the cost of a little
9113 # extra space).
9114 freebsd2.2*)
9115 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9116 hardcode_libdir_flag_spec='-R$libdir'
9117 hardcode_direct=yes
9118 hardcode_shlibpath_var=no
9119 ;;
252b5132 9120
d7040cdb 9121 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6d2920c8 9122 freebsd2.*)
d7040cdb
SE
9123 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9124 hardcode_direct=yes
9125 hardcode_minus_L=yes
9126 hardcode_shlibpath_var=no
9127 ;;
42ecbf5e 9128
d7040cdb
SE
9129 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9130 freebsd* | dragonfly*)
f2c621e4 9131 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
d7040cdb
SE
9132 hardcode_libdir_flag_spec='-R$libdir'
9133 hardcode_direct=yes
9134 hardcode_shlibpath_var=no
9135 ;;
252b5132 9136
d7040cdb
SE
9137 hpux9*)
9138 if test "$GCC" = yes; then
f2c621e4 9139 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'
d7040cdb
SE
9140 else
9141 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'
9142 fi
9143 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9144 hardcode_libdir_separator=:
9145 hardcode_direct=yes
9146
9147 # hardcode_minus_L: Not really in the search PATH,
9148 # but as the default location of the library.
9149 hardcode_minus_L=yes
9150 export_dynamic_flag_spec='${wl}-E'
9151 ;;
20e95c23 9152
d7040cdb 9153 hpux10*)
3725885a 9154 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
f2c621e4 9155 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
d7040cdb
SE
9156 else
9157 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9158 fi
9159 if test "$with_gnu_ld" = no; then
9160 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9161 hardcode_libdir_flag_spec_ld='+b $libdir'
9162 hardcode_libdir_separator=:
9163 hardcode_direct=yes
9164 hardcode_direct_absolute=yes
9165 export_dynamic_flag_spec='${wl}-E'
9166 # hardcode_minus_L: Not really in the search PATH,
9167 # but as the default location of the library.
9168 hardcode_minus_L=yes
9169 fi
9170 ;;
20e95c23 9171
d7040cdb 9172 hpux11*)
3725885a 9173 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
d7040cdb
SE
9174 case $host_cpu in
9175 hppa*64*)
9176 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9177 ;;
9178 ia64*)
f2c621e4 9179 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
d7040cdb
SE
9180 ;;
9181 *)
f2c621e4 9182 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
d7040cdb
SE
9183 ;;
9184 esac
9185 else
9186 case $host_cpu in
9187 hppa*64*)
9188 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9189 ;;
9190 ia64*)
9191 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9192 ;;
9193 *)
3725885a
RW
9194
9195 # Older versions of the 11.00 compiler do not understand -b yet
9196 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9198$as_echo_n "checking if $CC understands -b... " >&6; }
d0ac1c44 9199if ${lt_cv_prog_compiler__b+:} false; then :
3725885a
RW
9200 $as_echo_n "(cached) " >&6
9201else
9202 lt_cv_prog_compiler__b=no
9203 save_LDFLAGS="$LDFLAGS"
9204 LDFLAGS="$LDFLAGS -b"
9205 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9206 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9207 # The linker can only warn and ignore the option if not recognized
9208 # So say no if there are warnings
9209 if test -s conftest.err; then
9210 # Append any errors to the config.log.
9211 cat conftest.err 1>&5
9212 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9213 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9214 if diff conftest.exp conftest.er2 >/dev/null; then
9215 lt_cv_prog_compiler__b=yes
9216 fi
9217 else
9218 lt_cv_prog_compiler__b=yes
9219 fi
9220 fi
9221 $RM -r conftest*
9222 LDFLAGS="$save_LDFLAGS"
9223
9224fi
9225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9226$as_echo "$lt_cv_prog_compiler__b" >&6; }
9227
9228if test x"$lt_cv_prog_compiler__b" = xyes; then
9229 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9230else
9231 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9232fi
9233
d7040cdb
SE
9234 ;;
9235 esac
9236 fi
9237 if test "$with_gnu_ld" = no; then
9238 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9239 hardcode_libdir_separator=:
9240
9241 case $host_cpu in
9242 hppa*64*|ia64*)
9243 hardcode_direct=no
9244 hardcode_shlibpath_var=no
9245 ;;
9246 *)
9247 hardcode_direct=yes
9248 hardcode_direct_absolute=yes
9249 export_dynamic_flag_spec='${wl}-E'
9250
9251 # hardcode_minus_L: Not really in the search PATH,
9252 # but as the default location of the library.
9253 hardcode_minus_L=yes
9254 ;;
9255 esac
9256 fi
9257 ;;
9258
9259 irix5* | irix6* | nonstopux*)
9260 if test "$GCC" = yes; then
f2c621e4 9261 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'
d7040cdb
SE
9262 # Try to use the -exported_symbol ld option, if it does not
9263 # work, assume that -exports_file does not work either and
9264 # implicitly export all symbols.
f2c621e4
AS
9265 save_LDFLAGS="$LDFLAGS"
9266 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
81ecdfbb 9268/* end confdefs.h. */
f2c621e4 9269int foo(void) {}
42ecbf5e 9270_ACEOF
81ecdfbb 9271if ac_fn_c_try_link "$LINENO"; then :
f2c621e4
AS
9272 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'
9273
42ecbf5e 9274fi
81ecdfbb
RW
9275rm -f core conftest.err conftest.$ac_objext \
9276 conftest$ac_exeext conftest.$ac_ext
f2c621e4 9277 LDFLAGS="$save_LDFLAGS"
d7040cdb 9278 else
3725885a
RW
9279 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'
9280 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'
d7040cdb
SE
9281 fi
9282 archive_cmds_need_lc='no'
9283 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9284 hardcode_libdir_separator=:
9285 inherit_rpath=yes
9286 link_all_deplibs=yes
9287 ;;
42ecbf5e 9288
d7040cdb
SE
9289 netbsd*)
9290 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9291 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9292 else
9293 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9294 fi
9295 hardcode_libdir_flag_spec='-R$libdir'
9296 hardcode_direct=yes
9297 hardcode_shlibpath_var=no
9298 ;;
42ecbf5e 9299
d7040cdb
SE
9300 newsos6)
9301 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9302 hardcode_direct=yes
9303 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9304 hardcode_libdir_separator=:
9305 hardcode_shlibpath_var=no
9306 ;;
42ecbf5e 9307
d7040cdb
SE
9308 *nto* | *qnx*)
9309 ;;
252b5132 9310
d7040cdb 9311 openbsd*)
718a6fd8
SE
9312 if test -f /usr/libexec/ld.so; then
9313 hardcode_direct=yes
9314 hardcode_shlibpath_var=no
9315 hardcode_direct_absolute=yes
9316 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
d7040cdb 9317 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
718a6fd8 9318 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
d7040cdb 9319 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
718a6fd8
SE
9320 export_dynamic_flag_spec='${wl}-E'
9321 else
9322 case $host_os in
9323 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9324 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9325 hardcode_libdir_flag_spec='-R$libdir'
9326 ;;
9327 *)
9328 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9329 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9330 ;;
9331 esac
9332 fi
9333 else
9334 ld_shlibs=no
d7040cdb
SE
9335 fi
9336 ;;
252b5132 9337
d7040cdb
SE
9338 os2*)
9339 hardcode_libdir_flag_spec='-L$libdir'
9340 hardcode_minus_L=yes
9341 allow_undefined_flag=unsupported
3725885a 9342 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'
d7040cdb
SE
9343 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9344 ;;
2481e6a2 9345
d7040cdb
SE
9346 osf3*)
9347 if test "$GCC" = yes; then
9348 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3725885a 9349 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'
d7040cdb
SE
9350 else
9351 allow_undefined_flag=' -expect_unresolved \*'
3725885a 9352 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'
d7040cdb
SE
9353 fi
9354 archive_cmds_need_lc='no'
9355 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9356 hardcode_libdir_separator=:
9357 ;;
42ecbf5e 9358
d7040cdb
SE
9359 osf4* | osf5*) # as osf3* with the addition of -msym flag
9360 if test "$GCC" = yes; then
9361 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
f2c621e4 9362 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'
d7040cdb
SE
9363 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9364 else
9365 allow_undefined_flag=' -expect_unresolved \*'
3725885a 9366 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'
d7040cdb 9367 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 9368 $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'
42ecbf5e 9369
d7040cdb
SE
9370 # Both c and cxx compiler support -rpath directly
9371 hardcode_libdir_flag_spec='-rpath $libdir'
9372 fi
9373 archive_cmds_need_lc='no'
9374 hardcode_libdir_separator=:
9375 ;;
9376
9377 solaris*)
9378 no_undefined_flag=' -z defs'
9379 if test "$GCC" = yes; then
9380 wlarc='${wl}'
f2c621e4 9381 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
d7040cdb 9382 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
f2c621e4 9383 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
d7040cdb
SE
9384 else
9385 case `$CC -V 2>&1` in
9386 *"Compilers 5.0"*)
9387 wlarc=''
9388 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9389 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9390 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9391 ;;
9392 *)
9393 wlarc='${wl}'
9394 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9395 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9396 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9397 ;;
9398 esac
9399 fi
9400 hardcode_libdir_flag_spec='-R$libdir'
9401 hardcode_shlibpath_var=no
9402 case $host_os in
9403 solaris2.[0-5] | solaris2.[0-5].*) ;;
9404 *)
9405 # The compiler driver will combine and reorder linker options,
9406 # but understands `-z linker_flag'. GCC discards it without `$wl',
9407 # but is careful enough not to reorder.
9408 # Supported since Solaris 2.6 (maybe 2.5.1?)
9409 if test "$GCC" = yes; then
9410 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9411 else
9412 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9413 fi
9414 ;;
9415 esac
9416 link_all_deplibs=yes
9417 ;;
9418
9419 sunos4*)
9420 if test "x$host_vendor" = xsequent; then
9421 # Use $CC to link under sequent, because it throws in some extra .o
9422 # files that make .init and .fini sections work.
9423 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9424 else
9425 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9426 fi
9427 hardcode_libdir_flag_spec='-L$libdir'
9428 hardcode_direct=yes
9429 hardcode_minus_L=yes
9430 hardcode_shlibpath_var=no
9431 ;;
9432
9433 sysv4)
9434 case $host_vendor in
9435 sni)
9436 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9437 hardcode_direct=yes # is this really true???
9438 ;;
9439 siemens)
9440 ## LD is ld it makes a PLAMLIB
9441 ## CC just makes a GrossModule.
9442 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9443 reload_cmds='$CC -r -o $output$reload_objs'
9444 hardcode_direct=no
9445 ;;
9446 motorola)
9447 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9448 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9449 ;;
9450 esac
9451 runpath_var='LD_RUN_PATH'
9452 hardcode_shlibpath_var=no
9453 ;;
9454
9455 sysv4.3*)
9456 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9457 hardcode_shlibpath_var=no
9458 export_dynamic_flag_spec='-Bexport'
9459 ;;
9460
9461 sysv4*MP*)
9462 if test -d /usr/nec; then
9463 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9464 hardcode_shlibpath_var=no
9465 runpath_var=LD_RUN_PATH
9466 hardcode_runpath_var=yes
9467 ld_shlibs=yes
9468 fi
9469 ;;
9470
9471 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9472 no_undefined_flag='${wl}-z,text'
9473 archive_cmds_need_lc=no
9474 hardcode_shlibpath_var=no
9475 runpath_var='LD_RUN_PATH'
9476
9477 if test "$GCC" = yes; then
9478 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9479 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9480 else
9481 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9482 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9483 fi
9484 ;;
9485
9486 sysv5* | sco3.2v5* | sco5v6*)
9487 # Note: We can NOT use -z defs as we might desire, because we do not
9488 # link with -lc, and that would cause any symbols used from libc to
9489 # always be unresolved, which means just about no library would
9490 # ever link correctly. If we're not using GNU ld we use -z text
9491 # though, which does catch some bad symbols but isn't as heavy-handed
9492 # as -z defs.
9493 no_undefined_flag='${wl}-z,text'
9494 allow_undefined_flag='${wl}-z,nodefs'
9495 archive_cmds_need_lc=no
9496 hardcode_shlibpath_var=no
9497 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9498 hardcode_libdir_separator=':'
9499 link_all_deplibs=yes
9500 export_dynamic_flag_spec='${wl}-Bexport'
9501 runpath_var='LD_RUN_PATH'
9502
9503 if test "$GCC" = yes; then
9504 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9505 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9506 else
9507 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9508 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9509 fi
9510 ;;
9511
9512 uts4*)
9513 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9514 hardcode_libdir_flag_spec='-L$libdir'
9515 hardcode_shlibpath_var=no
9516 ;;
9517
9518 *)
9519 ld_shlibs=no
9520 ;;
9521 esac
9522
9523 if test x$host_vendor = xsni; then
9524 case $host in
9525 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9526 export_dynamic_flag_spec='${wl}-Blargedynsym'
9527 ;;
9528 esac
9529 fi
9530 fi
9531
81ecdfbb
RW
9532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9533$as_echo "$ld_shlibs" >&6; }
d7040cdb
SE
9534test "$ld_shlibs" = no && can_build_shared=no
9535
9536with_gnu_ld=$with_gnu_ld
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552#
9553# Do we need to explicitly link libc?
9554#
9555case "x$archive_cmds_need_lc" in
9556x|xyes)
9557 # Assume -lc should be added
9558 archive_cmds_need_lc=yes
9559
9560 if test "$enable_shared" = yes && test "$GCC" = yes; then
9561 case $archive_cmds in
9562 *'~'*)
9563 # FIXME: we may have to deal with multi-command sequences.
9564 ;;
9565 '$CC '*)
9566 # Test whether the compiler implicitly links with -lc since on some
9567 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9568 # to ld, don't add -lc before -lgcc.
81ecdfbb
RW
9569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9570$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
d0ac1c44 9571if ${lt_cv_archive_cmds_need_lc+:} false; then :
81ecdfbb 9572 $as_echo_n "(cached) " >&6
39144654
RW
9573else
9574 $RM conftest*
9575 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 9576
81ecdfbb 9577 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
d7040cdb 9578 (eval $ac_compile) 2>&5
20e95c23 9579 ac_status=$?
81ecdfbb
RW
9580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9581 test $ac_status = 0; } 2>conftest.err; then
39144654
RW
9582 soname=conftest
9583 lib=conftest
9584 libobjs=conftest.$ac_objext
9585 deplibs=
9586 wl=$lt_prog_compiler_wl
9587 pic_flag=$lt_prog_compiler_pic
9588 compiler_flags=-v
9589 linker_flags=-v
9590 verstring=
9591 output_objdir=.
9592 libname=conftest
9593 lt_save_allow_undefined_flag=$allow_undefined_flag
9594 allow_undefined_flag=
81ecdfbb 9595 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
d7040cdb 9596 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20e95c23 9597 ac_status=$?
81ecdfbb
RW
9598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9599 test $ac_status = 0; }
39144654
RW
9600 then
9601 lt_cv_archive_cmds_need_lc=no
9602 else
9603 lt_cv_archive_cmds_need_lc=yes
9604 fi
9605 allow_undefined_flag=$lt_save_allow_undefined_flag
9606 else
9607 cat conftest.err 1>&5
9608 fi
9609 $RM conftest*
9610
9611fi
81ecdfbb
RW
9612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9613$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
39144654 9614 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
d7040cdb
SE
9615 ;;
9616 esac
9617 fi
9618 ;;
9619esac
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
81ecdfbb
RW
9777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9778$as_echo_n "checking dynamic linker characteristics... " >&6; }
718a6fd8
SE
9779
9780if test "$GCC" = yes; then
d7040cdb
SE
9781 case $host_os in
9782 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9783 *) lt_awk_arg="/^libraries:/" ;;
9784 esac
3725885a
RW
9785 case $host_os in
9786 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9787 *) lt_sed_strip_eq="s,=/,/,g" ;;
9788 esac
9789 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9790 case $lt_search_path_spec in
9791 *\;*)
d7040cdb
SE
9792 # if the path contains ";" then we assume it to be the separator
9793 # otherwise default to the standard path separator (i.e. ":") - it is
9794 # assumed that no part of a normal pathname contains ";" but that should
9795 # okay in the real world where ";" in dirpaths is itself problematic.
3725885a
RW
9796 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9797 ;;
9798 *)
9799 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9800 ;;
9801 esac
d7040cdb
SE
9802 # Ok, now we have the path, separated by spaces, we can step through it
9803 # and add multilib dir if necessary.
9804 lt_tmp_lt_search_path_spec=
9805 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9806 for lt_sys_path in $lt_search_path_spec; do
9807 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9808 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9809 else
9810 test -d "$lt_sys_path" && \
9811 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9812 fi
9813 done
3725885a 9814 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
d7040cdb
SE
9815BEGIN {RS=" "; FS="/|\n";} {
9816 lt_foo="";
9817 lt_count=0;
9818 for (lt_i = NF; lt_i > 0; lt_i--) {
9819 if ($lt_i != "" && $lt_i != ".") {
9820 if ($lt_i == "..") {
9821 lt_count++;
9822 } else {
9823 if (lt_count == 0) {
9824 lt_foo="/" $lt_i lt_foo;
9825 } else {
9826 lt_count--;
9827 }
9828 }
9829 }
9830 }
9831 if (lt_foo != "") { lt_freq[lt_foo]++; }
9832 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9833}'`
3725885a
RW
9834 # AWK program above erroneously prepends '/' to C:/dos/paths
9835 # for these hosts.
9836 case $host_os in
9837 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9838 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9839 esac
9840 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
d7040cdb
SE
9841else
9842 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9843fi
9844library_names_spec=
9845libname_spec='lib$name'
9846soname_spec=
9847shrext_cmds=".so"
9848postinstall_cmds=
9849postuninstall_cmds=
9850finish_cmds=
9851finish_eval=
9852shlibpath_var=
9853shlibpath_overrides_runpath=unknown
9854version_type=none
9855dynamic_linker="$host_os ld.so"
9856sys_lib_dlsearch_path_spec="/lib /usr/lib"
9857need_lib_prefix=unknown
9858hardcode_into_libs=no
9859
9860# when you set need_version to no, make sure it does not cause -set_version
9861# flags to be left without arguments
9862need_version=unknown
9863
9864case $host_os in
9865aix3*)
9866 version_type=linux
9867 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9868 shlibpath_var=LIBPATH
9869
9870 # AIX 3 has no versioning support, so we append a major version to the name.
9871 soname_spec='${libname}${release}${shared_ext}$major'
9872 ;;
9873
50e7d84b 9874aix[4-9]*)
d7040cdb
SE
9875 version_type=linux
9876 need_lib_prefix=no
9877 need_version=no
9878 hardcode_into_libs=yes
9879 if test "$host_cpu" = ia64; then
9880 # AIX 5 supports IA64
9881 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9882 shlibpath_var=LD_LIBRARY_PATH
9883 else
9884 # With GCC up to 2.95.x, collect2 would create an import file
9885 # for dependence libraries. The import file would start with
9886 # the line `#! .'. This would cause the generated library to
9887 # depend on `.', always an invalid library. This was fixed in
9888 # development snapshots of GCC prior to 3.0.
9889 case $host_os in
9890 aix4 | aix4.[01] | aix4.[01].*)
9891 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9892 echo ' yes '
9893 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9894 :
9895 else
9896 can_build_shared=no
9897 fi
9898 ;;
9899 esac
9900 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9901 # soname into executable. Probably we can add versioning support to
9902 # collect2, so additional links can be useful in future.
9903 if test "$aix_use_runtimelinking" = yes; then
9904 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9905 # instead of lib<name>.a to let people know that these are not
9906 # typical AIX shared libraries.
9907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9908 else
9909 # We preserve .a as extension for shared libraries through AIX4.2
9910 # and later when we are not doing run time linking.
9911 library_names_spec='${libname}${release}.a $libname.a'
9912 soname_spec='${libname}${release}${shared_ext}$major'
9913 fi
9914 shlibpath_var=LIBPATH
9915 fi
9916 ;;
9917
9918amigaos*)
718a6fd8
SE
9919 case $host_cpu in
9920 powerpc)
9921 # Since July 2007 AmigaOS4 officially supports .so libraries.
9922 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9924 ;;
9925 m68k)
d7040cdb
SE
9926 library_names_spec='$libname.ixlibrary $libname.a'
9927 # Create ${libname}_ixlibrary.a entries in /sys/libs.
3725885a 9928 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'
718a6fd8
SE
9929 ;;
9930 esac
d7040cdb
SE
9931 ;;
9932
9933beos*)
9934 library_names_spec='${libname}${shared_ext}'
9935 dynamic_linker="$host_os ld.so"
9936 shlibpath_var=LIBRARY_PATH
9937 ;;
9938
9939bsdi[45]*)
9940 version_type=linux
9941 need_version=no
9942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9943 soname_spec='${libname}${release}${shared_ext}$major'
9944 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9945 shlibpath_var=LD_LIBRARY_PATH
9946 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9947 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9948 # the default ld.so.conf also contains /usr/contrib/lib and
9949 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9950 # libtool to hard-code these into programs
9951 ;;
9952
718a6fd8 9953cygwin* | mingw* | pw32* | cegcc*)
d7040cdb
SE
9954 version_type=windows
9955 shrext_cmds=".dll"
9956 need_version=no
9957 need_lib_prefix=no
9958
f2c621e4
AS
9959 case $GCC,$host_os in
9960 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
d7040cdb
SE
9961 library_names_spec='$libname.dll.a'
9962 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9963 postinstall_cmds='base_file=`basename \${file}`~
9964 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9965 dldir=$destdir/`dirname \$dlpath`~
9966 test -d \$dldir || mkdir -p \$dldir~
9967 $install_prog $dir/$dlname \$dldir/$dlname~
9968 chmod a+x \$dldir/$dlname~
9969 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9970 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9971 fi'
9972 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9973 dlpath=$dir/\$dldll~
9974 $RM \$dlpath'
9975 shlibpath_overrides_runpath=yes
9976
9977 case $host_os in
9978 cygwin*)
9979 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9980 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
3725885a
RW
9981
9982 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
d7040cdb 9983 ;;
718a6fd8 9984 mingw* | cegcc*)
d7040cdb
SE
9985 # MinGW DLLs use traditional 'lib' prefix
9986 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
d7040cdb
SE
9987 ;;
9988 pw32*)
9989 # pw32 DLLs use 'pw' prefix rather than 'lib'
9990 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9991 ;;
9992 esac
9993 ;;
9994
9995 *)
9996 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9997 ;;
9998 esac
f2c621e4 9999 dynamic_linker='Win32 ld.exe'
d7040cdb
SE
10000 # FIXME: first we should search . and the directory the executable is in
10001 shlibpath_var=PATH
10002 ;;
10003
10004darwin* | rhapsody*)
10005 dynamic_linker="$host_os dyld"
10006 version_type=darwin
10007 need_lib_prefix=no
10008 need_version=no
10009 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10010 soname_spec='${libname}${release}${major}$shared_ext'
10011 shlibpath_overrides_runpath=yes
10012 shlibpath_var=DYLD_LIBRARY_PATH
10013 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10014
10015 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10016 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10017 ;;
10018
10019dgux*)
10020 version_type=linux
10021 need_lib_prefix=no
10022 need_version=no
10023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10024 soname_spec='${libname}${release}${shared_ext}$major'
10025 shlibpath_var=LD_LIBRARY_PATH
10026 ;;
10027
d7040cdb
SE
10028freebsd* | dragonfly*)
10029 # DragonFly does not have aout. When/if they implement a new
10030 # versioning mechanism, adjust this.
10031 if test -x /usr/bin/objformat; then
10032 objformat=`/usr/bin/objformat`
10033 else
10034 case $host_os in
6d2920c8 10035 freebsd[23].*) objformat=aout ;;
d7040cdb
SE
10036 *) objformat=elf ;;
10037 esac
10038 fi
10039 version_type=freebsd-$objformat
10040 case $version_type in
10041 freebsd-elf*)
10042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10043 need_version=no
10044 need_lib_prefix=no
10045 ;;
10046 freebsd-*)
10047 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10048 need_version=yes
10049 ;;
10050 esac
10051 shlibpath_var=LD_LIBRARY_PATH
10052 case $host_os in
6d2920c8 10053 freebsd2.*)
d7040cdb
SE
10054 shlibpath_overrides_runpath=yes
10055 ;;
10056 freebsd3.[01]* | freebsdelf3.[01]*)
10057 shlibpath_overrides_runpath=yes
10058 hardcode_into_libs=yes
10059 ;;
10060 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10061 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10062 shlibpath_overrides_runpath=no
10063 hardcode_into_libs=yes
10064 ;;
10065 *) # from 4.6 on, and DragonFly
10066 shlibpath_overrides_runpath=yes
10067 hardcode_into_libs=yes
10068 ;;
10069 esac
10070 ;;
10071
3725885a
RW
10072haiku*)
10073 version_type=linux
10074 need_lib_prefix=no
10075 need_version=no
10076 dynamic_linker="$host_os runtime_loader"
10077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10078 soname_spec='${libname}${release}${shared_ext}$major'
10079 shlibpath_var=LIBRARY_PATH
10080 shlibpath_overrides_runpath=yes
f2c621e4 10081 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
3725885a
RW
10082 hardcode_into_libs=yes
10083 ;;
10084
d7040cdb
SE
10085hpux9* | hpux10* | hpux11*)
10086 # Give a soname corresponding to the major version so that dld.sl refuses to
10087 # link against other versions.
10088 version_type=sunos
10089 need_lib_prefix=no
10090 need_version=no
10091 case $host_cpu in
10092 ia64*)
10093 shrext_cmds='.so'
10094 hardcode_into_libs=yes
10095 dynamic_linker="$host_os dld.so"
10096 shlibpath_var=LD_LIBRARY_PATH
10097 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10099 soname_spec='${libname}${release}${shared_ext}$major'
10100 if test "X$HPUX_IA64_MODE" = X32; then
10101 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10102 else
10103 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10104 fi
10105 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10106 ;;
10107 hppa*64*)
10108 shrext_cmds='.sl'
10109 hardcode_into_libs=yes
10110 dynamic_linker="$host_os dld.sl"
10111 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10112 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10114 soname_spec='${libname}${release}${shared_ext}$major'
10115 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10116 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10117 ;;
10118 *)
10119 shrext_cmds='.sl'
10120 dynamic_linker="$host_os dld.sl"
10121 shlibpath_var=SHLIB_PATH
10122 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10124 soname_spec='${libname}${release}${shared_ext}$major'
10125 ;;
10126 esac
3725885a 10127 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
d7040cdb 10128 postinstall_cmds='chmod 555 $lib'
3725885a
RW
10129 # or fails outright, so override atomically:
10130 install_override_mode=555
d7040cdb
SE
10131 ;;
10132
10133interix[3-9]*)
10134 version_type=linux
10135 need_lib_prefix=no
10136 need_version=no
10137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10138 soname_spec='${libname}${release}${shared_ext}$major'
10139 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10140 shlibpath_var=LD_LIBRARY_PATH
10141 shlibpath_overrides_runpath=no
10142 hardcode_into_libs=yes
10143 ;;
10144
10145irix5* | irix6* | nonstopux*)
10146 case $host_os in
10147 nonstopux*) version_type=nonstopux ;;
10148 *)
10149 if test "$lt_cv_prog_gnu_ld" = yes; then
10150 version_type=linux
10151 else
10152 version_type=irix
10153 fi ;;
10154 esac
10155 need_lib_prefix=no
10156 need_version=no
10157 soname_spec='${libname}${release}${shared_ext}$major'
10158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10159 case $host_os in
10160 irix5* | nonstopux*)
10161 libsuff= shlibsuff=
10162 ;;
10163 *)
10164 case $LD in # libtool.m4 will add one of these switches to LD
10165 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10166 libsuff= shlibsuff= libmagic=32-bit;;
10167 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10168 libsuff=32 shlibsuff=N32 libmagic=N32;;
10169 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10170 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10171 *) libsuff= shlibsuff= libmagic=never-match;;
10172 esac
10173 ;;
10174 esac
10175 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10176 shlibpath_overrides_runpath=no
10177 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10178 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10179 hardcode_into_libs=yes
10180 ;;
10181
10182# No shared lib support for Linux oldld, aout, or coff.
10183linux*oldld* | linux*aout* | linux*coff*)
10184 dynamic_linker=no
10185 ;;
10186
10187# This must be Linux ELF.
f4782128 10188linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
d7040cdb
SE
10189 version_type=linux
10190 need_lib_prefix=no
10191 need_version=no
10192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10193 soname_spec='${libname}${release}${shared_ext}$major'
10194 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10195 shlibpath_var=LD_LIBRARY_PATH
10196 shlibpath_overrides_runpath=no
39144654 10197
d7040cdb 10198 # Some binutils ld are patched to set DT_RUNPATH
d0ac1c44 10199 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
81ecdfbb 10200 $as_echo_n "(cached) " >&6
39144654
RW
10201else
10202 lt_cv_shlibpath_overrides_runpath=no
10203 save_LDFLAGS=$LDFLAGS
10204 save_libdir=$libdir
10205 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10206 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
81ecdfbb 10207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
10208/* end confdefs.h. */
10209
10210int
10211main ()
10212{
10213
10214 ;
10215 return 0;
10216}
10217_ACEOF
81ecdfbb
RW
10218if ac_fn_c_try_link "$LINENO"; then :
10219 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
39144654 10220 lt_cv_shlibpath_overrides_runpath=yes
d7040cdb 10221fi
d7040cdb 10222fi
81ecdfbb
RW
10223rm -f core conftest.err conftest.$ac_objext \
10224 conftest$ac_exeext conftest.$ac_ext
39144654
RW
10225 LDFLAGS=$save_LDFLAGS
10226 libdir=$save_libdir
10227
10228fi
10229
10230 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
d7040cdb
SE
10231
10232 # This implies no fast_install, which is unacceptable.
10233 # Some rework will be needed to allow for fast_install
10234 # before this can be enabled.
10235 hardcode_into_libs=yes
10236
10237 # Append ld.so.conf contents to the search path
10238 if test -f /etc/ld.so.conf; then
3725885a 10239 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' ' '`
f2c621e4 10240 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
d7040cdb
SE
10241 fi
10242
10243 # We used to test for /lib/ld.so.1 and disable shared libraries on
10244 # powerpc, because MkLinux only supported shared libraries with the
10245 # GNU dynamic linker. Since this was broken with cross compilers,
10246 # most powerpc-linux boxes support dynamic linking these days and
10247 # people can always --disable-shared, the test was removed, and we
10248 # assume the GNU/Linux dynamic linker is in use.
10249 dynamic_linker='GNU/Linux ld.so'
10250 ;;
10251
10252netbsd*)
10253 version_type=sunos
10254 need_lib_prefix=no
10255 need_version=no
10256 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10258 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10259 dynamic_linker='NetBSD (a.out) ld.so'
10260 else
10261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10262 soname_spec='${libname}${release}${shared_ext}$major'
10263 dynamic_linker='NetBSD ld.elf_so'
10264 fi
10265 shlibpath_var=LD_LIBRARY_PATH
10266 shlibpath_overrides_runpath=yes
10267 hardcode_into_libs=yes
10268 ;;
10269
10270newsos6)
10271 version_type=linux
10272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10273 shlibpath_var=LD_LIBRARY_PATH
10274 shlibpath_overrides_runpath=yes
10275 ;;
10276
10277*nto* | *qnx*)
10278 version_type=qnx
10279 need_lib_prefix=no
10280 need_version=no
10281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10282 soname_spec='${libname}${release}${shared_ext}$major'
10283 shlibpath_var=LD_LIBRARY_PATH
10284 shlibpath_overrides_runpath=no
10285 hardcode_into_libs=yes
10286 dynamic_linker='ldqnx.so'
10287 ;;
10288
10289openbsd*)
10290 version_type=sunos
10291 sys_lib_dlsearch_path_spec="/usr/lib"
10292 need_lib_prefix=no
10293 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10294 case $host_os in
10295 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10296 *) need_version=no ;;
10297 esac
10298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10299 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10300 shlibpath_var=LD_LIBRARY_PATH
10301 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10302 case $host_os in
10303 openbsd2.[89] | openbsd2.[89].*)
10304 shlibpath_overrides_runpath=no
10305 ;;
10306 *)
10307 shlibpath_overrides_runpath=yes
10308 ;;
10309 esac
10310 else
10311 shlibpath_overrides_runpath=yes
10312 fi
10313 ;;
10314
10315os2*)
10316 libname_spec='$name'
10317 shrext_cmds=".dll"
10318 need_lib_prefix=no
10319 library_names_spec='$libname${shared_ext} $libname.a'
10320 dynamic_linker='OS/2 ld.exe'
10321 shlibpath_var=LIBPATH
10322 ;;
10323
10324osf3* | osf4* | osf5*)
10325 version_type=osf
10326 need_lib_prefix=no
10327 need_version=no
10328 soname_spec='${libname}${release}${shared_ext}$major'
10329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10330 shlibpath_var=LD_LIBRARY_PATH
10331 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10332 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10333 ;;
10334
10335rdos*)
10336 dynamic_linker=no
10337 ;;
10338
10339solaris*)
10340 version_type=linux
10341 need_lib_prefix=no
10342 need_version=no
10343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10344 soname_spec='${libname}${release}${shared_ext}$major'
10345 shlibpath_var=LD_LIBRARY_PATH
10346 shlibpath_overrides_runpath=yes
10347 hardcode_into_libs=yes
10348 # ldd complains unless libraries are executable
10349 postinstall_cmds='chmod +x $lib'
10350 ;;
10351
10352sunos4*)
10353 version_type=sunos
10354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10355 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10356 shlibpath_var=LD_LIBRARY_PATH
10357 shlibpath_overrides_runpath=yes
10358 if test "$with_gnu_ld" = yes; then
10359 need_lib_prefix=no
10360 fi
10361 need_version=yes
10362 ;;
10363
10364sysv4 | sysv4.3*)
10365 version_type=linux
10366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10367 soname_spec='${libname}${release}${shared_ext}$major'
10368 shlibpath_var=LD_LIBRARY_PATH
10369 case $host_vendor in
10370 sni)
10371 shlibpath_overrides_runpath=no
10372 need_lib_prefix=no
10373 runpath_var=LD_RUN_PATH
10374 ;;
10375 siemens)
10376 need_lib_prefix=no
10377 ;;
10378 motorola)
10379 need_lib_prefix=no
10380 need_version=no
10381 shlibpath_overrides_runpath=no
10382 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10383 ;;
10384 esac
10385 ;;
10386
10387sysv4*MP*)
10388 if test -d /usr/nec ;then
10389 version_type=linux
10390 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10391 soname_spec='$libname${shared_ext}.$major'
10392 shlibpath_var=LD_LIBRARY_PATH
10393 fi
10394 ;;
10395
10396sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10397 version_type=freebsd-elf
10398 need_lib_prefix=no
10399 need_version=no
10400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10401 soname_spec='${libname}${release}${shared_ext}$major'
10402 shlibpath_var=LD_LIBRARY_PATH
10403 shlibpath_overrides_runpath=yes
10404 hardcode_into_libs=yes
10405 if test "$with_gnu_ld" = yes; then
10406 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10407 else
10408 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10409 case $host_os in
10410 sco3.2v5*)
10411 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10412 ;;
10413 esac
10414 fi
10415 sys_lib_dlsearch_path_spec='/usr/lib'
10416 ;;
10417
10418tpf*)
10419 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10420 version_type=linux
10421 need_lib_prefix=no
10422 need_version=no
718a6fd8 10423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
d7040cdb
SE
10424 shlibpath_var=LD_LIBRARY_PATH
10425 shlibpath_overrides_runpath=no
10426 hardcode_into_libs=yes
10427 ;;
10428
10429uts4*)
10430 version_type=linux
10431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10432 soname_spec='${libname}${release}${shared_ext}$major'
10433 shlibpath_var=LD_LIBRARY_PATH
10434 ;;
10435
10436*)
10437 dynamic_linker=no
10438 ;;
10439esac
81ecdfbb
RW
10440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10441$as_echo "$dynamic_linker" >&6; }
d7040cdb
SE
10442test "$dynamic_linker" = no && can_build_shared=no
10443
10444variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10445if test "$GCC" = yes; then
10446 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10447fi
10448
718a6fd8
SE
10449if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10450 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10451fi
10452if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10453 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10454fi
10455
d7040cdb
SE
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
3725885a
RW
10536
10537
10538
10539
10540
d7040cdb
SE
10541
10542
10543
10544
10545
10546
81ecdfbb
RW
10547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10548$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
d7040cdb
SE
10549hardcode_action=
10550if test -n "$hardcode_libdir_flag_spec" ||
10551 test -n "$runpath_var" ||
10552 test "X$hardcode_automatic" = "Xyes" ; then
10553
10554 # We can hardcode non-existent directories.
10555 if test "$hardcode_direct" != no &&
10556 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10557 # have to relink, otherwise we might link with an installed library
10558 # when we should be linking with a yet-to-be-installed one
10559 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10560 test "$hardcode_minus_L" != no; then
10561 # Linking always hardcodes the temporary library directory.
10562 hardcode_action=relink
10563 else
10564 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10565 hardcode_action=immediate
10566 fi
10567else
10568 # We cannot hardcode anything, or else we can only hardcode existing
10569 # directories.
10570 hardcode_action=unsupported
10571fi
81ecdfbb
RW
10572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10573$as_echo "$hardcode_action" >&6; }
d7040cdb
SE
10574
10575if test "$hardcode_action" = relink ||
10576 test "$inherit_rpath" = yes; then
10577 # Fast installation is not supported
10578 enable_fast_install=no
10579elif test "$shlibpath_overrides_runpath" = yes ||
10580 test "$enable_shared" = no; then
10581 # Fast installation is not necessary
10582 enable_fast_install=needless
10583fi
10584
10585
10586
10587
10588
10589
10590 if test "x$enable_dlopen" != xyes; then
10591 enable_dlopen=unknown
10592 enable_dlopen_self=unknown
10593 enable_dlopen_self_static=unknown
10594else
10595 lt_cv_dlopen=no
10596 lt_cv_dlopen_libs=
10597
10598 case $host_os in
10599 beos*)
10600 lt_cv_dlopen="load_add_on"
10601 lt_cv_dlopen_libs=
10602 lt_cv_dlopen_self=yes
10603 ;;
10604
718a6fd8 10605 mingw* | pw32* | cegcc*)
d7040cdb
SE
10606 lt_cv_dlopen="LoadLibrary"
10607 lt_cv_dlopen_libs=
10608 ;;
10609
10610 cygwin*)
10611 lt_cv_dlopen="dlopen"
10612 lt_cv_dlopen_libs=
10613 ;;
10614
10615 darwin*)
10616 # if libdl is installed we need to link against it
81ecdfbb
RW
10617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10618$as_echo_n "checking for dlopen in -ldl... " >&6; }
d0ac1c44 10619if ${ac_cv_lib_dl_dlopen+:} false; then :
81ecdfbb 10620 $as_echo_n "(cached) " >&6
d7040cdb
SE
10621else
10622 ac_check_lib_save_LIBS=$LIBS
10623LIBS="-ldl $LIBS"
81ecdfbb 10624cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
10625/* end confdefs.h. */
10626
81ecdfbb
RW
10627/* Override any GCC internal prototype to avoid an error.
10628 Use char because int might match the return type of a GCC
10629 builtin and then its argument prototype would still apply. */
d7040cdb
SE
10630#ifdef __cplusplus
10631extern "C"
10632#endif
d7040cdb
SE
10633char dlopen ();
10634int
10635main ()
10636{
81ecdfbb 10637return dlopen ();
d7040cdb
SE
10638 ;
10639 return 0;
10640}
10641_ACEOF
81ecdfbb 10642if ac_fn_c_try_link "$LINENO"; then :
d7040cdb
SE
10643 ac_cv_lib_dl_dlopen=yes
10644else
81ecdfbb 10645 ac_cv_lib_dl_dlopen=no
d7040cdb 10646fi
81ecdfbb
RW
10647rm -f core conftest.err conftest.$ac_objext \
10648 conftest$ac_exeext conftest.$ac_ext
d7040cdb
SE
10649LIBS=$ac_check_lib_save_LIBS
10650fi
81ecdfbb
RW
10651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10652$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
d0ac1c44 10653if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
d7040cdb
SE
10654 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10655else
10656
10657 lt_cv_dlopen="dyld"
10658 lt_cv_dlopen_libs=
10659 lt_cv_dlopen_self=yes
10660
10661fi
10662
10663 ;;
10664
10665 *)
81ecdfbb 10666 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
d0ac1c44 10667if test "x$ac_cv_func_shl_load" = xyes; then :
d7040cdb
SE
10668 lt_cv_dlopen="shl_load"
10669else
81ecdfbb
RW
10670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10671$as_echo_n "checking for shl_load in -ldld... " >&6; }
d0ac1c44 10672if ${ac_cv_lib_dld_shl_load+:} false; then :
81ecdfbb 10673 $as_echo_n "(cached) " >&6
d7040cdb
SE
10674else
10675 ac_check_lib_save_LIBS=$LIBS
10676LIBS="-ldld $LIBS"
81ecdfbb 10677cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
10678/* end confdefs.h. */
10679
81ecdfbb
RW
10680/* Override any GCC internal prototype to avoid an error.
10681 Use char because int might match the return type of a GCC
10682 builtin and then its argument prototype would still apply. */
d7040cdb
SE
10683#ifdef __cplusplus
10684extern "C"
10685#endif
d7040cdb
SE
10686char shl_load ();
10687int
10688main ()
10689{
81ecdfbb 10690return shl_load ();
d7040cdb
SE
10691 ;
10692 return 0;
10693}
10694_ACEOF
81ecdfbb 10695if ac_fn_c_try_link "$LINENO"; then :
d7040cdb
SE
10696 ac_cv_lib_dld_shl_load=yes
10697else
81ecdfbb 10698 ac_cv_lib_dld_shl_load=no
d7040cdb 10699fi
81ecdfbb
RW
10700rm -f core conftest.err conftest.$ac_objext \
10701 conftest$ac_exeext conftest.$ac_ext
d7040cdb
SE
10702LIBS=$ac_check_lib_save_LIBS
10703fi
81ecdfbb
RW
10704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10705$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
d0ac1c44 10706if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
718a6fd8 10707 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
d7040cdb 10708else
81ecdfbb 10709 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
d0ac1c44 10710if test "x$ac_cv_func_dlopen" = xyes; then :
81ecdfbb 10711 lt_cv_dlopen="dlopen"
d7040cdb 10712else
81ecdfbb
RW
10713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10714$as_echo_n "checking for dlopen in -ldl... " >&6; }
d0ac1c44 10715if ${ac_cv_lib_dl_dlopen+:} false; then :
81ecdfbb
RW
10716 $as_echo_n "(cached) " >&6
10717else
10718 ac_check_lib_save_LIBS=$LIBS
10719LIBS="-ldl $LIBS"
10720cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb 10721/* end confdefs.h. */
d7040cdb 10722
81ecdfbb
RW
10723/* Override any GCC internal prototype to avoid an error.
10724 Use char because int might match the return type of a GCC
10725 builtin and then its argument prototype would still apply. */
d7040cdb
SE
10726#ifdef __cplusplus
10727extern "C"
d7040cdb 10728#endif
d7040cdb 10729char dlopen ();
d7040cdb
SE
10730int
10731main ()
10732{
81ecdfbb 10733return dlopen ();
d7040cdb
SE
10734 ;
10735 return 0;
10736}
10737_ACEOF
81ecdfbb
RW
10738if ac_fn_c_try_link "$LINENO"; then :
10739 ac_cv_lib_dl_dlopen=yes
d7040cdb 10740else
81ecdfbb 10741 ac_cv_lib_dl_dlopen=no
d7040cdb 10742fi
81ecdfbb
RW
10743rm -f core conftest.err conftest.$ac_objext \
10744 conftest$ac_exeext conftest.$ac_ext
10745LIBS=$ac_check_lib_save_LIBS
d7040cdb 10746fi
81ecdfbb
RW
10747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10748$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
d0ac1c44 10749if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
81ecdfbb 10750 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
d7040cdb 10751else
81ecdfbb
RW
10752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10753$as_echo_n "checking for dlopen in -lsvld... " >&6; }
d0ac1c44 10754if ${ac_cv_lib_svld_dlopen+:} false; then :
81ecdfbb 10755 $as_echo_n "(cached) " >&6
d7040cdb
SE
10756else
10757 ac_check_lib_save_LIBS=$LIBS
81ecdfbb
RW
10758LIBS="-lsvld $LIBS"
10759cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
10760/* end confdefs.h. */
10761
81ecdfbb
RW
10762/* Override any GCC internal prototype to avoid an error.
10763 Use char because int might match the return type of a GCC
10764 builtin and then its argument prototype would still apply. */
d7040cdb
SE
10765#ifdef __cplusplus
10766extern "C"
10767#endif
d7040cdb
SE
10768char dlopen ();
10769int
10770main ()
10771{
81ecdfbb 10772return dlopen ();
d7040cdb
SE
10773 ;
10774 return 0;
10775}
10776_ACEOF
81ecdfbb
RW
10777if ac_fn_c_try_link "$LINENO"; then :
10778 ac_cv_lib_svld_dlopen=yes
d7040cdb 10779else
81ecdfbb 10780 ac_cv_lib_svld_dlopen=no
d7040cdb 10781fi
81ecdfbb
RW
10782rm -f core conftest.err conftest.$ac_objext \
10783 conftest$ac_exeext conftest.$ac_ext
d7040cdb
SE
10784LIBS=$ac_check_lib_save_LIBS
10785fi
81ecdfbb
RW
10786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10787$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
d0ac1c44 10788if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
81ecdfbb 10789 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
d7040cdb 10790else
81ecdfbb
RW
10791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10792$as_echo_n "checking for dld_link in -ldld... " >&6; }
d0ac1c44 10793if ${ac_cv_lib_dld_dld_link+:} false; then :
81ecdfbb 10794 $as_echo_n "(cached) " >&6
d7040cdb
SE
10795else
10796 ac_check_lib_save_LIBS=$LIBS
81ecdfbb
RW
10797LIBS="-ldld $LIBS"
10798cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
10799/* end confdefs.h. */
10800
81ecdfbb
RW
10801/* Override any GCC internal prototype to avoid an error.
10802 Use char because int might match the return type of a GCC
10803 builtin and then its argument prototype would still apply. */
d7040cdb
SE
10804#ifdef __cplusplus
10805extern "C"
10806#endif
81ecdfbb 10807char dld_link ();
d7040cdb
SE
10808int
10809main ()
10810{
81ecdfbb 10811return dld_link ();
d7040cdb
SE
10812 ;
10813 return 0;
10814}
10815_ACEOF
81ecdfbb 10816if ac_fn_c_try_link "$LINENO"; then :
d7040cdb
SE
10817 ac_cv_lib_dld_dld_link=yes
10818else
81ecdfbb 10819 ac_cv_lib_dld_dld_link=no
d7040cdb 10820fi
81ecdfbb
RW
10821rm -f core conftest.err conftest.$ac_objext \
10822 conftest$ac_exeext conftest.$ac_ext
d7040cdb
SE
10823LIBS=$ac_check_lib_save_LIBS
10824fi
81ecdfbb
RW
10825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10826$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
d0ac1c44 10827if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
718a6fd8 10828 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
d7040cdb
SE
10829fi
10830
10831
10832fi
10833
10834
10835fi
10836
10837
10838fi
10839
10840
10841fi
10842
10843
10844fi
10845
10846 ;;
10847 esac
10848
10849 if test "x$lt_cv_dlopen" != xno; then
10850 enable_dlopen=yes
10851 else
10852 enable_dlopen=no
10853 fi
10854
10855 case $lt_cv_dlopen in
10856 dlopen)
10857 save_CPPFLAGS="$CPPFLAGS"
10858 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10859
10860 save_LDFLAGS="$LDFLAGS"
10861 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10862
10863 save_LIBS="$LIBS"
10864 LIBS="$lt_cv_dlopen_libs $LIBS"
10865
81ecdfbb
RW
10866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10867$as_echo_n "checking whether a program can dlopen itself... " >&6; }
d0ac1c44 10868if ${lt_cv_dlopen_self+:} false; then :
81ecdfbb 10869 $as_echo_n "(cached) " >&6
d7040cdb
SE
10870else
10871 if test "$cross_compiling" = yes; then :
10872 lt_cv_dlopen_self=cross
10873else
10874 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10875 lt_status=$lt_dlunknown
10876 cat > conftest.$ac_ext <<_LT_EOF
43e05cd4 10877#line 10877 "configure"
d7040cdb
SE
10878#include "confdefs.h"
10879
10880#if HAVE_DLFCN_H
10881#include <dlfcn.h>
10882#endif
10883
10884#include <stdio.h>
10885
10886#ifdef RTLD_GLOBAL
10887# define LT_DLGLOBAL RTLD_GLOBAL
10888#else
10889# ifdef DL_GLOBAL
10890# define LT_DLGLOBAL DL_GLOBAL
10891# else
10892# define LT_DLGLOBAL 0
10893# endif
10894#endif
10895
10896/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10897 find out it does not work in some platform. */
10898#ifndef LT_DLLAZY_OR_NOW
10899# ifdef RTLD_LAZY
10900# define LT_DLLAZY_OR_NOW RTLD_LAZY
10901# else
10902# ifdef DL_LAZY
10903# define LT_DLLAZY_OR_NOW DL_LAZY
10904# else
10905# ifdef RTLD_NOW
10906# define LT_DLLAZY_OR_NOW RTLD_NOW
10907# else
10908# ifdef DL_NOW
10909# define LT_DLLAZY_OR_NOW DL_NOW
10910# else
10911# define LT_DLLAZY_OR_NOW 0
10912# endif
10913# endif
10914# endif
10915# endif
10916#endif
10917
3725885a
RW
10918/* When -fvisbility=hidden is used, assume the code has been annotated
10919 correspondingly for the symbols needed. */
10920#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
f2c621e4 10921void fnord () __attribute__((visibility("default")));
3725885a
RW
10922#endif
10923
f2c621e4 10924void fnord () { int i=42; }
d7040cdb
SE
10925int main ()
10926{
10927 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10928 int status = $lt_dlunknown;
10929
10930 if (self)
10931 {
10932 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
3725885a
RW
10933 else
10934 {
10935 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10936 else puts (dlerror ());
10937 }
d7040cdb
SE
10938 /* dlclose (self); */
10939 }
10940 else
10941 puts (dlerror ());
10942
718a6fd8 10943 return status;
d7040cdb
SE
10944}
10945_LT_EOF
81ecdfbb 10946 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
d7040cdb
SE
10947 (eval $ac_link) 2>&5
10948 ac_status=$?
81ecdfbb
RW
10949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10950 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
d7040cdb
SE
10951 (./conftest; exit; ) >&5 2>/dev/null
10952 lt_status=$?
10953 case x$lt_status in
10954 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10955 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10956 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10957 esac
10958 else :
10959 # compilation failed
10960 lt_cv_dlopen_self=no
10961 fi
10962fi
10963rm -fr conftest*
10964
10965
10966fi
81ecdfbb
RW
10967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10968$as_echo "$lt_cv_dlopen_self" >&6; }
d7040cdb
SE
10969
10970 if test "x$lt_cv_dlopen_self" = xyes; then
10971 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
81ecdfbb
RW
10972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10973$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
d0ac1c44 10974if ${lt_cv_dlopen_self_static+:} false; then :
81ecdfbb 10975 $as_echo_n "(cached) " >&6
d7040cdb
SE
10976else
10977 if test "$cross_compiling" = yes; then :
10978 lt_cv_dlopen_self_static=cross
10979else
10980 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10981 lt_status=$lt_dlunknown
10982 cat > conftest.$ac_ext <<_LT_EOF
43e05cd4 10983#line 10983 "configure"
d7040cdb
SE
10984#include "confdefs.h"
10985
10986#if HAVE_DLFCN_H
10987#include <dlfcn.h>
10988#endif
10989
10990#include <stdio.h>
10991
10992#ifdef RTLD_GLOBAL
10993# define LT_DLGLOBAL RTLD_GLOBAL
10994#else
10995# ifdef DL_GLOBAL
10996# define LT_DLGLOBAL DL_GLOBAL
10997# else
10998# define LT_DLGLOBAL 0
10999# endif
11000#endif
11001
11002/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11003 find out it does not work in some platform. */
11004#ifndef LT_DLLAZY_OR_NOW
11005# ifdef RTLD_LAZY
11006# define LT_DLLAZY_OR_NOW RTLD_LAZY
11007# else
11008# ifdef DL_LAZY
11009# define LT_DLLAZY_OR_NOW DL_LAZY
11010# else
11011# ifdef RTLD_NOW
11012# define LT_DLLAZY_OR_NOW RTLD_NOW
11013# else
11014# ifdef DL_NOW
11015# define LT_DLLAZY_OR_NOW DL_NOW
11016# else
11017# define LT_DLLAZY_OR_NOW 0
11018# endif
11019# endif
11020# endif
11021# endif
11022#endif
11023
3725885a
RW
11024/* When -fvisbility=hidden is used, assume the code has been annotated
11025 correspondingly for the symbols needed. */
11026#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
f2c621e4 11027void fnord () __attribute__((visibility("default")));
3725885a
RW
11028#endif
11029
f2c621e4 11030void fnord () { int i=42; }
d7040cdb
SE
11031int main ()
11032{
11033 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11034 int status = $lt_dlunknown;
11035
11036 if (self)
11037 {
11038 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
3725885a
RW
11039 else
11040 {
11041 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11042 else puts (dlerror ());
11043 }
d7040cdb
SE
11044 /* dlclose (self); */
11045 }
11046 else
11047 puts (dlerror ());
11048
718a6fd8 11049 return status;
d7040cdb
SE
11050}
11051_LT_EOF
81ecdfbb 11052 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
d7040cdb
SE
11053 (eval $ac_link) 2>&5
11054 ac_status=$?
81ecdfbb
RW
11055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11056 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
d7040cdb
SE
11057 (./conftest; exit; ) >&5 2>/dev/null
11058 lt_status=$?
11059 case x$lt_status in
11060 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11061 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11062 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11063 esac
11064 else :
11065 # compilation failed
11066 lt_cv_dlopen_self_static=no
11067 fi
11068fi
11069rm -fr conftest*
11070
11071
11072fi
81ecdfbb
RW
11073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11074$as_echo "$lt_cv_dlopen_self_static" >&6; }
d7040cdb
SE
11075 fi
11076
11077 CPPFLAGS="$save_CPPFLAGS"
11078 LDFLAGS="$save_LDFLAGS"
11079 LIBS="$save_LIBS"
11080 ;;
11081 esac
11082
11083 case $lt_cv_dlopen_self in
11084 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11085 *) enable_dlopen_self=unknown ;;
11086 esac
11087
11088 case $lt_cv_dlopen_self_static in
11089 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11090 *) enable_dlopen_self_static=unknown ;;
11091 esac
11092fi
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110striplib=
11111old_striplib=
81ecdfbb
RW
11112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11113$as_echo_n "checking whether stripping libraries is possible... " >&6; }
d7040cdb
SE
11114if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11115 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11116 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
81ecdfbb
RW
11117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11118$as_echo "yes" >&6; }
d7040cdb
SE
11119else
11120# FIXME - insert some real tests, host_os isn't really good enough
11121 case $host_os in
11122 darwin*)
11123 if test -n "$STRIP" ; then
11124 striplib="$STRIP -x"
11125 old_striplib="$STRIP -S"
81ecdfbb
RW
11126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11127$as_echo "yes" >&6; }
d7040cdb 11128 else
81ecdfbb
RW
11129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11130$as_echo "no" >&6; }
d7040cdb
SE
11131 fi
11132 ;;
11133 *)
81ecdfbb
RW
11134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11135$as_echo "no" >&6; }
d7040cdb
SE
11136 ;;
11137 esac
11138fi
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151 # Report which library types will actually be built
81ecdfbb
RW
11152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11153$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11155$as_echo "$can_build_shared" >&6; }
d7040cdb 11156
81ecdfbb
RW
11157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11158$as_echo_n "checking whether to build shared libraries... " >&6; }
d7040cdb
SE
11159 test "$can_build_shared" = "no" && enable_shared=no
11160
11161 # On AIX, shared libraries and static libraries use the same namespace, and
11162 # are all built from PIC.
11163 case $host_os in
11164 aix3*)
11165 test "$enable_shared" = yes && enable_static=no
11166 if test -n "$RANLIB"; then
11167 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11168 postinstall_cmds='$RANLIB $lib'
11169 fi
11170 ;;
11171
50e7d84b 11172 aix[4-9]*)
d7040cdb
SE
11173 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11174 test "$enable_shared" = yes && enable_static=no
11175 fi
11176 ;;
11177 esac
81ecdfbb
RW
11178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11179$as_echo "$enable_shared" >&6; }
d7040cdb 11180
81ecdfbb
RW
11181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11182$as_echo_n "checking whether to build static libraries... " >&6; }
d7040cdb
SE
11183 # Make sure either enable_shared or enable_static is yes.
11184 test "$enable_shared" = yes || enable_static=yes
81ecdfbb
RW
11185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11186$as_echo "$enable_static" >&6; }
d7040cdb
SE
11187
11188
11189
11190
11191fi
11192ac_ext=c
11193ac_cpp='$CPP $CPPFLAGS'
11194ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11195ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11196ac_compiler_gnu=$ac_cv_c_compiler_gnu
11197
11198CC="$lt_save_CC"
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
81ecdfbb 11212 ac_config_commands="$ac_config_commands libtool"
d7040cdb
SE
11213
11214
11215
11216
11217# Only expand once:
11218
11219
11220
b879806f
AM
11221# The tests for host and target for $enable_largefile require
11222# canonical names.
11223
11224
11225
11226# As the $enable_largefile decision depends on --enable-plugins we must set it
11227# even in directories otherwise not depending on the $plugins option.
11228
11229
11230 maybe_plugins=no
11231 for ac_header in dlfcn.h
11232do :
11233 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11234"
d0ac1c44 11235if test "x$ac_cv_header_dlfcn_h" = xyes; then :
b879806f
AM
11236 cat >>confdefs.h <<_ACEOF
11237#define HAVE_DLFCN_H 1
11238_ACEOF
11239 maybe_plugins=yes
11240fi
11241
11242done
11243
11244 for ac_header in windows.h
11245do :
11246 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
11247"
d0ac1c44 11248if test "x$ac_cv_header_windows_h" = xyes; then :
b879806f
AM
11249 cat >>confdefs.h <<_ACEOF
11250#define HAVE_WINDOWS_H 1
11251_ACEOF
11252 maybe_plugins=yes
11253fi
11254
11255done
11256
11257
11258 # Check whether --enable-plugins was given.
11259if test "${enable_plugins+set}" = set; then :
11260 enableval=$enable_plugins; case "${enableval}" in
11261 no) plugins=no ;;
11262 *) plugins=yes
11263 if test "$maybe_plugins" != "yes" ; then
d0ac1c44 11264 as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
b879806f
AM
11265 fi ;;
11266 esac
11267else
11268 plugins=$maybe_plugins
11269
11270fi
11271
2974be62 11272 if test "$plugins" = "yes"; then
3cba8b6c
L
11273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
11274$as_echo_n "checking for library containing dlsym... " >&6; }
d0ac1c44 11275if ${ac_cv_search_dlsym+:} false; then :
2974be62
AM
11276 $as_echo_n "(cached) " >&6
11277else
11278 ac_func_search_save_LIBS=$LIBS
11279cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11280/* end confdefs.h. */
11281
11282/* Override any GCC internal prototype to avoid an error.
11283 Use char because int might match the return type of a GCC
11284 builtin and then its argument prototype would still apply. */
11285#ifdef __cplusplus
11286extern "C"
11287#endif
3cba8b6c 11288char dlsym ();
2974be62
AM
11289int
11290main ()
11291{
3cba8b6c 11292return dlsym ();
2974be62
AM
11293 ;
11294 return 0;
11295}
11296_ACEOF
11297for ac_lib in '' dl; do
11298 if test -z "$ac_lib"; then
11299 ac_res="none required"
11300 else
11301 ac_res=-l$ac_lib
11302 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11303 fi
11304 if ac_fn_c_try_link "$LINENO"; then :
3cba8b6c 11305 ac_cv_search_dlsym=$ac_res
2974be62
AM
11306fi
11307rm -f core conftest.err conftest.$ac_objext \
11308 conftest$ac_exeext
d0ac1c44 11309 if ${ac_cv_search_dlsym+:} false; then :
2974be62
AM
11310 break
11311fi
11312done
d0ac1c44 11313if ${ac_cv_search_dlsym+:} false; then :
2974be62
AM
11314
11315else
3cba8b6c 11316 ac_cv_search_dlsym=no
2974be62
AM
11317fi
11318rm conftest.$ac_ext
11319LIBS=$ac_func_search_save_LIBS
11320fi
3cba8b6c
L
11321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
11322$as_echo "$ac_cv_search_dlsym" >&6; }
11323ac_res=$ac_cv_search_dlsym
2974be62
AM
11324if test "$ac_res" != no; then :
11325 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11326
11327fi
11328
11329 fi
b879806f
AM
11330
11331
11332case "${host}" in
c8693053
RO
11333 sparc-*-solaris*|i?86-*-solaris*)
11334 # On native 32-bit Solaris/SPARC and x86, large-file and procfs support
11335 # were mutually exclusive until Solaris 11.3. Without procfs support,
11336 # the bfd/ elf module cannot provide certain routines such as
11337 # elfcore_write_prpsinfo or elfcore_write_prstatus. So unless the user
11338 # explicitly requested large-file support through the
11339 # --enable-largefile switch, disable large-file support in favor of
11340 # procfs support.
11341 #
11342 # Check if <sys/procfs.h> is incompatible with large-file support.
11343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11344/* end confdefs.h. */
11345#define _FILE_OFFSET_BITS 64
11346#define _STRUCTURED_PROC 1
11347#include <sys/procfs.h>
11348int
11349main ()
11350{
11351
11352 ;
11353 return 0;
11354}
11355_ACEOF
11356if ac_fn_c_try_compile "$LINENO"; then :
11357 acx_cv_procfs_lfs=yes
11358else
11359 acx_cv_procfs_lfs=no
11360fi
11361rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11362 #
11363 # Forcefully disable large-file support only if necessary, gdb is in
11364 # tree and enabled.
11365 if test "${target}" = "${host}" -a "$acx_cv_procfs_lfs" = no \
11366 -a -d $srcdir/../gdb -a "$enable_gdb" != no; then
11367 : ${enable_largefile="no"}
11368 if test "$plugins" = yes; then
11369 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
11370plugin support disabled; require large-file support which is incompatible with GDB." >&5
11371$as_echo "$as_me: WARNING:
11372plugin support disabled; require large-file support which is incompatible with GDB." >&2;}
11373 plugins=no
11374 fi
11375 fi
11376 #
11377 # Explicitly undef _FILE_OFFSET_BITS if enable_largefile=no for the
11378 # benefit of g++ 9+ which predefines it on Solaris.
11379 if test "$enable_largefile" = no; then
11380 LARGEFILE_CPPFLAGS="-U_FILE_OFFSET_BITS"
11381
11382 fi
b879806f
AM
11383 ;;
11384esac
11385
11386# Check whether --enable-largefile was given.
11387if test "${enable_largefile+set}" = set; then :
11388 enableval=$enable_largefile;
11389fi
11390
11391if test "$enable_largefile" != no; then
11392
11393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
11394$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
d0ac1c44 11395if ${ac_cv_sys_largefile_CC+:} false; then :
b879806f
AM
11396 $as_echo_n "(cached) " >&6
11397else
11398 ac_cv_sys_largefile_CC=no
11399 if test "$GCC" != yes; then
11400 ac_save_CC=$CC
11401 while :; do
11402 # IRIX 6.2 and later do not support large files by default,
11403 # so use the C compiler's -n32 option if that helps.
11404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11405/* end confdefs.h. */
11406#include <sys/types.h>
11407 /* Check that off_t can represent 2**63 - 1 correctly.
11408 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11409 since some C++ compilers masquerading as C compilers
11410 incorrectly reject 9223372036854775807. */
e0b2a78c 11411#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
b879806f
AM
11412 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11413 && LARGE_OFF_T % 2147483647 == 1)
11414 ? 1 : -1];
11415int
11416main ()
11417{
11418
11419 ;
11420 return 0;
11421}
11422_ACEOF
11423 if ac_fn_c_try_compile "$LINENO"; then :
11424 break
11425fi
11426rm -f core conftest.err conftest.$ac_objext
11427 CC="$CC -n32"
11428 if ac_fn_c_try_compile "$LINENO"; then :
11429 ac_cv_sys_largefile_CC=' -n32'; break
11430fi
11431rm -f core conftest.err conftest.$ac_objext
11432 break
11433 done
11434 CC=$ac_save_CC
11435 rm -f conftest.$ac_ext
11436 fi
11437fi
11438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
11439$as_echo "$ac_cv_sys_largefile_CC" >&6; }
11440 if test "$ac_cv_sys_largefile_CC" != no; then
11441 CC=$CC$ac_cv_sys_largefile_CC
11442 fi
11443
11444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
11445$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
d0ac1c44 11446if ${ac_cv_sys_file_offset_bits+:} false; then :
b879806f
AM
11447 $as_echo_n "(cached) " >&6
11448else
11449 while :; do
11450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11451/* end confdefs.h. */
11452#include <sys/types.h>
11453 /* Check that off_t can represent 2**63 - 1 correctly.
11454 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11455 since some C++ compilers masquerading as C compilers
11456 incorrectly reject 9223372036854775807. */
e0b2a78c 11457#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
b879806f
AM
11458 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11459 && LARGE_OFF_T % 2147483647 == 1)
11460 ? 1 : -1];
11461int
11462main ()
11463{
11464
11465 ;
11466 return 0;
11467}
11468_ACEOF
11469if ac_fn_c_try_compile "$LINENO"; then :
11470 ac_cv_sys_file_offset_bits=no; break
11471fi
11472rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11474/* end confdefs.h. */
11475#define _FILE_OFFSET_BITS 64
11476#include <sys/types.h>
11477 /* Check that off_t can represent 2**63 - 1 correctly.
11478 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11479 since some C++ compilers masquerading as C compilers
11480 incorrectly reject 9223372036854775807. */
e0b2a78c 11481#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
b879806f
AM
11482 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11483 && LARGE_OFF_T % 2147483647 == 1)
11484 ? 1 : -1];
11485int
11486main ()
11487{
11488
11489 ;
11490 return 0;
11491}
11492_ACEOF
11493if ac_fn_c_try_compile "$LINENO"; then :
11494 ac_cv_sys_file_offset_bits=64; break
11495fi
11496rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11497 ac_cv_sys_file_offset_bits=unknown
11498 break
11499done
11500fi
11501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
11502$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
11503case $ac_cv_sys_file_offset_bits in #(
11504 no | unknown) ;;
11505 *)
11506cat >>confdefs.h <<_ACEOF
11507#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
11508_ACEOF
11509;;
11510esac
11511rm -rf conftest*
11512 if test $ac_cv_sys_file_offset_bits = unknown; then
11513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
11514$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
d0ac1c44 11515if ${ac_cv_sys_large_files+:} false; then :
b879806f
AM
11516 $as_echo_n "(cached) " >&6
11517else
11518 while :; do
11519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11520/* end confdefs.h. */
11521#include <sys/types.h>
11522 /* Check that off_t can represent 2**63 - 1 correctly.
11523 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11524 since some C++ compilers masquerading as C compilers
11525 incorrectly reject 9223372036854775807. */
e0b2a78c 11526#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
b879806f
AM
11527 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11528 && LARGE_OFF_T % 2147483647 == 1)
11529 ? 1 : -1];
11530int
11531main ()
11532{
11533
11534 ;
11535 return 0;
11536}
11537_ACEOF
11538if ac_fn_c_try_compile "$LINENO"; then :
11539 ac_cv_sys_large_files=no; break
11540fi
11541rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11543/* end confdefs.h. */
11544#define _LARGE_FILES 1
11545#include <sys/types.h>
11546 /* Check that off_t can represent 2**63 - 1 correctly.
11547 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11548 since some C++ compilers masquerading as C compilers
11549 incorrectly reject 9223372036854775807. */
e0b2a78c 11550#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
b879806f
AM
11551 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11552 && LARGE_OFF_T % 2147483647 == 1)
11553 ? 1 : -1];
11554int
11555main ()
11556{
11557
11558 ;
11559 return 0;
11560}
11561_ACEOF
11562if ac_fn_c_try_compile "$LINENO"; then :
11563 ac_cv_sys_large_files=1; break
11564fi
11565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11566 ac_cv_sys_large_files=unknown
11567 break
11568done
11569fi
11570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
11571$as_echo "$ac_cv_sys_large_files" >&6; }
11572case $ac_cv_sys_large_files in #(
11573 no | unknown) ;;
11574 *)
11575cat >>confdefs.h <<_ACEOF
11576#define _LARGE_FILES $ac_cv_sys_large_files
11577_ACEOF
11578;;
11579esac
11580rm -rf conftest*
11581 fi
d0ac1c44
SM
11582
11583
b879806f
AM
11584fi
11585
11586
11587
43e05cd4
AM
11588ac_checking=
11589. ${srcdir}/../bfd/development.sh
11590test "$development" = true && ac_checking=yes
11591# Check whether --enable-checking was given.
11592if test "${enable_checking+set}" = set; then :
11593 enableval=$enable_checking; case "${enableval}" in
11594 no|none) ac_checking= ;;
11595 *) ac_checking=yes ;;
11596esac
11597fi
11598if test x$ac_checking != x ; then
11599
11600$as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
11601
11602fi
11603
81ecdfbb
RW
11604# Check whether --enable-targets was given.
11605if test "${enable_targets+set}" = set; then :
11606 enableval=$enable_targets; case "${enableval}" in
d0ac1c44 11607 yes | "") as_fn_error $? "enable-targets option must specify target names or 'all'" "$LINENO" 5
d7040cdb
SE
11608 ;;
11609 no) enable_targets= ;;
11610 *) enable_targets=$enableval ;;
11611esac
81ecdfbb
RW
11612fi
11613
e6f6aa8d 11614
9cb80f72
RM
11615# Check whether --enable-deterministic-archives was given.
11616if test "${enable_deterministic_archives+set}" = set; then :
11617 enableval=$enable_deterministic_archives;
11618if test "${enableval}" = no; then
11619 default_ar_deterministic=0
11620else
11621 default_ar_deterministic=1
11622fi
11623else
11624 default_ar_deterministic=0
11625fi
11626
11627
11628
11629cat >>confdefs.h <<_ACEOF
11630#define DEFAULT_AR_DETERMINISTIC $default_ar_deterministic
11631_ACEOF
11632
11633
e6f6aa8d 11634
7fac9594
NC
11635# Check whether --enable-default-strings-all was given.
11636if test "${enable_default_strings_all+set}" = set; then :
11637 enableval=$enable_default_strings_all;
11638if test "${enableval}" = no; then
11639 default_strings_all=0
11640else
11641 default_strings_all=1
11642fi
11643else
11644 default_strings_all=1
11645fi
11646
11647
11648
e6f6aa8d
NC
11649cat >>confdefs.h <<_ACEOF
11650#define DEFAULT_STRINGS_ALL $default_strings_all
11651_ACEOF
11652
11653
11654
11655# Check whether --enable-f-for-ifunc-symbols was given.
11656if test "${enable_f_for_ifunc_symbols+set}" = set; then :
11657 enableval=$enable_f_for_ifunc_symbols;
11658if test "${enableval}" = no; then
11659 default_f_for_ifunc=0
11660else
11661 default_f_for_ifunc=1
11662fi
11663else
11664 default_f_for_ifunc=0
11665fi
11666
11667
11668
11669cat >>confdefs.h <<_ACEOF
11670#define DEFAULT_F_FOR_IFUNC_SYMBOLS $default_f_for_ifunc
11671_ACEOF
11672
11673
11674
c46b7066
NC
11675# Check whether --enable-follow-debug-links was given.
11676if test "${enable_follow_debug_links+set}" = set; then :
11677 enableval=$enable_follow_debug_links;
11678if test "${enableval}" = no; then
11679 default_for_follow_links=0
11680else
11681 default_for_follow_links=1
11682fi
11683else
11684 default_for_follow_links=1
11685fi
11686
11687
11688
11689cat >>confdefs.h <<_ACEOF
11690#define DEFAULT_FOR_FOLLOW_LINKS $default_for_follow_links
11691_ACEOF
11692
11693
11694
11695
f6720b1c
AM
11696
11697
11698
11699
11700
11701
11702if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11703 if test -n "$ac_tool_prefix"; then
11704 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11705set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11707$as_echo_n "checking for $ac_word... " >&6; }
11708if ${ac_cv_path_PKG_CONFIG+:} false; then :
11709 $as_echo_n "(cached) " >&6
11710else
11711 case $PKG_CONFIG in
11712 [\\/]* | ?:[\\/]*)
11713 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11714 ;;
11715 *)
11716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11717for as_dir in $PATH
11718do
11719 IFS=$as_save_IFS
11720 test -z "$as_dir" && as_dir=.
11721 for ac_exec_ext in '' $ac_executable_extensions; do
11722 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11723 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11725 break 2
11726 fi
11727done
11728 done
11729IFS=$as_save_IFS
11730
11731 ;;
11732esac
11733fi
11734PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11735if test -n "$PKG_CONFIG"; then
11736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11737$as_echo "$PKG_CONFIG" >&6; }
11738else
11739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11740$as_echo "no" >&6; }
11741fi
11742
11743
11744fi
11745if test -z "$ac_cv_path_PKG_CONFIG"; then
11746 ac_pt_PKG_CONFIG=$PKG_CONFIG
11747 # Extract the first word of "pkg-config", so it can be a program name with args.
11748set dummy pkg-config; ac_word=$2
11749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11750$as_echo_n "checking for $ac_word... " >&6; }
11751if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
11752 $as_echo_n "(cached) " >&6
11753else
11754 case $ac_pt_PKG_CONFIG in
11755 [\\/]* | ?:[\\/]*)
11756 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11757 ;;
11758 *)
11759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11760for as_dir in $PATH
11761do
11762 IFS=$as_save_IFS
11763 test -z "$as_dir" && as_dir=.
11764 for ac_exec_ext in '' $ac_executable_extensions; do
11765 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11766 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11768 break 2
11769 fi
11770done
11771 done
11772IFS=$as_save_IFS
11773
11774 ;;
11775esac
11776fi
11777ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11778if test -n "$ac_pt_PKG_CONFIG"; then
11779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11780$as_echo "$ac_pt_PKG_CONFIG" >&6; }
11781else
11782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11783$as_echo "no" >&6; }
11784fi
11785
11786 if test "x$ac_pt_PKG_CONFIG" = x; then
11787 PKG_CONFIG=""
11788 else
11789 case $cross_compiling:$ac_tool_warned in
11790yes:)
11791{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11792$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11793ac_tool_warned=yes ;;
11794esac
11795 PKG_CONFIG=$ac_pt_PKG_CONFIG
11796 fi
11797else
11798 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11799fi
11800
11801fi
11802if test -n "$PKG_CONFIG"; then
11803 _pkg_min_version=0.9.0
11804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11805$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11806 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11808$as_echo "yes" >&6; }
11809 else
11810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11811$as_echo "no" >&6; }
11812 PKG_CONFIG=""
11813 fi
11814fi
11815
11816# Handle optional debuginfod support
301a9420
AM
11817
11818# Check whether --with-debuginfod was given.
11819if test "${with_debuginfod+set}" = set; then :
11820 withval=$with_debuginfod;
11821else
11822 with_debuginfod=auto
11823fi
11824
11825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use debuginfod" >&5
11826$as_echo_n "checking whether to use debuginfod... " >&6; }
11827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_debuginfod" >&5
11828$as_echo "$with_debuginfod" >&6; }
11829
f6720b1c 11830if test "x$with_debuginfod" != xno; then
301a9420 11831
f6720b1c
AM
11832pkg_failed=no
11833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdebuginfod >= 0.179" >&5
11834$as_echo_n "checking for libdebuginfod >= 0.179... " >&6; }
11835
11836if test -n "$DEBUGINFOD_CFLAGS"; then
11837 pkg_cv_DEBUGINFOD_CFLAGS="$DEBUGINFOD_CFLAGS"
11838 elif test -n "$PKG_CONFIG"; then
11839 if test -n "$PKG_CONFIG" && \
11840 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdebuginfod >= 0.179\""; } >&5
11841 ($PKG_CONFIG --exists --print-errors "libdebuginfod >= 0.179") 2>&5
11842 ac_status=$?
11843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11844 test $ac_status = 0; }; then
11845 pkg_cv_DEBUGINFOD_CFLAGS=`$PKG_CONFIG --cflags "libdebuginfod >= 0.179" 2>/dev/null`
11846 test "x$?" != "x0" && pkg_failed=yes
301a9420 11847else
f6720b1c 11848 pkg_failed=yes
301a9420 11849fi
f6720b1c
AM
11850 else
11851 pkg_failed=untried
301a9420 11852fi
f6720b1c
AM
11853if test -n "$DEBUGINFOD_LIBS"; then
11854 pkg_cv_DEBUGINFOD_LIBS="$DEBUGINFOD_LIBS"
11855 elif test -n "$PKG_CONFIG"; then
11856 if test -n "$PKG_CONFIG" && \
11857 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdebuginfod >= 0.179\""; } >&5
11858 ($PKG_CONFIG --exists --print-errors "libdebuginfod >= 0.179") 2>&5
11859 ac_status=$?
11860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11861 test $ac_status = 0; }; then
11862 pkg_cv_DEBUGINFOD_LIBS=`$PKG_CONFIG --libs "libdebuginfod >= 0.179" 2>/dev/null`
11863 test "x$?" != "x0" && pkg_failed=yes
11864else
11865 pkg_failed=yes
301a9420 11866fi
f6720b1c
AM
11867 else
11868 pkg_failed=untried
301a9420
AM
11869fi
11870
377170fa
L
11871if test $pkg_failed = no; then
11872 pkg_save_LDFLAGS="$LDFLAGS"
11873 LDFLAGS="$LDFLAGS $pkg_cv_DEBUGINFOD_LIBS"
11874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d70f978b
L
11875/* end confdefs.h. */
11876
11877int
11878main ()
11879{
377170fa 11880
d70f978b
L
11881 ;
11882 return 0;
11883}
11884_ACEOF
11885if ac_fn_c_try_link "$LINENO"; then :
377170fa 11886
d70f978b
L
11887else
11888 pkg_failed=yes
11889fi
11890rm -f core conftest.err conftest.$ac_objext \
11891 conftest$ac_exeext conftest.$ac_ext
377170fa
L
11892 LDFLAGS=$pkg_save_LDFLAGS
11893fi
d70f978b 11894
301a9420 11895
301a9420 11896
f6720b1c
AM
11897if test $pkg_failed = yes; then
11898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11899$as_echo "no" >&6; }
301a9420 11900
f6720b1c
AM
11901if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11902 _pkg_short_errors_supported=yes
11903else
11904 _pkg_short_errors_supported=no
11905fi
11906 if test $_pkg_short_errors_supported = yes; then
11907 DEBUGINFOD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdebuginfod >= 0.179" 2>&1`
11908 else
11909 DEBUGINFOD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdebuginfod >= 0.179" 2>&1`
11910 fi
11911 # Put the nasty error message in config.log where it belongs
11912 echo "$DEBUGINFOD_PKG_ERRORS" >&5
301a9420 11913
f6720b1c
AM
11914 if test "x$with_debuginfod" = xyes; then
11915 as_fn_error $? "\"--with-debuginfod was given, but libdebuginfod is missing or unusable.\"" "$LINENO" 5
11916 else
11917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&5
11918$as_echo "$as_me: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&2;}
11919 fi
11920elif test $pkg_failed = untried; then
11921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11922$as_echo "no" >&6; }
11923 if test "x$with_debuginfod" = xyes; then
11924 as_fn_error $? "\"--with-debuginfod was given, but libdebuginfod is missing or unusable.\"" "$LINENO" 5
11925 else
11926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&5
11927$as_echo "$as_me: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&2;}
11928 fi
11929else
11930 DEBUGINFOD_CFLAGS=$pkg_cv_DEBUGINFOD_CFLAGS
11931 DEBUGINFOD_LIBS=$pkg_cv_DEBUGINFOD_LIBS
11932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11933$as_echo "yes" >&6; }
11934
11935$as_echo "#define HAVE_LIBDEBUGINFOD 1" >>confdefs.h
11936
11937fi
11938else
11939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: debuginfod support disabled; some features may be unavailable." >&5
11940$as_echo "$as_me: WARNING: debuginfod support disabled; some features may be unavailable." >&2;}
301a9420
AM
11941fi
11942
11943
094e34f2
NA
11944 # Check whether --enable-libctf was given.
11945if test "${enable_libctf+set}" = set; then :
11946 enableval=$enable_libctf;
11947 case "$enableval" in
11948 yes|no) ;;
11949 *) as_fn_error $? "Argument to enable/disable libctf must be yes or no" "$LINENO" 5 ;;
11950 esac
11951
11952else
11953 enable_libctf=yes
11954fi
11955
11956
11957if test "${enable_libctf}" = yes; then
11958
11959$as_echo "#define ENABLE_LIBCTF 1" >>confdefs.h
11960
11961fi
11962 if test "${enable_libctf}" = yes; then
11963 ENABLE_LIBCTF_TRUE=
11964 ENABLE_LIBCTF_FALSE='#'
11965else
11966 ENABLE_LIBCTF_TRUE='#'
11967 ENABLE_LIBCTF_FALSE=
11968fi
11969
11970
d7040cdb 11971
270c9937
JB
11972# Set the 'development' global.
11973. $srcdir/../bfd/development.sh
11974
c5da1932
VZ
11975# Set acp_cpp_for_build variable
11976ac_cpp_for_build="$CC_FOR_BUILD -E $CPPFLAGS_FOR_BUILD"
11977
9780e045 11978# Default set of GCC warnings to enable.
397841b5 11979GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
c5da1932 11980GCC_WARN_CFLAGS_FOR_BUILD="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
9780e045
NC
11981
11982# Add -Wshadow if the compiler is a sufficiently recent version of GCC.
397841b5
AM
11983cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11984/* end confdefs.h. */
11985__GNUC__
11986_ACEOF
11987if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3107326d 11988 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
397841b5
AM
11989
11990else
11991 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
11992fi
11993rm -f conftest*
11994
d7040cdb 11995
9780e045
NC
11996# Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
11997cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11998/* end confdefs.h. */
11999__GNUC__
12000_ACEOF
12001if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3107326d 12002 $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
9780e045
NC
12003
12004else
12005 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144"
12006fi
12007rm -f conftest*
12008
12009
6757cf57
TS
12010# Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings.
12011WARN_WRITE_STRINGS=""
12012cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12013/* end confdefs.h. */
12014__GNUC__
12015_ACEOF
12016if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3107326d 12017 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
6757cf57
TS
12018
12019else
12020 WARN_WRITE_STRINGS="-Wwrite-strings"
12021fi
12022rm -f conftest*
12023
9780e045 12024
96fe4562 12025# Verify CC_FOR_BUILD to be compatible with warning flags
c5da1932
VZ
12026
12027# Add -Wshadow if the compiler is a sufficiently recent version of GCC.
12028cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12029/* end confdefs.h. */
12030__GNUC__
12031_ACEOF
12032if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
3107326d 12033 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
c5da1932
VZ
12034
12035else
12036 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wshadow"
12037fi
12038rm -f conftest*
12039
12040
12041# Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
12042cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12043/* end confdefs.h. */
12044__GNUC__
12045_ACEOF
12046if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
3107326d 12047 $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
c5da1932
VZ
12048
12049else
12050 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wstack-usage=262144"
12051fi
12052rm -f conftest*
12053
12054
81ecdfbb
RW
12055# Check whether --enable-werror was given.
12056if test "${enable_werror+set}" = set; then :
12057 enableval=$enable_werror; case "${enableval}" in
d7040cdb
SE
12058 yes | y) ERROR_ON_WARNING="yes" ;;
12059 no | n) ERROR_ON_WARNING="no" ;;
d0ac1c44 12060 *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
d7040cdb 12061 esac
81ecdfbb
RW
12062fi
12063
d7040cdb 12064
397841b5 12065# Disable -Wformat by default when using gcc on mingw
bb8541b9
L
12066case "${host}" in
12067 *-*-mingw32*)
12068 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
12069 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
c5da1932 12070 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wno-format"
bb8541b9
L
12071 fi
12072 ;;
12073 *) ;;
12074esac
12075
270c9937
JB
12076# Enable -Werror by default when using gcc. Turn it off for releases.
12077if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then
d7040cdb
SE
12078 ERROR_ON_WARNING=yes
12079fi
12080
12081NO_WERROR=
12082if test "${ERROR_ON_WARNING}" = yes ; then
9780e045 12083 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
c5da1932 12084 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Werror"
d7040cdb
SE
12085 NO_WERROR="-Wno-error"
12086fi
12087
12088if test "${GCC}" = yes ; then
12089 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
c5da1932 12090 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}"
d7040cdb
SE
12091fi
12092
81ecdfbb
RW
12093# Check whether --enable-build-warnings was given.
12094if test "${enable_build_warnings+set}" = set; then :
12095 enableval=$enable_build_warnings; case "${enableval}" in
c5da1932
VZ
12096 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}"
12097 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}";;
d7040cdb
SE
12098 no) if test "${GCC}" = yes ; then
12099 WARN_CFLAGS="-w"
c5da1932 12100 WARN_CFLAGS_FOR_BUILD="-w"
d7040cdb
SE
12101 fi;;
12102 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
c5da1932
VZ
12103 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}"
12104 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD} ${t}";;
d7040cdb 12105 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
c5da1932
VZ
12106 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}"
12107 WARN_CFLAGS_FOR_BUILD="${t} ${GCC_WARN_CFLAGS_FOR_BUILD}";;
12108 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`
12109 WARN_CFLAGS_FOR_BUILD=`echo "${enableval}" | sed -e "s/,/ /g"`;;
d7040cdb 12110esac
81ecdfbb
RW
12111fi
12112
d7040cdb
SE
12113
12114if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
12115 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
12116fi
12117
12118
12119
12120
12121
6757cf57 12122
c5da1932 12123
81ecdfbb 12124ac_config_headers="$ac_config_headers config.h:config.in"
d7040cdb
SE
12125
12126
df7b86aa
NC
12127
12128
d7040cdb 12129if test -z "$target" ; then
d0ac1c44 12130 as_fn_error $? "Unrecognized target system type; please check config.sub." "$LINENO" 5
d7040cdb
SE
12131fi
12132if test -z "$host" ; then
d0ac1c44 12133 as_fn_error $? "Unrecognized host system type; please check config.sub." "$LINENO" 5
d7040cdb
SE
12134fi
12135
12136for ac_prog in 'bison -y' byacc
12137do
12138 # Extract the first word of "$ac_prog", so it can be a program name with args.
12139set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
12140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12141$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12142if ${ac_cv_prog_YACC+:} false; then :
81ecdfbb 12143 $as_echo_n "(cached) " >&6
d7040cdb
SE
12144else
12145 if test -n "$YACC"; then
12146 ac_cv_prog_YACC="$YACC" # Let the user override the test.
12147else
12148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12149for as_dir in $PATH
12150do
12151 IFS=$as_save_IFS
12152 test -z "$as_dir" && as_dir=.
81ecdfbb 12153 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12154 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7040cdb 12155 ac_cv_prog_YACC="$ac_prog"
81ecdfbb 12156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
12157 break 2
12158 fi
12159done
81ecdfbb
RW
12160 done
12161IFS=$as_save_IFS
d7040cdb
SE
12162
12163fi
12164fi
12165YACC=$ac_cv_prog_YACC
12166if test -n "$YACC"; then
81ecdfbb
RW
12167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
12168$as_echo "$YACC" >&6; }
d7040cdb 12169else
81ecdfbb
RW
12170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12171$as_echo "no" >&6; }
d7040cdb
SE
12172fi
12173
81ecdfbb 12174
d7040cdb
SE
12175 test -n "$YACC" && break
12176done
12177test -n "$YACC" || YACC="yacc"
12178
12179for ac_prog in flex lex
12180do
12181 # Extract the first word of "$ac_prog", so it can be a program name with args.
12182set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
12183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12184$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12185if ${ac_cv_prog_LEX+:} false; then :
81ecdfbb 12186 $as_echo_n "(cached) " >&6
d7040cdb
SE
12187else
12188 if test -n "$LEX"; then
12189 ac_cv_prog_LEX="$LEX" # Let the user override the test.
12190else
12191as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12192for as_dir in $PATH
12193do
12194 IFS=$as_save_IFS
12195 test -z "$as_dir" && as_dir=.
81ecdfbb 12196 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12197 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7040cdb 12198 ac_cv_prog_LEX="$ac_prog"
81ecdfbb 12199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
12200 break 2
12201 fi
12202done
81ecdfbb
RW
12203 done
12204IFS=$as_save_IFS
d7040cdb
SE
12205
12206fi
12207fi
12208LEX=$ac_cv_prog_LEX
12209if test -n "$LEX"; then
81ecdfbb
RW
12210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
12211$as_echo "$LEX" >&6; }
d7040cdb 12212else
81ecdfbb
RW
12213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12214$as_echo "no" >&6; }
d7040cdb
SE
12215fi
12216
81ecdfbb 12217
d7040cdb
SE
12218 test -n "$LEX" && break
12219done
12220test -n "$LEX" || LEX=":"
12221
3d961d0d
AM
12222case "$LEX" in
12223 :|*"missing "*) ;;
12224 *) cat >conftest.l <<_ACEOF
81ecdfbb
RW
12225%%
12226a { ECHO; }
12227b { REJECT; }
12228c { yymore (); }
12229d { yyless (1); }
d0ac1c44
SM
12230e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
12231 yyless ((input () != 0)); }
81ecdfbb
RW
12232f { unput (yytext[0]); }
12233. { BEGIN INITIAL; }
12234%%
12235#ifdef YYTEXT_POINTER
12236extern char *yytext;
d7040cdb 12237#endif
d7040cdb 12238int
81ecdfbb 12239main (void)
d7040cdb 12240{
81ecdfbb 12241 return ! yylex () + ! yywrap ();
d7040cdb
SE
12242}
12243_ACEOF
81ecdfbb
RW
12244{ { ac_try="$LEX conftest.l"
12245case "(($ac_try" in
12246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12247 *) ac_try_echo=$ac_try;;
12248esac
12249eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12250$as_echo "$ac_try_echo"; } >&5
12251 (eval "$LEX conftest.l") 2>&5
d7040cdb 12252 ac_status=$?
81ecdfbb
RW
12253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12254 test $ac_status = 0; }
12255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
12256$as_echo_n "checking lex output file root... " >&6; }
d0ac1c44 12257if ${ac_cv_prog_lex_root+:} false; then :
81ecdfbb 12258 $as_echo_n "(cached) " >&6
d7040cdb 12259else
d7040cdb 12260
81ecdfbb
RW
12261if test -f lex.yy.c; then
12262 ac_cv_prog_lex_root=lex.yy
12263elif test -f lexyy.c; then
12264 ac_cv_prog_lex_root=lexyy
12265else
d0ac1c44 12266 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
d7040cdb 12267fi
d7040cdb 12268fi
81ecdfbb
RW
12269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
12270$as_echo "$ac_cv_prog_lex_root" >&6; }
12271LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
d7040cdb 12272
81ecdfbb
RW
12273if test -z "${LEXLIB+set}"; then
12274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
12275$as_echo_n "checking lex library... " >&6; }
d0ac1c44 12276if ${ac_cv_lib_lex+:} false; then :
81ecdfbb 12277 $as_echo_n "(cached) " >&6
d7040cdb 12278else
d7040cdb 12279
81ecdfbb
RW
12280 ac_save_LIBS=$LIBS
12281 ac_cv_lib_lex='none needed'
12282 for ac_lib in '' -lfl -ll; do
12283 LIBS="$ac_lib $ac_save_LIBS"
12284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12285/* end confdefs.h. */
12286`cat $LEX_OUTPUT_ROOT.c`
12287_ACEOF
12288if ac_fn_c_try_link "$LINENO"; then :
12289 ac_cv_lib_lex=$ac_lib
d7040cdb 12290fi
81ecdfbb
RW
12291rm -f core conftest.err conftest.$ac_objext \
12292 conftest$ac_exeext conftest.$ac_ext
12293 test "$ac_cv_lib_lex" != 'none needed' && break
12294 done
12295 LIBS=$ac_save_LIBS
d7040cdb
SE
12296
12297fi
81ecdfbb
RW
12298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
12299$as_echo "$ac_cv_lib_lex" >&6; }
12300 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
d7040cdb
SE
12301fi
12302
d7040cdb 12303
81ecdfbb
RW
12304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
12305$as_echo_n "checking whether yytext is a pointer... " >&6; }
d0ac1c44 12306if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
81ecdfbb 12307 $as_echo_n "(cached) " >&6
d7040cdb
SE
12308else
12309 # POSIX says lex can declare yytext either as a pointer or an array; the
81ecdfbb 12310# default is implementation-dependent. Figure out which it is, since
d7040cdb
SE
12311# not all implementations provide the %pointer and %array declarations.
12312ac_cv_prog_lex_yytext_pointer=no
d7040cdb 12313ac_save_LIBS=$LIBS
81ecdfbb
RW
12314LIBS="$LEXLIB $ac_save_LIBS"
12315cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12316/* end confdefs.h. */
d0ac1c44
SM
12317
12318 #define YYTEXT_POINTER 1
d7040cdb
SE
12319`cat $LEX_OUTPUT_ROOT.c`
12320_ACEOF
81ecdfbb 12321if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 12322 ac_cv_prog_lex_yytext_pointer=yes
d7040cdb 12323fi
81ecdfbb
RW
12324rm -f core conftest.err conftest.$ac_objext \
12325 conftest$ac_exeext conftest.$ac_ext
d7040cdb 12326LIBS=$ac_save_LIBS
d7040cdb
SE
12327
12328fi
81ecdfbb
RW
12329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
12330$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
d7040cdb
SE
12331if test $ac_cv_prog_lex_yytext_pointer = yes; then
12332
81ecdfbb 12333$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
d7040cdb
SE
12334
12335fi
81ecdfbb 12336rm -f conftest.l $LEX_OUTPUT_ROOT.c
3d961d0d
AM
12337 ;;
12338esac
d7040cdb
SE
12339if test "$LEX" = :; then
12340 LEX=${am_missing_run}flex
12341fi
12342
e184813f 12343ALL_LINGUAS="bg ca da es fi fr hr id it ja pt ro ru rw sk sr sv tr uk vi zh_CN zh_TW"
d7040cdb
SE
12344# If we haven't got the data from the intl directory,
12345# assume NLS is disabled.
12346USE_NLS=no
12347LIBINTL=
12348LIBINTL_DEP=
12349INCINTL=
12350XGETTEXT=
12351GMSGFMT=
12352POSUB=
12353
12354if test -f ../intl/config.intl; then
12355 . ../intl/config.intl
12356fi
81ecdfbb
RW
12357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12358$as_echo_n "checking whether NLS is requested... " >&6; }
d7040cdb 12359if test x"$USE_NLS" != xyes; then
81ecdfbb
RW
12360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12361$as_echo "no" >&6; }
d7040cdb 12362else
81ecdfbb
RW
12363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12364$as_echo "yes" >&6; }
d7040cdb 12365
81ecdfbb 12366$as_echo "#define ENABLE_NLS 1" >>confdefs.h
d7040cdb
SE
12367
12368
81ecdfbb
RW
12369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
12370$as_echo_n "checking for catalogs to be installed... " >&6; }
d7040cdb
SE
12371 # Look for .po and .gmo files in the source directory.
12372 CATALOGS=
12373 XLINGUAS=
12374 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12375 # If there aren't any .gmo files the shell will give us the
12376 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12377 # weeded out.
12378 case "$cat" in *\**)
12379 continue;;
12380 esac
12381 # The quadruple backslash is collapsed to a double backslash
12382 # by the backticks, then collapsed again by the double quotes,
12383 # leaving us with one backslash in the sed expression (right
12384 # before the dot that mustn't act as a wildcard).
12385 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
12386 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
12387 # The user is allowed to set LINGUAS to a list of languages to
12388 # install catalogs for. If it's empty that means "all of them."
12389 if test "x$LINGUAS" = x; then
12390 CATALOGS="$CATALOGS $cat"
12391 XLINGUAS="$XLINGUAS $lang"
12392 else
12393 case "$LINGUAS" in *$lang*)
12394 CATALOGS="$CATALOGS $cat"
12395 XLINGUAS="$XLINGUAS $lang"
12396 ;;
12397 esac
12398 fi
12399 done
12400 LINGUAS="$XLINGUAS"
81ecdfbb
RW
12401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
12402$as_echo "$LINGUAS" >&6; }
d7040cdb
SE
12403
12404
12405 DATADIRNAME=share
12406
12407 INSTOBJEXT=.mo
12408
12409 GENCAT=gencat
12410
12411 CATOBJEXT=.gmo
12412
12413fi
12414
12415 MKINSTALLDIRS=
12416 if test -n "$ac_aux_dir"; then
12417 case "$ac_aux_dir" in
12418 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
12419 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
12420 esac
12421 fi
12422 if test -z "$MKINSTALLDIRS"; then
12423 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
12424 fi
12425
12426
12427
81ecdfbb
RW
12428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12429$as_echo_n "checking whether NLS is requested... " >&6; }
12430 # Check whether --enable-nls was given.
12431if test "${enable_nls+set}" = set; then :
12432 enableval=$enable_nls; USE_NLS=$enableval
d7040cdb
SE
12433else
12434 USE_NLS=yes
81ecdfbb
RW
12435fi
12436
12437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
12438$as_echo "$USE_NLS" >&6; }
d7040cdb
SE
12439
12440
12441
12442
12443
12444
12445# Prepare PATH_SEPARATOR.
12446# The user is always right.
12447if test "${PATH_SEPARATOR+set}" != set; then
12448 echo "#! /bin/sh" >conf$$.sh
12449 echo "exit 0" >>conf$$.sh
12450 chmod +x conf$$.sh
12451 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12452 PATH_SEPARATOR=';'
12453 else
12454 PATH_SEPARATOR=:
12455 fi
12456 rm -f conf$$.sh
12457fi
12458
12459# Find out how to test for executable files. Don't use a zero-byte file,
12460# as systems may use methods other than mode bits to determine executability.
12461cat >conf$$.file <<_ASEOF
12462#! /bin/sh
12463exit 0
12464_ASEOF
12465chmod +x conf$$.file
12466if test -x conf$$.file >/dev/null 2>&1; then
12467 ac_executable_p="test -x"
12468else
12469 ac_executable_p="test -f"
12470fi
12471rm -f conf$$.file
12472
12473# Extract the first word of "msgfmt", so it can be a program name with args.
12474set dummy msgfmt; ac_word=$2
81ecdfbb
RW
12475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12476$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12477if ${ac_cv_path_MSGFMT+:} false; then :
81ecdfbb 12478 $as_echo_n "(cached) " >&6
d7040cdb
SE
12479else
12480 case "$MSGFMT" in
12481 [\\/]* | ?:[\\/]*)
12482 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12483 ;;
12484 *)
12485 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12486 for ac_dir in $PATH; do
12487 IFS="$ac_save_IFS"
12488 test -z "$ac_dir" && ac_dir=.
12489 for ac_exec_ext in '' $ac_executable_extensions; do
12490 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12491 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
12492 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12493 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
12494 break 2
12495 fi
12496 fi
12497 done
12498 done
12499 IFS="$ac_save_IFS"
12500 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
12501 ;;
12502esac
12503fi
12504MSGFMT="$ac_cv_path_MSGFMT"
12505if test "$MSGFMT" != ":"; then
81ecdfbb
RW
12506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
12507$as_echo "$MSGFMT" >&6; }
d7040cdb 12508else
81ecdfbb
RW
12509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12510$as_echo "no" >&6; }
d7040cdb
SE
12511fi
12512
12513 # Extract the first word of "gmsgfmt", so it can be a program name with args.
12514set dummy gmsgfmt; ac_word=$2
81ecdfbb
RW
12515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12516$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12517if ${ac_cv_path_GMSGFMT+:} false; then :
81ecdfbb 12518 $as_echo_n "(cached) " >&6
d7040cdb
SE
12519else
12520 case $GMSGFMT in
12521 [\\/]* | ?:[\\/]*)
12522 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12523 ;;
12524 *)
12525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12526for as_dir in $PATH
12527do
12528 IFS=$as_save_IFS
12529 test -z "$as_dir" && as_dir=.
81ecdfbb 12530 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12531 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7040cdb 12532 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
12534 break 2
12535 fi
12536done
81ecdfbb
RW
12537 done
12538IFS=$as_save_IFS
d7040cdb
SE
12539
12540 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12541 ;;
12542esac
12543fi
12544GMSGFMT=$ac_cv_path_GMSGFMT
d7040cdb 12545if test -n "$GMSGFMT"; then
81ecdfbb
RW
12546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
12547$as_echo "$GMSGFMT" >&6; }
d7040cdb 12548else
81ecdfbb
RW
12549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12550$as_echo "no" >&6; }
d7040cdb
SE
12551fi
12552
12553
12554
81ecdfbb 12555
d7040cdb
SE
12556# Prepare PATH_SEPARATOR.
12557# The user is always right.
12558if test "${PATH_SEPARATOR+set}" != set; then
12559 echo "#! /bin/sh" >conf$$.sh
12560 echo "exit 0" >>conf$$.sh
12561 chmod +x conf$$.sh
12562 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12563 PATH_SEPARATOR=';'
12564 else
12565 PATH_SEPARATOR=:
12566 fi
12567 rm -f conf$$.sh
12568fi
12569
12570# Find out how to test for executable files. Don't use a zero-byte file,
12571# as systems may use methods other than mode bits to determine executability.
12572cat >conf$$.file <<_ASEOF
12573#! /bin/sh
12574exit 0
12575_ASEOF
12576chmod +x conf$$.file
12577if test -x conf$$.file >/dev/null 2>&1; then
12578 ac_executable_p="test -x"
12579else
12580 ac_executable_p="test -f"
12581fi
12582rm -f conf$$.file
12583
12584# Extract the first word of "xgettext", so it can be a program name with args.
12585set dummy xgettext; ac_word=$2
81ecdfbb
RW
12586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12587$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12588if ${ac_cv_path_XGETTEXT+:} false; then :
81ecdfbb 12589 $as_echo_n "(cached) " >&6
d7040cdb
SE
12590else
12591 case "$XGETTEXT" in
12592 [\\/]* | ?:[\\/]*)
12593 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12594 ;;
12595 *)
12596 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12597 for ac_dir in $PATH; do
12598 IFS="$ac_save_IFS"
12599 test -z "$ac_dir" && ac_dir=.
12600 for ac_exec_ext in '' $ac_executable_extensions; do
12601 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12602 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12603 (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
12604 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
12605 break 2
12606 fi
12607 fi
12608 done
12609 done
12610 IFS="$ac_save_IFS"
12611 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12612 ;;
12613esac
12614fi
12615XGETTEXT="$ac_cv_path_XGETTEXT"
12616if test "$XGETTEXT" != ":"; then
81ecdfbb
RW
12617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
12618$as_echo "$XGETTEXT" >&6; }
d7040cdb 12619else
81ecdfbb
RW
12620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12621$as_echo "no" >&6; }
d7040cdb
SE
12622fi
12623
12624 rm -f messages.po
12625
12626
12627# Prepare PATH_SEPARATOR.
12628# The user is always right.
12629if test "${PATH_SEPARATOR+set}" != set; then
12630 echo "#! /bin/sh" >conf$$.sh
12631 echo "exit 0" >>conf$$.sh
12632 chmod +x conf$$.sh
12633 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12634 PATH_SEPARATOR=';'
12635 else
12636 PATH_SEPARATOR=:
12637 fi
12638 rm -f conf$$.sh
12639fi
12640
12641# Find out how to test for executable files. Don't use a zero-byte file,
12642# as systems may use methods other than mode bits to determine executability.
12643cat >conf$$.file <<_ASEOF
12644#! /bin/sh
12645exit 0
12646_ASEOF
12647chmod +x conf$$.file
12648if test -x conf$$.file >/dev/null 2>&1; then
12649 ac_executable_p="test -x"
12650else
12651 ac_executable_p="test -f"
12652fi
12653rm -f conf$$.file
12654
12655# Extract the first word of "msgmerge", so it can be a program name with args.
12656set dummy msgmerge; ac_word=$2
81ecdfbb
RW
12657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12658$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12659if ${ac_cv_path_MSGMERGE+:} false; then :
81ecdfbb 12660 $as_echo_n "(cached) " >&6
d7040cdb
SE
12661else
12662 case "$MSGMERGE" in
12663 [\\/]* | ?:[\\/]*)
12664 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12665 ;;
12666 *)
12667 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12668 for ac_dir in $PATH; do
12669 IFS="$ac_save_IFS"
12670 test -z "$ac_dir" && ac_dir=.
12671 for ac_exec_ext in '' $ac_executable_extensions; do
12672 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12673 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
12674 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
12675 break 2
12676 fi
12677 fi
12678 done
12679 done
12680 IFS="$ac_save_IFS"
12681 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12682 ;;
12683esac
12684fi
12685MSGMERGE="$ac_cv_path_MSGMERGE"
12686if test "$MSGMERGE" != ":"; then
81ecdfbb
RW
12687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
12688$as_echo "$MSGMERGE" >&6; }
d7040cdb 12689else
81ecdfbb
RW
12690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12691$as_echo "no" >&6; }
d7040cdb
SE
12692fi
12693
12694
12695 if test "$GMSGFMT" != ":"; then
12696 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
12697 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12698 : ;
12699 else
12700 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
81ecdfbb
RW
12701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
12702$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
d7040cdb
SE
12703 GMSGFMT=":"
12704 fi
12705 fi
12706
12707 if test "$XGETTEXT" != ":"; then
12708 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12709 (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
12710 : ;
12711 else
81ecdfbb
RW
12712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
12713$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
d7040cdb
SE
12714 XGETTEXT=":"
12715 fi
12716 rm -f messages.po
12717 fi
12718
81ecdfbb 12719 ac_config_commands="$ac_config_commands default-1"
d7040cdb
SE
12720
12721
12722
81ecdfbb
RW
12723
12724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
12725$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
12726 # Check whether --enable-maintainer-mode was given.
12727if test "${enable_maintainer_mode+set}" = set; then :
12728 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
42ecbf5e 12729else
d7040cdb 12730 USE_MAINTAINER_MODE=no
81ecdfbb 12731fi
d7040cdb 12732
81ecdfbb
RW
12733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
12734$as_echo "$USE_MAINTAINER_MODE" >&6; }
12735 if test $USE_MAINTAINER_MODE = yes; then
d7040cdb
SE
12736 MAINTAINER_MODE_TRUE=
12737 MAINTAINER_MODE_FALSE='#'
12738else
12739 MAINTAINER_MODE_TRUE='#'
12740 MAINTAINER_MODE_FALSE=
42ecbf5e 12741fi
d7040cdb
SE
12742
12743 MAINT=$MAINTAINER_MODE_TRUE
12744
12745
81ecdfbb 12746 if false; then
d7040cdb
SE
12747 GENINSRC_NEVER_TRUE=
12748 GENINSRC_NEVER_FALSE='#'
12749else
12750 GENINSRC_NEVER_TRUE='#'
12751 GENINSRC_NEVER_FALSE=
42ecbf5e 12752fi
d7040cdb
SE
12753
12754
12755if test -n "$EXEEXT"; then
20e95c23 12756
81ecdfbb 12757$as_echo "#define HAVE_EXECUTABLE_SUFFIX 1" >>confdefs.h
42ecbf5e 12758
252b5132
RH
12759fi
12760
d7040cdb
SE
12761cat >>confdefs.h <<_ACEOF
12762#define EXECUTABLE_SUFFIX "${EXEEXT}"
12763_ACEOF
42ecbf5e 12764
252b5132 12765
d7040cdb 12766# host-specific stuff:
252b5132 12767
d7040cdb 12768HDEFINES=
252b5132 12769
d7040cdb 12770. ${srcdir}/../bfd/configure.host
252b5132 12771
252b5132 12772
d7040cdb 12773AR=${AR-ar}
252b5132 12774
d7040cdb
SE
12775if test -n "$ac_tool_prefix"; then
12776 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12777set dummy ${ac_tool_prefix}ranlib; ac_word=$2
81ecdfbb
RW
12778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12779$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12780if ${ac_cv_prog_RANLIB+:} false; then :
81ecdfbb 12781 $as_echo_n "(cached) " >&6
d7040cdb
SE
12782else
12783 if test -n "$RANLIB"; then
12784 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12785else
12786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12787for as_dir in $PATH
12788do
12789 IFS=$as_save_IFS
12790 test -z "$as_dir" && as_dir=.
81ecdfbb 12791 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7040cdb 12793 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
81ecdfbb 12794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
12795 break 2
12796 fi
12797done
81ecdfbb
RW
12798 done
12799IFS=$as_save_IFS
252b5132 12800
d7040cdb
SE
12801fi
12802fi
12803RANLIB=$ac_cv_prog_RANLIB
12804if test -n "$RANLIB"; then
81ecdfbb
RW
12805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12806$as_echo "$RANLIB" >&6; }
d7040cdb 12807else
81ecdfbb
RW
12808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12809$as_echo "no" >&6; }
d7040cdb 12810fi
20e95c23 12811
81ecdfbb 12812
d7040cdb
SE
12813fi
12814if test -z "$ac_cv_prog_RANLIB"; then
12815 ac_ct_RANLIB=$RANLIB
12816 # Extract the first word of "ranlib", so it can be a program name with args.
12817set dummy ranlib; ac_word=$2
81ecdfbb
RW
12818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12819$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12820if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
81ecdfbb 12821 $as_echo_n "(cached) " >&6
252b5132 12822else
d7040cdb
SE
12823 if test -n "$ac_ct_RANLIB"; then
12824 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12825else
12826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12827for as_dir in $PATH
12828do
12829 IFS=$as_save_IFS
12830 test -z "$as_dir" && as_dir=.
81ecdfbb 12831 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12832 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7040cdb 12833 ac_cv_prog_ac_ct_RANLIB="ranlib"
81ecdfbb 12834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
12835 break 2
12836 fi
12837done
81ecdfbb
RW
12838 done
12839IFS=$as_save_IFS
20e95c23 12840
d7040cdb
SE
12841fi
12842fi
12843ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12844if test -n "$ac_ct_RANLIB"; then
81ecdfbb
RW
12845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12846$as_echo "$ac_ct_RANLIB" >&6; }
d7040cdb 12847else
81ecdfbb
RW
12848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12849$as_echo "no" >&6; }
d7040cdb
SE
12850fi
12851
81ecdfbb
RW
12852 if test "x$ac_ct_RANLIB" = x; then
12853 RANLIB=":"
d7040cdb 12854 else
81ecdfbb
RW
12855 case $cross_compiling:$ac_tool_warned in
12856yes:)
12857{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12858$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12859ac_tool_warned=yes ;;
12860esac
12861 RANLIB=$ac_ct_RANLIB
d7040cdb 12862 fi
81ecdfbb
RW
12863else
12864 RANLIB="$ac_cv_prog_RANLIB"
d7040cdb 12865fi
d7040cdb 12866
d7040cdb
SE
12867
12868
12869# Put a plausible default for CC_FOR_BUILD in Makefile.
12870if test -z "$CC_FOR_BUILD"; then
12871 if test "x$cross_compiling" = "xno"; then
12872 CC_FOR_BUILD='$(CC)'
12873 else
12874 CC_FOR_BUILD=gcc
12875 fi
12876fi
20e95c23 12877
d7040cdb
SE
12878# Also set EXEEXT_FOR_BUILD.
12879if test "x$cross_compiling" = "xno"; then
12880 EXEEXT_FOR_BUILD='$(EXEEXT)'
12881else
81ecdfbb
RW
12882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build system executable suffix" >&5
12883$as_echo_n "checking for build system executable suffix... " >&6; }
d0ac1c44 12884if ${bfd_cv_build_exeext+:} false; then :
81ecdfbb 12885 $as_echo_n "(cached) " >&6
d7040cdb
SE
12886else
12887 rm -f conftest*
12888 echo 'int main () { return 0; }' > conftest.c
12889 bfd_cv_build_exeext=
12890 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
12891 for file in conftest.*; do
12892 case $file in
12893 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
12894 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
12895 esac
12896 done
12897 rm -f conftest*
12898 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
252b5132 12899fi
81ecdfbb
RW
12900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_build_exeext" >&5
12901$as_echo "$bfd_cv_build_exeext" >&6; }
d7040cdb
SE
12902 EXEEXT_FOR_BUILD=""
12903 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
252b5132
RH
12904fi
12905
12906
d7040cdb
SE
12907DEMANGLER_NAME=c++filt
12908case "${host}" in
12909 *-*-go32* | *-*-msdos*)
12910 DEMANGLER_NAME=cxxfilt
12911esac
8a965946
ILT
12912
12913
4c219c2e
AM
12914# The cast to long int works around a bug in the HP C Compiler
12915# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12916# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12917# This bug is HP SR number 8606223364.
12918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12919$as_echo_n "checking size of long... " >&6; }
d0ac1c44 12920if ${ac_cv_sizeof_long+:} false; then :
4c219c2e
AM
12921 $as_echo_n "(cached) " >&6
12922else
12923 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
12924
12925else
12926 if test "$ac_cv_type_long" = yes; then
12927 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12928$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
12929as_fn_error 77 "cannot compute sizeof (long)
12930See \`config.log' for more details" "$LINENO" 5; }
4c219c2e
AM
12931 else
12932 ac_cv_sizeof_long=0
12933 fi
12934fi
12935
12936fi
12937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12938$as_echo "$ac_cv_sizeof_long" >&6; }
12939
12940
12941
12942cat >>confdefs.h <<_ACEOF
12943#define SIZEOF_LONG $ac_cv_sizeof_long
12944_ACEOF
12945
12946
4c219c2e
AM
12947# The cast to long int works around a bug in the HP C Compiler
12948# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12949# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12950# This bug is HP SR number 8606223364.
12951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12952$as_echo_n "checking size of long long... " >&6; }
d0ac1c44 12953if ${ac_cv_sizeof_long_long+:} false; then :
4c219c2e
AM
12954 $as_echo_n "(cached) " >&6
12955else
12956 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
12957
12958else
12959 if test "$ac_cv_type_long_long" = yes; then
12960 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12961$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
12962as_fn_error 77 "cannot compute sizeof (long long)
12963See \`config.log' for more details" "$LINENO" 5; }
4c219c2e
AM
12964 else
12965 ac_cv_sizeof_long_long=0
12966 fi
12967fi
12968
12969fi
12970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
12971$as_echo "$ac_cv_sizeof_long_long" >&6; }
12972
12973
12974
12975cat >>confdefs.h <<_ACEOF
12976#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12977_ACEOF
12978
12979
4c219c2e 12980
87b9f255
AM
12981# We use headers from include/ that check various HAVE_*_H macros, thus
12982# should ensure they are set by configure. This is true even when C99
12983# guarantees they are available.
12984# plugin-api.h tests HAVE_STDINT_H and HAVE_INTTYPES_H
12985# Besides those, we need to check anything used in binutils/ not in C99.
12986for ac_header in fcntl.h inttypes.h stdint.h sys/file.h sys/param.h \
12987 sys/stat.h sys/types.h unistd.h
81ecdfbb
RW
12988do :
12989 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12990ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
d0ac1c44 12991if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
81ecdfbb
RW
12992 cat >>confdefs.h <<_ACEOF
12993#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12994_ACEOF
42ecbf5e 12995
81ecdfbb 12996fi
42ecbf5e 12997
81ecdfbb 12998done
42ecbf5e 12999
81ecdfbb
RW
13000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
13001$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
d0ac1c44 13002if ${ac_cv_header_sys_wait_h+:} false; then :
81ecdfbb 13003 $as_echo_n "(cached) " >&6
42ecbf5e 13004else
81ecdfbb 13005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e 13006/* end confdefs.h. */
252b5132
RH
13007#include <sys/types.h>
13008#include <sys/wait.h>
13009#ifndef WEXITSTATUS
81ecdfbb 13010# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
252b5132
RH
13011#endif
13012#ifndef WIFEXITED
42ecbf5e 13013# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
252b5132 13014#endif
42ecbf5e
DJ
13015
13016int
13017main ()
13018{
13019 int s;
13020 wait (&s);
13021 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
13022 ;
13023 return 0;
13024}
13025_ACEOF
81ecdfbb 13026if ac_fn_c_try_compile "$LINENO"; then :
252b5132
RH
13027 ac_cv_header_sys_wait_h=yes
13028else
81ecdfbb 13029 ac_cv_header_sys_wait_h=no
252b5132 13030fi
81ecdfbb 13031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 13032fi
81ecdfbb
RW
13033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
13034$as_echo "$ac_cv_header_sys_wait_h" >&6; }
d15b04bd 13035if test $ac_cv_header_sys_wait_h = yes; then
42ecbf5e 13036
81ecdfbb 13037$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
252b5132 13038
252b5132
RH
13039fi
13040
34156b23
L
13041
13042
13043
13044 for ac_header in $ac_header_list
13045do :
13046 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13047ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
13048"
13049if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13050 cat >>confdefs.h <<_ACEOF
13051#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13052_ACEOF
13053
13054fi
13055
13056done
13057
13058
13059
13060
13061
13062
13063
13064
13065for ac_func in getpagesize
13066do :
13067 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
13068if test "x$ac_cv_func_getpagesize" = xyes; then :
13069 cat >>confdefs.h <<_ACEOF
13070#define HAVE_GETPAGESIZE 1
13071_ACEOF
13072
13073fi
13074done
13075
13076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
13077$as_echo_n "checking for working mmap... " >&6; }
13078if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
13079 $as_echo_n "(cached) " >&6
13080else
13081 if test "$cross_compiling" = yes; then :
13082 ac_cv_func_mmap_fixed_mapped=no
13083else
13084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13085/* end confdefs.h. */
13086$ac_includes_default
13087/* malloc might have been renamed as rpl_malloc. */
13088#undef malloc
13089
13090/* Thanks to Mike Haertel and Jim Avera for this test.
13091 Here is a matrix of mmap possibilities:
13092 mmap private not fixed
13093 mmap private fixed at somewhere currently unmapped
13094 mmap private fixed at somewhere already mapped
13095 mmap shared not fixed
13096 mmap shared fixed at somewhere currently unmapped
13097 mmap shared fixed at somewhere already mapped
13098 For private mappings, we should verify that changes cannot be read()
13099 back from the file, nor mmap's back from the file at a different
13100 address. (There have been systems where private was not correctly
13101 implemented like the infamous i386 svr4.0, and systems where the
13102 VM page cache was not coherent with the file system buffer cache
13103 like early versions of FreeBSD and possibly contemporary NetBSD.)
13104 For shared mappings, we should conversely verify that changes get
13105 propagated back to all the places they're supposed to be.
13106
13107 Grep wants private fixed already mapped.
13108 The main things grep needs to know about mmap are:
13109 * does it exist and is it safe to write into the mmap'd area
13110 * how to use it (BSD variants) */
13111
13112#include <fcntl.h>
13113#include <sys/mman.h>
13114
13115#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
13116char *malloc ();
13117#endif
13118
13119/* This mess was copied from the GNU getpagesize.h. */
13120#ifndef HAVE_GETPAGESIZE
13121# ifdef _SC_PAGESIZE
13122# define getpagesize() sysconf(_SC_PAGESIZE)
13123# else /* no _SC_PAGESIZE */
13124# ifdef HAVE_SYS_PARAM_H
13125# include <sys/param.h>
13126# ifdef EXEC_PAGESIZE
13127# define getpagesize() EXEC_PAGESIZE
13128# else /* no EXEC_PAGESIZE */
13129# ifdef NBPG
13130# define getpagesize() NBPG * CLSIZE
13131# ifndef CLSIZE
13132# define CLSIZE 1
13133# endif /* no CLSIZE */
13134# else /* no NBPG */
13135# ifdef NBPC
13136# define getpagesize() NBPC
13137# else /* no NBPC */
13138# ifdef PAGESIZE
13139# define getpagesize() PAGESIZE
13140# endif /* PAGESIZE */
13141# endif /* no NBPC */
13142# endif /* no NBPG */
13143# endif /* no EXEC_PAGESIZE */
13144# else /* no HAVE_SYS_PARAM_H */
13145# define getpagesize() 8192 /* punt totally */
13146# endif /* no HAVE_SYS_PARAM_H */
13147# endif /* no _SC_PAGESIZE */
13148
13149#endif /* no HAVE_GETPAGESIZE */
13150
13151int
13152main ()
13153{
13154 char *data, *data2, *data3;
13155 const char *cdata2;
13156 int i, pagesize;
13157 int fd, fd2;
13158
13159 pagesize = getpagesize ();
13160
13161 /* First, make a file with some known garbage in it. */
13162 data = (char *) malloc (pagesize);
13163 if (!data)
13164 return 1;
13165 for (i = 0; i < pagesize; ++i)
13166 *(data + i) = rand ();
13167 umask (0);
13168 fd = creat ("conftest.mmap", 0600);
13169 if (fd < 0)
13170 return 2;
13171 if (write (fd, data, pagesize) != pagesize)
13172 return 3;
13173 close (fd);
13174
13175 /* Next, check that the tail of a page is zero-filled. File must have
13176 non-zero length, otherwise we risk SIGBUS for entire page. */
13177 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
13178 if (fd2 < 0)
13179 return 4;
13180 cdata2 = "";
13181 if (write (fd2, cdata2, 1) != 1)
13182 return 5;
13183 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
13184 if (data2 == MAP_FAILED)
13185 return 6;
13186 for (i = 0; i < pagesize; ++i)
13187 if (*(data2 + i))
13188 return 7;
13189 close (fd2);
13190 if (munmap (data2, pagesize))
13191 return 8;
13192
13193 /* Next, try to mmap the file at a fixed address which already has
13194 something else allocated at it. If we can, also make sure that
13195 we see the same garbage. */
13196 fd = open ("conftest.mmap", O_RDWR);
13197 if (fd < 0)
13198 return 9;
13199 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
13200 MAP_PRIVATE | MAP_FIXED, fd, 0L))
13201 return 10;
13202 for (i = 0; i < pagesize; ++i)
13203 if (*(data + i) != *(data2 + i))
13204 return 11;
13205
13206 /* Finally, make sure that changes to the mapped area do not
13207 percolate back to the file as seen by read(). (This is a bug on
13208 some variants of i386 svr4.0.) */
13209 for (i = 0; i < pagesize; ++i)
13210 *(data2 + i) = *(data2 + i) + 1;
13211 data3 = (char *) malloc (pagesize);
13212 if (!data3)
13213 return 12;
13214 if (read (fd, data3, pagesize) != pagesize)
13215 return 13;
13216 for (i = 0; i < pagesize; ++i)
13217 if (*(data + i) != *(data3 + i))
13218 return 14;
13219 close (fd);
13220 return 0;
13221}
13222_ACEOF
13223if ac_fn_c_try_run "$LINENO"; then :
13224 ac_cv_func_mmap_fixed_mapped=yes
13225else
13226 ac_cv_func_mmap_fixed_mapped=no
13227fi
13228rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13229 conftest.$ac_objext conftest.beam conftest.$ac_ext
13230fi
13231
13232fi
13233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
13234$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
13235if test $ac_cv_func_mmap_fixed_mapped = yes; then
13236
13237$as_echo "#define HAVE_MMAP 1" >>confdefs.h
13238
13239fi
13240rm -f conftest.mmap conftest.txt
13241
87b9f255 13242for ac_func in getc_unlocked sbrk utimes
81ecdfbb
RW
13243do :
13244 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13245ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
d0ac1c44 13246if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
81ecdfbb
RW
13247 cat >>confdefs.h <<_ACEOF
13248#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13249_ACEOF
42ecbf5e 13250
81ecdfbb
RW
13251fi
13252done
42ecbf5e 13253
81ecdfbb 13254ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
d0ac1c44 13255if test "x$ac_cv_func_mkstemp" = xyes; then :
42ecbf5e 13256
81ecdfbb 13257$as_echo "#define HAVE_MKSTEMP 1" >>confdefs.h
42ecbf5e 13258
81ecdfbb 13259fi
42ecbf5e 13260
81ecdfbb 13261ac_fn_c_check_func "$LINENO" "mkdtemp" "ac_cv_func_mkdtemp"
d0ac1c44 13262if test "x$ac_cv_func_mkdtemp" = xyes; then :
42ecbf5e 13263
81ecdfbb 13264$as_echo "#define HAVE_MKDTEMP 1" >>confdefs.h
42ecbf5e 13265
81ecdfbb 13266fi
d15b04bd 13267
3bfcb652
NC
13268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
13269$as_echo_n "checking for mbstate_t... " >&6; }
13270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13271/* end confdefs.h. */
13272#include <wchar.h>
13273int
13274main ()
13275{
13276mbstate_t teststate;
13277 ;
13278 return 0;
13279}
13280_ACEOF
13281if ac_fn_c_try_compile "$LINENO"; then :
13282 have_mbstate_t=yes
13283else
13284 have_mbstate_t=no
13285fi
13286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mbstate_t" >&5
13288$as_echo "$have_mbstate_t" >&6; }
13289 if test x"$have_mbstate_t" = xyes; then
13290
13291$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
13292
13293 fi
d15b04bd 13294
81ecdfbb
RW
13295# Some systems have frexp only in -lm, not in -lc.
13296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing frexp" >&5
13297$as_echo_n "checking for library containing frexp... " >&6; }
d0ac1c44 13298if ${ac_cv_search_frexp+:} false; then :
81ecdfbb 13299 $as_echo_n "(cached) " >&6
f9c026a8 13300else
81ecdfbb
RW
13301 ac_func_search_save_LIBS=$LIBS
13302cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f9c026a8 13303/* end confdefs.h. */
f9c026a8 13304
81ecdfbb
RW
13305/* Override any GCC internal prototype to avoid an error.
13306 Use char because int might match the return type of a GCC
f9c026a8 13307 builtin and then its argument prototype would still apply. */
42ecbf5e
DJ
13308#ifdef __cplusplus
13309extern "C"
13310#endif
42ecbf5e
DJ
13311char frexp ();
13312int
13313main ()
13314{
81ecdfbb 13315return frexp ();
42ecbf5e
DJ
13316 ;
13317 return 0;
13318}
13319_ACEOF
81ecdfbb
RW
13320for ac_lib in '' m; do
13321 if test -z "$ac_lib"; then
13322 ac_res="none required"
13323 else
13324 ac_res=-l$ac_lib
42ecbf5e 13325 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
81ecdfbb
RW
13326 fi
13327 if ac_fn_c_try_link "$LINENO"; then :
13328 ac_cv_search_frexp=$ac_res
13329fi
13330rm -f core conftest.err conftest.$ac_objext \
13331 conftest$ac_exeext
d0ac1c44 13332 if ${ac_cv_search_frexp+:} false; then :
81ecdfbb
RW
13333 break
13334fi
13335done
d0ac1c44 13336if ${ac_cv_search_frexp+:} false; then :
42ecbf5e 13337
f353eb8a 13338else
81ecdfbb 13339 ac_cv_search_frexp=no
e5a52504 13340fi
81ecdfbb 13341rm conftest.$ac_ext
42ecbf5e
DJ
13342LIBS=$ac_func_search_save_LIBS
13343fi
81ecdfbb
RW
13344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_frexp" >&5
13345$as_echo "$ac_cv_search_frexp" >&6; }
13346ac_res=$ac_cv_search_frexp
13347if test "$ac_res" != no; then :
13348 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
42ecbf5e 13349
f353eb8a
ILT
13350fi
13351
42ecbf5e 13352
44350750
NC
13353
13354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
13355$as_echo_n "checking for LC_MESSAGES... " >&6; }
d0ac1c44 13356if ${am_cv_val_LC_MESSAGES+:} false; then :
44350750
NC
13357 $as_echo_n "(cached) " >&6
13358else
13359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13360/* end confdefs.h. */
13361#include <locale.h>
13362int
13363main ()
13364{
13365return LC_MESSAGES
13366 ;
13367 return 0;
13368}
13369_ACEOF
13370if ac_fn_c_try_link "$LINENO"; then :
13371 am_cv_val_LC_MESSAGES=yes
13372else
13373 am_cv_val_LC_MESSAGES=no
13374fi
13375rm -f core conftest.err conftest.$ac_objext \
13376 conftest$ac_exeext conftest.$ac_ext
13377fi
13378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
13379$as_echo "$am_cv_val_LC_MESSAGES" >&6; }
13380 if test $am_cv_val_LC_MESSAGES = yes; then
13381
13382$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
13383
13384 fi
13385
13386
81ecdfbb
RW
13387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
13388$as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
d0ac1c44 13389if ${bu_cv_decl_getopt_unistd_h+:} false; then :
81ecdfbb 13390 $as_echo_n "(cached) " >&6
e46eba98 13391else
81ecdfbb 13392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e 13393/* end confdefs.h. */
e46eba98 13394#include <unistd.h>
42ecbf5e
DJ
13395int
13396main ()
13397{
e46eba98 13398extern int getopt (int, char *const*, const char *);
42ecbf5e
DJ
13399 ;
13400 return 0;
13401}
13402_ACEOF
81ecdfbb 13403if ac_fn_c_try_compile "$LINENO"; then :
e46eba98
NC
13404 bu_cv_decl_getopt_unistd_h=yes
13405else
81ecdfbb 13406 bu_cv_decl_getopt_unistd_h=no
e46eba98 13407fi
81ecdfbb 13408rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e46eba98
NC
13409fi
13410
81ecdfbb
RW
13411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bu_cv_decl_getopt_unistd_h" >&5
13412$as_echo "$bu_cv_decl_getopt_unistd_h" >&6; }
e46eba98 13413if test $bu_cv_decl_getopt_unistd_h = yes; then
42ecbf5e 13414
81ecdfbb 13415$as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
e46eba98
NC
13416
13417fi
13418
252b5132
RH
13419# Under Next 3.2 <utime.h> apparently does not define struct utimbuf
13420# by default.
81ecdfbb
RW
13421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for utime.h" >&5
13422$as_echo_n "checking for utime.h... " >&6; }
d0ac1c44 13423if ${bu_cv_header_utime_h+:} false; then :
81ecdfbb 13424 $as_echo_n "(cached) " >&6
42ecbf5e 13425else
81ecdfbb 13426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e 13427/* end confdefs.h. */
252b5132
RH
13428#include <sys/types.h>
13429#ifdef HAVE_TIME_H
13430#include <time.h>
13431#endif
13432#include <utime.h>
42ecbf5e
DJ
13433int
13434main ()
13435{
252b5132 13436struct utimbuf s;
42ecbf5e
DJ
13437 ;
13438 return 0;
13439}
13440_ACEOF
81ecdfbb 13441if ac_fn_c_try_compile "$LINENO"; then :
252b5132
RH
13442 bu_cv_header_utime_h=yes
13443else
81ecdfbb 13444 bu_cv_header_utime_h=no
252b5132 13445fi
81ecdfbb 13446rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
13447fi
13448
81ecdfbb
RW
13449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bu_cv_header_utime_h" >&5
13450$as_echo "$bu_cv_header_utime_h" >&6; }
252b5132 13451if test $bu_cv_header_utime_h = yes; then
42ecbf5e 13452
81ecdfbb 13453$as_echo "#define HAVE_GOOD_UTIME_H 1" >>confdefs.h
252b5132
RH
13454
13455fi
13456
1f5345a6 13457ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
d0ac1c44 13458if test "x$ac_cv_have_decl_asprintf" = xyes; then :
1f5345a6
ST
13459 ac_have_decl=1
13460else
13461 ac_have_decl=0
13462fi
13463
13464cat >>confdefs.h <<_ACEOF
13465#define HAVE_DECL_ASPRINTF $ac_have_decl
13466_ACEOF
952781e8 13467ac_fn_c_check_decl "$LINENO" "environ" "ac_cv_have_decl_environ" "$ac_includes_default"
d0ac1c44 13468if test "x$ac_cv_have_decl_environ" = xyes; then :
952781e8
AM
13469 ac_have_decl=1
13470else
13471 ac_have_decl=0
13472fi
13473
13474cat >>confdefs.h <<_ACEOF
13475#define HAVE_DECL_ENVIRON $ac_have_decl
13476_ACEOF
952781e8 13477ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
d0ac1c44 13478if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
81ecdfbb 13479 ac_have_decl=1
252b5132 13480else
81ecdfbb 13481 ac_have_decl=0
252b5132 13482fi
252b5132 13483
398ee8f1 13484cat >>confdefs.h <<_ACEOF
952781e8 13485#define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
398ee8f1 13486_ACEOF
81ecdfbb 13487ac_fn_c_check_decl "$LINENO" "sbrk" "ac_cv_have_decl_sbrk" "$ac_includes_default"
d0ac1c44 13488if test "x$ac_cv_have_decl_sbrk" = xyes; then :
81ecdfbb 13489 ac_have_decl=1
252b5132 13490else
81ecdfbb 13491 ac_have_decl=0
252b5132 13492fi
252b5132 13493
398ee8f1 13494cat >>confdefs.h <<_ACEOF
81ecdfbb 13495#define HAVE_DECL_SBRK $ac_have_decl
398ee8f1 13496_ACEOF
952781e8 13497ac_fn_c_check_decl "$LINENO" "stpcpy" "ac_cv_have_decl_stpcpy" "$ac_includes_default"
d0ac1c44 13498if test "x$ac_cv_have_decl_stpcpy" = xyes; then :
81ecdfbb 13499 ac_have_decl=1
398ee8f1 13500else
81ecdfbb 13501 ac_have_decl=0
398ee8f1 13502fi
252b5132 13503
398ee8f1 13504cat >>confdefs.h <<_ACEOF
952781e8 13505#define HAVE_DECL_STPCPY $ac_have_decl
b7d4af3a 13506_ACEOF
db50c840
EB
13507
13508
ed2b5077
L
13509# Link in zlib if we can. This allows us to read compressed debug
13510# sections. This is used only by readelf.c (objdump uses bfd for
13511# reading compressed sections).
13512
13513 # Use the system's zlib library.
39f3de7c
L
13514 zlibdir="-L\$(top_builddir)/../zlib"
13515 zlibinc="-I\$(top_srcdir)/../zlib"
52546677 13516
0ee42ecd
L
13517# Check whether --with-system-zlib was given.
13518if test "${with_system_zlib+set}" = set; then :
afa59b79
L
13519 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
13520 zlibdir=
13521 zlibinc=
13522 fi
52546677 13523
52546677
RM
13524fi
13525
13526
52546677 13527
1b315056 13528
252b5132 13529
ed2b5077 13530
252b5132 13531case "${host}" in
8a965946 13532*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
42ecbf5e 13533
81ecdfbb 13534$as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
252b5132
RH
13535 ;;
13536esac
13537
13538# target-specific stuff:
13539
13540# Canonicalize the secondary target names.
13541if test -n "$enable_targets"; then
13542 for targ in `echo $enable_targets | sed 's/,/ /g'`
13543 do
6d83c84b 13544 result=`$ac_config_sub $targ 2>/dev/null`
252b5132
RH
13545 if test -n "$result"; then
13546 canon_targets="$canon_targets $result"
13547 else
13548 # Allow targets that config.sub doesn't recognize, like "all".
13549 canon_targets="$canon_targets $targ"
13550 fi
13551 done
13552fi
13553
81ecdfbb 13554ac_fn_c_check_header_mongrel "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
d0ac1c44 13555if test "x$ac_cv_header_iconv_h" = xyes; then :
5ba684e2
NC
13556
13557fi
13558
13559
13560
13561 if test "X$prefix" = "XNONE"; then
13562 acl_final_prefix="$ac_default_prefix"
13563 else
13564 acl_final_prefix="$prefix"
13565 fi
13566 if test "X$exec_prefix" = "XNONE"; then
13567 acl_final_exec_prefix='${prefix}'
13568 else
13569 acl_final_exec_prefix="$exec_prefix"
13570 fi
13571 acl_save_prefix="$prefix"
13572 prefix="$acl_final_prefix"
13573 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
13574 prefix="$acl_save_prefix"
13575
13576
81ecdfbb
RW
13577# Check whether --with-gnu-ld was given.
13578if test "${with_gnu_ld+set}" = set; then :
13579 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5ba684e2
NC
13580else
13581 with_gnu_ld=no
81ecdfbb
RW
13582fi
13583
5ba684e2
NC
13584# Prepare PATH_SEPARATOR.
13585# The user is always right.
13586if test "${PATH_SEPARATOR+set}" != set; then
13587 echo "#! /bin/sh" >conf$$.sh
13588 echo "exit 0" >>conf$$.sh
13589 chmod +x conf$$.sh
13590 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13591 PATH_SEPARATOR=';'
13592 else
13593 PATH_SEPARATOR=:
13594 fi
13595 rm -f conf$$.sh
13596fi
13597ac_prog=ld
13598if test "$GCC" = yes; then
13599 # Check if gcc -print-prog-name=ld gives a path.
81ecdfbb
RW
13600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
13601$as_echo_n "checking for ld used by GCC... " >&6; }
5ba684e2
NC
13602 case $host in
13603 *-*-mingw*)
13604 # gcc leaves a trailing carriage return which upsets mingw
13605 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13606 *)
13607 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13608 esac
13609 case $ac_prog in
13610 # Accept absolute paths.
13611 [\\/]* | [A-Za-z]:[\\/]*)
13612 re_direlt='/[^/][^/]*/\.\./'
13613 # Canonicalize the path of ld
13614 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
13615 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
13616 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
13617 done
13618 test -z "$LD" && LD="$ac_prog"
13619 ;;
13620 "")
13621 # If it fails, then pretend we aren't using GCC.
13622 ac_prog=ld
13623 ;;
13624 *)
13625 # If it is relative, then search for the first ld in PATH.
13626 with_gnu_ld=unknown
13627 ;;
13628 esac
13629elif test "$with_gnu_ld" = yes; then
81ecdfbb
RW
13630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13631$as_echo_n "checking for GNU ld... " >&6; }
5ba684e2 13632else
81ecdfbb
RW
13633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13634$as_echo_n "checking for non-GNU ld... " >&6; }
5ba684e2 13635fi
d0ac1c44 13636if ${acl_cv_path_LD+:} false; then :
81ecdfbb 13637 $as_echo_n "(cached) " >&6
5ba684e2
NC
13638else
13639 if test -z "$LD"; then
13640 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
13641 for ac_dir in $PATH; do
13642 test -z "$ac_dir" && ac_dir=.
13643 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13644 acl_cv_path_LD="$ac_dir/$ac_prog"
13645 # Check to see if the program is GNU ld. I'd rather use --version,
13646 # but apparently some GNU ld's only accept -v.
13647 # Break only if it was the GNU/non-GNU ld that we prefer.
13648 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
13649 test "$with_gnu_ld" != no && break
13650 else
13651 test "$with_gnu_ld" != yes && break
13652 fi
13653 fi
13654 done
13655 IFS="$ac_save_ifs"
13656else
13657 acl_cv_path_LD="$LD" # Let the user override the test with a path.
13658fi
13659fi
13660
13661LD="$acl_cv_path_LD"
13662if test -n "$LD"; then
81ecdfbb
RW
13663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13664$as_echo "$LD" >&6; }
5ba684e2 13665else
81ecdfbb
RW
13666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13667$as_echo "no" >&6; }
5ba684e2 13668fi
d0ac1c44 13669test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
81ecdfbb
RW
13670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13671$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
d0ac1c44 13672if ${acl_cv_prog_gnu_ld+:} false; then :
81ecdfbb 13673 $as_echo_n "(cached) " >&6
5ba684e2
NC
13674else
13675 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
13676if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
13677 acl_cv_prog_gnu_ld=yes
13678else
13679 acl_cv_prog_gnu_ld=no
13680fi
13681fi
81ecdfbb
RW
13682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
13683$as_echo "$acl_cv_prog_gnu_ld" >&6; }
5ba684e2
NC
13684with_gnu_ld=$acl_cv_prog_gnu_ld
13685
13686
13687
81ecdfbb
RW
13688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
13689$as_echo_n "checking for shared library run path origin... " >&6; }
d0ac1c44 13690if ${acl_cv_rpath+:} false; then :
81ecdfbb 13691 $as_echo_n "(cached) " >&6
5ba684e2
NC
13692else
13693
13694 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
13695 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
13696 . ./conftest.sh
13697 rm -f ./conftest.sh
13698 acl_cv_rpath=done
13699
13700fi
81ecdfbb
RW
13701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
13702$as_echo "$acl_cv_rpath" >&6; }
5ba684e2
NC
13703 wl="$acl_cv_wl"
13704 libext="$acl_cv_libext"
13705 shlibext="$acl_cv_shlibext"
13706 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
13707 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
13708 hardcode_direct="$acl_cv_hardcode_direct"
13709 hardcode_minus_L="$acl_cv_hardcode_minus_L"
81ecdfbb
RW
13710 # Check whether --enable-rpath was given.
13711if test "${enable_rpath+set}" = set; then :
13712 enableval=$enable_rpath; :
5ba684e2
NC
13713else
13714 enable_rpath=yes
81ecdfbb
RW
13715fi
13716
5ba684e2
NC
13717
13718
13719
13720
13721
13722
13723
13724 use_additional=yes
13725
13726 acl_save_prefix="$prefix"
13727 prefix="$acl_final_prefix"
13728 acl_save_exec_prefix="$exec_prefix"
13729 exec_prefix="$acl_final_exec_prefix"
13730
13731 eval additional_includedir=\"$includedir\"
13732 eval additional_libdir=\"$libdir\"
13733
13734 exec_prefix="$acl_save_exec_prefix"
13735 prefix="$acl_save_prefix"
13736
13737
81ecdfbb
RW
13738# Check whether --with-libiconv-prefix was given.
13739if test "${with_libiconv_prefix+set}" = set; then :
13740 withval=$with_libiconv_prefix;
5ba684e2
NC
13741 if test "X$withval" = "Xno"; then
13742 use_additional=no
13743 else
13744 if test "X$withval" = "X"; then
13745
13746 acl_save_prefix="$prefix"
13747 prefix="$acl_final_prefix"
13748 acl_save_exec_prefix="$exec_prefix"
13749 exec_prefix="$acl_final_exec_prefix"
13750
13751 eval additional_includedir=\"$includedir\"
13752 eval additional_libdir=\"$libdir\"
13753
13754 exec_prefix="$acl_save_exec_prefix"
13755 prefix="$acl_save_prefix"
13756
13757 else
13758 additional_includedir="$withval/include"
13759 additional_libdir="$withval/lib"
13760 fi
13761 fi
13762
81ecdfbb
RW
13763fi
13764
9f1528a1
AB
13765
13766# Check whether --with-libiconv-type was given.
13767if test "${with_libiconv_type+set}" = set; then :
13768 withval=$with_libiconv_type; with_libiconv_type=$withval
13769else
13770 with_libiconv_type=auto
13771fi
13772
13773 lib_type=`eval echo \$with_libiconv_type`
13774
5ba684e2
NC
13775 LIBICONV=
13776 LTLIBICONV=
13777 INCICONV=
13778 rpathdirs=
13779 ltrpathdirs=
13780 names_already_handled=
13781 names_next_round='iconv '
13782 while test -n "$names_next_round"; do
13783 names_this_round="$names_next_round"
13784 names_next_round=
13785 for name in $names_this_round; do
13786 already_handled=
13787 for n in $names_already_handled; do
13788 if test "$n" = "$name"; then
13789 already_handled=yes
13790 break
13791 fi
13792 done
13793 if test -z "$already_handled"; then
13794 names_already_handled="$names_already_handled $name"
13795 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13796 eval value=\"\$HAVE_LIB$uppername\"
13797 if test -n "$value"; then
13798 if test "$value" = yes; then
13799 eval value=\"\$LIB$uppername\"
13800 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
13801 eval value=\"\$LTLIB$uppername\"
13802 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
13803 else
13804 :
13805 fi
13806 else
13807 found_dir=
13808 found_la=
13809 found_so=
13810 found_a=
13811 if test $use_additional = yes; then
9f1528a1 13812 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
5ba684e2
NC
13813 found_dir="$additional_libdir"
13814 found_so="$additional_libdir/lib$name.$shlibext"
13815 if test -f "$additional_libdir/lib$name.la"; then
13816 found_la="$additional_libdir/lib$name.la"
13817 fi
9f1528a1 13818 elif test x$lib_type != xshared; then
5ba684e2
NC
13819 if test -f "$additional_libdir/lib$name.$libext"; then
13820 found_dir="$additional_libdir"
13821 found_a="$additional_libdir/lib$name.$libext"
13822 if test -f "$additional_libdir/lib$name.la"; then
13823 found_la="$additional_libdir/lib$name.la"
13824 fi
13825 fi
13826 fi
13827 fi
13828 if test "X$found_dir" = "X"; then
13829 for x in $LDFLAGS $LTLIBICONV; do
13830
13831 acl_save_prefix="$prefix"
13832 prefix="$acl_final_prefix"
13833 acl_save_exec_prefix="$exec_prefix"
13834 exec_prefix="$acl_final_exec_prefix"
13835 eval x=\"$x\"
13836 exec_prefix="$acl_save_exec_prefix"
13837 prefix="$acl_save_prefix"
13838
13839 case "$x" in
13840 -L*)
13841 dir=`echo "X$x" | sed -e 's/^X-L//'`
9f1528a1 13842 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
5ba684e2
NC
13843 found_dir="$dir"
13844 found_so="$dir/lib$name.$shlibext"
13845 if test -f "$dir/lib$name.la"; then
13846 found_la="$dir/lib$name.la"
13847 fi
9f1528a1 13848 elif test x$lib_type != xshared; then
5ba684e2
NC
13849 if test -f "$dir/lib$name.$libext"; then
13850 found_dir="$dir"
13851 found_a="$dir/lib$name.$libext"
13852 if test -f "$dir/lib$name.la"; then
13853 found_la="$dir/lib$name.la"
13854 fi
13855 fi
13856 fi
13857 ;;
13858 esac
13859 if test "X$found_dir" != "X"; then
13860 break
13861 fi
13862 done
13863 fi
13864 if test "X$found_dir" != "X"; then
13865 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
13866 if test "X$found_so" != "X"; then
13867 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
13868 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13869 else
13870 haveit=
13871 for x in $ltrpathdirs; do
13872 if test "X$x" = "X$found_dir"; then
13873 haveit=yes
13874 break
13875 fi
13876 done
13877 if test -z "$haveit"; then
13878 ltrpathdirs="$ltrpathdirs $found_dir"
13879 fi
13880 if test "$hardcode_direct" = yes; then
13881 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13882 else
13883 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
13884 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13885 haveit=
13886 for x in $rpathdirs; do
13887 if test "X$x" = "X$found_dir"; then
13888 haveit=yes
13889 break
13890 fi
13891 done
13892 if test -z "$haveit"; then
13893 rpathdirs="$rpathdirs $found_dir"
13894 fi
13895 else
13896 haveit=
13897 for x in $LDFLAGS $LIBICONV; do
13898
13899 acl_save_prefix="$prefix"
13900 prefix="$acl_final_prefix"
13901 acl_save_exec_prefix="$exec_prefix"
13902 exec_prefix="$acl_final_exec_prefix"
13903 eval x=\"$x\"
13904 exec_prefix="$acl_save_exec_prefix"
13905 prefix="$acl_save_prefix"
13906
13907 if test "X$x" = "X-L$found_dir"; then
13908 haveit=yes
13909 break
13910 fi
13911 done
13912 if test -z "$haveit"; then
13913 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
13914 fi
13915 if test "$hardcode_minus_L" != no; then
13916 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13917 else
13918 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
13919 fi
13920 fi
13921 fi
13922 fi
13923 else
13924 if test "X$found_a" != "X"; then
13925 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
13926 else
13927 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
13928 fi
13929 fi
13930 additional_includedir=
13931 case "$found_dir" in
13932 */lib | */lib/)
13933 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
13934 additional_includedir="$basedir/include"
13935 ;;
13936 esac
13937 if test "X$additional_includedir" != "X"; then
13938 if test "X$additional_includedir" != "X/usr/include"; then
13939 haveit=
13940 if test "X$additional_includedir" = "X/usr/local/include"; then
13941 if test -n "$GCC"; then
13942 case $host_os in
13943 linux*) haveit=yes;;
13944 esac
13945 fi
13946 fi
13947 if test -z "$haveit"; then
13948 for x in $CPPFLAGS $INCICONV; do
13949
13950 acl_save_prefix="$prefix"
13951 prefix="$acl_final_prefix"
13952 acl_save_exec_prefix="$exec_prefix"
13953 exec_prefix="$acl_final_exec_prefix"
13954 eval x=\"$x\"
13955 exec_prefix="$acl_save_exec_prefix"
13956 prefix="$acl_save_prefix"
13957
13958 if test "X$x" = "X-I$additional_includedir"; then
13959 haveit=yes
13960 break
13961 fi
13962 done
13963 if test -z "$haveit"; then
13964 if test -d "$additional_includedir"; then
13965 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
13966 fi
13967 fi
13968 fi
13969 fi
13970 fi
13971 if test -n "$found_la"; then
13972 save_libdir="$libdir"
13973 case "$found_la" in
13974 */* | *\\*) . "$found_la" ;;
13975 *) . "./$found_la" ;;
13976 esac
13977 libdir="$save_libdir"
13978 for dep in $dependency_libs; do
13979 case "$dep" in
13980 -L*)
13981 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13982 if test "X$additional_libdir" != "X/usr/lib"; then
13983 haveit=
13984 if test "X$additional_libdir" = "X/usr/local/lib"; then
13985 if test -n "$GCC"; then
13986 case $host_os in
13987 linux*) haveit=yes;;
13988 esac
13989 fi
13990 fi
13991 if test -z "$haveit"; then
13992 haveit=
13993 for x in $LDFLAGS $LIBICONV; do
13994
13995 acl_save_prefix="$prefix"
13996 prefix="$acl_final_prefix"
13997 acl_save_exec_prefix="$exec_prefix"
13998 exec_prefix="$acl_final_exec_prefix"
13999 eval x=\"$x\"
14000 exec_prefix="$acl_save_exec_prefix"
14001 prefix="$acl_save_prefix"
14002
14003 if test "X$x" = "X-L$additional_libdir"; then
14004 haveit=yes
14005 break
14006 fi
14007 done
14008 if test -z "$haveit"; then
14009 if test -d "$additional_libdir"; then
14010 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
14011 fi
14012 fi
14013 haveit=
14014 for x in $LDFLAGS $LTLIBICONV; do
14015
14016 acl_save_prefix="$prefix"
14017 prefix="$acl_final_prefix"
14018 acl_save_exec_prefix="$exec_prefix"
14019 exec_prefix="$acl_final_exec_prefix"
14020 eval x=\"$x\"
14021 exec_prefix="$acl_save_exec_prefix"
14022 prefix="$acl_save_prefix"
14023
14024 if test "X$x" = "X-L$additional_libdir"; then
14025 haveit=yes
14026 break
14027 fi
14028 done
14029 if test -z "$haveit"; then
14030 if test -d "$additional_libdir"; then
14031 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
14032 fi
14033 fi
14034 fi
14035 fi
14036 ;;
14037 -R*)
14038 dir=`echo "X$dep" | sed -e 's/^X-R//'`
14039 if test "$enable_rpath" != no; then
14040 haveit=
14041 for x in $rpathdirs; do
14042 if test "X$x" = "X$dir"; then
14043 haveit=yes
14044 break
14045 fi
14046 done
14047 if test -z "$haveit"; then
14048 rpathdirs="$rpathdirs $dir"
14049 fi
14050 haveit=
14051 for x in $ltrpathdirs; do
14052 if test "X$x" = "X$dir"; then
14053 haveit=yes
14054 break
14055 fi
14056 done
14057 if test -z "$haveit"; then
14058 ltrpathdirs="$ltrpathdirs $dir"
14059 fi
14060 fi
14061 ;;
14062 -l*)
14063 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14064 ;;
14065 *.la)
14066 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14067 ;;
14068 *)
14069 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
14070 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
14071 ;;
14072 esac
14073 done
14074 fi
14075 else
9f1528a1
AB
14076 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
14077 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14078 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
14079 else
14080 LIBICONV="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
14081 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
14082 fi
5ba684e2
NC
14083 fi
14084 fi
14085 fi
14086 done
14087 done
14088 if test "X$rpathdirs" != "X"; then
14089 if test -n "$hardcode_libdir_separator"; then
14090 alldirs=
14091 for found_dir in $rpathdirs; do
14092 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14093 done
14094 acl_save_libdir="$libdir"
14095 libdir="$alldirs"
14096 eval flag=\"$hardcode_libdir_flag_spec\"
14097 libdir="$acl_save_libdir"
14098 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14099 else
14100 for found_dir in $rpathdirs; do
14101 acl_save_libdir="$libdir"
14102 libdir="$found_dir"
14103 eval flag=\"$hardcode_libdir_flag_spec\"
14104 libdir="$acl_save_libdir"
14105 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14106 done
14107 fi
14108 fi
14109 if test "X$ltrpathdirs" != "X"; then
14110 for found_dir in $ltrpathdirs; do
14111 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
14112 done
14113 fi
14114
14115
14116
14117
14118
14119
14120
81ecdfbb
RW
14121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
14122$as_echo_n "checking for iconv... " >&6; }
d0ac1c44 14123if ${am_cv_func_iconv+:} false; then :
81ecdfbb 14124 $as_echo_n "(cached) " >&6
5ba684e2
NC
14125else
14126
14127 am_cv_func_iconv="no, consider installing GNU libiconv"
14128 am_cv_lib_iconv=no
cfe101c6
YS
14129 am_save_CPPFLAGS="$CPPFLAGS"
14130 CPPFLAGS="$CPPFLAGS $INCICONV"
81ecdfbb 14131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5ba684e2
NC
14132/* end confdefs.h. */
14133#include <stdlib.h>
14134#include <iconv.h>
14135int
14136main ()
14137{
14138iconv_t cd = iconv_open("","");
14139 iconv(cd,NULL,NULL,NULL,NULL);
14140 iconv_close(cd);
14141 ;
14142 return 0;
14143}
14144_ACEOF
81ecdfbb 14145if ac_fn_c_try_link "$LINENO"; then :
5ba684e2 14146 am_cv_func_iconv=yes
5ba684e2 14147fi
81ecdfbb
RW
14148rm -f core conftest.err conftest.$ac_objext \
14149 conftest$ac_exeext conftest.$ac_ext
cfe101c6
YS
14150 CPPFLAGS="$am_save_CPPFLAGS"
14151
14152 if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
14153 for _libs in .libs _libs; do
14154 am_save_CPPFLAGS="$CPPFLAGS"
14155 am_save_LIBS="$LIBS"
14156 CPPFLAGS="$CPPFLAGS -I../libiconv/include"
14157 LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a"
14158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14159/* end confdefs.h. */
14160#include <stdlib.h>
14161#include <iconv.h>
14162int
14163main ()
14164{
14165iconv_t cd = iconv_open("","");
14166 iconv(cd,NULL,NULL,NULL,NULL);
14167 iconv_close(cd);
14168 ;
14169 return 0;
14170}
14171_ACEOF
14172if ac_fn_c_try_link "$LINENO"; then :
14173 INCICONV="-I../libiconv/include"
14174 LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a
14175 LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la
14176 am_cv_lib_iconv=yes
14177 am_cv_func_iconv=yes
14178fi
14179rm -f core conftest.err conftest.$ac_objext \
14180 conftest$ac_exeext conftest.$ac_ext
14181 CPPFLAGS="$am_save_CPPFLAGS"
14182 LIBS="$am_save_LIBS"
14183 if test "$am_cv_func_iconv" = "yes"; then
14184 break
14185 fi
14186 done
14187 fi
14188
5ba684e2 14189 if test "$am_cv_func_iconv" != yes; then
cfe101c6 14190 am_save_CPPFLAGS="$CPPFLAGS"
5ba684e2 14191 am_save_LIBS="$LIBS"
5d762de0 14192 CPPFLAGS="$CPPFLAGS $INCICONV"
5ba684e2 14193 LIBS="$LIBS $LIBICONV"
81ecdfbb 14194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5ba684e2
NC
14195/* end confdefs.h. */
14196#include <stdlib.h>
14197#include <iconv.h>
14198int
14199main ()
14200{
14201iconv_t cd = iconv_open("","");
14202 iconv(cd,NULL,NULL,NULL,NULL);
14203 iconv_close(cd);
14204 ;
14205 return 0;
14206}
14207_ACEOF
81ecdfbb 14208if ac_fn_c_try_link "$LINENO"; then :
5ba684e2
NC
14209 am_cv_lib_iconv=yes
14210 am_cv_func_iconv=yes
5ba684e2 14211fi
81ecdfbb
RW
14212rm -f core conftest.err conftest.$ac_objext \
14213 conftest$ac_exeext conftest.$ac_ext
cfe101c6 14214 CPPFLAGS="$am_save_CPPFLAGS"
5ba684e2
NC
14215 LIBS="$am_save_LIBS"
14216 fi
14217
14218fi
81ecdfbb
RW
14219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
14220$as_echo "$am_cv_func_iconv" >&6; }
5ba684e2
NC
14221 if test "$am_cv_func_iconv" = yes; then
14222
81ecdfbb 14223$as_echo "#define HAVE_ICONV 1" >>confdefs.h
5ba684e2
NC
14224
14225 fi
14226 if test "$am_cv_lib_iconv" = yes; then
cfe101c6
YS
14227
14228 for element in $INCICONV; do
14229 haveit=
14230 for x in $CPPFLAGS; do
14231
14232 acl_save_prefix="$prefix"
14233 prefix="$acl_final_prefix"
14234 acl_save_exec_prefix="$exec_prefix"
14235 exec_prefix="$acl_final_exec_prefix"
14236 eval x=\"$x\"
14237 exec_prefix="$acl_save_exec_prefix"
14238 prefix="$acl_save_prefix"
14239
14240 if test "X$x" = "X$element"; then
14241 haveit=yes
14242 break
14243 fi
14244 done
14245 if test -z "$haveit"; then
14246 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14247 fi
14248 done
14249
81ecdfbb
RW
14250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
14251$as_echo_n "checking how to link with libiconv... " >&6; }
14252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
14253$as_echo "$LIBICONV" >&6; }
5ba684e2 14254 else
5ba684e2
NC
14255 LIBICONV=
14256 LTLIBICONV=
14257 fi
14258
14259
14260
14261 if test "$am_cv_func_iconv" = yes; then
81ecdfbb
RW
14262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
14263$as_echo_n "checking for iconv declaration... " >&6; }
d0ac1c44 14264 if ${am_cv_proto_iconv+:} false; then :
81ecdfbb 14265 $as_echo_n "(cached) " >&6
5ba684e2
NC
14266else
14267
81ecdfbb 14268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5ba684e2
NC
14269/* end confdefs.h. */
14270
14271#include <stdlib.h>
14272#include <iconv.h>
14273extern
14274#ifdef __cplusplus
14275"C"
14276#endif
14277#if defined(__STDC__) || defined(__cplusplus)
14278size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
14279#else
14280size_t iconv();
14281#endif
14282
14283int
14284main ()
14285{
14286
14287 ;
14288 return 0;
14289}
14290_ACEOF
81ecdfbb 14291if ac_fn_c_try_compile "$LINENO"; then :
5ba684e2
NC
14292 am_cv_proto_iconv_arg1=""
14293else
81ecdfbb 14294 am_cv_proto_iconv_arg1="const"
5ba684e2 14295fi
81ecdfbb 14296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5ba684e2
NC
14297 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
14298fi
14299
14300 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
81ecdfbb 14301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
5ba684e2 14302 }$am_cv_proto_iconv" >&5
81ecdfbb
RW
14303$as_echo "${ac_t:-
14304 }$am_cv_proto_iconv" >&6; }
5ba684e2
NC
14305
14306cat >>confdefs.h <<_ACEOF
14307#define ICONV_CONST $am_cv_proto_iconv_arg1
14308_ACEOF
14309
14310 fi
14311
14312
252b5132 14313all_targets=false
252b5132
RH
14314BUILD_SRCONV=
14315BUILD_DLLTOOL=
14316DLLTOOL_DEFS=
7aad4c3d 14317DLLTOOL_DEFAULT=
252b5132 14318BUILD_WINDRES=
692ed3e7 14319BUILD_WINDMC=
252b5132
RH
14320BUILD_DLLWRAP=
14321BUILD_MISC=
1d97d67f 14322BUILD_INSTALL_MISC=
8b1e6df3 14323OBJDUMP_DEFS=
6abcee90
TG
14324OBJDUMP_PRIVATE_VECTORS=
14325OBJDUMP_PRIVATE_OFILES=
14326od_vectors=
252b5132
RH
14327
14328for targ in $target $canon_targets
14329do
14330 if test "x$targ" = "xall"; then
14331 all_targets=true
252b5132 14332 BUILD_SRCONV='$(SRCONV_PROG)'
1d97d67f 14333 BUILD_MISC="${BUILD_MISC} "'bin2c$(EXEEXT_FOR_BUILD)'
003bc0ba
NC
14334 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14335 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14336 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14337 if test -z "$DLLTOOL_DEFAULT"; then
14338 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
14339 fi
14340 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
14341 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
1ab52cbe 14342 od_vectors="$od_vectors objdump_private_desc_xcoff"
252b5132 14343 else
252b5132
RH
14344 case $targ in
14345 *-*-hms*) BUILD_SRCONV='$(SRCONV_PROG)' ;;
14346 esac
6abcee90 14347
252b5132 14348 case $targ in
361dff73 14349 arm-wince-pe* | arm-*-wince | arm*-*-cegcc* | arm*-*-mingw32ce*)
7148cc28 14350 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
14351 if test -z "$DLLTOOL_DEFAULT"; then
14352 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM_WINCE"
14353 fi
7148cc28
NC
14354 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_WINCE -DDLLTOOL_ARM"
14355 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 14356 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
7148cc28
NC
14357 ;;
14358 arm-*-pe*)
252b5132 14359 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
14360 if test -z "$DLLTOOL_DEFAULT"; then
14361 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM"
14362 fi
252b5132
RH
14363 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
14364 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 14365 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
7a7b06ef 14366 ;;
ee36d918 14367 x86_64-*-mingw* | x86_64-*-cygwin*)
99ad8390 14368 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
14369 if test -z "$DLLTOOL_DEFAULT"; then
14370 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MX86_64"
14371 fi
99ad8390
NC
14372 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MX86_64"
14373 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 14374 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
99ad8390
NC
14375 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
14376 ;;
80c7c40a 14377 i[3-7]86-*-pe* | i[3-7]86-*-cygwin* | i[3-7]86-*-mingw32** | i[3-7]86-*-netbsdpe*)
252b5132 14378 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
14379 if test -z "$DLLTOOL_DEFAULT"; then
14380 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
14381 fi
252b5132
RH
14382 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
14383 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 14384 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
252b5132 14385 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
7a7b06ef 14386 ;;
80c7c40a 14387 i[3-7]86-*-interix)
7a7b06ef 14388 BUILD_DLLTOOL='$(DLLTOOL_PROG)'
7aad4c3d
L
14389 if test -z "$DLLTOOL_DEFAULT"; then
14390 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
14391 fi
7a7b06ef
ILT
14392 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
14393 ;;
f0660b73
NC
14394 powerpc*-aix5.[01])
14395 ;;
e5231592 14396 powerpc*-aix[5-9].*)
f0660b73
NC
14397 OBJDUMP_DEFS="-DAIX_WEAK_SUPPORT"
14398 ;;
59678365 14399 powerpc*-*-linux* | powerpc*-*-elf* | powerpc*-*-eabi*)
1ab52cbe
AM
14400 case "$BUILD_INSTALL_MISC" in
14401 *embedspu*) ;;
14402 *) BUILD_INSTALL_MISC="${BUILD_INSTALL_MISC} embedspu"
14403 esac
669a9a2a 14404 ;;
e1d5b1e7 14405 sh*-*-pe)
8a0e0f38 14406 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
14407 if test -z "$DLLTOOL_DEFAULT"; then
14408 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_SH"
14409 fi
8a0e0f38
NC
14410 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_SH"
14411 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 14412 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
8a0e0f38 14413 ;;
cd14b966 14414 spu-*-*)
1d97d67f 14415 BUILD_MISC="${BUILD_MISC} "'bin2c$(EXEEXT_FOR_BUILD)'
cd14b966 14416 ;;
e1d5b1e7 14417 mips*-*-pe)
8a0e0f38 14418 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
14419 if test -z "$DLLTOOL_DEFAULT"; then
14420 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MIPS"
14421 fi
8a0e0f38
NC
14422 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MIPS"
14423 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 14424 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
7a7b06ef 14425 ;;
27a710e5 14426 mcore-*-pe)
661016bb 14427 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
14428 if test -z "$DLLTOOL_DEFAULT"; then
14429 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MCORE"
14430 fi
661016bb
NC
14431 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE"
14432 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 14433 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
7a7b06ef 14434 ;;
27a710e5 14435 mcore-*-elf)
661016bb 14436 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
14437 if test -z "$DLLTOOL_DEFAULT"; then
14438 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MCORE_ELF"
14439 fi
661016bb 14440 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE_ELF"
7a7b06ef 14441 ;;
15ab5209
DB
14442 mep-*)
14443 OBJDUMP_DEFS="-DSKIP_ZEROES=256 -DSKIP_ZEROES_AT_END=0"
14444 ;;
252b5132 14445 esac
6abcee90
TG
14446
14447 # Add objdump private vectors.
14448 case $targ in
6d0cfb9c
DC
14449 avr-*-*)
14450 od_vectors="$od_vectors objdump_private_desc_elf32_avr"
14451 ;;
52fe4420 14452 powerpc*-*-aix* | rs6000-*-aix*)
c5012cd8
TG
14453 od_vectors="$od_vectors objdump_private_desc_xcoff"
14454 ;;
14455 *-*-darwin*)
14456 od_vectors="$od_vectors objdump_private_desc_mach_o"
6abcee90
TG
14457 ;;
14458 esac
252b5132
RH
14459 fi
14460done
14461
6abcee90
TG
14462# Uniq objdump private vector, build objdump target ofiles.
14463od_files=
14464f=""
14465for i in $od_vectors ; do
14466 case " $f " in
14467 *" $i "*) ;;
14468 *)
14469 f="$f $i"
14470 OBJDUMP_PRIVATE_VECTORS="$OBJDUMP_PRIVATE_VECTORS &$i,"
14471 case $i in
6d0cfb9c
DC
14472 objdump_private_desc_elf32_avr)
14473 od_files="$od_files od-elf32_avr" ;;
6abcee90
TG
14474 objdump_private_desc_xcoff)
14475 od_files="$od_files od-xcoff" ;;
c5012cd8
TG
14476 objdump_private_desc_mach_o)
14477 od_files="$od_files od-macho" ;;
d0ac1c44 14478 *) as_fn_error $? "*** unknown private vector $i" "$LINENO" 5 ;;
6abcee90
TG
14479 esac
14480 ;;
14481 esac
14482done
14483
14484# Uniq objdump target ofiles
14485f=""
14486for i in $od_files ; do
14487 case " $f " in
14488 *" $i "*) ;;
14489 *)
14490 f="$f $i"
14491 OBJDUMP_PRIVATE_OFILES="$OBJDUMP_PRIVATE_OFILES $i.$objext"
14492 ;;
14493 esac
14494done
14495
7aad4c3d
L
14496DLLTOOL_DEFS="$DLLTOOL_DEFS $DLLTOOL_DEFAULT"
14497
42ecbf5e
DJ
14498if test "${with_windres+set}" = set; then
14499 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14500fi
14501
692ed3e7
NC
14502if test "${with_windmc+set}" = set; then
14503 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14504fi
14505
6abcee90
TG
14506OBJDUMP_DEFS="${OBJDUMP_DEFS} -DOBJDUMP_PRIVATE_VECTORS=\"${OBJDUMP_PRIVATE_VECTORS}\""
14507
14508
692ed3e7 14509
42ecbf5e
DJ
14510
14511
14512
14513
14514
14515
14516
14517
14518
14519
42ecbf5e
DJ
14520cat >>confdefs.h <<_ACEOF
14521#define TARGET "${target}"
14522_ACEOF
14523
14524
14525targ=$target
14526. $srcdir/../bfd/config.bfd
14527if test "x$targ_underscore" = "xyes"; then
14528 UNDERSCORE=1
14529else
14530 UNDERSCORE=0
14531fi
14532
14533cat >>confdefs.h <<_ACEOF
14534#define TARGET_PREPENDS_UNDERSCORE $UNDERSCORE
14535_ACEOF
14536
14537
14538# Emulation
52fbfb5d
AM
14539targ=$target
14540. ${srcdir}/configure.tgt
14541EMULATION=$targ_emul
14542EMULATION_VECTOR=$targ_emul_vector
42ecbf5e
DJ
14543
14544
14545
14546
108a6f8e
CD
14547# Required for html and install-html
14548
14549
14550
14551
31dd3154 14552
81ecdfbb 14553ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in"
da594c4a 14554
42ecbf5e
DJ
14555cat >confcache <<\_ACEOF
14556# This file is a shell script that caches the results of configure
14557# tests run on this system so they can be shared between configure
14558# scripts and configure runs, see configure's option --config-cache.
14559# It is not useful on other systems. If it contains results you don't
14560# want to keep, you may remove or edit it.
14561#
14562# config.status only pays attention to the cache file if you give it
14563# the --recheck option to rerun configure.
14564#
14565# `ac_cv_env_foo' variables (set or unset) will be overridden when
14566# loading this file, other *unset* `ac_cv_foo' will be assigned the
14567# following values.
14568
14569_ACEOF
14570
14571# The following way of writing the cache mishandles newlines in values,
14572# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 14573# So, we kill variables containing newlines.
42ecbf5e
DJ
14574# Ultrix sh set writes to stderr and can't be redirected directly,
14575# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
14576(
14577 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14578 eval ac_val=\$$ac_var
14579 case $ac_val in #(
14580 *${as_nl}*)
14581 case $ac_var in #(
14582 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14583$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14584 esac
14585 case $ac_var in #(
14586 _ | IFS | as_nl) ;; #(
14587 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14588 *) { eval $ac_var=; unset $ac_var;} ;;
14589 esac ;;
14590 esac
14591 done
14592
42ecbf5e 14593 (set) 2>&1 |
81ecdfbb
RW
14594 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14595 *${as_nl}ac_space=\ *)
14596 # `set' does not quote correctly, so add quotes: double-quote
14597 # substitution turns \\\\ into \\, and sed turns \\ into \.
42ecbf5e
DJ
14598 sed -n \
14599 "s/'/'\\\\''/g;
14600 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 14601 ;; #(
42ecbf5e
DJ
14602 *)
14603 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 14604 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
42ecbf5e 14605 ;;
81ecdfbb
RW
14606 esac |
14607 sort
14608) |
42ecbf5e 14609 sed '
81ecdfbb 14610 /^ac_cv_env_/b end
42ecbf5e 14611 t clear
81ecdfbb 14612 :clear
42ecbf5e
DJ
14613 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14614 t end
81ecdfbb
RW
14615 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14616 :end' >>confcache
14617if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14618 if test -w "$cache_file"; then
d0ac1c44 14619 if test "x$cache_file" != "x/dev/null"; then
81ecdfbb
RW
14620 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14621$as_echo "$as_me: updating cache $cache_file" >&6;}
d0ac1c44
SM
14622 if test ! -f "$cache_file" || test -h "$cache_file"; then
14623 cat confcache >"$cache_file"
14624 else
14625 case $cache_file in #(
14626 */* | ?:*)
14627 mv -f confcache "$cache_file"$$ &&
14628 mv -f "$cache_file"$$ "$cache_file" ;; #(
14629 *)
14630 mv -f confcache "$cache_file" ;;
14631 esac
14632 fi
14633 fi
42ecbf5e 14634 else
81ecdfbb
RW
14635 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14636$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
42ecbf5e
DJ
14637 fi
14638fi
14639rm -f confcache
14640
14641test "x$prefix" = xNONE && prefix=$ac_default_prefix
14642# Let make expand exec_prefix.
14643test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14644
42ecbf5e
DJ
14645DEFS=-DHAVE_CONFIG_H
14646
14647ac_libobjs=
14648ac_ltlibobjs=
d0ac1c44 14649U=
42ecbf5e
DJ
14650for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14651 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
14652 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14653 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14654 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14655 # will be set to the directory where LIBOBJS objects are built.
14656 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14657 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
42ecbf5e
DJ
14658done
14659LIBOBJS=$ac_libobjs
14660
14661LTLIBOBJS=$ac_ltlibobjs
14662
14663
d0ac1c44
SM
14664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14665$as_echo_n "checking that generated files are newer than configure... " >&6; }
14666 if test -n "$am_sleep_pid"; then
14667 # Hide warnings about reused PIDs.
14668 wait $am_sleep_pid 2>/dev/null
14669 fi
14670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14671$as_echo "done" >&6; }
81ecdfbb
RW
14672 if test -n "$EXEEXT"; then
14673 am__EXEEXT_TRUE=
14674 am__EXEEXT_FALSE='#'
14675else
14676 am__EXEEXT_TRUE='#'
14677 am__EXEEXT_FALSE=
42ecbf5e 14678fi
81ecdfbb 14679
87b9f255
AM
14680if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14681 as_fn_error $? "conditional \"AMDEP\" was never defined.
14682Usually this means the macro was only invoked conditionally." "$LINENO" 5
14683fi
14684if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14685 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14686Usually this means the macro was only invoked conditionally." "$LINENO" 5
14687fi
094e34f2
NA
14688if test -z "${ENABLE_LIBCTF_TRUE}" && test -z "${ENABLE_LIBCTF_FALSE}"; then
14689 as_fn_error $? "conditional \"ENABLE_LIBCTF\" was never defined.
14690Usually this means the macro was only invoked conditionally." "$LINENO" 5
14691fi
42ecbf5e 14692if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
d0ac1c44 14693 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
81ecdfbb 14694Usually this means the macro was only invoked conditionally." "$LINENO" 5
42ecbf5e 14695fi
d5fbea21 14696if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
d0ac1c44 14697 as_fn_error $? "conditional \"GENINSRC_NEVER\" was never defined.
81ecdfbb 14698Usually this means the macro was only invoked conditionally." "$LINENO" 5
d5fbea21 14699fi
42ecbf5e 14700
d0ac1c44 14701: "${CONFIG_STATUS=./config.status}"
81ecdfbb 14702ac_write_fail=0
42ecbf5e
DJ
14703ac_clean_files_save=$ac_clean_files
14704ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
14705{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14706$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14707as_write_fail=0
14708cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
42ecbf5e
DJ
14709#! $SHELL
14710# Generated by $as_me.
14711# Run this file to recreate the current configuration.
14712# Compiler output produced by configure, useful for debugging
14713# configure, is in config.log if it exists.
14714
14715debug=false
14716ac_cs_recheck=false
14717ac_cs_silent=false
252b5132 14718
81ecdfbb
RW
14719SHELL=\${CONFIG_SHELL-$SHELL}
14720export SHELL
14721_ASEOF
14722cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14723## -------------------- ##
14724## M4sh Initialization. ##
14725## -------------------- ##
252b5132 14726
81ecdfbb
RW
14727# Be more Bourne compatible
14728DUALCASE=1; export DUALCASE # for MKS sh
14729if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
42ecbf5e
DJ
14730 emulate sh
14731 NULLCMD=:
81ecdfbb 14732 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
42ecbf5e
DJ
14733 # is contrary to our usage. Disable this feature.
14734 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
14735 setopt NO_GLOB_SUBST
14736else
14737 case `(set -o) 2>/dev/null` in #(
14738 *posix*) :
14739 set -o posix ;; #(
14740 *) :
14741 ;;
14742esac
42ecbf5e 14743fi
252b5132 14744
81ecdfbb
RW
14745
14746as_nl='
14747'
14748export as_nl
14749# Printing a long string crashes Solaris 7 /usr/bin/printf.
14750as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14751as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14752as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14753# Prefer a ksh shell builtin over an external printf program on Solaris,
14754# but without wasting forks for bash or zsh.
14755if test -z "$BASH_VERSION$ZSH_VERSION" \
14756 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14757 as_echo='print -r --'
14758 as_echo_n='print -rn --'
14759elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14760 as_echo='printf %s\n'
14761 as_echo_n='printf %s'
14762else
14763 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14764 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14765 as_echo_n='/usr/ucb/echo -n'
14766 else
14767 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14768 as_echo_n_body='eval
14769 arg=$1;
14770 case $arg in #(
14771 *"$as_nl"*)
14772 expr "X$arg" : "X\\(.*\\)$as_nl";
14773 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14774 esac;
14775 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14776 '
14777 export as_echo_n_body
14778 as_echo_n='sh -c $as_echo_n_body as_echo'
14779 fi
14780 export as_echo_body
14781 as_echo='sh -c $as_echo_body as_echo'
14782fi
14783
14784# The user is always right.
14785if test "${PATH_SEPARATOR+set}" != set; then
14786 PATH_SEPARATOR=:
14787 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14788 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14789 PATH_SEPARATOR=';'
14790 }
42ecbf5e 14791fi
252b5132
RH
14792
14793
81ecdfbb
RW
14794# IFS
14795# We need space, tab and new line, in precisely that order. Quoting is
14796# there to prevent editors from complaining about space-tab.
14797# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14798# splitting by setting IFS to empty value.)
14799IFS=" "" $as_nl"
14800
14801# Find who we are. Look in the path if we contain no directory separator.
d0ac1c44 14802as_myself=
81ecdfbb
RW
14803case $0 in #((
14804 *[\\/]* ) as_myself=$0 ;;
14805 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14806for as_dir in $PATH
14807do
14808 IFS=$as_save_IFS
14809 test -z "$as_dir" && as_dir=.
14810 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14811 done
14812IFS=$as_save_IFS
14813
14814 ;;
14815esac
14816# We did not find ourselves, most probably we were run as `sh COMMAND'
14817# in which case we are not to be found in the path.
14818if test "x$as_myself" = x; then
14819 as_myself=$0
14820fi
14821if test ! -f "$as_myself"; then
14822 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14823 exit 1
14824fi
14825
14826# Unset variables that we do not need and which cause bugs (e.g. in
14827# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14828# suppresses any "Segmentation fault" message there. '((' could
14829# trigger a bug in pdksh 5.2.14.
14830for as_var in BASH_ENV ENV MAIL MAILPATH
14831do eval test x\${$as_var+set} = xset \
14832 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14833done
42ecbf5e
DJ
14834PS1='$ '
14835PS2='> '
14836PS4='+ '
252b5132 14837
42ecbf5e 14838# NLS nuisances.
81ecdfbb
RW
14839LC_ALL=C
14840export LC_ALL
14841LANGUAGE=C
14842export LANGUAGE
14843
14844# CDPATH.
14845(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14846
14847
d0ac1c44
SM
14848# as_fn_error STATUS ERROR [LINENO LOG_FD]
14849# ----------------------------------------
81ecdfbb
RW
14850# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14851# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
d0ac1c44 14852# script with STATUS, using 1 if that was 0.
81ecdfbb
RW
14853as_fn_error ()
14854{
d0ac1c44
SM
14855 as_status=$1; test $as_status -eq 0 && as_status=1
14856 if test "$4"; then
14857 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14858 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
42ecbf5e 14859 fi
d0ac1c44 14860 $as_echo "$as_me: error: $2" >&2
81ecdfbb
RW
14861 as_fn_exit $as_status
14862} # as_fn_error
14863
14864
14865# as_fn_set_status STATUS
14866# -----------------------
14867# Set $? to STATUS, without forking.
14868as_fn_set_status ()
14869{
14870 return $1
14871} # as_fn_set_status
14872
14873# as_fn_exit STATUS
14874# -----------------
14875# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14876as_fn_exit ()
14877{
14878 set +e
14879 as_fn_set_status $1
14880 exit $1
14881} # as_fn_exit
14882
14883# as_fn_unset VAR
14884# ---------------
14885# Portably unset VAR.
14886as_fn_unset ()
14887{
14888 { eval $1=; unset $1;}
14889}
14890as_unset=as_fn_unset
14891# as_fn_append VAR VALUE
14892# ----------------------
14893# Append the text in VALUE to the end of the definition contained in VAR. Take
14894# advantage of any shell optimizations that allow amortized linear growth over
14895# repeated appends, instead of the typical quadratic growth present in naive
14896# implementations.
14897if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14898 eval 'as_fn_append ()
14899 {
14900 eval $1+=\$2
14901 }'
14902else
14903 as_fn_append ()
14904 {
14905 eval $1=\$$1\$2
14906 }
14907fi # as_fn_append
14908
14909# as_fn_arith ARG...
14910# ------------------
14911# Perform arithmetic evaluation on the ARGs, and store the result in the
14912# global $as_val. Take advantage of shells that can avoid forks. The arguments
14913# must be portable across $(()) and expr.
14914if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14915 eval 'as_fn_arith ()
14916 {
14917 as_val=$(( $* ))
14918 }'
14919else
14920 as_fn_arith ()
14921 {
14922 as_val=`expr "$@" || test $? -eq 1`
14923 }
14924fi # as_fn_arith
14925
252b5132 14926
81ecdfbb
RW
14927if expr a : '\(a\)' >/dev/null 2>&1 &&
14928 test "X`expr 00001 : '.*\(...\)'`" = X001; then
42ecbf5e
DJ
14929 as_expr=expr
14930else
14931 as_expr=false
14932fi
252b5132 14933
81ecdfbb 14934if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
42ecbf5e
DJ
14935 as_basename=basename
14936else
14937 as_basename=false
14938fi
252b5132 14939
81ecdfbb
RW
14940if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14941 as_dirname=dirname
14942else
14943 as_dirname=false
14944fi
8b1e6df3 14945
81ecdfbb 14946as_me=`$as_basename -- "$0" ||
42ecbf5e
DJ
14947$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14948 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
14949 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14950$as_echo X/"$0" |
14951 sed '/^.*\/\([^/][^/]*\)\/*$/{
14952 s//\1/
14953 q
14954 }
14955 /^X\/\(\/\/\)$/{
14956 s//\1/
14957 q
14958 }
14959 /^X\/\(\/\).*/{
14960 s//\1/
14961 q
14962 }
14963 s/.*/./; q'`
0218d1e4 14964
42ecbf5e
DJ
14965# Avoid depending upon Character Ranges.
14966as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14967as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14968as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14969as_cr_digits='0123456789'
14970as_cr_alnum=$as_cr_Letters$as_cr_digits
252b5132 14971
81ecdfbb
RW
14972ECHO_C= ECHO_N= ECHO_T=
14973case `echo -n x` in #(((((
14974-n*)
14975 case `echo 'xy\c'` in
14976 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14977 xy) ECHO_C='\c';;
14978 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14979 ECHO_T=' ';;
14980 esac;;
14981*)
14982 ECHO_N='-n';;
42ecbf5e 14983esac
eb1e0e80 14984
81ecdfbb
RW
14985rm -f conf$$ conf$$.exe conf$$.file
14986if test -d conf$$.dir; then
14987 rm -f conf$$.dir/conf$$.file
d15b04bd 14988else
81ecdfbb
RW
14989 rm -f conf$$.dir
14990 mkdir conf$$.dir 2>/dev/null
42ecbf5e 14991fi
81ecdfbb
RW
14992if (echo >conf$$.file) 2>/dev/null; then
14993 if ln -s conf$$.file conf$$ 2>/dev/null; then
42ecbf5e 14994 as_ln_s='ln -s'
81ecdfbb
RW
14995 # ... but there are two gotchas:
14996 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14997 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
d0ac1c44 14998 # In both cases, we have to default to `cp -pR'.
81ecdfbb 14999 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d0ac1c44 15000 as_ln_s='cp -pR'
81ecdfbb
RW
15001 elif ln conf$$.file conf$$ 2>/dev/null; then
15002 as_ln_s=ln
15003 else
d0ac1c44 15004 as_ln_s='cp -pR'
252b5132 15005 fi
42ecbf5e 15006else
d0ac1c44 15007 as_ln_s='cp -pR'
252b5132 15008fi
81ecdfbb
RW
15009rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15010rmdir conf$$.dir 2>/dev/null
15011
15012
15013# as_fn_mkdir_p
15014# -------------
15015# Create "$as_dir" as a directory, including parents if necessary.
15016as_fn_mkdir_p ()
15017{
15018
15019 case $as_dir in #(
15020 -*) as_dir=./$as_dir;;
15021 esac
15022 test -d "$as_dir" || eval $as_mkdir_p || {
15023 as_dirs=
15024 while :; do
15025 case $as_dir in #(
15026 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15027 *) as_qdir=$as_dir;;
15028 esac
15029 as_dirs="'$as_qdir' $as_dirs"
15030 as_dir=`$as_dirname -- "$as_dir" ||
15031$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15032 X"$as_dir" : 'X\(//\)[^/]' \| \
15033 X"$as_dir" : 'X\(//\)$' \| \
15034 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15035$as_echo X"$as_dir" |
15036 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15037 s//\1/
15038 q
15039 }
15040 /^X\(\/\/\)[^/].*/{
15041 s//\1/
15042 q
15043 }
15044 /^X\(\/\/\)$/{
15045 s//\1/
15046 q
15047 }
15048 /^X\(\/\).*/{
15049 s//\1/
15050 q
15051 }
15052 s/.*/./; q'`
15053 test -d "$as_dir" && break
15054 done
15055 test -z "$as_dirs" || eval "mkdir $as_dirs"
d0ac1c44 15056 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
81ecdfbb 15057
252b5132 15058
81ecdfbb 15059} # as_fn_mkdir_p
42ecbf5e 15060if mkdir -p . 2>/dev/null; then
81ecdfbb 15061 as_mkdir_p='mkdir -p "$as_dir"'
42ecbf5e
DJ
15062else
15063 test -d ./-p && rmdir ./-p
15064 as_mkdir_p=false
15065fi
81ecdfbb 15066
d0ac1c44
SM
15067
15068# as_fn_executable_p FILE
15069# -----------------------
15070# Test if FILE is an executable regular file.
15071as_fn_executable_p ()
15072{
15073 test -f "$1" && test -x "$1"
15074} # as_fn_executable_p
15075as_test_x='test -x'
15076as_executable_p=as_fn_executable_p
252b5132 15077
42ecbf5e
DJ
15078# Sed expression to map a string onto a valid CPP name.
15079as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15080
15081# Sed expression to map a string onto a valid variable name.
15082as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15083
15084
42ecbf5e 15085exec 6>&1
81ecdfbb
RW
15086## ----------------------------------- ##
15087## Main body of $CONFIG_STATUS script. ##
15088## ----------------------------------- ##
15089_ASEOF
15090test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
42ecbf5e 15091
81ecdfbb
RW
15092cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15093# Save the log message, to keep $0 and so on meaningful, and to
42ecbf5e 15094# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
15095# values after options handling.
15096ac_log="
573fe3fb 15097This file was extended by binutils $as_me 2.36.50, which was
d0ac1c44 15098generated by GNU Autoconf 2.69. Invocation command line was
42ecbf5e
DJ
15099
15100 CONFIG_FILES = $CONFIG_FILES
15101 CONFIG_HEADERS = $CONFIG_HEADERS
15102 CONFIG_LINKS = $CONFIG_LINKS
15103 CONFIG_COMMANDS = $CONFIG_COMMANDS
15104 $ $0 $@
15105
81ecdfbb
RW
15106on `(hostname || uname -n) 2>/dev/null | sed 1q`
15107"
15108
42ecbf5e
DJ
15109_ACEOF
15110
81ecdfbb
RW
15111case $ac_config_files in *"
15112"*) set x $ac_config_files; shift; ac_config_files=$*;;
15113esac
252b5132 15114
81ecdfbb
RW
15115case $ac_config_headers in *"
15116"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15117esac
e5a52504
MM
15118
15119
81ecdfbb
RW
15120cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15121# Files that config.status was made for.
15122config_files="$ac_config_files"
15123config_headers="$ac_config_headers"
15124config_commands="$ac_config_commands"
d15b04bd 15125
81ecdfbb 15126_ACEOF
42ecbf5e 15127
81ecdfbb 15128cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42ecbf5e 15129ac_cs_usage="\
81ecdfbb
RW
15130\`$as_me' instantiates files and other configuration actions
15131from templates according to the current configuration. Unless the files
15132and actions are specified as TAGs, all are instantiated by default.
42ecbf5e 15133
81ecdfbb 15134Usage: $0 [OPTION]... [TAG]...
42ecbf5e
DJ
15135
15136 -h, --help print this help, then exit
81ecdfbb 15137 -V, --version print version number and configuration settings, then exit
d0ac1c44 15138 --config print configuration, then exit
81ecdfbb
RW
15139 -q, --quiet, --silent
15140 do not print progress messages
42ecbf5e
DJ
15141 -d, --debug don't remove temporary files
15142 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
15143 --file=FILE[:TEMPLATE]
15144 instantiate the configuration file FILE
15145 --header=FILE[:TEMPLATE]
15146 instantiate the configuration header FILE
42ecbf5e
DJ
15147
15148Configuration files:
15149$config_files
15150
15151Configuration headers:
15152$config_headers
15153
15154Configuration commands:
15155$config_commands
15156
81ecdfbb 15157Report bugs to the package provider."
42ecbf5e 15158
81ecdfbb
RW
15159_ACEOF
15160cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d0ac1c44 15161ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
42ecbf5e 15162ac_cs_version="\\
573fe3fb 15163binutils config.status 2.36.50
d0ac1c44
SM
15164configured by $0, generated by GNU Autoconf 2.69,
15165 with options \\"\$ac_cs_config\\"
42ecbf5e 15166
d0ac1c44 15167Copyright (C) 2012 Free Software Foundation, Inc.
42ecbf5e
DJ
15168This config.status script is free software; the Free Software Foundation
15169gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
15170
15171ac_pwd='$ac_pwd'
15172srcdir='$srcdir'
15173INSTALL='$INSTALL'
15174MKDIR_P='$MKDIR_P'
15175AWK='$AWK'
15176test -n "\$AWK" || AWK=awk
42ecbf5e
DJ
15177_ACEOF
15178
81ecdfbb
RW
15179cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15180# The default lists apply if the user does not specify any file.
42ecbf5e
DJ
15181ac_need_defaults=:
15182while test $# != 0
15183do
15184 case $1 in
d0ac1c44 15185 --*=?*)
81ecdfbb
RW
15186 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15187 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
42ecbf5e
DJ
15188 ac_shift=:
15189 ;;
d0ac1c44
SM
15190 --*=)
15191 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15192 ac_optarg=
15193 ac_shift=:
15194 ;;
81ecdfbb 15195 *)
42ecbf5e
DJ
15196 ac_option=$1
15197 ac_optarg=$2
15198 ac_shift=shift
15199 ;;
42ecbf5e
DJ
15200 esac
15201
15202 case $ac_option in
15203 # Handling of the options.
42ecbf5e
DJ
15204 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15205 ac_cs_recheck=: ;;
81ecdfbb
RW
15206 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15207 $as_echo "$ac_cs_version"; exit ;;
d0ac1c44
SM
15208 --config | --confi | --conf | --con | --co | --c )
15209 $as_echo "$ac_cs_config"; exit ;;
81ecdfbb 15210 --debug | --debu | --deb | --de | --d | -d )
42ecbf5e
DJ
15211 debug=: ;;
15212 --file | --fil | --fi | --f )
15213 $ac_shift
81ecdfbb
RW
15214 case $ac_optarg in
15215 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
d0ac1c44 15216 '') as_fn_error $? "missing file argument" ;;
81ecdfbb
RW
15217 esac
15218 as_fn_append CONFIG_FILES " '$ac_optarg'"
42ecbf5e
DJ
15219 ac_need_defaults=false;;
15220 --header | --heade | --head | --hea )
15221 $ac_shift
81ecdfbb
RW
15222 case $ac_optarg in
15223 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15224 esac
15225 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
42ecbf5e 15226 ac_need_defaults=false;;
81ecdfbb
RW
15227 --he | --h)
15228 # Conflict between --help and --header
d0ac1c44 15229 as_fn_error $? "ambiguous option: \`$1'
81ecdfbb
RW
15230Try \`$0 --help' for more information.";;
15231 --help | --hel | -h )
15232 $as_echo "$ac_cs_usage"; exit ;;
42ecbf5e
DJ
15233 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15234 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15235 ac_cs_silent=: ;;
15236
15237 # This is an error.
d0ac1c44 15238 -*) as_fn_error $? "unrecognized option: \`$1'
81ecdfbb 15239Try \`$0 --help' for more information." ;;
42ecbf5e 15240
81ecdfbb
RW
15241 *) as_fn_append ac_config_targets " $1"
15242 ac_need_defaults=false ;;
42ecbf5e
DJ
15243
15244 esac
15245 shift
15246done
15247
15248ac_configure_extra_args=
15249
15250if $ac_cs_silent; then
15251 exec 6>/dev/null
15252 ac_configure_extra_args="$ac_configure_extra_args --silent"
15253fi
15254
15255_ACEOF
81ecdfbb 15256cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42ecbf5e 15257if \$ac_cs_recheck; then
d0ac1c44 15258 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
81ecdfbb
RW
15259 shift
15260 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15261 CONFIG_SHELL='$SHELL'
15262 export CONFIG_SHELL
15263 exec "\$@"
42ecbf5e
DJ
15264fi
15265
15266_ACEOF
81ecdfbb
RW
15267cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15268exec 5>>config.log
15269{
15270 echo
15271 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15272## Running $as_me. ##
15273_ASBOX
15274 $as_echo "$ac_log"
15275} >&5
42ecbf5e 15276
81ecdfbb
RW
15277_ACEOF
15278cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d15b04bd 15279#
81ecdfbb 15280# INIT-COMMANDS
d15b04bd 15281#
42ecbf5e 15282AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
d7040cdb
SE
15283
15284
15285# The HP-UX ksh and POSIX shell print the target directory to stdout
15286# if CDPATH is set.
15287(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15288
15289sed_quote_subst='$sed_quote_subst'
15290double_quote_subst='$double_quote_subst'
15291delay_variable_subst='$delay_variable_subst'
3725885a
RW
15292macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15293macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15294enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15295enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15296pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15297enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15298SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15299ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15300host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15301host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15302host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15303build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15304build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15305build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15306SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15307Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15308GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15309EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15310FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15311LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15312NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15313LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15314max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15315ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15316exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15317lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15318lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15319lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15320reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15321reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15322OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15323deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15324file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15325AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15326AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15327STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15328RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15329old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15330old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15331old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15332lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15333CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15334CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15335compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15336GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15337lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15338lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15339lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15340lt_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"`'
15341objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15342MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15343lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
df7b86aa 15344lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
f2c621e4 15345lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
3725885a
RW
15346lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15347lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15348need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15349DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15350NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15351LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15352OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15353OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15354libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15355shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15356extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15357archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15358enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15359export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15360whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15361compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15362old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15363old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15364archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15365archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15366module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15367module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15368with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15369allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15370no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15371hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15372hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15373hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15374hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15375hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15376hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15377hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15378hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15379inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15380link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
f2c621e4 15381fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
3725885a
RW
15382always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15383export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15384exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15385include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15386prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15387file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15388variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15389need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15390need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15391version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15392runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15393shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15394shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15395libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15396library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15397soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15398install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15399postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15400postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15401finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15402finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15403hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15404sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15405sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15406hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15407enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15408enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15409enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15410old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15411striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
d7040cdb
SE
15412
15413LTCC='$LTCC'
15414LTCFLAGS='$LTCFLAGS'
15415compiler='$compiler_DEFAULT'
15416
3725885a
RW
15417# A function that is used when there is no print builtin or printf.
15418func_fallback_echo ()
15419{
15420 eval 'cat <<_LTECHO_EOF
15421\$1
15422_LTECHO_EOF'
15423}
15424
d7040cdb 15425# Quote evaled strings.
3725885a
RW
15426for var in SHELL \
15427ECHO \
15428SED \
d7040cdb
SE
15429GREP \
15430EGREP \
15431FGREP \
15432LD \
15433NM \
15434LN_S \
15435lt_SP2NL \
15436lt_NL2SP \
15437reload_flag \
718a6fd8 15438OBJDUMP \
d7040cdb
SE
15439deplibs_check_method \
15440file_magic_cmd \
15441AR \
15442AR_FLAGS \
15443STRIP \
15444RANLIB \
15445CC \
15446CFLAGS \
15447compiler \
15448lt_cv_sys_global_symbol_pipe \
15449lt_cv_sys_global_symbol_to_cdecl \
15450lt_cv_sys_global_symbol_to_c_name_address \
718a6fd8 15451lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
d7040cdb 15452lt_prog_compiler_no_builtin_flag \
df7b86aa 15453lt_prog_compiler_wl \
f2c621e4 15454lt_prog_compiler_pic \
d7040cdb
SE
15455lt_prog_compiler_static \
15456lt_cv_prog_compiler_c_o \
15457need_locks \
718a6fd8
SE
15458DSYMUTIL \
15459NMEDIT \
15460LIPO \
15461OTOOL \
15462OTOOL64 \
d7040cdb
SE
15463shrext_cmds \
15464export_dynamic_flag_spec \
15465whole_archive_flag_spec \
15466compiler_needs_object \
15467with_gnu_ld \
15468allow_undefined_flag \
15469no_undefined_flag \
15470hardcode_libdir_flag_spec \
15471hardcode_libdir_flag_spec_ld \
15472hardcode_libdir_separator \
f2c621e4 15473fix_srcfile_path \
d7040cdb
SE
15474exclude_expsyms \
15475include_expsyms \
15476file_list_spec \
15477variables_saved_for_relink \
15478libname_spec \
15479library_names_spec \
15480soname_spec \
3725885a 15481install_override_mode \
d7040cdb
SE
15482finish_eval \
15483old_striplib \
15484striplib; do
3725885a 15485 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
d7040cdb 15486 *[\\\\\\\`\\"\\\$]*)
3725885a 15487 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
d7040cdb
SE
15488 ;;
15489 *)
15490 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15491 ;;
15492 esac
15493done
15494
15495# Double-quote double-evaled strings.
15496for var in reload_cmds \
15497old_postinstall_cmds \
15498old_postuninstall_cmds \
15499old_archive_cmds \
15500extract_expsyms_cmds \
15501old_archive_from_new_cmds \
15502old_archive_from_expsyms_cmds \
15503archive_cmds \
15504archive_expsym_cmds \
15505module_cmds \
15506module_expsym_cmds \
15507export_symbols_cmds \
15508prelink_cmds \
15509postinstall_cmds \
15510postuninstall_cmds \
15511finish_cmds \
15512sys_lib_search_path_spec \
15513sys_lib_dlsearch_path_spec; do
3725885a 15514 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
d7040cdb 15515 *[\\\\\\\`\\"\\\$]*)
3725885a 15516 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
d7040cdb
SE
15517 ;;
15518 *)
15519 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15520 ;;
15521 esac
15522done
15523
d7040cdb
SE
15524ac_aux_dir='$ac_aux_dir'
15525xsi_shell='$xsi_shell'
15526lt_shell_append='$lt_shell_append'
15527
15528# See if we are running on zsh, and set the options which allow our
15529# commands through without removal of \ escapes INIT.
15530if test -n "\${ZSH_VERSION+set}" ; then
15531 setopt NO_GLOB_SUBST
15532fi
15533
15534
15535 PACKAGE='$PACKAGE'
15536 VERSION='$VERSION'
15537 TIMESTAMP='$TIMESTAMP'
15538 RM='$RM'
15539 ofile='$ofile'
15540
15541
15542
20e95c23
DJ
15543# Capture the value of obsolete ALL_LINGUAS because we need it to compute
15544 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
15545 # from automake.
15546 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
15547 # Capture the value of LINGUAS because we need it to compute CATALOGS.
15548 LINGUAS="${LINGUAS-%UNSET%}"
15549
42ecbf5e
DJ
15550
15551_ACEOF
15552
81ecdfbb 15553cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42ecbf5e 15554
81ecdfbb 15555# Handling of arguments.
42ecbf5e 15556for ac_config_target in $ac_config_targets
252b5132 15557do
81ecdfbb
RW
15558 case $ac_config_target in
15559 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15560 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15561 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
15562 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15563 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15564 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15565 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
15566
d0ac1c44 15567 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
d15b04bd 15568 esac
252b5132
RH
15569done
15570
81ecdfbb 15571
42ecbf5e
DJ
15572# If the user did not use the arguments to specify the items to instantiate,
15573# then the envvar interface is used. Set only those that are not.
15574# We use the long form for the default assignment because of an extremely
15575# bizarre bug on SunOS 4.1.3.
15576if $ac_need_defaults; then
15577 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15578 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15579 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15580fi
15581
15582# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 15583# simply because there is no reason against having it here, and in addition,
42ecbf5e 15584# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
15585# Hook for its removal unless debugging.
15586# Note that there is a small window in which the directory will not be cleaned:
15587# after its creation but before its name has been assigned to `$tmp'.
42ecbf5e
DJ
15588$debug ||
15589{
d0ac1c44 15590 tmp= ac_tmp=
81ecdfbb 15591 trap 'exit_status=$?
d0ac1c44
SM
15592 : "${ac_tmp:=$tmp}"
15593 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
81ecdfbb
RW
15594' 0
15595 trap 'as_fn_exit 1' 1 2 13 15
42ecbf5e 15596}
42ecbf5e 15597# Create a (secure) tmp directory for tmp files.
e5a52504 15598
42ecbf5e 15599{
81ecdfbb 15600 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
d0ac1c44 15601 test -d "$tmp"
42ecbf5e
DJ
15602} ||
15603{
81ecdfbb
RW
15604 tmp=./conf$$-$RANDOM
15605 (umask 077 && mkdir "$tmp")
d0ac1c44
SM
15606} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15607ac_tmp=$tmp
81ecdfbb
RW
15608
15609# Set up the scripts for CONFIG_FILES section.
15610# No need to generate them if there are no CONFIG_FILES.
15611# This happens for instance with `./config.status config.h'.
15612if test -n "$CONFIG_FILES"; then
15613
15614
15615ac_cr=`echo X | tr X '\015'`
15616# On cygwin, bash can eat \r inside `` if the user requested igncr.
15617# But we know of no other shell where ac_cr would be empty at this
15618# point, so we can use a bashism as a fallback.
15619if test "x$ac_cr" = x; then
15620 eval ac_cr=\$\'\\r\'
15621fi
15622ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15623if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
d0ac1c44 15624 ac_cs_awk_cr='\\r'
81ecdfbb
RW
15625else
15626 ac_cs_awk_cr=$ac_cr
15627fi
15628
d0ac1c44 15629echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
81ecdfbb
RW
15630_ACEOF
15631
15632
15633{
15634 echo "cat >conf$$subs.awk <<_ACEOF" &&
15635 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15636 echo "_ACEOF"
15637} >conf$$subs.sh ||
d0ac1c44
SM
15638 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15639ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
81ecdfbb
RW
15640ac_delim='%!_!# '
15641for ac_last_try in false false false false false :; do
15642 . ./conf$$subs.sh ||
d0ac1c44 15643 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
81ecdfbb
RW
15644
15645 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15646 if test $ac_delim_n = $ac_delim_num; then
15647 break
15648 elif $ac_last_try; then
d0ac1c44 15649 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
81ecdfbb
RW
15650 else
15651 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15652 fi
15653done
15654rm -f conf$$subs.sh
15655
15656cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d0ac1c44 15657cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
81ecdfbb
RW
15658_ACEOF
15659sed -n '
15660h
15661s/^/S["/; s/!.*/"]=/
15662p
15663g
15664s/^[^!]*!//
15665:repl
15666t repl
15667s/'"$ac_delim"'$//
15668t delim
15669:nl
15670h
d0ac1c44 15671s/\(.\{148\}\)..*/\1/
81ecdfbb
RW
15672t more1
15673s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15674p
15675n
15676b repl
15677:more1
15678s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15679p
15680g
15681s/.\{148\}//
15682t nl
15683:delim
15684h
d0ac1c44 15685s/\(.\{148\}\)..*/\1/
81ecdfbb
RW
15686t more2
15687s/["\\]/\\&/g; s/^/"/; s/$/"/
15688p
15689b
15690:more2
15691s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15692p
15693g
15694s/.\{148\}//
15695t delim
15696' <conf$$subs.awk | sed '
15697/^[^""]/{
15698 N
15699 s/\n//
15700}
15701' >>$CONFIG_STATUS || ac_write_fail=1
15702rm -f conf$$subs.awk
15703cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15704_ACAWK
d0ac1c44 15705cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
81ecdfbb
RW
15706 for (key in S) S_is_set[key] = 1
15707 FS = "\a"
15708
15709}
42ecbf5e 15710{
81ecdfbb
RW
15711 line = $ 0
15712 nfields = split(line, field, "@")
15713 substed = 0
15714 len = length(field[1])
15715 for (i = 2; i < nfields; i++) {
15716 key = field[i]
15717 keylen = length(key)
15718 if (S_is_set[key]) {
15719 value = S[key]
15720 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15721 len += length(value) + length(field[++i])
15722 substed = 1
15723 } else
15724 len += 1 + keylen
15725 }
15726
15727 print line
42ecbf5e
DJ
15728}
15729
81ecdfbb
RW
15730_ACAWK
15731_ACEOF
15732cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15733if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15734 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15735else
15736 cat
d0ac1c44
SM
15737fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15738 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
42ecbf5e
DJ
15739_ACEOF
15740
d0ac1c44
SM
15741# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15742# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
81ecdfbb
RW
15743# trailing colons and then remove the whole line if VPATH becomes empty
15744# (actually we leave an empty line to preserve line numbers).
15745if test "x$srcdir" = x.; then
d0ac1c44
SM
15746 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15747h
15748s///
15749s/^/:/
15750s/[ ]*$/:/
15751s/:\$(srcdir):/:/g
15752s/:\${srcdir}:/:/g
15753s/:@srcdir@:/:/g
15754s/^:*//
81ecdfbb 15755s/:*$//
d0ac1c44
SM
15756x
15757s/\(=[ ]*\).*/\1/
15758G
15759s/\n//
81ecdfbb
RW
15760s/^[^=]*=[ ]*$//
15761}'
15762fi
e5a52504 15763
81ecdfbb
RW
15764cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15765fi # test -n "$CONFIG_FILES"
252b5132 15766
81ecdfbb
RW
15767# Set up the scripts for CONFIG_HEADERS section.
15768# No need to generate them if there are no CONFIG_HEADERS.
15769# This happens for instance with `./config.status Makefile'.
15770if test -n "$CONFIG_HEADERS"; then
d0ac1c44 15771cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
81ecdfbb 15772BEGIN {
42ecbf5e
DJ
15773_ACEOF
15774
81ecdfbb
RW
15775# Transform confdefs.h into an awk script `defines.awk', embedded as
15776# here-document in config.status, that substitutes the proper values into
15777# config.h.in to produce config.h.
15778
15779# Create a delimiter string that does not exist in confdefs.h, to ease
15780# handling of long lines.
15781ac_delim='%!_!# '
15782for ac_last_try in false false :; do
d0ac1c44
SM
15783 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15784 if test -z "$ac_tt"; then
81ecdfbb
RW
15785 break
15786 elif $ac_last_try; then
d0ac1c44 15787 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
81ecdfbb
RW
15788 else
15789 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
252b5132 15790 fi
81ecdfbb 15791done
252b5132 15792
81ecdfbb
RW
15793# For the awk script, D is an array of macro values keyed by name,
15794# likewise P contains macro parameters if any. Preserve backslash
15795# newline sequences.
15796
15797ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15798sed -n '
15799s/.\{148\}/&'"$ac_delim"'/g
15800t rset
15801:rset
15802s/^[ ]*#[ ]*define[ ][ ]*/ /
15803t def
15804d
15805:def
15806s/\\$//
15807t bsnl
15808s/["\\]/\\&/g
15809s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15810D["\1"]=" \3"/p
15811s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15812d
15813:bsnl
15814s/["\\]/\\&/g
15815s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15816D["\1"]=" \3\\\\\\n"\\/p
15817t cont
15818s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15819t cont
15820d
15821:cont
15822n
15823s/.\{148\}/&'"$ac_delim"'/g
15824t clear
15825:clear
15826s/\\$//
15827t bsnlc
15828s/["\\]/\\&/g; s/^/"/; s/$/"/p
15829d
15830:bsnlc
15831s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15832b cont
15833' <confdefs.h | sed '
15834s/'"$ac_delim"'/"\\\
15835"/g' >>$CONFIG_STATUS || ac_write_fail=1
15836
15837cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15838 for (key in D) D_is_set[key] = 1
15839 FS = "\a"
15840}
15841/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15842 line = \$ 0
15843 split(line, arg, " ")
15844 if (arg[1] == "#") {
15845 defundef = arg[2]
15846 mac1 = arg[3]
15847 } else {
15848 defundef = substr(arg[1], 2)
15849 mac1 = arg[2]
15850 }
15851 split(mac1, mac2, "(") #)
15852 macro = mac2[1]
15853 prefix = substr(line, 1, index(line, defundef) - 1)
15854 if (D_is_set[macro]) {
15855 # Preserve the white space surrounding the "#".
15856 print prefix "define", macro P[macro] D[macro]
15857 next
15858 } else {
15859 # Replace #undef with comments. This is necessary, for example,
15860 # in the case of _POSIX_SOURCE, which is predefined and required
15861 # on some systems where configure will not decide to define it.
15862 if (defundef == "undef") {
15863 print "/*", prefix defundef, macro, "*/"
15864 next
15865 }
15866 }
15867}
15868{ print }
15869_ACAWK
42ecbf5e 15870_ACEOF
81ecdfbb 15871cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
d0ac1c44 15872 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
81ecdfbb
RW
15873fi # test -n "$CONFIG_HEADERS"
15874
15875
15876eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15877shift
15878for ac_tag
15879do
15880 case $ac_tag in
15881 :[FHLC]) ac_mode=$ac_tag; continue;;
15882 esac
15883 case $ac_mode$ac_tag in
15884 :[FHL]*:*);;
d0ac1c44 15885 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
81ecdfbb
RW
15886 :[FH]-) ac_tag=-:-;;
15887 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15888 esac
15889 ac_save_IFS=$IFS
15890 IFS=:
15891 set x $ac_tag
15892 IFS=$ac_save_IFS
15893 shift
15894 ac_file=$1
15895 shift
15896
15897 case $ac_mode in
15898 :L) ac_source=$1;;
15899 :[FH])
15900 ac_file_inputs=
15901 for ac_f
15902 do
15903 case $ac_f in
d0ac1c44 15904 -) ac_f="$ac_tmp/stdin";;
81ecdfbb
RW
15905 *) # Look for the file first in the build tree, then in the source tree
15906 # (if the path is not absolute). The absolute path cannot be DOS-style,
15907 # because $ac_f cannot contain `:'.
15908 test -f "$ac_f" ||
15909 case $ac_f in
15910 [\\/$]*) false;;
15911 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15912 esac ||
d0ac1c44 15913 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
81ecdfbb
RW
15914 esac
15915 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15916 as_fn_append ac_file_inputs " '$ac_f'"
15917 done
15918
15919 # Let's still pretend it is `configure' which instantiates (i.e., don't
15920 # use $as_me), people would be surprised to read:
15921 # /* config.h. Generated by config.status. */
15922 configure_input='Generated from '`
15923 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15924 `' by configure.'
15925 if test x"$ac_file" != x-; then
15926 configure_input="$ac_file. $configure_input"
15927 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15928$as_echo "$as_me: creating $ac_file" >&6;}
15929 fi
15930 # Neutralize special characters interpreted by sed in replacement strings.
15931 case $configure_input in #(
15932 *\&* | *\|* | *\\* )
15933 ac_sed_conf_input=`$as_echo "$configure_input" |
15934 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15935 *) ac_sed_conf_input=$configure_input;;
15936 esac
15937
15938 case $ac_tag in
d0ac1c44
SM
15939 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15940 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
81ecdfbb
RW
15941 esac
15942 ;;
252b5132
RH
15943 esac
15944
81ecdfbb 15945 ac_dir=`$as_dirname -- "$ac_file" ||
42ecbf5e
DJ
15946$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15947 X"$ac_file" : 'X\(//\)[^/]' \| \
15948 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
15949 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15950$as_echo X"$ac_file" |
15951 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15952 s//\1/
15953 q
15954 }
15955 /^X\(\/\/\)[^/].*/{
15956 s//\1/
15957 q
15958 }
15959 /^X\(\/\/\)$/{
15960 s//\1/
15961 q
15962 }
15963 /^X\(\/\).*/{
15964 s//\1/
15965 q
15966 }
15967 s/.*/./; q'`
15968 as_dir="$ac_dir"; as_fn_mkdir_p
42ecbf5e 15969 ac_builddir=.
e5a52504 15970
81ecdfbb
RW
15971case "$ac_dir" in
15972.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15973*)
15974 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15975 # A ".." for each directory in $ac_dir_suffix.
15976 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15977 case $ac_top_builddir_sub in
15978 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15979 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15980 esac ;;
15981esac
15982ac_abs_top_builddir=$ac_pwd
15983ac_abs_builddir=$ac_pwd$ac_dir_suffix
15984# for backward compatibility:
15985ac_top_builddir=$ac_top_build_prefix
42ecbf5e
DJ
15986
15987case $srcdir in
81ecdfbb 15988 .) # We are building in place.
42ecbf5e 15989 ac_srcdir=.
81ecdfbb
RW
15990 ac_top_srcdir=$ac_top_builddir_sub
15991 ac_abs_top_srcdir=$ac_pwd ;;
15992 [\\/]* | ?:[\\/]* ) # Absolute name.
42ecbf5e 15993 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
15994 ac_top_srcdir=$srcdir
15995 ac_abs_top_srcdir=$srcdir ;;
15996 *) # Relative name.
15997 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15998 ac_top_srcdir=$ac_top_build_prefix$srcdir
15999 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
42ecbf5e 16000esac
81ecdfbb 16001ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
252b5132 16002
e5a52504 16003
81ecdfbb
RW
16004 case $ac_mode in
16005 :F)
16006 #
16007 # CONFIG_FILE
16008 #
42ecbf5e
DJ
16009
16010 case $INSTALL in
16011 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb
RW
16012 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16013 esac
16014 ac_MKDIR_P=$MKDIR_P
16015 case $MKDIR_P in
16016 [\\/$]* | ?:[\\/]* ) ;;
16017 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
d15b04bd 16018 esac
81ecdfbb 16019_ACEOF
e5a52504 16020
81ecdfbb
RW
16021cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16022# If the template does not know about datarootdir, expand it.
16023# FIXME: This hack should be removed a few years after 2.60.
16024ac_datarootdir_hack=; ac_datarootdir_seen=
16025ac_sed_dataroot='
16026/datarootdir/ {
16027 p
16028 q
16029}
16030/@datadir@/p
16031/@docdir@/p
16032/@infodir@/p
16033/@localedir@/p
16034/@mandir@/p'
16035case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16036*datarootdir*) ac_datarootdir_seen=yes;;
16037*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16039$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16040_ACEOF
16041cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16042 ac_datarootdir_hack='
16043 s&@datadir@&$datadir&g
16044 s&@docdir@&$docdir&g
16045 s&@infodir@&$infodir&g
16046 s&@localedir@&$localedir&g
16047 s&@mandir@&$mandir&g
16048 s&\\\${datarootdir}&$datarootdir&g' ;;
16049esac
42ecbf5e 16050_ACEOF
81ecdfbb
RW
16051
16052# Neutralize VPATH when `$srcdir' = `.'.
16053# Shell code in configure.ac might set extrasub.
16054# FIXME: do we really want to maintain this feature?
16055cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16056ac_sed_extra="$ac_vpsub
42ecbf5e
DJ
16057$extrasub
16058_ACEOF
81ecdfbb 16059cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42ecbf5e
DJ
16060:t
16061/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
16062s|@configure_input@|$ac_sed_conf_input|;t t
16063s&@top_builddir@&$ac_top_builddir_sub&;t t
16064s&@top_build_prefix@&$ac_top_build_prefix&;t t
16065s&@srcdir@&$ac_srcdir&;t t
16066s&@abs_srcdir@&$ac_abs_srcdir&;t t
16067s&@top_srcdir@&$ac_top_srcdir&;t t
16068s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16069s&@builddir@&$ac_builddir&;t t
16070s&@abs_builddir@&$ac_abs_builddir&;t t
16071s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16072s&@INSTALL@&$ac_INSTALL&;t t
16073s&@MKDIR_P@&$ac_MKDIR_P&;t t
16074$ac_datarootdir_hack
16075"
d0ac1c44
SM
16076eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16077 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
81ecdfbb
RW
16078
16079test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
d0ac1c44
SM
16080 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16081 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16082 "$ac_tmp/out"`; test -z "$ac_out"; } &&
81ecdfbb 16083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d0ac1c44 16084which seems to be undefined. Please make sure it is defined" >&5
81ecdfbb 16085$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d0ac1c44 16086which seems to be undefined. Please make sure it is defined" >&2;}
81ecdfbb 16087
d0ac1c44 16088 rm -f "$ac_tmp/stdin"
42ecbf5e 16089 case $ac_file in
d0ac1c44
SM
16090 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16091 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
81ecdfbb 16092 esac \
d0ac1c44 16093 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
81ecdfbb
RW
16094 ;;
16095 :H)
16096 #
16097 # CONFIG_HEADER
16098 #
42ecbf5e 16099 if test x"$ac_file" != x-; then
81ecdfbb
RW
16100 {
16101 $as_echo "/* $configure_input */" \
d0ac1c44
SM
16102 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16103 } >"$ac_tmp/config.h" \
16104 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16105 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
81ecdfbb
RW
16106 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16107$as_echo "$as_me: $ac_file is unchanged" >&6;}
42ecbf5e 16108 else
81ecdfbb 16109 rm -f "$ac_file"
d0ac1c44
SM
16110 mv "$ac_tmp/config.h" "$ac_file" \
16111 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
252b5132 16112 fi
42ecbf5e 16113 else
81ecdfbb 16114 $as_echo "/* $configure_input */" \
d0ac1c44
SM
16115 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16116 || as_fn_error $? "could not create -" "$LINENO" 5
252b5132 16117 fi
81ecdfbb
RW
16118# Compute "$ac_file"'s index in $config_headers.
16119_am_arg="$ac_file"
42ecbf5e
DJ
16120_am_stamp_count=1
16121for _am_header in $config_headers :; do
16122 case $_am_header in
81ecdfbb 16123 $_am_arg | $_am_arg:* )
42ecbf5e
DJ
16124 break ;;
16125 * )
16126 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16127 esac
16128done
81ecdfbb
RW
16129echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16130$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16131 X"$_am_arg" : 'X\(//\)[^/]' \| \
16132 X"$_am_arg" : 'X\(//\)$' \| \
16133 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16134$as_echo X"$_am_arg" |
16135 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16136 s//\1/
16137 q
16138 }
16139 /^X\(\/\/\)[^/].*/{
16140 s//\1/
16141 q
16142 }
16143 /^X\(\/\/\)$/{
16144 s//\1/
16145 q
16146 }
16147 /^X\(\/\).*/{
16148 s//\1/
16149 q
16150 }
16151 s/.*/./; q'`/stamp-h$_am_stamp_count
16152 ;;
42ecbf5e 16153
81ecdfbb
RW
16154 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16155$as_echo "$as_me: executing $ac_file commands" >&6;}
16156 ;;
16157 esac
e5a52504 16158
42ecbf5e 16159
81ecdfbb
RW
16160 case $ac_file$ac_mode in
16161 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
d0ac1c44 16162 # Older Autoconf quotes --file arguments for eval, but not when files
81ecdfbb
RW
16163 # are listed without --file. Let's play safe and only enable the eval
16164 # if we detect the quoting.
16165 case $CONFIG_FILES in
16166 *\'*) eval set x "$CONFIG_FILES" ;;
16167 *) set x $CONFIG_FILES ;;
16168 esac
16169 shift
16170 for mf
16171 do
16172 # Strip MF so we end up with the name of the file.
16173 mf=`echo "$mf" | sed -e 's/:.*$//'`
16174 # Check whether this is an Automake generated Makefile or not.
d0ac1c44 16175 # We used to match only the files named 'Makefile.in', but
81ecdfbb
RW
16176 # some people rename them; so instead we look at the file content.
16177 # Grep'ing the first line is not enough: some people post-process
16178 # each Makefile.in and add a new line on top of each file to say so.
16179 # Grep'ing the whole file is not good either: AIX grep has a line
16180 # limit of 2048, but all sed's we know have understand at least 4000.
16181 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16182 dirpart=`$as_dirname -- "$mf" ||
42ecbf5e
DJ
16183$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16184 X"$mf" : 'X\(//\)[^/]' \| \
16185 X"$mf" : 'X\(//\)$' \| \
81ecdfbb
RW
16186 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16187$as_echo X"$mf" |
16188 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16189 s//\1/
16190 q
16191 }
16192 /^X\(\/\/\)[^/].*/{
16193 s//\1/
16194 q
16195 }
16196 /^X\(\/\/\)$/{
16197 s//\1/
16198 q
16199 }
16200 /^X\(\/\).*/{
16201 s//\1/
16202 q
16203 }
16204 s/.*/./; q'`
16205 else
16206 continue
16207 fi
16208 # Extract the definition of DEPDIR, am__include, and am__quote
d0ac1c44 16209 # from the Makefile without running 'make'.
81ecdfbb
RW
16210 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16211 test -z "$DEPDIR" && continue
16212 am__include=`sed -n 's/^am__include = //p' < "$mf"`
d0ac1c44 16213 test -z "$am__include" && continue
81ecdfbb 16214 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
81ecdfbb
RW
16215 # Find all dependency output files, they are included files with
16216 # $(DEPDIR) in their names. We invoke sed twice because it is the
16217 # simplest approach to changing $(DEPDIR) to its actual value in the
16218 # expansion.
16219 for file in `sed -n "
16220 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
d0ac1c44 16221 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
81ecdfbb
RW
16222 # Make sure the directory exists.
16223 test -f "$dirpart/$file" && continue
16224 fdir=`$as_dirname -- "$file" ||
42ecbf5e
DJ
16225$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16226 X"$file" : 'X\(//\)[^/]' \| \
16227 X"$file" : 'X\(//\)$' \| \
81ecdfbb
RW
16228 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16229$as_echo X"$file" |
16230 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16231 s//\1/
16232 q
16233 }
16234 /^X\(\/\/\)[^/].*/{
16235 s//\1/
16236 q
16237 }
16238 /^X\(\/\/\)$/{
16239 s//\1/
16240 q
16241 }
16242 /^X\(\/\).*/{
16243 s//\1/
16244 q
16245 }
16246 s/.*/./; q'`
16247 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16248 # echo "creating $dirpart/$file"
16249 echo '# dummy' > "$dirpart/$file"
42ecbf5e 16250 done
42ecbf5e 16251 done
81ecdfbb 16252}
d7040cdb 16253 ;;
81ecdfbb 16254 "libtool":C)
d7040cdb
SE
16255
16256 # See if we are running on zsh, and set the options which allow our
16257 # commands through without removal of \ escapes.
16258 if test -n "${ZSH_VERSION+set}" ; then
16259 setopt NO_GLOB_SUBST
16260 fi
16261
16262 cfgfile="${ofile}T"
16263 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16264 $RM "$cfgfile"
16265
16266 cat <<_LT_EOF >> "$cfgfile"
16267#! $SHELL
16268
16269# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
718a6fd8 16270# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
d7040cdb
SE
16271# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16272# NOTE: Changes made to this file will be lost: look at ltmain.sh.
16273#
718a6fd8 16274# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
f2c621e4 16275# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
718a6fd8 16276# Written by Gordon Matzigkeit, 1996
d7040cdb 16277#
718a6fd8 16278# This file is part of GNU Libtool.
d7040cdb 16279#
718a6fd8
SE
16280# GNU Libtool is free software; you can redistribute it and/or
16281# modify it under the terms of the GNU General Public License as
16282# published by the Free Software Foundation; either version 2 of
16283# the License, or (at your option) any later version.
d7040cdb 16284#
718a6fd8
SE
16285# As a special exception to the GNU General Public License,
16286# if you distribute this file as part of a program or library that
16287# is built using GNU Libtool, you may include this file under the
16288# same distribution terms that you use for the rest of that program.
d7040cdb 16289#
718a6fd8
SE
16290# GNU Libtool is distributed in the hope that it will be useful,
16291# but WITHOUT ANY WARRANTY; without even the implied warranty of
16292# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16293# GNU General Public License for more details.
d7040cdb 16294#
718a6fd8
SE
16295# You should have received a copy of the GNU General Public License
16296# along with GNU Libtool; see the file COPYING. If not, a copy
16297# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16298# obtained by writing to the Free Software Foundation, Inc.,
16299# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
d7040cdb
SE
16300
16301
16302# The names of the tagged configurations supported by this script.
16303available_tags=""
16304
16305# ### BEGIN LIBTOOL CONFIG
16306
16307# Which release of libtool.m4 was used?
16308macro_version=$macro_version
16309macro_revision=$macro_revision
16310
16311# Whether or not to build shared libraries.
16312build_libtool_libs=$enable_shared
16313
16314# Whether or not to build static libraries.
16315build_old_libs=$enable_static
16316
16317# What type of objects to build.
16318pic_mode=$pic_mode
16319
16320# Whether or not to optimize for fast installation.
16321fast_install=$enable_fast_install
16322
3725885a
RW
16323# Shell to use when invoking shell scripts.
16324SHELL=$lt_SHELL
16325
16326# An echo program that protects backslashes.
16327ECHO=$lt_ECHO
16328
d7040cdb
SE
16329# The host system.
16330host_alias=$host_alias
16331host=$host
16332host_os=$host_os
16333
16334# The build system.
16335build_alias=$build_alias
16336build=$build
16337build_os=$build_os
16338
16339# A sed program that does not truncate output.
16340SED=$lt_SED
16341
16342# Sed that helps us avoid accidentally triggering echo(1) options like -n.
16343Xsed="\$SED -e 1s/^X//"
16344
16345# A grep program that handles long lines.
16346GREP=$lt_GREP
16347
16348# An ERE matcher.
16349EGREP=$lt_EGREP
16350
16351# A literal string matcher.
16352FGREP=$lt_FGREP
16353
16354# A BSD- or MS-compatible name lister.
16355NM=$lt_NM
16356
16357# Whether we need soft or hard links.
16358LN_S=$lt_LN_S
16359
16360# What is the maximum length of a command?
16361max_cmd_len=$max_cmd_len
16362
16363# Object file suffix (normally "o").
16364objext=$ac_objext
16365
16366# Executable file suffix (normally "").
16367exeext=$exeext
16368
16369# whether the shell understands "unset".
16370lt_unset=$lt_unset
16371
16372# turn spaces into newlines.
16373SP2NL=$lt_lt_SP2NL
16374
16375# turn newlines into spaces.
16376NL2SP=$lt_lt_NL2SP
16377
718a6fd8
SE
16378# An object symbol dumper.
16379OBJDUMP=$lt_OBJDUMP
16380
d7040cdb
SE
16381# Method to check whether dependent libraries are shared objects.
16382deplibs_check_method=$lt_deplibs_check_method
16383
f2c621e4 16384# Command to use when deplibs_check_method == "file_magic".
d7040cdb
SE
16385file_magic_cmd=$lt_file_magic_cmd
16386
16387# The archiver.
16388AR=$lt_AR
16389AR_FLAGS=$lt_AR_FLAGS
16390
16391# A symbol stripping program.
16392STRIP=$lt_STRIP
16393
16394# Commands used to install an old-style archive.
16395RANLIB=$lt_RANLIB
16396old_postinstall_cmds=$lt_old_postinstall_cmds
16397old_postuninstall_cmds=$lt_old_postuninstall_cmds
16398
3725885a
RW
16399# Whether to use a lock for old archive extraction.
16400lock_old_archive_extraction=$lock_old_archive_extraction
16401
d7040cdb
SE
16402# A C compiler.
16403LTCC=$lt_CC
16404
16405# LTCC compiler flags.
16406LTCFLAGS=$lt_CFLAGS
16407
16408# Take the output of nm and produce a listing of raw symbols and C names.
16409global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16410
16411# Transform the output of nm in a proper C declaration.
16412global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16413
16414# Transform the output of nm in a C name address pair.
16415global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16416
718a6fd8
SE
16417# Transform the output of nm in a C name address pair when lib prefix is needed.
16418global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16419
d7040cdb
SE
16420# The name of the directory that contains temporary libtool files.
16421objdir=$objdir
16422
d7040cdb
SE
16423# Used to examine libraries when file_magic_cmd begins with "file".
16424MAGIC_CMD=$MAGIC_CMD
16425
16426# Must we lock files when doing compilation?
16427need_locks=$lt_need_locks
16428
718a6fd8
SE
16429# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16430DSYMUTIL=$lt_DSYMUTIL
16431
16432# Tool to change global to local symbols on Mac OS X.
16433NMEDIT=$lt_NMEDIT
16434
16435# Tool to manipulate fat objects and archives on Mac OS X.
16436LIPO=$lt_LIPO
16437
16438# ldd/readelf like tool for Mach-O binaries on Mac OS X.
16439OTOOL=$lt_OTOOL
16440
16441# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16442OTOOL64=$lt_OTOOL64
16443
d7040cdb
SE
16444# Old archive suffix (normally "a").
16445libext=$libext
16446
16447# Shared library suffix (normally ".so").
16448shrext_cmds=$lt_shrext_cmds
16449
16450# The commands to extract the exported symbol list from a shared archive.
16451extract_expsyms_cmds=$lt_extract_expsyms_cmds
16452
16453# Variables whose values should be saved in libtool wrapper scripts and
16454# restored at link time.
16455variables_saved_for_relink=$lt_variables_saved_for_relink
16456
16457# Do we need the "lib" prefix for modules?
16458need_lib_prefix=$need_lib_prefix
16459
16460# Do we need a version for libraries?
16461need_version=$need_version
16462
16463# Library versioning type.
16464version_type=$version_type
16465
16466# Shared library runtime path variable.
16467runpath_var=$runpath_var
16468
16469# Shared library path variable.
16470shlibpath_var=$shlibpath_var
16471
16472# Is shlibpath searched before the hard-coded library search path?
16473shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16474
16475# Format of library name prefix.
16476libname_spec=$lt_libname_spec
16477
16478# List of archive names. First name is the real one, the rest are links.
16479# The last name is the one that the linker finds with -lNAME
16480library_names_spec=$lt_library_names_spec
16481
16482# The coded name of the library, if different from the real name.
16483soname_spec=$lt_soname_spec
16484
3725885a
RW
16485# Permission mode override for installation of shared libraries.
16486install_override_mode=$lt_install_override_mode
16487
d7040cdb
SE
16488# Command to use after installation of a shared archive.
16489postinstall_cmds=$lt_postinstall_cmds
16490
16491# Command to use after uninstallation of a shared archive.
16492postuninstall_cmds=$lt_postuninstall_cmds
16493
16494# Commands used to finish a libtool library installation in a directory.
16495finish_cmds=$lt_finish_cmds
16496
16497# As "finish_cmds", except a single script fragment to be evaled but
16498# not shown.
16499finish_eval=$lt_finish_eval
16500
16501# Whether we should hardcode library paths into libraries.
16502hardcode_into_libs=$hardcode_into_libs
16503
16504# Compile-time system search path for libraries.
16505sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16506
16507# Run-time system search path for libraries.
16508sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16509
16510# Whether dlopen is supported.
16511dlopen_support=$enable_dlopen
16512
16513# Whether dlopen of programs is supported.
16514dlopen_self=$enable_dlopen_self
16515
16516# Whether dlopen of statically linked programs is supported.
16517dlopen_self_static=$enable_dlopen_self_static
16518
16519# Commands to strip libraries.
16520old_striplib=$lt_old_striplib
16521striplib=$lt_striplib
16522
16523
16524# The linker used to build libraries.
16525LD=$lt_LD
16526
3725885a
RW
16527# How to create reloadable object files.
16528reload_flag=$lt_reload_flag
16529reload_cmds=$lt_reload_cmds
16530
d7040cdb
SE
16531# Commands used to build an old-style archive.
16532old_archive_cmds=$lt_old_archive_cmds
16533
16534# A language specific compiler.
16535CC=$lt_compiler
16536
16537# Is the compiler the GNU compiler?
16538with_gcc=$GCC
16539
16540# Compiler flag to turn off builtin functions.
16541no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16542
df7b86aa
NC
16543# How to pass a linker flag through the compiler.
16544wl=$lt_lt_prog_compiler_wl
16545
f2c621e4
AS
16546# Additional compiler flags for building library objects.
16547pic_flag=$lt_lt_prog_compiler_pic
16548
d7040cdb
SE
16549# Compiler flag to prevent dynamic linking.
16550link_static_flag=$lt_lt_prog_compiler_static
16551
16552# Does compiler simultaneously support -c and -o options?
16553compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16554
16555# Whether or not to add -lc for building shared libraries.
16556build_libtool_need_lc=$archive_cmds_need_lc
16557
16558# Whether or not to disallow shared libs when runtime libs are static.
16559allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16560
16561# Compiler flag to allow reflexive dlopens.
16562export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16563
16564# Compiler flag to generate shared objects directly from archives.
16565whole_archive_flag_spec=$lt_whole_archive_flag_spec
16566
16567# Whether the compiler copes with passing no objects directly.
16568compiler_needs_object=$lt_compiler_needs_object
16569
16570# Create an old-style archive from a shared archive.
16571old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16572
16573# Create a temporary old-style archive to link instead of a shared archive.
16574old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16575
16576# Commands used to build a shared archive.
16577archive_cmds=$lt_archive_cmds
16578archive_expsym_cmds=$lt_archive_expsym_cmds
16579
16580# Commands used to build a loadable module if different from building
16581# a shared archive.
16582module_cmds=$lt_module_cmds
16583module_expsym_cmds=$lt_module_expsym_cmds
16584
16585# Whether we are building with GNU ld or not.
16586with_gnu_ld=$lt_with_gnu_ld
16587
16588# Flag that allows shared libraries with undefined symbols to be built.
16589allow_undefined_flag=$lt_allow_undefined_flag
16590
16591# Flag that enforces no undefined symbols.
16592no_undefined_flag=$lt_no_undefined_flag
16593
16594# Flag to hardcode \$libdir into a binary during linking.
16595# This must work even if \$libdir does not exist
16596hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16597
16598# If ld is used when linking, flag to hardcode \$libdir into a binary
16599# during linking. This must work even if \$libdir does not exist.
16600hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16601
16602# Whether we need a single "-rpath" flag with a separated argument.
16603hardcode_libdir_separator=$lt_hardcode_libdir_separator
16604
16605# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16606# DIR into the resulting binary.
16607hardcode_direct=$hardcode_direct
16608
16609# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16610# DIR into the resulting binary and the resulting library dependency is
16611# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16612# library is relocated.
16613hardcode_direct_absolute=$hardcode_direct_absolute
16614
16615# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16616# into the resulting binary.
16617hardcode_minus_L=$hardcode_minus_L
16618
16619# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16620# into the resulting binary.
16621hardcode_shlibpath_var=$hardcode_shlibpath_var
16622
16623# Set to "yes" if building a shared library automatically hardcodes DIR
16624# into the library and all subsequent libraries and executables linked
16625# against it.
16626hardcode_automatic=$hardcode_automatic
16627
16628# Set to yes if linker adds runtime paths of dependent libraries
16629# to runtime path list.
16630inherit_rpath=$inherit_rpath
16631
16632# Whether libtool must link a program against all its dependency libraries.
16633link_all_deplibs=$link_all_deplibs
16634
f2c621e4
AS
16635# Fix the shell variable \$srcfile for the compiler.
16636fix_srcfile_path=$lt_fix_srcfile_path
16637
d7040cdb
SE
16638# Set to "yes" if exported symbols are required.
16639always_export_symbols=$always_export_symbols
16640
16641# The commands to list exported symbols.
16642export_symbols_cmds=$lt_export_symbols_cmds
16643
16644# Symbols that should not be listed in the preloaded symbols.
16645exclude_expsyms=$lt_exclude_expsyms
16646
16647# Symbols that must always be exported.
16648include_expsyms=$lt_include_expsyms
16649
16650# Commands necessary for linking programs (against libraries) with templates.
16651prelink_cmds=$lt_prelink_cmds
16652
16653# Specify filename containing input files.
16654file_list_spec=$lt_file_list_spec
16655
16656# How to hardcode a shared library path into an executable.
16657hardcode_action=$hardcode_action
16658
16659# ### END LIBTOOL CONFIG
16660
16661_LT_EOF
16662
16663 case $host_os in
16664 aix3*)
16665 cat <<\_LT_EOF >> "$cfgfile"
16666# AIX sometimes has problems with the GCC collect2 program. For some
16667# reason, if we set the COLLECT_NAMES environment variable, the problems
16668# vanish in a puff of smoke.
16669if test "X${COLLECT_NAMES+set}" != Xset; then
16670 COLLECT_NAMES=
16671 export COLLECT_NAMES
16672fi
16673_LT_EOF
16674 ;;
16675 esac
16676
16677
16678ltmain="$ac_aux_dir/ltmain.sh"
16679
16680
16681 # We use sed instead of cat because bash on DJGPP gets confused if
16682 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16683 # text mode, it properly converts lines to CR/LF. This bash problem
16684 # is reportedly fixed, but why not run on old versions too?
f2c621e4
AS
16685 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16686 || (rm -f "$cfgfile"; exit 1)
16687
16688 case $xsi_shell in
16689 yes)
16690 cat << \_LT_EOF >> "$cfgfile"
16691
16692# func_dirname file append nondir_replacement
16693# Compute the dirname of FILE. If nonempty, add APPEND to the result,
16694# otherwise set result to NONDIR_REPLACEMENT.
16695func_dirname ()
16696{
16697 case ${1} in
16698 */*) func_dirname_result="${1%/*}${2}" ;;
16699 * ) func_dirname_result="${3}" ;;
16700 esac
16701}
16702
16703# func_basename file
16704func_basename ()
16705{
16706 func_basename_result="${1##*/}"
16707}
16708
16709# func_dirname_and_basename file append nondir_replacement
16710# perform func_basename and func_dirname in a single function
16711# call:
16712# dirname: Compute the dirname of FILE. If nonempty,
16713# add APPEND to the result, otherwise set result
16714# to NONDIR_REPLACEMENT.
16715# value returned in "$func_dirname_result"
16716# basename: Compute filename of FILE.
16717# value retuned in "$func_basename_result"
16718# Implementation must be kept synchronized with func_dirname
16719# and func_basename. For efficiency, we do not delegate to
16720# those functions but instead duplicate the functionality here.
16721func_dirname_and_basename ()
16722{
16723 case ${1} in
16724 */*) func_dirname_result="${1%/*}${2}" ;;
16725 * ) func_dirname_result="${3}" ;;
16726 esac
16727 func_basename_result="${1##*/}"
16728}
16729
16730# func_stripname prefix suffix name
16731# strip PREFIX and SUFFIX off of NAME.
16732# PREFIX and SUFFIX must not contain globbing or regex special
16733# characters, hashes, percent signs, but SUFFIX may contain a leading
16734# dot (in which case that matches only a dot).
16735func_stripname ()
16736{
16737 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16738 # positional parameters, so assign one to ordinary parameter first.
16739 func_stripname_result=${3}
16740 func_stripname_result=${func_stripname_result#"${1}"}
16741 func_stripname_result=${func_stripname_result%"${2}"}
16742}
16743
16744# func_opt_split
16745func_opt_split ()
16746{
16747 func_opt_split_opt=${1%%=*}
16748 func_opt_split_arg=${1#*=}
16749}
16750
16751# func_lo2o object
16752func_lo2o ()
16753{
16754 case ${1} in
16755 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16756 *) func_lo2o_result=${1} ;;
16757 esac
16758}
16759
16760# func_xform libobj-or-source
16761func_xform ()
16762{
16763 func_xform_result=${1%.*}.lo
16764}
16765
16766# func_arith arithmetic-term...
16767func_arith ()
16768{
16769 func_arith_result=$(( $* ))
16770}
16771
16772# func_len string
16773# STRING may not start with a hyphen.
16774func_len ()
16775{
16776 func_len_result=${#1}
16777}
16778
16779_LT_EOF
16780 ;;
16781 *) # Bourne compatible functions.
16782 cat << \_LT_EOF >> "$cfgfile"
16783
16784# func_dirname file append nondir_replacement
16785# Compute the dirname of FILE. If nonempty, add APPEND to the result,
16786# otherwise set result to NONDIR_REPLACEMENT.
16787func_dirname ()
16788{
16789 # Extract subdirectory from the argument.
16790 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
16791 if test "X$func_dirname_result" = "X${1}"; then
16792 func_dirname_result="${3}"
16793 else
16794 func_dirname_result="$func_dirname_result${2}"
16795 fi
16796}
16797
16798# func_basename file
16799func_basename ()
16800{
16801 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
16802}
16803
16804
16805# func_stripname prefix suffix name
16806# strip PREFIX and SUFFIX off of NAME.
16807# PREFIX and SUFFIX must not contain globbing or regex special
16808# characters, hashes, percent signs, but SUFFIX may contain a leading
16809# dot (in which case that matches only a dot).
16810# func_strip_suffix prefix name
16811func_stripname ()
16812{
16813 case ${2} in
16814 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
16815 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
16816 esac
16817}
16818
16819# sed scripts:
16820my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16821my_sed_long_arg='1s/^-[^=]*=//'
16822
16823# func_opt_split
16824func_opt_split ()
16825{
16826 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
16827 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
16828}
16829
16830# func_lo2o object
16831func_lo2o ()
16832{
16833 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
16834}
16835
16836# func_xform libobj-or-source
16837func_xform ()
16838{
16839 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
16840}
16841
16842# func_arith arithmetic-term...
16843func_arith ()
16844{
16845 func_arith_result=`expr "$@"`
16846}
16847
16848# func_len string
16849# STRING may not start with a hyphen.
16850func_len ()
16851{
16852 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16853}
16854
16855_LT_EOF
16856esac
16857
16858case $lt_shell_append in
16859 yes)
16860 cat << \_LT_EOF >> "$cfgfile"
16861
16862# func_append var value
16863# Append VALUE to the end of shell variable VAR.
16864func_append ()
16865{
16866 eval "$1+=\$2"
16867}
16868_LT_EOF
16869 ;;
16870 *)
16871 cat << \_LT_EOF >> "$cfgfile"
16872
16873# func_append var value
16874# Append VALUE to the end of shell variable VAR.
16875func_append ()
16876{
16877 eval "$1=\$$1\$2"
16878}
16879
16880_LT_EOF
16881 ;;
16882 esac
16883
16884
16885 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16886 || (rm -f "$cfgfile"; exit 1)
16887
16888 mv -f "$cfgfile" "$ofile" ||
d7040cdb
SE
16889 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16890 chmod +x "$ofile"
16891
42ecbf5e 16892 ;;
81ecdfbb 16893 "default-1":C)
20e95c23
DJ
16894 for ac_file in $CONFIG_FILES; do
16895 # Support "outfile[:infile[:infile...]]"
16896 case "$ac_file" in
16897 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16898 esac
16899 # PO directories have a Makefile.in generated from Makefile.in.in.
16900 case "$ac_file" in */Makefile.in)
16901 # Adjust a relative srcdir.
16902 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
3cac54d2 16903 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
20e95c23
DJ
16904 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16905 # In autoconf-2.13 it is called $ac_given_srcdir.
16906 # In autoconf-2.50 it is called $srcdir.
16907 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16908 case "$ac_given_srcdir" in
16909 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16910 /*) top_srcdir="$ac_given_srcdir" ;;
16911 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
16912 esac
16913 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16914 rm -f "$ac_dir/POTFILES"
16915 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16916 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
16917 POMAKEFILEDEPS="POTFILES.in"
16918 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
16919 # on $ac_dir but don't depend on user-specified configuration
16920 # parameters.
16921 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16922 # The LINGUAS file contains the set of available languages.
16923 if test -n "$OBSOLETE_ALL_LINGUAS"; then
37a42ee9 16924 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
16925 fi
16926 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16927 # Hide the ALL_LINGUAS assigment from automake.
16928 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
16929 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
16930 else
37a42ee9 16931 # The set of available languages was given in configure.ac.
20e95c23
DJ
16932 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
16933 fi
16934 case "$ac_given_srcdir" in
16935 .) srcdirpre= ;;
16936 *) srcdirpre='$(srcdir)/' ;;
16937 esac
16938 POFILES=
16939 GMOFILES=
16940 UPDATEPOFILES=
16941 DUMMYPOFILES=
16942 for lang in $ALL_LINGUAS; do
16943 POFILES="$POFILES $srcdirpre$lang.po"
16944 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
16945 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
16946 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
16947 done
16948 # CATALOGS depends on both $ac_dir and the user's LINGUAS
16949 # environment variable.
16950 INST_LINGUAS=
16951 if test -n "$ALL_LINGUAS"; then
16952 for presentlang in $ALL_LINGUAS; do
16953 useit=no
16954 if test "%UNSET%" != "$LINGUAS"; then
16955 desiredlanguages="$LINGUAS"
16956 else
16957 desiredlanguages="$ALL_LINGUAS"
16958 fi
16959 for desiredlang in $desiredlanguages; do
16960 # Use the presentlang catalog if desiredlang is
16961 # a. equal to presentlang, or
16962 # b. a variant of presentlang (because in this case,
16963 # presentlang can be used as a fallback for messages
16964 # which are not translated in the desiredlang catalog).
16965 case "$desiredlang" in
16966 "$presentlang"*) useit=yes;;
16967 esac
16968 done
16969 if test $useit = yes; then
16970 INST_LINGUAS="$INST_LINGUAS $presentlang"
16971 fi
16972 done
16973 fi
16974 CATALOGS=
16975 if test -n "$INST_LINGUAS"; then
16976 for lang in $INST_LINGUAS; do
16977 CATALOGS="$CATALOGS $lang.gmo"
16978 done
16979 fi
16980 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
16981 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"
16982 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
16983 if test -f "$f"; then
16984 case "$f" in
16985 *.orig | *.bak | *~) ;;
16986 *) cat "$f" >> "$ac_dir/Makefile" ;;
16987 esac
16988 fi
16989 done
16990 fi
16991 ;;
16992 esac
16993 done ;;
81ecdfbb 16994
42ecbf5e 16995 esac
81ecdfbb 16996done # for ac_tag
e5a52504 16997
42ecbf5e 16998
81ecdfbb 16999as_fn_exit 0
42ecbf5e 17000_ACEOF
42ecbf5e
DJ
17001ac_clean_files=$ac_clean_files_save
17002
81ecdfbb 17003test $ac_write_fail = 0 ||
d0ac1c44 17004 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
81ecdfbb 17005
42ecbf5e
DJ
17006
17007# configure is writing to config.log, and then calls config.status.
17008# config.status does its own redirection, appending to config.log.
17009# Unfortunately, on DOS this fails, as config.log is still kept open
17010# by configure, so config.status won't be able to write to it; its
17011# output is simply discarded. So we exec the FD to /dev/null,
17012# effectively closing config.log, so it can be properly (re)opened and
17013# appended to by config.status. When coming back to configure, we
17014# need to make the FD available again.
17015if test "$no_create" != yes; then
17016 ac_cs_success=:
17017 ac_config_status_args=
17018 test "$silent" = yes &&
17019 ac_config_status_args="$ac_config_status_args --quiet"
17020 exec 5>/dev/null
17021 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17022 exec 5>>config.log
17023 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17024 # would make configure fail if this is the last instruction.
d0ac1c44 17025 $ac_cs_success || as_fn_exit 1
81ecdfbb
RW
17026fi
17027if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17029$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
42ecbf5e 17030fi
252b5132 17031
d546b610
L
17032
17033
17034touch config.status.tmp
17035if touch --reference=config.status config.status.tmp > /dev/null 2>&1; then
17036 sed '/as_fn_exit 0/i \
17037sed -e \"s/^\t\\\(\\\$(AM_V_CCLD)\\\)/\t+ \\\1/\" Makefile > Makefile.tmp \
17038touch --reference=Makefile Makefile.tmp \
17039mv Makefile.tmp Makefile \
17040' config.status > config.status.tmp
17041 touch --reference=config.status config.status.tmp
17042 mv config.status.tmp config.status
17043 chmod +x config.status
17044 sed -e "s/^\t\(\$(AM_V_CCLD)\)/\t+ \1/" Makefile > Makefile.tmp
17045 touch --reference=Makefile Makefile.tmp
17046 mv Makefile.tmp Makefile
17047else
17048 rm -f config.status.tmp
17049fi
This page took 2.058509 seconds and 4 git commands to generate.