]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - binutils/configure
Fix problems translating messages when a percentage sign appears at the end of a...
[thirdparty/binutils-gdb.git] / binutils / configure
CommitLineData
252b5132 1#! /bin/sh
252b5132 2# Guess values for system-dependent variables and create Makefiles.
346d80ef 3# Generated by GNU Autoconf 2.69 for binutils 2.37.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'
346d80ef
NC
590PACKAGE_VERSION='2.37.50'
591PACKAGE_STRING='binutils 2.37.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
346d80ef 1393\`configure' configures binutils 2.37.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
346d80ef 1464 short | recursive ) echo "Configuration of binutils 2.37.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
346d80ef 1611binutils configure 2.37.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
985e0264
AM
2156# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2157# ----------------------------------------------------
2158# Tries to find if the field MEMBER exists in type AGGR, after including
2159# INCLUDES, setting cache variable VAR accordingly.
2160ac_fn_c_check_member ()
2161{
2162 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2164$as_echo_n "checking for $2.$3... " >&6; }
2165if eval \${$4+:} false; then :
2166 $as_echo_n "(cached) " >&6
2167else
2168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2169/* end confdefs.h. */
2170$5
2171int
2172main ()
2173{
2174static $2 ac_aggr;
2175if (ac_aggr.$3)
2176return 0;
2177 ;
2178 return 0;
2179}
2180_ACEOF
2181if ac_fn_c_try_compile "$LINENO"; then :
2182 eval "$4=yes"
2183else
2184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2185/* end confdefs.h. */
2186$5
2187int
2188main ()
2189{
2190static $2 ac_aggr;
2191if (sizeof ac_aggr.$3)
2192return 0;
2193 ;
2194 return 0;
2195}
2196_ACEOF
2197if ac_fn_c_try_compile "$LINENO"; then :
2198 eval "$4=yes"
2199else
2200 eval "$4=no"
2201fi
2202rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2203fi
2204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2205fi
2206eval ac_res=\$$4
2207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2208$as_echo "$ac_res" >&6; }
2209 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2210
2211} # ac_fn_c_check_member
2212
f6720b1c
AM
2213# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2214# ---------------------------------------------
2215# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2216# accordingly.
2217ac_fn_c_check_decl ()
2218{
2219 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2220 as_decl_name=`echo $2|sed 's/ *(.*//'`
2221 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2223$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2224if eval \${$3+:} false; then :
2225 $as_echo_n "(cached) " >&6
2226else
2227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2228/* end confdefs.h. */
2229$4
2230int
2231main ()
2232{
2233#ifndef $as_decl_name
2234#ifdef __cplusplus
2235 (void) $as_decl_use;
2236#else
2237 (void) $as_decl_name;
2238#endif
2239#endif
2240
2241 ;
2242 return 0;
2243}
2244_ACEOF
2245if ac_fn_c_try_compile "$LINENO"; then :
2246 eval "$3=yes"
2247else
2248 eval "$3=no"
2249fi
2250rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2251fi
2252eval ac_res=\$$3
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2254$as_echo "$ac_res" >&6; }
2255 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2256
2257} # ac_fn_c_check_decl
81ecdfbb
RW
2258cat >config.log <<_ACEOF
2259This file contains any messages produced by compilers while
2260running configure, to aid debugging if configure makes a mistake.
2261
346d80ef 2262It was created by binutils $as_me 2.37.50, which was
d0ac1c44 2263generated by GNU Autoconf 2.69. Invocation command line was
81ecdfbb
RW
2264
2265 $ $0 $@
2266
2267_ACEOF
2268exec 5>>config.log
2269{
2270cat <<_ASUNAME
2271## --------- ##
2272## Platform. ##
2273## --------- ##
2274
2275hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2276uname -m = `(uname -m) 2>/dev/null || echo unknown`
2277uname -r = `(uname -r) 2>/dev/null || echo unknown`
2278uname -s = `(uname -s) 2>/dev/null || echo unknown`
2279uname -v = `(uname -v) 2>/dev/null || echo unknown`
2280
2281/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2282/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2283
2284/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2285/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2286/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2287/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2288/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2289/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2290/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
42ecbf5e
DJ
2291
2292_ASUNAME
2293
2294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2295for as_dir in $PATH
2296do
2297 IFS=$as_save_IFS
2298 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2299 $as_echo "PATH: $as_dir"
2300 done
2301IFS=$as_save_IFS
e5a52504 2302
42ecbf5e 2303} >&5
ceae3e33 2304
42ecbf5e 2305cat >&5 <<_ACEOF
e5a52504 2306
42ecbf5e
DJ
2307
2308## ----------- ##
2309## Core tests. ##
2310## ----------- ##
2311
2312_ACEOF
2313
2314
2315# Keep a trace of the command line.
2316# Strip out --no-create and --no-recursion so they do not pile up.
2317# Strip out --silent because we don't want to record it for future runs.
2318# Also quote any args containing shell meta-characters.
2319# Make two passes to allow for proper duplicate-argument suppression.
2320ac_configure_args=
2321ac_configure_args0=
2322ac_configure_args1=
42ecbf5e
DJ
2323ac_must_keep_next=false
2324for ac_pass in 1 2
2325do
2326 for ac_arg
2327 do
2328 case $ac_arg in
2329 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2330 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2331 | -silent | --silent | --silen | --sile | --sil)
2332 continue ;;
81ecdfbb
RW
2333 *\'*)
2334 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
42ecbf5e
DJ
2335 esac
2336 case $ac_pass in
81ecdfbb 2337 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
42ecbf5e 2338 2)
81ecdfbb 2339 as_fn_append ac_configure_args1 " '$ac_arg'"
42ecbf5e
DJ
2340 if test $ac_must_keep_next = true; then
2341 ac_must_keep_next=false # Got value, back to normal.
2342 else
2343 case $ac_arg in
2344 *=* | --config-cache | -C | -disable-* | --disable-* \
2345 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2346 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2347 | -with-* | --with-* | -without-* | --without-* | --x)
2348 case "$ac_configure_args0 " in
2349 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2350 esac
2351 ;;
2352 -* ) ac_must_keep_next=true ;;
2353 esac
2354 fi
81ecdfbb 2355 as_fn_append ac_configure_args " '$ac_arg'"
42ecbf5e
DJ
2356 ;;
2357 esac
2358 done
2359done
81ecdfbb
RW
2360{ ac_configure_args0=; unset ac_configure_args0;}
2361{ ac_configure_args1=; unset ac_configure_args1;}
42ecbf5e
DJ
2362
2363# When interrupted or exit'd, cleanup temporary files, and complete
2364# config.log. We remove comments because anyway the quotes in there
2365# would cause problems or look ugly.
81ecdfbb
RW
2366# WARNING: Use '\'' to represent an apostrophe within the trap.
2367# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
42ecbf5e
DJ
2368trap 'exit_status=$?
2369 # Save into config.log some information that might help in debugging.
2370 {
2371 echo
2372
d0ac1c44 2373 $as_echo "## ---------------- ##
42ecbf5e 2374## Cache variables. ##
d0ac1c44 2375## ---------------- ##"
42ecbf5e
DJ
2376 echo
2377 # The following way of writing the cache mishandles newlines in values,
81ecdfbb
RW
2378(
2379 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2380 eval ac_val=\$$ac_var
2381 case $ac_val in #(
2382 *${as_nl}*)
2383 case $ac_var in #(
2384 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2385$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2386 esac
2387 case $ac_var in #(
2388 _ | IFS | as_nl) ;; #(
2389 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2390 *) { eval $ac_var=; unset $ac_var;} ;;
2391 esac ;;
2392 esac
2393 done
42ecbf5e 2394 (set) 2>&1 |
81ecdfbb
RW
2395 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2396 *${as_nl}ac_space=\ *)
42ecbf5e 2397 sed -n \
81ecdfbb
RW
2398 "s/'\''/'\''\\\\'\'''\''/g;
2399 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2400 ;; #(
42ecbf5e 2401 *)
81ecdfbb 2402 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
42ecbf5e 2403 ;;
81ecdfbb
RW
2404 esac |
2405 sort
2406)
42ecbf5e
DJ
2407 echo
2408
d0ac1c44 2409 $as_echo "## ----------------- ##
42ecbf5e 2410## Output variables. ##
d0ac1c44 2411## ----------------- ##"
42ecbf5e
DJ
2412 echo
2413 for ac_var in $ac_subst_vars
2414 do
81ecdfbb
RW
2415 eval ac_val=\$$ac_var
2416 case $ac_val in
2417 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2418 esac
2419 $as_echo "$ac_var='\''$ac_val'\''"
42ecbf5e
DJ
2420 done | sort
2421 echo
2422
2423 if test -n "$ac_subst_files"; then
d0ac1c44 2424 $as_echo "## ------------------- ##
81ecdfbb 2425## File substitutions. ##
d0ac1c44 2426## ------------------- ##"
42ecbf5e
DJ
2427 echo
2428 for ac_var in $ac_subst_files
2429 do
81ecdfbb
RW
2430 eval ac_val=\$$ac_var
2431 case $ac_val in
2432 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2433 esac
2434 $as_echo "$ac_var='\''$ac_val'\''"
42ecbf5e
DJ
2435 done | sort
2436 echo
2437 fi
2438
2439 if test -s confdefs.h; then
d0ac1c44 2440 $as_echo "## ----------- ##
42ecbf5e 2441## confdefs.h. ##
d0ac1c44 2442## ----------- ##"
42ecbf5e 2443 echo
81ecdfbb 2444 cat confdefs.h
42ecbf5e
DJ
2445 echo
2446 fi
2447 test "$ac_signal" != 0 &&
81ecdfbb
RW
2448 $as_echo "$as_me: caught signal $ac_signal"
2449 $as_echo "$as_me: exit $exit_status"
42ecbf5e 2450 } >&5
81ecdfbb
RW
2451 rm -f core *.core core.conftest.* &&
2452 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
42ecbf5e 2453 exit $exit_status
81ecdfbb 2454' 0
42ecbf5e 2455for ac_signal in 1 2 13 15; do
81ecdfbb 2456 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
42ecbf5e
DJ
2457done
2458ac_signal=0
2459
2460# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
2461rm -f -r conftest* confdefs.h
2462
2463$as_echo "/* confdefs.h */" > confdefs.h
42ecbf5e
DJ
2464
2465# Predefined preprocessor variables.
2466
2467cat >>confdefs.h <<_ACEOF
2468#define PACKAGE_NAME "$PACKAGE_NAME"
2469_ACEOF
2470
42ecbf5e
DJ
2471cat >>confdefs.h <<_ACEOF
2472#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2473_ACEOF
2474
42ecbf5e
DJ
2475cat >>confdefs.h <<_ACEOF
2476#define PACKAGE_VERSION "$PACKAGE_VERSION"
2477_ACEOF
2478
42ecbf5e
DJ
2479cat >>confdefs.h <<_ACEOF
2480#define PACKAGE_STRING "$PACKAGE_STRING"
2481_ACEOF
2482
42ecbf5e
DJ
2483cat >>confdefs.h <<_ACEOF
2484#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2485_ACEOF
2486
81ecdfbb
RW
2487cat >>confdefs.h <<_ACEOF
2488#define PACKAGE_URL "$PACKAGE_URL"
2489_ACEOF
2490
42ecbf5e
DJ
2491
2492# Let the site file select an alternate cache file if it wants to.
81ecdfbb
RW
2493# Prefer an explicitly selected file to automatically selected ones.
2494ac_site_file1=NONE
2495ac_site_file2=NONE
2496if test -n "$CONFIG_SITE"; then
d0ac1c44
SM
2497 # We do not want a PATH search for config.site.
2498 case $CONFIG_SITE in #((
2499 -*) ac_site_file1=./$CONFIG_SITE;;
2500 */*) ac_site_file1=$CONFIG_SITE;;
2501 *) ac_site_file1=./$CONFIG_SITE;;
2502 esac
81ecdfbb
RW
2503elif test "x$prefix" != xNONE; then
2504 ac_site_file1=$prefix/share/config.site
2505 ac_site_file2=$prefix/etc/config.site
2506else
2507 ac_site_file1=$ac_default_prefix/share/config.site
2508 ac_site_file2=$ac_default_prefix/etc/config.site
2509fi
2510for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2511do
2512 test "x$ac_site_file" = xNONE && continue
d0ac1c44 2513 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
81ecdfbb
RW
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2515$as_echo "$as_me: loading site script $ac_site_file" >&6;}
42ecbf5e 2516 sed 's/^/| /' "$ac_site_file" >&5
d0ac1c44
SM
2517 . "$ac_site_file" \
2518 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2519$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2520as_fn_error $? "failed to load site script $ac_site_file
2521See \`config.log' for more details" "$LINENO" 5; }
42ecbf5e
DJ
2522 fi
2523done
2524
2525if test -r "$cache_file"; then
d0ac1c44
SM
2526 # Some versions of bash will fail to source /dev/null (special files
2527 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2528 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
81ecdfbb
RW
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2530$as_echo "$as_me: loading cache $cache_file" >&6;}
42ecbf5e 2531 case $cache_file in
81ecdfbb
RW
2532 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2533 *) . "./$cache_file";;
42ecbf5e
DJ
2534 esac
2535 fi
2536else
81ecdfbb
RW
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2538$as_echo "$as_me: creating cache $cache_file" >&6;}
42ecbf5e
DJ
2539 >$cache_file
2540fi
2541
34156b23
L
2542as_fn_append ac_header_list " stdlib.h"
2543as_fn_append ac_header_list " unistd.h"
2544as_fn_append ac_header_list " sys/param.h"
42ecbf5e
DJ
2545# Check that the precious variables saved in the cache have kept the same
2546# value.
2547ac_cache_corrupted=false
81ecdfbb 2548for ac_var in $ac_precious_vars; do
42ecbf5e
DJ
2549 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2550 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
2551 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2552 eval ac_new_val=\$ac_env_${ac_var}_value
42ecbf5e
DJ
2553 case $ac_old_set,$ac_new_set in
2554 set,)
81ecdfbb
RW
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2556$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
42ecbf5e
DJ
2557 ac_cache_corrupted=: ;;
2558 ,set)
81ecdfbb
RW
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2560$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
42ecbf5e
DJ
2561 ac_cache_corrupted=: ;;
2562 ,);;
2563 *)
2564 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
2565 # differences in whitespace do not lead to failure.
2566 ac_old_val_w=`echo x $ac_old_val`
2567 ac_new_val_w=`echo x $ac_new_val`
2568 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2570$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2571 ac_cache_corrupted=:
2572 else
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2574$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2575 eval $ac_var=\$ac_old_val
2576 fi
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2578$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2580$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
42ecbf5e
DJ
2581 fi;;
2582 esac
2583 # Pass precious variables to config.status.
2584 if test "$ac_new_set" = set; then
2585 case $ac_new_val in
81ecdfbb 2586 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
42ecbf5e
DJ
2587 *) ac_arg=$ac_var=$ac_new_val ;;
2588 esac
2589 case " $ac_configure_args " in
2590 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
81ecdfbb 2591 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
42ecbf5e
DJ
2592 esac
2593 fi
2594done
2595if $ac_cache_corrupted; then
81ecdfbb
RW
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2597$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2599$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
d0ac1c44 2600 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
42ecbf5e 2601fi
81ecdfbb
RW
2602## -------------------- ##
2603## Main body of script. ##
2604## -------------------- ##
42ecbf5e
DJ
2605
2606ac_ext=c
2607ac_cpp='$CPP $CPPFLAGS'
2608ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2609ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2610ac_compiler_gnu=$ac_cv_c_compiler_gnu
2611
2612
2613
42ecbf5e 2614
da594c4a 2615
42ecbf5e
DJ
2616
2617
2618ac_aux_dir=
81ecdfbb 2619for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
d0ac1c44
SM
2620 if test -f "$ac_dir/install-sh"; then
2621 ac_aux_dir=$ac_dir
2622 ac_install_sh="$ac_aux_dir/install-sh -c"
2623 break
2624 elif test -f "$ac_dir/install.sh"; then
2625 ac_aux_dir=$ac_dir
2626 ac_install_sh="$ac_aux_dir/install.sh -c"
2627 break
2628 elif test -f "$ac_dir/shtool"; then
2629 ac_aux_dir=$ac_dir
2630 ac_install_sh="$ac_aux_dir/shtool install -c"
2631 break
2632 fi
42ecbf5e
DJ
2633done
2634if test -z "$ac_aux_dir"; then
d0ac1c44 2635 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
42ecbf5e 2636fi
81ecdfbb
RW
2637
2638# These three variables are undocumented and unsupported,
2639# and are intended to be withdrawn in a future Autoconf release.
2640# They can cause serious problems if a builder's source tree is in a directory
2641# whose full name contains unusual characters.
2642ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2643ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2644ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2645
42ecbf5e
DJ
2646
2647# Make sure we can run config.sub.
81ecdfbb 2648$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
d0ac1c44 2649 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
81ecdfbb
RW
2650
2651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2652$as_echo_n "checking build system type... " >&6; }
d0ac1c44 2653if ${ac_cv_build+:} false; then :
81ecdfbb
RW
2654 $as_echo_n "(cached) " >&6
2655else
2656 ac_build_alias=$build_alias
2657test "x$ac_build_alias" = x &&
2658 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2659test "x$ac_build_alias" = x &&
d0ac1c44 2660 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
81ecdfbb 2661ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
d0ac1c44 2662 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
81ecdfbb
RW
2663
2664fi
2665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2666$as_echo "$ac_cv_build" >&6; }
2667case $ac_cv_build in
2668*-*-*) ;;
d0ac1c44 2669*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
81ecdfbb 2670esac
42ecbf5e 2671build=$ac_cv_build
81ecdfbb
RW
2672ac_save_IFS=$IFS; IFS='-'
2673set x $ac_cv_build
2674shift
2675build_cpu=$1
2676build_vendor=$2
2677shift; shift
2678# Remember, the first character of IFS is used to create $*,
2679# except with old shells:
2680build_os=$*
2681IFS=$ac_save_IFS
2682case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
42ecbf5e
DJ
2683
2684
81ecdfbb
RW
2685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2686$as_echo_n "checking host system type... " >&6; }
d0ac1c44 2687if ${ac_cv_host+:} false; then :
81ecdfbb 2688 $as_echo_n "(cached) " >&6
42ecbf5e 2689else
81ecdfbb
RW
2690 if test "x$host_alias" = x; then
2691 ac_cv_host=$ac_cv_build
2692else
2693 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
d0ac1c44 2694 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
81ecdfbb 2695fi
42ecbf5e
DJ
2696
2697fi
81ecdfbb
RW
2698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2699$as_echo "$ac_cv_host" >&6; }
2700case $ac_cv_host in
2701*-*-*) ;;
d0ac1c44 2702*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
81ecdfbb 2703esac
42ecbf5e 2704host=$ac_cv_host
81ecdfbb
RW
2705ac_save_IFS=$IFS; IFS='-'
2706set x $ac_cv_host
2707shift
2708host_cpu=$1
2709host_vendor=$2
2710shift; shift
2711# Remember, the first character of IFS is used to create $*,
2712# except with old shells:
2713host_os=$*
2714IFS=$ac_save_IFS
2715case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
42ecbf5e
DJ
2716
2717
81ecdfbb
RW
2718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2719$as_echo_n "checking target system type... " >&6; }
d0ac1c44 2720if ${ac_cv_target+:} false; then :
81ecdfbb
RW
2721 $as_echo_n "(cached) " >&6
2722else
2723 if test "x$target_alias" = x; then
2724 ac_cv_target=$ac_cv_host
42ecbf5e 2725else
81ecdfbb 2726 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
d0ac1c44 2727 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
81ecdfbb 2728fi
42ecbf5e
DJ
2729
2730fi
81ecdfbb
RW
2731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2732$as_echo "$ac_cv_target" >&6; }
2733case $ac_cv_target in
2734*-*-*) ;;
d0ac1c44 2735*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
81ecdfbb 2736esac
42ecbf5e 2737target=$ac_cv_target
81ecdfbb
RW
2738ac_save_IFS=$IFS; IFS='-'
2739set x $ac_cv_target
2740shift
2741target_cpu=$1
2742target_vendor=$2
2743shift; shift
2744# Remember, the first character of IFS is used to create $*,
2745# except with old shells:
2746target_os=$*
2747IFS=$ac_save_IFS
2748case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
42ecbf5e
DJ
2749
2750
2751# The aliases save the names the user supplied, while $host etc.
2752# will get canonicalized.
2753test -n "$target_alias" &&
2754 test "$program_prefix$program_suffix$program_transform_name" = \
2755 NONENONEs,x,x, &&
2756 program_prefix=${target_alias}-
d0ac1c44 2757
87b9f255
AM
2758am__api_version='1.15'
2759
2760# Find a good install program. We prefer a C program (faster),
2761# so one script is as good as another. But avoid the broken or
2762# incompatible versions:
2763# SysV /etc/install, /usr/sbin/install
2764# SunOS /usr/etc/install
2765# IRIX /sbin/install
2766# AIX /bin/install
2767# AmigaOS /C/install, which installs bootblocks on floppy discs
2768# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2769# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2770# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2771# OS/2's system install, which has a completely different semantic
2772# ./install, which can be erroneously created by make from ./install.sh.
2773# Reject install programs that cannot install multiple files.
2774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2775$as_echo_n "checking for a BSD-compatible install... " >&6; }
2776if test -z "$INSTALL"; then
2777if ${ac_cv_path_install+:} false; then :
81ecdfbb 2778 $as_echo_n "(cached) " >&6
42ecbf5e 2779else
87b9f255 2780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42ecbf5e
DJ
2781for as_dir in $PATH
2782do
2783 IFS=$as_save_IFS
2784 test -z "$as_dir" && as_dir=.
87b9f255
AM
2785 # Account for people who put trailing slashes in PATH elements.
2786case $as_dir/ in #((
2787 ./ | .// | /[cC]/* | \
2788 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2789 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2790 /usr/ucb/* ) ;;
2791 *)
2792 # OSF1 and SCO ODT 3.0 have their own names for install.
2793 # Don't use installbsd from OSF since it installs stuff as root
2794 # by default.
2795 for ac_prog in ginstall scoinst install; do
2796 for ac_exec_ext in '' $ac_executable_extensions; do
2797 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2798 if test $ac_prog = install &&
2799 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2800 # AIX install. It has an incompatible calling convention.
2801 :
2802 elif test $ac_prog = install &&
2803 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2804 # program-specific install script used by HP pwplus--don't use.
2805 :
2806 else
2807 rm -rf conftest.one conftest.two conftest.dir
2808 echo one > conftest.one
2809 echo two > conftest.two
2810 mkdir conftest.dir
2811 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2812 test -s conftest.one && test -s conftest.two &&
2813 test -s conftest.dir/conftest.one &&
2814 test -s conftest.dir/conftest.two
2815 then
2816 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2817 break 3
2818 fi
2819 fi
2820 fi
2821 done
2822 done
2823 ;;
2824esac
2825
81ecdfbb
RW
2826 done
2827IFS=$as_save_IFS
42ecbf5e 2828
87b9f255
AM
2829rm -rf conftest.one conftest.two conftest.dir
2830
252b5132
RH
2831fi
2832 if test "${ac_cv_path_install+set}" = set; then
42ecbf5e 2833 INSTALL=$ac_cv_path_install
252b5132 2834 else
58c85be7
RW
2835 # As a last resort, use the slow shell script. Don't cache a
2836 # value for INSTALL within a source directory, because that will
252b5132 2837 # break other packages using the cache if that directory is
58c85be7 2838 # removed, or if the value is a relative name.
42ecbf5e 2839 INSTALL=$ac_install_sh
252b5132
RH
2840 fi
2841fi
81ecdfbb
RW
2842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2843$as_echo "$INSTALL" >&6; }
252b5132
RH
2844
2845# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2846# It thinks the first close brace ends the variable substitution.
2847test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2848
42ecbf5e 2849test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
2850
2851test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2852
81ecdfbb
RW
2853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2854$as_echo_n "checking whether build environment is sane... " >&6; }
81ecdfbb
RW
2855# Reject unsafe characters in $srcdir or the absolute working directory
2856# name. Accept space and tab only in the latter.
2857am_lf='
2858'
2859case `pwd` in
2860 *[\\\"\#\$\&\'\`$am_lf]*)
d0ac1c44 2861 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
81ecdfbb
RW
2862esac
2863case $srcdir in
2864 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
d0ac1c44 2865 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
81ecdfbb
RW
2866esac
2867
d0ac1c44 2868# Do 'set' in a subshell so we don't clobber the current shell's
252b5132
RH
2869# arguments. Must try -L first in case configure is actually a
2870# symlink; some systems play weird games with the mod time of symlinks
2871# (eg FreeBSD returns the mod time of the symlink's containing
2872# directory).
2873if (
d0ac1c44
SM
2874 am_has_slept=no
2875 for am_try in 1 2; do
2876 echo "timestamp, slept: $am_has_slept" > conftest.file
2877 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2878 if test "$*" = "X"; then
2879 # -L didn't work.
2880 set X `ls -t "$srcdir/configure" conftest.file`
2881 fi
2882 if test "$*" != "X $srcdir/configure conftest.file" \
2883 && test "$*" != "X conftest.file $srcdir/configure"; then
2884
2885 # If neither matched, then we have a broken ls. This can happen
2886 # if, for instance, CONFIG_SHELL is bash and it inherits a
2887 # broken ls alias from the environment. This has actually
2888 # happened. Such a system could not be considered "sane".
2889 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2890 alias in your environment" "$LINENO" 5
2891 fi
2892 if test "$2" = conftest.file || test $am_try -eq 2; then
2893 break
2894 fi
2895 # Just in case.
2896 sleep 1
2897 am_has_slept=yes
2898 done
42ecbf5e 2899 test "$2" = conftest.file
252b5132
RH
2900 )
2901then
2902 # Ok.
2903 :
2904else
d0ac1c44 2905 as_fn_error $? "newly created file is older than distributed files!
81ecdfbb 2906Check your system clock" "$LINENO" 5
42ecbf5e 2907fi
81ecdfbb
RW
2908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2909$as_echo "yes" >&6; }
d0ac1c44
SM
2910# If we didn't sleep, we still need to ensure time stamps of config.status and
2911# generated files are strictly newer.
2912am_sleep_pid=
2913if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2914 ( sleep 1 ) &
2915 am_sleep_pid=$!
2916fi
2917
2918rm -f conftest.file
2919
42ecbf5e 2920test "$program_prefix" != NONE &&
81ecdfbb 2921 program_transform_name="s&^&$program_prefix&;$program_transform_name"
42ecbf5e
DJ
2922# Use a double $ so make ignores it.
2923test "$program_suffix" != NONE &&
81ecdfbb
RW
2924 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2925# Double any \ or $.
42ecbf5e 2926# By default was `s,x,x', remove it if useless.
81ecdfbb
RW
2927ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2928program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
42ecbf5e 2929
87b9f255
AM
2930# Expand $ac_aux_dir to an absolute path.
2931am_aux_dir=`cd "$ac_aux_dir" && pwd`
2932
81ecdfbb
RW
2933if test x"${MISSING+set}" != xset; then
2934 case $am_aux_dir in
2935 *\ * | *\ *)
2936 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2937 *)
2938 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2939 esac
2940fi
42ecbf5e 2941# Use eval to expand $SHELL
d0ac1c44
SM
2942if eval "$MISSING --is-lightweight"; then
2943 am_missing_run="$MISSING "
42ecbf5e
DJ
2944else
2945 am_missing_run=
d0ac1c44
SM
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2947$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
42ecbf5e
DJ
2948fi
2949
d0ac1c44 2950if test x"${install_sh+set}" != xset; then
81ecdfbb
RW
2951 case $am_aux_dir in
2952 *\ * | *\ *)
2953 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2954 *)
2955 install_sh="\${SHELL} $am_aux_dir/install-sh"
2956 esac
2957fi
2958
d0ac1c44
SM
2959# Installed binaries are usually stripped using 'strip' when the user
2960# run "make install-strip". However 'strip' might not be the right
81ecdfbb 2961# tool to use in cross-compilation environments, therefore Automake
d0ac1c44 2962# will honor the 'STRIP' environment variable to overrule this program.
81ecdfbb
RW
2963if test "$cross_compiling" != no; then
2964 if test -n "$ac_tool_prefix"; then
2965 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2966set dummy ${ac_tool_prefix}strip; ac_word=$2
2967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2968$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 2969if ${ac_cv_prog_STRIP+:} false; then :
81ecdfbb 2970 $as_echo_n "(cached) " >&6
42ecbf5e 2971else
81ecdfbb
RW
2972 if test -n "$STRIP"; then
2973 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
42ecbf5e
DJ
2974else
2975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2976for as_dir in $PATH
2977do
2978 IFS=$as_save_IFS
2979 test -z "$as_dir" && as_dir=.
81ecdfbb 2980 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2981 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
81ecdfbb
RW
2982 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2984 break 2
2985 fi
2986done
2987 done
2988IFS=$as_save_IFS
2989
2990fi
2991fi
2992STRIP=$ac_cv_prog_STRIP
2993if test -n "$STRIP"; then
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2995$as_echo "$STRIP" >&6; }
2996else
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2998$as_echo "no" >&6; }
2999fi
3000
3001
3002fi
3003if test -z "$ac_cv_prog_STRIP"; then
3004 ac_ct_STRIP=$STRIP
3005 # Extract the first word of "strip", so it can be a program name with args.
3006set dummy strip; ac_word=$2
3007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3008$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 3009if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
81ecdfbb
RW
3010 $as_echo_n "(cached) " >&6
3011else
3012 if test -n "$ac_ct_STRIP"; then
3013 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3014else
3015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3016for as_dir in $PATH
3017do
3018 IFS=$as_save_IFS
3019 test -z "$as_dir" && as_dir=.
3020 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3021 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
81ecdfbb
RW
3022 ac_cv_prog_ac_ct_STRIP="strip"
3023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
3024 break 2
3025 fi
3026done
81ecdfbb
RW
3027 done
3028IFS=$as_save_IFS
3029
3030fi
3031fi
3032ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3033if test -n "$ac_ct_STRIP"; then
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3035$as_echo "$ac_ct_STRIP" >&6; }
3036else
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3038$as_echo "no" >&6; }
3039fi
3040
3041 if test "x$ac_ct_STRIP" = x; then
3042 STRIP=":"
3043 else
3044 case $cross_compiling:$ac_tool_warned in
3045yes:)
3046{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3047$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3048ac_tool_warned=yes ;;
3049esac
3050 STRIP=$ac_ct_STRIP
3051 fi
3052else
3053 STRIP="$ac_cv_prog_STRIP"
3054fi
3055
3056fi
3057INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3058
3059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3060$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3061if test -z "$MKDIR_P"; then
d0ac1c44 3062 if ${ac_cv_path_mkdir+:} false; then :
81ecdfbb
RW
3063 $as_echo_n "(cached) " >&6
3064else
3065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3066for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3067do
3068 IFS=$as_save_IFS
3069 test -z "$as_dir" && as_dir=.
3070 for ac_prog in mkdir gmkdir; do
3071 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3072 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
81ecdfbb
RW
3073 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3074 'mkdir (GNU coreutils) '* | \
3075 'mkdir (coreutils) '* | \
3076 'mkdir (fileutils) '4.1*)
3077 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3078 break 3;;
3079 esac
3080 done
3081 done
3082 done
3083IFS=$as_save_IFS
3084
3085fi
3086
d0ac1c44 3087 test -d ./--version && rmdir ./--version
81ecdfbb
RW
3088 if test "${ac_cv_path_mkdir+set}" = set; then
3089 MKDIR_P="$ac_cv_path_mkdir -p"
3090 else
3091 # As a last resort, use the slow shell script. Don't cache a
3092 # value for MKDIR_P within a source directory, because that will
3093 # break other packages using the cache if that directory is
3094 # removed, or if the value is a relative name.
81ecdfbb
RW
3095 MKDIR_P="$ac_install_sh -d"
3096 fi
3097fi
3098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3099$as_echo "$MKDIR_P" >&6; }
3100
81ecdfbb
RW
3101for ac_prog in gawk mawk nawk awk
3102do
3103 # Extract the first word of "$ac_prog", so it can be a program name with args.
3104set dummy $ac_prog; ac_word=$2
3105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3106$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 3107if ${ac_cv_prog_AWK+:} false; then :
81ecdfbb
RW
3108 $as_echo_n "(cached) " >&6
3109else
3110 if test -n "$AWK"; then
3111 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3112else
3113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3114for as_dir in $PATH
3115do
3116 IFS=$as_save_IFS
3117 test -z "$as_dir" && as_dir=.
3118 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3119 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
81ecdfbb
RW
3120 ac_cv_prog_AWK="$ac_prog"
3121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3122 break 2
3123 fi
42ecbf5e 3124done
81ecdfbb
RW
3125 done
3126IFS=$as_save_IFS
42ecbf5e
DJ
3127
3128fi
3129fi
3130AWK=$ac_cv_prog_AWK
3131if test -n "$AWK"; then
81ecdfbb
RW
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3133$as_echo "$AWK" >&6; }
42ecbf5e 3134else
81ecdfbb
RW
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3136$as_echo "no" >&6; }
42ecbf5e
DJ
3137fi
3138
81ecdfbb 3139
42ecbf5e
DJ
3140 test -n "$AWK" && break
3141done
3142
81ecdfbb
RW
3143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3144$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3145set x ${MAKE-make}
3146ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
d0ac1c44 3147if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
81ecdfbb 3148 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
3149else
3150 cat >conftest.make <<\_ACEOF
81ecdfbb 3151SHELL = /bin/sh
42ecbf5e 3152all:
81ecdfbb 3153 @echo '@@@%%%=$(MAKE)=@@@%%%'
42ecbf5e 3154_ACEOF
d0ac1c44 3155# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
81ecdfbb
RW
3156case `${MAKE-make} -f conftest.make 2>/dev/null` in
3157 *@@@%%%=?*=@@@%%%*)
3158 eval ac_cv_prog_make_${ac_make}_set=yes;;
3159 *)
3160 eval ac_cv_prog_make_${ac_make}_set=no;;
3161esac
42ecbf5e
DJ
3162rm -f conftest.make
3163fi
81ecdfbb
RW
3164if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3166$as_echo "yes" >&6; }
42ecbf5e
DJ
3167 SET_MAKE=
3168else
81ecdfbb
RW
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3170$as_echo "no" >&6; }
42ecbf5e
DJ
3171 SET_MAKE="MAKE=${MAKE-make}"
3172fi
3173
3174rm -rf .tst 2>/dev/null
3175mkdir .tst 2>/dev/null
3176if test -d .tst; then
3177 am__leading_dot=.
3178else
3179 am__leading_dot=_
3180fi
3181rmdir .tst 2>/dev/null
3182
d0ac1c44
SM
3183# Check whether --enable-silent-rules was given.
3184if test "${enable_silent_rules+set}" = set; then :
3185 enableval=$enable_silent_rules;
3186fi
3187
3188case $enable_silent_rules in # (((
3189 yes) AM_DEFAULT_VERBOSITY=0;;
3190 no) AM_DEFAULT_VERBOSITY=1;;
3191 *) AM_DEFAULT_VERBOSITY=1;;
3192esac
3193am_make=${MAKE-make}
3194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3195$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3196if ${am_cv_make_support_nested_variables+:} false; then :
3197 $as_echo_n "(cached) " >&6
3198else
3199 if $as_echo 'TRUE=$(BAR$(V))
3200BAR0=false
3201BAR1=true
3202V=1
3203am__doit:
3204 @$(TRUE)
3205.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3206 am_cv_make_support_nested_variables=yes
3207else
3208 am_cv_make_support_nested_variables=no
3209fi
3210fi
3211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3212$as_echo "$am_cv_make_support_nested_variables" >&6; }
3213if test $am_cv_make_support_nested_variables = yes; then
3214 AM_V='$(V)'
3215 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3216else
3217 AM_V=$AM_DEFAULT_VERBOSITY
3218 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3219fi
3220AM_BACKSLASH='\'
3221
81ecdfbb
RW
3222if test "`cd $srcdir && pwd`" != "`pwd`"; then
3223 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3224 # is not polluted with repeated "-I."
3225 am__isrc=' -I$(srcdir)'
3226 # test to see if srcdir already configured
3227 if test -f $srcdir/config.status; then
d0ac1c44 3228 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
81ecdfbb 3229 fi
42ecbf5e
DJ
3230fi
3231
3232# test whether we have cygpath
3233if test -z "$CYGPATH_W"; then
3234 if (cygpath --version) >/dev/null 2>/dev/null; then
3235 CYGPATH_W='cygpath -w'
3236 else
3237 CYGPATH_W=echo
3238 fi
3239fi
3240
3241
3242# Define the identity of the package.
2e98a7bd 3243 PACKAGE='binutils'
346d80ef 3244 VERSION='2.37.50'
42ecbf5e
DJ
3245
3246
3247cat >>confdefs.h <<_ACEOF
3248#define PACKAGE "$PACKAGE"
3249_ACEOF
3250
3251
3252cat >>confdefs.h <<_ACEOF
3253#define VERSION "$VERSION"
3254_ACEOF
3255
3256# Some tools Automake needs.
3257
3258ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3259
3260
3261AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3262
3263
3264AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3265
3266
3267AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3268
3269
3270MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3271
d0ac1c44
SM
3272# For better backward compatibility. To be removed once Automake 1.9.x
3273# dies out for good. For more background, see:
3274# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3275# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3276mkdir_p='$(MKDIR_P)'
3277
3278# We need awk for the "check" target (and possibly the TAP driver). The
87b9f255
AM
3279# system "awk" is bad on some platforms.
3280# Always define AMTAR for backward compatibility. Yes, it's still used
3281# in the wild :-( We should find a proper way to deprecate it ...
3282AMTAR='$${TAR-tar}'
3283
3284
3285# We'll loop over all known methods to create a tar archive until one works.
3286_am_tools='gnutar pax cpio none'
3287
3288am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
42ecbf5e 3289
252b5132 3290
42ecbf5e 3291
252b5132
RH
3292
3293
3294
d0ac1c44
SM
3295# POSIX will say in a future version that running "rm -f" with no argument
3296# is OK; and we want to be able to make that assumption in our Makefile
3297# recipes. So use an aggressive probe to check that the usage we want is
3298# actually supported "in the wild" to an acceptable degree.
3299# See automake bug#10828.
3300# To make any issue more visible, cause the running configure to be aborted
3301# by default if the 'rm' program in use doesn't match our expectations; the
3302# user can still override this though.
3303if rm -f && rm -fr && rm -rf; then : OK; else
3304 cat >&2 <<'END'
3305Oops!
3306
3307Your 'rm' program seems unable to run without file operands specified
3308on the command line, even when the '-f' option is present. This is contrary
3309to the behaviour of most rm programs out there, and not conforming with
3310the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3311
3312Please tell bug-automake@gnu.org about your system, including the value
3313of your $PATH and any error possibly output before this message. This
3314can help us improve future automake versions.
3315
3316END
3317 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3318 echo 'Configuration will proceed anyway, since you have set the' >&2
3319 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3320 echo >&2
3321 else
3322 cat >&2 <<'END'
3323Aborting the configuration process, to ensure you take notice of the issue.
3324
3325You can download and install GNU coreutils to get an 'rm' implementation
3326that behaves properly: <http://www.gnu.org/software/coreutils/>.
3327
3328If you want to complete the configuration process using your problematic
3329'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3330to "yes", and re-run configure.
3331
3332END
3333 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3334 fi
3335fi
3336
42ecbf5e 3337
d45dc31f
SE
3338ac_ext=c
3339ac_cpp='$CPP $CPPFLAGS'
3340ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3341ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3342ac_compiler_gnu=$ac_cv_c_compiler_gnu
3343if test -n "$ac_tool_prefix"; then
3344 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3345set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
3346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3347$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 3348if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 3349 $as_echo_n "(cached) " >&6
252b5132 3350else
d45dc31f
SE
3351 if test -n "$CC"; then
3352 ac_cv_prog_CC="$CC" # Let the user override the test.
1a09a22c 3353else
d45dc31f
SE
3354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3355for as_dir in $PATH
3356do
3357 IFS=$as_save_IFS
3358 test -z "$as_dir" && as_dir=.
81ecdfbb 3359 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3360 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d45dc31f 3361 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 3362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d45dc31f
SE
3363 break 2
3364 fi
3365done
81ecdfbb
RW
3366 done
3367IFS=$as_save_IFS
ceae3e33 3368
d45dc31f
SE
3369fi
3370fi
3371CC=$ac_cv_prog_CC
3372if test -n "$CC"; then
81ecdfbb
RW
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3374$as_echo "$CC" >&6; }
252b5132 3375else
81ecdfbb
RW
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3377$as_echo "no" >&6; }
252b5132 3378fi
d45dc31f 3379
81ecdfbb 3380
d45dc31f
SE
3381fi
3382if test -z "$ac_cv_prog_CC"; then
3383 ac_ct_CC=$CC
3384 # Extract the first word of "gcc", so it can be a program name with args.
3385set dummy gcc; ac_word=$2
81ecdfbb
RW
3386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3387$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 3388if ${ac_cv_prog_ac_ct_CC+:} false; then :
81ecdfbb 3389 $as_echo_n "(cached) " >&6
252b5132 3390else
d45dc31f
SE
3391 if test -n "$ac_ct_CC"; then
3392 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
252b5132 3393else
d45dc31f
SE
3394as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3395for as_dir in $PATH
3396do
3397 IFS=$as_save_IFS
3398 test -z "$as_dir" && as_dir=.
81ecdfbb 3399 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3400 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d45dc31f 3401 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 3402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d45dc31f
SE
3403 break 2
3404 fi
3405done
81ecdfbb
RW
3406 done
3407IFS=$as_save_IFS
d45dc31f 3408
252b5132
RH
3409fi
3410fi
d45dc31f
SE
3411ac_ct_CC=$ac_cv_prog_ac_ct_CC
3412if test -n "$ac_ct_CC"; then
81ecdfbb
RW
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3414$as_echo "$ac_ct_CC" >&6; }
252b5132 3415else
81ecdfbb
RW
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3417$as_echo "no" >&6; }
252b5132 3418fi
d45dc31f 3419
81ecdfbb
RW
3420 if test "x$ac_ct_CC" = x; then
3421 CC=""
3422 else
3423 case $cross_compiling:$ac_tool_warned in
3424yes:)
3425{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3426$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3427ac_tool_warned=yes ;;
3428esac
3429 CC=$ac_ct_CC
3430 fi
d45dc31f
SE
3431else
3432 CC="$ac_cv_prog_CC"
3433fi
3434
3435if test -z "$CC"; then
81ecdfbb
RW
3436 if test -n "$ac_tool_prefix"; then
3437 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
d45dc31f 3438set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
3439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3440$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 3441if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 3442 $as_echo_n "(cached) " >&6
252b5132 3443else
d45dc31f
SE
3444 if test -n "$CC"; then
3445 ac_cv_prog_CC="$CC" # Let the user override the test.
252b5132 3446else
d45dc31f
SE
3447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3448for as_dir in $PATH
3449do
3450 IFS=$as_save_IFS
3451 test -z "$as_dir" && as_dir=.
81ecdfbb 3452 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d45dc31f 3454 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 3455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d45dc31f
SE
3456 break 2
3457 fi
3458done
81ecdfbb
RW
3459 done
3460IFS=$as_save_IFS
d45dc31f 3461
252b5132
RH
3462fi
3463fi
d45dc31f
SE
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
252b5132 3473
81ecdfbb 3474 fi
d45dc31f
SE
3475fi
3476if test -z "$CC"; then
3477 # Extract the first word of "cc", so it can be a program name with args.
3478set dummy cc; ac_word=$2
81ecdfbb
RW
3479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3480$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 3481if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 3482 $as_echo_n "(cached) " >&6
252b5132 3483else
d45dc31f
SE
3484 if test -n "$CC"; then
3485 ac_cv_prog_CC="$CC" # Let the user override the test.
3486else
3487 ac_prog_rejected=no
3488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3489for as_dir in $PATH
3490do
3491 IFS=$as_save_IFS
3492 test -z "$as_dir" && as_dir=.
81ecdfbb 3493 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d45dc31f
SE
3495 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3496 ac_prog_rejected=yes
3497 continue
3498 fi
3499 ac_cv_prog_CC="cc"
81ecdfbb 3500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d45dc31f
SE
3501 break 2
3502 fi
3503done
81ecdfbb
RW
3504 done
3505IFS=$as_save_IFS
d45dc31f
SE
3506
3507if test $ac_prog_rejected = yes; then
3508 # We found a bogon in the path, so make sure we never use it.
3509 set dummy $ac_cv_prog_CC
3510 shift
3511 if test $# != 0; then
3512 # We chose a different compiler from the bogus one.
3513 # However, it has the same basename, so the bogon will be chosen
3514 # first if we set CC to just the basename; use the full file name.
3515 shift
3516 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3517 fi
3518fi
3519fi
3520fi
3521CC=$ac_cv_prog_CC
3522if test -n "$CC"; then
81ecdfbb
RW
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3524$as_echo "$CC" >&6; }
d45dc31f 3525else
81ecdfbb
RW
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3527$as_echo "no" >&6; }
252b5132
RH
3528fi
3529
81ecdfbb 3530
d45dc31f
SE
3531fi
3532if test -z "$CC"; then
3533 if test -n "$ac_tool_prefix"; then
81ecdfbb 3534 for ac_prog in cl.exe
d45dc31f
SE
3535 do
3536 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3537set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
3538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3539$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 3540if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 3541 $as_echo_n "(cached) " >&6
ac48eca1 3542else
d45dc31f
SE
3543 if test -n "$CC"; then
3544 ac_cv_prog_CC="$CC" # Let the user override the test.
3545else
3546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3547for as_dir in $PATH
3548do
3549 IFS=$as_save_IFS
3550 test -z "$as_dir" && as_dir=.
81ecdfbb 3551 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3552 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d45dc31f 3553 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 3554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d45dc31f
SE
3555 break 2
3556 fi
3557done
81ecdfbb
RW
3558 done
3559IFS=$as_save_IFS
ac48eca1 3560
d45dc31f
SE
3561fi
3562fi
3563CC=$ac_cv_prog_CC
3564if test -n "$CC"; then
81ecdfbb
RW
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3566$as_echo "$CC" >&6; }
d45dc31f 3567else
81ecdfbb
RW
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3569$as_echo "no" >&6; }
d45dc31f 3570fi
ac48eca1 3571
81ecdfbb 3572
d45dc31f
SE
3573 test -n "$CC" && break
3574 done
3575fi
3576if test -z "$CC"; then
3577 ac_ct_CC=$CC
81ecdfbb 3578 for ac_prog in cl.exe
d45dc31f
SE
3579do
3580 # Extract the first word of "$ac_prog", so it can be a program name with args.
3581set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
3582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3583$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 3584if ${ac_cv_prog_ac_ct_CC+:} false; then :
81ecdfbb 3585 $as_echo_n "(cached) " >&6
d45dc31f
SE
3586else
3587 if test -n "$ac_ct_CC"; then
3588 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3589else
3590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3591for as_dir in $PATH
3592do
3593 IFS=$as_save_IFS
3594 test -z "$as_dir" && as_dir=.
81ecdfbb 3595 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3596 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d45dc31f 3597 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 3598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d45dc31f
SE
3599 break 2
3600 fi
3601done
81ecdfbb
RW
3602 done
3603IFS=$as_save_IFS
ac48eca1 3604
d45dc31f
SE
3605fi
3606fi
3607ac_ct_CC=$ac_cv_prog_ac_ct_CC
3608if test -n "$ac_ct_CC"; then
81ecdfbb
RW
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3610$as_echo "$ac_ct_CC" >&6; }
d45dc31f 3611else
81ecdfbb
RW
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3613$as_echo "no" >&6; }
d45dc31f 3614fi
ac48eca1 3615
81ecdfbb 3616
d45dc31f
SE
3617 test -n "$ac_ct_CC" && break
3618done
ac48eca1 3619
81ecdfbb
RW
3620 if test "x$ac_ct_CC" = x; then
3621 CC=""
3622 else
3623 case $cross_compiling:$ac_tool_warned in
3624yes:)
3625{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3626$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3627ac_tool_warned=yes ;;
3628esac
3629 CC=$ac_ct_CC
3630 fi
d45dc31f 3631fi
ac48eca1 3632
87b9f255
AM
3633fi
3634
3635
3636test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3637$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3638as_fn_error $? "no acceptable C compiler found in \$PATH
3639See \`config.log' for more details" "$LINENO" 5; }
3640
3641# Provide some information about the compiler.
3642$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3643set X $ac_compile
3644ac_compiler=$2
3645for ac_option in --version -v -V -qversion; do
3646 { { ac_try="$ac_compiler $ac_option >&5"
3647case "(($ac_try" in
3648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3649 *) ac_try_echo=$ac_try;;
3650esac
3651eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3652$as_echo "$ac_try_echo"; } >&5
3653 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3654 ac_status=$?
3655 if test -s conftest.err; then
3656 sed '10a\
3657... rest of stderr output deleted ...
3658 10q' conftest.err >conftest.er1
3659 cat conftest.er1 >&5
3660 fi
3661 rm -f conftest.er1 conftest.err
3662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3663 test $ac_status = 0; }
3664done
3665
3666cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3667/* end confdefs.h. */
3668
3669int
3670main ()
3671{
3672
3673 ;
3674 return 0;
3675}
3676_ACEOF
3677ac_clean_files_save=$ac_clean_files
3678ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3679# Try to create an executable without -o first, disregard a.out.
3680# It will help us diagnose broken compilers, and finding out an intuition
3681# of exeext.
3682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3683$as_echo_n "checking whether the C compiler works... " >&6; }
3684ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3685
3686# The possible output files:
3687ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3688
3689ac_rmfiles=
3690for ac_file in $ac_files
3691do
3692 case $ac_file in
3693 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3694 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3695 esac
3696done
3697rm -f $ac_rmfiles
3698
3699if { { ac_try="$ac_link_default"
3700case "(($ac_try" in
3701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3702 *) ac_try_echo=$ac_try;;
3703esac
3704eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3705$as_echo "$ac_try_echo"; } >&5
3706 (eval "$ac_link_default") 2>&5
3707 ac_status=$?
3708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3709 test $ac_status = 0; }; then :
3710 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3711# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3712# in a Makefile. We should not override ac_cv_exeext if it was cached,
3713# so that the user can short-circuit this test for compilers unknown to
3714# Autoconf.
3715for ac_file in $ac_files ''
3716do
3717 test -f "$ac_file" || continue
3718 case $ac_file in
3719 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3720 ;;
3721 [ab].out )
3722 # We found the default executable, but exeext='' is most
3723 # certainly right.
3724 break;;
3725 *.* )
3726 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3727 then :; else
3728 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3729 fi
3730 # We set ac_cv_exeext here because the later test for it is not
3731 # safe: cross compilers may not add the suffix if given an `-o'
3732 # argument, so we may need to know it at that point already.
3733 # Even if this section looks crufty: it has the advantage of
3734 # actually working.
3735 break;;
3736 * )
3737 break;;
3738 esac
3739done
3740test "$ac_cv_exeext" = no && ac_cv_exeext=
3741
3742else
3743 ac_file=''
3744fi
3745if test -z "$ac_file"; then :
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3747$as_echo "no" >&6; }
3748$as_echo "$as_me: failed program was:" >&5
3749sed 's/^/| /' conftest.$ac_ext >&5
3750
3751{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3752$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3753as_fn_error 77 "C compiler cannot create executables
3754See \`config.log' for more details" "$LINENO" 5; }
3755else
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3757$as_echo "yes" >&6; }
3758fi
3759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3760$as_echo_n "checking for C compiler default output file name... " >&6; }
3761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3762$as_echo "$ac_file" >&6; }
3763ac_exeext=$ac_cv_exeext
3764
3765rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3766ac_clean_files=$ac_clean_files_save
3767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3768$as_echo_n "checking for suffix of executables... " >&6; }
3769if { { ac_try="$ac_link"
3770case "(($ac_try" in
3771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3772 *) ac_try_echo=$ac_try;;
3773esac
3774eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3775$as_echo "$ac_try_echo"; } >&5
3776 (eval "$ac_link") 2>&5
3777 ac_status=$?
3778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3779 test $ac_status = 0; }; then :
3780 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3781# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3782# work properly (i.e., refer to `conftest.exe'), while it won't with
3783# `rm'.
3784for ac_file in conftest.exe conftest conftest.*; do
3785 test -f "$ac_file" || continue
3786 case $ac_file in
3787 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3788 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3789 break;;
3790 * ) break;;
3791 esac
3792done
3793else
3794 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3795$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3796as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3797See \`config.log' for more details" "$LINENO" 5; }
3798fi
3799rm -f conftest conftest$ac_cv_exeext
3800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3801$as_echo "$ac_cv_exeext" >&6; }
3802
3803rm -f conftest.$ac_ext
3804EXEEXT=$ac_cv_exeext
3805ac_exeext=$EXEEXT
3806cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3807/* end confdefs.h. */
3808#include <stdio.h>
3809int
3810main ()
3811{
3812FILE *f = fopen ("conftest.out", "w");
3813 return ferror (f) || fclose (f) != 0;
3814
3815 ;
3816 return 0;
3817}
3818_ACEOF
3819ac_clean_files="$ac_clean_files conftest.out"
3820# Check that the compiler produces executables we can run. If not, either
3821# the compiler is broken, or we cross compile.
3822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3823$as_echo_n "checking whether we are cross compiling... " >&6; }
3824if test "$cross_compiling" != yes; then
3825 { { ac_try="$ac_link"
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
3832 (eval "$ac_link") 2>&5
3833 ac_status=$?
3834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3835 test $ac_status = 0; }
3836 if { ac_try='./conftest$ac_cv_exeext'
3837 { { case "(($ac_try" in
3838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3839 *) ac_try_echo=$ac_try;;
3840esac
3841eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3842$as_echo "$ac_try_echo"; } >&5
3843 (eval "$ac_try") 2>&5
3844 ac_status=$?
3845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3846 test $ac_status = 0; }; }; then
3847 cross_compiling=no
3848 else
3849 if test "$cross_compiling" = maybe; then
3850 cross_compiling=yes
3851 else
3852 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3853$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3854as_fn_error $? "cannot run C compiled programs.
3855If you meant to cross compile, use \`--host'.
3856See \`config.log' for more details" "$LINENO" 5; }
3857 fi
3858 fi
3859fi
3860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3861$as_echo "$cross_compiling" >&6; }
3862
3863rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3864ac_clean_files=$ac_clean_files_save
3865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3866$as_echo_n "checking for suffix of object files... " >&6; }
3867if ${ac_cv_objext+:} false; then :
3868 $as_echo_n "(cached) " >&6
3869else
3870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3871/* end confdefs.h. */
ac48eca1 3872
87b9f255
AM
3873int
3874main ()
3875{
ac48eca1 3876
87b9f255
AM
3877 ;
3878 return 0;
3879}
3880_ACEOF
3881rm -f conftest.o conftest.obj
3882if { { ac_try="$ac_compile"
81ecdfbb
RW
3883case "(($ac_try" in
3884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3885 *) ac_try_echo=$ac_try;;
3886esac
3887eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3888$as_echo "$ac_try_echo"; } >&5
87b9f255 3889 (eval "$ac_compile") 2>&5
d45dc31f 3890 ac_status=$?
81ecdfbb 3891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
87b9f255
AM
3892 test $ac_status = 0; }; then :
3893 for ac_file in conftest.o conftest.obj conftest.*; do
3894 test -f "$ac_file" || continue;
3895 case $ac_file in
3896 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3897 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3898 break;;
3899 esac
81ecdfbb 3900done
87b9f255
AM
3901else
3902 $as_echo "$as_me: failed program was:" >&5
3903sed 's/^/| /' conftest.$ac_ext >&5
ac48eca1 3904
87b9f255
AM
3905{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3906$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3907as_fn_error $? "cannot compute suffix of object files: cannot compile
3908See \`config.log' for more details" "$LINENO" 5; }
3909fi
3910rm -f conftest.$ac_cv_objext conftest.$ac_ext
3911fi
3912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3913$as_echo "$ac_cv_objext" >&6; }
3914OBJEXT=$ac_cv_objext
3915ac_objext=$OBJEXT
81ecdfbb
RW
3916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3917$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
d0ac1c44 3918if ${ac_cv_c_compiler_gnu+:} false; then :
81ecdfbb 3919 $as_echo_n "(cached) " >&6
bdcfeba5 3920else
81ecdfbb 3921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d45dc31f 3922/* end confdefs.h. */
bdcfeba5 3923
d45dc31f
SE
3924int
3925main ()
3926{
3927#ifndef __GNUC__
3928 choke me
3929#endif
bdcfeba5 3930
d45dc31f
SE
3931 ;
3932 return 0;
3933}
3934_ACEOF
81ecdfbb 3935if ac_fn_c_try_compile "$LINENO"; then :
d45dc31f
SE
3936 ac_compiler_gnu=yes
3937else
81ecdfbb 3938 ac_compiler_gnu=no
bdcfeba5 3939fi
81ecdfbb 3940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d45dc31f 3941ac_cv_c_compiler_gnu=$ac_compiler_gnu
bdcfeba5 3942
bdcfeba5 3943fi
81ecdfbb
RW
3944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3945$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3946if test $ac_compiler_gnu = yes; then
3947 GCC=yes
3948else
3949 GCC=
3950fi
d45dc31f
SE
3951ac_test_CFLAGS=${CFLAGS+set}
3952ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
3953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3954$as_echo_n "checking whether $CC accepts -g... " >&6; }
d0ac1c44 3955if ${ac_cv_prog_cc_g+:} false; then :
81ecdfbb
RW
3956 $as_echo_n "(cached) " >&6
3957else
3958 ac_save_c_werror_flag=$ac_c_werror_flag
3959 ac_c_werror_flag=yes
3960 ac_cv_prog_cc_g=no
3961 CFLAGS="-g"
3962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d45dc31f 3963/* end confdefs.h. */
ac48eca1 3964
d45dc31f
SE
3965int
3966main ()
3967{
ac48eca1 3968
d45dc31f
SE
3969 ;
3970 return 0;
3971}
3972_ACEOF
81ecdfbb 3973if ac_fn_c_try_compile "$LINENO"; then :
d45dc31f 3974 ac_cv_prog_cc_g=yes
ac48eca1 3975else
81ecdfbb
RW
3976 CFLAGS=""
3977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3978/* end confdefs.h. */
3979
3980int
3981main ()
3982{
3983
3984 ;
3985 return 0;
3986}
3987_ACEOF
3988if ac_fn_c_try_compile "$LINENO"; then :
3989
3990else
3991 ac_c_werror_flag=$ac_save_c_werror_flag
3992 CFLAGS="-g"
3993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3994/* end confdefs.h. */
3995
3996int
3997main ()
3998{
ac48eca1 3999
81ecdfbb
RW
4000 ;
4001 return 0;
4002}
4003_ACEOF
4004if ac_fn_c_try_compile "$LINENO"; then :
4005 ac_cv_prog_cc_g=yes
4006fi
4007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ac48eca1 4008fi
81ecdfbb 4009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ac48eca1 4010fi
81ecdfbb
RW
4011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4012 ac_c_werror_flag=$ac_save_c_werror_flag
4013fi
4014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4015$as_echo "$ac_cv_prog_cc_g" >&6; }
d45dc31f
SE
4016if test "$ac_test_CFLAGS" = set; then
4017 CFLAGS=$ac_save_CFLAGS
4018elif test $ac_cv_prog_cc_g = yes; then
4019 if test "$GCC" = yes; then
4020 CFLAGS="-g -O2"
ac48eca1 4021 else
d45dc31f 4022 CFLAGS="-g"
42ecbf5e 4023 fi
ac48eca1 4024else
d45dc31f
SE
4025 if test "$GCC" = yes; then
4026 CFLAGS="-O2"
4027 else
4028 CFLAGS=
42ecbf5e 4029 fi
ac48eca1 4030fi
81ecdfbb
RW
4031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4032$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
d0ac1c44 4033if ${ac_cv_prog_cc_c89+:} false; then :
81ecdfbb 4034 $as_echo_n "(cached) " >&6
d45dc31f 4035else
81ecdfbb 4036 ac_cv_prog_cc_c89=no
d45dc31f 4037ac_save_CC=$CC
81ecdfbb 4038cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e 4039/* end confdefs.h. */
d45dc31f
SE
4040#include <stdarg.h>
4041#include <stdio.h>
d0ac1c44 4042struct stat;
d45dc31f
SE
4043/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4044struct buf { int x; };
4045FILE * (*rcsopen) (struct buf *, struct stat *, int);
4046static char *e (p, i)
4047 char **p;
4048 int i;
4049{
4050 return p[i];
4051}
4052static char *f (char * (*g) (char **, int), char **p, ...)
4053{
4054 char *s;
4055 va_list v;
4056 va_start (v,p);
4057 s = g (p, va_arg (v,int));
4058 va_end (v);
4059 return s;
4060}
4061
4062/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4063 function prototypes and stuff, but not '\xHH' hex character constants.
4064 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 4065 as 'x'. The following induces an error, until -std is added to get
d45dc31f
SE
4066 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4067 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 4068 that's true only with -std. */
d45dc31f 4069int osf4_cc_array ['\x00' == 0 ? 1 : -1];
252b5132 4070
81ecdfbb
RW
4071/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4072 inside strings and character constants. */
4073#define FOO(x) 'x'
4074int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4075
d45dc31f
SE
4076int test (int i, double x);
4077struct s1 {int (*f) (int a);};
4078struct s2 {int (*f) (double a);};
4079int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4080int argc;
4081char **argv;
42ecbf5e
DJ
4082int
4083main ()
4084{
d45dc31f 4085return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
42ecbf5e
DJ
4086 ;
4087 return 0;
4088}
4089_ACEOF
81ecdfbb
RW
4090for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4091 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
d45dc31f
SE
4092do
4093 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
4094 if ac_fn_c_try_compile "$LINENO"; then :
4095 ac_cv_prog_cc_c89=$ac_arg
252b5132 4096fi
81ecdfbb
RW
4097rm -f core conftest.err conftest.$ac_objext
4098 test "x$ac_cv_prog_cc_c89" != "xno" && break
d45dc31f 4099done
81ecdfbb 4100rm -f conftest.$ac_ext
d45dc31f 4101CC=$ac_save_CC
ac48eca1 4102
252b5132 4103fi
81ecdfbb
RW
4104# AC_CACHE_VAL
4105case "x$ac_cv_prog_cc_c89" in
4106 x)
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4108$as_echo "none needed" >&6; } ;;
4109 xno)
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4111$as_echo "unsupported" >&6; } ;;
d45dc31f 4112 *)
81ecdfbb
RW
4113 CC="$CC $ac_cv_prog_cc_c89"
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4115$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
252b5132 4116esac
81ecdfbb 4117if test "x$ac_cv_prog_cc_c89" != xno; then :
252b5132 4118
d45dc31f 4119fi
ac48eca1 4120
d45dc31f
SE
4121ac_ext=c
4122ac_cpp='$CPP $CPPFLAGS'
4123ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4124ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4125ac_compiler_gnu=$ac_cv_c_compiler_gnu
42ecbf5e 4126
d0ac1c44
SM
4127ac_ext=c
4128ac_cpp='$CPP $CPPFLAGS'
4129ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4130ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4131ac_compiler_gnu=$ac_cv_c_compiler_gnu
4132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4133$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4134if ${am_cv_prog_cc_c_o+:} false; then :
4135 $as_echo_n "(cached) " >&6
4136else
4137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4138/* end confdefs.h. */
4139
4140int
4141main ()
4142{
4143
4144 ;
4145 return 0;
4146}
4147_ACEOF
4148 # Make sure it works both with $CC and with simple cc.
4149 # Following AC_PROG_CC_C_O, we do the test twice because some
4150 # compilers refuse to overwrite an existing .o file with -o,
4151 # though they will create one.
4152 am_cv_prog_cc_c_o=yes
4153 for am_i in 1 2; do
4154 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4155 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4156 ac_status=$?
4157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4158 (exit $ac_status); } \
4159 && test -f conftest2.$ac_objext; then
4160 : OK
4161 else
4162 am_cv_prog_cc_c_o=no
4163 break
4164 fi
4165 done
4166 rm -f core conftest*
4167 unset am_i
4168fi
4169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4170$as_echo "$am_cv_prog_cc_c_o" >&6; }
4171if test "$am_cv_prog_cc_c_o" != yes; then
4172 # Losing compiler, so override with the script.
4173 # FIXME: It is wrong to rewrite CC.
4174 # But if we don't then we get into trouble of one sort or another.
4175 # A longer-term fix would be to have automake use am__CC in this case,
4176 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4177 CC="$am_aux_dir/compile $CC"
4178fi
87b9f255
AM
4179ac_ext=c
4180ac_cpp='$CPP $CPPFLAGS'
4181ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4182ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4183ac_compiler_gnu=$ac_cv_c_compiler_gnu
4184
4185DEPDIR="${am__leading_dot}deps"
4186
4187ac_config_commands="$ac_config_commands depfiles"
4188
4189
4190am_make=${MAKE-make}
4191cat > confinc << 'END'
4192am__doit:
4193 @echo this is the am__doit target
4194.PHONY: am__doit
4195END
4196# If we don't find an include directive, just comment out the code.
4197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4198$as_echo_n "checking for style of include used by $am_make... " >&6; }
4199am__include="#"
4200am__quote=
4201_am_result=none
4202# First try GNU make style include.
4203echo "include confinc" > confmf
4204# Ignore all kinds of additional output from 'make'.
4205case `$am_make -s -f confmf 2> /dev/null` in #(
4206*the\ am__doit\ target*)
4207 am__include=include
4208 am__quote=
4209 _am_result=GNU
4210 ;;
4211esac
4212# Now try BSD make style include.
4213if test "$am__include" = "#"; then
4214 echo '.include "confinc"' > confmf
4215 case `$am_make -s -f confmf 2> /dev/null` in #(
4216 *the\ am__doit\ target*)
4217 am__include=.include
4218 am__quote="\""
4219 _am_result=BSD
4220 ;;
4221 esac
4222fi
4223
4224
4225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4226$as_echo "$_am_result" >&6; }
4227rm -f confinc confmf
4228
4229# Check whether --enable-dependency-tracking was given.
4230if test "${enable_dependency_tracking+set}" = set; then :
4231 enableval=$enable_dependency_tracking;
4232fi
4233
4234if test "x$enable_dependency_tracking" != xno; then
4235 am_depcomp="$ac_aux_dir/depcomp"
4236 AMDEPBACKSLASH='\'
4237 am__nodep='_no'
4238fi
4239 if test "x$enable_dependency_tracking" != xno; then
4240 AMDEP_TRUE=
4241 AMDEP_FALSE='#'
4242else
4243 AMDEP_TRUE='#'
4244 AMDEP_FALSE=
4245fi
4246
4247
4248
4249depcc="$CC" am_compiler_list=
4250
4251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4252$as_echo_n "checking dependency style of $depcc... " >&6; }
4253if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4254 $as_echo_n "(cached) " >&6
4255else
4256 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4257 # We make a subdir and do the tests there. Otherwise we can end up
4258 # making bogus files that we don't know about and never remove. For
4259 # instance it was reported that on HP-UX the gcc test will end up
4260 # making a dummy file named 'D' -- because '-MD' means "put the output
4261 # in D".
4262 rm -rf conftest.dir
4263 mkdir conftest.dir
4264 # Copy depcomp to subdir because otherwise we won't find it if we're
4265 # using a relative directory.
4266 cp "$am_depcomp" conftest.dir
4267 cd conftest.dir
4268 # We will build objects and dependencies in a subdirectory because
4269 # it helps to detect inapplicable dependency modes. For instance
4270 # both Tru64's cc and ICC support -MD to output dependencies as a
4271 # side effect of compilation, but ICC will put the dependencies in
4272 # the current directory while Tru64 will put them in the object
4273 # directory.
4274 mkdir sub
4275
4276 am_cv_CC_dependencies_compiler_type=none
4277 if test "$am_compiler_list" = ""; then
4278 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4279 fi
4280 am__universal=false
4281 case " $depcc " in #(
4282 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4283 esac
4284
4285 for depmode in $am_compiler_list; do
4286 # Setup a source with many dependencies, because some compilers
4287 # like to wrap large dependency lists on column 80 (with \), and
4288 # we should not choose a depcomp mode which is confused by this.
4289 #
4290 # We need to recreate these files for each test, as the compiler may
4291 # overwrite some of them when testing with obscure command lines.
4292 # This happens at least with the AIX C compiler.
4293 : > sub/conftest.c
4294 for i in 1 2 3 4 5 6; do
4295 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4296 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4297 # Solaris 10 /bin/sh.
4298 echo '/* dummy */' > sub/conftst$i.h
4299 done
4300 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4301
4302 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4303 # mode. It turns out that the SunPro C++ compiler does not properly
4304 # handle '-M -o', and we need to detect this. Also, some Intel
4305 # versions had trouble with output in subdirs.
4306 am__obj=sub/conftest.${OBJEXT-o}
4307 am__minus_obj="-o $am__obj"
4308 case $depmode in
4309 gcc)
4310 # This depmode causes a compiler race in universal mode.
4311 test "$am__universal" = false || continue
4312 ;;
4313 nosideeffect)
4314 # After this tag, mechanisms are not by side-effect, so they'll
4315 # only be used when explicitly requested.
4316 if test "x$enable_dependency_tracking" = xyes; then
4317 continue
4318 else
4319 break
4320 fi
4321 ;;
4322 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4323 # This compiler won't grok '-c -o', but also, the minuso test has
4324 # not run yet. These depmodes are late enough in the game, and
4325 # so weak that their functioning should not be impacted.
4326 am__obj=conftest.${OBJEXT-o}
4327 am__minus_obj=
4328 ;;
4329 none) break ;;
4330 esac
4331 if depmode=$depmode \
4332 source=sub/conftest.c object=$am__obj \
4333 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4334 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4335 >/dev/null 2>conftest.err &&
4336 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4337 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4338 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4339 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4340 # icc doesn't choke on unknown options, it will just issue warnings
4341 # or remarks (even with -Werror). So we grep stderr for any message
4342 # that says an option was ignored or not supported.
4343 # When given -MP, icc 7.0 and 7.1 complain thusly:
4344 # icc: Command line warning: ignoring option '-M'; no argument required
4345 # The diagnosis changed in icc 8.0:
4346 # icc: Command line remark: option '-MP' not supported
4347 if (grep 'ignoring option' conftest.err ||
4348 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4349 am_cv_CC_dependencies_compiler_type=$depmode
4350 break
4351 fi
4352 fi
4353 done
4354
4355 cd ..
4356 rm -rf conftest.dir
4357else
4358 am_cv_CC_dependencies_compiler_type=none
4359fi
4360
4361fi
4362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4363$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4364CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4365
4366 if
4367 test "x$enable_dependency_tracking" != xno \
4368 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4369 am__fastdepCC_TRUE=
4370 am__fastdepCC_FALSE='#'
4371else
4372 am__fastdepCC_TRUE='#'
4373 am__fastdepCC_FALSE=
4374fi
4375
d0ac1c44
SM
4376
4377
7357c5b6
AM
4378ac_ext=c
4379ac_cpp='$CPP $CPPFLAGS'
4380ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4381ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4382ac_compiler_gnu=$ac_cv_c_compiler_gnu
81ecdfbb
RW
4383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4384$as_echo_n "checking how to run the C preprocessor... " >&6; }
7357c5b6
AM
4385# On Suns, sometimes $CPP names a directory.
4386if test -n "$CPP" && test -d "$CPP"; then
4387 CPP=
4388fi
4389if test -z "$CPP"; then
d0ac1c44 4390 if ${ac_cv_prog_CPP+:} false; then :
81ecdfbb 4391 $as_echo_n "(cached) " >&6
7357c5b6
AM
4392else
4393 # Double quotes because CPP needs to be expanded
4394 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4395 do
4396 ac_preproc_ok=false
4397for ac_c_preproc_warn_flag in '' yes
4398do
4399 # Use a header file that comes with gcc, so configuring glibc
4400 # with a fresh cross-compiler works.
4401 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4402 # <limits.h> exists even on freestanding compilers.
4403 # On the NeXT, cc -E runs the code through the compiler's parser,
4404 # not just through cpp. "Syntax error" is here to catch this case.
81ecdfbb 4405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4406/* end confdefs.h. */
4407#ifdef __STDC__
4408# include <limits.h>
4409#else
4410# include <assert.h>
4411#endif
4412 Syntax error
4413_ACEOF
81ecdfbb 4414if ac_fn_c_try_cpp "$LINENO"; then :
d7040cdb 4415
81ecdfbb 4416else
7357c5b6
AM
4417 # Broken: fails on valid input.
4418continue
4419fi
d0ac1c44 4420rm -f conftest.err conftest.i conftest.$ac_ext
d7040cdb 4421
81ecdfbb 4422 # OK, works on sane cases. Now check whether nonexistent headers
7357c5b6 4423 # can be detected and how.
81ecdfbb 4424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4425/* end confdefs.h. */
4426#include <ac_nonexistent.h>
4427_ACEOF
81ecdfbb 4428if ac_fn_c_try_cpp "$LINENO"; then :
7357c5b6
AM
4429 # Broken: success on invalid input.
4430continue
4431else
7357c5b6
AM
4432 # Passes both tests.
4433ac_preproc_ok=:
4434break
4435fi
d0ac1c44 4436rm -f conftest.err conftest.i conftest.$ac_ext
d7040cdb 4437
7357c5b6
AM
4438done
4439# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
d0ac1c44 4440rm -f conftest.i conftest.err conftest.$ac_ext
81ecdfbb 4441if $ac_preproc_ok; then :
7357c5b6
AM
4442 break
4443fi
d7040cdb 4444
7357c5b6
AM
4445 done
4446 ac_cv_prog_CPP=$CPP
d7040cdb 4447
7357c5b6
AM
4448fi
4449 CPP=$ac_cv_prog_CPP
4450else
4451 ac_cv_prog_CPP=$CPP
4452fi
81ecdfbb
RW
4453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4454$as_echo "$CPP" >&6; }
7357c5b6
AM
4455ac_preproc_ok=false
4456for ac_c_preproc_warn_flag in '' yes
4457do
4458 # Use a header file that comes with gcc, so configuring glibc
4459 # with a fresh cross-compiler works.
4460 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4461 # <limits.h> exists even on freestanding compilers.
4462 # On the NeXT, cc -E runs the code through the compiler's parser,
4463 # not just through cpp. "Syntax error" is here to catch this case.
81ecdfbb 4464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4465/* end confdefs.h. */
4466#ifdef __STDC__
4467# include <limits.h>
4468#else
4469# include <assert.h>
4470#endif
4471 Syntax error
4472_ACEOF
81ecdfbb 4473if ac_fn_c_try_cpp "$LINENO"; then :
d7040cdb 4474
81ecdfbb 4475else
7357c5b6
AM
4476 # Broken: fails on valid input.
4477continue
4478fi
d0ac1c44 4479rm -f conftest.err conftest.i conftest.$ac_ext
d7040cdb 4480
81ecdfbb 4481 # OK, works on sane cases. Now check whether nonexistent headers
7357c5b6 4482 # can be detected and how.
81ecdfbb 4483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4484/* end confdefs.h. */
4485#include <ac_nonexistent.h>
4486_ACEOF
81ecdfbb 4487if ac_fn_c_try_cpp "$LINENO"; then :
7357c5b6
AM
4488 # Broken: success on invalid input.
4489continue
4490else
7357c5b6
AM
4491 # Passes both tests.
4492ac_preproc_ok=:
4493break
4494fi
d0ac1c44 4495rm -f conftest.err conftest.i conftest.$ac_ext
d7040cdb 4496
7357c5b6
AM
4497done
4498# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
d0ac1c44 4499rm -f conftest.i conftest.err conftest.$ac_ext
81ecdfbb
RW
4500if $ac_preproc_ok; then :
4501
7357c5b6 4502else
81ecdfbb
RW
4503 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4504$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
4505as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4506See \`config.log' for more details" "$LINENO" 5; }
7357c5b6 4507fi
d7040cdb 4508
7357c5b6
AM
4509ac_ext=c
4510ac_cpp='$CPP $CPPFLAGS'
4511ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4512ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4513ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb
SE
4514
4515
81ecdfbb
RW
4516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4517$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
d0ac1c44 4518if ${ac_cv_path_GREP+:} false; then :
81ecdfbb 4519 $as_echo_n "(cached) " >&6
7357c5b6 4520else
81ecdfbb
RW
4521 if test -z "$GREP"; then
4522 ac_path_GREP_found=false
4523 # Loop through the user's path and test for each of PROGNAME-LIST
4524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4525for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4526do
4527 IFS=$as_save_IFS
4528 test -z "$as_dir" && as_dir=.
4529 for ac_prog in grep ggrep; do
4530 for ac_exec_ext in '' $ac_executable_extensions; do
4531 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 4532 as_fn_executable_p "$ac_path_GREP" || continue
81ecdfbb
RW
4533# Check for GNU ac_path_GREP and select it if it is found.
4534 # Check for GNU $ac_path_GREP
4535case `"$ac_path_GREP" --version 2>&1` in
4536*GNU*)
4537 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4538*)
4539 ac_count=0
4540 $as_echo_n 0123456789 >"conftest.in"
4541 while :
4542 do
4543 cat "conftest.in" "conftest.in" >"conftest.tmp"
4544 mv "conftest.tmp" "conftest.in"
4545 cp "conftest.in" "conftest.nl"
4546 $as_echo 'GREP' >> "conftest.nl"
4547 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4548 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4549 as_fn_arith $ac_count + 1 && ac_count=$as_val
4550 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4551 # Best one so far, save it but keep looking for a better one
4552 ac_cv_path_GREP="$ac_path_GREP"
4553 ac_path_GREP_max=$ac_count
7357c5b6 4554 fi
81ecdfbb
RW
4555 # 10*(2^10) chars as input seems more than enough
4556 test $ac_count -gt 10 && break
4557 done
4558 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4559esac
4560
4561 $ac_path_GREP_found && break 3
4562 done
4563 done
4564 done
4565IFS=$as_save_IFS
4566 if test -z "$ac_cv_path_GREP"; then
d0ac1c44 4567 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
81ecdfbb
RW
4568 fi
4569else
4570 ac_cv_path_GREP=$GREP
4571fi
4572
7357c5b6 4573fi
81ecdfbb
RW
4574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4575$as_echo "$ac_cv_path_GREP" >&6; }
4576 GREP="$ac_cv_path_GREP"
d7040cdb 4577
d7040cdb 4578
81ecdfbb
RW
4579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4580$as_echo_n "checking for egrep... " >&6; }
d0ac1c44 4581if ${ac_cv_path_EGREP+:} false; then :
81ecdfbb 4582 $as_echo_n "(cached) " >&6
7357c5b6 4583else
81ecdfbb
RW
4584 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4585 then ac_cv_path_EGREP="$GREP -E"
4586 else
4587 if test -z "$EGREP"; then
4588 ac_path_EGREP_found=false
4589 # Loop through the user's path and test for each of PROGNAME-LIST
4590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4591for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4592do
4593 IFS=$as_save_IFS
4594 test -z "$as_dir" && as_dir=.
4595 for ac_prog in egrep; do
4596 for ac_exec_ext in '' $ac_executable_extensions; do
4597 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 4598 as_fn_executable_p "$ac_path_EGREP" || continue
81ecdfbb
RW
4599# Check for GNU ac_path_EGREP and select it if it is found.
4600 # Check for GNU $ac_path_EGREP
4601case `"$ac_path_EGREP" --version 2>&1` in
4602*GNU*)
4603 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4604*)
4605 ac_count=0
4606 $as_echo_n 0123456789 >"conftest.in"
4607 while :
4608 do
4609 cat "conftest.in" "conftest.in" >"conftest.tmp"
4610 mv "conftest.tmp" "conftest.in"
4611 cp "conftest.in" "conftest.nl"
4612 $as_echo 'EGREP' >> "conftest.nl"
4613 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4614 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4615 as_fn_arith $ac_count + 1 && ac_count=$as_val
4616 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4617 # Best one so far, save it but keep looking for a better one
4618 ac_cv_path_EGREP="$ac_path_EGREP"
4619 ac_path_EGREP_max=$ac_count
4620 fi
4621 # 10*(2^10) chars as input seems more than enough
4622 test $ac_count -gt 10 && break
4623 done
4624 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4625esac
4626
4627 $ac_path_EGREP_found && break 3
4628 done
4629 done
4630 done
4631IFS=$as_save_IFS
4632 if test -z "$ac_cv_path_EGREP"; then
d0ac1c44 4633 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
81ecdfbb
RW
4634 fi
4635else
4636 ac_cv_path_EGREP=$EGREP
4637fi
4638
4639 fi
4640fi
4641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4642$as_echo "$ac_cv_path_EGREP" >&6; }
4643 EGREP="$ac_cv_path_EGREP"
4644
4645
4646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4647$as_echo_n "checking for ANSI C header files... " >&6; }
d0ac1c44 4648if ${ac_cv_header_stdc+:} false; then :
81ecdfbb
RW
4649 $as_echo_n "(cached) " >&6
4650else
4651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4652/* end confdefs.h. */
4653#include <stdlib.h>
4654#include <stdarg.h>
4655#include <string.h>
4656#include <float.h>
d7040cdb 4657
7357c5b6
AM
4658int
4659main ()
4660{
d7040cdb 4661
7357c5b6
AM
4662 ;
4663 return 0;
4664}
4665_ACEOF
81ecdfbb 4666if ac_fn_c_try_compile "$LINENO"; then :
7357c5b6
AM
4667 ac_cv_header_stdc=yes
4668else
81ecdfbb 4669 ac_cv_header_stdc=no
7357c5b6 4670fi
81ecdfbb 4671rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d7040cdb 4672
7357c5b6
AM
4673if test $ac_cv_header_stdc = yes; then
4674 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
81ecdfbb 4675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4676/* end confdefs.h. */
4677#include <string.h>
d7040cdb 4678
7357c5b6
AM
4679_ACEOF
4680if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb
RW
4681 $EGREP "memchr" >/dev/null 2>&1; then :
4682
d45dc31f 4683else
7357c5b6
AM
4684 ac_cv_header_stdc=no
4685fi
4686rm -f conftest*
d7040cdb 4687
7357c5b6 4688fi
d7040cdb 4689
7357c5b6
AM
4690if test $ac_cv_header_stdc = yes; then
4691 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
81ecdfbb 4692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4693/* end confdefs.h. */
4694#include <stdlib.h>
d7040cdb 4695
7357c5b6
AM
4696_ACEOF
4697if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb
RW
4698 $EGREP "free" >/dev/null 2>&1; then :
4699
7357c5b6
AM
4700else
4701 ac_cv_header_stdc=no
4702fi
4703rm -f conftest*
d7040cdb 4704
7357c5b6 4705fi
d7040cdb 4706
7357c5b6
AM
4707if test $ac_cv_header_stdc = yes; then
4708 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
81ecdfbb 4709 if test "$cross_compiling" = yes; then :
7357c5b6
AM
4710 :
4711else
81ecdfbb 4712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4713/* end confdefs.h. */
4714#include <ctype.h>
81ecdfbb 4715#include <stdlib.h>
7357c5b6
AM
4716#if ((' ' & 0x0FF) == 0x020)
4717# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4718# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4719#else
4720# define ISLOWER(c) \
4721 (('a' <= (c) && (c) <= 'i') \
4722 || ('j' <= (c) && (c) <= 'r') \
4723 || ('s' <= (c) && (c) <= 'z'))
4724# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4725#endif
d7040cdb 4726
7357c5b6
AM
4727#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4728int
4729main ()
4730{
4731 int i;
4732 for (i = 0; i < 256; i++)
4733 if (XOR (islower (i), ISLOWER (i))
4734 || toupper (i) != TOUPPER (i))
81ecdfbb
RW
4735 return 2;
4736 return 0;
7357c5b6
AM
4737}
4738_ACEOF
81ecdfbb 4739if ac_fn_c_try_run "$LINENO"; then :
d7040cdb 4740
81ecdfbb
RW
4741else
4742 ac_cv_header_stdc=no
7357c5b6 4743fi
81ecdfbb
RW
4744rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4745 conftest.$ac_objext conftest.beam conftest.$ac_ext
7357c5b6 4746fi
81ecdfbb 4747
7357c5b6
AM
4748fi
4749fi
81ecdfbb
RW
4750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4751$as_echo "$ac_cv_header_stdc" >&6; }
7357c5b6 4752if test $ac_cv_header_stdc = yes; then
d7040cdb 4753
81ecdfbb 4754$as_echo "#define STDC_HEADERS 1" >>confdefs.h
d7040cdb 4755
7357c5b6 4756fi
d7040cdb 4757
7357c5b6 4758# On IRIX 5.3, sys/types and inttypes.h are conflicting.
81ecdfbb
RW
4759for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4760 inttypes.h stdint.h unistd.h
4761do :
4762 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4763ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4764"
d0ac1c44 4765if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
81ecdfbb
RW
4766 cat >>confdefs.h <<_ACEOF
4767#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4768_ACEOF
d7040cdb 4769
81ecdfbb 4770fi
d7040cdb 4771
81ecdfbb 4772done
d7040cdb
SE
4773
4774
4775
81ecdfbb 4776 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
d0ac1c44 4777if test "x$ac_cv_header_minix_config_h" = xyes; then :
81ecdfbb
RW
4778 MINIX=yes
4779else
4780 MINIX=
4781fi
d7040cdb
SE
4782
4783
81ecdfbb 4784 if test "$MINIX" = yes; then
d7040cdb 4785
81ecdfbb 4786$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
d7040cdb 4787
d7040cdb 4788
81ecdfbb 4789$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
d7040cdb
SE
4790
4791
81ecdfbb 4792$as_echo "#define _MINIX 1" >>confdefs.h
d7040cdb 4793
81ecdfbb 4794 fi
d7040cdb
SE
4795
4796
81ecdfbb
RW
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4798$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
d0ac1c44 4799if ${ac_cv_safe_to_define___extensions__+:} false; then :
81ecdfbb 4800 $as_echo_n "(cached) " >&6
7357c5b6 4801else
81ecdfbb 4802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6 4803/* end confdefs.h. */
d7040cdb 4804
d0ac1c44
SM
4805# define __EXTENSIONS__ 1
4806 $ac_includes_default
7357c5b6
AM
4807int
4808main ()
4809{
d7040cdb 4810
7357c5b6
AM
4811 ;
4812 return 0;
4813}
4814_ACEOF
81ecdfbb 4815if ac_fn_c_try_compile "$LINENO"; then :
7357c5b6 4816 ac_cv_safe_to_define___extensions__=yes
d7040cdb 4817else
81ecdfbb 4818 ac_cv_safe_to_define___extensions__=no
d7040cdb 4819fi
81ecdfbb 4820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7357c5b6 4821fi
81ecdfbb
RW
4822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4823$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
7357c5b6 4824 test $ac_cv_safe_to_define___extensions__ = yes &&
81ecdfbb 4825 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
d7040cdb 4826
81ecdfbb 4827 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
d7040cdb 4828
81ecdfbb 4829 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
d7040cdb 4830
81ecdfbb 4831 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
d7040cdb 4832
81ecdfbb 4833 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
d7040cdb
SE
4834
4835
e3525117 4836
5691d22d 4837
81ecdfbb 4838
718a6fd8
SE
4839case `pwd` in
4840 *\ * | *\ *)
81ecdfbb
RW
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4842$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
718a6fd8 4843esac
d7040cdb
SE
4844
4845
7357c5b6 4846
f2c621e4
AS
4847macro_version='2.2.7a'
4848macro_revision='1.3134'
7357c5b6
AM
4849
4850
4851
4852
4853
4854
7357c5b6
AM
4855
4856
4857
4858
4859
4860
4861
718a6fd8 4862ltmain="$ac_aux_dir/ltmain.sh"
7357c5b6 4863
3725885a
RW
4864# Backslashify metacharacters that are still active within
4865# double-quoted strings.
4866sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4867
4868# Same as above, but do not quote variable references.
4869double_quote_subst='s/\(["`\\]\)/\\\1/g'
4870
4871# Sed substitution to delay expansion of an escaped shell variable in a
4872# double_quote_subst'ed string.
4873delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4874
4875# Sed substitution to delay expansion of an escaped single quote.
4876delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4877
4878# Sed substitution to avoid accidental globbing in evaled expressions
4879no_glob_subst='s/\*/\\\*/g'
4880
4881ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4882ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4883ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4884
4885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4886$as_echo_n "checking how to print strings... " >&6; }
4887# Test print first, because it will be a builtin if present.
f2c621e4 4888if test "X`print -r -- -n 2>/dev/null`" = X-n && \
3725885a
RW
4889 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4890 ECHO='print -r --'
4891elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4892 ECHO='printf %s\n'
4893else
4894 # Use this function as a fallback that always works.
4895 func_fallback_echo ()
4896 {
4897 eval 'cat <<_LTECHO_EOF
4898$1
4899_LTECHO_EOF'
4900 }
4901 ECHO='func_fallback_echo'
4902fi
4903
4904# func_echo_all arg...
4905# Invoke $ECHO with all args, space-separated.
4906func_echo_all ()
4907{
4908 $ECHO ""
4909}
4910
4911case "$ECHO" in
4912 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4913$as_echo "printf" >&6; } ;;
4914 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4915$as_echo "print -r" >&6; } ;;
4916 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4917$as_echo "cat" >&6; } ;;
4918esac
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
81ecdfbb
RW
4933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4934$as_echo_n "checking for a sed that does not truncate output... " >&6; }
d0ac1c44 4935if ${ac_cv_path_SED+:} false; then :
81ecdfbb 4936 $as_echo_n "(cached) " >&6
7357c5b6 4937else
81ecdfbb
RW
4938 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4939 for ac_i in 1 2 3 4 5 6 7; do
4940 ac_script="$ac_script$as_nl$ac_script"
4941 done
4942 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4943 { ac_script=; unset ac_script;}
4944 if test -z "$SED"; then
4945 ac_path_SED_found=false
4946 # Loop through the user's path and test for each of PROGNAME-LIST
4947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7357c5b6
AM
4948for as_dir in $PATH
4949do
4950 IFS=$as_save_IFS
4951 test -z "$as_dir" && as_dir=.
81ecdfbb 4952 for ac_prog in sed gsed; do
7357c5b6 4953 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb 4954 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 4955 as_fn_executable_p "$ac_path_SED" || continue
81ecdfbb
RW
4956# Check for GNU ac_path_SED and select it if it is found.
4957 # Check for GNU $ac_path_SED
4958case `"$ac_path_SED" --version 2>&1` in
4959*GNU*)
4960 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4961*)
4962 ac_count=0
4963 $as_echo_n 0123456789 >"conftest.in"
4964 while :
4965 do
4966 cat "conftest.in" "conftest.in" >"conftest.tmp"
4967 mv "conftest.tmp" "conftest.in"
4968 cp "conftest.in" "conftest.nl"
4969 $as_echo '' >> "conftest.nl"
4970 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4971 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4972 as_fn_arith $ac_count + 1 && ac_count=$as_val
4973 if test $ac_count -gt ${ac_path_SED_max-0}; then
4974 # Best one so far, save it but keep looking for a better one
4975 ac_cv_path_SED="$ac_path_SED"
4976 ac_path_SED_max=$ac_count
4977 fi
4978 # 10*(2^10) chars as input seems more than enough
4979 test $ac_count -gt 10 && break
4980 done
4981 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4982esac
4983
4984 $ac_path_SED_found && break 3
7357c5b6
AM
4985 done
4986 done
81ecdfbb 4987 done
7357c5b6 4988IFS=$as_save_IFS
81ecdfbb 4989 if test -z "$ac_cv_path_SED"; then
d0ac1c44 4990 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7357c5b6 4991 fi
81ecdfbb
RW
4992else
4993 ac_cv_path_SED=$SED
7357c5b6
AM
4994fi
4995
81ecdfbb
RW
4996fi
4997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4998$as_echo "$ac_cv_path_SED" >&6; }
4999 SED="$ac_cv_path_SED"
5000 rm -f conftest.sed
7357c5b6
AM
5001
5002test -z "$SED" && SED=sed
5003Xsed="$SED -e 1s/^X//"
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
81ecdfbb
RW
5015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5016$as_echo_n "checking for fgrep... " >&6; }
d0ac1c44 5017if ${ac_cv_path_FGREP+:} false; then :
81ecdfbb 5018 $as_echo_n "(cached) " >&6
7357c5b6 5019else
81ecdfbb
RW
5020 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5021 then ac_cv_path_FGREP="$GREP -F"
5022 else
5023 if test -z "$FGREP"; then
5024 ac_path_FGREP_found=false
5025 # Loop through the user's path and test for each of PROGNAME-LIST
5026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5027for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5028do
5029 IFS=$as_save_IFS
5030 test -z "$as_dir" && as_dir=.
5031 for ac_prog in fgrep; do
5032 for ac_exec_ext in '' $ac_executable_extensions; do
5033 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 5034 as_fn_executable_p "$ac_path_FGREP" || continue
81ecdfbb
RW
5035# Check for GNU ac_path_FGREP and select it if it is found.
5036 # Check for GNU $ac_path_FGREP
5037case `"$ac_path_FGREP" --version 2>&1` in
5038*GNU*)
5039 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5040*)
5041 ac_count=0
5042 $as_echo_n 0123456789 >"conftest.in"
5043 while :
5044 do
5045 cat "conftest.in" "conftest.in" >"conftest.tmp"
5046 mv "conftest.tmp" "conftest.in"
5047 cp "conftest.in" "conftest.nl"
5048 $as_echo 'FGREP' >> "conftest.nl"
5049 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5050 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5051 as_fn_arith $ac_count + 1 && ac_count=$as_val
5052 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5053 # Best one so far, save it but keep looking for a better one
5054 ac_cv_path_FGREP="$ac_path_FGREP"
5055 ac_path_FGREP_max=$ac_count
7357c5b6 5056 fi
81ecdfbb
RW
5057 # 10*(2^10) chars as input seems more than enough
5058 test $ac_count -gt 10 && break
5059 done
5060 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5061esac
5062
5063 $ac_path_FGREP_found && break 3
5064 done
5065 done
5066 done
5067IFS=$as_save_IFS
5068 if test -z "$ac_cv_path_FGREP"; then
d0ac1c44 5069 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
81ecdfbb
RW
5070 fi
5071else
5072 ac_cv_path_FGREP=$FGREP
5073fi
5074
5075 fi
7357c5b6 5076fi
81ecdfbb
RW
5077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5078$as_echo "$ac_cv_path_FGREP" >&6; }
5079 FGREP="$ac_cv_path_FGREP"
7357c5b6
AM
5080
5081
5082test -z "$GREP" && GREP=grep
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
81ecdfbb
RW
5102# Check whether --with-gnu-ld was given.
5103if test "${with_gnu_ld+set}" = set; then :
5104 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7357c5b6
AM
5105else
5106 with_gnu_ld=no
81ecdfbb
RW
5107fi
5108
7357c5b6
AM
5109ac_prog=ld
5110if test "$GCC" = yes; then
5111 # Check if gcc -print-prog-name=ld gives a path.
81ecdfbb
RW
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5113$as_echo_n "checking for ld used by $CC... " >&6; }
7357c5b6
AM
5114 case $host in
5115 *-*-mingw*)
d45dc31f
SE
5116 # gcc leaves a trailing carriage return which upsets mingw
5117 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5118 *)
5119 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5120 esac
5121 case $ac_prog in
5122 # Accept absolute paths.
d7040cdb 5123 [\\/]* | ?:[\\/]*)
d45dc31f 5124 re_direlt='/[^/][^/]*/\.\./'
d7040cdb
SE
5125 # Canonicalize the pathname of ld
5126 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5127 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5128 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
d45dc31f
SE
5129 done
5130 test -z "$LD" && LD="$ac_prog"
5131 ;;
5132 "")
5133 # If it fails, then pretend we aren't using GCC.
5134 ac_prog=ld
5135 ;;
5136 *)
5137 # If it is relative, then search for the first ld in PATH.
5138 with_gnu_ld=unknown
5139 ;;
5140 esac
5141elif test "$with_gnu_ld" = yes; then
81ecdfbb
RW
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5143$as_echo_n "checking for GNU ld... " >&6; }
d45dc31f 5144else
81ecdfbb
RW
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5146$as_echo_n "checking for non-GNU ld... " >&6; }
d45dc31f 5147fi
d0ac1c44 5148if ${lt_cv_path_LD+:} false; then :
81ecdfbb 5149 $as_echo_n "(cached) " >&6
d45dc31f
SE
5150else
5151 if test -z "$LD"; then
d7040cdb 5152 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
d45dc31f 5153 for ac_dir in $PATH; do
d7040cdb 5154 IFS="$lt_save_ifs"
d45dc31f
SE
5155 test -z "$ac_dir" && ac_dir=.
5156 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5157 lt_cv_path_LD="$ac_dir/$ac_prog"
5158 # Check to see if the program is GNU ld. I'd rather use --version,
d7040cdb 5159 # but apparently some variants of GNU ld only accept -v.
d45dc31f 5160 # Break only if it was the GNU/non-GNU ld that we prefer.
d7040cdb
SE
5161 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5162 *GNU* | *'with BFD'*)
d45dc31f 5163 test "$with_gnu_ld" != no && break
d7040cdb
SE
5164 ;;
5165 *)
d45dc31f 5166 test "$with_gnu_ld" != yes && break
d7040cdb
SE
5167 ;;
5168 esac
d45dc31f
SE
5169 fi
5170 done
d7040cdb 5171 IFS="$lt_save_ifs"
d45dc31f
SE
5172else
5173 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5174fi
5175fi
1ad12f97 5176
d45dc31f
SE
5177LD="$lt_cv_path_LD"
5178if test -n "$LD"; then
81ecdfbb
RW
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5180$as_echo "$LD" >&6; }
d45dc31f 5181else
81ecdfbb
RW
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5183$as_echo "no" >&6; }
d45dc31f 5184fi
d0ac1c44 5185test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
81ecdfbb
RW
5186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5187$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
d0ac1c44 5188if ${lt_cv_prog_gnu_ld+:} false; then :
81ecdfbb 5189 $as_echo_n "(cached) " >&6
d45dc31f 5190else
d7040cdb
SE
5191 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5192case `$LD -v 2>&1 </dev/null` in
5193*GNU* | *'with BFD'*)
d45dc31f 5194 lt_cv_prog_gnu_ld=yes
d7040cdb
SE
5195 ;;
5196*)
d45dc31f 5197 lt_cv_prog_gnu_ld=no
d7040cdb
SE
5198 ;;
5199esac
d45dc31f 5200fi
81ecdfbb
RW
5201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5202$as_echo "$lt_cv_prog_gnu_ld" >&6; }
d45dc31f 5203with_gnu_ld=$lt_cv_prog_gnu_ld
569acd2c 5204
d45dc31f 5205
42ecbf5e 5206
d7040cdb
SE
5207
5208
5209
5210
5211
5212
81ecdfbb
RW
5213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5214$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
d0ac1c44 5215if ${lt_cv_path_NM+:} false; then :
81ecdfbb 5216 $as_echo_n "(cached) " >&6
d45dc31f
SE
5217else
5218 if test -n "$NM"; then
5219 # Let the user override the test.
5220 lt_cv_path_NM="$NM"
5221else
d7040cdb
SE
5222 lt_nm_to_check="${ac_tool_prefix}nm"
5223 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5224 lt_nm_to_check="$lt_nm_to_check nm"
5225 fi
5226 for lt_tmp_nm in $lt_nm_to_check; do
5227 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5228 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5229 IFS="$lt_save_ifs"
5230 test -z "$ac_dir" && ac_dir=.
5231 tmp_nm="$ac_dir/$lt_tmp_nm"
5232 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5233 # Check to see if the nm accepts a BSD-compat flag.
5234 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5235 # nm: unknown option "B" ignored
5236 # Tru64's nm complains that /dev/null is an invalid object file
5237 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5238 */dev/null* | *'Invalid file or object type'*)
5239 lt_cv_path_NM="$tmp_nm -B"
5240 break
5241 ;;
5242 *)
5243 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5244 */dev/null*)
5245 lt_cv_path_NM="$tmp_nm -p"
5246 break
5247 ;;
5248 *)
5249 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5250 continue # so that we can try to find one that supports BSD flags
5251 ;;
5252 esac
5253 ;;
5254 esac
d45dc31f 5255 fi
d7040cdb
SE
5256 done
5257 IFS="$lt_save_ifs"
d45dc31f 5258 done
d7040cdb 5259 : ${lt_cv_path_NM=no}
d45dc31f 5260fi
a541e3ce 5261fi
81ecdfbb
RW
5262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5263$as_echo "$lt_cv_path_NM" >&6; }
d7040cdb
SE
5264if test "$lt_cv_path_NM" != "no"; then
5265 NM="$lt_cv_path_NM"
d45dc31f 5266else
d7040cdb 5267 # Didn't find any BSD compatible name lister, look for dumpbin.
3725885a
RW
5268 if test -n "$DUMPBIN"; then :
5269 # Let the user override the test.
5270 else
5271 if test -n "$ac_tool_prefix"; then
5272 for ac_prog in dumpbin "link -dump"
d7040cdb
SE
5273 do
5274 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5275set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
5276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5277$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5278if ${ac_cv_prog_DUMPBIN+:} false; then :
81ecdfbb 5279 $as_echo_n "(cached) " >&6
d45dc31f 5280else
d7040cdb
SE
5281 if test -n "$DUMPBIN"; then
5282 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5283else
5284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5285for as_dir in $PATH
5286do
5287 IFS=$as_save_IFS
5288 test -z "$as_dir" && as_dir=.
81ecdfbb 5289 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5290 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7040cdb 5291 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
81ecdfbb 5292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
5293 break 2
5294 fi
5295done
81ecdfbb
RW
5296 done
5297IFS=$as_save_IFS
398ee8f1 5298
d7040cdb
SE
5299fi
5300fi
5301DUMPBIN=$ac_cv_prog_DUMPBIN
5302if test -n "$DUMPBIN"; then
81ecdfbb
RW
5303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5304$as_echo "$DUMPBIN" >&6; }
d7040cdb 5305else
81ecdfbb
RW
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5307$as_echo "no" >&6; }
d7040cdb 5308fi
d15b04bd 5309
81ecdfbb 5310
d7040cdb
SE
5311 test -n "$DUMPBIN" && break
5312 done
5313fi
5314if test -z "$DUMPBIN"; then
5315 ac_ct_DUMPBIN=$DUMPBIN
3725885a 5316 for ac_prog in dumpbin "link -dump"
d7040cdb
SE
5317do
5318 # Extract the first word of "$ac_prog", so it can be a program name with args.
5319set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
5320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5321$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5322if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
81ecdfbb 5323 $as_echo_n "(cached) " >&6
d7040cdb
SE
5324else
5325 if test -n "$ac_ct_DUMPBIN"; then
5326 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5327else
5328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5329for as_dir in $PATH
5330do
5331 IFS=$as_save_IFS
5332 test -z "$as_dir" && as_dir=.
81ecdfbb 5333 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5334 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7040cdb 5335 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
81ecdfbb 5336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb 5337 break 2
d45dc31f 5338 fi
d7040cdb 5339done
81ecdfbb
RW
5340 done
5341IFS=$as_save_IFS
d15b04bd 5342
d7040cdb
SE
5343fi
5344fi
5345ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5346if test -n "$ac_ct_DUMPBIN"; then
81ecdfbb
RW
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5348$as_echo "$ac_ct_DUMPBIN" >&6; }
d7040cdb 5349else
81ecdfbb
RW
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5351$as_echo "no" >&6; }
d7040cdb 5352fi
42ecbf5e 5353
81ecdfbb 5354
d7040cdb
SE
5355 test -n "$ac_ct_DUMPBIN" && break
5356done
d45dc31f 5357
81ecdfbb
RW
5358 if test "x$ac_ct_DUMPBIN" = x; then
5359 DUMPBIN=":"
5360 else
5361 case $cross_compiling:$ac_tool_warned in
5362yes:)
5363{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5364$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5365ac_tool_warned=yes ;;
5366esac
5367 DUMPBIN=$ac_ct_DUMPBIN
5368 fi
d7040cdb 5369fi
d45dc31f 5370
3725885a
RW
5371 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5372 *COFF*)
5373 DUMPBIN="$DUMPBIN -symbols"
5374 ;;
5375 *)
5376 DUMPBIN=:
5377 ;;
5378 esac
5379 fi
d45dc31f 5380
d7040cdb
SE
5381 if test "$DUMPBIN" != ":"; then
5382 NM="$DUMPBIN"
42ecbf5e 5383 fi
d7040cdb
SE
5384fi
5385test -z "$NM" && NM=nm
d45dc31f 5386
42ecbf5e 5387
d15b04bd 5388
42ecbf5e 5389
d45dc31f 5390
42ecbf5e 5391
81ecdfbb
RW
5392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5393$as_echo_n "checking the name lister ($NM) interface... " >&6; }
d0ac1c44 5394if ${lt_cv_nm_interface+:} false; then :
81ecdfbb 5395 $as_echo_n "(cached) " >&6
d7040cdb
SE
5396else
5397 lt_cv_nm_interface="BSD nm"
5398 echo "int some_variable = 0;" > conftest.$ac_ext
3725885a 5399 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
d7040cdb
SE
5400 (eval "$ac_compile" 2>conftest.err)
5401 cat conftest.err >&5
3725885a 5402 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
d7040cdb
SE
5403 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5404 cat conftest.err >&5
3725885a 5405 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
d7040cdb
SE
5406 cat conftest.out >&5
5407 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5408 lt_cv_nm_interface="MS dumpbin"
5409 fi
5410 rm -f conftest*
42ecbf5e 5411fi
81ecdfbb
RW
5412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5413$as_echo "$lt_cv_nm_interface" >&6; }
42ecbf5e 5414
81ecdfbb
RW
5415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5416$as_echo_n "checking whether ln -s works... " >&6; }
d7040cdb
SE
5417LN_S=$as_ln_s
5418if test "$LN_S" = "ln -s"; then
81ecdfbb
RW
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5420$as_echo "yes" >&6; }
d7040cdb 5421else
81ecdfbb
RW
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5423$as_echo "no, using $LN_S" >&6; }
d7040cdb 5424fi
d45dc31f
SE
5425
5426# find the maximum length of command line arguments
81ecdfbb
RW
5427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5428$as_echo_n "checking the maximum length of command line arguments... " >&6; }
d0ac1c44 5429if ${lt_cv_sys_max_cmd_len+:} false; then :
81ecdfbb 5430 $as_echo_n "(cached) " >&6
42ecbf5e 5431else
d45dc31f
SE
5432 i=0
5433 teststring="ABCD"
5434
5435 case $build_os in
5436 msdosdjgpp*)
5437 # On DJGPP, this test can blow up pretty badly due to problems in libc
5438 # (any single argument exceeding 2000 bytes causes a buffer overrun
5439 # during glob expansion). Even if it were fixed, the result of this
5440 # check would be larger than it should be.
5441 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5442 ;;
5443
d7040cdb
SE
5444 gnu*)
5445 # Under GNU Hurd, this test is not required because there is
5446 # no limit to the length of command line arguments.
5447 # Libtool will interpret -1 as no limit whatsoever
5448 lt_cv_sys_max_cmd_len=-1;
5449 ;;
5450
718a6fd8 5451 cygwin* | mingw* | cegcc*)
d45dc31f
SE
5452 # On Win9x/ME, this test blows up -- it succeeds, but takes
5453 # about 5 minutes as the teststring grows exponentially.
5454 # Worse, since 9x/ME are not pre-emptively multitasking,
5455 # you end up with a "frozen" computer, even though with patience
5456 # the test eventually succeeds (with a max line length of 256k).
5457 # Instead, let's just punt: use the minimum linelength reported by
5458 # all of the supported platforms: 8192 (on NT/2K/XP).
5459 lt_cv_sys_max_cmd_len=8192;
5460 ;;
5461
3725885a
RW
5462 mint*)
5463 # On MiNT this can take a long time and run out of memory.
5464 lt_cv_sys_max_cmd_len=8192;
5465 ;;
5466
d45dc31f
SE
5467 amigaos*)
5468 # On AmigaOS with pdksh, this test takes hours, literally.
5469 # So we just punt and use a minimum line length of 8192.
5470 lt_cv_sys_max_cmd_len=8192;
5471 ;;
5472
5473 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5474 # This has been around since 386BSD, at least. Likely further.
5475 if test -x /sbin/sysctl; then
5476 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5477 elif test -x /usr/sbin/sysctl; then
5478 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5479 else
d7040cdb 5480 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
d45dc31f
SE
5481 fi
5482 # And add a safety zone
5483 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5484 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5485 ;;
d7040cdb
SE
5486
5487 interix*)
5488 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5489 lt_cv_sys_max_cmd_len=196608
5490 ;;
5491
5492 osf*)
5493 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5494 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5495 # nice to cause kernel panics so lets avoid the loop below.
5496 # First set a reasonable default.
5497 lt_cv_sys_max_cmd_len=16384
5498 #
5499 if test -x /sbin/sysconfig; then
5500 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5501 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5502 esac
5503 fi
5504 ;;
5505 sco3.2v5*)
5506 lt_cv_sys_max_cmd_len=102400
5507 ;;
5508 sysv5* | sco5v6* | sysv4.2uw2*)
5509 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5510 if test -n "$kargmax"; then
5511 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5512 else
5513 lt_cv_sys_max_cmd_len=32768
5514 fi
5515 ;;
5516 *)
718a6fd8
SE
5517 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5518 if test -n "$lt_cv_sys_max_cmd_len"; then
5ba684e2
NC
5519 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5520 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5521 else
5522 # Make teststring a little bigger before we do anything with it.
5523 # a 1K string should be a reasonable start.
5524 for i in 1 2 3 4 5 6 7 8 ; do
5525 teststring=$teststring$teststring
5526 done
5527 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5528 # If test is not a shell built-in, we'll probably end up computing a
5529 # maximum length that is only half of the actual maximum length, but
5530 # we can't tell.
3725885a
RW
5531 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5532 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5ba684e2
NC
5533 test $i != 17 # 1/2 MB should be enough
5534 do
5535 i=`expr $i + 1`
5536 teststring=$teststring$teststring
5537 done
5538 # Only check the string length outside the loop.
5539 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5540 teststring=
5541 # Add a significant safety factor because C++ compilers can tack on
5542 # massive amounts of additional arguments before passing them to the
5543 # linker. It appears as though 1/2 is a usable value.
5544 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5545 fi
d7040cdb 5546 ;;
d45dc31f 5547 esac
42ecbf5e 5548
42ecbf5e
DJ
5549fi
5550
d7040cdb 5551if test -n $lt_cv_sys_max_cmd_len ; then
81ecdfbb
RW
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5553$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
252b5132 5554else
81ecdfbb
RW
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5556$as_echo "none" >&6; }
252b5132 5557fi
d7040cdb 5558max_cmd_len=$lt_cv_sys_max_cmd_len
e5a52504 5559
d45dc31f 5560
42ecbf5e 5561
d45dc31f 5562
d45dc31f 5563
d7040cdb 5564
d7040cdb
SE
5565: ${CP="cp -f"}
5566: ${MV="mv -f"}
5567: ${RM="rm -f"}
5568
81ecdfbb
RW
5569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5570$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
d7040cdb
SE
5571# Try some XSI features
5572xsi_shell=no
5573( _lt_dummy="a/b/c"
f2c621e4
AS
5574 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5575 = c,a/b,, \
718a6fd8
SE
5576 && eval 'test $(( 1 + 1 )) -eq 2 \
5577 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
d7040cdb 5578 && xsi_shell=yes
81ecdfbb
RW
5579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5580$as_echo "$xsi_shell" >&6; }
d7040cdb
SE
5581
5582
81ecdfbb
RW
5583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5584$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
d7040cdb
SE
5585lt_shell_append=no
5586( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5587 >/dev/null 2>&1 \
5588 && lt_shell_append=yes
81ecdfbb
RW
5589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5590$as_echo "$lt_shell_append" >&6; }
d7040cdb
SE
5591
5592
5593if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5594 lt_unset=unset
252b5132 5595else
d7040cdb 5596 lt_unset=false
252b5132
RH
5597fi
5598
d7040cdb
SE
5599
5600
5601
5602
5603# test EBCDIC or ASCII
5604case `echo X|tr X '\101'` in
5605 A) # ASCII based system
5606 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5607 lt_SP2NL='tr \040 \012'
5608 lt_NL2SP='tr \015\012 \040\040'
5609 ;;
5610 *) # EBCDIC based system
5611 lt_SP2NL='tr \100 \n'
5612 lt_NL2SP='tr \r\n \100\100'
5613 ;;
5614esac
5615
5616
5617
5618
5619
5620
5621
5622
5623
81ecdfbb
RW
5624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5625$as_echo_n "checking for $LD option to reload object files... " >&6; }
d0ac1c44 5626if ${lt_cv_ld_reload_flag+:} false; then :
81ecdfbb 5627 $as_echo_n "(cached) " >&6
252b5132 5628else
d7040cdb
SE
5629 lt_cv_ld_reload_flag='-r'
5630fi
81ecdfbb
RW
5631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5632$as_echo "$lt_cv_ld_reload_flag" >&6; }
d7040cdb
SE
5633reload_flag=$lt_cv_ld_reload_flag
5634case $reload_flag in
5635"" | " "*) ;;
5636*) reload_flag=" $reload_flag" ;;
5637esac
5638reload_cmds='$LD$reload_flag -o $output$reload_objs'
5639case $host_os in
5640 darwin*)
5641 if test "$GCC" = yes; then
5642 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5643 else
5644 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5645 fi
5646 ;;
5647esac
5648
5649
5650
5651
5652
5653
5654
5655
5656
718a6fd8
SE
5657if test -n "$ac_tool_prefix"; then
5658 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5659set dummy ${ac_tool_prefix}objdump; ac_word=$2
81ecdfbb
RW
5660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5661$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5662if ${ac_cv_prog_OBJDUMP+:} false; then :
81ecdfbb 5663 $as_echo_n "(cached) " >&6
718a6fd8
SE
5664else
5665 if test -n "$OBJDUMP"; then
5666 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5667else
5668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5669for as_dir in $PATH
5670do
5671 IFS=$as_save_IFS
5672 test -z "$as_dir" && as_dir=.
81ecdfbb 5673 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5674 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
718a6fd8 5675 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
81ecdfbb 5676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
5677 break 2
5678 fi
5679done
81ecdfbb
RW
5680 done
5681IFS=$as_save_IFS
718a6fd8
SE
5682
5683fi
5684fi
5685OBJDUMP=$ac_cv_prog_OBJDUMP
5686if test -n "$OBJDUMP"; then
81ecdfbb
RW
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5688$as_echo "$OBJDUMP" >&6; }
718a6fd8 5689else
81ecdfbb
RW
5690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5691$as_echo "no" >&6; }
718a6fd8
SE
5692fi
5693
81ecdfbb 5694
718a6fd8
SE
5695fi
5696if test -z "$ac_cv_prog_OBJDUMP"; then
5697 ac_ct_OBJDUMP=$OBJDUMP
5698 # Extract the first word of "objdump", so it can be a program name with args.
5699set dummy objdump; ac_word=$2
81ecdfbb
RW
5700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5701$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5702if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
81ecdfbb 5703 $as_echo_n "(cached) " >&6
718a6fd8
SE
5704else
5705 if test -n "$ac_ct_OBJDUMP"; then
5706 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5707else
5708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5709for as_dir in $PATH
5710do
5711 IFS=$as_save_IFS
5712 test -z "$as_dir" && as_dir=.
81ecdfbb 5713 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5714 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
718a6fd8 5715 ac_cv_prog_ac_ct_OBJDUMP="objdump"
81ecdfbb 5716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
5717 break 2
5718 fi
5719done
81ecdfbb
RW
5720 done
5721IFS=$as_save_IFS
718a6fd8 5722
718a6fd8
SE
5723fi
5724fi
5725ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5726if test -n "$ac_ct_OBJDUMP"; then
81ecdfbb
RW
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5728$as_echo "$ac_ct_OBJDUMP" >&6; }
718a6fd8 5729else
81ecdfbb
RW
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5731$as_echo "no" >&6; }
718a6fd8
SE
5732fi
5733
81ecdfbb
RW
5734 if test "x$ac_ct_OBJDUMP" = x; then
5735 OBJDUMP="false"
5736 else
5737 case $cross_compiling:$ac_tool_warned in
5738yes:)
5739{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5740$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5741ac_tool_warned=yes ;;
5742esac
5743 OBJDUMP=$ac_ct_OBJDUMP
5744 fi
718a6fd8
SE
5745else
5746 OBJDUMP="$ac_cv_prog_OBJDUMP"
5747fi
5748
5749test -z "$OBJDUMP" && OBJDUMP=objdump
5750
5751
5752
5753
5754
5755
5756
5757
d7040cdb 5758
81ecdfbb
RW
5759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5760$as_echo_n "checking how to recognize dependent libraries... " >&6; }
d0ac1c44 5761if ${lt_cv_deplibs_check_method+:} false; then :
81ecdfbb 5762 $as_echo_n "(cached) " >&6
d7040cdb
SE
5763else
5764 lt_cv_file_magic_cmd='$MAGIC_CMD'
5765lt_cv_file_magic_test_file=
5766lt_cv_deplibs_check_method='unknown'
5767# Need to set the preceding variable on all platforms that support
5768# interlibrary dependencies.
5769# 'none' -- dependencies not supported.
5770# `unknown' -- same as none, but documents that we really don't know.
5771# 'pass_all' -- all dependencies passed with no checks.
5772# 'test_compile' -- check by making test program.
5773# 'file_magic [[regex]]' -- check by looking for files in library path
5774# which responds to the $file_magic_cmd with a given extended regex.
5775# If you have `file' or equivalent on your system and you're not sure
5776# whether `pass_all' will *always* work, you probably want this one.
5777
5778case $host_os in
50e7d84b 5779aix[4-9]*)
d7040cdb
SE
5780 lt_cv_deplibs_check_method=pass_all
5781 ;;
5782
5783beos*)
5784 lt_cv_deplibs_check_method=pass_all
5785 ;;
5786
5787bsdi[45]*)
5788 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5789 lt_cv_file_magic_cmd='/usr/bin/file -L'
5790 lt_cv_file_magic_test_file=/shlib/libc.so
5791 ;;
5792
5793cygwin*)
5794 # func_win32_libid is a shell function defined in ltmain.sh
5795 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5796 lt_cv_file_magic_cmd='func_win32_libid'
5797 ;;
5798
5799mingw* | pw32*)
5800 # Base MSYS/MinGW do not provide the 'file' command needed by
5801 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5802 # unless we find 'file', for example because we are cross-compiling.
3725885a
RW
5803 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5804 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
d7040cdb
SE
5805 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5806 lt_cv_file_magic_cmd='func_win32_libid'
5807 else
f2c621e4 5808 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
d7040cdb
SE
5809 lt_cv_file_magic_cmd='$OBJDUMP -f'
5810 fi
5811 ;;
5812
3725885a 5813cegcc*)
718a6fd8
SE
5814 # use the weaker test based on 'objdump'. See mingw*.
5815 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5816 lt_cv_file_magic_cmd='$OBJDUMP -f'
5817 ;;
5818
d7040cdb
SE
5819darwin* | rhapsody*)
5820 lt_cv_deplibs_check_method=pass_all
d45dc31f 5821 ;;
d7040cdb
SE
5822
5823freebsd* | dragonfly*)
5824 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5825 case $host_cpu in
5826 i*86 )
5827 # Not sure whether the presence of OpenBSD here was a mistake.
5828 # Let's accept both of them until this is cleared up.
5829 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5830 lt_cv_file_magic_cmd=/usr/bin/file
5831 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5832 ;;
5833 esac
5834 else
5835 lt_cv_deplibs_check_method=pass_all
5836 fi
5837 ;;
5838
5839gnu*)
5840 lt_cv_deplibs_check_method=pass_all
d45dc31f 5841 ;;
d7040cdb 5842
3725885a
RW
5843haiku*)
5844 lt_cv_deplibs_check_method=pass_all
5845 ;;
5846
d7040cdb
SE
5847hpux10.20* | hpux11*)
5848 lt_cv_file_magic_cmd=/usr/bin/file
5849 case $host_cpu in
5850 ia64*)
5851 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5852 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5853 ;;
5854 hppa*64*)
3725885a 5855 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
5856 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5857 ;;
d45dc31f 5858 *)
3725885a 5859 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
d7040cdb
SE
5860 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5861 ;;
5862 esac
5863 ;;
42ecbf5e 5864
d7040cdb
SE
5865interix[3-9]*)
5866 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5867 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5868 ;;
42ecbf5e 5869
d7040cdb
SE
5870irix5* | irix6* | nonstopux*)
5871 case $LD in
5872 *-32|*"-32 ") libmagic=32-bit;;
5873 *-n32|*"-n32 ") libmagic=N32;;
5874 *-64|*"-64 ") libmagic=64-bit;;
5875 *) libmagic=never-match;;
5876 esac
5877 lt_cv_deplibs_check_method=pass_all
d45dc31f 5878 ;;
42ecbf5e 5879
d7040cdb 5880# This must be Linux ELF.
58e24671 5881linux* | k*bsd*-gnu | kopensolaris*-gnu)
d7040cdb
SE
5882 lt_cv_deplibs_check_method=pass_all
5883 ;;
252b5132 5884
d7040cdb
SE
5885netbsd*)
5886 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5887 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
d45dc31f 5888 else
d7040cdb 5889 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
d45dc31f 5890 fi
d7040cdb
SE
5891 ;;
5892
5893newos6*)
5894 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5895 lt_cv_file_magic_cmd=/usr/bin/file
5896 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5897 ;;
5898
5899*nto* | *qnx*)
5900 lt_cv_deplibs_check_method=pass_all
5901 ;;
42ecbf5e 5902
d7040cdb
SE
5903openbsd*)
5904 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5905 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5906 else
5907 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
d45dc31f
SE
5908 fi
5909 ;;
d7040cdb
SE
5910
5911osf3* | osf4* | osf5*)
5912 lt_cv_deplibs_check_method=pass_all
5913 ;;
5914
5915rdos*)
5916 lt_cv_deplibs_check_method=pass_all
5917 ;;
5918
5919solaris*)
5920 lt_cv_deplibs_check_method=pass_all
5921 ;;
5922
5923sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5924 lt_cv_deplibs_check_method=pass_all
5925 ;;
5926
5927sysv4 | sysv4.3*)
5928 case $host_vendor in
5929 motorola)
5930 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]'
5931 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5932 ;;
5933 ncr)
5934 lt_cv_deplibs_check_method=pass_all
5935 ;;
5936 sequent)
5937 lt_cv_file_magic_cmd='/bin/file'
5938 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5939 ;;
5940 sni)
5941 lt_cv_file_magic_cmd='/bin/file'
5942 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5943 lt_cv_file_magic_test_file=/lib/libc.so
5944 ;;
5945 siemens)
5946 lt_cv_deplibs_check_method=pass_all
5947 ;;
5948 pc)
5949 lt_cv_deplibs_check_method=pass_all
5950 ;;
5951 esac
5952 ;;
5953
5954tpf*)
5955 lt_cv_deplibs_check_method=pass_all
5956 ;;
d45dc31f 5957esac
42ecbf5e 5958
d7040cdb 5959fi
81ecdfbb
RW
5960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5961$as_echo "$lt_cv_deplibs_check_method" >&6; }
d7040cdb
SE
5962file_magic_cmd=$lt_cv_file_magic_cmd
5963deplibs_check_method=$lt_cv_deplibs_check_method
5964test -z "$deplibs_check_method" && deplibs_check_method=unknown
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
a4966cd9
L
5977plugin_option=
5978plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
5979for plugin in $plugin_names; do
5980 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
5981 if test x$plugin_so = x$plugin; then
5982 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
5983 fi
5984 if test x$plugin_so != x$plugin; then
5985 plugin_option="--plugin $plugin_so"
5986 break
5987 fi
5988done
5989
d45dc31f 5990if test -n "$ac_tool_prefix"; then
f2c621e4
AS
5991 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5992set dummy ${ac_tool_prefix}ar; ac_word=$2
81ecdfbb
RW
5993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5994$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5995if ${ac_cv_prog_AR+:} false; then :
81ecdfbb 5996 $as_echo_n "(cached) " >&6
42ecbf5e 5997else
d7040cdb
SE
5998 if test -n "$AR"; then
5999 ac_cv_prog_AR="$AR" # Let the user override the test.
d45dc31f
SE
6000else
6001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6002for as_dir in $PATH
6003do
6004 IFS=$as_save_IFS
6005 test -z "$as_dir" && as_dir=.
81ecdfbb 6006 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6007 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
f2c621e4 6008 ac_cv_prog_AR="${ac_tool_prefix}ar"
81ecdfbb 6009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d45dc31f
SE
6010 break 2
6011 fi
6012done
81ecdfbb
RW
6013 done
6014IFS=$as_save_IFS
42ecbf5e 6015
42ecbf5e 6016fi
d45dc31f 6017fi
d7040cdb
SE
6018AR=$ac_cv_prog_AR
6019if test -n "$AR"; then
81ecdfbb
RW
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6021$as_echo "$AR" >&6; }
d45dc31f 6022else
81ecdfbb
RW
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6024$as_echo "no" >&6; }
d45dc31f 6025fi
42ecbf5e 6026
81ecdfbb 6027
42ecbf5e 6028fi
f2c621e4 6029if test -z "$ac_cv_prog_AR"; then
d7040cdb 6030 ac_ct_AR=$AR
f2c621e4
AS
6031 # Extract the first word of "ar", so it can be a program name with args.
6032set dummy ar; ac_word=$2
81ecdfbb
RW
6033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6034$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6035if ${ac_cv_prog_ac_ct_AR+:} false; then :
81ecdfbb 6036 $as_echo_n "(cached) " >&6
42ecbf5e 6037else
d7040cdb
SE
6038 if test -n "$ac_ct_AR"; then
6039 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
42ecbf5e 6040else
d45dc31f
SE
6041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6042for as_dir in $PATH
6043do
6044 IFS=$as_save_IFS
6045 test -z "$as_dir" && as_dir=.
81ecdfbb 6046 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6047 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
f2c621e4 6048 ac_cv_prog_ac_ct_AR="ar"
81ecdfbb 6049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d45dc31f
SE
6050 break 2
6051 fi
6052done
81ecdfbb
RW
6053 done
6054IFS=$as_save_IFS
42ecbf5e 6055
42ecbf5e 6056fi
42ecbf5e 6057fi
d7040cdb
SE
6058ac_ct_AR=$ac_cv_prog_ac_ct_AR
6059if test -n "$ac_ct_AR"; then
81ecdfbb
RW
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6061$as_echo "$ac_ct_AR" >&6; }
252b5132 6062else
81ecdfbb
RW
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6064$as_echo "no" >&6; }
252b5132 6065fi
252b5132 6066
81ecdfbb
RW
6067 if test "x$ac_ct_AR" = x; then
6068 AR="false"
6069 else
6070 case $cross_compiling:$ac_tool_warned in
6071yes:)
6072{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6073$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6074ac_tool_warned=yes ;;
6075esac
6076 AR=$ac_ct_AR
6077 fi
df7b86aa 6078else
f2c621e4
AS
6079 AR="$ac_cv_prog_AR"
6080fi
df7b86aa 6081
f2c621e4 6082test -z "$AR" && AR=ar
a4966cd9
L
6083if test -n "$plugin_option"; then
6084 if $AR --help 2>&1 | grep -q "\--plugin"; then
83b33c6c
L
6085 touch conftest.c
6086 $AR $plugin_option rc conftest.a conftest.c
6087 if test "$?" != 0; then
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
6089$as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
6090 else
6091 AR="$AR $plugin_option"
6092 fi
6093 rm -f conftest.*
a4966cd9
L
6094 fi
6095fi
f2c621e4 6096test -z "$AR_FLAGS" && AR_FLAGS=cru
df7b86aa 6097
df7b86aa 6098
df7b86aa 6099
df7b86aa 6100
df7b86aa 6101
d7040cdb
SE
6102
6103
6104
6105
6106
6107
d45dc31f
SE
6108if test -n "$ac_tool_prefix"; then
6109 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6110set dummy ${ac_tool_prefix}strip; ac_word=$2
81ecdfbb
RW
6111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6112$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6113if ${ac_cv_prog_STRIP+:} false; then :
81ecdfbb 6114 $as_echo_n "(cached) " >&6
d45dc31f
SE
6115else
6116 if test -n "$STRIP"; then
6117 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6118else
6119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6120for as_dir in $PATH
42ecbf5e 6121do
d45dc31f
SE
6122 IFS=$as_save_IFS
6123 test -z "$as_dir" && as_dir=.
81ecdfbb 6124 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d45dc31f 6126 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
81ecdfbb 6127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d45dc31f
SE
6128 break 2
6129 fi
6130done
81ecdfbb
RW
6131 done
6132IFS=$as_save_IFS
d45dc31f
SE
6133
6134fi
6135fi
6136STRIP=$ac_cv_prog_STRIP
6137if test -n "$STRIP"; then
81ecdfbb
RW
6138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6139$as_echo "$STRIP" >&6; }
252b5132 6140else
81ecdfbb
RW
6141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6142$as_echo "no" >&6; }
d45dc31f 6143fi
42ecbf5e 6144
81ecdfbb 6145
252b5132 6146fi
d45dc31f
SE
6147if test -z "$ac_cv_prog_STRIP"; then
6148 ac_ct_STRIP=$STRIP
6149 # Extract the first word of "strip", so it can be a program name with args.
6150set dummy strip; ac_word=$2
81ecdfbb
RW
6151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6152$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6153if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
81ecdfbb 6154 $as_echo_n "(cached) " >&6
d45dc31f
SE
6155else
6156 if test -n "$ac_ct_STRIP"; then
6157 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6158else
6159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6160for as_dir in $PATH
6161do
6162 IFS=$as_save_IFS
6163 test -z "$as_dir" && as_dir=.
81ecdfbb 6164 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6165 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d45dc31f 6166 ac_cv_prog_ac_ct_STRIP="strip"
81ecdfbb 6167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d45dc31f
SE
6168 break 2
6169 fi
6170done
81ecdfbb
RW
6171 done
6172IFS=$as_save_IFS
42ecbf5e 6173
d45dc31f
SE
6174fi
6175fi
6176ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6177if test -n "$ac_ct_STRIP"; then
81ecdfbb
RW
6178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6179$as_echo "$ac_ct_STRIP" >&6; }
d45dc31f 6180else
81ecdfbb
RW
6181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6182$as_echo "no" >&6; }
252b5132 6183fi
e5a52504 6184
81ecdfbb
RW
6185 if test "x$ac_ct_STRIP" = x; then
6186 STRIP=":"
6187 else
6188 case $cross_compiling:$ac_tool_warned in
6189yes:)
6190{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6191$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6192ac_tool_warned=yes ;;
6193esac
6194 STRIP=$ac_ct_STRIP
6195 fi
d45dc31f
SE
6196else
6197 STRIP="$ac_cv_prog_STRIP"
6198fi
e5a52504 6199
d7040cdb 6200test -z "$STRIP" && STRIP=:
d45dc31f 6201
d45dc31f
SE
6202
6203
d45dc31f 6204
d45dc31f
SE
6205
6206
d7040cdb
SE
6207if test -n "$ac_tool_prefix"; then
6208 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6209set dummy ${ac_tool_prefix}ranlib; ac_word=$2
81ecdfbb
RW
6210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6211$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6212if ${ac_cv_prog_RANLIB+:} false; then :
81ecdfbb 6213 $as_echo_n "(cached) " >&6
d45dc31f 6214else
d7040cdb
SE
6215 if test -n "$RANLIB"; then
6216 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6217else
6218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6219for as_dir in $PATH
6220do
6221 IFS=$as_save_IFS
6222 test -z "$as_dir" && as_dir=.
81ecdfbb 6223 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6224 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7040cdb 6225 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
81ecdfbb 6226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb 6227 break 2
d45dc31f 6228 fi
d7040cdb 6229done
81ecdfbb
RW
6230 done
6231IFS=$as_save_IFS
d45dc31f 6232
d7040cdb
SE
6233fi
6234fi
6235RANLIB=$ac_cv_prog_RANLIB
6236if test -n "$RANLIB"; then
81ecdfbb
RW
6237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6238$as_echo "$RANLIB" >&6; }
d7040cdb 6239else
81ecdfbb
RW
6240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6241$as_echo "no" >&6; }
d7040cdb 6242fi
d45dc31f 6243
81ecdfbb 6244
d7040cdb
SE
6245fi
6246if test -z "$ac_cv_prog_RANLIB"; then
6247 ac_ct_RANLIB=$RANLIB
6248 # Extract the first word of "ranlib", so it can be a program name with args.
6249set dummy ranlib; ac_word=$2
81ecdfbb
RW
6250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6251$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6252if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
81ecdfbb 6253 $as_echo_n "(cached) " >&6
d7040cdb
SE
6254else
6255 if test -n "$ac_ct_RANLIB"; then
6256 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6257else
6258as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6259for as_dir in $PATH
6260do
6261 IFS=$as_save_IFS
6262 test -z "$as_dir" && as_dir=.
81ecdfbb 6263 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6264 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7040cdb 6265 ac_cv_prog_ac_ct_RANLIB="ranlib"
81ecdfbb 6266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb 6267 break 2
d45dc31f 6268 fi
d7040cdb 6269done
81ecdfbb
RW
6270 done
6271IFS=$as_save_IFS
d45dc31f 6272
d7040cdb
SE
6273fi
6274fi
6275ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6276if test -n "$ac_ct_RANLIB"; then
81ecdfbb
RW
6277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6278$as_echo "$ac_ct_RANLIB" >&6; }
d15b04bd 6279else
81ecdfbb
RW
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6281$as_echo "no" >&6; }
d7040cdb 6282fi
252b5132 6283
81ecdfbb
RW
6284 if test "x$ac_ct_RANLIB" = x; then
6285 RANLIB=":"
6286 else
6287 case $cross_compiling:$ac_tool_warned in
6288yes:)
6289{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6290$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6291ac_tool_warned=yes ;;
6292esac
6293 RANLIB=$ac_ct_RANLIB
6294 fi
d7040cdb
SE
6295else
6296 RANLIB="$ac_cv_prog_RANLIB"
6297fi
d45dc31f 6298
d7040cdb 6299test -z "$RANLIB" && RANLIB=:
a4966cd9
L
6300if test -n "$plugin_option" && test "$RANLIB" != ":"; then
6301 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
6302 RANLIB="$RANLIB $plugin_option"
6303 fi
6304fi
d45dc31f 6305
d45dc31f 6306
d45dc31f 6307
42ecbf5e 6308
e5a52504 6309
d7040cdb
SE
6310
6311# Determine commands to create old-style static archives.
718a6fd8 6312old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
d7040cdb
SE
6313old_postinstall_cmds='chmod 644 $oldlib'
6314old_postuninstall_cmds=
6315
6316if test -n "$RANLIB"; then
6317 case $host_os in
6318 openbsd*)
6319 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6320 ;;
6321 *)
6322 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6323 ;;
6324 esac
6325 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
d45dc31f 6326fi
d45dc31f 6327
3725885a
RW
6328case $host_os in
6329 darwin*)
6330 lock_old_archive_extraction=yes ;;
6331 *)
6332 lock_old_archive_extraction=no ;;
6333esac
6334
6335
6336
6337
6338
6339
d45dc31f 6340
d45dc31f
SE
6341
6342
d15b04bd 6343
3e321448 6344
d45dc31f 6345
d45dc31f 6346
d45dc31f
SE
6347
6348
d45dc31f 6349
d45dc31f 6350
d45dc31f
SE
6351
6352
6353
6354
6355
6356
6357
d45dc31f 6358
d45dc31f 6359
d45dc31f 6360
d45dc31f 6361
d45dc31f 6362
d45dc31f 6363
d45dc31f 6364
d45dc31f 6365
3e321448
L
6366
6367
d45dc31f
SE
6368
6369
d45dc31f
SE
6370
6371
d45dc31f 6372
d7040cdb
SE
6373# If no C compiler was specified, use CC.
6374LTCC=${LTCC-"$CC"}
42ecbf5e 6375
d7040cdb
SE
6376# If no C compiler flags were specified, use CFLAGS.
6377LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
e5a52504 6378
d7040cdb
SE
6379# Allow CC to be a program name with arguments.
6380compiler=$CC
d15b04bd 6381
d7040cdb
SE
6382
6383# Check for command to grab the raw symbol name followed by C symbol from nm.
81ecdfbb
RW
6384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6385$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
d0ac1c44 6386if ${lt_cv_sys_global_symbol_pipe+:} false; then :
81ecdfbb 6387 $as_echo_n "(cached) " >&6
d15b04bd 6388else
d7040cdb
SE
6389
6390# These are sane defaults that work on at least a few old systems.
6391# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6392
6393# Character class describing NM global symbol codes.
6394symcode='[BCDEGRST]'
6395
6396# Regexp to match symbols that can be accessed directly from C.
6397sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6398
6399# Define system-specific variables.
6400case $host_os in
6401aix*)
6402 symcode='[BCDT]'
6403 ;;
718a6fd8 6404cygwin* | mingw* | pw32* | cegcc*)
d7040cdb
SE
6405 symcode='[ABCDGISTW]'
6406 ;;
6407hpux*)
6408 if test "$host_cpu" = ia64; then
6409 symcode='[ABCDEGRST]'
42ecbf5e 6410 fi
d7040cdb
SE
6411 ;;
6412irix* | nonstopux*)
6413 symcode='[BCDEGRST]'
6414 ;;
6415osf*)
6416 symcode='[BCDEGQRST]'
6417 ;;
6418solaris*)
6419 symcode='[BDRT]'
6420 ;;
6421sco3.2v5*)
6422 symcode='[DT]'
6423 ;;
6424sysv4.2uw2*)
6425 symcode='[DT]'
6426 ;;
6427sysv5* | sco5v6* | unixware* | OpenUNIX*)
6428 symcode='[ABDT]'
6429 ;;
6430sysv4)
6431 symcode='[DFNSTU]'
6432 ;;
6433esac
d15b04bd 6434
d7040cdb
SE
6435# If we're using GNU nm, then use its standard symbol codes.
6436case `$NM -V 2>&1` in
6437*GNU* | *'with BFD'*)
6438 symcode='[ABCDGIRSTW]' ;;
6439esac
e5a52504 6440
d7040cdb
SE
6441# Transform an extracted symbol line into a proper C declaration.
6442# Some systems (esp. on ia64) link data and code symbols differently,
7357c5b6
AM
6443# so use this general approach.
6444lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
d7040cdb 6445
7357c5b6 6446# Transform an extracted symbol line into symbol name and symbol address
f2c621e4
AS
6447lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6448lt_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 6449
7357c5b6
AM
6450# Handle CRLF in mingw tool chain
6451opt_cr=
6452case $build_os in
6453mingw*)
6454 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6455 ;;
6456esac
d7040cdb 6457
7357c5b6
AM
6458# Try without a prefix underscore, then with it.
6459for ac_symprfx in "" "_"; do
d7040cdb 6460
7357c5b6
AM
6461 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6462 symxfrm="\\1 $ac_symprfx\\2 \\2"
d7040cdb 6463
7357c5b6
AM
6464 # Write the raw and C identifiers.
6465 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6466 # Fake it for dumpbin and say T for any non-static function
6467 # and D for any global variable.
6468 # Also find C++ and __fastcall symbols from MSVC++,
6469 # which start with @ or ?.
6470 lt_cv_sys_global_symbol_pipe="$AWK '"\
6471" {last_section=section; section=\$ 3};"\
6472" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6473" \$ 0!~/External *\|/{next};"\
6474" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6475" {if(hide[section]) next};"\
6476" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6477" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6478" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6479" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6480" ' prfx=^$ac_symprfx"
6481 else
6482 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6483 fi
6484
6485 # Check to see that the pipe works correctly.
6486 pipe_works=no
6487
6488 rm -f conftest*
6489 cat > conftest.$ac_ext <<_LT_EOF
6490#ifdef __cplusplus
6491extern "C" {
6492#endif
6493char nm_test_var;
6494void nm_test_func(void);
6495void nm_test_func(void){}
6496#ifdef __cplusplus
d7040cdb 6497}
7357c5b6
AM
6498#endif
6499int main(){nm_test_var='a';nm_test_func();return(0);}
6500_LT_EOF
6501
81ecdfbb 6502 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6 6503 (eval $ac_compile) 2>&5
42ecbf5e 6504 ac_status=$?
81ecdfbb
RW
6505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6506 test $ac_status = 0; }; then
7357c5b6
AM
6507 # Now try to grab the symbols.
6508 nlist=conftest.nm
3725885a
RW
6509 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6510 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
42ecbf5e 6511 ac_status=$?
81ecdfbb
RW
6512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6513 test $ac_status = 0; } && test -s "$nlist"; then
7357c5b6
AM
6514 # Try sorting and uniquifying the output.
6515 if sort "$nlist" | uniq > "$nlist"T; then
6516 mv -f "$nlist"T "$nlist"
6517 else
6518 rm -f "$nlist"T
6519 fi
d7040cdb 6520
7357c5b6
AM
6521 # Make sure that we snagged all the symbols we need.
6522 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6523 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6524 cat <<_LT_EOF > conftest.$ac_ext
6525#ifdef __cplusplus
6526extern "C" {
6527#endif
e5a52504 6528
7357c5b6
AM
6529_LT_EOF
6530 # Now generate the symbol file.
6531 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7148cc28 6532
7357c5b6 6533 cat <<_LT_EOF >> conftest.$ac_ext
d7040cdb 6534
7357c5b6 6535/* The mapping between symbol names and symbols. */
f2c621e4 6536const struct {
7357c5b6
AM
6537 const char *name;
6538 void *address;
6539}
6540lt__PROGRAM__LTX_preloaded_symbols[] =
6541{
6542 { "@PROGRAM@", (void *) 0 },
6543_LT_EOF
6544 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6545 cat <<\_LT_EOF >> conftest.$ac_ext
6546 {0, (void *) 0}
6547};
d7040cdb 6548
7357c5b6
AM
6549/* This works around a problem in FreeBSD linker */
6550#ifdef FREEBSD_WORKAROUND
6551static const void *lt_preloaded_setup() {
6552 return lt__PROGRAM__LTX_preloaded_symbols;
6553}
d7040cdb
SE
6554#endif
6555
7357c5b6 6556#ifdef __cplusplus
d7040cdb 6557}
7357c5b6
AM
6558#endif
6559_LT_EOF
6560 # Now try linking the two files.
6561 mv conftest.$ac_objext conftstm.$ac_objext
f2c621e4
AS
6562 lt_save_LIBS="$LIBS"
6563 lt_save_CFLAGS="$CFLAGS"
7357c5b6
AM
6564 LIBS="conftstm.$ac_objext"
6565 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
81ecdfbb 6566 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
d7040cdb
SE
6567 (eval $ac_link) 2>&5
6568 ac_status=$?
81ecdfbb
RW
6569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6570 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7357c5b6
AM
6571 pipe_works=yes
6572 fi
f2c621e4
AS
6573 LIBS="$lt_save_LIBS"
6574 CFLAGS="$lt_save_CFLAGS"
7357c5b6
AM
6575 else
6576 echo "cannot find nm_test_func in $nlist" >&5
6577 fi
6578 else
6579 echo "cannot find nm_test_var in $nlist" >&5
6580 fi
6581 else
6582 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6583 fi
6584 else
6585 echo "$progname: failed program was:" >&5
6586 cat conftest.$ac_ext >&5
6587 fi
718a6fd8 6588 rm -rf conftest* conftst*
7357c5b6
AM
6589
6590 # Do not use the global_symbol_pipe unless it works.
6591 if test "$pipe_works" = yes; then
6592 break
6593 else
6594 lt_cv_sys_global_symbol_pipe=
6595 fi
6596done
d7040cdb 6597
d7040cdb 6598fi
7357c5b6
AM
6599
6600if test -z "$lt_cv_sys_global_symbol_pipe"; then
6601 lt_cv_sys_global_symbol_to_cdecl=
d7040cdb 6602fi
7357c5b6 6603if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
81ecdfbb
RW
6604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6605$as_echo "failed" >&6; }
7357c5b6 6606else
81ecdfbb
RW
6607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6608$as_echo "ok" >&6; }
d7040cdb 6609fi
20e95c23 6610
20e95c23 6611
20e95c23 6612
20e95c23 6613
20e95c23 6614
20e95c23 6615
20e95c23
DJ
6616
6617
7357c5b6
AM
6618
6619
6620
718a6fd8
SE
6621
6622
6623
6624
6625
7357c5b6 6626
df7b86aa
NC
6627
6628
6629
6630
7357c5b6 6631
81ecdfbb
RW
6632# Check whether --enable-libtool-lock was given.
6633if test "${enable_libtool_lock+set}" = set; then :
6634 enableval=$enable_libtool_lock;
6635fi
7357c5b6 6636
7357c5b6
AM
6637test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6638
6639# Some flags need to be propagated to the compiler or linker for good
6640# libtool support.
6641case $host in
6642ia64-*-hpux*)
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.$ac_objext` in
6651 *ELF-32*)
6652 HPUX_IA64_MODE="32"
6653 ;;
6654 *ELF-64*)
6655 HPUX_IA64_MODE="64"
6656 ;;
6657 esac
6658 fi
6659 rm -rf conftest*
6660 ;;
6661*-*-irix6*)
6662 # Find out which ABI we are using.
3725885a 6663 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
81ecdfbb 6664 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
6665 (eval $ac_compile) 2>&5
6666 ac_status=$?
81ecdfbb
RW
6667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6668 test $ac_status = 0; }; then
7357c5b6
AM
6669 if test "$lt_cv_prog_gnu_ld" = yes; then
6670 case `/usr/bin/file conftest.$ac_objext` in
6671 *32-bit*)
6672 LD="${LD-ld} -melf32bsmip"
6673 ;;
6674 *N32*)
6675 LD="${LD-ld} -melf32bmipn32"
6676 ;;
6677 *64-bit*)
6678 LD="${LD-ld} -melf64bmip"
6679 ;;
6680 esac
6681 else
6682 case `/usr/bin/file conftest.$ac_objext` in
6683 *32-bit*)
6684 LD="${LD-ld} -32"
6685 ;;
6686 *N32*)
6687 LD="${LD-ld} -n32"
6688 ;;
6689 *64-bit*)
6690 LD="${LD-ld} -64"
6691 ;;
6692 esac
6693 fi
6694 fi
6695 rm -rf conftest*
6696 ;;
6697
cc9afea3 6698x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7357c5b6
AM
6699s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6700 # Find out which ABI we are using.
6701 echo 'int i;' > conftest.$ac_ext
81ecdfbb 6702 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
6703 (eval $ac_compile) 2>&5
6704 ac_status=$?
81ecdfbb
RW
6705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6706 test $ac_status = 0; }; then
7357c5b6
AM
6707 case `/usr/bin/file conftest.o` in
6708 *32-bit*)
6709 case $host in
6710 x86_64-*kfreebsd*-gnu)
6711 LD="${LD-ld} -m elf_i386_fbsd"
6712 ;;
6713 x86_64-*linux*)
6d2920c8
L
6714 case `/usr/bin/file conftest.o` in
6715 *x86-64*)
6716 LD="${LD-ld} -m elf32_x86_64"
6717 ;;
6718 *)
6719 LD="${LD-ld} -m elf_i386"
6720 ;;
6721 esac
7357c5b6 6722 ;;
cc9afea3
AM
6723 powerpc64le-*linux*)
6724 LD="${LD-ld} -m elf32lppclinux"
6725 ;;
6726 powerpc64-*linux*)
7357c5b6
AM
6727 LD="${LD-ld} -m elf32ppclinux"
6728 ;;
6729 s390x-*linux*)
6730 LD="${LD-ld} -m elf_s390"
6731 ;;
6732 sparc64-*linux*)
6733 LD="${LD-ld} -m elf32_sparc"
6734 ;;
6735 esac
6736 ;;
6737 *64-bit*)
6738 case $host in
6739 x86_64-*kfreebsd*-gnu)
6740 LD="${LD-ld} -m elf_x86_64_fbsd"
6741 ;;
6742 x86_64-*linux*)
6743 LD="${LD-ld} -m elf_x86_64"
6744 ;;
cc9afea3
AM
6745 powerpcle-*linux*)
6746 LD="${LD-ld} -m elf64lppc"
6747 ;;
6748 powerpc-*linux*)
7357c5b6
AM
6749 LD="${LD-ld} -m elf64ppc"
6750 ;;
6751 s390*-*linux*|s390*-*tpf*)
6752 LD="${LD-ld} -m elf64_s390"
6753 ;;
6754 sparc*-*linux*)
6755 LD="${LD-ld} -m elf64_sparc"
6756 ;;
6757 esac
6758 ;;
6759 esac
6760 fi
6761 rm -rf conftest*
6762 ;;
6763
6764*-*-sco3.2v5*)
6765 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6766 SAVE_CFLAGS="$CFLAGS"
6767 CFLAGS="$CFLAGS -belf"
81ecdfbb
RW
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6769$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
d0ac1c44 6770if ${lt_cv_cc_needs_belf+:} false; then :
81ecdfbb 6771 $as_echo_n "(cached) " >&6
d7040cdb 6772else
7357c5b6
AM
6773 ac_ext=c
6774ac_cpp='$CPP $CPPFLAGS'
6775ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6776ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6777ac_compiler_gnu=$ac_cv_c_compiler_gnu
6778
81ecdfbb 6779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb 6780/* end confdefs.h. */
20e95c23 6781
7357c5b6
AM
6782int
6783main ()
6784{
6785
6786 ;
6787 return 0;
6788}
d7040cdb 6789_ACEOF
81ecdfbb 6790if ac_fn_c_try_link "$LINENO"; then :
7357c5b6 6791 lt_cv_cc_needs_belf=yes
d15b04bd 6792else
81ecdfbb 6793 lt_cv_cc_needs_belf=no
d7040cdb 6794fi
81ecdfbb
RW
6795rm -f core conftest.err conftest.$ac_objext \
6796 conftest$ac_exeext conftest.$ac_ext
7357c5b6
AM
6797 ac_ext=c
6798ac_cpp='$CPP $CPPFLAGS'
6799ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6800ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6801ac_compiler_gnu=$ac_cv_c_compiler_gnu
20e95c23 6802
718a6fd8 6803fi
81ecdfbb
RW
6804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6805$as_echo "$lt_cv_cc_needs_belf" >&6; }
718a6fd8
SE
6806 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6807 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6808 CFLAGS="$SAVE_CFLAGS"
6809 fi
6810 ;;
6811sparc*-*solaris*)
6812 # Find out which ABI we are using.
6813 echo 'int i;' > conftest.$ac_ext
81ecdfbb 6814 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
718a6fd8
SE
6815 (eval $ac_compile) 2>&5
6816 ac_status=$?
81ecdfbb
RW
6817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6818 test $ac_status = 0; }; then
718a6fd8
SE
6819 case `/usr/bin/file conftest.o` in
6820 *64-bit*)
6821 case $lt_cv_prog_gnu_ld in
6822 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6823 *)
6824 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6825 LD="${LD-ld} -64"
6826 fi
6827 ;;
6828 esac
6829 ;;
6830 esac
6831 fi
df7b86aa
NC
6832 rm -rf conftest*
6833 ;;
6834esac
6835
6836need_locks="$enable_libtool_lock"
6837
718a6fd8
SE
6838
6839 case $host_os in
6840 rhapsody* | darwin*)
6841 if test -n "$ac_tool_prefix"; then
6842 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6843set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
81ecdfbb
RW
6844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6845$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6846if ${ac_cv_prog_DSYMUTIL+:} false; then :
81ecdfbb 6847 $as_echo_n "(cached) " >&6
718a6fd8
SE
6848else
6849 if test -n "$DSYMUTIL"; then
6850 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6851else
6852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6853for as_dir in $PATH
6854do
6855 IFS=$as_save_IFS
6856 test -z "$as_dir" && as_dir=.
81ecdfbb 6857 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6858 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
718a6fd8 6859 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
81ecdfbb 6860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
6861 break 2
6862 fi
6863done
81ecdfbb
RW
6864 done
6865IFS=$as_save_IFS
718a6fd8
SE
6866
6867fi
6868fi
6869DSYMUTIL=$ac_cv_prog_DSYMUTIL
6870if test -n "$DSYMUTIL"; then
81ecdfbb
RW
6871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6872$as_echo "$DSYMUTIL" >&6; }
718a6fd8 6873else
81ecdfbb
RW
6874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6875$as_echo "no" >&6; }
718a6fd8
SE
6876fi
6877
81ecdfbb 6878
718a6fd8
SE
6879fi
6880if test -z "$ac_cv_prog_DSYMUTIL"; then
6881 ac_ct_DSYMUTIL=$DSYMUTIL
6882 # Extract the first word of "dsymutil", so it can be a program name with args.
6883set dummy dsymutil; ac_word=$2
81ecdfbb
RW
6884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6885$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6886if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
81ecdfbb 6887 $as_echo_n "(cached) " >&6
718a6fd8
SE
6888else
6889 if test -n "$ac_ct_DSYMUTIL"; then
6890 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6891else
6892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6893for as_dir in $PATH
6894do
6895 IFS=$as_save_IFS
6896 test -z "$as_dir" && as_dir=.
81ecdfbb 6897 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6898 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
718a6fd8 6899 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
81ecdfbb 6900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
6901 break 2
6902 fi
6903done
81ecdfbb
RW
6904 done
6905IFS=$as_save_IFS
718a6fd8 6906
718a6fd8
SE
6907fi
6908fi
6909ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6910if test -n "$ac_ct_DSYMUTIL"; then
81ecdfbb
RW
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6912$as_echo "$ac_ct_DSYMUTIL" >&6; }
718a6fd8 6913else
81ecdfbb
RW
6914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6915$as_echo "no" >&6; }
718a6fd8
SE
6916fi
6917
81ecdfbb
RW
6918 if test "x$ac_ct_DSYMUTIL" = x; then
6919 DSYMUTIL=":"
6920 else
6921 case $cross_compiling:$ac_tool_warned in
6922yes:)
6923{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6924$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6925ac_tool_warned=yes ;;
6926esac
6927 DSYMUTIL=$ac_ct_DSYMUTIL
6928 fi
718a6fd8
SE
6929else
6930 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6931fi
6932
6933 if test -n "$ac_tool_prefix"; then
6934 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6935set dummy ${ac_tool_prefix}nmedit; ac_word=$2
81ecdfbb
RW
6936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6937$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6938if ${ac_cv_prog_NMEDIT+:} false; then :
81ecdfbb 6939 $as_echo_n "(cached) " >&6
718a6fd8
SE
6940else
6941 if test -n "$NMEDIT"; then
6942 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6943else
6944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6945for as_dir in $PATH
6946do
6947 IFS=$as_save_IFS
6948 test -z "$as_dir" && as_dir=.
81ecdfbb 6949 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6950 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
718a6fd8 6951 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
81ecdfbb 6952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
6953 break 2
6954 fi
6955done
81ecdfbb
RW
6956 done
6957IFS=$as_save_IFS
718a6fd8
SE
6958
6959fi
6960fi
6961NMEDIT=$ac_cv_prog_NMEDIT
6962if test -n "$NMEDIT"; then
81ecdfbb
RW
6963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6964$as_echo "$NMEDIT" >&6; }
718a6fd8 6965else
81ecdfbb
RW
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6967$as_echo "no" >&6; }
718a6fd8
SE
6968fi
6969
81ecdfbb 6970
718a6fd8
SE
6971fi
6972if test -z "$ac_cv_prog_NMEDIT"; then
6973 ac_ct_NMEDIT=$NMEDIT
6974 # Extract the first word of "nmedit", so it can be a program name with args.
6975set dummy nmedit; ac_word=$2
81ecdfbb
RW
6976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6977$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6978if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
81ecdfbb 6979 $as_echo_n "(cached) " >&6
718a6fd8
SE
6980else
6981 if test -n "$ac_ct_NMEDIT"; then
6982 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6983else
6984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6985for as_dir in $PATH
6986do
6987 IFS=$as_save_IFS
6988 test -z "$as_dir" && as_dir=.
81ecdfbb 6989 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6990 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
718a6fd8 6991 ac_cv_prog_ac_ct_NMEDIT="nmedit"
81ecdfbb 6992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
6993 break 2
6994 fi
6995done
81ecdfbb
RW
6996 done
6997IFS=$as_save_IFS
718a6fd8 6998
718a6fd8
SE
6999fi
7000fi
7001ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7002if test -n "$ac_ct_NMEDIT"; then
81ecdfbb
RW
7003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7004$as_echo "$ac_ct_NMEDIT" >&6; }
718a6fd8 7005else
81ecdfbb
RW
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7007$as_echo "no" >&6; }
718a6fd8
SE
7008fi
7009
81ecdfbb
RW
7010 if test "x$ac_ct_NMEDIT" = x; then
7011 NMEDIT=":"
7012 else
7013 case $cross_compiling:$ac_tool_warned in
7014yes:)
7015{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7016$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7017ac_tool_warned=yes ;;
7018esac
7019 NMEDIT=$ac_ct_NMEDIT
7020 fi
718a6fd8
SE
7021else
7022 NMEDIT="$ac_cv_prog_NMEDIT"
7023fi
7024
7025 if test -n "$ac_tool_prefix"; then
7026 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7027set dummy ${ac_tool_prefix}lipo; ac_word=$2
81ecdfbb
RW
7028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7029$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7030if ${ac_cv_prog_LIPO+:} false; then :
81ecdfbb 7031 $as_echo_n "(cached) " >&6
718a6fd8
SE
7032else
7033 if test -n "$LIPO"; then
7034 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7035else
7036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7037for as_dir in $PATH
7038do
7039 IFS=$as_save_IFS
7040 test -z "$as_dir" && as_dir=.
81ecdfbb 7041 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7042 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
718a6fd8 7043 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
81ecdfbb 7044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7045 break 2
7046 fi
7047done
81ecdfbb
RW
7048 done
7049IFS=$as_save_IFS
718a6fd8
SE
7050
7051fi
7052fi
7053LIPO=$ac_cv_prog_LIPO
7054if test -n "$LIPO"; then
81ecdfbb
RW
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7056$as_echo "$LIPO" >&6; }
718a6fd8 7057else
81ecdfbb
RW
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7059$as_echo "no" >&6; }
718a6fd8
SE
7060fi
7061
81ecdfbb 7062
718a6fd8
SE
7063fi
7064if test -z "$ac_cv_prog_LIPO"; then
7065 ac_ct_LIPO=$LIPO
7066 # Extract the first word of "lipo", so it can be a program name with args.
7067set dummy lipo; ac_word=$2
81ecdfbb
RW
7068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7069$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7070if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
81ecdfbb 7071 $as_echo_n "(cached) " >&6
718a6fd8
SE
7072else
7073 if test -n "$ac_ct_LIPO"; then
7074 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7075else
7076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7077for as_dir in $PATH
7078do
7079 IFS=$as_save_IFS
7080 test -z "$as_dir" && as_dir=.
81ecdfbb 7081 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
718a6fd8 7083 ac_cv_prog_ac_ct_LIPO="lipo"
81ecdfbb 7084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7085 break 2
7086 fi
7087done
81ecdfbb
RW
7088 done
7089IFS=$as_save_IFS
718a6fd8 7090
718a6fd8
SE
7091fi
7092fi
7093ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7094if test -n "$ac_ct_LIPO"; then
81ecdfbb
RW
7095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7096$as_echo "$ac_ct_LIPO" >&6; }
718a6fd8 7097else
81ecdfbb
RW
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7099$as_echo "no" >&6; }
718a6fd8
SE
7100fi
7101
81ecdfbb
RW
7102 if test "x$ac_ct_LIPO" = x; then
7103 LIPO=":"
7104 else
7105 case $cross_compiling:$ac_tool_warned in
7106yes:)
7107{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7108$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7109ac_tool_warned=yes ;;
7110esac
7111 LIPO=$ac_ct_LIPO
7112 fi
718a6fd8
SE
7113else
7114 LIPO="$ac_cv_prog_LIPO"
7115fi
7116
7117 if test -n "$ac_tool_prefix"; then
7118 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7119set dummy ${ac_tool_prefix}otool; ac_word=$2
81ecdfbb
RW
7120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7121$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7122if ${ac_cv_prog_OTOOL+:} false; then :
81ecdfbb 7123 $as_echo_n "(cached) " >&6
718a6fd8
SE
7124else
7125 if test -n "$OTOOL"; then
7126 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7127else
7128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7129for as_dir in $PATH
7130do
7131 IFS=$as_save_IFS
7132 test -z "$as_dir" && as_dir=.
81ecdfbb 7133 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7134 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
718a6fd8 7135 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
81ecdfbb 7136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7137 break 2
7138 fi
7139done
81ecdfbb
RW
7140 done
7141IFS=$as_save_IFS
718a6fd8
SE
7142
7143fi
7144fi
7145OTOOL=$ac_cv_prog_OTOOL
7146if test -n "$OTOOL"; then
81ecdfbb
RW
7147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7148$as_echo "$OTOOL" >&6; }
718a6fd8 7149else
81ecdfbb
RW
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7151$as_echo "no" >&6; }
718a6fd8
SE
7152fi
7153
81ecdfbb 7154
718a6fd8
SE
7155fi
7156if test -z "$ac_cv_prog_OTOOL"; then
7157 ac_ct_OTOOL=$OTOOL
7158 # Extract the first word of "otool", so it can be a program name with args.
7159set dummy otool; ac_word=$2
81ecdfbb
RW
7160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7161$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7162if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
81ecdfbb 7163 $as_echo_n "(cached) " >&6
718a6fd8
SE
7164else
7165 if test -n "$ac_ct_OTOOL"; then
7166 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7167else
7168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7169for as_dir in $PATH
7170do
7171 IFS=$as_save_IFS
7172 test -z "$as_dir" && as_dir=.
81ecdfbb 7173 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7174 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
718a6fd8 7175 ac_cv_prog_ac_ct_OTOOL="otool"
81ecdfbb 7176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7177 break 2
7178 fi
7179done
81ecdfbb
RW
7180 done
7181IFS=$as_save_IFS
718a6fd8 7182
718a6fd8
SE
7183fi
7184fi
7185ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7186if test -n "$ac_ct_OTOOL"; then
81ecdfbb
RW
7187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7188$as_echo "$ac_ct_OTOOL" >&6; }
718a6fd8 7189else
81ecdfbb
RW
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7191$as_echo "no" >&6; }
718a6fd8
SE
7192fi
7193
81ecdfbb
RW
7194 if test "x$ac_ct_OTOOL" = x; then
7195 OTOOL=":"
7196 else
7197 case $cross_compiling:$ac_tool_warned in
7198yes:)
7199{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7200$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7201ac_tool_warned=yes ;;
7202esac
7203 OTOOL=$ac_ct_OTOOL
7204 fi
718a6fd8
SE
7205else
7206 OTOOL="$ac_cv_prog_OTOOL"
7207fi
7208
7209 if test -n "$ac_tool_prefix"; then
7210 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7211set dummy ${ac_tool_prefix}otool64; ac_word=$2
81ecdfbb
RW
7212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7213$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7214if ${ac_cv_prog_OTOOL64+:} false; then :
81ecdfbb 7215 $as_echo_n "(cached) " >&6
718a6fd8
SE
7216else
7217 if test -n "$OTOOL64"; then
7218 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7219else
7220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7221for as_dir in $PATH
7222do
7223 IFS=$as_save_IFS
7224 test -z "$as_dir" && as_dir=.
81ecdfbb 7225 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7226 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
718a6fd8 7227 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
81ecdfbb 7228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7229 break 2
7230 fi
7231done
81ecdfbb
RW
7232 done
7233IFS=$as_save_IFS
718a6fd8
SE
7234
7235fi
7236fi
7237OTOOL64=$ac_cv_prog_OTOOL64
7238if test -n "$OTOOL64"; then
81ecdfbb
RW
7239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7240$as_echo "$OTOOL64" >&6; }
718a6fd8 7241else
81ecdfbb
RW
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7243$as_echo "no" >&6; }
718a6fd8
SE
7244fi
7245
81ecdfbb 7246
718a6fd8
SE
7247fi
7248if test -z "$ac_cv_prog_OTOOL64"; then
7249 ac_ct_OTOOL64=$OTOOL64
7250 # Extract the first word of "otool64", so it can be a program name with args.
7251set dummy otool64; ac_word=$2
81ecdfbb
RW
7252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7253$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7254if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
81ecdfbb 7255 $as_echo_n "(cached) " >&6
718a6fd8
SE
7256else
7257 if test -n "$ac_ct_OTOOL64"; then
7258 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7259else
7260as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7261for as_dir in $PATH
7262do
7263 IFS=$as_save_IFS
7264 test -z "$as_dir" && as_dir=.
81ecdfbb 7265 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7266 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
718a6fd8 7267 ac_cv_prog_ac_ct_OTOOL64="otool64"
81ecdfbb 7268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7269 break 2
7270 fi
7271done
81ecdfbb
RW
7272 done
7273IFS=$as_save_IFS
718a6fd8 7274
718a6fd8
SE
7275fi
7276fi
7277ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7278if test -n "$ac_ct_OTOOL64"; then
81ecdfbb
RW
7279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7280$as_echo "$ac_ct_OTOOL64" >&6; }
718a6fd8 7281else
81ecdfbb
RW
7282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7283$as_echo "no" >&6; }
718a6fd8
SE
7284fi
7285
81ecdfbb
RW
7286 if test "x$ac_ct_OTOOL64" = x; then
7287 OTOOL64=":"
7288 else
7289 case $cross_compiling:$ac_tool_warned in
7290yes:)
7291{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7292$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7293ac_tool_warned=yes ;;
7294esac
7295 OTOOL64=$ac_ct_OTOOL64
7296 fi
718a6fd8
SE
7297else
7298 OTOOL64="$ac_cv_prog_OTOOL64"
7299fi
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
81ecdfbb
RW
7327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7328$as_echo_n "checking for -single_module linker flag... " >&6; }
d0ac1c44 7329if ${lt_cv_apple_cc_single_mod+:} false; then :
81ecdfbb 7330 $as_echo_n "(cached) " >&6
718a6fd8
SE
7331else
7332 lt_cv_apple_cc_single_mod=no
7333 if test -z "${LT_MULTI_MODULE}"; then
7334 # By default we will add the -single_module flag. You can override
7335 # by either setting the environment variable LT_MULTI_MODULE
7336 # non-empty at configure time, or by adding -multi_module to the
7337 # link flags.
7338 rm -rf libconftest.dylib*
7339 echo "int foo(void){return 1;}" > conftest.c
7340 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7341-dynamiclib -Wl,-single_module conftest.c" >&5
7342 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7343 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7344 _lt_result=$?
7345 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7346 lt_cv_apple_cc_single_mod=yes
7347 else
7348 cat conftest.err >&5
7349 fi
7350 rm -rf libconftest.dylib*
7351 rm -f conftest.*
7352 fi
7353fi
81ecdfbb
RW
7354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7355$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7357$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
d0ac1c44 7358if ${lt_cv_ld_exported_symbols_list+:} false; then :
81ecdfbb 7359 $as_echo_n "(cached) " >&6
718a6fd8
SE
7360else
7361 lt_cv_ld_exported_symbols_list=no
7362 save_LDFLAGS=$LDFLAGS
7363 echo "_main" > conftest.sym
7364 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
81ecdfbb 7365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
718a6fd8
SE
7366/* end confdefs.h. */
7367
7368int
7369main ()
7370{
7371
7372 ;
7373 return 0;
7374}
7375_ACEOF
81ecdfbb 7376if ac_fn_c_try_link "$LINENO"; then :
718a6fd8
SE
7377 lt_cv_ld_exported_symbols_list=yes
7378else
81ecdfbb 7379 lt_cv_ld_exported_symbols_list=no
718a6fd8 7380fi
81ecdfbb
RW
7381rm -f core conftest.err conftest.$ac_objext \
7382 conftest$ac_exeext conftest.$ac_ext
718a6fd8
SE
7383 LDFLAGS="$save_LDFLAGS"
7384
7385fi
81ecdfbb
RW
7386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7387$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
3725885a
RW
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7389$as_echo_n "checking for -force_load linker flag... " >&6; }
d0ac1c44 7390if ${lt_cv_ld_force_load+:} false; then :
3725885a
RW
7391 $as_echo_n "(cached) " >&6
7392else
7393 lt_cv_ld_force_load=no
7394 cat > conftest.c << _LT_EOF
7395int forced_loaded() { return 2;}
7396_LT_EOF
7397 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7398 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7399 echo "$AR cru libconftest.a conftest.o" >&5
7400 $AR cru libconftest.a conftest.o 2>&5
7401 cat > conftest.c << _LT_EOF
7402int main() { return 0;}
7403_LT_EOF
7404 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7405 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7406 _lt_result=$?
7407 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7408 lt_cv_ld_force_load=yes
7409 else
7410 cat conftest.err >&5
7411 fi
7412 rm -f conftest.err libconftest.a conftest conftest.c
7413 rm -rf conftest.dSYM
7414
7415fi
7416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7417$as_echo "$lt_cv_ld_force_load" >&6; }
718a6fd8
SE
7418 case $host_os in
7419 rhapsody* | darwin1.[012])
7420 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7421 darwin1.*)
7422 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7423 darwin*) # darwin 5.x on
7424 # if running on 10.5 or later, the deployment target defaults
7425 # to the OS version, if on x86, and 10.4, the deployment
7426 # target defaults to 10.4. Don't you love it?
7427 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7428 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7429 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6e733cce 7430 10.[012][,.]*)
718a6fd8
SE
7431 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7432 10.*)
7433 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7434 esac
7435 ;;
7436 esac
7437 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7438 _lt_dar_single_mod='$single_module'
7439 fi
7440 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7441 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7442 else
7443 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7444 fi
3725885a 7445 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
718a6fd8
SE
7446 _lt_dsymutil='~$DSYMUTIL $lib || :'
7447 else
7448 _lt_dsymutil=
7449 fi
7450 ;;
7451 esac
7452
718a6fd8 7453for ac_header in dlfcn.h
81ecdfbb
RW
7454do :
7455 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7456"
d0ac1c44 7457if test "x$ac_cv_header_dlfcn_h" = xyes; then :
718a6fd8 7458 cat >>confdefs.h <<_ACEOF
81ecdfbb 7459#define HAVE_DLFCN_H 1
718a6fd8
SE
7460_ACEOF
7461
7462fi
7463
7464done
7465
7466
7467
3725885a
RW
7468
7469
718a6fd8
SE
7470# Set options
7471
7472
7473
7474 enable_dlopen=no
7475
7476
7477 enable_win32_dll=no
7478
7479
81ecdfbb
RW
7480 # Check whether --enable-shared was given.
7481if test "${enable_shared+set}" = set; then :
7482 enableval=$enable_shared; p=${PACKAGE-default}
718a6fd8
SE
7483 case $enableval in
7484 yes) enable_shared=yes ;;
7485 no) enable_shared=no ;;
7486 *)
7487 enable_shared=no
7488 # Look at the argument we got. We use all the common list separators.
7489 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7490 for pkg in $enableval; do
7491 IFS="$lt_save_ifs"
7492 if test "X$pkg" = "X$p"; then
7493 enable_shared=yes
7494 fi
7495 done
7496 IFS="$lt_save_ifs"
7497 ;;
7498 esac
7499else
7500 enable_shared=yes
81ecdfbb 7501fi
718a6fd8
SE
7502
7503
7504
7505
7506
7507
7508
7509
81ecdfbb
RW
7510
7511 # Check whether --enable-static was given.
7512if test "${enable_static+set}" = set; then :
7513 enableval=$enable_static; p=${PACKAGE-default}
718a6fd8
SE
7514 case $enableval in
7515 yes) enable_static=yes ;;
7516 no) enable_static=no ;;
7517 *)
7518 enable_static=no
7519 # Look at the argument we got. We use all the common list separators.
7520 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7521 for pkg in $enableval; do
7522 IFS="$lt_save_ifs"
7523 if test "X$pkg" = "X$p"; then
7524 enable_static=yes
7525 fi
7526 done
7527 IFS="$lt_save_ifs"
7528 ;;
7529 esac
7530else
7531 enable_static=yes
81ecdfbb 7532fi
718a6fd8
SE
7533
7534
7535
7536
7537
7538
7539
7540
7541
81ecdfbb
RW
7542
7543# Check whether --with-pic was given.
7544if test "${with_pic+set}" = set; then :
7545 withval=$with_pic; pic_mode="$withval"
718a6fd8
SE
7546else
7547 pic_mode=default
81ecdfbb
RW
7548fi
7549
718a6fd8
SE
7550
7551test -z "$pic_mode" && pic_mode=default
7552
7553
7554
7555
7556
7557
7558
81ecdfbb
RW
7559 # Check whether --enable-fast-install was given.
7560if test "${enable_fast_install+set}" = set; then :
7561 enableval=$enable_fast_install; p=${PACKAGE-default}
718a6fd8
SE
7562 case $enableval in
7563 yes) enable_fast_install=yes ;;
7564 no) enable_fast_install=no ;;
7565 *)
7566 enable_fast_install=no
7567 # Look at the argument we got. We use all the common list separators.
7568 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7569 for pkg in $enableval; do
7570 IFS="$lt_save_ifs"
7571 if test "X$pkg" = "X$p"; then
7572 enable_fast_install=yes
7573 fi
7574 done
7575 IFS="$lt_save_ifs"
7357c5b6
AM
7576 ;;
7577 esac
718a6fd8
SE
7578else
7579 enable_fast_install=yes
81ecdfbb
RW
7580fi
7581
20e95c23 7582
20e95c23
DJ
7583
7584
42ecbf5e 7585
d7040cdb 7586
20e95c23 7587
d7040cdb 7588
d7040cdb
SE
7589
7590
7591
7592# This can be used to rebuild libtool when needed
7593LIBTOOL_DEPS="$ltmain"
7594
7595# Always use our own libtool.
7596LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
3725885a 7620
d7040cdb
SE
7621
7622
7623test -z "$LN_S" && LN_S="ln -s"
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638if test -n "${ZSH_VERSION+set}" ; then
7639 setopt NO_GLOB_SUBST
7640fi
7641
81ecdfbb
RW
7642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7643$as_echo_n "checking for objdir... " >&6; }
d0ac1c44 7644if ${lt_cv_objdir+:} false; then :
81ecdfbb 7645 $as_echo_n "(cached) " >&6
20e95c23 7646else
d7040cdb
SE
7647 rm -f .libs 2>/dev/null
7648mkdir .libs 2>/dev/null
7649if test -d .libs; then
7650 lt_cv_objdir=.libs
42ecbf5e 7651else
d7040cdb
SE
7652 # MS-DOS does not allow filenames that begin with a dot.
7653 lt_cv_objdir=_libs
7654fi
7655rmdir .libs 2>/dev/null
42ecbf5e 7656fi
81ecdfbb
RW
7657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7658$as_echo "$lt_cv_objdir" >&6; }
d7040cdb 7659objdir=$lt_cv_objdir
42ecbf5e 7660
d7040cdb
SE
7661
7662
7663
7664
7665cat >>confdefs.h <<_ACEOF
7666#define LT_OBJDIR "$lt_cv_objdir/"
7667_ACEOF
7668
7669
7670
7671
d7040cdb
SE
7672case $host_os in
7673aix3*)
7674 # AIX sometimes has problems with the GCC collect2 program. For some
7675 # reason, if we set the COLLECT_NAMES environment variable, the problems
7676 # vanish in a puff of smoke.
7677 if test "X${COLLECT_NAMES+set}" != Xset; then
7678 COLLECT_NAMES=
7679 export COLLECT_NAMES
7680 fi
7681 ;;
7682esac
7683
d7040cdb
SE
7684# Global variables:
7685ofile=libtool
7686can_build_shared=yes
7687
7688# All known linkers require a `.a' archive for static linking (except MSVC,
7689# which needs '.lib').
7690libext=a
7691
7692with_gnu_ld="$lt_cv_prog_gnu_ld"
7693
7694old_CC="$CC"
7695old_CFLAGS="$CFLAGS"
7696
7697# Set sane defaults for various variables
7698test -z "$CC" && CC=cc
7699test -z "$LTCC" && LTCC=$CC
7700test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7701test -z "$LD" && LD=ld
7702test -z "$ac_objext" && ac_objext=o
7703
7704for cc_temp in $compiler""; do
7705 case $cc_temp in
7706 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7707 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7708 \-*) ;;
7709 *) break;;
7710 esac
7711done
3725885a 7712cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
d7040cdb
SE
7713
7714
7715# Only perform the check for file, if the check method requires it
7716test -z "$MAGIC_CMD" && MAGIC_CMD=file
7717case $deplibs_check_method in
7718file_magic*)
7719 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
81ecdfbb
RW
7720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7721$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
d0ac1c44 7722if ${lt_cv_path_MAGIC_CMD+:} false; then :
81ecdfbb 7723 $as_echo_n "(cached) " >&6
42ecbf5e 7724else
d7040cdb
SE
7725 case $MAGIC_CMD in
7726[\\/*] | ?:[\\/]*)
7727 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
20e95c23 7728 ;;
d7040cdb
SE
7729*)
7730 lt_save_MAGIC_CMD="$MAGIC_CMD"
7731 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7732 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7733 for ac_dir in $ac_dummy; do
7734 IFS="$lt_save_ifs"
7735 test -z "$ac_dir" && ac_dir=.
7736 if test -f $ac_dir/${ac_tool_prefix}file; then
7737 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7738 if test -n "$file_magic_test_file"; then
7739 case $deplibs_check_method in
7740 "file_magic "*)
7741 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7742 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7743 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7744 $EGREP "$file_magic_regex" > /dev/null; then
7745 :
7746 else
7747 cat <<_LT_EOF 1>&2
42ecbf5e 7748
d7040cdb
SE
7749*** Warning: the command libtool uses to detect shared libraries,
7750*** $file_magic_cmd, produces output that libtool cannot recognize.
7751*** The result is that libtool may fail to recognize shared libraries
7752*** as such. This will affect the creation of libtool libraries that
7753*** depend on shared libraries, but programs linked with such libtool
7754*** libraries will work regardless of this problem. Nevertheless, you
7755*** may want to report the problem to your system manager and/or to
7756*** bug-libtool@gnu.org
7757
7758_LT_EOF
7759 fi ;;
7760 esac
7761 fi
7762 break
7763 fi
7764 done
7765 IFS="$lt_save_ifs"
7766 MAGIC_CMD="$lt_save_MAGIC_CMD"
20e95c23
DJ
7767 ;;
7768esac
42ecbf5e 7769fi
20e95c23 7770
d7040cdb
SE
7771MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7772if test -n "$MAGIC_CMD"; then
81ecdfbb
RW
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7774$as_echo "$MAGIC_CMD" >&6; }
42ecbf5e 7775else
81ecdfbb
RW
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7777$as_echo "no" >&6; }
42ecbf5e
DJ
7778fi
7779
20e95c23
DJ
7780
7781
42ecbf5e 7782
20e95c23 7783
d7040cdb
SE
7784if test -z "$lt_cv_path_MAGIC_CMD"; then
7785 if test -n "$ac_tool_prefix"; then
81ecdfbb
RW
7786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7787$as_echo_n "checking for file... " >&6; }
d0ac1c44 7788if ${lt_cv_path_MAGIC_CMD+:} false; then :
81ecdfbb 7789 $as_echo_n "(cached) " >&6
42ecbf5e 7790else
d7040cdb
SE
7791 case $MAGIC_CMD in
7792[\\/*] | ?:[\\/]*)
7793 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7794 ;;
7795*)
7796 lt_save_MAGIC_CMD="$MAGIC_CMD"
7797 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7798 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7799 for ac_dir in $ac_dummy; do
7800 IFS="$lt_save_ifs"
7801 test -z "$ac_dir" && ac_dir=.
7802 if test -f $ac_dir/file; then
7803 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7804 if test -n "$file_magic_test_file"; then
7805 case $deplibs_check_method in
7806 "file_magic "*)
7807 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7808 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7809 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7810 $EGREP "$file_magic_regex" > /dev/null; then
7811 :
7812 else
7813 cat <<_LT_EOF 1>&2
7814
7815*** Warning: the command libtool uses to detect shared libraries,
7816*** $file_magic_cmd, produces output that libtool cannot recognize.
7817*** The result is that libtool may fail to recognize shared libraries
7818*** as such. This will affect the creation of libtool libraries that
7819*** depend on shared libraries, but programs linked with such libtool
7820*** libraries will work regardless of this problem. Nevertheless, you
7821*** may want to report the problem to your system manager and/or to
7822*** bug-libtool@gnu.org
7823
7824_LT_EOF
7825 fi ;;
7826 esac
7827 fi
7828 break
7829 fi
7830 done
7831 IFS="$lt_save_ifs"
7832 MAGIC_CMD="$lt_save_MAGIC_CMD"
7833 ;;
20e95c23
DJ
7834esac
7835fi
d7040cdb
SE
7836
7837MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7838if test -n "$MAGIC_CMD"; then
81ecdfbb
RW
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7840$as_echo "$MAGIC_CMD" >&6; }
20e95c23 7841else
81ecdfbb
RW
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7843$as_echo "no" >&6; }
20e95c23
DJ
7844fi
7845
20e95c23 7846
42ecbf5e 7847 else
d7040cdb 7848 MAGIC_CMD=:
42ecbf5e 7849 fi
42ecbf5e 7850fi
42ecbf5e 7851
20e95c23 7852 fi
d7040cdb
SE
7853 ;;
7854esac
42ecbf5e 7855
d7040cdb 7856# Use C for the default configuration in the libtool script
42ecbf5e 7857
d7040cdb
SE
7858lt_save_CC="$CC"
7859ac_ext=c
7860ac_cpp='$CPP $CPPFLAGS'
7861ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7862ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7863ac_compiler_gnu=$ac_cv_c_compiler_gnu
42ecbf5e 7864
42ecbf5e 7865
d7040cdb
SE
7866# Source file extension for C test sources.
7867ac_ext=c
42ecbf5e 7868
d7040cdb
SE
7869# Object file extension for compiled C test sources.
7870objext=o
7871objext=$objext
42ecbf5e 7872
d7040cdb
SE
7873# Code to be used in simple compile tests
7874lt_simple_compile_test_code="int some_variable = 0;"
42ecbf5e 7875
d7040cdb
SE
7876# Code to be used in simple link tests
7877lt_simple_link_test_code='int main(){return(0);}'
42ecbf5e 7878
ac48eca1 7879
42ecbf5e 7880
42ecbf5e 7881
d5fbea21 7882
d5fbea21
DJ
7883
7884
d7040cdb
SE
7885# If no C compiler was specified, use CC.
7886LTCC=${LTCC-"$CC"}
20e95c23 7887
d7040cdb
SE
7888# If no C compiler flags were specified, use CFLAGS.
7889LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
42ecbf5e 7890
d7040cdb
SE
7891# Allow CC to be a program name with arguments.
7892compiler=$CC
252b5132 7893
d7040cdb
SE
7894# Save the default compiler, since it gets overwritten when the other
7895# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7896compiler_DEFAULT=$CC
42ecbf5e 7897
d7040cdb
SE
7898# save warnings/boilerplate of simple test code
7899ac_outfile=conftest.$ac_objext
7900echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7901eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7902_lt_compiler_boilerplate=`cat conftest.err`
7903$RM conftest*
252b5132 7904
d7040cdb
SE
7905ac_outfile=conftest.$ac_objext
7906echo "$lt_simple_link_test_code" >conftest.$ac_ext
7907eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7908_lt_linker_boilerplate=`cat conftest.err`
718a6fd8 7909$RM -r conftest*
252b5132 7910
42ecbf5e 7911
f2c621e4
AS
7912## CAVEAT EMPTOR:
7913## There is no encapsulation within the following macros, do not change
7914## the running order or otherwise move them around unless you know exactly
7915## what you are doing...
d7040cdb 7916if test -n "$compiler"; then
252b5132 7917
d7040cdb 7918lt_prog_compiler_no_builtin_flag=
252b5132 7919
d7040cdb 7920if test "$GCC" = yes; then
3725885a
RW
7921 case $cc_basename in
7922 nvcc*)
7923 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7924 *)
7925 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7926 esac
d15b04bd 7927
81ecdfbb
RW
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7929$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
d0ac1c44 7930if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
81ecdfbb 7931 $as_echo_n "(cached) " >&6
252b5132 7932else
d7040cdb
SE
7933 lt_cv_prog_compiler_rtti_exceptions=no
7934 ac_outfile=conftest.$ac_objext
7935 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7936 lt_compiler_flag="-fno-rtti -fno-exceptions"
7937 # Insert the option either (1) after the last *FLAGS variable, or
7938 # (2) before a word containing "conftest.", or (3) at the end.
7939 # Note that $ac_compile itself does not contain backslashes and begins
7940 # with a dollar sign (not a hyphen), so the echo should work correctly.
7941 # The option is referenced via a variable to avoid confusing sed.
7942 lt_compile=`echo "$ac_compile" | $SED \
7943 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7944 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7945 -e 's:$: $lt_compiler_flag:'`
3725885a 7946 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
d7040cdb
SE
7947 (eval "$lt_compile" 2>conftest.err)
7948 ac_status=$?
7949 cat conftest.err >&5
3725885a 7950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb
SE
7951 if (exit $ac_status) && test -s "$ac_outfile"; then
7952 # The compiler can only warn and ignore the option if not recognized
7953 # So say no if there are warnings other than the usual output.
3725885a 7954 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
d7040cdb
SE
7955 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7956 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7957 lt_cv_prog_compiler_rtti_exceptions=yes
7958 fi
7959 fi
7960 $RM conftest*
42ecbf5e 7961
252b5132 7962fi
81ecdfbb
RW
7963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7964$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
d7040cdb
SE
7965
7966if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7967 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
20e95c23 7968else
d7040cdb 7969 :
252b5132 7970fi
252b5132
RH
7971
7972fi
d7040cdb
SE
7973
7974
7975
7976
7977
7978
7979 lt_prog_compiler_wl=
7980lt_prog_compiler_pic=
7981lt_prog_compiler_static=
7982
f2c621e4
AS
7983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7984$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
d7040cdb
SE
7985
7986 if test "$GCC" = yes; then
7987 lt_prog_compiler_wl='-Wl,'
7988 lt_prog_compiler_static='-static'
7989
7990 case $host_os in
7991 aix*)
7992 # All AIX code is PIC.
7993 if test "$host_cpu" = ia64; then
7994 # AIX 5 now supports IA64 processor
7995 lt_prog_compiler_static='-Bstatic'
7996 fi
6c9c0a50 7997 lt_prog_compiler_pic='-fPIC'
d7040cdb
SE
7998 ;;
7999
8000 amigaos*)
718a6fd8
SE
8001 case $host_cpu in
8002 powerpc)
8003 # see comment about AmigaOS4 .so support
8004 lt_prog_compiler_pic='-fPIC'
8005 ;;
8006 m68k)
8007 # FIXME: we need at least 68020 code to build shared libraries, but
8008 # adding the `-m68020' flag to GCC prevents building anything better,
8009 # like `-m68040'.
8010 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8011 ;;
8012 esac
d7040cdb
SE
8013 ;;
8014
8015 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8016 # PIC is the default for these OSes.
8017 ;;
8018
718a6fd8 8019 mingw* | cygwin* | pw32* | os2* | cegcc*)
d7040cdb
SE
8020 # This hack is so that the source file can tell whether it is being
8021 # built for inclusion in a dll (and should export symbols for example).
8022 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8023 # (--disable-auto-import) libraries
8024 lt_prog_compiler_pic='-DDLL_EXPORT'
8025 ;;
8026
8027 darwin* | rhapsody*)
8028 # PIC is the default on this platform
8029 # Common symbols not allowed in MH_DYLIB files
8030 lt_prog_compiler_pic='-fno-common'
8031 ;;
8032
3725885a
RW
8033 haiku*)
8034 # PIC is the default for Haiku.
8035 # The "-static" flag exists, but is broken.
8036 lt_prog_compiler_static=
8037 ;;
8038
d7040cdb 8039 hpux*)
718a6fd8
SE
8040 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8041 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8042 # sets the default TLS model and affects inlining.
d7040cdb 8043 case $host_cpu in
718a6fd8 8044 hppa*64*)
d7040cdb
SE
8045 # +Z the default
8046 ;;
8047 *)
8048 lt_prog_compiler_pic='-fPIC'
8049 ;;
8050 esac
8051 ;;
8052
8053 interix[3-9]*)
8054 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8055 # Instead, we relocate shared libraries at runtime.
8056 ;;
8057
8058 msdosdjgpp*)
8059 # Just because we use GCC doesn't mean we suddenly get shared libraries
8060 # on systems that don't support them.
8061 lt_prog_compiler_can_build_shared=no
8062 enable_shared=no
8063 ;;
8064
8065 *nto* | *qnx*)
8066 # QNX uses GNU C++, but need to define -shared option too, otherwise
8067 # it will coredump.
8068 lt_prog_compiler_pic='-fPIC -shared'
8069 ;;
8070
8071 sysv4*MP*)
8072 if test -d /usr/nec; then
8073 lt_prog_compiler_pic=-Kconform_pic
8074 fi
8075 ;;
8076
8077 *)
8078 lt_prog_compiler_pic='-fPIC'
8079 ;;
8080 esac
3725885a
RW
8081
8082 case $cc_basename in
8083 nvcc*) # Cuda Compiler Driver 2.2
8084 lt_prog_compiler_wl='-Xlinker '
8085 lt_prog_compiler_pic='-Xcompiler -fPIC'
8086 ;;
8087 esac
d7040cdb
SE
8088 else
8089 # PORTME Check for flag to pass linker flags through the system compiler.
8090 case $host_os in
8091 aix*)
8092 lt_prog_compiler_wl='-Wl,'
8093 if test "$host_cpu" = ia64; then
8094 # AIX 5 now supports IA64 processor
8095 lt_prog_compiler_static='-Bstatic'
8096 else
8097 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8098 fi
8099 ;;
d7040cdb 8100
718a6fd8 8101 mingw* | cygwin* | pw32* | os2* | cegcc*)
d7040cdb
SE
8102 # This hack is so that the source file can tell whether it is being
8103 # built for inclusion in a dll (and should export symbols for example).
8104 lt_prog_compiler_pic='-DDLL_EXPORT'
8105 ;;
8106
8107 hpux9* | hpux10* | hpux11*)
8108 lt_prog_compiler_wl='-Wl,'
8109 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8110 # not for PA HP-UX.
8111 case $host_cpu in
8112 hppa*64*|ia64*)
8113 # +Z the default
8114 ;;
8115 *)
8116 lt_prog_compiler_pic='+Z'
8117 ;;
8118 esac
8119 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8120 lt_prog_compiler_static='${wl}-a ${wl}archive'
8121 ;;
8122
8123 irix5* | irix6* | nonstopux*)
8124 lt_prog_compiler_wl='-Wl,'
8125 # PIC (with -KPIC) is the default.
8126 lt_prog_compiler_static='-non_shared'
8127 ;;
8128
58e24671 8129 linux* | k*bsd*-gnu | kopensolaris*-gnu)
d7040cdb 8130 case $cc_basename in
718a6fd8
SE
8131 # old Intel for x86_64 which still supported -KPIC.
8132 ecc*)
d7040cdb
SE
8133 lt_prog_compiler_wl='-Wl,'
8134 lt_prog_compiler_pic='-KPIC'
8135 lt_prog_compiler_static='-static'
8136 ;;
718a6fd8
SE
8137 # icc used to be incompatible with GCC.
8138 # ICC 10 doesn't accept -KPIC any more.
8139 icc* | ifort*)
8140 lt_prog_compiler_wl='-Wl,'
8141 lt_prog_compiler_pic='-fPIC'
8142 lt_prog_compiler_static='-static'
8143 ;;
8144 # Lahey Fortran 8.1.
8145 lf95*)
8146 lt_prog_compiler_wl='-Wl,'
8147 lt_prog_compiler_pic='--shared'
8148 lt_prog_compiler_static='--static'
8149 ;;
3725885a 8150 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
d7040cdb
SE
8151 # Portland Group compilers (*not* the Pentium gcc compiler,
8152 # which looks to be a dead project)
8153 lt_prog_compiler_wl='-Wl,'
8154 lt_prog_compiler_pic='-fpic'
8155 lt_prog_compiler_static='-Bstatic'
8156 ;;
8157 ccc*)
8158 lt_prog_compiler_wl='-Wl,'
8159 # All Alpha code is PIC.
8160 lt_prog_compiler_static='-non_shared'
8161 ;;
3725885a
RW
8162 xl* | bgxl* | bgf* | mpixl*)
8163 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
718a6fd8
SE
8164 lt_prog_compiler_wl='-Wl,'
8165 lt_prog_compiler_pic='-qpic'
8166 lt_prog_compiler_static='-qstaticlink'
8167 ;;
d7040cdb
SE
8168 *)
8169 case `$CC -V 2>&1 | sed 5q` in
3725885a
RW
8170 *Sun\ F* | *Sun*Fortran*)
8171 # Sun Fortran 8.3 passes all unrecognized flags to the linker
d7040cdb
SE
8172 lt_prog_compiler_pic='-KPIC'
8173 lt_prog_compiler_static='-Bstatic'
3725885a 8174 lt_prog_compiler_wl=''
d7040cdb 8175 ;;
3725885a
RW
8176 *Sun\ C*)
8177 # Sun C 5.9
d7040cdb
SE
8178 lt_prog_compiler_pic='-KPIC'
8179 lt_prog_compiler_static='-Bstatic'
3725885a 8180 lt_prog_compiler_wl='-Wl,'
d7040cdb
SE
8181 ;;
8182 esac
8183 ;;
8184 esac
8185 ;;
8186
8187 newsos6)
8188 lt_prog_compiler_pic='-KPIC'
8189 lt_prog_compiler_static='-Bstatic'
8190 ;;
8191
8192 *nto* | *qnx*)
8193 # QNX uses GNU C++, but need to define -shared option too, otherwise
8194 # it will coredump.
8195 lt_prog_compiler_pic='-fPIC -shared'
8196 ;;
8197
8198 osf3* | osf4* | osf5*)
8199 lt_prog_compiler_wl='-Wl,'
8200 # All OSF/1 code is PIC.
8201 lt_prog_compiler_static='-non_shared'
8202 ;;
8203
8204 rdos*)
8205 lt_prog_compiler_static='-non_shared'
8206 ;;
8207
8208 solaris*)
8209 lt_prog_compiler_pic='-KPIC'
8210 lt_prog_compiler_static='-Bstatic'
8211 case $cc_basename in
f2c621e4 8212 f77* | f90* | f95*)
d7040cdb
SE
8213 lt_prog_compiler_wl='-Qoption ld ';;
8214 *)
8215 lt_prog_compiler_wl='-Wl,';;
8216 esac
8217 ;;
8218
8219 sunos4*)
8220 lt_prog_compiler_wl='-Qoption ld '
8221 lt_prog_compiler_pic='-PIC'
8222 lt_prog_compiler_static='-Bstatic'
8223 ;;
8224
8225 sysv4 | sysv4.2uw2* | sysv4.3*)
8226 lt_prog_compiler_wl='-Wl,'
8227 lt_prog_compiler_pic='-KPIC'
8228 lt_prog_compiler_static='-Bstatic'
8229 ;;
8230
8231 sysv4*MP*)
8232 if test -d /usr/nec ;then
8233 lt_prog_compiler_pic='-Kconform_pic'
8234 lt_prog_compiler_static='-Bstatic'
8235 fi
8236 ;;
8237
8238 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8239 lt_prog_compiler_wl='-Wl,'
8240 lt_prog_compiler_pic='-KPIC'
8241 lt_prog_compiler_static='-Bstatic'
8242 ;;
8243
8244 unicos*)
8245 lt_prog_compiler_wl='-Wl,'
8246 lt_prog_compiler_can_build_shared=no
8247 ;;
8248
8249 uts4*)
8250 lt_prog_compiler_pic='-pic'
8251 lt_prog_compiler_static='-Bstatic'
8252 ;;
8253
8254 *)
8255 lt_prog_compiler_can_build_shared=no
8256 ;;
8257 esac
8258 fi
8259
8260case $host_os in
8261 # For platforms which do not support PIC, -DPIC is meaningless:
8262 *djgpp*)
8263 lt_prog_compiler_pic=
8264 ;;
8265 *)
8266 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8267 ;;
8268esac
f2c621e4
AS
8269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8270$as_echo "$lt_prog_compiler_pic" >&6; }
8271
8272
8273
8274
d7040cdb
SE
8275
8276
8277#
8278# Check to make sure the PIC flag actually works.
8279#
8280if test -n "$lt_prog_compiler_pic"; then
81ecdfbb
RW
8281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8282$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
d0ac1c44 8283if ${lt_cv_prog_compiler_pic_works+:} false; then :
81ecdfbb 8284 $as_echo_n "(cached) " >&6
42ecbf5e 8285else
718a6fd8 8286 lt_cv_prog_compiler_pic_works=no
d7040cdb
SE
8287 ac_outfile=conftest.$ac_objext
8288 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8289 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8290 # Insert the option either (1) after the last *FLAGS variable, or
8291 # (2) before a word containing "conftest.", or (3) at the end.
8292 # Note that $ac_compile itself does not contain backslashes and begins
8293 # with a dollar sign (not a hyphen), so the echo should work correctly.
8294 # The option is referenced via a variable to avoid confusing sed.
8295 lt_compile=`echo "$ac_compile" | $SED \
8296 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8297 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8298 -e 's:$: $lt_compiler_flag:'`
3725885a 8299 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
d7040cdb
SE
8300 (eval "$lt_compile" 2>conftest.err)
8301 ac_status=$?
8302 cat conftest.err >&5
3725885a 8303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb
SE
8304 if (exit $ac_status) && test -s "$ac_outfile"; then
8305 # The compiler can only warn and ignore the option if not recognized
8306 # So say no if there are warnings other than the usual output.
3725885a 8307 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
d7040cdb
SE
8308 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8309 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
718a6fd8 8310 lt_cv_prog_compiler_pic_works=yes
d7040cdb
SE
8311 fi
8312 fi
8313 $RM conftest*
42ecbf5e 8314
252b5132 8315fi
81ecdfbb
RW
8316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8317$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
d7040cdb 8318
718a6fd8 8319if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
d7040cdb
SE
8320 case $lt_prog_compiler_pic in
8321 "" | " "*) ;;
8322 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8323 esac
252b5132 8324else
d7040cdb
SE
8325 lt_prog_compiler_pic=
8326 lt_prog_compiler_can_build_shared=no
252b5132 8327fi
252b5132
RH
8328
8329fi
42ecbf5e 8330
d7040cdb
SE
8331
8332
8333
8334
8335
8336#
8337# Check to make sure the static flag actually works.
8338#
8339wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
81ecdfbb
RW
8340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8341$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
d0ac1c44 8342if ${lt_cv_prog_compiler_static_works+:} false; then :
81ecdfbb 8343 $as_echo_n "(cached) " >&6
42ecbf5e 8344else
718a6fd8 8345 lt_cv_prog_compiler_static_works=no
d7040cdb
SE
8346 save_LDFLAGS="$LDFLAGS"
8347 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8348 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8349 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8350 # The linker can only warn and ignore the option if not recognized
8351 # So say no if there are warnings
8352 if test -s conftest.err; then
8353 # Append any errors to the config.log.
8354 cat conftest.err 1>&5
3725885a 8355 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
d7040cdb
SE
8356 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8357 if diff conftest.exp conftest.er2 >/dev/null; then
718a6fd8 8358 lt_cv_prog_compiler_static_works=yes
d7040cdb
SE
8359 fi
8360 else
718a6fd8 8361 lt_cv_prog_compiler_static_works=yes
d7040cdb
SE
8362 fi
8363 fi
718a6fd8 8364 $RM -r conftest*
d7040cdb 8365 LDFLAGS="$save_LDFLAGS"
42ecbf5e 8366
42ecbf5e 8367fi
81ecdfbb
RW
8368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8369$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
d7040cdb 8370
718a6fd8 8371if test x"$lt_cv_prog_compiler_static_works" = xyes; then
d7040cdb
SE
8372 :
8373else
8374 lt_prog_compiler_static=
42ecbf5e 8375fi
42ecbf5e 8376
252b5132 8377
252b5132 8378
42ecbf5e 8379
252b5132 8380
20e95c23 8381
d7040cdb 8382
81ecdfbb
RW
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8384$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
d0ac1c44 8385if ${lt_cv_prog_compiler_c_o+:} false; then :
81ecdfbb 8386 $as_echo_n "(cached) " >&6
252b5132 8387else
d7040cdb
SE
8388 lt_cv_prog_compiler_c_o=no
8389 $RM -r conftest 2>/dev/null
8390 mkdir conftest
8391 cd conftest
8392 mkdir out
8393 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8394
8395 lt_compiler_flag="-o out/conftest2.$ac_objext"
8396 # Insert the option either (1) after the last *FLAGS variable, or
8397 # (2) before a word containing "conftest.", or (3) at the end.
8398 # Note that $ac_compile itself does not contain backslashes and begins
8399 # with a dollar sign (not a hyphen), so the echo should work correctly.
8400 lt_compile=`echo "$ac_compile" | $SED \
8401 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8402 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8403 -e 's:$: $lt_compiler_flag:'`
3725885a 8404 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
d7040cdb
SE
8405 (eval "$lt_compile" 2>out/conftest.err)
8406 ac_status=$?
8407 cat out/conftest.err >&5
3725885a 8408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb
SE
8409 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8410 then
8411 # The compiler can only warn and ignore the option if not recognized
8412 # So say no if there are warnings
3725885a 8413 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
d7040cdb
SE
8414 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8415 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8416 lt_cv_prog_compiler_c_o=yes
8417 fi
8418 fi
8419 chmod u+w . 2>&5
8420 $RM conftest*
8421 # SGI C++ compiler will create directory out/ii_files/ for
8422 # template instantiation
8423 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8424 $RM out/* && rmdir out
8425 cd ..
8426 $RM -r conftest
8427 $RM conftest*
8428
252b5132 8429fi
81ecdfbb
RW
8430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8431$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
42ecbf5e 8432
20e95c23 8433
20e95c23
DJ
8434
8435
d7040cdb
SE
8436
8437
81ecdfbb
RW
8438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8439$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
d0ac1c44 8440if ${lt_cv_prog_compiler_c_o+:} false; then :
81ecdfbb 8441 $as_echo_n "(cached) " >&6
42ecbf5e 8442else
d7040cdb
SE
8443 lt_cv_prog_compiler_c_o=no
8444 $RM -r conftest 2>/dev/null
8445 mkdir conftest
8446 cd conftest
8447 mkdir out
8448 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8449
8450 lt_compiler_flag="-o out/conftest2.$ac_objext"
8451 # Insert the option either (1) after the last *FLAGS variable, or
8452 # (2) before a word containing "conftest.", or (3) at the end.
8453 # Note that $ac_compile itself does not contain backslashes and begins
8454 # with a dollar sign (not a hyphen), so the echo should work correctly.
8455 lt_compile=`echo "$ac_compile" | $SED \
8456 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8457 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8458 -e 's:$: $lt_compiler_flag:'`
3725885a 8459 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
d7040cdb
SE
8460 (eval "$lt_compile" 2>out/conftest.err)
8461 ac_status=$?
8462 cat out/conftest.err >&5
3725885a 8463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb
SE
8464 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8465 then
8466 # The compiler can only warn and ignore the option if not recognized
8467 # So say no if there are warnings
3725885a 8468 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
d7040cdb
SE
8469 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8470 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8471 lt_cv_prog_compiler_c_o=yes
8472 fi
8473 fi
8474 chmod u+w . 2>&5
8475 $RM conftest*
8476 # SGI C++ compiler will create directory out/ii_files/ for
8477 # template instantiation
8478 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8479 $RM out/* && rmdir out
8480 cd ..
8481 $RM -r conftest
8482 $RM conftest*
8483
8484fi
81ecdfbb
RW
8485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8486$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
d7040cdb
SE
8487
8488
8489
8490
8491hard_links="nottested"
8492if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8493 # do not overwrite the value of need_locks provided by the user
81ecdfbb
RW
8494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8495$as_echo_n "checking if we can lock with hard links... " >&6; }
d7040cdb
SE
8496 hard_links=yes
8497 $RM conftest*
8498 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8499 touch conftest.a
8500 ln conftest.a conftest.b 2>&5 || hard_links=no
8501 ln conftest.a conftest.b 2>/dev/null && hard_links=no
81ecdfbb
RW
8502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8503$as_echo "$hard_links" >&6; }
d7040cdb 8504 if test "$hard_links" = no; then
81ecdfbb
RW
8505 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8506$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
d7040cdb
SE
8507 need_locks=warn
8508 fi
8509else
8510 need_locks=no
8511fi
8512
8513
8514
8515
8516
8517
81ecdfbb
RW
8518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8519$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
d7040cdb
SE
8520
8521 runpath_var=
8522 allow_undefined_flag=
8523 always_export_symbols=no
8524 archive_cmds=
8525 archive_expsym_cmds=
8526 compiler_needs_object=no
8527 enable_shared_with_static_runtimes=no
8528 export_dynamic_flag_spec=
8529 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8530 hardcode_automatic=no
8531 hardcode_direct=no
8532 hardcode_direct_absolute=no
8533 hardcode_libdir_flag_spec=
8534 hardcode_libdir_flag_spec_ld=
8535 hardcode_libdir_separator=
8536 hardcode_minus_L=no
8537 hardcode_shlibpath_var=unsupported
8538 inherit_rpath=no
8539 link_all_deplibs=unknown
8540 module_cmds=
8541 module_expsym_cmds=
8542 old_archive_from_new_cmds=
8543 old_archive_from_expsyms_cmds=
8544 thread_safe_flag_spec=
8545 whole_archive_flag_spec=
8546 # include_expsyms should be a list of space-separated symbols to be *always*
8547 # included in the symbol list
8548 include_expsyms=
8549 # exclude_expsyms can be an extended regexp of symbols to exclude
8550 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8551 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8552 # as well as any symbol that contains `d'.
718a6fd8 8553 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
d7040cdb
SE
8554 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8555 # platforms (ab)use it in PIC code, but their linkers get confused if
8556 # the symbol is explicitly referenced. Since portable code cannot
8557 # rely on this symbol name, it's probably fine to never include it in
8558 # preloaded symbol tables.
718a6fd8 8559 # Exclude shared library initialization/finalization symbols.
d7040cdb
SE
8560 extract_expsyms_cmds=
8561
8562 case $host_os in
718a6fd8 8563 cygwin* | mingw* | pw32* | cegcc*)
d7040cdb
SE
8564 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8565 # When not using gcc, we currently assume that we are using
8566 # Microsoft Visual C++.
8567 if test "$GCC" != yes; then
8568 with_gnu_ld=no
8569 fi
8570 ;;
8571 interix*)
8572 # we just hope/assume this is gcc and not c89 (= MSVC++)
8573 with_gnu_ld=yes
8574 ;;
8575 openbsd*)
8576 with_gnu_ld=no
8577 ;;
8578 esac
8579
8580 ld_shlibs=yes
3725885a
RW
8581
8582 # On some targets, GNU ld is compatible enough with the native linker
8583 # that we're better off using the native interface for both.
8584 lt_use_gnu_ld_interface=no
d7040cdb 8585 if test "$with_gnu_ld" = yes; then
3725885a
RW
8586 case $host_os in
8587 aix*)
8588 # The AIX port of GNU ld has always aspired to compatibility
8589 # with the native linker. However, as the warning in the GNU ld
8590 # block says, versions before 2.19.5* couldn't really create working
8591 # shared libraries, regardless of the interface used.
8592 case `$LD -v 2>&1` in
8593 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8594 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8595 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8596 *)
8597 lt_use_gnu_ld_interface=yes
8598 ;;
8599 esac
8600 ;;
8601 *)
8602 lt_use_gnu_ld_interface=yes
8603 ;;
8604 esac
8605 fi
8606
8607 if test "$lt_use_gnu_ld_interface" = yes; then
d7040cdb
SE
8608 # If archive_cmds runs LD, not CC, wlarc should be empty
8609 wlarc='${wl}'
8610
8611 # Set some defaults for GNU ld with shared library support. These
8612 # are reset later if shared libraries are not supported. Putting them
8613 # here allows them to be overridden if necessary.
8614 runpath_var=LD_RUN_PATH
8615 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8616 export_dynamic_flag_spec='${wl}--export-dynamic'
8617 # ancient GNU ld didn't support --whole-archive et. al.
8618 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8619 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8620 else
8621 whole_archive_flag_spec=
8622 fi
8623 supports_anon_versioning=no
8624 case `$LD -v 2>&1` in
3725885a 8625 *GNU\ gold*) supports_anon_versioning=yes ;;
d7040cdb
SE
8626 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8627 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8628 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8629 *\ 2.11.*) ;; # other 2.11 versions
8630 *) supports_anon_versioning=yes ;;
8631 esac
8632
8633 # See if GNU ld supports shared libraries.
8634 case $host_os in
50e7d84b 8635 aix[3-9]*)
d7040cdb
SE
8636 # On AIX/PPC, the GNU linker is very broken
8637 if test "$host_cpu" != ia64; then
8638 ld_shlibs=no
8639 cat <<_LT_EOF 1>&2
8640
3725885a 8641*** Warning: the GNU linker, at least up to release 2.19, is reported
d7040cdb
SE
8642*** to be unable to reliably create shared libraries on AIX.
8643*** Therefore, libtool is disabling shared libraries support. If you
3725885a
RW
8644*** really care for shared libraries, you may want to install binutils
8645*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8646*** You will then need to restart the configuration process.
d7040cdb
SE
8647
8648_LT_EOF
8649 fi
8650 ;;
8651
8652 amigaos*)
718a6fd8
SE
8653 case $host_cpu in
8654 powerpc)
8655 # see comment about AmigaOS4 .so support
8656 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8657 archive_expsym_cmds=''
8658 ;;
8659 m68k)
8660 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)'
8661 hardcode_libdir_flag_spec='-L$libdir'
8662 hardcode_minus_L=yes
8663 ;;
8664 esac
d7040cdb
SE
8665 ;;
8666
8667 beos*)
8668 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8669 allow_undefined_flag=unsupported
8670 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8671 # support --undefined. This deserves some investigation. FIXME
8672 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8673 else
8674 ld_shlibs=no
8675 fi
8676 ;;
8677
718a6fd8 8678 cygwin* | mingw* | pw32* | cegcc*)
d7040cdb
SE
8679 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8680 # as there is no search path for DLLs.
8681 hardcode_libdir_flag_spec='-L$libdir'
3725885a 8682 export_dynamic_flag_spec='${wl}--export-all-symbols'
d7040cdb
SE
8683 allow_undefined_flag=unsupported
8684 always_export_symbols=no
8685 enable_shared_with_static_runtimes=yes
f2c621e4 8686 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
8687
8688 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8689 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8690 # If the export-symbols file already is a .def file (1st line
8691 # is EXPORTS), use it as is; otherwise, prepend...
8692 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8693 cp $export_symbols $output_objdir/$soname.def;
8694 else
8695 echo EXPORTS > $output_objdir/$soname.def;
8696 cat $export_symbols >> $output_objdir/$soname.def;
8697 fi~
8698 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8699 else
8700 ld_shlibs=no
8701 fi
8702 ;;
8703
3725885a
RW
8704 haiku*)
8705 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8706 link_all_deplibs=yes
8707 ;;
8708
d7040cdb
SE
8709 interix[3-9]*)
8710 hardcode_direct=no
8711 hardcode_shlibpath_var=no
8712 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8713 export_dynamic_flag_spec='${wl}-E'
8714 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8715 # Instead, shared libraries are loaded at an image base (0x10000000 by
8716 # default) and relocated if they conflict, which is a slow very memory
8717 # consuming and fragmenting process. To avoid this, we pick a random,
8718 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8719 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8720 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8721 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'
8722 ;;
8723
58e24671 8724 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
d7040cdb
SE
8725 tmp_diet=no
8726 if test "$host_os" = linux-dietlibc; then
8727 case $cc_basename in
8728 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8729 esac
8730 fi
8731 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8732 && test "$tmp_diet" = no
8733 then
6e733cce 8734 tmp_addflag=' $pic_flag'
718a6fd8 8735 tmp_sharedflag='-shared'
d7040cdb
SE
8736 case $cc_basename,$host_cpu in
8737 pgcc*) # Portland Group C compiler
3725885a 8738 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
8739 tmp_addflag=' $pic_flag'
8740 ;;
3725885a
RW
8741 pgf77* | pgf90* | pgf95* | pgfortran*)
8742 # Portland Group f77 and f90 compilers
8743 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
8744 tmp_addflag=' $pic_flag -Mnomain' ;;
8745 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8746 tmp_addflag=' -i_dynamic' ;;
8747 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8748 tmp_addflag=' -i_dynamic -nofor_main' ;;
8749 ifc* | ifort*) # Intel Fortran compiler
8750 tmp_addflag=' -nofor_main' ;;
718a6fd8
SE
8751 lf95*) # Lahey Fortran 8.1
8752 whole_archive_flag_spec=
8753 tmp_sharedflag='--shared' ;;
3725885a 8754 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
718a6fd8
SE
8755 tmp_sharedflag='-qmkshrobj'
8756 tmp_addflag= ;;
3725885a
RW
8757 nvcc*) # Cuda Compiler Driver 2.2
8758 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'
8759 compiler_needs_object=yes
8760 ;;
d7040cdb
SE
8761 esac
8762 case `$CC -V 2>&1 | sed 5q` in
8763 *Sun\ C*) # Sun C 5.9
3725885a 8764 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
8765 compiler_needs_object=yes
8766 tmp_sharedflag='-G' ;;
8767 *Sun\ F*) # Sun Fortran 8.3
8768 tmp_sharedflag='-G' ;;
d7040cdb
SE
8769 esac
8770 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8771
8772 if test "x$supports_anon_versioning" = xyes; then
8773 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8774 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8775 echo "local: *; };" >> $output_objdir/$libname.ver~
8776 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8777 fi
718a6fd8
SE
8778
8779 case $cc_basename in
3725885a 8780 xlf* | bgf* | bgxlf* | mpixlf*)
718a6fd8
SE
8781 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8782 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8783 hardcode_libdir_flag_spec=
8784 hardcode_libdir_flag_spec_ld='-rpath $libdir'
f2c621e4 8785 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
718a6fd8
SE
8786 if test "x$supports_anon_versioning" = xyes; then
8787 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8788 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8789 echo "local: *; };" >> $output_objdir/$libname.ver~
f2c621e4 8790 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
718a6fd8
SE
8791 fi
8792 ;;
8793 esac
d7040cdb
SE
8794 else
8795 ld_shlibs=no
8796 fi
8797 ;;
8798
8799 netbsd*)
8800 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8801 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8802 wlarc=
8803 else
f2c621e4
AS
8804 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8805 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
d7040cdb
SE
8806 fi
8807 ;;
8808
8809 solaris*)
8810 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8811 ld_shlibs=no
8812 cat <<_LT_EOF 1>&2
8813
8814*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8815*** create shared libraries on Solaris systems. Therefore, libtool
8816*** is disabling shared libraries support. We urge you to upgrade GNU
8817*** binutils to release 2.9.1 or newer. Another option is to modify
8818*** your PATH or compiler configuration so that the native linker is
8819*** used, and then restart.
8820
8821_LT_EOF
8822 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
f2c621e4
AS
8823 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8824 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
d7040cdb
SE
8825 else
8826 ld_shlibs=no
8827 fi
8828 ;;
8829
8830 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8831 case `$LD -v 2>&1` in
8832 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8833 ld_shlibs=no
8834 cat <<_LT_EOF 1>&2
8835
8836*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8837*** reliably create shared libraries on SCO systems. Therefore, libtool
8838*** is disabling shared libraries support. We urge you to upgrade GNU
8839*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8840*** your PATH or compiler configuration so that the native linker is
8841*** used, and then restart.
8842
8843_LT_EOF
8844 ;;
8845 *)
8846 # For security reasons, it is highly recommended that you always
8847 # use absolute paths for naming shared libraries, and exclude the
8848 # DT_RUNPATH tag from executables and libraries. But doing so
8849 # requires that you compile everything twice, which is a pain.
8850 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8851 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8852 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8853 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8854 else
8855 ld_shlibs=no
8856 fi
8857 ;;
8858 esac
8859 ;;
8860
8861 sunos4*)
8862 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8863 wlarc=
8864 hardcode_direct=yes
8865 hardcode_shlibpath_var=no
8866 ;;
8867
8868 *)
8869 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
f2c621e4
AS
8870 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8871 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
d7040cdb
SE
8872 else
8873 ld_shlibs=no
8874 fi
8875 ;;
8876 esac
8877
8878 if test "$ld_shlibs" = no; then
8879 runpath_var=
8880 hardcode_libdir_flag_spec=
8881 export_dynamic_flag_spec=
8882 whole_archive_flag_spec=
8883 fi
8884 else
8885 # PORTME fill in a description of your system's linker (not GNU ld)
8886 case $host_os in
8887 aix3*)
8888 allow_undefined_flag=unsupported
8889 always_export_symbols=yes
8890 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'
8891 # Note: this linker hardcodes the directories in LIBPATH if there
8892 # are no directories specified by -L.
8893 hardcode_minus_L=yes
8894 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8895 # Neither direct hardcoding nor static linking is supported with a
8896 # broken collect2.
8897 hardcode_direct=unsupported
8898 fi
8899 ;;
8900
50e7d84b 8901 aix[4-9]*)
d7040cdb
SE
8902 if test "$host_cpu" = ia64; then
8903 # On IA64, the linker does run time linking by default, so we don't
8904 # have to do anything special.
8905 aix_use_runtimelinking=no
8906 exp_sym_flag='-Bexport'
8907 no_entry_flag=""
8908 else
8909 # If we're using GNU nm, then we don't want the "-C" option.
8910 # -C means demangle to AIX nm, but means don't demangle with GNU nm
3725885a
RW
8911 # Also, AIX nm treats weak defined symbols like other global
8912 # defined symbols, whereas GNU nm marks them as "W".
d7040cdb 8913 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
3725885a 8914 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 8915 else
5c14705f 8916 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
8917 fi
8918 aix_use_runtimelinking=no
8919
8920 # Test if we are trying to use run time linking or normal
8921 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8922 # need to do runtime linking.
50e7d84b 8923 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
d7040cdb
SE
8924 for ld_flag in $LDFLAGS; do
8925 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8926 aix_use_runtimelinking=yes
8927 break
8928 fi
8929 done
8930 ;;
8931 esac
8932
8933 exp_sym_flag='-bexport'
8934 no_entry_flag='-bnoentry'
8935 fi
8936
8937 # When large executables or shared objects are built, AIX ld can
8938 # have problems creating the table of contents. If linking a library
8939 # or program results in "error TOC overflow" add -mminimal-toc to
8940 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8941 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8942
8943 archive_cmds=''
8944 hardcode_direct=yes
8945 hardcode_direct_absolute=yes
8946 hardcode_libdir_separator=':'
8947 link_all_deplibs=yes
8948 file_list_spec='${wl}-f,'
8949
8950 if test "$GCC" = yes; then
8951 case $host_os in aix4.[012]|aix4.[012].*)
8952 # We only want to do this on AIX 4.2 and lower, the check
8953 # below for broken collect2 doesn't work under 4.3+
8954 collect2name=`${CC} -print-prog-name=collect2`
8955 if test -f "$collect2name" &&
8956 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8957 then
8958 # We have reworked collect2
8959 :
8960 else
8961 # We have old collect2
8962 hardcode_direct=unsupported
8963 # It fails to find uninstalled libraries when the uninstalled
8964 # path is not listed in the libpath. Setting hardcode_minus_L
8965 # to unsupported forces relinking
8966 hardcode_minus_L=yes
8967 hardcode_libdir_flag_spec='-L$libdir'
8968 hardcode_libdir_separator=
8969 fi
8970 ;;
8971 esac
8972 shared_flag='-shared'
8973 if test "$aix_use_runtimelinking" = yes; then
8974 shared_flag="$shared_flag "'${wl}-G'
8975 fi
8976 else
8977 # not using gcc
8978 if test "$host_cpu" = ia64; then
8979 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8980 # chokes on -Wl,-G. The following line is correct:
8981 shared_flag='-G'
8982 else
8983 if test "$aix_use_runtimelinking" = yes; then
8984 shared_flag='${wl}-G'
8985 else
8986 shared_flag='${wl}-bM:SRE'
8987 fi
8988 fi
8989 fi
8990
718a6fd8 8991 export_dynamic_flag_spec='${wl}-bexpall'
d7040cdb
SE
8992 # It seems that -bexpall does not export symbols beginning with
8993 # underscore (_), so it is better to generate a list of symbols to export.
8994 always_export_symbols=yes
8995 if test "$aix_use_runtimelinking" = yes; then
8996 # Warning - without using the other runtime loading flags (-brtl),
8997 # -berok will link without error, but may produce a broken library.
8998 allow_undefined_flag='-berok'
8999 # Determine the default libpath from the value encoded in an
9000 # empty executable.
f2c621e4 9001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e 9002/* end confdefs.h. */
d7040cdb
SE
9003
9004int
9005main ()
9006{
9007
9008 ;
9009 return 0;
9010}
42ecbf5e 9011_ACEOF
81ecdfbb 9012if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 9013
f2c621e4
AS
9014lt_aix_libpath_sed='
9015 /Import File Strings/,/^$/ {
9016 /^0/ {
9017 s/^0 *\(.*\)$/\1/
9018 p
9019 }
9020 }'
9021aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9022# Check for a 64-bit object if we didn't find anything.
9023if test -z "$aix_libpath"; then
9024 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9025fi
252b5132 9026fi
81ecdfbb
RW
9027rm -f core conftest.err conftest.$ac_objext \
9028 conftest$ac_exeext conftest.$ac_ext
f2c621e4 9029if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
252b5132 9030
d7040cdb 9031 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
3725885a 9032 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
9033 else
9034 if test "$host_cpu" = ia64; then
9035 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9036 allow_undefined_flag="-z nodefs"
9037 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"
9038 else
9039 # Determine the default libpath from the value encoded in an
9040 # empty executable.
f2c621e4 9041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e 9042/* end confdefs.h. */
d7040cdb
SE
9043
9044int
9045main ()
9046{
9047
9048 ;
9049 return 0;
9050}
42ecbf5e 9051_ACEOF
81ecdfbb 9052if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 9053
f2c621e4
AS
9054lt_aix_libpath_sed='
9055 /Import File Strings/,/^$/ {
9056 /^0/ {
9057 s/^0 *\(.*\)$/\1/
9058 p
9059 }
9060 }'
9061aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9062# Check for a 64-bit object if we didn't find anything.
9063if test -z "$aix_libpath"; then
9064 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9065fi
252b5132 9066fi
81ecdfbb
RW
9067rm -f core conftest.err conftest.$ac_objext \
9068 conftest$ac_exeext conftest.$ac_ext
f2c621e4 9069if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
d7040cdb
SE
9070
9071 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9072 # Warning - without using the other run time loading flags,
9073 # -berok will link without error, but may produce a broken library.
9074 no_undefined_flag=' ${wl}-bernotok'
9075 allow_undefined_flag=' ${wl}-berok'
3725885a
RW
9076 if test "$with_gnu_ld" = yes; then
9077 # We only use this code for GNU lds that support --whole-archive.
9078 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9079 else
9080 # Exported symbols can be pulled into shared objects from archives
9081 whole_archive_flag_spec='$convenience'
9082 fi
d7040cdb
SE
9083 archive_cmds_need_lc=yes
9084 # This is similar to how AIX traditionally builds its shared libraries.
9085 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'
9086 fi
9087 fi
9088 ;;
42ecbf5e 9089
d7040cdb 9090 amigaos*)
718a6fd8
SE
9091 case $host_cpu in
9092 powerpc)
9093 # see comment about AmigaOS4 .so support
9094 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9095 archive_expsym_cmds=''
9096 ;;
9097 m68k)
9098 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)'
9099 hardcode_libdir_flag_spec='-L$libdir'
9100 hardcode_minus_L=yes
9101 ;;
9102 esac
d7040cdb 9103 ;;
252b5132 9104
d7040cdb
SE
9105 bsdi[45]*)
9106 export_dynamic_flag_spec=-rdynamic
9107 ;;
252b5132 9108
718a6fd8 9109 cygwin* | mingw* | pw32* | cegcc*)
d7040cdb
SE
9110 # When not using gcc, we currently assume that we are using
9111 # Microsoft Visual C++.
9112 # hardcode_libdir_flag_spec is actually meaningless, as there is
9113 # no search path for DLLs.
f2c621e4
AS
9114 hardcode_libdir_flag_spec=' '
9115 allow_undefined_flag=unsupported
9116 # Tell ltmain to make .lib files, not .a files.
9117 libext=lib
9118 # Tell ltmain to make .dll files, not .so files.
9119 shrext_cmds=".dll"
9120 # FIXME: Setting linknames here is a bad hack.
9121 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9122 # The linker will automatically build a .lib file if we build a DLL.
9123 old_archive_from_new_cmds='true'
9124 # FIXME: Should let the user specify the lib program.
9125 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9126 fix_srcfile_path='`cygpath -w "$srcfile"`'
9127 enable_shared_with_static_runtimes=yes
d7040cdb 9128 ;;
252b5132 9129
d7040cdb 9130 darwin* | rhapsody*)
c46f8c51 9131
718a6fd8
SE
9132
9133 archive_cmds_need_lc=no
9134 hardcode_direct=no
9135 hardcode_automatic=yes
9136 hardcode_shlibpath_var=unsupported
3725885a
RW
9137 if test "$lt_cv_ld_force_load" = "yes"; then
9138 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\"`'
9139 else
9140 whole_archive_flag_spec=''
9141 fi
718a6fd8
SE
9142 link_all_deplibs=yes
9143 allow_undefined_flag="$_lt_dar_allow_undefined"
9144 case $cc_basename in
9145 ifort*) _lt_dar_can_shared=yes ;;
9146 *) _lt_dar_can_shared=$GCC ;;
9147 esac
9148 if test "$_lt_dar_can_shared" = "yes"; then
3725885a 9149 output_verbose_link_cmd=func_echo_all
718a6fd8
SE
9150 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9151 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9152 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}"
9153 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}"
9154
9155 else
9156 ld_shlibs=no
9157 fi
9158
d7040cdb 9159 ;;
42ecbf5e 9160
d7040cdb
SE
9161 dgux*)
9162 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9163 hardcode_libdir_flag_spec='-L$libdir'
9164 hardcode_shlibpath_var=no
9165 ;;
252b5132 9166
d7040cdb
SE
9167 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9168 # support. Future versions do this automatically, but an explicit c++rt0.o
9169 # does not break anything, and helps significantly (at the cost of a little
9170 # extra space).
9171 freebsd2.2*)
9172 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9173 hardcode_libdir_flag_spec='-R$libdir'
9174 hardcode_direct=yes
9175 hardcode_shlibpath_var=no
9176 ;;
252b5132 9177
d7040cdb 9178 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6d2920c8 9179 freebsd2.*)
d7040cdb
SE
9180 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9181 hardcode_direct=yes
9182 hardcode_minus_L=yes
9183 hardcode_shlibpath_var=no
9184 ;;
42ecbf5e 9185
d7040cdb
SE
9186 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9187 freebsd* | dragonfly*)
f2c621e4 9188 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
d7040cdb
SE
9189 hardcode_libdir_flag_spec='-R$libdir'
9190 hardcode_direct=yes
9191 hardcode_shlibpath_var=no
9192 ;;
252b5132 9193
d7040cdb
SE
9194 hpux9*)
9195 if test "$GCC" = yes; then
f2c621e4 9196 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
9197 else
9198 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'
9199 fi
9200 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9201 hardcode_libdir_separator=:
9202 hardcode_direct=yes
9203
9204 # hardcode_minus_L: Not really in the search PATH,
9205 # but as the default location of the library.
9206 hardcode_minus_L=yes
9207 export_dynamic_flag_spec='${wl}-E'
9208 ;;
20e95c23 9209
d7040cdb 9210 hpux10*)
3725885a 9211 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
f2c621e4 9212 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
d7040cdb
SE
9213 else
9214 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9215 fi
9216 if test "$with_gnu_ld" = no; then
9217 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9218 hardcode_libdir_flag_spec_ld='+b $libdir'
9219 hardcode_libdir_separator=:
9220 hardcode_direct=yes
9221 hardcode_direct_absolute=yes
9222 export_dynamic_flag_spec='${wl}-E'
9223 # hardcode_minus_L: Not really in the search PATH,
9224 # but as the default location of the library.
9225 hardcode_minus_L=yes
9226 fi
9227 ;;
20e95c23 9228
d7040cdb 9229 hpux11*)
3725885a 9230 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
d7040cdb
SE
9231 case $host_cpu in
9232 hppa*64*)
9233 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9234 ;;
9235 ia64*)
f2c621e4 9236 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
d7040cdb
SE
9237 ;;
9238 *)
f2c621e4 9239 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
d7040cdb
SE
9240 ;;
9241 esac
9242 else
9243 case $host_cpu in
9244 hppa*64*)
9245 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9246 ;;
9247 ia64*)
9248 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9249 ;;
9250 *)
3725885a
RW
9251
9252 # Older versions of the 11.00 compiler do not understand -b yet
9253 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9255$as_echo_n "checking if $CC understands -b... " >&6; }
d0ac1c44 9256if ${lt_cv_prog_compiler__b+:} false; then :
3725885a
RW
9257 $as_echo_n "(cached) " >&6
9258else
9259 lt_cv_prog_compiler__b=no
9260 save_LDFLAGS="$LDFLAGS"
9261 LDFLAGS="$LDFLAGS -b"
9262 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9263 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9264 # The linker can only warn and ignore the option if not recognized
9265 # So say no if there are warnings
9266 if test -s conftest.err; then
9267 # Append any errors to the config.log.
9268 cat conftest.err 1>&5
9269 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9270 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9271 if diff conftest.exp conftest.er2 >/dev/null; then
9272 lt_cv_prog_compiler__b=yes
9273 fi
9274 else
9275 lt_cv_prog_compiler__b=yes
9276 fi
9277 fi
9278 $RM -r conftest*
9279 LDFLAGS="$save_LDFLAGS"
9280
9281fi
9282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9283$as_echo "$lt_cv_prog_compiler__b" >&6; }
9284
9285if test x"$lt_cv_prog_compiler__b" = xyes; then
9286 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9287else
9288 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9289fi
9290
d7040cdb
SE
9291 ;;
9292 esac
9293 fi
9294 if test "$with_gnu_ld" = no; then
9295 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9296 hardcode_libdir_separator=:
9297
9298 case $host_cpu in
9299 hppa*64*|ia64*)
9300 hardcode_direct=no
9301 hardcode_shlibpath_var=no
9302 ;;
9303 *)
9304 hardcode_direct=yes
9305 hardcode_direct_absolute=yes
9306 export_dynamic_flag_spec='${wl}-E'
9307
9308 # hardcode_minus_L: Not really in the search PATH,
9309 # but as the default location of the library.
9310 hardcode_minus_L=yes
9311 ;;
9312 esac
9313 fi
9314 ;;
9315
9316 irix5* | irix6* | nonstopux*)
9317 if test "$GCC" = yes; then
f2c621e4 9318 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
9319 # Try to use the -exported_symbol ld option, if it does not
9320 # work, assume that -exports_file does not work either and
9321 # implicitly export all symbols.
f2c621e4
AS
9322 save_LDFLAGS="$LDFLAGS"
9323 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
81ecdfbb 9325/* end confdefs.h. */
f2c621e4 9326int foo(void) {}
42ecbf5e 9327_ACEOF
81ecdfbb 9328if ac_fn_c_try_link "$LINENO"; then :
f2c621e4
AS
9329 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'
9330
42ecbf5e 9331fi
81ecdfbb
RW
9332rm -f core conftest.err conftest.$ac_objext \
9333 conftest$ac_exeext conftest.$ac_ext
f2c621e4 9334 LDFLAGS="$save_LDFLAGS"
d7040cdb 9335 else
3725885a
RW
9336 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'
9337 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
9338 fi
9339 archive_cmds_need_lc='no'
9340 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9341 hardcode_libdir_separator=:
9342 inherit_rpath=yes
9343 link_all_deplibs=yes
9344 ;;
42ecbf5e 9345
d7040cdb
SE
9346 netbsd*)
9347 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9348 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9349 else
9350 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9351 fi
9352 hardcode_libdir_flag_spec='-R$libdir'
9353 hardcode_direct=yes
9354 hardcode_shlibpath_var=no
9355 ;;
42ecbf5e 9356
d7040cdb
SE
9357 newsos6)
9358 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9359 hardcode_direct=yes
9360 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9361 hardcode_libdir_separator=:
9362 hardcode_shlibpath_var=no
9363 ;;
42ecbf5e 9364
d7040cdb
SE
9365 *nto* | *qnx*)
9366 ;;
252b5132 9367
d7040cdb 9368 openbsd*)
718a6fd8
SE
9369 if test -f /usr/libexec/ld.so; then
9370 hardcode_direct=yes
9371 hardcode_shlibpath_var=no
9372 hardcode_direct_absolute=yes
9373 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
d7040cdb 9374 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
718a6fd8 9375 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
d7040cdb 9376 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
718a6fd8
SE
9377 export_dynamic_flag_spec='${wl}-E'
9378 else
9379 case $host_os in
9380 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9381 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9382 hardcode_libdir_flag_spec='-R$libdir'
9383 ;;
9384 *)
9385 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9386 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9387 ;;
9388 esac
9389 fi
9390 else
9391 ld_shlibs=no
d7040cdb
SE
9392 fi
9393 ;;
252b5132 9394
d7040cdb
SE
9395 os2*)
9396 hardcode_libdir_flag_spec='-L$libdir'
9397 hardcode_minus_L=yes
9398 allow_undefined_flag=unsupported
3725885a 9399 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
9400 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9401 ;;
2481e6a2 9402
d7040cdb
SE
9403 osf3*)
9404 if test "$GCC" = yes; then
9405 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3725885a 9406 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
9407 else
9408 allow_undefined_flag=' -expect_unresolved \*'
3725885a 9409 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
9410 fi
9411 archive_cmds_need_lc='no'
9412 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9413 hardcode_libdir_separator=:
9414 ;;
42ecbf5e 9415
d7040cdb
SE
9416 osf4* | osf5*) # as osf3* with the addition of -msym flag
9417 if test "$GCC" = yes; then
9418 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
f2c621e4 9419 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
9420 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9421 else
9422 allow_undefined_flag=' -expect_unresolved \*'
3725885a 9423 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 9424 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 9425 $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 9426
d7040cdb
SE
9427 # Both c and cxx compiler support -rpath directly
9428 hardcode_libdir_flag_spec='-rpath $libdir'
9429 fi
9430 archive_cmds_need_lc='no'
9431 hardcode_libdir_separator=:
9432 ;;
9433
9434 solaris*)
9435 no_undefined_flag=' -z defs'
9436 if test "$GCC" = yes; then
9437 wlarc='${wl}'
f2c621e4 9438 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
d7040cdb 9439 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
f2c621e4 9440 $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
9441 else
9442 case `$CC -V 2>&1` in
9443 *"Compilers 5.0"*)
9444 wlarc=''
9445 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9446 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9447 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9448 ;;
9449 *)
9450 wlarc='${wl}'
9451 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9452 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9453 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9454 ;;
9455 esac
9456 fi
9457 hardcode_libdir_flag_spec='-R$libdir'
9458 hardcode_shlibpath_var=no
9459 case $host_os in
9460 solaris2.[0-5] | solaris2.[0-5].*) ;;
9461 *)
9462 # The compiler driver will combine and reorder linker options,
9463 # but understands `-z linker_flag'. GCC discards it without `$wl',
9464 # but is careful enough not to reorder.
9465 # Supported since Solaris 2.6 (maybe 2.5.1?)
9466 if test "$GCC" = yes; then
9467 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9468 else
9469 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9470 fi
9471 ;;
9472 esac
9473 link_all_deplibs=yes
9474 ;;
9475
9476 sunos4*)
9477 if test "x$host_vendor" = xsequent; then
9478 # Use $CC to link under sequent, because it throws in some extra .o
9479 # files that make .init and .fini sections work.
9480 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9481 else
9482 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9483 fi
9484 hardcode_libdir_flag_spec='-L$libdir'
9485 hardcode_direct=yes
9486 hardcode_minus_L=yes
9487 hardcode_shlibpath_var=no
9488 ;;
9489
9490 sysv4)
9491 case $host_vendor in
9492 sni)
9493 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9494 hardcode_direct=yes # is this really true???
9495 ;;
9496 siemens)
9497 ## LD is ld it makes a PLAMLIB
9498 ## CC just makes a GrossModule.
9499 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9500 reload_cmds='$CC -r -o $output$reload_objs'
9501 hardcode_direct=no
9502 ;;
9503 motorola)
9504 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9505 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9506 ;;
9507 esac
9508 runpath_var='LD_RUN_PATH'
9509 hardcode_shlibpath_var=no
9510 ;;
9511
9512 sysv4.3*)
9513 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9514 hardcode_shlibpath_var=no
9515 export_dynamic_flag_spec='-Bexport'
9516 ;;
9517
9518 sysv4*MP*)
9519 if test -d /usr/nec; then
9520 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9521 hardcode_shlibpath_var=no
9522 runpath_var=LD_RUN_PATH
9523 hardcode_runpath_var=yes
9524 ld_shlibs=yes
9525 fi
9526 ;;
9527
9528 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9529 no_undefined_flag='${wl}-z,text'
9530 archive_cmds_need_lc=no
9531 hardcode_shlibpath_var=no
9532 runpath_var='LD_RUN_PATH'
9533
9534 if test "$GCC" = yes; then
9535 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9536 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9537 else
9538 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9539 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9540 fi
9541 ;;
9542
9543 sysv5* | sco3.2v5* | sco5v6*)
9544 # Note: We can NOT use -z defs as we might desire, because we do not
9545 # link with -lc, and that would cause any symbols used from libc to
9546 # always be unresolved, which means just about no library would
9547 # ever link correctly. If we're not using GNU ld we use -z text
9548 # though, which does catch some bad symbols but isn't as heavy-handed
9549 # as -z defs.
9550 no_undefined_flag='${wl}-z,text'
9551 allow_undefined_flag='${wl}-z,nodefs'
9552 archive_cmds_need_lc=no
9553 hardcode_shlibpath_var=no
9554 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9555 hardcode_libdir_separator=':'
9556 link_all_deplibs=yes
9557 export_dynamic_flag_spec='${wl}-Bexport'
9558 runpath_var='LD_RUN_PATH'
9559
9560 if test "$GCC" = yes; then
9561 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9562 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9563 else
9564 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9565 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9566 fi
9567 ;;
9568
9569 uts4*)
9570 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9571 hardcode_libdir_flag_spec='-L$libdir'
9572 hardcode_shlibpath_var=no
9573 ;;
9574
9575 *)
9576 ld_shlibs=no
9577 ;;
9578 esac
9579
9580 if test x$host_vendor = xsni; then
9581 case $host in
9582 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9583 export_dynamic_flag_spec='${wl}-Blargedynsym'
9584 ;;
9585 esac
9586 fi
9587 fi
9588
81ecdfbb
RW
9589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9590$as_echo "$ld_shlibs" >&6; }
d7040cdb
SE
9591test "$ld_shlibs" = no && can_build_shared=no
9592
9593with_gnu_ld=$with_gnu_ld
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609#
9610# Do we need to explicitly link libc?
9611#
9612case "x$archive_cmds_need_lc" in
9613x|xyes)
9614 # Assume -lc should be added
9615 archive_cmds_need_lc=yes
9616
9617 if test "$enable_shared" = yes && test "$GCC" = yes; then
9618 case $archive_cmds in
9619 *'~'*)
9620 # FIXME: we may have to deal with multi-command sequences.
9621 ;;
9622 '$CC '*)
9623 # Test whether the compiler implicitly links with -lc since on some
9624 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9625 # to ld, don't add -lc before -lgcc.
81ecdfbb
RW
9626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9627$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
d0ac1c44 9628if ${lt_cv_archive_cmds_need_lc+:} false; then :
81ecdfbb 9629 $as_echo_n "(cached) " >&6
39144654
RW
9630else
9631 $RM conftest*
9632 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 9633
81ecdfbb 9634 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
d7040cdb 9635 (eval $ac_compile) 2>&5
20e95c23 9636 ac_status=$?
81ecdfbb
RW
9637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9638 test $ac_status = 0; } 2>conftest.err; then
39144654
RW
9639 soname=conftest
9640 lib=conftest
9641 libobjs=conftest.$ac_objext
9642 deplibs=
9643 wl=$lt_prog_compiler_wl
9644 pic_flag=$lt_prog_compiler_pic
9645 compiler_flags=-v
9646 linker_flags=-v
9647 verstring=
9648 output_objdir=.
9649 libname=conftest
9650 lt_save_allow_undefined_flag=$allow_undefined_flag
9651 allow_undefined_flag=
81ecdfbb 9652 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
d7040cdb 9653 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20e95c23 9654 ac_status=$?
81ecdfbb
RW
9655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9656 test $ac_status = 0; }
39144654
RW
9657 then
9658 lt_cv_archive_cmds_need_lc=no
9659 else
9660 lt_cv_archive_cmds_need_lc=yes
9661 fi
9662 allow_undefined_flag=$lt_save_allow_undefined_flag
9663 else
9664 cat conftest.err 1>&5
9665 fi
9666 $RM conftest*
9667
9668fi
81ecdfbb
RW
9669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9670$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
39144654 9671 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
d7040cdb
SE
9672 ;;
9673 esac
9674 fi
9675 ;;
9676esac
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
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
81ecdfbb
RW
9834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9835$as_echo_n "checking dynamic linker characteristics... " >&6; }
718a6fd8
SE
9836
9837if test "$GCC" = yes; then
d7040cdb
SE
9838 case $host_os in
9839 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9840 *) lt_awk_arg="/^libraries:/" ;;
9841 esac
3725885a
RW
9842 case $host_os in
9843 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9844 *) lt_sed_strip_eq="s,=/,/,g" ;;
9845 esac
9846 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9847 case $lt_search_path_spec in
9848 *\;*)
d7040cdb
SE
9849 # if the path contains ";" then we assume it to be the separator
9850 # otherwise default to the standard path separator (i.e. ":") - it is
9851 # assumed that no part of a normal pathname contains ";" but that should
9852 # okay in the real world where ";" in dirpaths is itself problematic.
3725885a
RW
9853 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9854 ;;
9855 *)
9856 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9857 ;;
9858 esac
d7040cdb
SE
9859 # Ok, now we have the path, separated by spaces, we can step through it
9860 # and add multilib dir if necessary.
9861 lt_tmp_lt_search_path_spec=
9862 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9863 for lt_sys_path in $lt_search_path_spec; do
9864 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9865 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9866 else
9867 test -d "$lt_sys_path" && \
9868 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9869 fi
9870 done
3725885a 9871 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
d7040cdb
SE
9872BEGIN {RS=" "; FS="/|\n";} {
9873 lt_foo="";
9874 lt_count=0;
9875 for (lt_i = NF; lt_i > 0; lt_i--) {
9876 if ($lt_i != "" && $lt_i != ".") {
9877 if ($lt_i == "..") {
9878 lt_count++;
9879 } else {
9880 if (lt_count == 0) {
9881 lt_foo="/" $lt_i lt_foo;
9882 } else {
9883 lt_count--;
9884 }
9885 }
9886 }
9887 }
9888 if (lt_foo != "") { lt_freq[lt_foo]++; }
9889 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9890}'`
3725885a
RW
9891 # AWK program above erroneously prepends '/' to C:/dos/paths
9892 # for these hosts.
9893 case $host_os in
9894 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9895 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9896 esac
9897 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
d7040cdb
SE
9898else
9899 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9900fi
9901library_names_spec=
9902libname_spec='lib$name'
9903soname_spec=
9904shrext_cmds=".so"
9905postinstall_cmds=
9906postuninstall_cmds=
9907finish_cmds=
9908finish_eval=
9909shlibpath_var=
9910shlibpath_overrides_runpath=unknown
9911version_type=none
9912dynamic_linker="$host_os ld.so"
9913sys_lib_dlsearch_path_spec="/lib /usr/lib"
9914need_lib_prefix=unknown
9915hardcode_into_libs=no
9916
9917# when you set need_version to no, make sure it does not cause -set_version
9918# flags to be left without arguments
9919need_version=unknown
9920
9921case $host_os in
9922aix3*)
9923 version_type=linux
9924 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9925 shlibpath_var=LIBPATH
9926
9927 # AIX 3 has no versioning support, so we append a major version to the name.
9928 soname_spec='${libname}${release}${shared_ext}$major'
9929 ;;
9930
50e7d84b 9931aix[4-9]*)
d7040cdb
SE
9932 version_type=linux
9933 need_lib_prefix=no
9934 need_version=no
9935 hardcode_into_libs=yes
9936 if test "$host_cpu" = ia64; then
9937 # AIX 5 supports IA64
9938 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9939 shlibpath_var=LD_LIBRARY_PATH
9940 else
9941 # With GCC up to 2.95.x, collect2 would create an import file
9942 # for dependence libraries. The import file would start with
9943 # the line `#! .'. This would cause the generated library to
9944 # depend on `.', always an invalid library. This was fixed in
9945 # development snapshots of GCC prior to 3.0.
9946 case $host_os in
9947 aix4 | aix4.[01] | aix4.[01].*)
9948 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9949 echo ' yes '
9950 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9951 :
9952 else
9953 can_build_shared=no
9954 fi
9955 ;;
9956 esac
9957 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9958 # soname into executable. Probably we can add versioning support to
9959 # collect2, so additional links can be useful in future.
9960 if test "$aix_use_runtimelinking" = yes; then
9961 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9962 # instead of lib<name>.a to let people know that these are not
9963 # typical AIX shared libraries.
9964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9965 else
9966 # We preserve .a as extension for shared libraries through AIX4.2
9967 # and later when we are not doing run time linking.
9968 library_names_spec='${libname}${release}.a $libname.a'
9969 soname_spec='${libname}${release}${shared_ext}$major'
9970 fi
9971 shlibpath_var=LIBPATH
9972 fi
9973 ;;
9974
9975amigaos*)
718a6fd8
SE
9976 case $host_cpu in
9977 powerpc)
9978 # Since July 2007 AmigaOS4 officially supports .so libraries.
9979 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9981 ;;
9982 m68k)
d7040cdb
SE
9983 library_names_spec='$libname.ixlibrary $libname.a'
9984 # Create ${libname}_ixlibrary.a entries in /sys/libs.
3725885a 9985 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
9986 ;;
9987 esac
d7040cdb
SE
9988 ;;
9989
9990beos*)
9991 library_names_spec='${libname}${shared_ext}'
9992 dynamic_linker="$host_os ld.so"
9993 shlibpath_var=LIBRARY_PATH
9994 ;;
9995
9996bsdi[45]*)
9997 version_type=linux
9998 need_version=no
9999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10000 soname_spec='${libname}${release}${shared_ext}$major'
10001 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10002 shlibpath_var=LD_LIBRARY_PATH
10003 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10004 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10005 # the default ld.so.conf also contains /usr/contrib/lib and
10006 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10007 # libtool to hard-code these into programs
10008 ;;
10009
718a6fd8 10010cygwin* | mingw* | pw32* | cegcc*)
d7040cdb
SE
10011 version_type=windows
10012 shrext_cmds=".dll"
10013 need_version=no
10014 need_lib_prefix=no
10015
f2c621e4
AS
10016 case $GCC,$host_os in
10017 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
d7040cdb
SE
10018 library_names_spec='$libname.dll.a'
10019 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10020 postinstall_cmds='base_file=`basename \${file}`~
10021 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10022 dldir=$destdir/`dirname \$dlpath`~
10023 test -d \$dldir || mkdir -p \$dldir~
10024 $install_prog $dir/$dlname \$dldir/$dlname~
10025 chmod a+x \$dldir/$dlname~
10026 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10027 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10028 fi'
10029 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10030 dlpath=$dir/\$dldll~
10031 $RM \$dlpath'
10032 shlibpath_overrides_runpath=yes
10033
10034 case $host_os in
10035 cygwin*)
10036 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10037 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
3725885a
RW
10038
10039 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
d7040cdb 10040 ;;
718a6fd8 10041 mingw* | cegcc*)
d7040cdb
SE
10042 # MinGW DLLs use traditional 'lib' prefix
10043 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
d7040cdb
SE
10044 ;;
10045 pw32*)
10046 # pw32 DLLs use 'pw' prefix rather than 'lib'
10047 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10048 ;;
10049 esac
10050 ;;
10051
10052 *)
10053 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10054 ;;
10055 esac
f2c621e4 10056 dynamic_linker='Win32 ld.exe'
d7040cdb
SE
10057 # FIXME: first we should search . and the directory the executable is in
10058 shlibpath_var=PATH
10059 ;;
10060
10061darwin* | rhapsody*)
10062 dynamic_linker="$host_os dyld"
10063 version_type=darwin
10064 need_lib_prefix=no
10065 need_version=no
10066 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10067 soname_spec='${libname}${release}${major}$shared_ext'
10068 shlibpath_overrides_runpath=yes
10069 shlibpath_var=DYLD_LIBRARY_PATH
10070 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10071
10072 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10073 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10074 ;;
10075
10076dgux*)
10077 version_type=linux
10078 need_lib_prefix=no
10079 need_version=no
10080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10081 soname_spec='${libname}${release}${shared_ext}$major'
10082 shlibpath_var=LD_LIBRARY_PATH
10083 ;;
10084
d7040cdb
SE
10085freebsd* | dragonfly*)
10086 # DragonFly does not have aout. When/if they implement a new
10087 # versioning mechanism, adjust this.
10088 if test -x /usr/bin/objformat; then
10089 objformat=`/usr/bin/objformat`
10090 else
10091 case $host_os in
6d2920c8 10092 freebsd[23].*) objformat=aout ;;
d7040cdb
SE
10093 *) objformat=elf ;;
10094 esac
10095 fi
10096 version_type=freebsd-$objformat
10097 case $version_type in
10098 freebsd-elf*)
10099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10100 need_version=no
10101 need_lib_prefix=no
10102 ;;
10103 freebsd-*)
10104 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10105 need_version=yes
10106 ;;
10107 esac
10108 shlibpath_var=LD_LIBRARY_PATH
10109 case $host_os in
6d2920c8 10110 freebsd2.*)
d7040cdb
SE
10111 shlibpath_overrides_runpath=yes
10112 ;;
10113 freebsd3.[01]* | freebsdelf3.[01]*)
10114 shlibpath_overrides_runpath=yes
10115 hardcode_into_libs=yes
10116 ;;
10117 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10118 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10119 shlibpath_overrides_runpath=no
10120 hardcode_into_libs=yes
10121 ;;
10122 *) # from 4.6 on, and DragonFly
10123 shlibpath_overrides_runpath=yes
10124 hardcode_into_libs=yes
10125 ;;
10126 esac
10127 ;;
10128
3725885a
RW
10129haiku*)
10130 version_type=linux
10131 need_lib_prefix=no
10132 need_version=no
10133 dynamic_linker="$host_os runtime_loader"
10134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10135 soname_spec='${libname}${release}${shared_ext}$major'
10136 shlibpath_var=LIBRARY_PATH
10137 shlibpath_overrides_runpath=yes
f2c621e4 10138 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
3725885a
RW
10139 hardcode_into_libs=yes
10140 ;;
10141
d7040cdb
SE
10142hpux9* | hpux10* | hpux11*)
10143 # Give a soname corresponding to the major version so that dld.sl refuses to
10144 # link against other versions.
10145 version_type=sunos
10146 need_lib_prefix=no
10147 need_version=no
10148 case $host_cpu in
10149 ia64*)
10150 shrext_cmds='.so'
10151 hardcode_into_libs=yes
10152 dynamic_linker="$host_os dld.so"
10153 shlibpath_var=LD_LIBRARY_PATH
10154 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10156 soname_spec='${libname}${release}${shared_ext}$major'
10157 if test "X$HPUX_IA64_MODE" = X32; then
10158 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10159 else
10160 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10161 fi
10162 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10163 ;;
10164 hppa*64*)
10165 shrext_cmds='.sl'
10166 hardcode_into_libs=yes
10167 dynamic_linker="$host_os dld.sl"
10168 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10169 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10171 soname_spec='${libname}${release}${shared_ext}$major'
10172 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10173 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10174 ;;
10175 *)
10176 shrext_cmds='.sl'
10177 dynamic_linker="$host_os dld.sl"
10178 shlibpath_var=SHLIB_PATH
10179 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10181 soname_spec='${libname}${release}${shared_ext}$major'
10182 ;;
10183 esac
3725885a 10184 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
d7040cdb 10185 postinstall_cmds='chmod 555 $lib'
3725885a
RW
10186 # or fails outright, so override atomically:
10187 install_override_mode=555
d7040cdb
SE
10188 ;;
10189
10190interix[3-9]*)
10191 version_type=linux
10192 need_lib_prefix=no
10193 need_version=no
10194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10195 soname_spec='${libname}${release}${shared_ext}$major'
10196 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10197 shlibpath_var=LD_LIBRARY_PATH
10198 shlibpath_overrides_runpath=no
10199 hardcode_into_libs=yes
10200 ;;
10201
10202irix5* | irix6* | nonstopux*)
10203 case $host_os in
10204 nonstopux*) version_type=nonstopux ;;
10205 *)
10206 if test "$lt_cv_prog_gnu_ld" = yes; then
10207 version_type=linux
10208 else
10209 version_type=irix
10210 fi ;;
10211 esac
10212 need_lib_prefix=no
10213 need_version=no
10214 soname_spec='${libname}${release}${shared_ext}$major'
10215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10216 case $host_os in
10217 irix5* | nonstopux*)
10218 libsuff= shlibsuff=
10219 ;;
10220 *)
10221 case $LD in # libtool.m4 will add one of these switches to LD
10222 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10223 libsuff= shlibsuff= libmagic=32-bit;;
10224 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10225 libsuff=32 shlibsuff=N32 libmagic=N32;;
10226 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10227 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10228 *) libsuff= shlibsuff= libmagic=never-match;;
10229 esac
10230 ;;
10231 esac
10232 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10233 shlibpath_overrides_runpath=no
10234 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10235 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10236 hardcode_into_libs=yes
10237 ;;
10238
10239# No shared lib support for Linux oldld, aout, or coff.
10240linux*oldld* | linux*aout* | linux*coff*)
10241 dynamic_linker=no
10242 ;;
10243
10244# This must be Linux ELF.
f4782128 10245linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
d7040cdb
SE
10246 version_type=linux
10247 need_lib_prefix=no
10248 need_version=no
10249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10250 soname_spec='${libname}${release}${shared_ext}$major'
10251 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10252 shlibpath_var=LD_LIBRARY_PATH
10253 shlibpath_overrides_runpath=no
39144654 10254
d7040cdb 10255 # Some binutils ld are patched to set DT_RUNPATH
d0ac1c44 10256 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
81ecdfbb 10257 $as_echo_n "(cached) " >&6
39144654
RW
10258else
10259 lt_cv_shlibpath_overrides_runpath=no
10260 save_LDFLAGS=$LDFLAGS
10261 save_libdir=$libdir
10262 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10263 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
81ecdfbb 10264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
10265/* end confdefs.h. */
10266
10267int
10268main ()
10269{
10270
10271 ;
10272 return 0;
10273}
10274_ACEOF
81ecdfbb
RW
10275if ac_fn_c_try_link "$LINENO"; then :
10276 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
39144654 10277 lt_cv_shlibpath_overrides_runpath=yes
d7040cdb 10278fi
d7040cdb 10279fi
81ecdfbb
RW
10280rm -f core conftest.err conftest.$ac_objext \
10281 conftest$ac_exeext conftest.$ac_ext
39144654
RW
10282 LDFLAGS=$save_LDFLAGS
10283 libdir=$save_libdir
10284
10285fi
10286
10287 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
d7040cdb
SE
10288
10289 # This implies no fast_install, which is unacceptable.
10290 # Some rework will be needed to allow for fast_install
10291 # before this can be enabled.
10292 hardcode_into_libs=yes
10293
10294 # Append ld.so.conf contents to the search path
10295 if test -f /etc/ld.so.conf; then
3725885a 10296 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 10297 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
d7040cdb
SE
10298 fi
10299
10300 # We used to test for /lib/ld.so.1 and disable shared libraries on
10301 # powerpc, because MkLinux only supported shared libraries with the
10302 # GNU dynamic linker. Since this was broken with cross compilers,
10303 # most powerpc-linux boxes support dynamic linking these days and
10304 # people can always --disable-shared, the test was removed, and we
10305 # assume the GNU/Linux dynamic linker is in use.
10306 dynamic_linker='GNU/Linux ld.so'
10307 ;;
10308
10309netbsd*)
10310 version_type=sunos
10311 need_lib_prefix=no
10312 need_version=no
10313 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10315 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10316 dynamic_linker='NetBSD (a.out) ld.so'
10317 else
10318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10319 soname_spec='${libname}${release}${shared_ext}$major'
10320 dynamic_linker='NetBSD ld.elf_so'
10321 fi
10322 shlibpath_var=LD_LIBRARY_PATH
10323 shlibpath_overrides_runpath=yes
10324 hardcode_into_libs=yes
10325 ;;
10326
10327newsos6)
10328 version_type=linux
10329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10330 shlibpath_var=LD_LIBRARY_PATH
10331 shlibpath_overrides_runpath=yes
10332 ;;
10333
10334*nto* | *qnx*)
10335 version_type=qnx
10336 need_lib_prefix=no
10337 need_version=no
10338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10339 soname_spec='${libname}${release}${shared_ext}$major'
10340 shlibpath_var=LD_LIBRARY_PATH
10341 shlibpath_overrides_runpath=no
10342 hardcode_into_libs=yes
10343 dynamic_linker='ldqnx.so'
10344 ;;
10345
10346openbsd*)
10347 version_type=sunos
10348 sys_lib_dlsearch_path_spec="/usr/lib"
10349 need_lib_prefix=no
10350 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10351 case $host_os in
10352 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10353 *) need_version=no ;;
10354 esac
10355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10356 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10357 shlibpath_var=LD_LIBRARY_PATH
10358 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10359 case $host_os in
10360 openbsd2.[89] | openbsd2.[89].*)
10361 shlibpath_overrides_runpath=no
10362 ;;
10363 *)
10364 shlibpath_overrides_runpath=yes
10365 ;;
10366 esac
10367 else
10368 shlibpath_overrides_runpath=yes
10369 fi
10370 ;;
10371
10372os2*)
10373 libname_spec='$name'
10374 shrext_cmds=".dll"
10375 need_lib_prefix=no
10376 library_names_spec='$libname${shared_ext} $libname.a'
10377 dynamic_linker='OS/2 ld.exe'
10378 shlibpath_var=LIBPATH
10379 ;;
10380
10381osf3* | osf4* | osf5*)
10382 version_type=osf
10383 need_lib_prefix=no
10384 need_version=no
10385 soname_spec='${libname}${release}${shared_ext}$major'
10386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10387 shlibpath_var=LD_LIBRARY_PATH
10388 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10389 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10390 ;;
10391
10392rdos*)
10393 dynamic_linker=no
10394 ;;
10395
10396solaris*)
10397 version_type=linux
10398 need_lib_prefix=no
10399 need_version=no
10400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $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 # ldd complains unless libraries are executable
10406 postinstall_cmds='chmod +x $lib'
10407 ;;
10408
10409sunos4*)
10410 version_type=sunos
10411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10412 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10413 shlibpath_var=LD_LIBRARY_PATH
10414 shlibpath_overrides_runpath=yes
10415 if test "$with_gnu_ld" = yes; then
10416 need_lib_prefix=no
10417 fi
10418 need_version=yes
10419 ;;
10420
10421sysv4 | sysv4.3*)
10422 version_type=linux
10423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10424 soname_spec='${libname}${release}${shared_ext}$major'
10425 shlibpath_var=LD_LIBRARY_PATH
10426 case $host_vendor in
10427 sni)
10428 shlibpath_overrides_runpath=no
10429 need_lib_prefix=no
10430 runpath_var=LD_RUN_PATH
10431 ;;
10432 siemens)
10433 need_lib_prefix=no
10434 ;;
10435 motorola)
10436 need_lib_prefix=no
10437 need_version=no
10438 shlibpath_overrides_runpath=no
10439 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10440 ;;
10441 esac
10442 ;;
10443
10444sysv4*MP*)
10445 if test -d /usr/nec ;then
10446 version_type=linux
10447 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10448 soname_spec='$libname${shared_ext}.$major'
10449 shlibpath_var=LD_LIBRARY_PATH
10450 fi
10451 ;;
10452
10453sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10454 version_type=freebsd-elf
10455 need_lib_prefix=no
10456 need_version=no
10457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10458 soname_spec='${libname}${release}${shared_ext}$major'
10459 shlibpath_var=LD_LIBRARY_PATH
10460 shlibpath_overrides_runpath=yes
10461 hardcode_into_libs=yes
10462 if test "$with_gnu_ld" = yes; then
10463 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10464 else
10465 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10466 case $host_os in
10467 sco3.2v5*)
10468 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10469 ;;
10470 esac
10471 fi
10472 sys_lib_dlsearch_path_spec='/usr/lib'
10473 ;;
10474
10475tpf*)
10476 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10477 version_type=linux
10478 need_lib_prefix=no
10479 need_version=no
718a6fd8 10480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
d7040cdb
SE
10481 shlibpath_var=LD_LIBRARY_PATH
10482 shlibpath_overrides_runpath=no
10483 hardcode_into_libs=yes
10484 ;;
10485
10486uts4*)
10487 version_type=linux
10488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10489 soname_spec='${libname}${release}${shared_ext}$major'
10490 shlibpath_var=LD_LIBRARY_PATH
10491 ;;
10492
10493*)
10494 dynamic_linker=no
10495 ;;
10496esac
81ecdfbb
RW
10497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10498$as_echo "$dynamic_linker" >&6; }
d7040cdb
SE
10499test "$dynamic_linker" = no && can_build_shared=no
10500
10501variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10502if test "$GCC" = yes; then
10503 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10504fi
10505
718a6fd8
SE
10506if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10507 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10508fi
10509if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10510 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10511fi
10512
d7040cdb
SE
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
3725885a
RW
10593
10594
10595
10596
10597
d7040cdb
SE
10598
10599
10600
10601
10602
10603
81ecdfbb
RW
10604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10605$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
d7040cdb
SE
10606hardcode_action=
10607if test -n "$hardcode_libdir_flag_spec" ||
10608 test -n "$runpath_var" ||
10609 test "X$hardcode_automatic" = "Xyes" ; then
10610
10611 # We can hardcode non-existent directories.
10612 if test "$hardcode_direct" != no &&
10613 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10614 # have to relink, otherwise we might link with an installed library
10615 # when we should be linking with a yet-to-be-installed one
10616 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10617 test "$hardcode_minus_L" != no; then
10618 # Linking always hardcodes the temporary library directory.
10619 hardcode_action=relink
10620 else
10621 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10622 hardcode_action=immediate
10623 fi
10624else
10625 # We cannot hardcode anything, or else we can only hardcode existing
10626 # directories.
10627 hardcode_action=unsupported
10628fi
81ecdfbb
RW
10629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10630$as_echo "$hardcode_action" >&6; }
d7040cdb
SE
10631
10632if test "$hardcode_action" = relink ||
10633 test "$inherit_rpath" = yes; then
10634 # Fast installation is not supported
10635 enable_fast_install=no
10636elif test "$shlibpath_overrides_runpath" = yes ||
10637 test "$enable_shared" = no; then
10638 # Fast installation is not necessary
10639 enable_fast_install=needless
10640fi
10641
10642
10643
10644
10645
10646
10647 if test "x$enable_dlopen" != xyes; then
10648 enable_dlopen=unknown
10649 enable_dlopen_self=unknown
10650 enable_dlopen_self_static=unknown
10651else
10652 lt_cv_dlopen=no
10653 lt_cv_dlopen_libs=
10654
10655 case $host_os in
10656 beos*)
10657 lt_cv_dlopen="load_add_on"
10658 lt_cv_dlopen_libs=
10659 lt_cv_dlopen_self=yes
10660 ;;
10661
718a6fd8 10662 mingw* | pw32* | cegcc*)
d7040cdb
SE
10663 lt_cv_dlopen="LoadLibrary"
10664 lt_cv_dlopen_libs=
10665 ;;
10666
10667 cygwin*)
10668 lt_cv_dlopen="dlopen"
10669 lt_cv_dlopen_libs=
10670 ;;
10671
10672 darwin*)
10673 # if libdl is installed we need to link against it
81ecdfbb
RW
10674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10675$as_echo_n "checking for dlopen in -ldl... " >&6; }
d0ac1c44 10676if ${ac_cv_lib_dl_dlopen+:} false; then :
81ecdfbb 10677 $as_echo_n "(cached) " >&6
d7040cdb
SE
10678else
10679 ac_check_lib_save_LIBS=$LIBS
10680LIBS="-ldl $LIBS"
81ecdfbb 10681cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
10682/* end confdefs.h. */
10683
81ecdfbb
RW
10684/* Override any GCC internal prototype to avoid an error.
10685 Use char because int might match the return type of a GCC
10686 builtin and then its argument prototype would still apply. */
d7040cdb
SE
10687#ifdef __cplusplus
10688extern "C"
10689#endif
d7040cdb
SE
10690char dlopen ();
10691int
10692main ()
10693{
81ecdfbb 10694return dlopen ();
d7040cdb
SE
10695 ;
10696 return 0;
10697}
10698_ACEOF
81ecdfbb 10699if ac_fn_c_try_link "$LINENO"; then :
d7040cdb
SE
10700 ac_cv_lib_dl_dlopen=yes
10701else
81ecdfbb 10702 ac_cv_lib_dl_dlopen=no
d7040cdb 10703fi
81ecdfbb
RW
10704rm -f core conftest.err conftest.$ac_objext \
10705 conftest$ac_exeext conftest.$ac_ext
d7040cdb
SE
10706LIBS=$ac_check_lib_save_LIBS
10707fi
81ecdfbb
RW
10708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10709$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
d0ac1c44 10710if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
d7040cdb
SE
10711 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10712else
10713
10714 lt_cv_dlopen="dyld"
10715 lt_cv_dlopen_libs=
10716 lt_cv_dlopen_self=yes
10717
10718fi
10719
10720 ;;
10721
10722 *)
81ecdfbb 10723 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
d0ac1c44 10724if test "x$ac_cv_func_shl_load" = xyes; then :
d7040cdb
SE
10725 lt_cv_dlopen="shl_load"
10726else
81ecdfbb
RW
10727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10728$as_echo_n "checking for shl_load in -ldld... " >&6; }
d0ac1c44 10729if ${ac_cv_lib_dld_shl_load+:} false; then :
81ecdfbb 10730 $as_echo_n "(cached) " >&6
d7040cdb
SE
10731else
10732 ac_check_lib_save_LIBS=$LIBS
10733LIBS="-ldld $LIBS"
81ecdfbb 10734cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
10735/* end confdefs.h. */
10736
81ecdfbb
RW
10737/* Override any GCC internal prototype to avoid an error.
10738 Use char because int might match the return type of a GCC
10739 builtin and then its argument prototype would still apply. */
d7040cdb
SE
10740#ifdef __cplusplus
10741extern "C"
10742#endif
d7040cdb
SE
10743char shl_load ();
10744int
10745main ()
10746{
81ecdfbb 10747return shl_load ();
d7040cdb
SE
10748 ;
10749 return 0;
10750}
10751_ACEOF
81ecdfbb 10752if ac_fn_c_try_link "$LINENO"; then :
d7040cdb
SE
10753 ac_cv_lib_dld_shl_load=yes
10754else
81ecdfbb 10755 ac_cv_lib_dld_shl_load=no
d7040cdb 10756fi
81ecdfbb
RW
10757rm -f core conftest.err conftest.$ac_objext \
10758 conftest$ac_exeext conftest.$ac_ext
d7040cdb
SE
10759LIBS=$ac_check_lib_save_LIBS
10760fi
81ecdfbb
RW
10761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10762$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
d0ac1c44 10763if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
718a6fd8 10764 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
d7040cdb 10765else
81ecdfbb 10766 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
d0ac1c44 10767if test "x$ac_cv_func_dlopen" = xyes; then :
81ecdfbb 10768 lt_cv_dlopen="dlopen"
d7040cdb 10769else
81ecdfbb
RW
10770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10771$as_echo_n "checking for dlopen in -ldl... " >&6; }
d0ac1c44 10772if ${ac_cv_lib_dl_dlopen+:} false; then :
81ecdfbb
RW
10773 $as_echo_n "(cached) " >&6
10774else
10775 ac_check_lib_save_LIBS=$LIBS
10776LIBS="-ldl $LIBS"
10777cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb 10778/* end confdefs.h. */
d7040cdb 10779
81ecdfbb
RW
10780/* Override any GCC internal prototype to avoid an error.
10781 Use char because int might match the return type of a GCC
10782 builtin and then its argument prototype would still apply. */
d7040cdb
SE
10783#ifdef __cplusplus
10784extern "C"
d7040cdb 10785#endif
d7040cdb 10786char dlopen ();
d7040cdb
SE
10787int
10788main ()
10789{
81ecdfbb 10790return dlopen ();
d7040cdb
SE
10791 ;
10792 return 0;
10793}
10794_ACEOF
81ecdfbb
RW
10795if ac_fn_c_try_link "$LINENO"; then :
10796 ac_cv_lib_dl_dlopen=yes
d7040cdb 10797else
81ecdfbb 10798 ac_cv_lib_dl_dlopen=no
d7040cdb 10799fi
81ecdfbb
RW
10800rm -f core conftest.err conftest.$ac_objext \
10801 conftest$ac_exeext conftest.$ac_ext
10802LIBS=$ac_check_lib_save_LIBS
d7040cdb 10803fi
81ecdfbb
RW
10804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10805$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
d0ac1c44 10806if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
81ecdfbb 10807 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
d7040cdb 10808else
81ecdfbb
RW
10809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10810$as_echo_n "checking for dlopen in -lsvld... " >&6; }
d0ac1c44 10811if ${ac_cv_lib_svld_dlopen+:} false; then :
81ecdfbb 10812 $as_echo_n "(cached) " >&6
d7040cdb
SE
10813else
10814 ac_check_lib_save_LIBS=$LIBS
81ecdfbb
RW
10815LIBS="-lsvld $LIBS"
10816cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
10817/* end confdefs.h. */
10818
81ecdfbb
RW
10819/* Override any GCC internal prototype to avoid an error.
10820 Use char because int might match the return type of a GCC
10821 builtin and then its argument prototype would still apply. */
d7040cdb
SE
10822#ifdef __cplusplus
10823extern "C"
10824#endif
d7040cdb
SE
10825char dlopen ();
10826int
10827main ()
10828{
81ecdfbb 10829return dlopen ();
d7040cdb
SE
10830 ;
10831 return 0;
10832}
10833_ACEOF
81ecdfbb
RW
10834if ac_fn_c_try_link "$LINENO"; then :
10835 ac_cv_lib_svld_dlopen=yes
d7040cdb 10836else
81ecdfbb 10837 ac_cv_lib_svld_dlopen=no
d7040cdb 10838fi
81ecdfbb
RW
10839rm -f core conftest.err conftest.$ac_objext \
10840 conftest$ac_exeext conftest.$ac_ext
d7040cdb
SE
10841LIBS=$ac_check_lib_save_LIBS
10842fi
81ecdfbb
RW
10843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10844$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
d0ac1c44 10845if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
81ecdfbb 10846 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
d7040cdb 10847else
81ecdfbb
RW
10848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10849$as_echo_n "checking for dld_link in -ldld... " >&6; }
d0ac1c44 10850if ${ac_cv_lib_dld_dld_link+:} false; then :
81ecdfbb 10851 $as_echo_n "(cached) " >&6
d7040cdb
SE
10852else
10853 ac_check_lib_save_LIBS=$LIBS
81ecdfbb
RW
10854LIBS="-ldld $LIBS"
10855cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
10856/* end confdefs.h. */
10857
81ecdfbb
RW
10858/* Override any GCC internal prototype to avoid an error.
10859 Use char because int might match the return type of a GCC
10860 builtin and then its argument prototype would still apply. */
d7040cdb
SE
10861#ifdef __cplusplus
10862extern "C"
10863#endif
81ecdfbb 10864char dld_link ();
d7040cdb
SE
10865int
10866main ()
10867{
81ecdfbb 10868return dld_link ();
d7040cdb
SE
10869 ;
10870 return 0;
10871}
10872_ACEOF
81ecdfbb 10873if ac_fn_c_try_link "$LINENO"; then :
d7040cdb
SE
10874 ac_cv_lib_dld_dld_link=yes
10875else
81ecdfbb 10876 ac_cv_lib_dld_dld_link=no
d7040cdb 10877fi
81ecdfbb
RW
10878rm -f core conftest.err conftest.$ac_objext \
10879 conftest$ac_exeext conftest.$ac_ext
d7040cdb
SE
10880LIBS=$ac_check_lib_save_LIBS
10881fi
81ecdfbb
RW
10882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10883$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
d0ac1c44 10884if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
718a6fd8 10885 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
d7040cdb
SE
10886fi
10887
10888
10889fi
10890
10891
10892fi
10893
10894
10895fi
10896
10897
10898fi
10899
10900
10901fi
10902
10903 ;;
10904 esac
10905
10906 if test "x$lt_cv_dlopen" != xno; then
10907 enable_dlopen=yes
10908 else
10909 enable_dlopen=no
10910 fi
10911
10912 case $lt_cv_dlopen in
10913 dlopen)
10914 save_CPPFLAGS="$CPPFLAGS"
10915 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10916
10917 save_LDFLAGS="$LDFLAGS"
10918 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10919
10920 save_LIBS="$LIBS"
10921 LIBS="$lt_cv_dlopen_libs $LIBS"
10922
81ecdfbb
RW
10923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10924$as_echo_n "checking whether a program can dlopen itself... " >&6; }
d0ac1c44 10925if ${lt_cv_dlopen_self+:} false; then :
81ecdfbb 10926 $as_echo_n "(cached) " >&6
d7040cdb
SE
10927else
10928 if test "$cross_compiling" = yes; then :
10929 lt_cv_dlopen_self=cross
10930else
10931 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10932 lt_status=$lt_dlunknown
10933 cat > conftest.$ac_ext <<_LT_EOF
985e0264 10934#line 10934 "configure"
d7040cdb
SE
10935#include "confdefs.h"
10936
10937#if HAVE_DLFCN_H
10938#include <dlfcn.h>
10939#endif
10940
10941#include <stdio.h>
10942
10943#ifdef RTLD_GLOBAL
10944# define LT_DLGLOBAL RTLD_GLOBAL
10945#else
10946# ifdef DL_GLOBAL
10947# define LT_DLGLOBAL DL_GLOBAL
10948# else
10949# define LT_DLGLOBAL 0
10950# endif
10951#endif
10952
10953/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10954 find out it does not work in some platform. */
10955#ifndef LT_DLLAZY_OR_NOW
10956# ifdef RTLD_LAZY
10957# define LT_DLLAZY_OR_NOW RTLD_LAZY
10958# else
10959# ifdef DL_LAZY
10960# define LT_DLLAZY_OR_NOW DL_LAZY
10961# else
10962# ifdef RTLD_NOW
10963# define LT_DLLAZY_OR_NOW RTLD_NOW
10964# else
10965# ifdef DL_NOW
10966# define LT_DLLAZY_OR_NOW DL_NOW
10967# else
10968# define LT_DLLAZY_OR_NOW 0
10969# endif
10970# endif
10971# endif
10972# endif
10973#endif
10974
3725885a
RW
10975/* When -fvisbility=hidden is used, assume the code has been annotated
10976 correspondingly for the symbols needed. */
10977#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
f2c621e4 10978void fnord () __attribute__((visibility("default")));
3725885a
RW
10979#endif
10980
f2c621e4 10981void fnord () { int i=42; }
d7040cdb
SE
10982int main ()
10983{
10984 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10985 int status = $lt_dlunknown;
10986
10987 if (self)
10988 {
10989 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
3725885a
RW
10990 else
10991 {
10992 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10993 else puts (dlerror ());
10994 }
d7040cdb
SE
10995 /* dlclose (self); */
10996 }
10997 else
10998 puts (dlerror ());
10999
718a6fd8 11000 return status;
d7040cdb
SE
11001}
11002_LT_EOF
81ecdfbb 11003 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
d7040cdb
SE
11004 (eval $ac_link) 2>&5
11005 ac_status=$?
81ecdfbb
RW
11006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11007 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
d7040cdb
SE
11008 (./conftest; exit; ) >&5 2>/dev/null
11009 lt_status=$?
11010 case x$lt_status in
11011 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11012 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11013 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11014 esac
11015 else :
11016 # compilation failed
11017 lt_cv_dlopen_self=no
11018 fi
11019fi
11020rm -fr conftest*
11021
11022
11023fi
81ecdfbb
RW
11024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11025$as_echo "$lt_cv_dlopen_self" >&6; }
d7040cdb
SE
11026
11027 if test "x$lt_cv_dlopen_self" = xyes; then
11028 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
81ecdfbb
RW
11029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11030$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
d0ac1c44 11031if ${lt_cv_dlopen_self_static+:} false; then :
81ecdfbb 11032 $as_echo_n "(cached) " >&6
d7040cdb
SE
11033else
11034 if test "$cross_compiling" = yes; then :
11035 lt_cv_dlopen_self_static=cross
11036else
11037 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11038 lt_status=$lt_dlunknown
11039 cat > conftest.$ac_ext <<_LT_EOF
985e0264 11040#line 11040 "configure"
d7040cdb
SE
11041#include "confdefs.h"
11042
11043#if HAVE_DLFCN_H
11044#include <dlfcn.h>
11045#endif
11046
11047#include <stdio.h>
11048
11049#ifdef RTLD_GLOBAL
11050# define LT_DLGLOBAL RTLD_GLOBAL
11051#else
11052# ifdef DL_GLOBAL
11053# define LT_DLGLOBAL DL_GLOBAL
11054# else
11055# define LT_DLGLOBAL 0
11056# endif
11057#endif
11058
11059/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11060 find out it does not work in some platform. */
11061#ifndef LT_DLLAZY_OR_NOW
11062# ifdef RTLD_LAZY
11063# define LT_DLLAZY_OR_NOW RTLD_LAZY
11064# else
11065# ifdef DL_LAZY
11066# define LT_DLLAZY_OR_NOW DL_LAZY
11067# else
11068# ifdef RTLD_NOW
11069# define LT_DLLAZY_OR_NOW RTLD_NOW
11070# else
11071# ifdef DL_NOW
11072# define LT_DLLAZY_OR_NOW DL_NOW
11073# else
11074# define LT_DLLAZY_OR_NOW 0
11075# endif
11076# endif
11077# endif
11078# endif
11079#endif
11080
3725885a
RW
11081/* When -fvisbility=hidden is used, assume the code has been annotated
11082 correspondingly for the symbols needed. */
11083#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
f2c621e4 11084void fnord () __attribute__((visibility("default")));
3725885a
RW
11085#endif
11086
f2c621e4 11087void fnord () { int i=42; }
d7040cdb
SE
11088int main ()
11089{
11090 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11091 int status = $lt_dlunknown;
11092
11093 if (self)
11094 {
11095 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
3725885a
RW
11096 else
11097 {
11098 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11099 else puts (dlerror ());
11100 }
d7040cdb
SE
11101 /* dlclose (self); */
11102 }
11103 else
11104 puts (dlerror ());
11105
718a6fd8 11106 return status;
d7040cdb
SE
11107}
11108_LT_EOF
81ecdfbb 11109 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
d7040cdb
SE
11110 (eval $ac_link) 2>&5
11111 ac_status=$?
81ecdfbb
RW
11112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11113 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
d7040cdb
SE
11114 (./conftest; exit; ) >&5 2>/dev/null
11115 lt_status=$?
11116 case x$lt_status in
11117 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11118 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11119 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11120 esac
11121 else :
11122 # compilation failed
11123 lt_cv_dlopen_self_static=no
11124 fi
11125fi
11126rm -fr conftest*
11127
11128
11129fi
81ecdfbb
RW
11130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11131$as_echo "$lt_cv_dlopen_self_static" >&6; }
d7040cdb
SE
11132 fi
11133
11134 CPPFLAGS="$save_CPPFLAGS"
11135 LDFLAGS="$save_LDFLAGS"
11136 LIBS="$save_LIBS"
11137 ;;
11138 esac
11139
11140 case $lt_cv_dlopen_self in
11141 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11142 *) enable_dlopen_self=unknown ;;
11143 esac
11144
11145 case $lt_cv_dlopen_self_static in
11146 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11147 *) enable_dlopen_self_static=unknown ;;
11148 esac
11149fi
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167striplib=
11168old_striplib=
81ecdfbb
RW
11169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11170$as_echo_n "checking whether stripping libraries is possible... " >&6; }
d7040cdb
SE
11171if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11172 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11173 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
81ecdfbb
RW
11174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11175$as_echo "yes" >&6; }
d7040cdb
SE
11176else
11177# FIXME - insert some real tests, host_os isn't really good enough
11178 case $host_os in
11179 darwin*)
11180 if test -n "$STRIP" ; then
11181 striplib="$STRIP -x"
11182 old_striplib="$STRIP -S"
81ecdfbb
RW
11183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11184$as_echo "yes" >&6; }
d7040cdb 11185 else
81ecdfbb
RW
11186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11187$as_echo "no" >&6; }
d7040cdb
SE
11188 fi
11189 ;;
11190 *)
81ecdfbb
RW
11191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11192$as_echo "no" >&6; }
d7040cdb
SE
11193 ;;
11194 esac
11195fi
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208 # Report which library types will actually be built
81ecdfbb
RW
11209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11210$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11212$as_echo "$can_build_shared" >&6; }
d7040cdb 11213
81ecdfbb
RW
11214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11215$as_echo_n "checking whether to build shared libraries... " >&6; }
d7040cdb
SE
11216 test "$can_build_shared" = "no" && enable_shared=no
11217
11218 # On AIX, shared libraries and static libraries use the same namespace, and
11219 # are all built from PIC.
11220 case $host_os in
11221 aix3*)
11222 test "$enable_shared" = yes && enable_static=no
11223 if test -n "$RANLIB"; then
11224 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11225 postinstall_cmds='$RANLIB $lib'
11226 fi
11227 ;;
11228
50e7d84b 11229 aix[4-9]*)
d7040cdb
SE
11230 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11231 test "$enable_shared" = yes && enable_static=no
11232 fi
11233 ;;
11234 esac
81ecdfbb
RW
11235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11236$as_echo "$enable_shared" >&6; }
d7040cdb 11237
81ecdfbb
RW
11238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11239$as_echo_n "checking whether to build static libraries... " >&6; }
d7040cdb
SE
11240 # Make sure either enable_shared or enable_static is yes.
11241 test "$enable_shared" = yes || enable_static=yes
81ecdfbb
RW
11242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11243$as_echo "$enable_static" >&6; }
d7040cdb
SE
11244
11245
11246
11247
11248fi
11249ac_ext=c
11250ac_cpp='$CPP $CPPFLAGS'
11251ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11252ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11253ac_compiler_gnu=$ac_cv_c_compiler_gnu
11254
11255CC="$lt_save_CC"
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
81ecdfbb 11269 ac_config_commands="$ac_config_commands libtool"
d7040cdb
SE
11270
11271
11272
11273
11274# Only expand once:
11275
11276
11277
b879806f
AM
11278# The tests for host and target for $enable_largefile require
11279# canonical names.
11280
11281
11282
11283# As the $enable_largefile decision depends on --enable-plugins we must set it
11284# even in directories otherwise not depending on the $plugins option.
11285
11286
11287 maybe_plugins=no
11288 for ac_header in dlfcn.h
11289do :
11290 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11291"
d0ac1c44 11292if test "x$ac_cv_header_dlfcn_h" = xyes; then :
b879806f
AM
11293 cat >>confdefs.h <<_ACEOF
11294#define HAVE_DLFCN_H 1
11295_ACEOF
11296 maybe_plugins=yes
11297fi
11298
11299done
11300
11301 for ac_header in windows.h
11302do :
11303 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
11304"
d0ac1c44 11305if test "x$ac_cv_header_windows_h" = xyes; then :
b879806f
AM
11306 cat >>confdefs.h <<_ACEOF
11307#define HAVE_WINDOWS_H 1
11308_ACEOF
11309 maybe_plugins=yes
11310fi
11311
11312done
11313
11314
11315 # Check whether --enable-plugins was given.
11316if test "${enable_plugins+set}" = set; then :
11317 enableval=$enable_plugins; case "${enableval}" in
11318 no) plugins=no ;;
11319 *) plugins=yes
11320 if test "$maybe_plugins" != "yes" ; then
d0ac1c44 11321 as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
b879806f
AM
11322 fi ;;
11323 esac
11324else
11325 plugins=$maybe_plugins
11326
11327fi
11328
2974be62 11329 if test "$plugins" = "yes"; then
3cba8b6c
L
11330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
11331$as_echo_n "checking for library containing dlsym... " >&6; }
d0ac1c44 11332if ${ac_cv_search_dlsym+:} false; then :
2974be62
AM
11333 $as_echo_n "(cached) " >&6
11334else
11335 ac_func_search_save_LIBS=$LIBS
11336cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11337/* end confdefs.h. */
11338
11339/* Override any GCC internal prototype to avoid an error.
11340 Use char because int might match the return type of a GCC
11341 builtin and then its argument prototype would still apply. */
11342#ifdef __cplusplus
11343extern "C"
11344#endif
3cba8b6c 11345char dlsym ();
2974be62
AM
11346int
11347main ()
11348{
3cba8b6c 11349return dlsym ();
2974be62
AM
11350 ;
11351 return 0;
11352}
11353_ACEOF
11354for ac_lib in '' dl; do
11355 if test -z "$ac_lib"; then
11356 ac_res="none required"
11357 else
11358 ac_res=-l$ac_lib
11359 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11360 fi
11361 if ac_fn_c_try_link "$LINENO"; then :
3cba8b6c 11362 ac_cv_search_dlsym=$ac_res
2974be62
AM
11363fi
11364rm -f core conftest.err conftest.$ac_objext \
11365 conftest$ac_exeext
d0ac1c44 11366 if ${ac_cv_search_dlsym+:} false; then :
2974be62
AM
11367 break
11368fi
11369done
d0ac1c44 11370if ${ac_cv_search_dlsym+:} false; then :
2974be62
AM
11371
11372else
3cba8b6c 11373 ac_cv_search_dlsym=no
2974be62
AM
11374fi
11375rm conftest.$ac_ext
11376LIBS=$ac_func_search_save_LIBS
11377fi
3cba8b6c
L
11378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
11379$as_echo "$ac_cv_search_dlsym" >&6; }
11380ac_res=$ac_cv_search_dlsym
2974be62
AM
11381if test "$ac_res" != no; then :
11382 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11383
11384fi
11385
11386 fi
b879806f
AM
11387
11388
11389case "${host}" in
c8693053
RO
11390 sparc-*-solaris*|i?86-*-solaris*)
11391 # On native 32-bit Solaris/SPARC and x86, large-file and procfs support
11392 # were mutually exclusive until Solaris 11.3. Without procfs support,
11393 # the bfd/ elf module cannot provide certain routines such as
11394 # elfcore_write_prpsinfo or elfcore_write_prstatus. So unless the user
11395 # explicitly requested large-file support through the
11396 # --enable-largefile switch, disable large-file support in favor of
11397 # procfs support.
11398 #
11399 # Check if <sys/procfs.h> is incompatible with large-file support.
11400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11401/* end confdefs.h. */
11402#define _FILE_OFFSET_BITS 64
11403#define _STRUCTURED_PROC 1
11404#include <sys/procfs.h>
11405int
11406main ()
11407{
11408
11409 ;
11410 return 0;
11411}
11412_ACEOF
11413if ac_fn_c_try_compile "$LINENO"; then :
11414 acx_cv_procfs_lfs=yes
11415else
11416 acx_cv_procfs_lfs=no
11417fi
11418rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11419 #
11420 # Forcefully disable large-file support only if necessary, gdb is in
11421 # tree and enabled.
11422 if test "${target}" = "${host}" -a "$acx_cv_procfs_lfs" = no \
11423 -a -d $srcdir/../gdb -a "$enable_gdb" != no; then
11424 : ${enable_largefile="no"}
11425 if test "$plugins" = yes; then
11426 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
11427plugin support disabled; require large-file support which is incompatible with GDB." >&5
11428$as_echo "$as_me: WARNING:
11429plugin support disabled; require large-file support which is incompatible with GDB." >&2;}
11430 plugins=no
11431 fi
11432 fi
11433 #
11434 # Explicitly undef _FILE_OFFSET_BITS if enable_largefile=no for the
11435 # benefit of g++ 9+ which predefines it on Solaris.
11436 if test "$enable_largefile" = no; then
11437 LARGEFILE_CPPFLAGS="-U_FILE_OFFSET_BITS"
11438
11439 fi
b879806f
AM
11440 ;;
11441esac
11442
11443# Check whether --enable-largefile was given.
11444if test "${enable_largefile+set}" = set; then :
11445 enableval=$enable_largefile;
11446fi
11447
11448if test "$enable_largefile" != no; then
11449
11450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
11451$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
d0ac1c44 11452if ${ac_cv_sys_largefile_CC+:} false; then :
b879806f
AM
11453 $as_echo_n "(cached) " >&6
11454else
11455 ac_cv_sys_largefile_CC=no
11456 if test "$GCC" != yes; then
11457 ac_save_CC=$CC
11458 while :; do
11459 # IRIX 6.2 and later do not support large files by default,
11460 # so use the C compiler's -n32 option if that helps.
11461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11462/* end confdefs.h. */
11463#include <sys/types.h>
11464 /* Check that off_t can represent 2**63 - 1 correctly.
11465 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11466 since some C++ compilers masquerading as C compilers
11467 incorrectly reject 9223372036854775807. */
e0b2a78c 11468#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
b879806f
AM
11469 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11470 && LARGE_OFF_T % 2147483647 == 1)
11471 ? 1 : -1];
11472int
11473main ()
11474{
11475
11476 ;
11477 return 0;
11478}
11479_ACEOF
11480 if ac_fn_c_try_compile "$LINENO"; then :
11481 break
11482fi
11483rm -f core conftest.err conftest.$ac_objext
11484 CC="$CC -n32"
11485 if ac_fn_c_try_compile "$LINENO"; then :
11486 ac_cv_sys_largefile_CC=' -n32'; break
11487fi
11488rm -f core conftest.err conftest.$ac_objext
11489 break
11490 done
11491 CC=$ac_save_CC
11492 rm -f conftest.$ac_ext
11493 fi
11494fi
11495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
11496$as_echo "$ac_cv_sys_largefile_CC" >&6; }
11497 if test "$ac_cv_sys_largefile_CC" != no; then
11498 CC=$CC$ac_cv_sys_largefile_CC
11499 fi
11500
11501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
11502$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
d0ac1c44 11503if ${ac_cv_sys_file_offset_bits+:} false; then :
b879806f
AM
11504 $as_echo_n "(cached) " >&6
11505else
11506 while :; do
11507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11508/* end confdefs.h. */
11509#include <sys/types.h>
11510 /* Check that off_t can represent 2**63 - 1 correctly.
11511 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11512 since some C++ compilers masquerading as C compilers
11513 incorrectly reject 9223372036854775807. */
e0b2a78c 11514#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
b879806f
AM
11515 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11516 && LARGE_OFF_T % 2147483647 == 1)
11517 ? 1 : -1];
11518int
11519main ()
11520{
11521
11522 ;
11523 return 0;
11524}
11525_ACEOF
11526if ac_fn_c_try_compile "$LINENO"; then :
11527 ac_cv_sys_file_offset_bits=no; break
11528fi
11529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11531/* end confdefs.h. */
11532#define _FILE_OFFSET_BITS 64
11533#include <sys/types.h>
11534 /* Check that off_t can represent 2**63 - 1 correctly.
11535 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11536 since some C++ compilers masquerading as C compilers
11537 incorrectly reject 9223372036854775807. */
e0b2a78c 11538#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
b879806f
AM
11539 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11540 && LARGE_OFF_T % 2147483647 == 1)
11541 ? 1 : -1];
11542int
11543main ()
11544{
11545
11546 ;
11547 return 0;
11548}
11549_ACEOF
11550if ac_fn_c_try_compile "$LINENO"; then :
11551 ac_cv_sys_file_offset_bits=64; break
11552fi
11553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11554 ac_cv_sys_file_offset_bits=unknown
11555 break
11556done
11557fi
11558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
11559$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
11560case $ac_cv_sys_file_offset_bits in #(
11561 no | unknown) ;;
11562 *)
11563cat >>confdefs.h <<_ACEOF
11564#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
11565_ACEOF
11566;;
11567esac
11568rm -rf conftest*
11569 if test $ac_cv_sys_file_offset_bits = unknown; then
11570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
11571$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
d0ac1c44 11572if ${ac_cv_sys_large_files+:} false; then :
b879806f
AM
11573 $as_echo_n "(cached) " >&6
11574else
11575 while :; do
11576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11577/* end confdefs.h. */
11578#include <sys/types.h>
11579 /* Check that off_t can represent 2**63 - 1 correctly.
11580 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11581 since some C++ compilers masquerading as C compilers
11582 incorrectly reject 9223372036854775807. */
e0b2a78c 11583#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
b879806f
AM
11584 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11585 && LARGE_OFF_T % 2147483647 == 1)
11586 ? 1 : -1];
11587int
11588main ()
11589{
11590
11591 ;
11592 return 0;
11593}
11594_ACEOF
11595if ac_fn_c_try_compile "$LINENO"; then :
11596 ac_cv_sys_large_files=no; break
11597fi
11598rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11600/* end confdefs.h. */
11601#define _LARGE_FILES 1
11602#include <sys/types.h>
11603 /* Check that off_t can represent 2**63 - 1 correctly.
11604 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11605 since some C++ compilers masquerading as C compilers
11606 incorrectly reject 9223372036854775807. */
e0b2a78c 11607#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
b879806f
AM
11608 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11609 && LARGE_OFF_T % 2147483647 == 1)
11610 ? 1 : -1];
11611int
11612main ()
11613{
11614
11615 ;
11616 return 0;
11617}
11618_ACEOF
11619if ac_fn_c_try_compile "$LINENO"; then :
11620 ac_cv_sys_large_files=1; break
11621fi
11622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11623 ac_cv_sys_large_files=unknown
11624 break
11625done
11626fi
11627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
11628$as_echo "$ac_cv_sys_large_files" >&6; }
11629case $ac_cv_sys_large_files in #(
11630 no | unknown) ;;
11631 *)
11632cat >>confdefs.h <<_ACEOF
11633#define _LARGE_FILES $ac_cv_sys_large_files
11634_ACEOF
11635;;
11636esac
11637rm -rf conftest*
11638 fi
d0ac1c44
SM
11639
11640
b879806f
AM
11641fi
11642
11643
11644
43e05cd4
AM
11645ac_checking=
11646. ${srcdir}/../bfd/development.sh
11647test "$development" = true && ac_checking=yes
11648# Check whether --enable-checking was given.
11649if test "${enable_checking+set}" = set; then :
11650 enableval=$enable_checking; case "${enableval}" in
11651 no|none) ac_checking= ;;
11652 *) ac_checking=yes ;;
11653esac
11654fi
11655if test x$ac_checking != x ; then
11656
11657$as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
11658
11659fi
11660
81ecdfbb
RW
11661# Check whether --enable-targets was given.
11662if test "${enable_targets+set}" = set; then :
11663 enableval=$enable_targets; case "${enableval}" in
d0ac1c44 11664 yes | "") as_fn_error $? "enable-targets option must specify target names or 'all'" "$LINENO" 5
d7040cdb
SE
11665 ;;
11666 no) enable_targets= ;;
11667 *) enable_targets=$enableval ;;
11668esac
81ecdfbb
RW
11669fi
11670
e6f6aa8d 11671
9cb80f72
RM
11672# Check whether --enable-deterministic-archives was given.
11673if test "${enable_deterministic_archives+set}" = set; then :
11674 enableval=$enable_deterministic_archives;
11675if test "${enableval}" = no; then
11676 default_ar_deterministic=0
11677else
11678 default_ar_deterministic=1
11679fi
11680else
11681 default_ar_deterministic=0
11682fi
11683
11684
11685
11686cat >>confdefs.h <<_ACEOF
11687#define DEFAULT_AR_DETERMINISTIC $default_ar_deterministic
11688_ACEOF
11689
11690
e6f6aa8d 11691
7fac9594
NC
11692# Check whether --enable-default-strings-all was given.
11693if test "${enable_default_strings_all+set}" = set; then :
11694 enableval=$enable_default_strings_all;
11695if test "${enableval}" = no; then
11696 default_strings_all=0
11697else
11698 default_strings_all=1
11699fi
11700else
11701 default_strings_all=1
11702fi
11703
11704
11705
e6f6aa8d
NC
11706cat >>confdefs.h <<_ACEOF
11707#define DEFAULT_STRINGS_ALL $default_strings_all
11708_ACEOF
11709
11710
11711
11712# Check whether --enable-f-for-ifunc-symbols was given.
11713if test "${enable_f_for_ifunc_symbols+set}" = set; then :
11714 enableval=$enable_f_for_ifunc_symbols;
11715if test "${enableval}" = no; then
11716 default_f_for_ifunc=0
11717else
11718 default_f_for_ifunc=1
11719fi
11720else
11721 default_f_for_ifunc=0
11722fi
11723
11724
11725
11726cat >>confdefs.h <<_ACEOF
11727#define DEFAULT_F_FOR_IFUNC_SYMBOLS $default_f_for_ifunc
11728_ACEOF
11729
11730
11731
c46b7066
NC
11732# Check whether --enable-follow-debug-links was given.
11733if test "${enable_follow_debug_links+set}" = set; then :
11734 enableval=$enable_follow_debug_links;
11735if test "${enableval}" = no; then
11736 default_for_follow_links=0
11737else
11738 default_for_follow_links=1
11739fi
11740else
11741 default_for_follow_links=1
11742fi
11743
11744
11745
11746cat >>confdefs.h <<_ACEOF
11747#define DEFAULT_FOR_FOLLOW_LINKS $default_for_follow_links
11748_ACEOF
11749
11750
11751
11752
f6720b1c
AM
11753
11754
11755
11756
11757
11758
11759if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11760 if test -n "$ac_tool_prefix"; then
11761 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11762set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11764$as_echo_n "checking for $ac_word... " >&6; }
11765if ${ac_cv_path_PKG_CONFIG+:} false; then :
11766 $as_echo_n "(cached) " >&6
11767else
11768 case $PKG_CONFIG in
11769 [\\/]* | ?:[\\/]*)
11770 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11771 ;;
11772 *)
11773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11774for as_dir in $PATH
11775do
11776 IFS=$as_save_IFS
11777 test -z "$as_dir" && as_dir=.
11778 for ac_exec_ext in '' $ac_executable_extensions; do
11779 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11780 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11782 break 2
11783 fi
11784done
11785 done
11786IFS=$as_save_IFS
11787
11788 ;;
11789esac
11790fi
11791PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11792if test -n "$PKG_CONFIG"; then
11793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11794$as_echo "$PKG_CONFIG" >&6; }
11795else
11796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11797$as_echo "no" >&6; }
11798fi
11799
11800
11801fi
11802if test -z "$ac_cv_path_PKG_CONFIG"; then
11803 ac_pt_PKG_CONFIG=$PKG_CONFIG
11804 # Extract the first word of "pkg-config", so it can be a program name with args.
11805set dummy pkg-config; ac_word=$2
11806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11807$as_echo_n "checking for $ac_word... " >&6; }
11808if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
11809 $as_echo_n "(cached) " >&6
11810else
11811 case $ac_pt_PKG_CONFIG in
11812 [\\/]* | ?:[\\/]*)
11813 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11814 ;;
11815 *)
11816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11817for as_dir in $PATH
11818do
11819 IFS=$as_save_IFS
11820 test -z "$as_dir" && as_dir=.
11821 for ac_exec_ext in '' $ac_executable_extensions; do
11822 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11823 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11825 break 2
11826 fi
11827done
11828 done
11829IFS=$as_save_IFS
11830
11831 ;;
11832esac
11833fi
11834ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11835if test -n "$ac_pt_PKG_CONFIG"; then
11836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11837$as_echo "$ac_pt_PKG_CONFIG" >&6; }
11838else
11839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11840$as_echo "no" >&6; }
11841fi
11842
11843 if test "x$ac_pt_PKG_CONFIG" = x; then
11844 PKG_CONFIG=""
11845 else
11846 case $cross_compiling:$ac_tool_warned in
11847yes:)
11848{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11849$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11850ac_tool_warned=yes ;;
11851esac
11852 PKG_CONFIG=$ac_pt_PKG_CONFIG
11853 fi
11854else
11855 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11856fi
11857
11858fi
11859if test -n "$PKG_CONFIG"; then
11860 _pkg_min_version=0.9.0
11861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11862$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11863 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11865$as_echo "yes" >&6; }
11866 else
11867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11868$as_echo "no" >&6; }
11869 PKG_CONFIG=""
11870 fi
11871fi
11872
11873# Handle optional debuginfod support
301a9420
AM
11874
11875# Check whether --with-debuginfod was given.
11876if test "${with_debuginfod+set}" = set; then :
11877 withval=$with_debuginfod;
11878else
11879 with_debuginfod=auto
11880fi
11881
11882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use debuginfod" >&5
11883$as_echo_n "checking whether to use debuginfod... " >&6; }
11884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_debuginfod" >&5
11885$as_echo "$with_debuginfod" >&6; }
11886
f6720b1c 11887if test "x$with_debuginfod" != xno; then
301a9420 11888
f6720b1c
AM
11889pkg_failed=no
11890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdebuginfod >= 0.179" >&5
11891$as_echo_n "checking for libdebuginfod >= 0.179... " >&6; }
11892
11893if test -n "$DEBUGINFOD_CFLAGS"; then
11894 pkg_cv_DEBUGINFOD_CFLAGS="$DEBUGINFOD_CFLAGS"
11895 elif test -n "$PKG_CONFIG"; then
11896 if test -n "$PKG_CONFIG" && \
11897 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdebuginfod >= 0.179\""; } >&5
11898 ($PKG_CONFIG --exists --print-errors "libdebuginfod >= 0.179") 2>&5
11899 ac_status=$?
11900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11901 test $ac_status = 0; }; then
11902 pkg_cv_DEBUGINFOD_CFLAGS=`$PKG_CONFIG --cflags "libdebuginfod >= 0.179" 2>/dev/null`
11903 test "x$?" != "x0" && pkg_failed=yes
301a9420 11904else
f6720b1c 11905 pkg_failed=yes
301a9420 11906fi
f6720b1c
AM
11907 else
11908 pkg_failed=untried
301a9420 11909fi
f6720b1c
AM
11910if test -n "$DEBUGINFOD_LIBS"; then
11911 pkg_cv_DEBUGINFOD_LIBS="$DEBUGINFOD_LIBS"
11912 elif test -n "$PKG_CONFIG"; then
11913 if test -n "$PKG_CONFIG" && \
11914 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdebuginfod >= 0.179\""; } >&5
11915 ($PKG_CONFIG --exists --print-errors "libdebuginfod >= 0.179") 2>&5
11916 ac_status=$?
11917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11918 test $ac_status = 0; }; then
11919 pkg_cv_DEBUGINFOD_LIBS=`$PKG_CONFIG --libs "libdebuginfod >= 0.179" 2>/dev/null`
11920 test "x$?" != "x0" && pkg_failed=yes
11921else
11922 pkg_failed=yes
301a9420 11923fi
f6720b1c
AM
11924 else
11925 pkg_failed=untried
301a9420
AM
11926fi
11927
377170fa
L
11928if test $pkg_failed = no; then
11929 pkg_save_LDFLAGS="$LDFLAGS"
11930 LDFLAGS="$LDFLAGS $pkg_cv_DEBUGINFOD_LIBS"
11931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d70f978b
L
11932/* end confdefs.h. */
11933
11934int
11935main ()
11936{
377170fa 11937
d70f978b
L
11938 ;
11939 return 0;
11940}
11941_ACEOF
11942if ac_fn_c_try_link "$LINENO"; then :
377170fa 11943
d70f978b
L
11944else
11945 pkg_failed=yes
11946fi
11947rm -f core conftest.err conftest.$ac_objext \
11948 conftest$ac_exeext conftest.$ac_ext
377170fa
L
11949 LDFLAGS=$pkg_save_LDFLAGS
11950fi
d70f978b 11951
301a9420 11952
301a9420 11953
f6720b1c
AM
11954if test $pkg_failed = yes; then
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11956$as_echo "no" >&6; }
301a9420 11957
f6720b1c
AM
11958if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11959 _pkg_short_errors_supported=yes
11960else
11961 _pkg_short_errors_supported=no
11962fi
11963 if test $_pkg_short_errors_supported = yes; then
11964 DEBUGINFOD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdebuginfod >= 0.179" 2>&1`
11965 else
11966 DEBUGINFOD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdebuginfod >= 0.179" 2>&1`
11967 fi
11968 # Put the nasty error message in config.log where it belongs
11969 echo "$DEBUGINFOD_PKG_ERRORS" >&5
301a9420 11970
f6720b1c
AM
11971 if test "x$with_debuginfod" = xyes; then
11972 as_fn_error $? "\"--with-debuginfod was given, but libdebuginfod is missing or unusable.\"" "$LINENO" 5
11973 else
11974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&5
11975$as_echo "$as_me: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&2;}
11976 fi
11977elif test $pkg_failed = untried; then
11978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11979$as_echo "no" >&6; }
11980 if test "x$with_debuginfod" = xyes; then
11981 as_fn_error $? "\"--with-debuginfod was given, but libdebuginfod is missing or unusable.\"" "$LINENO" 5
11982 else
11983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&5
11984$as_echo "$as_me: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&2;}
11985 fi
11986else
11987 DEBUGINFOD_CFLAGS=$pkg_cv_DEBUGINFOD_CFLAGS
11988 DEBUGINFOD_LIBS=$pkg_cv_DEBUGINFOD_LIBS
11989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11990$as_echo "yes" >&6; }
11991
11992$as_echo "#define HAVE_LIBDEBUGINFOD 1" >>confdefs.h
11993
11994fi
11995else
11996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: debuginfod support disabled; some features may be unavailable." >&5
11997$as_echo "$as_me: WARNING: debuginfod support disabled; some features may be unavailable." >&2;}
301a9420
AM
11998fi
11999
12000
094e34f2
NA
12001 # Check whether --enable-libctf was given.
12002if test "${enable_libctf+set}" = set; then :
12003 enableval=$enable_libctf;
12004 case "$enableval" in
12005 yes|no) ;;
12006 *) as_fn_error $? "Argument to enable/disable libctf must be yes or no" "$LINENO" 5 ;;
12007 esac
12008
12009else
12010 enable_libctf=yes
12011fi
12012
12013
12014if test "${enable_libctf}" = yes; then
12015
12016$as_echo "#define ENABLE_LIBCTF 1" >>confdefs.h
12017
12018fi
12019 if test "${enable_libctf}" = yes; then
12020 ENABLE_LIBCTF_TRUE=
12021 ENABLE_LIBCTF_FALSE='#'
12022else
12023 ENABLE_LIBCTF_TRUE='#'
12024 ENABLE_LIBCTF_FALSE=
12025fi
12026
12027
d7040cdb 12028
270c9937
JB
12029# Set the 'development' global.
12030. $srcdir/../bfd/development.sh
12031
c5da1932
VZ
12032# Set acp_cpp_for_build variable
12033ac_cpp_for_build="$CC_FOR_BUILD -E $CPPFLAGS_FOR_BUILD"
12034
9780e045 12035# Default set of GCC warnings to enable.
397841b5 12036GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
c5da1932 12037GCC_WARN_CFLAGS_FOR_BUILD="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
9780e045
NC
12038
12039# Add -Wshadow if the compiler is a sufficiently recent version of GCC.
397841b5
AM
12040cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12041/* end confdefs.h. */
12042__GNUC__
12043_ACEOF
12044if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3107326d 12045 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
397841b5
AM
12046
12047else
12048 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
12049fi
12050rm -f conftest*
12051
d7040cdb 12052
9780e045
NC
12053# Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
12054cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12055/* end confdefs.h. */
12056__GNUC__
12057_ACEOF
12058if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3107326d 12059 $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
9780e045
NC
12060
12061else
12062 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144"
12063fi
12064rm -f conftest*
12065
12066
6757cf57
TS
12067# Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings.
12068WARN_WRITE_STRINGS=""
12069cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12070/* end confdefs.h. */
12071__GNUC__
12072_ACEOF
12073if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3107326d 12074 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
6757cf57
TS
12075
12076else
12077 WARN_WRITE_STRINGS="-Wwrite-strings"
12078fi
12079rm -f conftest*
12080
9780e045 12081
96fe4562 12082# Verify CC_FOR_BUILD to be compatible with warning flags
c5da1932
VZ
12083
12084# Add -Wshadow if the compiler is a sufficiently recent version of GCC.
12085cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12086/* end confdefs.h. */
12087__GNUC__
12088_ACEOF
12089if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
3107326d 12090 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
c5da1932
VZ
12091
12092else
12093 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wshadow"
12094fi
12095rm -f conftest*
12096
12097
12098# Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
12099cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12100/* end confdefs.h. */
12101__GNUC__
12102_ACEOF
12103if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
3107326d 12104 $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
c5da1932
VZ
12105
12106else
12107 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wstack-usage=262144"
12108fi
12109rm -f conftest*
12110
12111
81ecdfbb
RW
12112# Check whether --enable-werror was given.
12113if test "${enable_werror+set}" = set; then :
12114 enableval=$enable_werror; case "${enableval}" in
d7040cdb
SE
12115 yes | y) ERROR_ON_WARNING="yes" ;;
12116 no | n) ERROR_ON_WARNING="no" ;;
d0ac1c44 12117 *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
d7040cdb 12118 esac
81ecdfbb
RW
12119fi
12120
d7040cdb 12121
397841b5 12122# Disable -Wformat by default when using gcc on mingw
bb8541b9
L
12123case "${host}" in
12124 *-*-mingw32*)
12125 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
12126 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
c5da1932 12127 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wno-format"
bb8541b9
L
12128 fi
12129 ;;
12130 *) ;;
12131esac
12132
270c9937
JB
12133# Enable -Werror by default when using gcc. Turn it off for releases.
12134if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then
d7040cdb
SE
12135 ERROR_ON_WARNING=yes
12136fi
12137
12138NO_WERROR=
12139if test "${ERROR_ON_WARNING}" = yes ; then
9780e045 12140 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
c5da1932 12141 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Werror"
d7040cdb
SE
12142 NO_WERROR="-Wno-error"
12143fi
12144
12145if test "${GCC}" = yes ; then
12146 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
c5da1932 12147 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}"
d7040cdb
SE
12148fi
12149
81ecdfbb
RW
12150# Check whether --enable-build-warnings was given.
12151if test "${enable_build_warnings+set}" = set; then :
12152 enableval=$enable_build_warnings; case "${enableval}" in
c5da1932
VZ
12153 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}"
12154 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}";;
d7040cdb
SE
12155 no) if test "${GCC}" = yes ; then
12156 WARN_CFLAGS="-w"
c5da1932 12157 WARN_CFLAGS_FOR_BUILD="-w"
d7040cdb
SE
12158 fi;;
12159 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
c5da1932
VZ
12160 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}"
12161 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD} ${t}";;
d7040cdb 12162 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
c5da1932
VZ
12163 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}"
12164 WARN_CFLAGS_FOR_BUILD="${t} ${GCC_WARN_CFLAGS_FOR_BUILD}";;
12165 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`
12166 WARN_CFLAGS_FOR_BUILD=`echo "${enableval}" | sed -e "s/,/ /g"`;;
d7040cdb 12167esac
81ecdfbb
RW
12168fi
12169
d7040cdb
SE
12170
12171if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
12172 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
12173fi
12174
12175
12176
12177
12178
6757cf57 12179
c5da1932 12180
81ecdfbb 12181ac_config_headers="$ac_config_headers config.h:config.in"
d7040cdb
SE
12182
12183
df7b86aa
NC
12184
12185
d7040cdb 12186if test -z "$target" ; then
d0ac1c44 12187 as_fn_error $? "Unrecognized target system type; please check config.sub." "$LINENO" 5
d7040cdb
SE
12188fi
12189if test -z "$host" ; then
d0ac1c44 12190 as_fn_error $? "Unrecognized host system type; please check config.sub." "$LINENO" 5
d7040cdb
SE
12191fi
12192
12193for ac_prog in 'bison -y' byacc
12194do
12195 # Extract the first word of "$ac_prog", so it can be a program name with args.
12196set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
12197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12198$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12199if ${ac_cv_prog_YACC+:} false; then :
81ecdfbb 12200 $as_echo_n "(cached) " >&6
d7040cdb
SE
12201else
12202 if test -n "$YACC"; then
12203 ac_cv_prog_YACC="$YACC" # Let the user override the test.
12204else
12205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12206for as_dir in $PATH
12207do
12208 IFS=$as_save_IFS
12209 test -z "$as_dir" && as_dir=.
81ecdfbb 12210 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12211 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7040cdb 12212 ac_cv_prog_YACC="$ac_prog"
81ecdfbb 12213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
12214 break 2
12215 fi
12216done
81ecdfbb
RW
12217 done
12218IFS=$as_save_IFS
d7040cdb
SE
12219
12220fi
12221fi
12222YACC=$ac_cv_prog_YACC
12223if test -n "$YACC"; then
81ecdfbb
RW
12224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
12225$as_echo "$YACC" >&6; }
d7040cdb 12226else
81ecdfbb
RW
12227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12228$as_echo "no" >&6; }
d7040cdb
SE
12229fi
12230
81ecdfbb 12231
d7040cdb
SE
12232 test -n "$YACC" && break
12233done
12234test -n "$YACC" || YACC="yacc"
12235
12236for ac_prog in flex lex
12237do
12238 # Extract the first word of "$ac_prog", so it can be a program name with args.
12239set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
12240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12241$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12242if ${ac_cv_prog_LEX+:} false; then :
81ecdfbb 12243 $as_echo_n "(cached) " >&6
d7040cdb
SE
12244else
12245 if test -n "$LEX"; then
12246 ac_cv_prog_LEX="$LEX" # Let the user override the test.
12247else
12248as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12249for as_dir in $PATH
12250do
12251 IFS=$as_save_IFS
12252 test -z "$as_dir" && as_dir=.
81ecdfbb 12253 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12254 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7040cdb 12255 ac_cv_prog_LEX="$ac_prog"
81ecdfbb 12256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
12257 break 2
12258 fi
12259done
81ecdfbb
RW
12260 done
12261IFS=$as_save_IFS
d7040cdb
SE
12262
12263fi
12264fi
12265LEX=$ac_cv_prog_LEX
12266if test -n "$LEX"; then
81ecdfbb
RW
12267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
12268$as_echo "$LEX" >&6; }
d7040cdb 12269else
81ecdfbb
RW
12270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12271$as_echo "no" >&6; }
d7040cdb
SE
12272fi
12273
81ecdfbb 12274
d7040cdb
SE
12275 test -n "$LEX" && break
12276done
12277test -n "$LEX" || LEX=":"
12278
3d961d0d
AM
12279case "$LEX" in
12280 :|*"missing "*) ;;
12281 *) cat >conftest.l <<_ACEOF
81ecdfbb
RW
12282%%
12283a { ECHO; }
12284b { REJECT; }
12285c { yymore (); }
12286d { yyless (1); }
d0ac1c44
SM
12287e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
12288 yyless ((input () != 0)); }
81ecdfbb
RW
12289f { unput (yytext[0]); }
12290. { BEGIN INITIAL; }
12291%%
12292#ifdef YYTEXT_POINTER
12293extern char *yytext;
d7040cdb 12294#endif
d7040cdb 12295int
81ecdfbb 12296main (void)
d7040cdb 12297{
81ecdfbb 12298 return ! yylex () + ! yywrap ();
d7040cdb
SE
12299}
12300_ACEOF
81ecdfbb
RW
12301{ { ac_try="$LEX conftest.l"
12302case "(($ac_try" in
12303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12304 *) ac_try_echo=$ac_try;;
12305esac
12306eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12307$as_echo "$ac_try_echo"; } >&5
12308 (eval "$LEX conftest.l") 2>&5
d7040cdb 12309 ac_status=$?
81ecdfbb
RW
12310 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12311 test $ac_status = 0; }
12312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
12313$as_echo_n "checking lex output file root... " >&6; }
d0ac1c44 12314if ${ac_cv_prog_lex_root+:} false; then :
81ecdfbb 12315 $as_echo_n "(cached) " >&6
d7040cdb 12316else
d7040cdb 12317
81ecdfbb
RW
12318if test -f lex.yy.c; then
12319 ac_cv_prog_lex_root=lex.yy
12320elif test -f lexyy.c; then
12321 ac_cv_prog_lex_root=lexyy
12322else
d0ac1c44 12323 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
d7040cdb 12324fi
d7040cdb 12325fi
81ecdfbb
RW
12326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
12327$as_echo "$ac_cv_prog_lex_root" >&6; }
12328LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
d7040cdb 12329
81ecdfbb
RW
12330if test -z "${LEXLIB+set}"; then
12331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
12332$as_echo_n "checking lex library... " >&6; }
d0ac1c44 12333if ${ac_cv_lib_lex+:} false; then :
81ecdfbb 12334 $as_echo_n "(cached) " >&6
d7040cdb 12335else
d7040cdb 12336
81ecdfbb
RW
12337 ac_save_LIBS=$LIBS
12338 ac_cv_lib_lex='none needed'
12339 for ac_lib in '' -lfl -ll; do
12340 LIBS="$ac_lib $ac_save_LIBS"
12341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12342/* end confdefs.h. */
12343`cat $LEX_OUTPUT_ROOT.c`
12344_ACEOF
12345if ac_fn_c_try_link "$LINENO"; then :
12346 ac_cv_lib_lex=$ac_lib
d7040cdb 12347fi
81ecdfbb
RW
12348rm -f core conftest.err conftest.$ac_objext \
12349 conftest$ac_exeext conftest.$ac_ext
12350 test "$ac_cv_lib_lex" != 'none needed' && break
12351 done
12352 LIBS=$ac_save_LIBS
d7040cdb
SE
12353
12354fi
81ecdfbb
RW
12355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
12356$as_echo "$ac_cv_lib_lex" >&6; }
12357 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
d7040cdb
SE
12358fi
12359
d7040cdb 12360
81ecdfbb
RW
12361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
12362$as_echo_n "checking whether yytext is a pointer... " >&6; }
d0ac1c44 12363if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
81ecdfbb 12364 $as_echo_n "(cached) " >&6
d7040cdb
SE
12365else
12366 # POSIX says lex can declare yytext either as a pointer or an array; the
81ecdfbb 12367# default is implementation-dependent. Figure out which it is, since
d7040cdb
SE
12368# not all implementations provide the %pointer and %array declarations.
12369ac_cv_prog_lex_yytext_pointer=no
d7040cdb 12370ac_save_LIBS=$LIBS
81ecdfbb
RW
12371LIBS="$LEXLIB $ac_save_LIBS"
12372cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12373/* end confdefs.h. */
d0ac1c44
SM
12374
12375 #define YYTEXT_POINTER 1
d7040cdb
SE
12376`cat $LEX_OUTPUT_ROOT.c`
12377_ACEOF
81ecdfbb 12378if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 12379 ac_cv_prog_lex_yytext_pointer=yes
d7040cdb 12380fi
81ecdfbb
RW
12381rm -f core conftest.err conftest.$ac_objext \
12382 conftest$ac_exeext conftest.$ac_ext
d7040cdb 12383LIBS=$ac_save_LIBS
d7040cdb
SE
12384
12385fi
81ecdfbb
RW
12386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
12387$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
d7040cdb
SE
12388if test $ac_cv_prog_lex_yytext_pointer = yes; then
12389
81ecdfbb 12390$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
d7040cdb
SE
12391
12392fi
81ecdfbb 12393rm -f conftest.l $LEX_OUTPUT_ROOT.c
3d961d0d
AM
12394 ;;
12395esac
d7040cdb
SE
12396if test "$LEX" = :; then
12397 LEX=${am_missing_run}flex
12398fi
12399
e184813f 12400ALL_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
12401# If we haven't got the data from the intl directory,
12402# assume NLS is disabled.
12403USE_NLS=no
12404LIBINTL=
12405LIBINTL_DEP=
12406INCINTL=
12407XGETTEXT=
12408GMSGFMT=
12409POSUB=
12410
12411if test -f ../intl/config.intl; then
12412 . ../intl/config.intl
12413fi
81ecdfbb
RW
12414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12415$as_echo_n "checking whether NLS is requested... " >&6; }
d7040cdb 12416if test x"$USE_NLS" != xyes; then
81ecdfbb
RW
12417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12418$as_echo "no" >&6; }
d7040cdb 12419else
81ecdfbb
RW
12420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12421$as_echo "yes" >&6; }
d7040cdb 12422
81ecdfbb 12423$as_echo "#define ENABLE_NLS 1" >>confdefs.h
d7040cdb
SE
12424
12425
81ecdfbb
RW
12426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
12427$as_echo_n "checking for catalogs to be installed... " >&6; }
d7040cdb
SE
12428 # Look for .po and .gmo files in the source directory.
12429 CATALOGS=
12430 XLINGUAS=
12431 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12432 # If there aren't any .gmo files the shell will give us the
12433 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12434 # weeded out.
12435 case "$cat" in *\**)
12436 continue;;
12437 esac
12438 # The quadruple backslash is collapsed to a double backslash
12439 # by the backticks, then collapsed again by the double quotes,
12440 # leaving us with one backslash in the sed expression (right
12441 # before the dot that mustn't act as a wildcard).
12442 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
12443 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
12444 # The user is allowed to set LINGUAS to a list of languages to
12445 # install catalogs for. If it's empty that means "all of them."
12446 if test "x$LINGUAS" = x; then
12447 CATALOGS="$CATALOGS $cat"
12448 XLINGUAS="$XLINGUAS $lang"
12449 else
12450 case "$LINGUAS" in *$lang*)
12451 CATALOGS="$CATALOGS $cat"
12452 XLINGUAS="$XLINGUAS $lang"
12453 ;;
12454 esac
12455 fi
12456 done
12457 LINGUAS="$XLINGUAS"
81ecdfbb
RW
12458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
12459$as_echo "$LINGUAS" >&6; }
d7040cdb
SE
12460
12461
12462 DATADIRNAME=share
12463
12464 INSTOBJEXT=.mo
12465
12466 GENCAT=gencat
12467
12468 CATOBJEXT=.gmo
12469
12470fi
12471
12472 MKINSTALLDIRS=
12473 if test -n "$ac_aux_dir"; then
12474 case "$ac_aux_dir" in
12475 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
12476 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
12477 esac
12478 fi
12479 if test -z "$MKINSTALLDIRS"; then
12480 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
12481 fi
12482
12483
12484
81ecdfbb
RW
12485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12486$as_echo_n "checking whether NLS is requested... " >&6; }
12487 # Check whether --enable-nls was given.
12488if test "${enable_nls+set}" = set; then :
12489 enableval=$enable_nls; USE_NLS=$enableval
d7040cdb
SE
12490else
12491 USE_NLS=yes
81ecdfbb
RW
12492fi
12493
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
12495$as_echo "$USE_NLS" >&6; }
d7040cdb
SE
12496
12497
12498
12499
12500
12501
12502# Prepare PATH_SEPARATOR.
12503# The user is always right.
12504if test "${PATH_SEPARATOR+set}" != set; then
12505 echo "#! /bin/sh" >conf$$.sh
12506 echo "exit 0" >>conf$$.sh
12507 chmod +x conf$$.sh
12508 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12509 PATH_SEPARATOR=';'
12510 else
12511 PATH_SEPARATOR=:
12512 fi
12513 rm -f conf$$.sh
12514fi
12515
12516# Find out how to test for executable files. Don't use a zero-byte file,
12517# as systems may use methods other than mode bits to determine executability.
12518cat >conf$$.file <<_ASEOF
12519#! /bin/sh
12520exit 0
12521_ASEOF
12522chmod +x conf$$.file
12523if test -x conf$$.file >/dev/null 2>&1; then
12524 ac_executable_p="test -x"
12525else
12526 ac_executable_p="test -f"
12527fi
12528rm -f conf$$.file
12529
12530# Extract the first word of "msgfmt", so it can be a program name with args.
12531set dummy msgfmt; ac_word=$2
81ecdfbb
RW
12532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12533$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12534if ${ac_cv_path_MSGFMT+:} false; then :
81ecdfbb 12535 $as_echo_n "(cached) " >&6
d7040cdb
SE
12536else
12537 case "$MSGFMT" in
12538 [\\/]* | ?:[\\/]*)
12539 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12540 ;;
12541 *)
12542 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12543 for ac_dir in $PATH; do
12544 IFS="$ac_save_IFS"
12545 test -z "$ac_dir" && ac_dir=.
12546 for ac_exec_ext in '' $ac_executable_extensions; do
12547 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12548 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
12549 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12550 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
12551 break 2
12552 fi
12553 fi
12554 done
12555 done
12556 IFS="$ac_save_IFS"
12557 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
12558 ;;
12559esac
12560fi
12561MSGFMT="$ac_cv_path_MSGFMT"
12562if test "$MSGFMT" != ":"; then
81ecdfbb
RW
12563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
12564$as_echo "$MSGFMT" >&6; }
d7040cdb 12565else
81ecdfbb
RW
12566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12567$as_echo "no" >&6; }
d7040cdb
SE
12568fi
12569
12570 # Extract the first word of "gmsgfmt", so it can be a program name with args.
12571set dummy gmsgfmt; ac_word=$2
81ecdfbb
RW
12572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12573$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12574if ${ac_cv_path_GMSGFMT+:} false; then :
81ecdfbb 12575 $as_echo_n "(cached) " >&6
d7040cdb
SE
12576else
12577 case $GMSGFMT in
12578 [\\/]* | ?:[\\/]*)
12579 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12580 ;;
12581 *)
12582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12583for as_dir in $PATH
12584do
12585 IFS=$as_save_IFS
12586 test -z "$as_dir" && as_dir=.
81ecdfbb 12587 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12588 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7040cdb 12589 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
12591 break 2
12592 fi
12593done
81ecdfbb
RW
12594 done
12595IFS=$as_save_IFS
d7040cdb
SE
12596
12597 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12598 ;;
12599esac
12600fi
12601GMSGFMT=$ac_cv_path_GMSGFMT
d7040cdb 12602if test -n "$GMSGFMT"; then
81ecdfbb
RW
12603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
12604$as_echo "$GMSGFMT" >&6; }
d7040cdb 12605else
81ecdfbb
RW
12606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12607$as_echo "no" >&6; }
d7040cdb
SE
12608fi
12609
12610
12611
81ecdfbb 12612
d7040cdb
SE
12613# Prepare PATH_SEPARATOR.
12614# The user is always right.
12615if test "${PATH_SEPARATOR+set}" != set; then
12616 echo "#! /bin/sh" >conf$$.sh
12617 echo "exit 0" >>conf$$.sh
12618 chmod +x conf$$.sh
12619 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12620 PATH_SEPARATOR=';'
12621 else
12622 PATH_SEPARATOR=:
12623 fi
12624 rm -f conf$$.sh
12625fi
12626
12627# Find out how to test for executable files. Don't use a zero-byte file,
12628# as systems may use methods other than mode bits to determine executability.
12629cat >conf$$.file <<_ASEOF
12630#! /bin/sh
12631exit 0
12632_ASEOF
12633chmod +x conf$$.file
12634if test -x conf$$.file >/dev/null 2>&1; then
12635 ac_executable_p="test -x"
12636else
12637 ac_executable_p="test -f"
12638fi
12639rm -f conf$$.file
12640
12641# Extract the first word of "xgettext", so it can be a program name with args.
12642set dummy xgettext; ac_word=$2
81ecdfbb
RW
12643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12644$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12645if ${ac_cv_path_XGETTEXT+:} false; then :
81ecdfbb 12646 $as_echo_n "(cached) " >&6
d7040cdb
SE
12647else
12648 case "$XGETTEXT" in
12649 [\\/]* | ?:[\\/]*)
12650 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12651 ;;
12652 *)
12653 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12654 for ac_dir in $PATH; do
12655 IFS="$ac_save_IFS"
12656 test -z "$ac_dir" && ac_dir=.
12657 for ac_exec_ext in '' $ac_executable_extensions; do
12658 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12659 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12660 (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
12661 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
12662 break 2
12663 fi
12664 fi
12665 done
12666 done
12667 IFS="$ac_save_IFS"
12668 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12669 ;;
12670esac
12671fi
12672XGETTEXT="$ac_cv_path_XGETTEXT"
12673if test "$XGETTEXT" != ":"; then
81ecdfbb
RW
12674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
12675$as_echo "$XGETTEXT" >&6; }
d7040cdb 12676else
81ecdfbb
RW
12677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12678$as_echo "no" >&6; }
d7040cdb
SE
12679fi
12680
12681 rm -f messages.po
12682
12683
12684# Prepare PATH_SEPARATOR.
12685# The user is always right.
12686if test "${PATH_SEPARATOR+set}" != set; then
12687 echo "#! /bin/sh" >conf$$.sh
12688 echo "exit 0" >>conf$$.sh
12689 chmod +x conf$$.sh
12690 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12691 PATH_SEPARATOR=';'
12692 else
12693 PATH_SEPARATOR=:
12694 fi
12695 rm -f conf$$.sh
12696fi
12697
12698# Find out how to test for executable files. Don't use a zero-byte file,
12699# as systems may use methods other than mode bits to determine executability.
12700cat >conf$$.file <<_ASEOF
12701#! /bin/sh
12702exit 0
12703_ASEOF
12704chmod +x conf$$.file
12705if test -x conf$$.file >/dev/null 2>&1; then
12706 ac_executable_p="test -x"
12707else
12708 ac_executable_p="test -f"
12709fi
12710rm -f conf$$.file
12711
12712# Extract the first word of "msgmerge", so it can be a program name with args.
12713set dummy msgmerge; ac_word=$2
81ecdfbb
RW
12714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12715$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12716if ${ac_cv_path_MSGMERGE+:} false; then :
81ecdfbb 12717 $as_echo_n "(cached) " >&6
d7040cdb
SE
12718else
12719 case "$MSGMERGE" in
12720 [\\/]* | ?:[\\/]*)
12721 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12722 ;;
12723 *)
12724 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12725 for ac_dir in $PATH; do
12726 IFS="$ac_save_IFS"
12727 test -z "$ac_dir" && ac_dir=.
12728 for ac_exec_ext in '' $ac_executable_extensions; do
12729 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12730 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
12731 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
12732 break 2
12733 fi
12734 fi
12735 done
12736 done
12737 IFS="$ac_save_IFS"
12738 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12739 ;;
12740esac
12741fi
12742MSGMERGE="$ac_cv_path_MSGMERGE"
12743if test "$MSGMERGE" != ":"; then
81ecdfbb
RW
12744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
12745$as_echo "$MSGMERGE" >&6; }
d7040cdb 12746else
81ecdfbb
RW
12747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12748$as_echo "no" >&6; }
d7040cdb
SE
12749fi
12750
12751
12752 if test "$GMSGFMT" != ":"; then
12753 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
12754 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12755 : ;
12756 else
12757 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
81ecdfbb
RW
12758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
12759$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
d7040cdb
SE
12760 GMSGFMT=":"
12761 fi
12762 fi
12763
12764 if test "$XGETTEXT" != ":"; then
12765 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12766 (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
12767 : ;
12768 else
81ecdfbb
RW
12769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
12770$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
d7040cdb
SE
12771 XGETTEXT=":"
12772 fi
12773 rm -f messages.po
12774 fi
12775
81ecdfbb 12776 ac_config_commands="$ac_config_commands default-1"
d7040cdb
SE
12777
12778
12779
81ecdfbb
RW
12780
12781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
12782$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
12783 # Check whether --enable-maintainer-mode was given.
12784if test "${enable_maintainer_mode+set}" = set; then :
12785 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
42ecbf5e 12786else
d7040cdb 12787 USE_MAINTAINER_MODE=no
81ecdfbb 12788fi
d7040cdb 12789
81ecdfbb
RW
12790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
12791$as_echo "$USE_MAINTAINER_MODE" >&6; }
12792 if test $USE_MAINTAINER_MODE = yes; then
d7040cdb
SE
12793 MAINTAINER_MODE_TRUE=
12794 MAINTAINER_MODE_FALSE='#'
12795else
12796 MAINTAINER_MODE_TRUE='#'
12797 MAINTAINER_MODE_FALSE=
42ecbf5e 12798fi
d7040cdb
SE
12799
12800 MAINT=$MAINTAINER_MODE_TRUE
12801
12802
81ecdfbb 12803 if false; then
d7040cdb
SE
12804 GENINSRC_NEVER_TRUE=
12805 GENINSRC_NEVER_FALSE='#'
12806else
12807 GENINSRC_NEVER_TRUE='#'
12808 GENINSRC_NEVER_FALSE=
42ecbf5e 12809fi
d7040cdb
SE
12810
12811
12812if test -n "$EXEEXT"; then
20e95c23 12813
81ecdfbb 12814$as_echo "#define HAVE_EXECUTABLE_SUFFIX 1" >>confdefs.h
42ecbf5e 12815
252b5132
RH
12816fi
12817
d7040cdb
SE
12818cat >>confdefs.h <<_ACEOF
12819#define EXECUTABLE_SUFFIX "${EXEEXT}"
12820_ACEOF
42ecbf5e 12821
252b5132 12822
d7040cdb 12823# host-specific stuff:
252b5132 12824
d7040cdb 12825HDEFINES=
252b5132 12826
d7040cdb 12827. ${srcdir}/../bfd/configure.host
252b5132 12828
252b5132 12829
d7040cdb 12830AR=${AR-ar}
252b5132 12831
d7040cdb
SE
12832if test -n "$ac_tool_prefix"; then
12833 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12834set dummy ${ac_tool_prefix}ranlib; ac_word=$2
81ecdfbb
RW
12835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12836$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12837if ${ac_cv_prog_RANLIB+:} false; then :
81ecdfbb 12838 $as_echo_n "(cached) " >&6
d7040cdb
SE
12839else
12840 if test -n "$RANLIB"; then
12841 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12842else
12843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12844for as_dir in $PATH
12845do
12846 IFS=$as_save_IFS
12847 test -z "$as_dir" && as_dir=.
81ecdfbb 12848 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12849 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7040cdb 12850 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
81ecdfbb 12851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
12852 break 2
12853 fi
12854done
81ecdfbb
RW
12855 done
12856IFS=$as_save_IFS
252b5132 12857
d7040cdb
SE
12858fi
12859fi
12860RANLIB=$ac_cv_prog_RANLIB
12861if test -n "$RANLIB"; then
81ecdfbb
RW
12862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12863$as_echo "$RANLIB" >&6; }
d7040cdb 12864else
81ecdfbb
RW
12865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12866$as_echo "no" >&6; }
d7040cdb 12867fi
20e95c23 12868
81ecdfbb 12869
d7040cdb
SE
12870fi
12871if test -z "$ac_cv_prog_RANLIB"; then
12872 ac_ct_RANLIB=$RANLIB
12873 # Extract the first word of "ranlib", so it can be a program name with args.
12874set dummy ranlib; ac_word=$2
81ecdfbb
RW
12875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12876$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12877if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
81ecdfbb 12878 $as_echo_n "(cached) " >&6
252b5132 12879else
d7040cdb
SE
12880 if test -n "$ac_ct_RANLIB"; then
12881 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12882else
12883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12884for as_dir in $PATH
12885do
12886 IFS=$as_save_IFS
12887 test -z "$as_dir" && as_dir=.
81ecdfbb 12888 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7040cdb 12890 ac_cv_prog_ac_ct_RANLIB="ranlib"
81ecdfbb 12891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
12892 break 2
12893 fi
12894done
81ecdfbb
RW
12895 done
12896IFS=$as_save_IFS
20e95c23 12897
d7040cdb
SE
12898fi
12899fi
12900ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12901if test -n "$ac_ct_RANLIB"; then
81ecdfbb
RW
12902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12903$as_echo "$ac_ct_RANLIB" >&6; }
d7040cdb 12904else
81ecdfbb
RW
12905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12906$as_echo "no" >&6; }
d7040cdb
SE
12907fi
12908
81ecdfbb
RW
12909 if test "x$ac_ct_RANLIB" = x; then
12910 RANLIB=":"
d7040cdb 12911 else
81ecdfbb
RW
12912 case $cross_compiling:$ac_tool_warned in
12913yes:)
12914{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12915$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12916ac_tool_warned=yes ;;
12917esac
12918 RANLIB=$ac_ct_RANLIB
d7040cdb 12919 fi
81ecdfbb
RW
12920else
12921 RANLIB="$ac_cv_prog_RANLIB"
d7040cdb 12922fi
d7040cdb 12923
d7040cdb
SE
12924
12925
12926# Put a plausible default for CC_FOR_BUILD in Makefile.
12927if test -z "$CC_FOR_BUILD"; then
12928 if test "x$cross_compiling" = "xno"; then
12929 CC_FOR_BUILD='$(CC)'
12930 else
12931 CC_FOR_BUILD=gcc
12932 fi
12933fi
20e95c23 12934
d7040cdb
SE
12935# Also set EXEEXT_FOR_BUILD.
12936if test "x$cross_compiling" = "xno"; then
12937 EXEEXT_FOR_BUILD='$(EXEEXT)'
12938else
81ecdfbb
RW
12939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build system executable suffix" >&5
12940$as_echo_n "checking for build system executable suffix... " >&6; }
d0ac1c44 12941if ${bfd_cv_build_exeext+:} false; then :
81ecdfbb 12942 $as_echo_n "(cached) " >&6
d7040cdb
SE
12943else
12944 rm -f conftest*
12945 echo 'int main () { return 0; }' > conftest.c
12946 bfd_cv_build_exeext=
12947 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
12948 for file in conftest.*; do
12949 case $file in
12950 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
12951 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
12952 esac
12953 done
12954 rm -f conftest*
12955 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
252b5132 12956fi
81ecdfbb
RW
12957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_build_exeext" >&5
12958$as_echo "$bfd_cv_build_exeext" >&6; }
d7040cdb
SE
12959 EXEEXT_FOR_BUILD=""
12960 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
252b5132
RH
12961fi
12962
12963
d7040cdb
SE
12964DEMANGLER_NAME=c++filt
12965case "${host}" in
12966 *-*-go32* | *-*-msdos*)
12967 DEMANGLER_NAME=cxxfilt
12968esac
8a965946
ILT
12969
12970
4c219c2e
AM
12971# The cast to long int works around a bug in the HP C Compiler
12972# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12973# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12974# This bug is HP SR number 8606223364.
12975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12976$as_echo_n "checking size of long... " >&6; }
d0ac1c44 12977if ${ac_cv_sizeof_long+:} false; then :
4c219c2e
AM
12978 $as_echo_n "(cached) " >&6
12979else
12980 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
12981
12982else
12983 if test "$ac_cv_type_long" = yes; then
12984 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12985$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
12986as_fn_error 77 "cannot compute sizeof (long)
12987See \`config.log' for more details" "$LINENO" 5; }
4c219c2e
AM
12988 else
12989 ac_cv_sizeof_long=0
12990 fi
12991fi
12992
12993fi
12994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12995$as_echo "$ac_cv_sizeof_long" >&6; }
12996
12997
12998
12999cat >>confdefs.h <<_ACEOF
13000#define SIZEOF_LONG $ac_cv_sizeof_long
13001_ACEOF
13002
13003
4c219c2e
AM
13004# The cast to long int works around a bug in the HP C Compiler
13005# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13006# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13007# This bug is HP SR number 8606223364.
13008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
13009$as_echo_n "checking size of long long... " >&6; }
d0ac1c44 13010if ${ac_cv_sizeof_long_long+:} false; then :
4c219c2e
AM
13011 $as_echo_n "(cached) " >&6
13012else
13013 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
13014
13015else
13016 if test "$ac_cv_type_long_long" = yes; then
13017 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13018$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
13019as_fn_error 77 "cannot compute sizeof (long long)
13020See \`config.log' for more details" "$LINENO" 5; }
4c219c2e
AM
13021 else
13022 ac_cv_sizeof_long_long=0
13023 fi
13024fi
13025
13026fi
13027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
13028$as_echo "$ac_cv_sizeof_long_long" >&6; }
13029
13030
13031
13032cat >>confdefs.h <<_ACEOF
13033#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
13034_ACEOF
13035
13036
4c219c2e 13037
87b9f255
AM
13038# We use headers from include/ that check various HAVE_*_H macros, thus
13039# should ensure they are set by configure. This is true even when C99
13040# guarantees they are available.
13041# plugin-api.h tests HAVE_STDINT_H and HAVE_INTTYPES_H
13042# Besides those, we need to check anything used in binutils/ not in C99.
13acb58d 13043for ac_header in fcntl.h inttypes.h stdint.h sys/file.h \
985e0264 13044 sys/stat.h sys/time.h sys/types.h unistd.h
81ecdfbb
RW
13045do :
13046 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13047ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
d0ac1c44 13048if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
81ecdfbb
RW
13049 cat >>confdefs.h <<_ACEOF
13050#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13051_ACEOF
42ecbf5e 13052
81ecdfbb 13053fi
42ecbf5e 13054
81ecdfbb 13055done
42ecbf5e 13056
81ecdfbb
RW
13057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
13058$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
d0ac1c44 13059if ${ac_cv_header_sys_wait_h+:} false; then :
81ecdfbb 13060 $as_echo_n "(cached) " >&6
42ecbf5e 13061else
81ecdfbb 13062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e 13063/* end confdefs.h. */
252b5132
RH
13064#include <sys/types.h>
13065#include <sys/wait.h>
13066#ifndef WEXITSTATUS
81ecdfbb 13067# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
252b5132
RH
13068#endif
13069#ifndef WIFEXITED
42ecbf5e 13070# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
252b5132 13071#endif
42ecbf5e
DJ
13072
13073int
13074main ()
13075{
13076 int s;
13077 wait (&s);
13078 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
13079 ;
13080 return 0;
13081}
13082_ACEOF
81ecdfbb 13083if ac_fn_c_try_compile "$LINENO"; then :
252b5132
RH
13084 ac_cv_header_sys_wait_h=yes
13085else
81ecdfbb 13086 ac_cv_header_sys_wait_h=no
252b5132 13087fi
81ecdfbb 13088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 13089fi
81ecdfbb
RW
13090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
13091$as_echo "$ac_cv_header_sys_wait_h" >&6; }
d15b04bd 13092if test $ac_cv_header_sys_wait_h = yes; then
42ecbf5e 13093
81ecdfbb 13094$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
252b5132 13095
252b5132
RH
13096fi
13097
34156b23
L
13098
13099
13100
13101 for ac_header in $ac_header_list
13102do :
13103 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13104ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
13105"
13106if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13107 cat >>confdefs.h <<_ACEOF
13108#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13109_ACEOF
13110
13111fi
13112
13113done
13114
13115
13116
13117
13118
13119
13120
13121
13122for ac_func in getpagesize
13123do :
13124 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
13125if test "x$ac_cv_func_getpagesize" = xyes; then :
13126 cat >>confdefs.h <<_ACEOF
13127#define HAVE_GETPAGESIZE 1
13128_ACEOF
13129
13130fi
13131done
13132
13133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
13134$as_echo_n "checking for working mmap... " >&6; }
13135if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
13136 $as_echo_n "(cached) " >&6
13137else
13138 if test "$cross_compiling" = yes; then :
13139 ac_cv_func_mmap_fixed_mapped=no
13140else
13141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13142/* end confdefs.h. */
13143$ac_includes_default
13144/* malloc might have been renamed as rpl_malloc. */
13145#undef malloc
13146
13147/* Thanks to Mike Haertel and Jim Avera for this test.
13148 Here is a matrix of mmap possibilities:
13149 mmap private not fixed
13150 mmap private fixed at somewhere currently unmapped
13151 mmap private fixed at somewhere already mapped
13152 mmap shared not fixed
13153 mmap shared fixed at somewhere currently unmapped
13154 mmap shared fixed at somewhere already mapped
13155 For private mappings, we should verify that changes cannot be read()
13156 back from the file, nor mmap's back from the file at a different
13157 address. (There have been systems where private was not correctly
13158 implemented like the infamous i386 svr4.0, and systems where the
13159 VM page cache was not coherent with the file system buffer cache
13160 like early versions of FreeBSD and possibly contemporary NetBSD.)
13161 For shared mappings, we should conversely verify that changes get
13162 propagated back to all the places they're supposed to be.
13163
13164 Grep wants private fixed already mapped.
13165 The main things grep needs to know about mmap are:
13166 * does it exist and is it safe to write into the mmap'd area
13167 * how to use it (BSD variants) */
13168
13169#include <fcntl.h>
13170#include <sys/mman.h>
13171
13172#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
13173char *malloc ();
13174#endif
13175
13176/* This mess was copied from the GNU getpagesize.h. */
13177#ifndef HAVE_GETPAGESIZE
13178# ifdef _SC_PAGESIZE
13179# define getpagesize() sysconf(_SC_PAGESIZE)
13180# else /* no _SC_PAGESIZE */
13181# ifdef HAVE_SYS_PARAM_H
13182# include <sys/param.h>
13183# ifdef EXEC_PAGESIZE
13184# define getpagesize() EXEC_PAGESIZE
13185# else /* no EXEC_PAGESIZE */
13186# ifdef NBPG
13187# define getpagesize() NBPG * CLSIZE
13188# ifndef CLSIZE
13189# define CLSIZE 1
13190# endif /* no CLSIZE */
13191# else /* no NBPG */
13192# ifdef NBPC
13193# define getpagesize() NBPC
13194# else /* no NBPC */
13195# ifdef PAGESIZE
13196# define getpagesize() PAGESIZE
13197# endif /* PAGESIZE */
13198# endif /* no NBPC */
13199# endif /* no NBPG */
13200# endif /* no EXEC_PAGESIZE */
13201# else /* no HAVE_SYS_PARAM_H */
13202# define getpagesize() 8192 /* punt totally */
13203# endif /* no HAVE_SYS_PARAM_H */
13204# endif /* no _SC_PAGESIZE */
13205
13206#endif /* no HAVE_GETPAGESIZE */
13207
13208int
13209main ()
13210{
13211 char *data, *data2, *data3;
13212 const char *cdata2;
13213 int i, pagesize;
13214 int fd, fd2;
13215
13216 pagesize = getpagesize ();
13217
13218 /* First, make a file with some known garbage in it. */
13219 data = (char *) malloc (pagesize);
13220 if (!data)
13221 return 1;
13222 for (i = 0; i < pagesize; ++i)
13223 *(data + i) = rand ();
13224 umask (0);
13225 fd = creat ("conftest.mmap", 0600);
13226 if (fd < 0)
13227 return 2;
13228 if (write (fd, data, pagesize) != pagesize)
13229 return 3;
13230 close (fd);
13231
13232 /* Next, check that the tail of a page is zero-filled. File must have
13233 non-zero length, otherwise we risk SIGBUS for entire page. */
13234 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
13235 if (fd2 < 0)
13236 return 4;
13237 cdata2 = "";
13238 if (write (fd2, cdata2, 1) != 1)
13239 return 5;
13240 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
13241 if (data2 == MAP_FAILED)
13242 return 6;
13243 for (i = 0; i < pagesize; ++i)
13244 if (*(data2 + i))
13245 return 7;
13246 close (fd2);
13247 if (munmap (data2, pagesize))
13248 return 8;
13249
13250 /* Next, try to mmap the file at a fixed address which already has
13251 something else allocated at it. If we can, also make sure that
13252 we see the same garbage. */
13253 fd = open ("conftest.mmap", O_RDWR);
13254 if (fd < 0)
13255 return 9;
13256 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
13257 MAP_PRIVATE | MAP_FIXED, fd, 0L))
13258 return 10;
13259 for (i = 0; i < pagesize; ++i)
13260 if (*(data + i) != *(data2 + i))
13261 return 11;
13262
13263 /* Finally, make sure that changes to the mapped area do not
13264 percolate back to the file as seen by read(). (This is a bug on
13265 some variants of i386 svr4.0.) */
13266 for (i = 0; i < pagesize; ++i)
13267 *(data2 + i) = *(data2 + i) + 1;
13268 data3 = (char *) malloc (pagesize);
13269 if (!data3)
13270 return 12;
13271 if (read (fd, data3, pagesize) != pagesize)
13272 return 13;
13273 for (i = 0; i < pagesize; ++i)
13274 if (*(data + i) != *(data3 + i))
13275 return 14;
13276 close (fd);
13277 return 0;
13278}
13279_ACEOF
13280if ac_fn_c_try_run "$LINENO"; then :
13281 ac_cv_func_mmap_fixed_mapped=yes
13282else
13283 ac_cv_func_mmap_fixed_mapped=no
13284fi
13285rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13286 conftest.$ac_objext conftest.beam conftest.$ac_ext
13287fi
13288
13289fi
13290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
13291$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
13292if test $ac_cv_func_mmap_fixed_mapped = yes; then
13293
13294$as_echo "#define HAVE_MMAP 1" >>confdefs.h
13295
13296fi
13297rm -f conftest.mmap conftest.txt
13298
985e0264 13299for ac_func in getc_unlocked mkdtemp mkstemp sbrk utimensat utimes
81ecdfbb
RW
13300do :
13301 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13302ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
d0ac1c44 13303if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
81ecdfbb
RW
13304 cat >>confdefs.h <<_ACEOF
13305#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13306_ACEOF
42ecbf5e 13307
81ecdfbb
RW
13308fi
13309done
42ecbf5e 13310
42ecbf5e 13311
985e0264 13312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
3bfcb652 13313$as_echo_n "checking for mbstate_t... " >&6; }
985e0264 13314cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3bfcb652
NC
13315/* end confdefs.h. */
13316#include <wchar.h>
13317int
13318main ()
13319{
13320mbstate_t teststate;
13321 ;
13322 return 0;
13323}
13324_ACEOF
13325if ac_fn_c_try_compile "$LINENO"; then :
13326 have_mbstate_t=yes
13327else
13328 have_mbstate_t=no
13329fi
13330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
985e0264 13331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mbstate_t" >&5
3bfcb652 13332$as_echo "$have_mbstate_t" >&6; }
985e0264 13333if test x"$have_mbstate_t" = xyes; then
3bfcb652
NC
13334
13335$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
13336
985e0264
AM
13337fi
13338
13339# Copied from gnulib stat-time.m4.
13340# We should just switch over to using gnulib.
13341ac_fn_c_check_member "$LINENO" "struct stat" "st_atim.tv_nsec" "ac_cv_member_struct_stat_st_atim_tv_nsec" "#include <sys/types.h>
13342 #include <sys/stat.h>
13343"
13344if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = xyes; then :
13345
13346cat >>confdefs.h <<_ACEOF
13347#define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
13348_ACEOF
13349
13350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5
13351$as_echo_n "checking whether struct stat.st_atim is of type struct timespec... " >&6; }
13352if ${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+:} false; then :
13353 $as_echo_n "(cached) " >&6
13354else
13355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13356/* end confdefs.h. */
13357
13358 #include <sys/types.h>
13359 #include <sys/stat.h>
13360 #if HAVE_SYS_TIME_H
13361 # include <sys/time.h>
13362 #endif
13363 #include <time.h>
13364 struct timespec ts;
13365 struct stat st;
13366
13367int
13368main ()
13369{
13370
13371 st.st_atim = ts;
13372
13373 ;
13374 return 0;
13375}
13376_ACEOF
13377if ac_fn_c_try_compile "$LINENO"; then :
13378 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=yes
13379else
13380 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=no
13381fi
13382rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13383fi
13384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
13385$as_echo "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
13386 if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
13387
13388$as_echo "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h
13389
13390 fi
13391else
13392 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimespec.tv_nsec" "ac_cv_member_struct_stat_st_atimespec_tv_nsec" "#include <sys/types.h>
13393 #include <sys/stat.h>
13394"
13395if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = xyes; then :
13396
13397cat >>confdefs.h <<_ACEOF
13398#define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
13399_ACEOF
13400
13401
13402else
13403 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h>
13404 #include <sys/stat.h>
13405"
13406if test "x$ac_cv_member_struct_stat_st_atimensec" = xyes; then :
13407
13408cat >>confdefs.h <<_ACEOF
13409#define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
13410_ACEOF
13411
13412
13413else
13414 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim.st__tim.tv_nsec" "ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" "#include <sys/types.h>
13415 #include <sys/stat.h>
13416"
13417if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = xyes; then :
13418
13419cat >>confdefs.h <<_ACEOF
13420#define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
13421_ACEOF
13422
13423
13424fi
13425
13426fi
13427
13428fi
13429
13430fi
13431
d15b04bd 13432
81ecdfbb
RW
13433# Some systems have frexp only in -lm, not in -lc.
13434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing frexp" >&5
13435$as_echo_n "checking for library containing frexp... " >&6; }
d0ac1c44 13436if ${ac_cv_search_frexp+:} false; then :
81ecdfbb 13437 $as_echo_n "(cached) " >&6
f9c026a8 13438else
81ecdfbb
RW
13439 ac_func_search_save_LIBS=$LIBS
13440cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f9c026a8 13441/* end confdefs.h. */
f9c026a8 13442
81ecdfbb
RW
13443/* Override any GCC internal prototype to avoid an error.
13444 Use char because int might match the return type of a GCC
f9c026a8 13445 builtin and then its argument prototype would still apply. */
42ecbf5e
DJ
13446#ifdef __cplusplus
13447extern "C"
13448#endif
42ecbf5e
DJ
13449char frexp ();
13450int
13451main ()
13452{
81ecdfbb 13453return frexp ();
42ecbf5e
DJ
13454 ;
13455 return 0;
13456}
13457_ACEOF
81ecdfbb
RW
13458for ac_lib in '' m; do
13459 if test -z "$ac_lib"; then
13460 ac_res="none required"
13461 else
13462 ac_res=-l$ac_lib
42ecbf5e 13463 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
81ecdfbb
RW
13464 fi
13465 if ac_fn_c_try_link "$LINENO"; then :
13466 ac_cv_search_frexp=$ac_res
13467fi
13468rm -f core conftest.err conftest.$ac_objext \
13469 conftest$ac_exeext
d0ac1c44 13470 if ${ac_cv_search_frexp+:} false; then :
81ecdfbb
RW
13471 break
13472fi
13473done
d0ac1c44 13474if ${ac_cv_search_frexp+:} false; then :
42ecbf5e 13475
f353eb8a 13476else
81ecdfbb 13477 ac_cv_search_frexp=no
e5a52504 13478fi
81ecdfbb 13479rm conftest.$ac_ext
42ecbf5e
DJ
13480LIBS=$ac_func_search_save_LIBS
13481fi
81ecdfbb
RW
13482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_frexp" >&5
13483$as_echo "$ac_cv_search_frexp" >&6; }
13484ac_res=$ac_cv_search_frexp
13485if test "$ac_res" != no; then :
13486 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
42ecbf5e 13487
f353eb8a
ILT
13488fi
13489
42ecbf5e 13490
44350750
NC
13491
13492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
13493$as_echo_n "checking for LC_MESSAGES... " >&6; }
d0ac1c44 13494if ${am_cv_val_LC_MESSAGES+:} false; then :
44350750
NC
13495 $as_echo_n "(cached) " >&6
13496else
13497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13498/* end confdefs.h. */
13499#include <locale.h>
13500int
13501main ()
13502{
13503return LC_MESSAGES
13504 ;
13505 return 0;
13506}
13507_ACEOF
13508if ac_fn_c_try_link "$LINENO"; then :
13509 am_cv_val_LC_MESSAGES=yes
13510else
13511 am_cv_val_LC_MESSAGES=no
13512fi
13513rm -f core conftest.err conftest.$ac_objext \
13514 conftest$ac_exeext conftest.$ac_ext
13515fi
13516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
13517$as_echo "$am_cv_val_LC_MESSAGES" >&6; }
13518 if test $am_cv_val_LC_MESSAGES = yes; then
13519
13520$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
13521
13522 fi
13523
13524
81ecdfbb
RW
13525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
13526$as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
d0ac1c44 13527if ${bu_cv_decl_getopt_unistd_h+:} false; then :
81ecdfbb 13528 $as_echo_n "(cached) " >&6
e46eba98 13529else
81ecdfbb 13530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e 13531/* end confdefs.h. */
e46eba98 13532#include <unistd.h>
42ecbf5e
DJ
13533int
13534main ()
13535{
e46eba98 13536extern int getopt (int, char *const*, const char *);
42ecbf5e
DJ
13537 ;
13538 return 0;
13539}
13540_ACEOF
81ecdfbb 13541if ac_fn_c_try_compile "$LINENO"; then :
e46eba98
NC
13542 bu_cv_decl_getopt_unistd_h=yes
13543else
81ecdfbb 13544 bu_cv_decl_getopt_unistd_h=no
e46eba98 13545fi
81ecdfbb 13546rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e46eba98
NC
13547fi
13548
81ecdfbb
RW
13549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bu_cv_decl_getopt_unistd_h" >&5
13550$as_echo "$bu_cv_decl_getopt_unistd_h" >&6; }
e46eba98 13551if test $bu_cv_decl_getopt_unistd_h = yes; then
42ecbf5e 13552
81ecdfbb 13553$as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
e46eba98
NC
13554
13555fi
13556
252b5132
RH
13557# Under Next 3.2 <utime.h> apparently does not define struct utimbuf
13558# by default.
81ecdfbb
RW
13559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for utime.h" >&5
13560$as_echo_n "checking for utime.h... " >&6; }
d0ac1c44 13561if ${bu_cv_header_utime_h+:} false; then :
81ecdfbb 13562 $as_echo_n "(cached) " >&6
42ecbf5e 13563else
81ecdfbb 13564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e 13565/* end confdefs.h. */
252b5132
RH
13566#include <sys/types.h>
13567#ifdef HAVE_TIME_H
13568#include <time.h>
13569#endif
13570#include <utime.h>
42ecbf5e
DJ
13571int
13572main ()
13573{
252b5132 13574struct utimbuf s;
42ecbf5e
DJ
13575 ;
13576 return 0;
13577}
13578_ACEOF
81ecdfbb 13579if ac_fn_c_try_compile "$LINENO"; then :
252b5132
RH
13580 bu_cv_header_utime_h=yes
13581else
81ecdfbb 13582 bu_cv_header_utime_h=no
252b5132 13583fi
81ecdfbb 13584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
13585fi
13586
81ecdfbb
RW
13587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bu_cv_header_utime_h" >&5
13588$as_echo "$bu_cv_header_utime_h" >&6; }
252b5132 13589if test $bu_cv_header_utime_h = yes; then
42ecbf5e 13590
81ecdfbb 13591$as_echo "#define HAVE_GOOD_UTIME_H 1" >>confdefs.h
252b5132
RH
13592
13593fi
13594
1f5345a6 13595ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
d0ac1c44 13596if test "x$ac_cv_have_decl_asprintf" = xyes; then :
1f5345a6
ST
13597 ac_have_decl=1
13598else
13599 ac_have_decl=0
13600fi
13601
13602cat >>confdefs.h <<_ACEOF
13603#define HAVE_DECL_ASPRINTF $ac_have_decl
13604_ACEOF
952781e8 13605ac_fn_c_check_decl "$LINENO" "environ" "ac_cv_have_decl_environ" "$ac_includes_default"
d0ac1c44 13606if test "x$ac_cv_have_decl_environ" = xyes; then :
952781e8
AM
13607 ac_have_decl=1
13608else
13609 ac_have_decl=0
13610fi
13611
13612cat >>confdefs.h <<_ACEOF
13613#define HAVE_DECL_ENVIRON $ac_have_decl
13614_ACEOF
952781e8 13615ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
d0ac1c44 13616if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
81ecdfbb 13617 ac_have_decl=1
252b5132 13618else
81ecdfbb 13619 ac_have_decl=0
252b5132 13620fi
252b5132 13621
398ee8f1 13622cat >>confdefs.h <<_ACEOF
952781e8 13623#define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
398ee8f1 13624_ACEOF
81ecdfbb 13625ac_fn_c_check_decl "$LINENO" "sbrk" "ac_cv_have_decl_sbrk" "$ac_includes_default"
d0ac1c44 13626if test "x$ac_cv_have_decl_sbrk" = xyes; then :
81ecdfbb 13627 ac_have_decl=1
252b5132 13628else
81ecdfbb 13629 ac_have_decl=0
252b5132 13630fi
252b5132 13631
398ee8f1 13632cat >>confdefs.h <<_ACEOF
81ecdfbb 13633#define HAVE_DECL_SBRK $ac_have_decl
398ee8f1 13634_ACEOF
952781e8 13635ac_fn_c_check_decl "$LINENO" "stpcpy" "ac_cv_have_decl_stpcpy" "$ac_includes_default"
d0ac1c44 13636if test "x$ac_cv_have_decl_stpcpy" = xyes; then :
81ecdfbb 13637 ac_have_decl=1
398ee8f1 13638else
81ecdfbb 13639 ac_have_decl=0
398ee8f1 13640fi
252b5132 13641
398ee8f1 13642cat >>confdefs.h <<_ACEOF
952781e8 13643#define HAVE_DECL_STPCPY $ac_have_decl
b7d4af3a 13644_ACEOF
db50c840
EB
13645
13646
ed2b5077
L
13647# Link in zlib if we can. This allows us to read compressed debug
13648# sections. This is used only by readelf.c (objdump uses bfd for
13649# reading compressed sections).
13650
13651 # Use the system's zlib library.
39f3de7c
L
13652 zlibdir="-L\$(top_builddir)/../zlib"
13653 zlibinc="-I\$(top_srcdir)/../zlib"
52546677 13654
0ee42ecd
L
13655# Check whether --with-system-zlib was given.
13656if test "${with_system_zlib+set}" = set; then :
afa59b79
L
13657 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
13658 zlibdir=
13659 zlibinc=
13660 fi
52546677 13661
52546677
RM
13662fi
13663
13664
52546677 13665
1b315056 13666
252b5132 13667
ed2b5077 13668
252b5132 13669case "${host}" in
8a965946 13670*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
42ecbf5e 13671
81ecdfbb 13672$as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
252b5132
RH
13673 ;;
13674esac
13675
13676# target-specific stuff:
13677
13678# Canonicalize the secondary target names.
13679if test -n "$enable_targets"; then
13680 for targ in `echo $enable_targets | sed 's/,/ /g'`
13681 do
6d83c84b 13682 result=`$ac_config_sub $targ 2>/dev/null`
252b5132
RH
13683 if test -n "$result"; then
13684 canon_targets="$canon_targets $result"
13685 else
13686 # Allow targets that config.sub doesn't recognize, like "all".
13687 canon_targets="$canon_targets $targ"
13688 fi
13689 done
13690fi
13691
81ecdfbb 13692ac_fn_c_check_header_mongrel "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
d0ac1c44 13693if test "x$ac_cv_header_iconv_h" = xyes; then :
5ba684e2
NC
13694
13695fi
13696
13697
13698
13699 if test "X$prefix" = "XNONE"; then
13700 acl_final_prefix="$ac_default_prefix"
13701 else
13702 acl_final_prefix="$prefix"
13703 fi
13704 if test "X$exec_prefix" = "XNONE"; then
13705 acl_final_exec_prefix='${prefix}'
13706 else
13707 acl_final_exec_prefix="$exec_prefix"
13708 fi
13709 acl_save_prefix="$prefix"
13710 prefix="$acl_final_prefix"
13711 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
13712 prefix="$acl_save_prefix"
13713
13714
81ecdfbb
RW
13715# Check whether --with-gnu-ld was given.
13716if test "${with_gnu_ld+set}" = set; then :
13717 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5ba684e2
NC
13718else
13719 with_gnu_ld=no
81ecdfbb
RW
13720fi
13721
5ba684e2
NC
13722# Prepare PATH_SEPARATOR.
13723# The user is always right.
13724if test "${PATH_SEPARATOR+set}" != set; then
13725 echo "#! /bin/sh" >conf$$.sh
13726 echo "exit 0" >>conf$$.sh
13727 chmod +x conf$$.sh
13728 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13729 PATH_SEPARATOR=';'
13730 else
13731 PATH_SEPARATOR=:
13732 fi
13733 rm -f conf$$.sh
13734fi
13735ac_prog=ld
13736if test "$GCC" = yes; then
13737 # Check if gcc -print-prog-name=ld gives a path.
81ecdfbb
RW
13738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
13739$as_echo_n "checking for ld used by GCC... " >&6; }
5ba684e2
NC
13740 case $host in
13741 *-*-mingw*)
13742 # gcc leaves a trailing carriage return which upsets mingw
13743 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13744 *)
13745 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13746 esac
13747 case $ac_prog in
13748 # Accept absolute paths.
13749 [\\/]* | [A-Za-z]:[\\/]*)
13750 re_direlt='/[^/][^/]*/\.\./'
13751 # Canonicalize the path of ld
13752 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
13753 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
13754 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
13755 done
13756 test -z "$LD" && LD="$ac_prog"
13757 ;;
13758 "")
13759 # If it fails, then pretend we aren't using GCC.
13760 ac_prog=ld
13761 ;;
13762 *)
13763 # If it is relative, then search for the first ld in PATH.
13764 with_gnu_ld=unknown
13765 ;;
13766 esac
13767elif test "$with_gnu_ld" = yes; then
81ecdfbb
RW
13768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13769$as_echo_n "checking for GNU ld... " >&6; }
5ba684e2 13770else
81ecdfbb
RW
13771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13772$as_echo_n "checking for non-GNU ld... " >&6; }
5ba684e2 13773fi
d0ac1c44 13774if ${acl_cv_path_LD+:} false; then :
81ecdfbb 13775 $as_echo_n "(cached) " >&6
5ba684e2
NC
13776else
13777 if test -z "$LD"; then
13778 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
13779 for ac_dir in $PATH; do
13780 test -z "$ac_dir" && ac_dir=.
13781 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13782 acl_cv_path_LD="$ac_dir/$ac_prog"
13783 # Check to see if the program is GNU ld. I'd rather use --version,
13784 # but apparently some GNU ld's only accept -v.
13785 # Break only if it was the GNU/non-GNU ld that we prefer.
13786 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
13787 test "$with_gnu_ld" != no && break
13788 else
13789 test "$with_gnu_ld" != yes && break
13790 fi
13791 fi
13792 done
13793 IFS="$ac_save_ifs"
13794else
13795 acl_cv_path_LD="$LD" # Let the user override the test with a path.
13796fi
13797fi
13798
13799LD="$acl_cv_path_LD"
13800if test -n "$LD"; then
81ecdfbb
RW
13801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13802$as_echo "$LD" >&6; }
5ba684e2 13803else
81ecdfbb
RW
13804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13805$as_echo "no" >&6; }
5ba684e2 13806fi
d0ac1c44 13807test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
81ecdfbb
RW
13808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13809$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
d0ac1c44 13810if ${acl_cv_prog_gnu_ld+:} false; then :
81ecdfbb 13811 $as_echo_n "(cached) " >&6
5ba684e2
NC
13812else
13813 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
13814if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
13815 acl_cv_prog_gnu_ld=yes
13816else
13817 acl_cv_prog_gnu_ld=no
13818fi
13819fi
81ecdfbb
RW
13820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
13821$as_echo "$acl_cv_prog_gnu_ld" >&6; }
5ba684e2
NC
13822with_gnu_ld=$acl_cv_prog_gnu_ld
13823
13824
13825
81ecdfbb
RW
13826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
13827$as_echo_n "checking for shared library run path origin... " >&6; }
d0ac1c44 13828if ${acl_cv_rpath+:} false; then :
81ecdfbb 13829 $as_echo_n "(cached) " >&6
5ba684e2
NC
13830else
13831
13832 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
13833 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
13834 . ./conftest.sh
13835 rm -f ./conftest.sh
13836 acl_cv_rpath=done
13837
13838fi
81ecdfbb
RW
13839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
13840$as_echo "$acl_cv_rpath" >&6; }
5ba684e2
NC
13841 wl="$acl_cv_wl"
13842 libext="$acl_cv_libext"
13843 shlibext="$acl_cv_shlibext"
13844 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
13845 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
13846 hardcode_direct="$acl_cv_hardcode_direct"
13847 hardcode_minus_L="$acl_cv_hardcode_minus_L"
81ecdfbb
RW
13848 # Check whether --enable-rpath was given.
13849if test "${enable_rpath+set}" = set; then :
13850 enableval=$enable_rpath; :
5ba684e2
NC
13851else
13852 enable_rpath=yes
81ecdfbb
RW
13853fi
13854
5ba684e2
NC
13855
13856
13857
13858
13859
13860
13861
13862 use_additional=yes
13863
13864 acl_save_prefix="$prefix"
13865 prefix="$acl_final_prefix"
13866 acl_save_exec_prefix="$exec_prefix"
13867 exec_prefix="$acl_final_exec_prefix"
13868
13869 eval additional_includedir=\"$includedir\"
13870 eval additional_libdir=\"$libdir\"
13871
13872 exec_prefix="$acl_save_exec_prefix"
13873 prefix="$acl_save_prefix"
13874
13875
81ecdfbb
RW
13876# Check whether --with-libiconv-prefix was given.
13877if test "${with_libiconv_prefix+set}" = set; then :
13878 withval=$with_libiconv_prefix;
5ba684e2
NC
13879 if test "X$withval" = "Xno"; then
13880 use_additional=no
13881 else
13882 if test "X$withval" = "X"; then
13883
13884 acl_save_prefix="$prefix"
13885 prefix="$acl_final_prefix"
13886 acl_save_exec_prefix="$exec_prefix"
13887 exec_prefix="$acl_final_exec_prefix"
13888
13889 eval additional_includedir=\"$includedir\"
13890 eval additional_libdir=\"$libdir\"
13891
13892 exec_prefix="$acl_save_exec_prefix"
13893 prefix="$acl_save_prefix"
13894
13895 else
13896 additional_includedir="$withval/include"
13897 additional_libdir="$withval/lib"
13898 fi
13899 fi
13900
81ecdfbb
RW
13901fi
13902
9f1528a1
AB
13903
13904# Check whether --with-libiconv-type was given.
13905if test "${with_libiconv_type+set}" = set; then :
13906 withval=$with_libiconv_type; with_libiconv_type=$withval
13907else
13908 with_libiconv_type=auto
13909fi
13910
13911 lib_type=`eval echo \$with_libiconv_type`
13912
5ba684e2
NC
13913 LIBICONV=
13914 LTLIBICONV=
13915 INCICONV=
13916 rpathdirs=
13917 ltrpathdirs=
13918 names_already_handled=
13919 names_next_round='iconv '
13920 while test -n "$names_next_round"; do
13921 names_this_round="$names_next_round"
13922 names_next_round=
13923 for name in $names_this_round; do
13924 already_handled=
13925 for n in $names_already_handled; do
13926 if test "$n" = "$name"; then
13927 already_handled=yes
13928 break
13929 fi
13930 done
13931 if test -z "$already_handled"; then
13932 names_already_handled="$names_already_handled $name"
13933 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13934 eval value=\"\$HAVE_LIB$uppername\"
13935 if test -n "$value"; then
13936 if test "$value" = yes; then
13937 eval value=\"\$LIB$uppername\"
13938 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
13939 eval value=\"\$LTLIB$uppername\"
13940 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
13941 else
13942 :
13943 fi
13944 else
13945 found_dir=
13946 found_la=
13947 found_so=
13948 found_a=
13949 if test $use_additional = yes; then
9f1528a1 13950 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
5ba684e2
NC
13951 found_dir="$additional_libdir"
13952 found_so="$additional_libdir/lib$name.$shlibext"
13953 if test -f "$additional_libdir/lib$name.la"; then
13954 found_la="$additional_libdir/lib$name.la"
13955 fi
9f1528a1 13956 elif test x$lib_type != xshared; then
5ba684e2
NC
13957 if test -f "$additional_libdir/lib$name.$libext"; then
13958 found_dir="$additional_libdir"
13959 found_a="$additional_libdir/lib$name.$libext"
13960 if test -f "$additional_libdir/lib$name.la"; then
13961 found_la="$additional_libdir/lib$name.la"
13962 fi
13963 fi
13964 fi
13965 fi
13966 if test "X$found_dir" = "X"; then
13967 for x in $LDFLAGS $LTLIBICONV; do
13968
13969 acl_save_prefix="$prefix"
13970 prefix="$acl_final_prefix"
13971 acl_save_exec_prefix="$exec_prefix"
13972 exec_prefix="$acl_final_exec_prefix"
13973 eval x=\"$x\"
13974 exec_prefix="$acl_save_exec_prefix"
13975 prefix="$acl_save_prefix"
13976
13977 case "$x" in
13978 -L*)
13979 dir=`echo "X$x" | sed -e 's/^X-L//'`
9f1528a1 13980 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
5ba684e2
NC
13981 found_dir="$dir"
13982 found_so="$dir/lib$name.$shlibext"
13983 if test -f "$dir/lib$name.la"; then
13984 found_la="$dir/lib$name.la"
13985 fi
9f1528a1 13986 elif test x$lib_type != xshared; then
5ba684e2
NC
13987 if test -f "$dir/lib$name.$libext"; then
13988 found_dir="$dir"
13989 found_a="$dir/lib$name.$libext"
13990 if test -f "$dir/lib$name.la"; then
13991 found_la="$dir/lib$name.la"
13992 fi
13993 fi
13994 fi
13995 ;;
13996 esac
13997 if test "X$found_dir" != "X"; then
13998 break
13999 fi
14000 done
14001 fi
14002 if test "X$found_dir" != "X"; then
14003 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
14004 if test "X$found_so" != "X"; then
14005 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
14006 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14007 else
14008 haveit=
14009 for x in $ltrpathdirs; do
14010 if test "X$x" = "X$found_dir"; then
14011 haveit=yes
14012 break
14013 fi
14014 done
14015 if test -z "$haveit"; then
14016 ltrpathdirs="$ltrpathdirs $found_dir"
14017 fi
14018 if test "$hardcode_direct" = yes; then
14019 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14020 else
14021 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
14022 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14023 haveit=
14024 for x in $rpathdirs; do
14025 if test "X$x" = "X$found_dir"; then
14026 haveit=yes
14027 break
14028 fi
14029 done
14030 if test -z "$haveit"; then
14031 rpathdirs="$rpathdirs $found_dir"
14032 fi
14033 else
14034 haveit=
14035 for x in $LDFLAGS $LIBICONV; do
14036
14037 acl_save_prefix="$prefix"
14038 prefix="$acl_final_prefix"
14039 acl_save_exec_prefix="$exec_prefix"
14040 exec_prefix="$acl_final_exec_prefix"
14041 eval x=\"$x\"
14042 exec_prefix="$acl_save_exec_prefix"
14043 prefix="$acl_save_prefix"
14044
14045 if test "X$x" = "X-L$found_dir"; then
14046 haveit=yes
14047 break
14048 fi
14049 done
14050 if test -z "$haveit"; then
14051 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
14052 fi
14053 if test "$hardcode_minus_L" != no; then
14054 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14055 else
14056 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14057 fi
14058 fi
14059 fi
14060 fi
14061 else
14062 if test "X$found_a" != "X"; then
14063 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
14064 else
14065 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
14066 fi
14067 fi
14068 additional_includedir=
14069 case "$found_dir" in
14070 */lib | */lib/)
14071 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
14072 additional_includedir="$basedir/include"
14073 ;;
14074 esac
14075 if test "X$additional_includedir" != "X"; then
14076 if test "X$additional_includedir" != "X/usr/include"; then
14077 haveit=
14078 if test "X$additional_includedir" = "X/usr/local/include"; then
14079 if test -n "$GCC"; then
14080 case $host_os in
14081 linux*) haveit=yes;;
14082 esac
14083 fi
14084 fi
14085 if test -z "$haveit"; then
14086 for x in $CPPFLAGS $INCICONV; do
14087
14088 acl_save_prefix="$prefix"
14089 prefix="$acl_final_prefix"
14090 acl_save_exec_prefix="$exec_prefix"
14091 exec_prefix="$acl_final_exec_prefix"
14092 eval x=\"$x\"
14093 exec_prefix="$acl_save_exec_prefix"
14094 prefix="$acl_save_prefix"
14095
14096 if test "X$x" = "X-I$additional_includedir"; then
14097 haveit=yes
14098 break
14099 fi
14100 done
14101 if test -z "$haveit"; then
14102 if test -d "$additional_includedir"; then
14103 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
14104 fi
14105 fi
14106 fi
14107 fi
14108 fi
14109 if test -n "$found_la"; then
14110 save_libdir="$libdir"
14111 case "$found_la" in
14112 */* | *\\*) . "$found_la" ;;
14113 *) . "./$found_la" ;;
14114 esac
14115 libdir="$save_libdir"
14116 for dep in $dependency_libs; do
14117 case "$dep" in
14118 -L*)
14119 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14120 if test "X$additional_libdir" != "X/usr/lib"; then
14121 haveit=
14122 if test "X$additional_libdir" = "X/usr/local/lib"; then
14123 if test -n "$GCC"; then
14124 case $host_os in
14125 linux*) haveit=yes;;
14126 esac
14127 fi
14128 fi
14129 if test -z "$haveit"; then
14130 haveit=
14131 for x in $LDFLAGS $LIBICONV; do
14132
14133 acl_save_prefix="$prefix"
14134 prefix="$acl_final_prefix"
14135 acl_save_exec_prefix="$exec_prefix"
14136 exec_prefix="$acl_final_exec_prefix"
14137 eval x=\"$x\"
14138 exec_prefix="$acl_save_exec_prefix"
14139 prefix="$acl_save_prefix"
14140
14141 if test "X$x" = "X-L$additional_libdir"; then
14142 haveit=yes
14143 break
14144 fi
14145 done
14146 if test -z "$haveit"; then
14147 if test -d "$additional_libdir"; then
14148 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
14149 fi
14150 fi
14151 haveit=
14152 for x in $LDFLAGS $LTLIBICONV; do
14153
14154 acl_save_prefix="$prefix"
14155 prefix="$acl_final_prefix"
14156 acl_save_exec_prefix="$exec_prefix"
14157 exec_prefix="$acl_final_exec_prefix"
14158 eval x=\"$x\"
14159 exec_prefix="$acl_save_exec_prefix"
14160 prefix="$acl_save_prefix"
14161
14162 if test "X$x" = "X-L$additional_libdir"; then
14163 haveit=yes
14164 break
14165 fi
14166 done
14167 if test -z "$haveit"; then
14168 if test -d "$additional_libdir"; then
14169 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
14170 fi
14171 fi
14172 fi
14173 fi
14174 ;;
14175 -R*)
14176 dir=`echo "X$dep" | sed -e 's/^X-R//'`
14177 if test "$enable_rpath" != no; then
14178 haveit=
14179 for x in $rpathdirs; do
14180 if test "X$x" = "X$dir"; then
14181 haveit=yes
14182 break
14183 fi
14184 done
14185 if test -z "$haveit"; then
14186 rpathdirs="$rpathdirs $dir"
14187 fi
14188 haveit=
14189 for x in $ltrpathdirs; do
14190 if test "X$x" = "X$dir"; then
14191 haveit=yes
14192 break
14193 fi
14194 done
14195 if test -z "$haveit"; then
14196 ltrpathdirs="$ltrpathdirs $dir"
14197 fi
14198 fi
14199 ;;
14200 -l*)
14201 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14202 ;;
14203 *.la)
14204 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14205 ;;
14206 *)
14207 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
14208 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
14209 ;;
14210 esac
14211 done
14212 fi
14213 else
9f1528a1
AB
14214 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
14215 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14216 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
14217 else
14218 LIBICONV="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
14219 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
14220 fi
5ba684e2
NC
14221 fi
14222 fi
14223 fi
14224 done
14225 done
14226 if test "X$rpathdirs" != "X"; then
14227 if test -n "$hardcode_libdir_separator"; then
14228 alldirs=
14229 for found_dir in $rpathdirs; do
14230 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14231 done
14232 acl_save_libdir="$libdir"
14233 libdir="$alldirs"
14234 eval flag=\"$hardcode_libdir_flag_spec\"
14235 libdir="$acl_save_libdir"
14236 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14237 else
14238 for found_dir in $rpathdirs; do
14239 acl_save_libdir="$libdir"
14240 libdir="$found_dir"
14241 eval flag=\"$hardcode_libdir_flag_spec\"
14242 libdir="$acl_save_libdir"
14243 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14244 done
14245 fi
14246 fi
14247 if test "X$ltrpathdirs" != "X"; then
14248 for found_dir in $ltrpathdirs; do
14249 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
14250 done
14251 fi
14252
14253
14254
14255
14256
14257
14258
81ecdfbb
RW
14259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
14260$as_echo_n "checking for iconv... " >&6; }
d0ac1c44 14261if ${am_cv_func_iconv+:} false; then :
81ecdfbb 14262 $as_echo_n "(cached) " >&6
5ba684e2
NC
14263else
14264
14265 am_cv_func_iconv="no, consider installing GNU libiconv"
14266 am_cv_lib_iconv=no
cfe101c6
YS
14267 am_save_CPPFLAGS="$CPPFLAGS"
14268 CPPFLAGS="$CPPFLAGS $INCICONV"
81ecdfbb 14269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5ba684e2
NC
14270/* end confdefs.h. */
14271#include <stdlib.h>
14272#include <iconv.h>
14273int
14274main ()
14275{
14276iconv_t cd = iconv_open("","");
14277 iconv(cd,NULL,NULL,NULL,NULL);
14278 iconv_close(cd);
14279 ;
14280 return 0;
14281}
14282_ACEOF
81ecdfbb 14283if ac_fn_c_try_link "$LINENO"; then :
5ba684e2 14284 am_cv_func_iconv=yes
5ba684e2 14285fi
81ecdfbb
RW
14286rm -f core conftest.err conftest.$ac_objext \
14287 conftest$ac_exeext conftest.$ac_ext
cfe101c6
YS
14288 CPPFLAGS="$am_save_CPPFLAGS"
14289
14290 if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
14291 for _libs in .libs _libs; do
14292 am_save_CPPFLAGS="$CPPFLAGS"
14293 am_save_LIBS="$LIBS"
14294 CPPFLAGS="$CPPFLAGS -I../libiconv/include"
14295 LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a"
14296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14297/* end confdefs.h. */
14298#include <stdlib.h>
14299#include <iconv.h>
14300int
14301main ()
14302{
14303iconv_t cd = iconv_open("","");
14304 iconv(cd,NULL,NULL,NULL,NULL);
14305 iconv_close(cd);
14306 ;
14307 return 0;
14308}
14309_ACEOF
14310if ac_fn_c_try_link "$LINENO"; then :
14311 INCICONV="-I../libiconv/include"
14312 LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a
14313 LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la
14314 am_cv_lib_iconv=yes
14315 am_cv_func_iconv=yes
14316fi
14317rm -f core conftest.err conftest.$ac_objext \
14318 conftest$ac_exeext conftest.$ac_ext
14319 CPPFLAGS="$am_save_CPPFLAGS"
14320 LIBS="$am_save_LIBS"
14321 if test "$am_cv_func_iconv" = "yes"; then
14322 break
14323 fi
14324 done
14325 fi
14326
5ba684e2 14327 if test "$am_cv_func_iconv" != yes; then
cfe101c6 14328 am_save_CPPFLAGS="$CPPFLAGS"
5ba684e2 14329 am_save_LIBS="$LIBS"
5d762de0 14330 CPPFLAGS="$CPPFLAGS $INCICONV"
5ba684e2 14331 LIBS="$LIBS $LIBICONV"
81ecdfbb 14332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5ba684e2
NC
14333/* end confdefs.h. */
14334#include <stdlib.h>
14335#include <iconv.h>
14336int
14337main ()
14338{
14339iconv_t cd = iconv_open("","");
14340 iconv(cd,NULL,NULL,NULL,NULL);
14341 iconv_close(cd);
14342 ;
14343 return 0;
14344}
14345_ACEOF
81ecdfbb 14346if ac_fn_c_try_link "$LINENO"; then :
5ba684e2
NC
14347 am_cv_lib_iconv=yes
14348 am_cv_func_iconv=yes
5ba684e2 14349fi
81ecdfbb
RW
14350rm -f core conftest.err conftest.$ac_objext \
14351 conftest$ac_exeext conftest.$ac_ext
cfe101c6 14352 CPPFLAGS="$am_save_CPPFLAGS"
5ba684e2
NC
14353 LIBS="$am_save_LIBS"
14354 fi
14355
14356fi
81ecdfbb
RW
14357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
14358$as_echo "$am_cv_func_iconv" >&6; }
5ba684e2
NC
14359 if test "$am_cv_func_iconv" = yes; then
14360
81ecdfbb 14361$as_echo "#define HAVE_ICONV 1" >>confdefs.h
5ba684e2
NC
14362
14363 fi
14364 if test "$am_cv_lib_iconv" = yes; then
cfe101c6
YS
14365
14366 for element in $INCICONV; do
14367 haveit=
14368 for x in $CPPFLAGS; do
14369
14370 acl_save_prefix="$prefix"
14371 prefix="$acl_final_prefix"
14372 acl_save_exec_prefix="$exec_prefix"
14373 exec_prefix="$acl_final_exec_prefix"
14374 eval x=\"$x\"
14375 exec_prefix="$acl_save_exec_prefix"
14376 prefix="$acl_save_prefix"
14377
14378 if test "X$x" = "X$element"; then
14379 haveit=yes
14380 break
14381 fi
14382 done
14383 if test -z "$haveit"; then
14384 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14385 fi
14386 done
14387
81ecdfbb
RW
14388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
14389$as_echo_n "checking how to link with libiconv... " >&6; }
14390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
14391$as_echo "$LIBICONV" >&6; }
5ba684e2 14392 else
5ba684e2
NC
14393 LIBICONV=
14394 LTLIBICONV=
14395 fi
14396
14397
14398
14399 if test "$am_cv_func_iconv" = yes; then
81ecdfbb
RW
14400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
14401$as_echo_n "checking for iconv declaration... " >&6; }
d0ac1c44 14402 if ${am_cv_proto_iconv+:} false; then :
81ecdfbb 14403 $as_echo_n "(cached) " >&6
5ba684e2
NC
14404else
14405
81ecdfbb 14406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5ba684e2
NC
14407/* end confdefs.h. */
14408
14409#include <stdlib.h>
14410#include <iconv.h>
14411extern
14412#ifdef __cplusplus
14413"C"
14414#endif
14415#if defined(__STDC__) || defined(__cplusplus)
14416size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
14417#else
14418size_t iconv();
14419#endif
14420
14421int
14422main ()
14423{
14424
14425 ;
14426 return 0;
14427}
14428_ACEOF
81ecdfbb 14429if ac_fn_c_try_compile "$LINENO"; then :
5ba684e2
NC
14430 am_cv_proto_iconv_arg1=""
14431else
81ecdfbb 14432 am_cv_proto_iconv_arg1="const"
5ba684e2 14433fi
81ecdfbb 14434rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5ba684e2
NC
14435 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);"
14436fi
14437
14438 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
81ecdfbb 14439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
5ba684e2 14440 }$am_cv_proto_iconv" >&5
81ecdfbb
RW
14441$as_echo "${ac_t:-
14442 }$am_cv_proto_iconv" >&6; }
5ba684e2
NC
14443
14444cat >>confdefs.h <<_ACEOF
14445#define ICONV_CONST $am_cv_proto_iconv_arg1
14446_ACEOF
14447
14448 fi
14449
14450
252b5132 14451all_targets=false
252b5132
RH
14452BUILD_SRCONV=
14453BUILD_DLLTOOL=
14454DLLTOOL_DEFS=
7aad4c3d 14455DLLTOOL_DEFAULT=
252b5132 14456BUILD_WINDRES=
692ed3e7 14457BUILD_WINDMC=
252b5132
RH
14458BUILD_DLLWRAP=
14459BUILD_MISC=
1d97d67f 14460BUILD_INSTALL_MISC=
8b1e6df3 14461OBJDUMP_DEFS=
6abcee90
TG
14462OBJDUMP_PRIVATE_VECTORS=
14463OBJDUMP_PRIVATE_OFILES=
14464od_vectors=
252b5132
RH
14465
14466for targ in $target $canon_targets
14467do
14468 if test "x$targ" = "xall"; then
14469 all_targets=true
252b5132 14470 BUILD_SRCONV='$(SRCONV_PROG)'
1d97d67f 14471 BUILD_MISC="${BUILD_MISC} "'bin2c$(EXEEXT_FOR_BUILD)'
003bc0ba
NC
14472 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14473 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14474 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14475 if test -z "$DLLTOOL_DEFAULT"; then
14476 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
14477 fi
14478 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
14479 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
1ab52cbe 14480 od_vectors="$od_vectors objdump_private_desc_xcoff"
252b5132 14481 else
252b5132
RH
14482 case $targ in
14483 *-*-hms*) BUILD_SRCONV='$(SRCONV_PROG)' ;;
14484 esac
6abcee90 14485
252b5132 14486 case $targ in
361dff73 14487 arm-wince-pe* | arm-*-wince | arm*-*-cegcc* | arm*-*-mingw32ce*)
7148cc28 14488 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
14489 if test -z "$DLLTOOL_DEFAULT"; then
14490 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM_WINCE"
14491 fi
7148cc28
NC
14492 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_WINCE -DDLLTOOL_ARM"
14493 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 14494 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
7148cc28
NC
14495 ;;
14496 arm-*-pe*)
252b5132 14497 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
14498 if test -z "$DLLTOOL_DEFAULT"; then
14499 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM"
14500 fi
252b5132
RH
14501 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
14502 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 14503 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
7a7b06ef 14504 ;;
ee36d918 14505 x86_64-*-mingw* | x86_64-*-cygwin*)
99ad8390 14506 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
14507 if test -z "$DLLTOOL_DEFAULT"; then
14508 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MX86_64"
14509 fi
99ad8390
NC
14510 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MX86_64"
14511 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 14512 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
99ad8390
NC
14513 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
14514 ;;
80c7c40a 14515 i[3-7]86-*-pe* | i[3-7]86-*-cygwin* | i[3-7]86-*-mingw32** | i[3-7]86-*-netbsdpe*)
252b5132 14516 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
14517 if test -z "$DLLTOOL_DEFAULT"; then
14518 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
14519 fi
252b5132
RH
14520 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
14521 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 14522 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
252b5132 14523 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
7a7b06ef 14524 ;;
80c7c40a 14525 i[3-7]86-*-interix)
7a7b06ef 14526 BUILD_DLLTOOL='$(DLLTOOL_PROG)'
7aad4c3d
L
14527 if test -z "$DLLTOOL_DEFAULT"; then
14528 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
14529 fi
7a7b06ef
ILT
14530 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
14531 ;;
f0660b73
NC
14532 powerpc*-aix5.[01])
14533 ;;
e5231592 14534 powerpc*-aix[5-9].*)
f0660b73
NC
14535 OBJDUMP_DEFS="-DAIX_WEAK_SUPPORT"
14536 ;;
59678365 14537 powerpc*-*-linux* | powerpc*-*-elf* | powerpc*-*-eabi*)
1ab52cbe
AM
14538 case "$BUILD_INSTALL_MISC" in
14539 *embedspu*) ;;
14540 *) BUILD_INSTALL_MISC="${BUILD_INSTALL_MISC} embedspu"
14541 esac
669a9a2a 14542 ;;
e1d5b1e7 14543 sh*-*-pe)
8a0e0f38 14544 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
14545 if test -z "$DLLTOOL_DEFAULT"; then
14546 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_SH"
14547 fi
8a0e0f38
NC
14548 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_SH"
14549 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 14550 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
8a0e0f38 14551 ;;
cd14b966 14552 spu-*-*)
1d97d67f 14553 BUILD_MISC="${BUILD_MISC} "'bin2c$(EXEEXT_FOR_BUILD)'
cd14b966 14554 ;;
e1d5b1e7 14555 mips*-*-pe)
8a0e0f38 14556 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
14557 if test -z "$DLLTOOL_DEFAULT"; then
14558 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MIPS"
14559 fi
8a0e0f38
NC
14560 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MIPS"
14561 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 14562 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
7a7b06ef 14563 ;;
27a710e5 14564 mcore-*-pe)
661016bb 14565 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
14566 if test -z "$DLLTOOL_DEFAULT"; then
14567 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MCORE"
14568 fi
661016bb
NC
14569 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE"
14570 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 14571 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
7a7b06ef 14572 ;;
27a710e5 14573 mcore-*-elf)
661016bb 14574 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
14575 if test -z "$DLLTOOL_DEFAULT"; then
14576 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MCORE_ELF"
14577 fi
661016bb 14578 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE_ELF"
7a7b06ef 14579 ;;
15ab5209
DB
14580 mep-*)
14581 OBJDUMP_DEFS="-DSKIP_ZEROES=256 -DSKIP_ZEROES_AT_END=0"
14582 ;;
252b5132 14583 esac
6abcee90
TG
14584
14585 # Add objdump private vectors.
14586 case $targ in
6d0cfb9c
DC
14587 avr-*-*)
14588 od_vectors="$od_vectors objdump_private_desc_elf32_avr"
14589 ;;
52fe4420 14590 powerpc*-*-aix* | rs6000-*-aix*)
c5012cd8
TG
14591 od_vectors="$od_vectors objdump_private_desc_xcoff"
14592 ;;
14593 *-*-darwin*)
14594 od_vectors="$od_vectors objdump_private_desc_mach_o"
6abcee90
TG
14595 ;;
14596 esac
252b5132
RH
14597 fi
14598done
14599
6abcee90
TG
14600# Uniq objdump private vector, build objdump target ofiles.
14601od_files=
14602f=""
14603for i in $od_vectors ; do
14604 case " $f " in
14605 *" $i "*) ;;
14606 *)
14607 f="$f $i"
14608 OBJDUMP_PRIVATE_VECTORS="$OBJDUMP_PRIVATE_VECTORS &$i,"
14609 case $i in
6d0cfb9c
DC
14610 objdump_private_desc_elf32_avr)
14611 od_files="$od_files od-elf32_avr" ;;
6abcee90
TG
14612 objdump_private_desc_xcoff)
14613 od_files="$od_files od-xcoff" ;;
c5012cd8
TG
14614 objdump_private_desc_mach_o)
14615 od_files="$od_files od-macho" ;;
d0ac1c44 14616 *) as_fn_error $? "*** unknown private vector $i" "$LINENO" 5 ;;
6abcee90
TG
14617 esac
14618 ;;
14619 esac
14620done
14621
14622# Uniq objdump target ofiles
14623f=""
14624for i in $od_files ; do
14625 case " $f " in
14626 *" $i "*) ;;
14627 *)
14628 f="$f $i"
14629 OBJDUMP_PRIVATE_OFILES="$OBJDUMP_PRIVATE_OFILES $i.$objext"
14630 ;;
14631 esac
14632done
14633
7aad4c3d
L
14634DLLTOOL_DEFS="$DLLTOOL_DEFS $DLLTOOL_DEFAULT"
14635
42ecbf5e
DJ
14636if test "${with_windres+set}" = set; then
14637 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14638fi
14639
692ed3e7
NC
14640if test "${with_windmc+set}" = set; then
14641 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14642fi
14643
6abcee90
TG
14644OBJDUMP_DEFS="${OBJDUMP_DEFS} -DOBJDUMP_PRIVATE_VECTORS=\"${OBJDUMP_PRIVATE_VECTORS}\""
14645
14646
692ed3e7 14647
42ecbf5e
DJ
14648
14649
14650
14651
14652
14653
14654
14655
14656
14657
42ecbf5e
DJ
14658cat >>confdefs.h <<_ACEOF
14659#define TARGET "${target}"
14660_ACEOF
14661
14662
14663targ=$target
14664. $srcdir/../bfd/config.bfd
14665if test "x$targ_underscore" = "xyes"; then
14666 UNDERSCORE=1
14667else
14668 UNDERSCORE=0
14669fi
14670
14671cat >>confdefs.h <<_ACEOF
14672#define TARGET_PREPENDS_UNDERSCORE $UNDERSCORE
14673_ACEOF
14674
14675
14676# Emulation
52fbfb5d
AM
14677targ=$target
14678. ${srcdir}/configure.tgt
14679EMULATION=$targ_emul
14680EMULATION_VECTOR=$targ_emul_vector
42ecbf5e
DJ
14681
14682
14683
14684
108a6f8e
CD
14685# Required for html and install-html
14686
14687
14688
14689
31dd3154 14690
81ecdfbb 14691ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in"
da594c4a 14692
42ecbf5e
DJ
14693cat >confcache <<\_ACEOF
14694# This file is a shell script that caches the results of configure
14695# tests run on this system so they can be shared between configure
14696# scripts and configure runs, see configure's option --config-cache.
14697# It is not useful on other systems. If it contains results you don't
14698# want to keep, you may remove or edit it.
14699#
14700# config.status only pays attention to the cache file if you give it
14701# the --recheck option to rerun configure.
14702#
14703# `ac_cv_env_foo' variables (set or unset) will be overridden when
14704# loading this file, other *unset* `ac_cv_foo' will be assigned the
14705# following values.
14706
14707_ACEOF
14708
14709# The following way of writing the cache mishandles newlines in values,
14710# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 14711# So, we kill variables containing newlines.
42ecbf5e
DJ
14712# Ultrix sh set writes to stderr and can't be redirected directly,
14713# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
14714(
14715 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14716 eval ac_val=\$$ac_var
14717 case $ac_val in #(
14718 *${as_nl}*)
14719 case $ac_var in #(
14720 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14721$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14722 esac
14723 case $ac_var in #(
14724 _ | IFS | as_nl) ;; #(
14725 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14726 *) { eval $ac_var=; unset $ac_var;} ;;
14727 esac ;;
14728 esac
14729 done
14730
42ecbf5e 14731 (set) 2>&1 |
81ecdfbb
RW
14732 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14733 *${as_nl}ac_space=\ *)
14734 # `set' does not quote correctly, so add quotes: double-quote
14735 # substitution turns \\\\ into \\, and sed turns \\ into \.
42ecbf5e
DJ
14736 sed -n \
14737 "s/'/'\\\\''/g;
14738 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 14739 ;; #(
42ecbf5e
DJ
14740 *)
14741 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 14742 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
42ecbf5e 14743 ;;
81ecdfbb
RW
14744 esac |
14745 sort
14746) |
42ecbf5e 14747 sed '
81ecdfbb 14748 /^ac_cv_env_/b end
42ecbf5e 14749 t clear
81ecdfbb 14750 :clear
42ecbf5e
DJ
14751 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14752 t end
81ecdfbb
RW
14753 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14754 :end' >>confcache
14755if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14756 if test -w "$cache_file"; then
d0ac1c44 14757 if test "x$cache_file" != "x/dev/null"; then
81ecdfbb
RW
14758 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14759$as_echo "$as_me: updating cache $cache_file" >&6;}
d0ac1c44
SM
14760 if test ! -f "$cache_file" || test -h "$cache_file"; then
14761 cat confcache >"$cache_file"
14762 else
14763 case $cache_file in #(
14764 */* | ?:*)
14765 mv -f confcache "$cache_file"$$ &&
14766 mv -f "$cache_file"$$ "$cache_file" ;; #(
14767 *)
14768 mv -f confcache "$cache_file" ;;
14769 esac
14770 fi
14771 fi
42ecbf5e 14772 else
81ecdfbb
RW
14773 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14774$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
42ecbf5e
DJ
14775 fi
14776fi
14777rm -f confcache
14778
14779test "x$prefix" = xNONE && prefix=$ac_default_prefix
14780# Let make expand exec_prefix.
14781test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14782
42ecbf5e
DJ
14783DEFS=-DHAVE_CONFIG_H
14784
14785ac_libobjs=
14786ac_ltlibobjs=
d0ac1c44 14787U=
42ecbf5e
DJ
14788for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14789 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
14790 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14791 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14792 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14793 # will be set to the directory where LIBOBJS objects are built.
14794 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14795 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
42ecbf5e
DJ
14796done
14797LIBOBJS=$ac_libobjs
14798
14799LTLIBOBJS=$ac_ltlibobjs
14800
14801
d0ac1c44
SM
14802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14803$as_echo_n "checking that generated files are newer than configure... " >&6; }
14804 if test -n "$am_sleep_pid"; then
14805 # Hide warnings about reused PIDs.
14806 wait $am_sleep_pid 2>/dev/null
14807 fi
14808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14809$as_echo "done" >&6; }
81ecdfbb
RW
14810 if test -n "$EXEEXT"; then
14811 am__EXEEXT_TRUE=
14812 am__EXEEXT_FALSE='#'
14813else
14814 am__EXEEXT_TRUE='#'
14815 am__EXEEXT_FALSE=
42ecbf5e 14816fi
81ecdfbb 14817
87b9f255
AM
14818if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14819 as_fn_error $? "conditional \"AMDEP\" was never defined.
14820Usually this means the macro was only invoked conditionally." "$LINENO" 5
14821fi
14822if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14823 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14824Usually this means the macro was only invoked conditionally." "$LINENO" 5
14825fi
094e34f2
NA
14826if test -z "${ENABLE_LIBCTF_TRUE}" && test -z "${ENABLE_LIBCTF_FALSE}"; then
14827 as_fn_error $? "conditional \"ENABLE_LIBCTF\" was never defined.
14828Usually this means the macro was only invoked conditionally." "$LINENO" 5
14829fi
42ecbf5e 14830if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
d0ac1c44 14831 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
81ecdfbb 14832Usually this means the macro was only invoked conditionally." "$LINENO" 5
42ecbf5e 14833fi
d5fbea21 14834if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
d0ac1c44 14835 as_fn_error $? "conditional \"GENINSRC_NEVER\" was never defined.
81ecdfbb 14836Usually this means the macro was only invoked conditionally." "$LINENO" 5
d5fbea21 14837fi
42ecbf5e 14838
d0ac1c44 14839: "${CONFIG_STATUS=./config.status}"
81ecdfbb 14840ac_write_fail=0
42ecbf5e
DJ
14841ac_clean_files_save=$ac_clean_files
14842ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
14843{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14844$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14845as_write_fail=0
14846cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
42ecbf5e
DJ
14847#! $SHELL
14848# Generated by $as_me.
14849# Run this file to recreate the current configuration.
14850# Compiler output produced by configure, useful for debugging
14851# configure, is in config.log if it exists.
14852
14853debug=false
14854ac_cs_recheck=false
14855ac_cs_silent=false
252b5132 14856
81ecdfbb
RW
14857SHELL=\${CONFIG_SHELL-$SHELL}
14858export SHELL
14859_ASEOF
14860cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14861## -------------------- ##
14862## M4sh Initialization. ##
14863## -------------------- ##
252b5132 14864
81ecdfbb
RW
14865# Be more Bourne compatible
14866DUALCASE=1; export DUALCASE # for MKS sh
14867if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
42ecbf5e
DJ
14868 emulate sh
14869 NULLCMD=:
81ecdfbb 14870 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
42ecbf5e
DJ
14871 # is contrary to our usage. Disable this feature.
14872 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
14873 setopt NO_GLOB_SUBST
14874else
14875 case `(set -o) 2>/dev/null` in #(
14876 *posix*) :
14877 set -o posix ;; #(
14878 *) :
14879 ;;
14880esac
42ecbf5e 14881fi
252b5132 14882
81ecdfbb
RW
14883
14884as_nl='
14885'
14886export as_nl
14887# Printing a long string crashes Solaris 7 /usr/bin/printf.
14888as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14889as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14890as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14891# Prefer a ksh shell builtin over an external printf program on Solaris,
14892# but without wasting forks for bash or zsh.
14893if test -z "$BASH_VERSION$ZSH_VERSION" \
14894 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14895 as_echo='print -r --'
14896 as_echo_n='print -rn --'
14897elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14898 as_echo='printf %s\n'
14899 as_echo_n='printf %s'
14900else
14901 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14902 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14903 as_echo_n='/usr/ucb/echo -n'
14904 else
14905 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14906 as_echo_n_body='eval
14907 arg=$1;
14908 case $arg in #(
14909 *"$as_nl"*)
14910 expr "X$arg" : "X\\(.*\\)$as_nl";
14911 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14912 esac;
14913 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14914 '
14915 export as_echo_n_body
14916 as_echo_n='sh -c $as_echo_n_body as_echo'
14917 fi
14918 export as_echo_body
14919 as_echo='sh -c $as_echo_body as_echo'
14920fi
14921
14922# The user is always right.
14923if test "${PATH_SEPARATOR+set}" != set; then
14924 PATH_SEPARATOR=:
14925 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14926 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14927 PATH_SEPARATOR=';'
14928 }
42ecbf5e 14929fi
252b5132
RH
14930
14931
81ecdfbb
RW
14932# IFS
14933# We need space, tab and new line, in precisely that order. Quoting is
14934# there to prevent editors from complaining about space-tab.
14935# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14936# splitting by setting IFS to empty value.)
14937IFS=" "" $as_nl"
14938
14939# Find who we are. Look in the path if we contain no directory separator.
d0ac1c44 14940as_myself=
81ecdfbb
RW
14941case $0 in #((
14942 *[\\/]* ) as_myself=$0 ;;
14943 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14944for as_dir in $PATH
14945do
14946 IFS=$as_save_IFS
14947 test -z "$as_dir" && as_dir=.
14948 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14949 done
14950IFS=$as_save_IFS
14951
14952 ;;
14953esac
14954# We did not find ourselves, most probably we were run as `sh COMMAND'
14955# in which case we are not to be found in the path.
14956if test "x$as_myself" = x; then
14957 as_myself=$0
14958fi
14959if test ! -f "$as_myself"; then
14960 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14961 exit 1
14962fi
14963
14964# Unset variables that we do not need and which cause bugs (e.g. in
14965# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14966# suppresses any "Segmentation fault" message there. '((' could
14967# trigger a bug in pdksh 5.2.14.
14968for as_var in BASH_ENV ENV MAIL MAILPATH
14969do eval test x\${$as_var+set} = xset \
14970 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14971done
42ecbf5e
DJ
14972PS1='$ '
14973PS2='> '
14974PS4='+ '
252b5132 14975
42ecbf5e 14976# NLS nuisances.
81ecdfbb
RW
14977LC_ALL=C
14978export LC_ALL
14979LANGUAGE=C
14980export LANGUAGE
14981
14982# CDPATH.
14983(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14984
14985
d0ac1c44
SM
14986# as_fn_error STATUS ERROR [LINENO LOG_FD]
14987# ----------------------------------------
81ecdfbb
RW
14988# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14989# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
d0ac1c44 14990# script with STATUS, using 1 if that was 0.
81ecdfbb
RW
14991as_fn_error ()
14992{
d0ac1c44
SM
14993 as_status=$1; test $as_status -eq 0 && as_status=1
14994 if test "$4"; then
14995 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14996 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
42ecbf5e 14997 fi
d0ac1c44 14998 $as_echo "$as_me: error: $2" >&2
81ecdfbb
RW
14999 as_fn_exit $as_status
15000} # as_fn_error
15001
15002
15003# as_fn_set_status STATUS
15004# -----------------------
15005# Set $? to STATUS, without forking.
15006as_fn_set_status ()
15007{
15008 return $1
15009} # as_fn_set_status
15010
15011# as_fn_exit STATUS
15012# -----------------
15013# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15014as_fn_exit ()
15015{
15016 set +e
15017 as_fn_set_status $1
15018 exit $1
15019} # as_fn_exit
15020
15021# as_fn_unset VAR
15022# ---------------
15023# Portably unset VAR.
15024as_fn_unset ()
15025{
15026 { eval $1=; unset $1;}
15027}
15028as_unset=as_fn_unset
15029# as_fn_append VAR VALUE
15030# ----------------------
15031# Append the text in VALUE to the end of the definition contained in VAR. Take
15032# advantage of any shell optimizations that allow amortized linear growth over
15033# repeated appends, instead of the typical quadratic growth present in naive
15034# implementations.
15035if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15036 eval 'as_fn_append ()
15037 {
15038 eval $1+=\$2
15039 }'
15040else
15041 as_fn_append ()
15042 {
15043 eval $1=\$$1\$2
15044 }
15045fi # as_fn_append
15046
15047# as_fn_arith ARG...
15048# ------------------
15049# Perform arithmetic evaluation on the ARGs, and store the result in the
15050# global $as_val. Take advantage of shells that can avoid forks. The arguments
15051# must be portable across $(()) and expr.
15052if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15053 eval 'as_fn_arith ()
15054 {
15055 as_val=$(( $* ))
15056 }'
15057else
15058 as_fn_arith ()
15059 {
15060 as_val=`expr "$@" || test $? -eq 1`
15061 }
15062fi # as_fn_arith
15063
252b5132 15064
81ecdfbb
RW
15065if expr a : '\(a\)' >/dev/null 2>&1 &&
15066 test "X`expr 00001 : '.*\(...\)'`" = X001; then
42ecbf5e
DJ
15067 as_expr=expr
15068else
15069 as_expr=false
15070fi
252b5132 15071
81ecdfbb 15072if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
42ecbf5e
DJ
15073 as_basename=basename
15074else
15075 as_basename=false
15076fi
252b5132 15077
81ecdfbb
RW
15078if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15079 as_dirname=dirname
15080else
15081 as_dirname=false
15082fi
8b1e6df3 15083
81ecdfbb 15084as_me=`$as_basename -- "$0" ||
42ecbf5e
DJ
15085$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15086 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
15087 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15088$as_echo X/"$0" |
15089 sed '/^.*\/\([^/][^/]*\)\/*$/{
15090 s//\1/
15091 q
15092 }
15093 /^X\/\(\/\/\)$/{
15094 s//\1/
15095 q
15096 }
15097 /^X\/\(\/\).*/{
15098 s//\1/
15099 q
15100 }
15101 s/.*/./; q'`
0218d1e4 15102
42ecbf5e
DJ
15103# Avoid depending upon Character Ranges.
15104as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15105as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15106as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15107as_cr_digits='0123456789'
15108as_cr_alnum=$as_cr_Letters$as_cr_digits
252b5132 15109
81ecdfbb
RW
15110ECHO_C= ECHO_N= ECHO_T=
15111case `echo -n x` in #(((((
15112-n*)
15113 case `echo 'xy\c'` in
15114 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15115 xy) ECHO_C='\c';;
15116 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15117 ECHO_T=' ';;
15118 esac;;
15119*)
15120 ECHO_N='-n';;
42ecbf5e 15121esac
eb1e0e80 15122
81ecdfbb
RW
15123rm -f conf$$ conf$$.exe conf$$.file
15124if test -d conf$$.dir; then
15125 rm -f conf$$.dir/conf$$.file
d15b04bd 15126else
81ecdfbb
RW
15127 rm -f conf$$.dir
15128 mkdir conf$$.dir 2>/dev/null
42ecbf5e 15129fi
81ecdfbb
RW
15130if (echo >conf$$.file) 2>/dev/null; then
15131 if ln -s conf$$.file conf$$ 2>/dev/null; then
42ecbf5e 15132 as_ln_s='ln -s'
81ecdfbb
RW
15133 # ... but there are two gotchas:
15134 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15135 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
d0ac1c44 15136 # In both cases, we have to default to `cp -pR'.
81ecdfbb 15137 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d0ac1c44 15138 as_ln_s='cp -pR'
81ecdfbb
RW
15139 elif ln conf$$.file conf$$ 2>/dev/null; then
15140 as_ln_s=ln
15141 else
d0ac1c44 15142 as_ln_s='cp -pR'
252b5132 15143 fi
42ecbf5e 15144else
d0ac1c44 15145 as_ln_s='cp -pR'
252b5132 15146fi
81ecdfbb
RW
15147rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15148rmdir conf$$.dir 2>/dev/null
15149
15150
15151# as_fn_mkdir_p
15152# -------------
15153# Create "$as_dir" as a directory, including parents if necessary.
15154as_fn_mkdir_p ()
15155{
15156
15157 case $as_dir in #(
15158 -*) as_dir=./$as_dir;;
15159 esac
15160 test -d "$as_dir" || eval $as_mkdir_p || {
15161 as_dirs=
15162 while :; do
15163 case $as_dir in #(
15164 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15165 *) as_qdir=$as_dir;;
15166 esac
15167 as_dirs="'$as_qdir' $as_dirs"
15168 as_dir=`$as_dirname -- "$as_dir" ||
15169$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15170 X"$as_dir" : 'X\(//\)[^/]' \| \
15171 X"$as_dir" : 'X\(//\)$' \| \
15172 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15173$as_echo X"$as_dir" |
15174 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15175 s//\1/
15176 q
15177 }
15178 /^X\(\/\/\)[^/].*/{
15179 s//\1/
15180 q
15181 }
15182 /^X\(\/\/\)$/{
15183 s//\1/
15184 q
15185 }
15186 /^X\(\/\).*/{
15187 s//\1/
15188 q
15189 }
15190 s/.*/./; q'`
15191 test -d "$as_dir" && break
15192 done
15193 test -z "$as_dirs" || eval "mkdir $as_dirs"
d0ac1c44 15194 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
81ecdfbb 15195
252b5132 15196
81ecdfbb 15197} # as_fn_mkdir_p
42ecbf5e 15198if mkdir -p . 2>/dev/null; then
81ecdfbb 15199 as_mkdir_p='mkdir -p "$as_dir"'
42ecbf5e
DJ
15200else
15201 test -d ./-p && rmdir ./-p
15202 as_mkdir_p=false
15203fi
81ecdfbb 15204
d0ac1c44
SM
15205
15206# as_fn_executable_p FILE
15207# -----------------------
15208# Test if FILE is an executable regular file.
15209as_fn_executable_p ()
15210{
15211 test -f "$1" && test -x "$1"
15212} # as_fn_executable_p
15213as_test_x='test -x'
15214as_executable_p=as_fn_executable_p
252b5132 15215
42ecbf5e
DJ
15216# Sed expression to map a string onto a valid CPP name.
15217as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15218
15219# Sed expression to map a string onto a valid variable name.
15220as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15221
15222
42ecbf5e 15223exec 6>&1
81ecdfbb
RW
15224## ----------------------------------- ##
15225## Main body of $CONFIG_STATUS script. ##
15226## ----------------------------------- ##
15227_ASEOF
15228test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
42ecbf5e 15229
81ecdfbb
RW
15230cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15231# Save the log message, to keep $0 and so on meaningful, and to
42ecbf5e 15232# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
15233# values after options handling.
15234ac_log="
346d80ef 15235This file was extended by binutils $as_me 2.37.50, which was
d0ac1c44 15236generated by GNU Autoconf 2.69. Invocation command line was
42ecbf5e
DJ
15237
15238 CONFIG_FILES = $CONFIG_FILES
15239 CONFIG_HEADERS = $CONFIG_HEADERS
15240 CONFIG_LINKS = $CONFIG_LINKS
15241 CONFIG_COMMANDS = $CONFIG_COMMANDS
15242 $ $0 $@
15243
81ecdfbb
RW
15244on `(hostname || uname -n) 2>/dev/null | sed 1q`
15245"
15246
42ecbf5e
DJ
15247_ACEOF
15248
81ecdfbb
RW
15249case $ac_config_files in *"
15250"*) set x $ac_config_files; shift; ac_config_files=$*;;
15251esac
252b5132 15252
81ecdfbb
RW
15253case $ac_config_headers in *"
15254"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15255esac
e5a52504
MM
15256
15257
81ecdfbb
RW
15258cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15259# Files that config.status was made for.
15260config_files="$ac_config_files"
15261config_headers="$ac_config_headers"
15262config_commands="$ac_config_commands"
d15b04bd 15263
81ecdfbb 15264_ACEOF
42ecbf5e 15265
81ecdfbb 15266cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42ecbf5e 15267ac_cs_usage="\
81ecdfbb
RW
15268\`$as_me' instantiates files and other configuration actions
15269from templates according to the current configuration. Unless the files
15270and actions are specified as TAGs, all are instantiated by default.
42ecbf5e 15271
81ecdfbb 15272Usage: $0 [OPTION]... [TAG]...
42ecbf5e
DJ
15273
15274 -h, --help print this help, then exit
81ecdfbb 15275 -V, --version print version number and configuration settings, then exit
d0ac1c44 15276 --config print configuration, then exit
81ecdfbb
RW
15277 -q, --quiet, --silent
15278 do not print progress messages
42ecbf5e
DJ
15279 -d, --debug don't remove temporary files
15280 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
15281 --file=FILE[:TEMPLATE]
15282 instantiate the configuration file FILE
15283 --header=FILE[:TEMPLATE]
15284 instantiate the configuration header FILE
42ecbf5e
DJ
15285
15286Configuration files:
15287$config_files
15288
15289Configuration headers:
15290$config_headers
15291
15292Configuration commands:
15293$config_commands
15294
81ecdfbb 15295Report bugs to the package provider."
42ecbf5e 15296
81ecdfbb
RW
15297_ACEOF
15298cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d0ac1c44 15299ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
42ecbf5e 15300ac_cs_version="\\
346d80ef 15301binutils config.status 2.37.50
d0ac1c44
SM
15302configured by $0, generated by GNU Autoconf 2.69,
15303 with options \\"\$ac_cs_config\\"
42ecbf5e 15304
d0ac1c44 15305Copyright (C) 2012 Free Software Foundation, Inc.
42ecbf5e
DJ
15306This config.status script is free software; the Free Software Foundation
15307gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
15308
15309ac_pwd='$ac_pwd'
15310srcdir='$srcdir'
15311INSTALL='$INSTALL'
15312MKDIR_P='$MKDIR_P'
15313AWK='$AWK'
15314test -n "\$AWK" || AWK=awk
42ecbf5e
DJ
15315_ACEOF
15316
81ecdfbb
RW
15317cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15318# The default lists apply if the user does not specify any file.
42ecbf5e
DJ
15319ac_need_defaults=:
15320while test $# != 0
15321do
15322 case $1 in
d0ac1c44 15323 --*=?*)
81ecdfbb
RW
15324 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15325 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
42ecbf5e
DJ
15326 ac_shift=:
15327 ;;
d0ac1c44
SM
15328 --*=)
15329 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15330 ac_optarg=
15331 ac_shift=:
15332 ;;
81ecdfbb 15333 *)
42ecbf5e
DJ
15334 ac_option=$1
15335 ac_optarg=$2
15336 ac_shift=shift
15337 ;;
42ecbf5e
DJ
15338 esac
15339
15340 case $ac_option in
15341 # Handling of the options.
42ecbf5e
DJ
15342 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15343 ac_cs_recheck=: ;;
81ecdfbb
RW
15344 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15345 $as_echo "$ac_cs_version"; exit ;;
d0ac1c44
SM
15346 --config | --confi | --conf | --con | --co | --c )
15347 $as_echo "$ac_cs_config"; exit ;;
81ecdfbb 15348 --debug | --debu | --deb | --de | --d | -d )
42ecbf5e
DJ
15349 debug=: ;;
15350 --file | --fil | --fi | --f )
15351 $ac_shift
81ecdfbb
RW
15352 case $ac_optarg in
15353 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
d0ac1c44 15354 '') as_fn_error $? "missing file argument" ;;
81ecdfbb
RW
15355 esac
15356 as_fn_append CONFIG_FILES " '$ac_optarg'"
42ecbf5e
DJ
15357 ac_need_defaults=false;;
15358 --header | --heade | --head | --hea )
15359 $ac_shift
81ecdfbb
RW
15360 case $ac_optarg in
15361 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15362 esac
15363 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
42ecbf5e 15364 ac_need_defaults=false;;
81ecdfbb
RW
15365 --he | --h)
15366 # Conflict between --help and --header
d0ac1c44 15367 as_fn_error $? "ambiguous option: \`$1'
81ecdfbb
RW
15368Try \`$0 --help' for more information.";;
15369 --help | --hel | -h )
15370 $as_echo "$ac_cs_usage"; exit ;;
42ecbf5e
DJ
15371 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15372 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15373 ac_cs_silent=: ;;
15374
15375 # This is an error.
d0ac1c44 15376 -*) as_fn_error $? "unrecognized option: \`$1'
81ecdfbb 15377Try \`$0 --help' for more information." ;;
42ecbf5e 15378
81ecdfbb
RW
15379 *) as_fn_append ac_config_targets " $1"
15380 ac_need_defaults=false ;;
42ecbf5e
DJ
15381
15382 esac
15383 shift
15384done
15385
15386ac_configure_extra_args=
15387
15388if $ac_cs_silent; then
15389 exec 6>/dev/null
15390 ac_configure_extra_args="$ac_configure_extra_args --silent"
15391fi
15392
15393_ACEOF
81ecdfbb 15394cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42ecbf5e 15395if \$ac_cs_recheck; then
d0ac1c44 15396 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
81ecdfbb
RW
15397 shift
15398 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15399 CONFIG_SHELL='$SHELL'
15400 export CONFIG_SHELL
15401 exec "\$@"
42ecbf5e
DJ
15402fi
15403
15404_ACEOF
81ecdfbb
RW
15405cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15406exec 5>>config.log
15407{
15408 echo
15409 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15410## Running $as_me. ##
15411_ASBOX
15412 $as_echo "$ac_log"
15413} >&5
42ecbf5e 15414
81ecdfbb
RW
15415_ACEOF
15416cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d15b04bd 15417#
81ecdfbb 15418# INIT-COMMANDS
d15b04bd 15419#
42ecbf5e 15420AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
d7040cdb
SE
15421
15422
15423# The HP-UX ksh and POSIX shell print the target directory to stdout
15424# if CDPATH is set.
15425(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15426
15427sed_quote_subst='$sed_quote_subst'
15428double_quote_subst='$double_quote_subst'
15429delay_variable_subst='$delay_variable_subst'
3725885a
RW
15430macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15431macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15432enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15433enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15434pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15435enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15436SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15437ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15438host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15439host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15440host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15441build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15442build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15443build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15444SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15445Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15446GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15447EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15448FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15449LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15450NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15451LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15452max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15453ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15454exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15455lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15456lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15457lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15458reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15459reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15460OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15461deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15462file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15463AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15464AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15465STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15466RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15467old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15468old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15469old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15470lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15471CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15472CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15473compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15474GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15475lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15476lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15477lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15478lt_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"`'
15479objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15480MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15481lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
df7b86aa 15482lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
f2c621e4 15483lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
3725885a
RW
15484lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15485lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15486need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15487DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15488NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15489LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15490OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15491OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15492libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15493shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15494extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15495archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15496enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15497export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15498whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15499compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15500old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15501old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15502archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15503archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15504module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15505module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15506with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15507allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15508no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15509hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15510hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15511hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15512hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15513hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15514hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15515hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15516hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15517inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15518link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
f2c621e4 15519fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
3725885a
RW
15520always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15521export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15522exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15523include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15524prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15525file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15526variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15527need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15528need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15529version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15530runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15531shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15532shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15533libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15534library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15535soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15536install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15537postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15538postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15539finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15540finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15541hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15542sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15543sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15544hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15545enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15546enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15547enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15548old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15549striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
d7040cdb
SE
15550
15551LTCC='$LTCC'
15552LTCFLAGS='$LTCFLAGS'
15553compiler='$compiler_DEFAULT'
15554
3725885a
RW
15555# A function that is used when there is no print builtin or printf.
15556func_fallback_echo ()
15557{
15558 eval 'cat <<_LTECHO_EOF
15559\$1
15560_LTECHO_EOF'
15561}
15562
d7040cdb 15563# Quote evaled strings.
3725885a
RW
15564for var in SHELL \
15565ECHO \
15566SED \
d7040cdb
SE
15567GREP \
15568EGREP \
15569FGREP \
15570LD \
15571NM \
15572LN_S \
15573lt_SP2NL \
15574lt_NL2SP \
15575reload_flag \
718a6fd8 15576OBJDUMP \
d7040cdb
SE
15577deplibs_check_method \
15578file_magic_cmd \
15579AR \
15580AR_FLAGS \
15581STRIP \
15582RANLIB \
15583CC \
15584CFLAGS \
15585compiler \
15586lt_cv_sys_global_symbol_pipe \
15587lt_cv_sys_global_symbol_to_cdecl \
15588lt_cv_sys_global_symbol_to_c_name_address \
718a6fd8 15589lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
d7040cdb 15590lt_prog_compiler_no_builtin_flag \
df7b86aa 15591lt_prog_compiler_wl \
f2c621e4 15592lt_prog_compiler_pic \
d7040cdb
SE
15593lt_prog_compiler_static \
15594lt_cv_prog_compiler_c_o \
15595need_locks \
718a6fd8
SE
15596DSYMUTIL \
15597NMEDIT \
15598LIPO \
15599OTOOL \
15600OTOOL64 \
d7040cdb
SE
15601shrext_cmds \
15602export_dynamic_flag_spec \
15603whole_archive_flag_spec \
15604compiler_needs_object \
15605with_gnu_ld \
15606allow_undefined_flag \
15607no_undefined_flag \
15608hardcode_libdir_flag_spec \
15609hardcode_libdir_flag_spec_ld \
15610hardcode_libdir_separator \
f2c621e4 15611fix_srcfile_path \
d7040cdb
SE
15612exclude_expsyms \
15613include_expsyms \
15614file_list_spec \
15615variables_saved_for_relink \
15616libname_spec \
15617library_names_spec \
15618soname_spec \
3725885a 15619install_override_mode \
d7040cdb
SE
15620finish_eval \
15621old_striplib \
15622striplib; do
3725885a 15623 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
d7040cdb 15624 *[\\\\\\\`\\"\\\$]*)
3725885a 15625 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
d7040cdb
SE
15626 ;;
15627 *)
15628 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15629 ;;
15630 esac
15631done
15632
15633# Double-quote double-evaled strings.
15634for var in reload_cmds \
15635old_postinstall_cmds \
15636old_postuninstall_cmds \
15637old_archive_cmds \
15638extract_expsyms_cmds \
15639old_archive_from_new_cmds \
15640old_archive_from_expsyms_cmds \
15641archive_cmds \
15642archive_expsym_cmds \
15643module_cmds \
15644module_expsym_cmds \
15645export_symbols_cmds \
15646prelink_cmds \
15647postinstall_cmds \
15648postuninstall_cmds \
15649finish_cmds \
15650sys_lib_search_path_spec \
15651sys_lib_dlsearch_path_spec; do
3725885a 15652 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
d7040cdb 15653 *[\\\\\\\`\\"\\\$]*)
3725885a 15654 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
d7040cdb
SE
15655 ;;
15656 *)
15657 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15658 ;;
15659 esac
15660done
15661
d7040cdb
SE
15662ac_aux_dir='$ac_aux_dir'
15663xsi_shell='$xsi_shell'
15664lt_shell_append='$lt_shell_append'
15665
15666# See if we are running on zsh, and set the options which allow our
15667# commands through without removal of \ escapes INIT.
15668if test -n "\${ZSH_VERSION+set}" ; then
15669 setopt NO_GLOB_SUBST
15670fi
15671
15672
15673 PACKAGE='$PACKAGE'
15674 VERSION='$VERSION'
15675 TIMESTAMP='$TIMESTAMP'
15676 RM='$RM'
15677 ofile='$ofile'
15678
15679
15680
20e95c23
DJ
15681# Capture the value of obsolete ALL_LINGUAS because we need it to compute
15682 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
15683 # from automake.
15684 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
15685 # Capture the value of LINGUAS because we need it to compute CATALOGS.
15686 LINGUAS="${LINGUAS-%UNSET%}"
15687
42ecbf5e
DJ
15688
15689_ACEOF
15690
81ecdfbb 15691cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42ecbf5e 15692
81ecdfbb 15693# Handling of arguments.
42ecbf5e 15694for ac_config_target in $ac_config_targets
252b5132 15695do
81ecdfbb
RW
15696 case $ac_config_target in
15697 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15698 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15699 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
15700 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15701 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15702 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15703 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
15704
d0ac1c44 15705 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
d15b04bd 15706 esac
252b5132
RH
15707done
15708
81ecdfbb 15709
42ecbf5e
DJ
15710# If the user did not use the arguments to specify the items to instantiate,
15711# then the envvar interface is used. Set only those that are not.
15712# We use the long form for the default assignment because of an extremely
15713# bizarre bug on SunOS 4.1.3.
15714if $ac_need_defaults; then
15715 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15716 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15717 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15718fi
15719
15720# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 15721# simply because there is no reason against having it here, and in addition,
42ecbf5e 15722# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
15723# Hook for its removal unless debugging.
15724# Note that there is a small window in which the directory will not be cleaned:
15725# after its creation but before its name has been assigned to `$tmp'.
42ecbf5e
DJ
15726$debug ||
15727{
d0ac1c44 15728 tmp= ac_tmp=
81ecdfbb 15729 trap 'exit_status=$?
d0ac1c44
SM
15730 : "${ac_tmp:=$tmp}"
15731 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
81ecdfbb
RW
15732' 0
15733 trap 'as_fn_exit 1' 1 2 13 15
42ecbf5e 15734}
42ecbf5e 15735# Create a (secure) tmp directory for tmp files.
e5a52504 15736
42ecbf5e 15737{
81ecdfbb 15738 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
d0ac1c44 15739 test -d "$tmp"
42ecbf5e
DJ
15740} ||
15741{
81ecdfbb
RW
15742 tmp=./conf$$-$RANDOM
15743 (umask 077 && mkdir "$tmp")
d0ac1c44
SM
15744} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15745ac_tmp=$tmp
81ecdfbb
RW
15746
15747# Set up the scripts for CONFIG_FILES section.
15748# No need to generate them if there are no CONFIG_FILES.
15749# This happens for instance with `./config.status config.h'.
15750if test -n "$CONFIG_FILES"; then
15751
15752
15753ac_cr=`echo X | tr X '\015'`
15754# On cygwin, bash can eat \r inside `` if the user requested igncr.
15755# But we know of no other shell where ac_cr would be empty at this
15756# point, so we can use a bashism as a fallback.
15757if test "x$ac_cr" = x; then
15758 eval ac_cr=\$\'\\r\'
15759fi
15760ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15761if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
d0ac1c44 15762 ac_cs_awk_cr='\\r'
81ecdfbb
RW
15763else
15764 ac_cs_awk_cr=$ac_cr
15765fi
15766
d0ac1c44 15767echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
81ecdfbb
RW
15768_ACEOF
15769
15770
15771{
15772 echo "cat >conf$$subs.awk <<_ACEOF" &&
15773 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15774 echo "_ACEOF"
15775} >conf$$subs.sh ||
d0ac1c44
SM
15776 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15777ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
81ecdfbb
RW
15778ac_delim='%!_!# '
15779for ac_last_try in false false false false false :; do
15780 . ./conf$$subs.sh ||
d0ac1c44 15781 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
81ecdfbb
RW
15782
15783 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15784 if test $ac_delim_n = $ac_delim_num; then
15785 break
15786 elif $ac_last_try; then
d0ac1c44 15787 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
81ecdfbb
RW
15788 else
15789 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15790 fi
15791done
15792rm -f conf$$subs.sh
15793
15794cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d0ac1c44 15795cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
81ecdfbb
RW
15796_ACEOF
15797sed -n '
15798h
15799s/^/S["/; s/!.*/"]=/
15800p
15801g
15802s/^[^!]*!//
15803:repl
15804t repl
15805s/'"$ac_delim"'$//
15806t delim
15807:nl
15808h
d0ac1c44 15809s/\(.\{148\}\)..*/\1/
81ecdfbb
RW
15810t more1
15811s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15812p
15813n
15814b repl
15815:more1
15816s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15817p
15818g
15819s/.\{148\}//
15820t nl
15821:delim
15822h
d0ac1c44 15823s/\(.\{148\}\)..*/\1/
81ecdfbb
RW
15824t more2
15825s/["\\]/\\&/g; s/^/"/; s/$/"/
15826p
15827b
15828:more2
15829s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15830p
15831g
15832s/.\{148\}//
15833t delim
15834' <conf$$subs.awk | sed '
15835/^[^""]/{
15836 N
15837 s/\n//
15838}
15839' >>$CONFIG_STATUS || ac_write_fail=1
15840rm -f conf$$subs.awk
15841cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15842_ACAWK
d0ac1c44 15843cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
81ecdfbb
RW
15844 for (key in S) S_is_set[key] = 1
15845 FS = "\a"
15846
15847}
42ecbf5e 15848{
81ecdfbb
RW
15849 line = $ 0
15850 nfields = split(line, field, "@")
15851 substed = 0
15852 len = length(field[1])
15853 for (i = 2; i < nfields; i++) {
15854 key = field[i]
15855 keylen = length(key)
15856 if (S_is_set[key]) {
15857 value = S[key]
15858 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15859 len += length(value) + length(field[++i])
15860 substed = 1
15861 } else
15862 len += 1 + keylen
15863 }
15864
15865 print line
42ecbf5e
DJ
15866}
15867
81ecdfbb
RW
15868_ACAWK
15869_ACEOF
15870cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15871if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15872 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15873else
15874 cat
d0ac1c44
SM
15875fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15876 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
42ecbf5e
DJ
15877_ACEOF
15878
d0ac1c44
SM
15879# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15880# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
81ecdfbb
RW
15881# trailing colons and then remove the whole line if VPATH becomes empty
15882# (actually we leave an empty line to preserve line numbers).
15883if test "x$srcdir" = x.; then
d0ac1c44
SM
15884 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15885h
15886s///
15887s/^/:/
15888s/[ ]*$/:/
15889s/:\$(srcdir):/:/g
15890s/:\${srcdir}:/:/g
15891s/:@srcdir@:/:/g
15892s/^:*//
81ecdfbb 15893s/:*$//
d0ac1c44
SM
15894x
15895s/\(=[ ]*\).*/\1/
15896G
15897s/\n//
81ecdfbb
RW
15898s/^[^=]*=[ ]*$//
15899}'
15900fi
e5a52504 15901
81ecdfbb
RW
15902cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15903fi # test -n "$CONFIG_FILES"
252b5132 15904
81ecdfbb
RW
15905# Set up the scripts for CONFIG_HEADERS section.
15906# No need to generate them if there are no CONFIG_HEADERS.
15907# This happens for instance with `./config.status Makefile'.
15908if test -n "$CONFIG_HEADERS"; then
d0ac1c44 15909cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
81ecdfbb 15910BEGIN {
42ecbf5e
DJ
15911_ACEOF
15912
81ecdfbb
RW
15913# Transform confdefs.h into an awk script `defines.awk', embedded as
15914# here-document in config.status, that substitutes the proper values into
15915# config.h.in to produce config.h.
15916
15917# Create a delimiter string that does not exist in confdefs.h, to ease
15918# handling of long lines.
15919ac_delim='%!_!# '
15920for ac_last_try in false false :; do
d0ac1c44
SM
15921 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15922 if test -z "$ac_tt"; then
81ecdfbb
RW
15923 break
15924 elif $ac_last_try; then
d0ac1c44 15925 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
81ecdfbb
RW
15926 else
15927 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
252b5132 15928 fi
81ecdfbb 15929done
252b5132 15930
81ecdfbb
RW
15931# For the awk script, D is an array of macro values keyed by name,
15932# likewise P contains macro parameters if any. Preserve backslash
15933# newline sequences.
15934
15935ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15936sed -n '
15937s/.\{148\}/&'"$ac_delim"'/g
15938t rset
15939:rset
15940s/^[ ]*#[ ]*define[ ][ ]*/ /
15941t def
15942d
15943:def
15944s/\\$//
15945t bsnl
15946s/["\\]/\\&/g
15947s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15948D["\1"]=" \3"/p
15949s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15950d
15951:bsnl
15952s/["\\]/\\&/g
15953s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15954D["\1"]=" \3\\\\\\n"\\/p
15955t cont
15956s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15957t cont
15958d
15959:cont
15960n
15961s/.\{148\}/&'"$ac_delim"'/g
15962t clear
15963:clear
15964s/\\$//
15965t bsnlc
15966s/["\\]/\\&/g; s/^/"/; s/$/"/p
15967d
15968:bsnlc
15969s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15970b cont
15971' <confdefs.h | sed '
15972s/'"$ac_delim"'/"\\\
15973"/g' >>$CONFIG_STATUS || ac_write_fail=1
15974
15975cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15976 for (key in D) D_is_set[key] = 1
15977 FS = "\a"
15978}
15979/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15980 line = \$ 0
15981 split(line, arg, " ")
15982 if (arg[1] == "#") {
15983 defundef = arg[2]
15984 mac1 = arg[3]
15985 } else {
15986 defundef = substr(arg[1], 2)
15987 mac1 = arg[2]
15988 }
15989 split(mac1, mac2, "(") #)
15990 macro = mac2[1]
15991 prefix = substr(line, 1, index(line, defundef) - 1)
15992 if (D_is_set[macro]) {
15993 # Preserve the white space surrounding the "#".
15994 print prefix "define", macro P[macro] D[macro]
15995 next
15996 } else {
15997 # Replace #undef with comments. This is necessary, for example,
15998 # in the case of _POSIX_SOURCE, which is predefined and required
15999 # on some systems where configure will not decide to define it.
16000 if (defundef == "undef") {
16001 print "/*", prefix defundef, macro, "*/"
16002 next
16003 }
16004 }
16005}
16006{ print }
16007_ACAWK
42ecbf5e 16008_ACEOF
81ecdfbb 16009cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
d0ac1c44 16010 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
81ecdfbb
RW
16011fi # test -n "$CONFIG_HEADERS"
16012
16013
16014eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16015shift
16016for ac_tag
16017do
16018 case $ac_tag in
16019 :[FHLC]) ac_mode=$ac_tag; continue;;
16020 esac
16021 case $ac_mode$ac_tag in
16022 :[FHL]*:*);;
d0ac1c44 16023 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
81ecdfbb
RW
16024 :[FH]-) ac_tag=-:-;;
16025 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16026 esac
16027 ac_save_IFS=$IFS
16028 IFS=:
16029 set x $ac_tag
16030 IFS=$ac_save_IFS
16031 shift
16032 ac_file=$1
16033 shift
16034
16035 case $ac_mode in
16036 :L) ac_source=$1;;
16037 :[FH])
16038 ac_file_inputs=
16039 for ac_f
16040 do
16041 case $ac_f in
d0ac1c44 16042 -) ac_f="$ac_tmp/stdin";;
81ecdfbb
RW
16043 *) # Look for the file first in the build tree, then in the source tree
16044 # (if the path is not absolute). The absolute path cannot be DOS-style,
16045 # because $ac_f cannot contain `:'.
16046 test -f "$ac_f" ||
16047 case $ac_f in
16048 [\\/$]*) false;;
16049 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16050 esac ||
d0ac1c44 16051 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
81ecdfbb
RW
16052 esac
16053 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16054 as_fn_append ac_file_inputs " '$ac_f'"
16055 done
16056
16057 # Let's still pretend it is `configure' which instantiates (i.e., don't
16058 # use $as_me), people would be surprised to read:
16059 # /* config.h. Generated by config.status. */
16060 configure_input='Generated from '`
16061 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16062 `' by configure.'
16063 if test x"$ac_file" != x-; then
16064 configure_input="$ac_file. $configure_input"
16065 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16066$as_echo "$as_me: creating $ac_file" >&6;}
16067 fi
16068 # Neutralize special characters interpreted by sed in replacement strings.
16069 case $configure_input in #(
16070 *\&* | *\|* | *\\* )
16071 ac_sed_conf_input=`$as_echo "$configure_input" |
16072 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16073 *) ac_sed_conf_input=$configure_input;;
16074 esac
16075
16076 case $ac_tag in
d0ac1c44
SM
16077 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16078 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
81ecdfbb
RW
16079 esac
16080 ;;
252b5132
RH
16081 esac
16082
81ecdfbb 16083 ac_dir=`$as_dirname -- "$ac_file" ||
42ecbf5e
DJ
16084$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16085 X"$ac_file" : 'X\(//\)[^/]' \| \
16086 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
16087 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16088$as_echo X"$ac_file" |
16089 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16090 s//\1/
16091 q
16092 }
16093 /^X\(\/\/\)[^/].*/{
16094 s//\1/
16095 q
16096 }
16097 /^X\(\/\/\)$/{
16098 s//\1/
16099 q
16100 }
16101 /^X\(\/\).*/{
16102 s//\1/
16103 q
16104 }
16105 s/.*/./; q'`
16106 as_dir="$ac_dir"; as_fn_mkdir_p
42ecbf5e 16107 ac_builddir=.
e5a52504 16108
81ecdfbb
RW
16109case "$ac_dir" in
16110.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16111*)
16112 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16113 # A ".." for each directory in $ac_dir_suffix.
16114 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16115 case $ac_top_builddir_sub in
16116 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16117 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16118 esac ;;
16119esac
16120ac_abs_top_builddir=$ac_pwd
16121ac_abs_builddir=$ac_pwd$ac_dir_suffix
16122# for backward compatibility:
16123ac_top_builddir=$ac_top_build_prefix
42ecbf5e
DJ
16124
16125case $srcdir in
81ecdfbb 16126 .) # We are building in place.
42ecbf5e 16127 ac_srcdir=.
81ecdfbb
RW
16128 ac_top_srcdir=$ac_top_builddir_sub
16129 ac_abs_top_srcdir=$ac_pwd ;;
16130 [\\/]* | ?:[\\/]* ) # Absolute name.
42ecbf5e 16131 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
16132 ac_top_srcdir=$srcdir
16133 ac_abs_top_srcdir=$srcdir ;;
16134 *) # Relative name.
16135 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16136 ac_top_srcdir=$ac_top_build_prefix$srcdir
16137 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
42ecbf5e 16138esac
81ecdfbb 16139ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
252b5132 16140
e5a52504 16141
81ecdfbb
RW
16142 case $ac_mode in
16143 :F)
16144 #
16145 # CONFIG_FILE
16146 #
42ecbf5e
DJ
16147
16148 case $INSTALL in
16149 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb
RW
16150 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16151 esac
16152 ac_MKDIR_P=$MKDIR_P
16153 case $MKDIR_P in
16154 [\\/$]* | ?:[\\/]* ) ;;
16155 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
d15b04bd 16156 esac
81ecdfbb 16157_ACEOF
e5a52504 16158
81ecdfbb
RW
16159cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16160# If the template does not know about datarootdir, expand it.
16161# FIXME: This hack should be removed a few years after 2.60.
16162ac_datarootdir_hack=; ac_datarootdir_seen=
16163ac_sed_dataroot='
16164/datarootdir/ {
16165 p
16166 q
16167}
16168/@datadir@/p
16169/@docdir@/p
16170/@infodir@/p
16171/@localedir@/p
16172/@mandir@/p'
16173case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16174*datarootdir*) ac_datarootdir_seen=yes;;
16175*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16177$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16178_ACEOF
16179cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16180 ac_datarootdir_hack='
16181 s&@datadir@&$datadir&g
16182 s&@docdir@&$docdir&g
16183 s&@infodir@&$infodir&g
16184 s&@localedir@&$localedir&g
16185 s&@mandir@&$mandir&g
16186 s&\\\${datarootdir}&$datarootdir&g' ;;
16187esac
42ecbf5e 16188_ACEOF
81ecdfbb
RW
16189
16190# Neutralize VPATH when `$srcdir' = `.'.
16191# Shell code in configure.ac might set extrasub.
16192# FIXME: do we really want to maintain this feature?
16193cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16194ac_sed_extra="$ac_vpsub
42ecbf5e
DJ
16195$extrasub
16196_ACEOF
81ecdfbb 16197cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42ecbf5e
DJ
16198:t
16199/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
16200s|@configure_input@|$ac_sed_conf_input|;t t
16201s&@top_builddir@&$ac_top_builddir_sub&;t t
16202s&@top_build_prefix@&$ac_top_build_prefix&;t t
16203s&@srcdir@&$ac_srcdir&;t t
16204s&@abs_srcdir@&$ac_abs_srcdir&;t t
16205s&@top_srcdir@&$ac_top_srcdir&;t t
16206s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16207s&@builddir@&$ac_builddir&;t t
16208s&@abs_builddir@&$ac_abs_builddir&;t t
16209s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16210s&@INSTALL@&$ac_INSTALL&;t t
16211s&@MKDIR_P@&$ac_MKDIR_P&;t t
16212$ac_datarootdir_hack
16213"
d0ac1c44
SM
16214eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16215 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
81ecdfbb
RW
16216
16217test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
d0ac1c44
SM
16218 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16219 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16220 "$ac_tmp/out"`; test -z "$ac_out"; } &&
81ecdfbb 16221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d0ac1c44 16222which seems to be undefined. Please make sure it is defined" >&5
81ecdfbb 16223$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d0ac1c44 16224which seems to be undefined. Please make sure it is defined" >&2;}
81ecdfbb 16225
d0ac1c44 16226 rm -f "$ac_tmp/stdin"
42ecbf5e 16227 case $ac_file in
d0ac1c44
SM
16228 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16229 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
81ecdfbb 16230 esac \
d0ac1c44 16231 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
81ecdfbb
RW
16232 ;;
16233 :H)
16234 #
16235 # CONFIG_HEADER
16236 #
42ecbf5e 16237 if test x"$ac_file" != x-; then
81ecdfbb
RW
16238 {
16239 $as_echo "/* $configure_input */" \
d0ac1c44
SM
16240 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16241 } >"$ac_tmp/config.h" \
16242 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16243 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
81ecdfbb
RW
16244 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16245$as_echo "$as_me: $ac_file is unchanged" >&6;}
42ecbf5e 16246 else
81ecdfbb 16247 rm -f "$ac_file"
d0ac1c44
SM
16248 mv "$ac_tmp/config.h" "$ac_file" \
16249 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
252b5132 16250 fi
42ecbf5e 16251 else
81ecdfbb 16252 $as_echo "/* $configure_input */" \
d0ac1c44
SM
16253 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16254 || as_fn_error $? "could not create -" "$LINENO" 5
252b5132 16255 fi
81ecdfbb
RW
16256# Compute "$ac_file"'s index in $config_headers.
16257_am_arg="$ac_file"
42ecbf5e
DJ
16258_am_stamp_count=1
16259for _am_header in $config_headers :; do
16260 case $_am_header in
81ecdfbb 16261 $_am_arg | $_am_arg:* )
42ecbf5e
DJ
16262 break ;;
16263 * )
16264 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16265 esac
16266done
81ecdfbb
RW
16267echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16268$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16269 X"$_am_arg" : 'X\(//\)[^/]' \| \
16270 X"$_am_arg" : 'X\(//\)$' \| \
16271 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16272$as_echo X"$_am_arg" |
16273 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16274 s//\1/
16275 q
16276 }
16277 /^X\(\/\/\)[^/].*/{
16278 s//\1/
16279 q
16280 }
16281 /^X\(\/\/\)$/{
16282 s//\1/
16283 q
16284 }
16285 /^X\(\/\).*/{
16286 s//\1/
16287 q
16288 }
16289 s/.*/./; q'`/stamp-h$_am_stamp_count
16290 ;;
42ecbf5e 16291
81ecdfbb
RW
16292 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16293$as_echo "$as_me: executing $ac_file commands" >&6;}
16294 ;;
16295 esac
e5a52504 16296
42ecbf5e 16297
81ecdfbb
RW
16298 case $ac_file$ac_mode in
16299 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
d0ac1c44 16300 # Older Autoconf quotes --file arguments for eval, but not when files
81ecdfbb
RW
16301 # are listed without --file. Let's play safe and only enable the eval
16302 # if we detect the quoting.
16303 case $CONFIG_FILES in
16304 *\'*) eval set x "$CONFIG_FILES" ;;
16305 *) set x $CONFIG_FILES ;;
16306 esac
16307 shift
16308 for mf
16309 do
16310 # Strip MF so we end up with the name of the file.
16311 mf=`echo "$mf" | sed -e 's/:.*$//'`
16312 # Check whether this is an Automake generated Makefile or not.
d0ac1c44 16313 # We used to match only the files named 'Makefile.in', but
81ecdfbb
RW
16314 # some people rename them; so instead we look at the file content.
16315 # Grep'ing the first line is not enough: some people post-process
16316 # each Makefile.in and add a new line on top of each file to say so.
16317 # Grep'ing the whole file is not good either: AIX grep has a line
16318 # limit of 2048, but all sed's we know have understand at least 4000.
16319 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16320 dirpart=`$as_dirname -- "$mf" ||
42ecbf5e
DJ
16321$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16322 X"$mf" : 'X\(//\)[^/]' \| \
16323 X"$mf" : 'X\(//\)$' \| \
81ecdfbb
RW
16324 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16325$as_echo X"$mf" |
16326 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16327 s//\1/
16328 q
16329 }
16330 /^X\(\/\/\)[^/].*/{
16331 s//\1/
16332 q
16333 }
16334 /^X\(\/\/\)$/{
16335 s//\1/
16336 q
16337 }
16338 /^X\(\/\).*/{
16339 s//\1/
16340 q
16341 }
16342 s/.*/./; q'`
16343 else
16344 continue
16345 fi
16346 # Extract the definition of DEPDIR, am__include, and am__quote
d0ac1c44 16347 # from the Makefile without running 'make'.
81ecdfbb
RW
16348 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16349 test -z "$DEPDIR" && continue
16350 am__include=`sed -n 's/^am__include = //p' < "$mf"`
d0ac1c44 16351 test -z "$am__include" && continue
81ecdfbb 16352 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
81ecdfbb
RW
16353 # Find all dependency output files, they are included files with
16354 # $(DEPDIR) in their names. We invoke sed twice because it is the
16355 # simplest approach to changing $(DEPDIR) to its actual value in the
16356 # expansion.
16357 for file in `sed -n "
16358 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
d0ac1c44 16359 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
81ecdfbb
RW
16360 # Make sure the directory exists.
16361 test -f "$dirpart/$file" && continue
16362 fdir=`$as_dirname -- "$file" ||
42ecbf5e
DJ
16363$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16364 X"$file" : 'X\(//\)[^/]' \| \
16365 X"$file" : 'X\(//\)$' \| \
81ecdfbb
RW
16366 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16367$as_echo X"$file" |
16368 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16369 s//\1/
16370 q
16371 }
16372 /^X\(\/\/\)[^/].*/{
16373 s//\1/
16374 q
16375 }
16376 /^X\(\/\/\)$/{
16377 s//\1/
16378 q
16379 }
16380 /^X\(\/\).*/{
16381 s//\1/
16382 q
16383 }
16384 s/.*/./; q'`
16385 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16386 # echo "creating $dirpart/$file"
16387 echo '# dummy' > "$dirpart/$file"
42ecbf5e 16388 done
42ecbf5e 16389 done
81ecdfbb 16390}
d7040cdb 16391 ;;
81ecdfbb 16392 "libtool":C)
d7040cdb
SE
16393
16394 # See if we are running on zsh, and set the options which allow our
16395 # commands through without removal of \ escapes.
16396 if test -n "${ZSH_VERSION+set}" ; then
16397 setopt NO_GLOB_SUBST
16398 fi
16399
16400 cfgfile="${ofile}T"
16401 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16402 $RM "$cfgfile"
16403
16404 cat <<_LT_EOF >> "$cfgfile"
16405#! $SHELL
16406
16407# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
718a6fd8 16408# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
d7040cdb
SE
16409# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16410# NOTE: Changes made to this file will be lost: look at ltmain.sh.
16411#
718a6fd8 16412# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
f2c621e4 16413# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
718a6fd8 16414# Written by Gordon Matzigkeit, 1996
d7040cdb 16415#
718a6fd8 16416# This file is part of GNU Libtool.
d7040cdb 16417#
718a6fd8
SE
16418# GNU Libtool is free software; you can redistribute it and/or
16419# modify it under the terms of the GNU General Public License as
16420# published by the Free Software Foundation; either version 2 of
16421# the License, or (at your option) any later version.
d7040cdb 16422#
718a6fd8
SE
16423# As a special exception to the GNU General Public License,
16424# if you distribute this file as part of a program or library that
16425# is built using GNU Libtool, you may include this file under the
16426# same distribution terms that you use for the rest of that program.
d7040cdb 16427#
718a6fd8
SE
16428# GNU Libtool is distributed in the hope that it will be useful,
16429# but WITHOUT ANY WARRANTY; without even the implied warranty of
16430# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16431# GNU General Public License for more details.
d7040cdb 16432#
718a6fd8
SE
16433# You should have received a copy of the GNU General Public License
16434# along with GNU Libtool; see the file COPYING. If not, a copy
16435# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16436# obtained by writing to the Free Software Foundation, Inc.,
16437# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
d7040cdb
SE
16438
16439
16440# The names of the tagged configurations supported by this script.
16441available_tags=""
16442
16443# ### BEGIN LIBTOOL CONFIG
16444
16445# Which release of libtool.m4 was used?
16446macro_version=$macro_version
16447macro_revision=$macro_revision
16448
16449# Whether or not to build shared libraries.
16450build_libtool_libs=$enable_shared
16451
16452# Whether or not to build static libraries.
16453build_old_libs=$enable_static
16454
16455# What type of objects to build.
16456pic_mode=$pic_mode
16457
16458# Whether or not to optimize for fast installation.
16459fast_install=$enable_fast_install
16460
3725885a
RW
16461# Shell to use when invoking shell scripts.
16462SHELL=$lt_SHELL
16463
16464# An echo program that protects backslashes.
16465ECHO=$lt_ECHO
16466
d7040cdb
SE
16467# The host system.
16468host_alias=$host_alias
16469host=$host
16470host_os=$host_os
16471
16472# The build system.
16473build_alias=$build_alias
16474build=$build
16475build_os=$build_os
16476
16477# A sed program that does not truncate output.
16478SED=$lt_SED
16479
16480# Sed that helps us avoid accidentally triggering echo(1) options like -n.
16481Xsed="\$SED -e 1s/^X//"
16482
16483# A grep program that handles long lines.
16484GREP=$lt_GREP
16485
16486# An ERE matcher.
16487EGREP=$lt_EGREP
16488
16489# A literal string matcher.
16490FGREP=$lt_FGREP
16491
16492# A BSD- or MS-compatible name lister.
16493NM=$lt_NM
16494
16495# Whether we need soft or hard links.
16496LN_S=$lt_LN_S
16497
16498# What is the maximum length of a command?
16499max_cmd_len=$max_cmd_len
16500
16501# Object file suffix (normally "o").
16502objext=$ac_objext
16503
16504# Executable file suffix (normally "").
16505exeext=$exeext
16506
16507# whether the shell understands "unset".
16508lt_unset=$lt_unset
16509
16510# turn spaces into newlines.
16511SP2NL=$lt_lt_SP2NL
16512
16513# turn newlines into spaces.
16514NL2SP=$lt_lt_NL2SP
16515
718a6fd8
SE
16516# An object symbol dumper.
16517OBJDUMP=$lt_OBJDUMP
16518
d7040cdb
SE
16519# Method to check whether dependent libraries are shared objects.
16520deplibs_check_method=$lt_deplibs_check_method
16521
f2c621e4 16522# Command to use when deplibs_check_method == "file_magic".
d7040cdb
SE
16523file_magic_cmd=$lt_file_magic_cmd
16524
16525# The archiver.
16526AR=$lt_AR
16527AR_FLAGS=$lt_AR_FLAGS
16528
16529# A symbol stripping program.
16530STRIP=$lt_STRIP
16531
16532# Commands used to install an old-style archive.
16533RANLIB=$lt_RANLIB
16534old_postinstall_cmds=$lt_old_postinstall_cmds
16535old_postuninstall_cmds=$lt_old_postuninstall_cmds
16536
3725885a
RW
16537# Whether to use a lock for old archive extraction.
16538lock_old_archive_extraction=$lock_old_archive_extraction
16539
d7040cdb
SE
16540# A C compiler.
16541LTCC=$lt_CC
16542
16543# LTCC compiler flags.
16544LTCFLAGS=$lt_CFLAGS
16545
16546# Take the output of nm and produce a listing of raw symbols and C names.
16547global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16548
16549# Transform the output of nm in a proper C declaration.
16550global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16551
16552# Transform the output of nm in a C name address pair.
16553global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16554
718a6fd8
SE
16555# Transform the output of nm in a C name address pair when lib prefix is needed.
16556global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16557
d7040cdb
SE
16558# The name of the directory that contains temporary libtool files.
16559objdir=$objdir
16560
d7040cdb
SE
16561# Used to examine libraries when file_magic_cmd begins with "file".
16562MAGIC_CMD=$MAGIC_CMD
16563
16564# Must we lock files when doing compilation?
16565need_locks=$lt_need_locks
16566
718a6fd8
SE
16567# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16568DSYMUTIL=$lt_DSYMUTIL
16569
16570# Tool to change global to local symbols on Mac OS X.
16571NMEDIT=$lt_NMEDIT
16572
16573# Tool to manipulate fat objects and archives on Mac OS X.
16574LIPO=$lt_LIPO
16575
16576# ldd/readelf like tool for Mach-O binaries on Mac OS X.
16577OTOOL=$lt_OTOOL
16578
16579# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16580OTOOL64=$lt_OTOOL64
16581
d7040cdb
SE
16582# Old archive suffix (normally "a").
16583libext=$libext
16584
16585# Shared library suffix (normally ".so").
16586shrext_cmds=$lt_shrext_cmds
16587
16588# The commands to extract the exported symbol list from a shared archive.
16589extract_expsyms_cmds=$lt_extract_expsyms_cmds
16590
16591# Variables whose values should be saved in libtool wrapper scripts and
16592# restored at link time.
16593variables_saved_for_relink=$lt_variables_saved_for_relink
16594
16595# Do we need the "lib" prefix for modules?
16596need_lib_prefix=$need_lib_prefix
16597
16598# Do we need a version for libraries?
16599need_version=$need_version
16600
16601# Library versioning type.
16602version_type=$version_type
16603
16604# Shared library runtime path variable.
16605runpath_var=$runpath_var
16606
16607# Shared library path variable.
16608shlibpath_var=$shlibpath_var
16609
16610# Is shlibpath searched before the hard-coded library search path?
16611shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16612
16613# Format of library name prefix.
16614libname_spec=$lt_libname_spec
16615
16616# List of archive names. First name is the real one, the rest are links.
16617# The last name is the one that the linker finds with -lNAME
16618library_names_spec=$lt_library_names_spec
16619
16620# The coded name of the library, if different from the real name.
16621soname_spec=$lt_soname_spec
16622
3725885a
RW
16623# Permission mode override for installation of shared libraries.
16624install_override_mode=$lt_install_override_mode
16625
d7040cdb
SE
16626# Command to use after installation of a shared archive.
16627postinstall_cmds=$lt_postinstall_cmds
16628
16629# Command to use after uninstallation of a shared archive.
16630postuninstall_cmds=$lt_postuninstall_cmds
16631
16632# Commands used to finish a libtool library installation in a directory.
16633finish_cmds=$lt_finish_cmds
16634
16635# As "finish_cmds", except a single script fragment to be evaled but
16636# not shown.
16637finish_eval=$lt_finish_eval
16638
16639# Whether we should hardcode library paths into libraries.
16640hardcode_into_libs=$hardcode_into_libs
16641
16642# Compile-time system search path for libraries.
16643sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16644
16645# Run-time system search path for libraries.
16646sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16647
16648# Whether dlopen is supported.
16649dlopen_support=$enable_dlopen
16650
16651# Whether dlopen of programs is supported.
16652dlopen_self=$enable_dlopen_self
16653
16654# Whether dlopen of statically linked programs is supported.
16655dlopen_self_static=$enable_dlopen_self_static
16656
16657# Commands to strip libraries.
16658old_striplib=$lt_old_striplib
16659striplib=$lt_striplib
16660
16661
16662# The linker used to build libraries.
16663LD=$lt_LD
16664
3725885a
RW
16665# How to create reloadable object files.
16666reload_flag=$lt_reload_flag
16667reload_cmds=$lt_reload_cmds
16668
d7040cdb
SE
16669# Commands used to build an old-style archive.
16670old_archive_cmds=$lt_old_archive_cmds
16671
16672# A language specific compiler.
16673CC=$lt_compiler
16674
16675# Is the compiler the GNU compiler?
16676with_gcc=$GCC
16677
16678# Compiler flag to turn off builtin functions.
16679no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16680
df7b86aa
NC
16681# How to pass a linker flag through the compiler.
16682wl=$lt_lt_prog_compiler_wl
16683
f2c621e4
AS
16684# Additional compiler flags for building library objects.
16685pic_flag=$lt_lt_prog_compiler_pic
16686
d7040cdb
SE
16687# Compiler flag to prevent dynamic linking.
16688link_static_flag=$lt_lt_prog_compiler_static
16689
16690# Does compiler simultaneously support -c and -o options?
16691compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16692
16693# Whether or not to add -lc for building shared libraries.
16694build_libtool_need_lc=$archive_cmds_need_lc
16695
16696# Whether or not to disallow shared libs when runtime libs are static.
16697allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16698
16699# Compiler flag to allow reflexive dlopens.
16700export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16701
16702# Compiler flag to generate shared objects directly from archives.
16703whole_archive_flag_spec=$lt_whole_archive_flag_spec
16704
16705# Whether the compiler copes with passing no objects directly.
16706compiler_needs_object=$lt_compiler_needs_object
16707
16708# Create an old-style archive from a shared archive.
16709old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16710
16711# Create a temporary old-style archive to link instead of a shared archive.
16712old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16713
16714# Commands used to build a shared archive.
16715archive_cmds=$lt_archive_cmds
16716archive_expsym_cmds=$lt_archive_expsym_cmds
16717
16718# Commands used to build a loadable module if different from building
16719# a shared archive.
16720module_cmds=$lt_module_cmds
16721module_expsym_cmds=$lt_module_expsym_cmds
16722
16723# Whether we are building with GNU ld or not.
16724with_gnu_ld=$lt_with_gnu_ld
16725
16726# Flag that allows shared libraries with undefined symbols to be built.
16727allow_undefined_flag=$lt_allow_undefined_flag
16728
16729# Flag that enforces no undefined symbols.
16730no_undefined_flag=$lt_no_undefined_flag
16731
16732# Flag to hardcode \$libdir into a binary during linking.
16733# This must work even if \$libdir does not exist
16734hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16735
16736# If ld is used when linking, flag to hardcode \$libdir into a binary
16737# during linking. This must work even if \$libdir does not exist.
16738hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16739
16740# Whether we need a single "-rpath" flag with a separated argument.
16741hardcode_libdir_separator=$lt_hardcode_libdir_separator
16742
16743# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16744# DIR into the resulting binary.
16745hardcode_direct=$hardcode_direct
16746
16747# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16748# DIR into the resulting binary and the resulting library dependency is
16749# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16750# library is relocated.
16751hardcode_direct_absolute=$hardcode_direct_absolute
16752
16753# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16754# into the resulting binary.
16755hardcode_minus_L=$hardcode_minus_L
16756
16757# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16758# into the resulting binary.
16759hardcode_shlibpath_var=$hardcode_shlibpath_var
16760
16761# Set to "yes" if building a shared library automatically hardcodes DIR
16762# into the library and all subsequent libraries and executables linked
16763# against it.
16764hardcode_automatic=$hardcode_automatic
16765
16766# Set to yes if linker adds runtime paths of dependent libraries
16767# to runtime path list.
16768inherit_rpath=$inherit_rpath
16769
16770# Whether libtool must link a program against all its dependency libraries.
16771link_all_deplibs=$link_all_deplibs
16772
f2c621e4
AS
16773# Fix the shell variable \$srcfile for the compiler.
16774fix_srcfile_path=$lt_fix_srcfile_path
16775
d7040cdb
SE
16776# Set to "yes" if exported symbols are required.
16777always_export_symbols=$always_export_symbols
16778
16779# The commands to list exported symbols.
16780export_symbols_cmds=$lt_export_symbols_cmds
16781
16782# Symbols that should not be listed in the preloaded symbols.
16783exclude_expsyms=$lt_exclude_expsyms
16784
16785# Symbols that must always be exported.
16786include_expsyms=$lt_include_expsyms
16787
16788# Commands necessary for linking programs (against libraries) with templates.
16789prelink_cmds=$lt_prelink_cmds
16790
16791# Specify filename containing input files.
16792file_list_spec=$lt_file_list_spec
16793
16794# How to hardcode a shared library path into an executable.
16795hardcode_action=$hardcode_action
16796
16797# ### END LIBTOOL CONFIG
16798
16799_LT_EOF
16800
16801 case $host_os in
16802 aix3*)
16803 cat <<\_LT_EOF >> "$cfgfile"
16804# AIX sometimes has problems with the GCC collect2 program. For some
16805# reason, if we set the COLLECT_NAMES environment variable, the problems
16806# vanish in a puff of smoke.
16807if test "X${COLLECT_NAMES+set}" != Xset; then
16808 COLLECT_NAMES=
16809 export COLLECT_NAMES
16810fi
16811_LT_EOF
16812 ;;
16813 esac
16814
16815
16816ltmain="$ac_aux_dir/ltmain.sh"
16817
16818
16819 # We use sed instead of cat because bash on DJGPP gets confused if
16820 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16821 # text mode, it properly converts lines to CR/LF. This bash problem
16822 # is reportedly fixed, but why not run on old versions too?
f2c621e4
AS
16823 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16824 || (rm -f "$cfgfile"; exit 1)
16825
16826 case $xsi_shell in
16827 yes)
16828 cat << \_LT_EOF >> "$cfgfile"
16829
16830# func_dirname file append nondir_replacement
16831# Compute the dirname of FILE. If nonempty, add APPEND to the result,
16832# otherwise set result to NONDIR_REPLACEMENT.
16833func_dirname ()
16834{
16835 case ${1} in
16836 */*) func_dirname_result="${1%/*}${2}" ;;
16837 * ) func_dirname_result="${3}" ;;
16838 esac
16839}
16840
16841# func_basename file
16842func_basename ()
16843{
16844 func_basename_result="${1##*/}"
16845}
16846
16847# func_dirname_and_basename file append nondir_replacement
16848# perform func_basename and func_dirname in a single function
16849# call:
16850# dirname: Compute the dirname of FILE. If nonempty,
16851# add APPEND to the result, otherwise set result
16852# to NONDIR_REPLACEMENT.
16853# value returned in "$func_dirname_result"
16854# basename: Compute filename of FILE.
16855# value retuned in "$func_basename_result"
16856# Implementation must be kept synchronized with func_dirname
16857# and func_basename. For efficiency, we do not delegate to
16858# those functions but instead duplicate the functionality here.
16859func_dirname_and_basename ()
16860{
16861 case ${1} in
16862 */*) func_dirname_result="${1%/*}${2}" ;;
16863 * ) func_dirname_result="${3}" ;;
16864 esac
16865 func_basename_result="${1##*/}"
16866}
16867
16868# func_stripname prefix suffix name
16869# strip PREFIX and SUFFIX off of NAME.
16870# PREFIX and SUFFIX must not contain globbing or regex special
16871# characters, hashes, percent signs, but SUFFIX may contain a leading
16872# dot (in which case that matches only a dot).
16873func_stripname ()
16874{
16875 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16876 # positional parameters, so assign one to ordinary parameter first.
16877 func_stripname_result=${3}
16878 func_stripname_result=${func_stripname_result#"${1}"}
16879 func_stripname_result=${func_stripname_result%"${2}"}
16880}
16881
16882# func_opt_split
16883func_opt_split ()
16884{
16885 func_opt_split_opt=${1%%=*}
16886 func_opt_split_arg=${1#*=}
16887}
16888
16889# func_lo2o object
16890func_lo2o ()
16891{
16892 case ${1} in
16893 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16894 *) func_lo2o_result=${1} ;;
16895 esac
16896}
16897
16898# func_xform libobj-or-source
16899func_xform ()
16900{
16901 func_xform_result=${1%.*}.lo
16902}
16903
16904# func_arith arithmetic-term...
16905func_arith ()
16906{
16907 func_arith_result=$(( $* ))
16908}
16909
16910# func_len string
16911# STRING may not start with a hyphen.
16912func_len ()
16913{
16914 func_len_result=${#1}
16915}
16916
16917_LT_EOF
16918 ;;
16919 *) # Bourne compatible functions.
16920 cat << \_LT_EOF >> "$cfgfile"
16921
16922# func_dirname file append nondir_replacement
16923# Compute the dirname of FILE. If nonempty, add APPEND to the result,
16924# otherwise set result to NONDIR_REPLACEMENT.
16925func_dirname ()
16926{
16927 # Extract subdirectory from the argument.
16928 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
16929 if test "X$func_dirname_result" = "X${1}"; then
16930 func_dirname_result="${3}"
16931 else
16932 func_dirname_result="$func_dirname_result${2}"
16933 fi
16934}
16935
16936# func_basename file
16937func_basename ()
16938{
16939 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
16940}
16941
16942
16943# func_stripname prefix suffix name
16944# strip PREFIX and SUFFIX off of NAME.
16945# PREFIX and SUFFIX must not contain globbing or regex special
16946# characters, hashes, percent signs, but SUFFIX may contain a leading
16947# dot (in which case that matches only a dot).
16948# func_strip_suffix prefix name
16949func_stripname ()
16950{
16951 case ${2} in
16952 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
16953 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
16954 esac
16955}
16956
16957# sed scripts:
16958my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16959my_sed_long_arg='1s/^-[^=]*=//'
16960
16961# func_opt_split
16962func_opt_split ()
16963{
16964 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
16965 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
16966}
16967
16968# func_lo2o object
16969func_lo2o ()
16970{
16971 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
16972}
16973
16974# func_xform libobj-or-source
16975func_xform ()
16976{
16977 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
16978}
16979
16980# func_arith arithmetic-term...
16981func_arith ()
16982{
16983 func_arith_result=`expr "$@"`
16984}
16985
16986# func_len string
16987# STRING may not start with a hyphen.
16988func_len ()
16989{
16990 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16991}
16992
16993_LT_EOF
16994esac
16995
16996case $lt_shell_append in
16997 yes)
16998 cat << \_LT_EOF >> "$cfgfile"
16999
17000# func_append var value
17001# Append VALUE to the end of shell variable VAR.
17002func_append ()
17003{
17004 eval "$1+=\$2"
17005}
17006_LT_EOF
17007 ;;
17008 *)
17009 cat << \_LT_EOF >> "$cfgfile"
17010
17011# func_append var value
17012# Append VALUE to the end of shell variable VAR.
17013func_append ()
17014{
17015 eval "$1=\$$1\$2"
17016}
17017
17018_LT_EOF
17019 ;;
17020 esac
17021
17022
17023 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17024 || (rm -f "$cfgfile"; exit 1)
17025
17026 mv -f "$cfgfile" "$ofile" ||
d7040cdb
SE
17027 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17028 chmod +x "$ofile"
17029
42ecbf5e 17030 ;;
81ecdfbb 17031 "default-1":C)
20e95c23
DJ
17032 for ac_file in $CONFIG_FILES; do
17033 # Support "outfile[:infile[:infile...]]"
17034 case "$ac_file" in
17035 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17036 esac
17037 # PO directories have a Makefile.in generated from Makefile.in.in.
17038 case "$ac_file" in */Makefile.in)
17039 # Adjust a relative srcdir.
17040 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
3cac54d2 17041 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
20e95c23
DJ
17042 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
17043 # In autoconf-2.13 it is called $ac_given_srcdir.
17044 # In autoconf-2.50 it is called $srcdir.
17045 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
17046 case "$ac_given_srcdir" in
17047 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
17048 /*) top_srcdir="$ac_given_srcdir" ;;
17049 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
17050 esac
17051 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
17052 rm -f "$ac_dir/POTFILES"
17053 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
17054 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
17055 POMAKEFILEDEPS="POTFILES.in"
17056 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
17057 # on $ac_dir but don't depend on user-specified configuration
17058 # parameters.
17059 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
17060 # The LINGUAS file contains the set of available languages.
17061 if test -n "$OBSOLETE_ALL_LINGUAS"; then
37a42ee9 17062 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
17063 fi
17064 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
17065 # Hide the ALL_LINGUAS assigment from automake.
17066 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
17067 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
17068 else
37a42ee9 17069 # The set of available languages was given in configure.ac.
20e95c23
DJ
17070 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
17071 fi
17072 case "$ac_given_srcdir" in
17073 .) srcdirpre= ;;
17074 *) srcdirpre='$(srcdir)/' ;;
17075 esac
17076 POFILES=
17077 GMOFILES=
17078 UPDATEPOFILES=
17079 DUMMYPOFILES=
17080 for lang in $ALL_LINGUAS; do
17081 POFILES="$POFILES $srcdirpre$lang.po"
17082 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
17083 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
17084 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
17085 done
17086 # CATALOGS depends on both $ac_dir and the user's LINGUAS
17087 # environment variable.
17088 INST_LINGUAS=
17089 if test -n "$ALL_LINGUAS"; then
17090 for presentlang in $ALL_LINGUAS; do
17091 useit=no
17092 if test "%UNSET%" != "$LINGUAS"; then
17093 desiredlanguages="$LINGUAS"
17094 else
17095 desiredlanguages="$ALL_LINGUAS"
17096 fi
17097 for desiredlang in $desiredlanguages; do
17098 # Use the presentlang catalog if desiredlang is
17099 # a. equal to presentlang, or
17100 # b. a variant of presentlang (because in this case,
17101 # presentlang can be used as a fallback for messages
17102 # which are not translated in the desiredlang catalog).
17103 case "$desiredlang" in
17104 "$presentlang"*) useit=yes;;
17105 esac
17106 done
17107 if test $useit = yes; then
17108 INST_LINGUAS="$INST_LINGUAS $presentlang"
17109 fi
17110 done
17111 fi
17112 CATALOGS=
17113 if test -n "$INST_LINGUAS"; then
17114 for lang in $INST_LINGUAS; do
17115 CATALOGS="$CATALOGS $lang.gmo"
17116 done
17117 fi
17118 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
17119 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"
17120 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
17121 if test -f "$f"; then
17122 case "$f" in
17123 *.orig | *.bak | *~) ;;
17124 *) cat "$f" >> "$ac_dir/Makefile" ;;
17125 esac
17126 fi
17127 done
17128 fi
17129 ;;
17130 esac
17131 done ;;
81ecdfbb 17132
42ecbf5e 17133 esac
81ecdfbb 17134done # for ac_tag
e5a52504 17135
42ecbf5e 17136
81ecdfbb 17137as_fn_exit 0
42ecbf5e 17138_ACEOF
42ecbf5e
DJ
17139ac_clean_files=$ac_clean_files_save
17140
81ecdfbb 17141test $ac_write_fail = 0 ||
d0ac1c44 17142 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
81ecdfbb 17143
42ecbf5e
DJ
17144
17145# configure is writing to config.log, and then calls config.status.
17146# config.status does its own redirection, appending to config.log.
17147# Unfortunately, on DOS this fails, as config.log is still kept open
17148# by configure, so config.status won't be able to write to it; its
17149# output is simply discarded. So we exec the FD to /dev/null,
17150# effectively closing config.log, so it can be properly (re)opened and
17151# appended to by config.status. When coming back to configure, we
17152# need to make the FD available again.
17153if test "$no_create" != yes; then
17154 ac_cs_success=:
17155 ac_config_status_args=
17156 test "$silent" = yes &&
17157 ac_config_status_args="$ac_config_status_args --quiet"
17158 exec 5>/dev/null
17159 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17160 exec 5>>config.log
17161 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17162 # would make configure fail if this is the last instruction.
d0ac1c44 17163 $ac_cs_success || as_fn_exit 1
81ecdfbb
RW
17164fi
17165if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17166 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17167$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
42ecbf5e 17168fi
252b5132 17169
d546b610
L
17170
17171
17172touch config.status.tmp
17173if touch --reference=config.status config.status.tmp > /dev/null 2>&1; then
17174 sed '/as_fn_exit 0/i \
17175sed -e \"s/^\t\\\(\\\$(AM_V_CCLD)\\\)/\t+ \\\1/\" Makefile > Makefile.tmp \
17176touch --reference=Makefile Makefile.tmp \
17177mv Makefile.tmp Makefile \
17178' config.status > config.status.tmp
17179 touch --reference=config.status config.status.tmp
17180 mv config.status.tmp config.status
17181 chmod +x config.status
17182 sed -e "s/^\t\(\$(AM_V_CCLD)\)/\t+ \1/" Makefile > Makefile.tmp
17183 touch --reference=Makefile Makefile.tmp
17184 mv Makefile.tmp Makefile
17185else
17186 rm -f config.status.tmp
17187fi