Bump version number to 2.30.52
[deliverable/binutils-gdb.git] / bfd / configure
CommitLineData
252b5132 1#! /bin/sh
252b5132 2# Guess values for system-dependent variables and create Makefiles.
55e99962 3# Generated by GNU Autoconf 2.64 for bfd 2.30.52.
81ecdfbb
RW
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7# Foundation, Inc.
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## -------------------- ##
5464f5a1 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 :
5464f5a1
NN
18 emulate sh
19 NULLCMD=:
81ecdfbb 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5464f5a1
NN
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
5464f5a1 31fi
5464f5a1 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 }
5464f5a1
NN
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.
90case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93for as_dir in $PATH
94do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99IFS=$as_save_IFS
100
101 ;;
102esac
103# We did not find ourselves, most probably we were run as `sh COMMAND'
104# in which case we are not to be found in the path.
105if test "x$as_myself" = x; then
106 as_myself=$0
107fi
108if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111fi
112
113# Unset variables that we do not need and which cause bugs (e.g. in
114# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115# suppresses any "Segmentation fault" message there. '((' could
116# trigger a bug in pdksh 5.2.14.
117for as_var in BASH_ENV ENV MAIL MAILPATH
118do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120done
5464f5a1
NN
121PS1='$ '
122PS2='> '
123PS4='+ '
124
125# NLS nuisances.
81ecdfbb
RW
126LC_ALL=C
127export LC_ALL
128LANGUAGE=C
129export LANGUAGE
130
131# CDPATH.
132(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148esac
149fi
150"
151 as_required="as_fn_return () { (exit \$1); }
152as_fn_success () { as_fn_return 0; }
153as_fn_failure () { as_fn_return 1; }
154as_fn_ret_success () { return 0; }
155as_fn_ret_failure () { return 1; }
156
157exitcode=0
158as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164else
165 exitcode=1; echo positional parameters were not saved.
166fi
167test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
3725885a
RW
172test \$(( 1 + 1 )) = 2 || exit 1
173
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
81ecdfbb
RW
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183else
184 as_have_required=no
185fi
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187
188else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190as_found=false
191for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
5464f5a1 192do
81ecdfbb
RW
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
197 /*)
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
206fi
207fi
208 done;;
209 esac
210 as_found=false
211done
212$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215fi; }
216IFS=$as_save_IFS
217
218
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
228fi
229
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
5464f5a1 236 else
81ecdfbb
RW
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238$0: including any error possibly output before this
239$0: message. Then install a modern shell, or manually run
240$0: the script under such a shell if you do have one."
5464f5a1 241 fi
81ecdfbb
RW
242 exit 1
243fi
244fi
245fi
246SHELL=${CONFIG_SHELL-/bin/sh}
247export SHELL
248# Unset more variables known to interfere with behavior of common tools.
249CLICOLOR_FORCE= GREP_OPTIONS=
250unset CLICOLOR_FORCE GREP_OPTIONS
251
252## --------------------- ##
253## M4sh Shell Functions. ##
254## --------------------- ##
255# as_fn_unset VAR
256# ---------------
257# Portably unset VAR.
258as_fn_unset ()
259{
260 { eval $1=; unset $1;}
261}
262as_unset=as_fn_unset
263
264# as_fn_set_status STATUS
265# -----------------------
266# Set $? to STATUS, without forking.
267as_fn_set_status ()
268{
269 return $1
270} # as_fn_set_status
271
272# as_fn_exit STATUS
273# -----------------
274# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275as_fn_exit ()
276{
277 set +e
278 as_fn_set_status $1
279 exit $1
280} # as_fn_exit
281
282# as_fn_mkdir_p
283# -------------
284# Create "$as_dir" as a directory, including parents if necessary.
285as_fn_mkdir_p ()
286{
287
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304$as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
311 q
312 }
313 /^X\(\/\/\)$/{
314 s//\1/
315 q
316 }
317 /^X\(\/\).*/{
318 s//\1/
319 q
320 }
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326
327
328} # as_fn_mkdir_p
329# as_fn_append VAR VALUE
330# ----------------------
331# Append the text in VALUE to the end of the definition contained in VAR. Take
332# advantage of any shell optimizations that allow amortized linear growth over
333# repeated appends, instead of the typical quadratic growth present in naive
334# implementations.
335if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
337 {
338 eval $1+=\$2
339 }'
340else
341 as_fn_append ()
342 {
343 eval $1=\$$1\$2
344 }
345fi # as_fn_append
346
347# as_fn_arith ARG...
348# ------------------
349# Perform arithmetic evaluation on the ARGs, and store the result in the
350# global $as_val. Take advantage of shells that can avoid forks. The arguments
351# must be portable across $(()) and expr.
352if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
354 {
355 as_val=$(( $* ))
356 }'
357else
358 as_fn_arith ()
359 {
360 as_val=`expr "$@" || test $? -eq 1`
361 }
362fi # as_fn_arith
363
5464f5a1 364
81ecdfbb
RW
365# as_fn_error ERROR [LINENO LOG_FD]
366# ---------------------------------
367# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369# script with status $?, using 1 if that was 0.
370as_fn_error ()
371{
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
376 fi
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379} # as_fn_error
380
381if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
5464f5a1
NN
383 as_expr=expr
384else
385 as_expr=false
386fi
387
81ecdfbb 388if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5464f5a1
NN
389 as_basename=basename
390else
391 as_basename=false
392fi
393
81ecdfbb
RW
394if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396else
397 as_dirname=false
398fi
5464f5a1 399
81ecdfbb 400as_me=`$as_basename -- "$0" ||
5464f5a1
NN
401$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404$as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
407 q
408 }
409 /^X\/\(\/\/\)$/{
410 s//\1/
411 q
412 }
413 /^X\/\(\/\).*/{
414 s//\1/
415 q
416 }
417 s/.*/./; q'`
5464f5a1 418
5464f5a1
NN
419# Avoid depending upon Character Ranges.
420as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423as_cr_digits='0123456789'
424as_cr_alnum=$as_cr_Letters$as_cr_digits
425
5464f5a1 426
81ecdfbb
RW
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
433 p
434 /[$]LINENO/=
435 ' <$as_myself |
5464f5a1 436 sed '
81ecdfbb
RW
437 s/[$]LINENO.*/&-/
438 t lineno
439 b
440 :lineno
5464f5a1 441 N
81ecdfbb
RW
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
5464f5a1 444 t loop
81ecdfbb 445 s/-\n.*//
5464f5a1 446 ' >$as_me.lineno &&
81ecdfbb
RW
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
5464f5a1
NN
449
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
81ecdfbb
RW
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
5464f5a1
NN
454 # Exit status is that of the last command.
455 exit
456}
457
81ecdfbb
RW
458ECHO_C= ECHO_N= ECHO_T=
459case `echo -n x` in #(((((
460-n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
467*)
468 ECHO_N='-n';;
5464f5a1
NN
469esac
470
81ecdfbb
RW
471rm -f conf$$ conf$$.exe conf$$.file
472if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
5464f5a1 474else
81ecdfbb
RW
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
5464f5a1 477fi
81ecdfbb
RW
478if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
5464f5a1 480 as_ln_s='ln -s'
81ecdfbb
RW
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
5464f5a1 491 fi
5464f5a1
NN
492else
493 as_ln_s='cp -p'
494fi
81ecdfbb
RW
495rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496rmdir conf$$.dir 2>/dev/null
5464f5a1
NN
497
498if mkdir -p . 2>/dev/null; then
81ecdfbb 499 as_mkdir_p='mkdir -p "$as_dir"'
5464f5a1
NN
500else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
503fi
504
81ecdfbb
RW
505if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
512 fi
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
524 '
525fi
526as_executable_p=$as_test_x
5464f5a1
NN
527
528# Sed expression to map a string onto a valid CPP name.
529as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
530
531# Sed expression to map a string onto a valid variable name.
532as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533
d7040cdb
SE
534SHELL=${CONFIG_SHELL-/bin/sh}
535
d7040cdb 536
81ecdfbb
RW
537exec 7<&0 </dev/null 6>&1
538
5464f5a1
NN
539# Name of the host.
540# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541# so uname gets run too.
542ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
252b5132 543
5464f5a1
NN
544#
545# Initializations.
546#
252b5132 547ac_default_prefix=/usr/local
81ecdfbb 548ac_clean_files=
5464f5a1 549ac_config_libobj_dir=.
81ecdfbb 550LIBOBJS=
5464f5a1
NN
551cross_compiling=no
552subdirs=
553MFLAGS=
554MAKEFLAGS=
5464f5a1
NN
555
556# Identity of this package.
c4dd807e
MF
557PACKAGE_NAME='bfd'
558PACKAGE_TARNAME='bfd'
55e99962
L
559PACKAGE_VERSION='2.30.52'
560PACKAGE_STRING='bfd 2.30.52'
c4dd807e
MF
561PACKAGE_BUGREPORT=''
562PACKAGE_URL=''
5464f5a1
NN
563
564ac_unique_file="libbfd.c"
565# Factoring default headers for most tests.
566ac_includes_default="\
567#include <stdio.h>
81ecdfbb 568#ifdef HAVE_SYS_TYPES_H
5464f5a1
NN
569# include <sys/types.h>
570#endif
81ecdfbb 571#ifdef HAVE_SYS_STAT_H
5464f5a1
NN
572# include <sys/stat.h>
573#endif
81ecdfbb 574#ifdef STDC_HEADERS
5464f5a1
NN
575# include <stdlib.h>
576# include <stddef.h>
577#else
81ecdfbb 578# ifdef HAVE_STDLIB_H
5464f5a1
NN
579# include <stdlib.h>
580# endif
581#endif
81ecdfbb
RW
582#ifdef HAVE_STRING_H
583# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
5464f5a1
NN
584# include <memory.h>
585# endif
586# include <string.h>
587#endif
81ecdfbb 588#ifdef HAVE_STRINGS_H
5464f5a1
NN
589# include <strings.h>
590#endif
81ecdfbb 591#ifdef HAVE_INTTYPES_H
5464f5a1 592# include <inttypes.h>
5464f5a1 593#endif
81ecdfbb
RW
594#ifdef HAVE_STDINT_H
595# include <stdint.h>
596#endif
597#ifdef HAVE_UNISTD_H
5464f5a1
NN
598# include <unistd.h>
599#endif"
600
81ecdfbb
RW
601ac_subst_vars='am__EXEEXT_FALSE
602am__EXEEXT_TRUE
603LTLIBOBJS
604LIBOBJS
81ecdfbb
RW
605bfd_ufile_ptr
606bfd_file_ptr
3cf9e6c4 607lt_cv_dlopen_libs
81ecdfbb 608supports_plugins
c603b11b
AM
609COREFLAG
610COREFILE
611havevecs
612tdefaults
81ecdfbb
RW
613bfd_default_target_size
614bfd_machines
615bfd_backends
616all_backends
617bfd64_libs
618wordsize
619TDEFINES
620SHARED_LIBADD
621SHARED_LDFLAGS
622LIBM
243340ad
L
623zlibinc
624zlibdir
81ecdfbb
RW
625EXEEXT_FOR_BUILD
626CC_FOR_BUILD
627BFD_HOSTPTR_T
628BFD_HOST_U_64_BIT
629BFD_HOST_64_BIT
630BFD_HOST_64_BIT_DEFINED
631BFD_HOST_64BIT_LONG_LONG
632BFD_HOST_64BIT_LONG
633HDEFINES
634MSGMERGE
635MSGFMT
636MKINSTALLDIRS
637CATOBJEXT
638GENCAT
639INSTOBJEXT
640DATADIRNAME
641CATALOGS
642POSUB
643GMSGFMT
644XGETTEXT
645INCINTL
646LIBINTL_DEP
647LIBINTL
648USE_NLS
649bfdincludedir
650bfdlibdir
651target_noncanonical
652host_noncanonical
653INSTALL_LIBBFD_FALSE
654INSTALL_LIBBFD_TRUE
655GENINSRC_NEVER_FALSE
656GENINSRC_NEVER_TRUE
657MAINT
658MAINTAINER_MODE_FALSE
659MAINTAINER_MODE_TRUE
6757cf57 660WARN_WRITE_STRINGS
81ecdfbb 661NO_WERROR
c5da1932 662WARN_CFLAGS_FOR_BUILD
81ecdfbb
RW
663WARN_CFLAGS
664REPORT_BUGS_TEXI
665REPORT_BUGS_TO
666PKGVERSION
667DEBUGDIR
668PLUGINS_FALSE
669PLUGINS_TRUE
670OTOOL64
671OTOOL
672LIPO
673NMEDIT
674DSYMUTIL
81ecdfbb
RW
675OBJDUMP
676LN_S
677NM
678ac_ct_DUMPBIN
679DUMPBIN
680LD
681FGREP
682SED
683LIBTOOL
684EGREP
685GREP
686CPP
687RANLIB
688AR
689am__fastdepCC_FALSE
690am__fastdepCC_TRUE
691CCDEPMODE
6eb7d830 692am__nodep
81ecdfbb
RW
693AMDEPBACKSLASH
694AMDEP_FALSE
695AMDEP_TRUE
696am__quote
697am__include
698DEPDIR
699am__untar
700am__tar
701AMTAR
702am__leading_dot
703SET_MAKE
704AWK
705mkdir_p
706MKDIR_P
707INSTALL_STRIP_PROGRAM
708STRIP
709install_sh
710MAKEINFO
711AUTOHEADER
712AUTOMAKE
713AUTOCONF
714ACLOCAL
715VERSION
716PACKAGE
717CYGPATH_W
718am__isrc
719INSTALL_DATA
720INSTALL_SCRIPT
721INSTALL_PROGRAM
722OBJEXT
723EXEEXT
724ac_ct_CC
725CPPFLAGS
726LDFLAGS
727CFLAGS
728CC
729target_os
730target_vendor
731target_cpu
732target
733host_os
734host_vendor
735host_cpu
736host
737build_os
738build_vendor
739build_cpu
740build
741target_alias
742host_alias
743build_alias
744LIBS
745ECHO_T
746ECHO_N
747ECHO_C
748DEFS
749mandir
750localedir
751libdir
752psdir
753pdfdir
754dvidir
755htmldir
756infodir
757docdir
758oldincludedir
759includedir
760localstatedir
761sharedstatedir
762sysconfdir
763datadir
764datarootdir
765libexecdir
766sbindir
767bindir
768program_transform_name
769prefix
770exec_prefix
771PACKAGE_URL
772PACKAGE_BUGREPORT
773PACKAGE_STRING
774PACKAGE_VERSION
775PACKAGE_TARNAME
776PACKAGE_NAME
777PATH_SEPARATOR
778SHELL'
5464f5a1 779ac_subst_files=''
81ecdfbb
RW
780ac_user_opts='
781enable_option_checking
782enable_dependency_tracking
783enable_shared
784enable_static
785with_pic
786enable_fast_install
787with_gnu_ld
788enable_libtool_lock
789enable_plugins
790enable_largefile
791enable_64_bit_bfd
792enable_targets
e6cc316a 793enable_64_bit_archive
81ecdfbb
RW
794with_mmap
795enable_secureplt
f6aec96d 796enable_separate_code
ef72a554 797enable_leading_mingw64_underscores
81ecdfbb 798with_separate_debug_dir
81ecdfbb
RW
799with_pkgversion
800with_bugurl
801enable_werror
802enable_build_warnings
803enable_maintainer_mode
804enable_install_libbfd
805enable_nls
243340ad 806with_system_zlib
81ecdfbb
RW
807'
808 ac_precious_vars='build_alias
809host_alias
810target_alias
811CC
812CFLAGS
813LDFLAGS
814LIBS
815CPPFLAGS
816CPP'
817
252b5132
RH
818
819# Initialize some variables set by options.
5464f5a1
NN
820ac_init_help=
821ac_init_version=false
81ecdfbb
RW
822ac_unrecognized_opts=
823ac_unrecognized_sep=
252b5132
RH
824# The variables have the same names as the options, with
825# dashes changed to underlines.
5464f5a1 826cache_file=/dev/null
252b5132 827exec_prefix=NONE
252b5132 828no_create=
252b5132
RH
829no_recursion=
830prefix=NONE
831program_prefix=NONE
832program_suffix=NONE
833program_transform_name=s,x,x,
834silent=
835site=
836srcdir=
252b5132
RH
837verbose=
838x_includes=NONE
839x_libraries=NONE
5464f5a1
NN
840
841# Installation directory options.
842# These are left unexpanded so users can "make install exec_prefix=/foo"
843# and all the variables that are supposed to be based on exec_prefix
844# by default will actually change.
845# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 846# (The list follows the same order as the GNU Coding Standards.)
252b5132
RH
847bindir='${exec_prefix}/bin'
848sbindir='${exec_prefix}/sbin'
849libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
850datarootdir='${prefix}/share'
851datadir='${datarootdir}'
252b5132
RH
852sysconfdir='${prefix}/etc'
853sharedstatedir='${prefix}/com'
854localstatedir='${prefix}/var'
252b5132
RH
855includedir='${prefix}/include'
856oldincludedir='/usr/include'
c4dd807e 857docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
81ecdfbb
RW
858infodir='${datarootdir}/info'
859htmldir='${docdir}'
860dvidir='${docdir}'
861pdfdir='${docdir}'
862psdir='${docdir}'
863libdir='${exec_prefix}/lib'
864localedir='${datarootdir}/locale'
865mandir='${datarootdir}/man'
252b5132 866
252b5132 867ac_prev=
81ecdfbb 868ac_dashdash=
252b5132
RH
869for ac_option
870do
252b5132
RH
871 # If the previous option needs an argument, assign it.
872 if test -n "$ac_prev"; then
81ecdfbb 873 eval $ac_prev=\$ac_option
252b5132
RH
874 ac_prev=
875 continue
876 fi
877
81ecdfbb
RW
878 case $ac_option in
879 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
880 *) ac_optarg=yes ;;
881 esac
252b5132
RH
882
883 # Accept the important Cygnus configure options, so we can diagnose typos.
884
81ecdfbb
RW
885 case $ac_dashdash$ac_option in
886 --)
887 ac_dashdash=yes ;;
252b5132
RH
888
889 -bindir | --bindir | --bindi | --bind | --bin | --bi)
890 ac_prev=bindir ;;
891 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
5464f5a1 892 bindir=$ac_optarg ;;
252b5132
RH
893
894 -build | --build | --buil | --bui | --bu)
5464f5a1 895 ac_prev=build_alias ;;
252b5132 896 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
5464f5a1 897 build_alias=$ac_optarg ;;
252b5132
RH
898
899 -cache-file | --cache-file | --cache-fil | --cache-fi \
900 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
901 ac_prev=cache_file ;;
902 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
903 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
5464f5a1
NN
904 cache_file=$ac_optarg ;;
905
906 --config-cache | -C)
907 cache_file=config.cache ;;
252b5132 908
81ecdfbb 909 -datadir | --datadir | --datadi | --datad)
252b5132 910 ac_prev=datadir ;;
81ecdfbb 911 -datadir=* | --datadir=* | --datadi=* | --datad=*)
5464f5a1 912 datadir=$ac_optarg ;;
252b5132 913
81ecdfbb
RW
914 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
915 | --dataroo | --dataro | --datar)
916 ac_prev=datarootdir ;;
917 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
918 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
919 datarootdir=$ac_optarg ;;
920
252b5132 921 -disable-* | --disable-*)
81ecdfbb 922 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
252b5132 923 # Reject names that are not valid shell variable names.
81ecdfbb
RW
924 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
925 as_fn_error "invalid feature name: $ac_useropt"
926 ac_useropt_orig=$ac_useropt
927 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
928 case $ac_user_opts in
929 *"
930"enable_$ac_useropt"
931"*) ;;
932 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
933 ac_unrecognized_sep=', ';;
934 esac
935 eval enable_$ac_useropt=no ;;
936
937 -docdir | --docdir | --docdi | --doc | --do)
938 ac_prev=docdir ;;
939 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
940 docdir=$ac_optarg ;;
941
942 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
943 ac_prev=dvidir ;;
944 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
945 dvidir=$ac_optarg ;;
252b5132
RH
946
947 -enable-* | --enable-*)
81ecdfbb 948 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
252b5132 949 # Reject names that are not valid shell variable names.
81ecdfbb
RW
950 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
951 as_fn_error "invalid feature name: $ac_useropt"
952 ac_useropt_orig=$ac_useropt
953 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
954 case $ac_user_opts in
955 *"
956"enable_$ac_useropt"
957"*) ;;
958 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
959 ac_unrecognized_sep=', ';;
252b5132 960 esac
81ecdfbb 961 eval enable_$ac_useropt=\$ac_optarg ;;
252b5132
RH
962
963 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
964 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
965 | --exec | --exe | --ex)
966 ac_prev=exec_prefix ;;
967 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
968 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
969 | --exec=* | --exe=* | --ex=*)
5464f5a1 970 exec_prefix=$ac_optarg ;;
252b5132
RH
971
972 -gas | --gas | --ga | --g)
973 # Obsolete; use --with-gas.
974 with_gas=yes ;;
975
5464f5a1
NN
976 -help | --help | --hel | --he | -h)
977 ac_init_help=long ;;
978 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
979 ac_init_help=recursive ;;
980 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
981 ac_init_help=short ;;
252b5132
RH
982
983 -host | --host | --hos | --ho)
5464f5a1 984 ac_prev=host_alias ;;
252b5132 985 -host=* | --host=* | --hos=* | --ho=*)
5464f5a1 986 host_alias=$ac_optarg ;;
252b5132 987
81ecdfbb
RW
988 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
989 ac_prev=htmldir ;;
990 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
991 | --ht=*)
992 htmldir=$ac_optarg ;;
993
252b5132
RH
994 -includedir | --includedir | --includedi | --included | --include \
995 | --includ | --inclu | --incl | --inc)
996 ac_prev=includedir ;;
997 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
998 | --includ=* | --inclu=* | --incl=* | --inc=*)
5464f5a1 999 includedir=$ac_optarg ;;
252b5132
RH
1000
1001 -infodir | --infodir | --infodi | --infod | --info | --inf)
1002 ac_prev=infodir ;;
1003 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
5464f5a1 1004 infodir=$ac_optarg ;;
252b5132
RH
1005
1006 -libdir | --libdir | --libdi | --libd)
1007 ac_prev=libdir ;;
1008 -libdir=* | --libdir=* | --libdi=* | --libd=*)
5464f5a1 1009 libdir=$ac_optarg ;;
252b5132
RH
1010
1011 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1012 | --libexe | --libex | --libe)
1013 ac_prev=libexecdir ;;
1014 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1015 | --libexe=* | --libex=* | --libe=*)
5464f5a1 1016 libexecdir=$ac_optarg ;;
252b5132 1017
81ecdfbb
RW
1018 -localedir | --localedir | --localedi | --localed | --locale)
1019 ac_prev=localedir ;;
1020 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1021 localedir=$ac_optarg ;;
1022
252b5132 1023 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 1024 | --localstate | --localstat | --localsta | --localst | --locals)
252b5132
RH
1025 ac_prev=localstatedir ;;
1026 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 1027 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
5464f5a1 1028 localstatedir=$ac_optarg ;;
252b5132
RH
1029
1030 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1031 ac_prev=mandir ;;
1032 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
5464f5a1 1033 mandir=$ac_optarg ;;
252b5132
RH
1034
1035 -nfp | --nfp | --nf)
1036 # Obsolete; use --without-fp.
1037 with_fp=no ;;
1038
1039 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
5464f5a1 1040 | --no-cr | --no-c | -n)
252b5132
RH
1041 no_create=yes ;;
1042
1043 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1044 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1045 no_recursion=yes ;;
1046
1047 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1048 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1049 | --oldin | --oldi | --old | --ol | --o)
1050 ac_prev=oldincludedir ;;
1051 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1052 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1053 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
5464f5a1 1054 oldincludedir=$ac_optarg ;;
252b5132
RH
1055
1056 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1057 ac_prev=prefix ;;
1058 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
5464f5a1 1059 prefix=$ac_optarg ;;
252b5132
RH
1060
1061 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1062 | --program-pre | --program-pr | --program-p)
1063 ac_prev=program_prefix ;;
1064 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1065 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
5464f5a1 1066 program_prefix=$ac_optarg ;;
252b5132
RH
1067
1068 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1069 | --program-suf | --program-su | --program-s)
1070 ac_prev=program_suffix ;;
1071 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1072 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
5464f5a1 1073 program_suffix=$ac_optarg ;;
252b5132
RH
1074
1075 -program-transform-name | --program-transform-name \
1076 | --program-transform-nam | --program-transform-na \
1077 | --program-transform-n | --program-transform- \
1078 | --program-transform | --program-transfor \
1079 | --program-transfo | --program-transf \
1080 | --program-trans | --program-tran \
1081 | --progr-tra | --program-tr | --program-t)
1082 ac_prev=program_transform_name ;;
1083 -program-transform-name=* | --program-transform-name=* \
1084 | --program-transform-nam=* | --program-transform-na=* \
1085 | --program-transform-n=* | --program-transform-=* \
1086 | --program-transform=* | --program-transfor=* \
1087 | --program-transfo=* | --program-transf=* \
1088 | --program-trans=* | --program-tran=* \
1089 | --progr-tra=* | --program-tr=* | --program-t=*)
5464f5a1 1090 program_transform_name=$ac_optarg ;;
252b5132 1091
81ecdfbb
RW
1092 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1093 ac_prev=pdfdir ;;
1094 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1095 pdfdir=$ac_optarg ;;
1096
1097 -psdir | --psdir | --psdi | --psd | --ps)
1098 ac_prev=psdir ;;
1099 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1100 psdir=$ac_optarg ;;
1101
252b5132
RH
1102 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1103 | -silent | --silent | --silen | --sile | --sil)
1104 silent=yes ;;
1105
1106 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1107 ac_prev=sbindir ;;
1108 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1109 | --sbi=* | --sb=*)
5464f5a1 1110 sbindir=$ac_optarg ;;
252b5132
RH
1111
1112 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1113 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1114 | --sharedst | --shareds | --shared | --share | --shar \
1115 | --sha | --sh)
1116 ac_prev=sharedstatedir ;;
1117 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1118 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1119 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1120 | --sha=* | --sh=*)
5464f5a1 1121 sharedstatedir=$ac_optarg ;;
252b5132
RH
1122
1123 -site | --site | --sit)
1124 ac_prev=site ;;
1125 -site=* | --site=* | --sit=*)
5464f5a1 1126 site=$ac_optarg ;;
6be7c12c 1127
252b5132
RH
1128 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1129 ac_prev=srcdir ;;
1130 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
5464f5a1 1131 srcdir=$ac_optarg ;;
252b5132
RH
1132
1133 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1134 | --syscon | --sysco | --sysc | --sys | --sy)
1135 ac_prev=sysconfdir ;;
1136 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1137 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
5464f5a1 1138 sysconfdir=$ac_optarg ;;
252b5132
RH
1139
1140 -target | --target | --targe | --targ | --tar | --ta | --t)
5464f5a1 1141 ac_prev=target_alias ;;
252b5132 1142 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
5464f5a1 1143 target_alias=$ac_optarg ;;
252b5132
RH
1144
1145 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1146 verbose=yes ;;
1147
5464f5a1
NN
1148 -version | --version | --versio | --versi | --vers | -V)
1149 ac_init_version=: ;;
252b5132
RH
1150
1151 -with-* | --with-*)
81ecdfbb 1152 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
252b5132 1153 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1154 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1155 as_fn_error "invalid package name: $ac_useropt"
1156 ac_useropt_orig=$ac_useropt
1157 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1158 case $ac_user_opts in
1159 *"
1160"with_$ac_useropt"
1161"*) ;;
1162 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1163 ac_unrecognized_sep=', ';;
252b5132 1164 esac
81ecdfbb 1165 eval with_$ac_useropt=\$ac_optarg ;;
252b5132
RH
1166
1167 -without-* | --without-*)
81ecdfbb 1168 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
252b5132 1169 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1170 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1171 as_fn_error "invalid package name: $ac_useropt"
1172 ac_useropt_orig=$ac_useropt
1173 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1174 case $ac_user_opts in
1175 *"
1176"with_$ac_useropt"
1177"*) ;;
1178 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1179 ac_unrecognized_sep=', ';;
1180 esac
1181 eval with_$ac_useropt=no ;;
252b5132
RH
1182
1183 --x)
1184 # Obsolete; use --with-x.
1185 with_x=yes ;;
1186
1187 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1188 | --x-incl | --x-inc | --x-in | --x-i)
1189 ac_prev=x_includes ;;
1190 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1191 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
5464f5a1 1192 x_includes=$ac_optarg ;;
252b5132
RH
1193
1194 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1195 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1196 ac_prev=x_libraries ;;
1197 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1198 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
5464f5a1 1199 x_libraries=$ac_optarg ;;
252b5132 1200
81ecdfbb
RW
1201 -*) as_fn_error "unrecognized option: \`$ac_option'
1202Try \`$0 --help' for more information."
252b5132
RH
1203 ;;
1204
5464f5a1
NN
1205 *=*)
1206 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1207 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1208 case $ac_envvar in #(
1209 '' | [0-9]* | *[!_$as_cr_alnum]* )
1210 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1211 esac
1212 eval $ac_envvar=\$ac_optarg
5464f5a1
NN
1213 export $ac_envvar ;;
1214
252b5132 1215 *)
5464f5a1 1216 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1217 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
5464f5a1 1218 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1219 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
5464f5a1 1220 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
252b5132
RH
1221 ;;
1222
1223 esac
1224done
1225
1226if test -n "$ac_prev"; then
5464f5a1 1227 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
81ecdfbb 1228 as_fn_error "missing argument to $ac_option"
252b5132 1229fi
252b5132 1230
81ecdfbb
RW
1231if test -n "$ac_unrecognized_opts"; then
1232 case $enable_option_checking in
1233 no) ;;
1234 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1235 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
5464f5a1 1236 esac
81ecdfbb 1237fi
6be7c12c 1238
81ecdfbb
RW
1239# Check all directory arguments for consistency.
1240for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1241 datadir sysconfdir sharedstatedir localstatedir includedir \
1242 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1243 libdir localedir mandir
252b5132 1244do
81ecdfbb
RW
1245 eval ac_val=\$$ac_var
1246 # Remove trailing slashes.
5464f5a1 1247 case $ac_val in
81ecdfbb
RW
1248 */ )
1249 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1250 eval $ac_var=\$ac_val;;
252b5132 1251 esac
81ecdfbb
RW
1252 # Be sure to have absolute directory names.
1253 case $ac_val in
1254 [\\/$]* | ?:[\\/]* ) continue;;
1255 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1256 esac
1257 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
252b5132
RH
1258done
1259
5464f5a1
NN
1260# There might be people who depend on the old broken behavior: `$host'
1261# used to hold the argument of --host etc.
1262# FIXME: To remove some day.
1263build=$build_alias
1264host=$host_alias
1265target=$target_alias
1266
1267# FIXME: To remove some day.
1268if test "x$host_alias" != x; then
1269 if test "x$build_alias" = x; then
1270 cross_compiling=maybe
81ecdfbb 1271 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
5464f5a1
NN
1272 If a cross compiler is detected then cross compile mode will be used." >&2
1273 elif test "x$build_alias" != "x$host_alias"; then
1274 cross_compiling=yes
1275 fi
1276fi
252b5132 1277
5464f5a1
NN
1278ac_tool_prefix=
1279test -n "$host_alias" && ac_tool_prefix=$host_alias-
1280
1281test "$silent" = yes && exec 6>/dev/null
252b5132 1282
252b5132 1283
81ecdfbb
RW
1284ac_pwd=`pwd` && test -n "$ac_pwd" &&
1285ac_ls_di=`ls -di .` &&
1286ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1287 as_fn_error "working directory cannot be determined"
1288test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1289 as_fn_error "pwd does not report name of working directory"
1290
1291
252b5132
RH
1292# Find the source files, if location was not specified.
1293if test -z "$srcdir"; then
1294 ac_srcdir_defaulted=yes
81ecdfbb
RW
1295 # Try the directory containing this script, then the parent directory.
1296 ac_confdir=`$as_dirname -- "$as_myself" ||
1297$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1298 X"$as_myself" : 'X\(//\)[^/]' \| \
1299 X"$as_myself" : 'X\(//\)$' \| \
1300 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1301$as_echo X"$as_myself" |
1302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1303 s//\1/
1304 q
1305 }
1306 /^X\(\/\/\)[^/].*/{
1307 s//\1/
1308 q
1309 }
1310 /^X\(\/\/\)$/{
1311 s//\1/
1312 q
1313 }
1314 /^X\(\/\).*/{
1315 s//\1/
1316 q
1317 }
1318 s/.*/./; q'`
252b5132 1319 srcdir=$ac_confdir
81ecdfbb 1320 if test ! -r "$srcdir/$ac_unique_file"; then
252b5132
RH
1321 srcdir=..
1322 fi
1323else
1324 ac_srcdir_defaulted=no
1325fi
81ecdfbb
RW
1326if test ! -r "$srcdir/$ac_unique_file"; then
1327 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1328 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1329fi
1330ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1331ac_abs_confdir=`(
1332 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1333 pwd)`
1334# When building in place, set srcdir=.
1335if test "$ac_abs_confdir" = "$ac_pwd"; then
1336 srcdir=.
1337fi
1338# Remove unnecessary trailing slashes from srcdir.
1339# Double slashes in file names in object file debugging info
1340# mess up M-x gdb in Emacs.
1341case $srcdir in
1342*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1343esac
1344for ac_var in $ac_precious_vars; do
1345 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1346 eval ac_env_${ac_var}_value=\$${ac_var}
1347 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1348 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1349done
b3baf5d0 1350
5464f5a1
NN
1351#
1352# Report the --help message.
1353#
1354if test "$ac_init_help" = "long"; then
1355 # Omit some internal or obsolete options to make the list less imposing.
1356 # This message is too long to be a string in the A/UX 3.1 sh.
1357 cat <<_ACEOF
55e99962 1358\`configure' configures bfd 2.30.52 to adapt to many kinds of systems.
252b5132 1359
5464f5a1 1360Usage: $0 [OPTION]... [VAR=VALUE]...
252b5132 1361
5464f5a1
NN
1362To assign environment variables (e.g., CC, CFLAGS...), specify them as
1363VAR=VALUE. See below for descriptions of some of the useful variables.
6be7c12c 1364
5464f5a1 1365Defaults for the options are specified in brackets.
6be7c12c 1366
5464f5a1
NN
1367Configuration:
1368 -h, --help display this help and exit
1369 --help=short display options specific to this package
1370 --help=recursive display the short help of all the included packages
1371 -V, --version display version information and exit
1372 -q, --quiet, --silent do not print \`checking...' messages
1373 --cache-file=FILE cache test results in FILE [disabled]
1374 -C, --config-cache alias for \`--cache-file=config.cache'
1375 -n, --no-create do not create output files
1376 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1377
5464f5a1
NN
1378Installation directories:
1379 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1380 [$ac_default_prefix]
5464f5a1 1381 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1382 [PREFIX]
6be7c12c 1383
5464f5a1
NN
1384By default, \`make install' will install all the files in
1385\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1386an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1387for instance \`--prefix=\$HOME'.
6be7c12c 1388
5464f5a1 1389For better control, use the options below.
6be7c12c 1390
5464f5a1 1391Fine tuning of the installation directories:
81ecdfbb
RW
1392 --bindir=DIR user executables [EPREFIX/bin]
1393 --sbindir=DIR system admin executables [EPREFIX/sbin]
1394 --libexecdir=DIR program executables [EPREFIX/libexec]
1395 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1396 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1397 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1398 --libdir=DIR object code libraries [EPREFIX/lib]
1399 --includedir=DIR C header files [PREFIX/include]
1400 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1401 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1402 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1403 --infodir=DIR info documentation [DATAROOTDIR/info]
1404 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1405 --mandir=DIR man documentation [DATAROOTDIR/man]
c4dd807e 1406 --docdir=DIR documentation root [DATAROOTDIR/doc/bfd]
81ecdfbb
RW
1407 --htmldir=DIR html documentation [DOCDIR]
1408 --dvidir=DIR dvi documentation [DOCDIR]
1409 --pdfdir=DIR pdf documentation [DOCDIR]
1410 --psdir=DIR ps documentation [DOCDIR]
5464f5a1 1411_ACEOF
6be7c12c 1412
5464f5a1 1413 cat <<\_ACEOF
6be7c12c 1414
5464f5a1
NN
1415Program names:
1416 --program-prefix=PREFIX prepend PREFIX to installed program names
1417 --program-suffix=SUFFIX append SUFFIX to installed program names
1418 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
252b5132 1419
5464f5a1
NN
1420System types:
1421 --build=BUILD configure for building on BUILD [guessed]
1422 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1423 --target=TARGET configure for building compilers for TARGET [HOST]
1424_ACEOF
252b5132 1425fi
252b5132 1426
5464f5a1 1427if test -n "$ac_init_help"; then
c4dd807e 1428 case $ac_init_help in
55e99962 1429 short | recursive ) echo "Configuration of bfd 2.30.52:";;
c4dd807e 1430 esac
5464f5a1 1431 cat <<\_ACEOF
252b5132 1432
5464f5a1 1433Optional Features:
81ecdfbb 1434 --disable-option-checking ignore unrecognized --enable/--with options
5464f5a1
NN
1435 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1436 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
f5385ebf
AM
1437 --disable-dependency-tracking speeds up one-time build
1438 --enable-dependency-tracking do not reject slow dependency extractors
81ecdfbb
RW
1439 --enable-shared[=PKGS] build shared libraries [default=no]
1440 --enable-static[=PKGS] build static libraries [default=yes]
d7040cdb
SE
1441 --enable-fast-install[=PKGS]
1442 optimize for fast installation [default=yes]
5464f5a1 1443 --disable-libtool-lock avoid locking (might break parallel builds)
b879806f 1444 --enable-plugins Enable support for plugins
ce3c775b 1445 --disable-largefile omit support for large files
5464f5a1
NN
1446 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
1447 --enable-targets alternative target configurations
e6cc316a 1448 --enable-64-bit-archive force 64-bit archives
6ec7057a 1449 --enable-secureplt Default to creating read-only plt entries
f6aec96d 1450 --enable-separate-code enable -z separate-code in ELF linker by default
ef72a554
KT
1451 --enable-leading-mingw64-underscores
1452 Enable leading underscores on 64 bit mingw targets
241a6c40
AM
1453 --enable-werror treat compile warnings as errors
1454 --enable-build-warnings enable build-time compiler warnings
f5385ebf
AM
1455 --enable-maintainer-mode enable make rules and dependencies not useful
1456 (and sometimes confusing) to the casual installer
5464f5a1
NN
1457 --enable-install-libbfd controls installation of libbfd and related headers
1458 --disable-nls do not use Native Language Support
1459
1460Optional Packages:
1461 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1462 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
d7040cdb
SE
1463 --with-pic try to use only PIC/non-PIC objects [default=use
1464 both]
1465 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
5464f5a1 1466 --with-mmap try using mmap for BFD input files if available
0d4a1476
AS
1467 --with-separate-debug-dir=DIR
1468 Look for global separate debug info in DIR
1469 [default=LIBDIR/debug]
a1ac8190
JM
1470 --with-pkgversion=PKG Use PKG in the version string in place of "GNU
1471 Binutils"
c428fa83 1472 --with-bugurl=URL Direct users to URL to report a bug
243340ad 1473 --with-system-zlib use installed libz
5464f5a1
NN
1474
1475Some influential environment variables:
1476 CC C compiler command
1477 CFLAGS C compiler flags
1478 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1479 nonstandard directory <lib dir>
81ecdfbb
RW
1480 LIBS libraries to pass to the linker, e.g. -l<library>
1481 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1482 you have headers in a nonstandard directory <include dir>
5464f5a1
NN
1483 CPP C preprocessor
1484
1485Use these variables to override the choices made by `configure' or to help
1486it to find libraries and programs with nonstandard names/locations.
1487
81ecdfbb 1488Report bugs to the package provider.
5464f5a1 1489_ACEOF
81ecdfbb 1490ac_status=$?
5464f5a1
NN
1491fi
1492
1493if test "$ac_init_help" = "recursive"; then
1494 # If there are subdirs, report their specific --help.
5464f5a1 1495 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1496 test -d "$ac_dir" ||
1497 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1498 continue
5464f5a1
NN
1499 ac_builddir=.
1500
81ecdfbb
RW
1501case "$ac_dir" in
1502.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1503*)
1504 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1505 # A ".." for each directory in $ac_dir_suffix.
1506 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1507 case $ac_top_builddir_sub in
1508 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1509 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1510 esac ;;
1511esac
1512ac_abs_top_builddir=$ac_pwd
1513ac_abs_builddir=$ac_pwd$ac_dir_suffix
1514# for backward compatibility:
1515ac_top_builddir=$ac_top_build_prefix
5464f5a1
NN
1516
1517case $srcdir in
81ecdfbb 1518 .) # We are building in place.
5464f5a1 1519 ac_srcdir=.
81ecdfbb
RW
1520 ac_top_srcdir=$ac_top_builddir_sub
1521 ac_abs_top_srcdir=$ac_pwd ;;
1522 [\\/]* | ?:[\\/]* ) # Absolute name.
5464f5a1 1523 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1524 ac_top_srcdir=$srcdir
1525 ac_abs_top_srcdir=$srcdir ;;
1526 *) # Relative name.
1527 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1528 ac_top_srcdir=$ac_top_build_prefix$srcdir
1529 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5464f5a1 1530esac
81ecdfbb
RW
1531ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1532
1533 cd "$ac_dir" || { ac_status=$?; continue; }
1534 # Check for guested configure.
1535 if test -f "$ac_srcdir/configure.gnu"; then
1536 echo &&
1537 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1538 elif test -f "$ac_srcdir/configure"; then
1539 echo &&
1540 $SHELL "$ac_srcdir/configure" --help=recursive
5464f5a1 1541 else
81ecdfbb
RW
1542 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1543 fi || ac_status=$?
1544 cd "$ac_pwd" || { ac_status=$?; break; }
5464f5a1 1545 done
6be7c12c
AO
1546fi
1547
81ecdfbb 1548test -n "$ac_init_help" && exit $ac_status
5464f5a1
NN
1549if $ac_init_version; then
1550 cat <<\_ACEOF
55e99962 1551bfd configure 2.30.52
81ecdfbb 1552generated by GNU Autoconf 2.64
6be7c12c 1553
81ecdfbb 1554Copyright (C) 2009 Free Software Foundation, Inc.
5464f5a1
NN
1555This configure script is free software; the Free Software Foundation
1556gives unlimited permission to copy, distribute and modify it.
1557_ACEOF
81ecdfbb 1558 exit
5464f5a1 1559fi
6be7c12c 1560
81ecdfbb
RW
1561## ------------------------ ##
1562## Autoconf initialization. ##
1563## ------------------------ ##
6be7c12c 1564
81ecdfbb
RW
1565# ac_fn_c_try_compile LINENO
1566# --------------------------
1567# Try to compile conftest.$ac_ext, and return whether this succeeded.
1568ac_fn_c_try_compile ()
5464f5a1 1569{
81ecdfbb
RW
1570 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1571 rm -f conftest.$ac_objext
1572 if { { ac_try="$ac_compile"
1573case "(($ac_try" in
1574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1575 *) ac_try_echo=$ac_try;;
1576esac
1577eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1578$as_echo "$ac_try_echo"; } >&5
1579 (eval "$ac_compile") 2>conftest.err
1580 ac_status=$?
1581 if test -s conftest.err; then
1582 grep -v '^ *+' conftest.err >conftest.er1
1583 cat conftest.er1 >&5
1584 mv -f conftest.er1 conftest.err
1585 fi
1586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1587 test $ac_status = 0; } && {
1588 test -z "$ac_c_werror_flag" ||
1589 test ! -s conftest.err
1590 } && test -s conftest.$ac_objext; then :
1591 ac_retval=0
1592else
1593 $as_echo "$as_me: failed program was:" >&5
1594sed 's/^/| /' conftest.$ac_ext >&5
5464f5a1 1595
81ecdfbb
RW
1596 ac_retval=1
1597fi
1598 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1599 return $ac_retval
5464f5a1 1600
81ecdfbb 1601} # ac_fn_c_try_compile
5464f5a1 1602
81ecdfbb
RW
1603# ac_fn_c_try_link LINENO
1604# -----------------------
1605# Try to link conftest.$ac_ext, and return whether this succeeded.
1606ac_fn_c_try_link ()
1607{
1608 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1609 rm -f conftest.$ac_objext conftest$ac_exeext
1610 if { { ac_try="$ac_link"
1611case "(($ac_try" in
1612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1613 *) ac_try_echo=$ac_try;;
1614esac
1615eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1616$as_echo "$ac_try_echo"; } >&5
1617 (eval "$ac_link") 2>conftest.err
1618 ac_status=$?
1619 if test -s conftest.err; then
1620 grep -v '^ *+' conftest.err >conftest.er1
1621 cat conftest.er1 >&5
1622 mv -f conftest.er1 conftest.err
1623 fi
1624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1625 test $ac_status = 0; } && {
1626 test -z "$ac_c_werror_flag" ||
1627 test ! -s conftest.err
1628 } && test -s conftest$ac_exeext && {
1629 test "$cross_compiling" = yes ||
1630 $as_test_x conftest$ac_exeext
1631 }; then :
1632 ac_retval=0
1633else
1634 $as_echo "$as_me: failed program was:" >&5
1635sed 's/^/| /' conftest.$ac_ext >&5
5464f5a1 1636
81ecdfbb
RW
1637 ac_retval=1
1638fi
1639 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1640 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1641 # interfere with the next link command; also delete a directory that is
1642 # left behind by Apple's compiler. We do this before executing the actions.
1643 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1644 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1645 return $ac_retval
6be7c12c 1646
81ecdfbb 1647} # ac_fn_c_try_link
66e25bab 1648
81ecdfbb
RW
1649# ac_fn_c_try_cpp LINENO
1650# ----------------------
1651# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1652ac_fn_c_try_cpp ()
1653{
1654 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1655 if { { ac_try="$ac_cpp conftest.$ac_ext"
1656case "(($ac_try" in
1657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1658 *) ac_try_echo=$ac_try;;
1659esac
1660eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1661$as_echo "$ac_try_echo"; } >&5
1662 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1663 ac_status=$?
1664 if test -s conftest.err; then
1665 grep -v '^ *+' conftest.err >conftest.er1
1666 cat conftest.er1 >&5
1667 mv -f conftest.er1 conftest.err
1668 fi
1669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1670 test $ac_status = 0; } >/dev/null && {
1671 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1672 test ! -s conftest.err
1673 }; then :
1674 ac_retval=0
1675else
1676 $as_echo "$as_me: failed program was:" >&5
1677sed 's/^/| /' conftest.$ac_ext >&5
b3baf5d0 1678
81ecdfbb
RW
1679 ac_retval=1
1680fi
1681 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1682 return $ac_retval
6be7c12c 1683
81ecdfbb 1684} # ac_fn_c_try_cpp
252b5132 1685
81ecdfbb
RW
1686# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1687# -------------------------------------------------------
1688# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1689# the include files in INCLUDES and setting the cache variable VAR
1690# accordingly.
1691ac_fn_c_check_header_mongrel ()
1692{
1693 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1694 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1696$as_echo_n "checking for $2... " >&6; }
1697if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1698 $as_echo_n "(cached) " >&6
1699fi
1700eval ac_res=\$$3
1701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1702$as_echo "$ac_res" >&6; }
1703else
1704 # Is the header compilable?
1705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1706$as_echo_n "checking $2 usability... " >&6; }
1707cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1708/* end confdefs.h. */
1709$4
1710#include <$2>
5464f5a1 1711_ACEOF
81ecdfbb
RW
1712if ac_fn_c_try_compile "$LINENO"; then :
1713 ac_header_compiler=yes
1714else
1715 ac_header_compiler=no
1716fi
1717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1719$as_echo "$ac_header_compiler" >&6; }
c5d1701e 1720
81ecdfbb
RW
1721# Is the header present?
1722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1723$as_echo_n "checking $2 presence... " >&6; }
1724cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1725/* end confdefs.h. */
1726#include <$2>
1727_ACEOF
1728if ac_fn_c_try_cpp "$LINENO"; then :
1729 ac_header_preproc=yes
1730else
1731 ac_header_preproc=no
1732fi
1733rm -f conftest.err conftest.$ac_ext
1734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1735$as_echo "$ac_header_preproc" >&6; }
6be7c12c 1736
81ecdfbb
RW
1737# So? What about this header?
1738case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1739 yes:no: )
1740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1741$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1743$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1744 ;;
1745 no:yes:* )
1746 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1747$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1749$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1750 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1751$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1753$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1755$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1756 ;;
1757esac
1758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1759$as_echo_n "checking for $2... " >&6; }
1760if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1761 $as_echo_n "(cached) " >&6
1762else
1763 eval "$3=\$ac_header_compiler"
1764fi
1765eval ac_res=\$$3
1766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1767$as_echo "$ac_res" >&6; }
1768fi
1769 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
5464f5a1 1770
81ecdfbb 1771} # ac_fn_c_check_header_mongrel
5464f5a1 1772
81ecdfbb
RW
1773# ac_fn_c_try_run LINENO
1774# ----------------------
1775# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1776# that executables *can* be run.
1777ac_fn_c_try_run ()
5464f5a1 1778{
81ecdfbb
RW
1779 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1780 if { { ac_try="$ac_link"
1781case "(($ac_try" in
1782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1783 *) ac_try_echo=$ac_try;;
1784esac
1785eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1786$as_echo "$ac_try_echo"; } >&5
1787 (eval "$ac_link") 2>&5
1788 ac_status=$?
1789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1790 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1791 { { case "(($ac_try" in
1792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1793 *) ac_try_echo=$ac_try;;
1794esac
1795eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1796$as_echo "$ac_try_echo"; } >&5
1797 (eval "$ac_try") 2>&5
1798 ac_status=$?
1799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1800 test $ac_status = 0; }; }; then :
1801 ac_retval=0
1802else
1803 $as_echo "$as_me: program exited with status $ac_status" >&5
1804 $as_echo "$as_me: failed program was:" >&5
1805sed 's/^/| /' conftest.$ac_ext >&5
5464f5a1 1806
81ecdfbb
RW
1807 ac_retval=$ac_status
1808fi
1809 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1810 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1811 return $ac_retval
5464f5a1 1812
81ecdfbb 1813} # ac_fn_c_try_run
5464f5a1 1814
81ecdfbb
RW
1815# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1816# -------------------------------------------------------
1817# Tests whether HEADER exists and can be compiled using the include files in
1818# INCLUDES, setting the cache variable VAR accordingly.
1819ac_fn_c_check_header_compile ()
1820{
1821 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1823$as_echo_n "checking for $2... " >&6; }
1824if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1825 $as_echo_n "(cached) " >&6
1826else
1827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1828/* end confdefs.h. */
1829$4
1830#include <$2>
1831_ACEOF
1832if ac_fn_c_try_compile "$LINENO"; then :
1833 eval "$3=yes"
1834else
1835 eval "$3=no"
1836fi
1837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1838fi
1839eval ac_res=\$$3
1840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1841$as_echo "$ac_res" >&6; }
1842 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
5464f5a1 1843
81ecdfbb 1844} # ac_fn_c_check_header_compile
5464f5a1 1845
81ecdfbb
RW
1846# ac_fn_c_check_func LINENO FUNC VAR
1847# ----------------------------------
1848# Tests whether FUNC exists, setting the cache variable VAR accordingly
1849ac_fn_c_check_func ()
1850{
1851 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1853$as_echo_n "checking for $2... " >&6; }
1854if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1855 $as_echo_n "(cached) " >&6
1856else
1857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1858/* end confdefs.h. */
1859/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1860 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1861#define $2 innocuous_$2
5464f5a1 1862
81ecdfbb
RW
1863/* System header to define __stub macros and hopefully few prototypes,
1864 which can conflict with char $2 (); below.
1865 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1866 <limits.h> exists even on freestanding compilers. */
5464f5a1 1867
81ecdfbb
RW
1868#ifdef __STDC__
1869# include <limits.h>
1870#else
1871# include <assert.h>
1872#endif
5464f5a1 1873
81ecdfbb 1874#undef $2
5464f5a1 1875
81ecdfbb
RW
1876/* Override any GCC internal prototype to avoid an error.
1877 Use char because int might match the return type of a GCC
1878 builtin and then its argument prototype would still apply. */
1879#ifdef __cplusplus
1880extern "C"
1881#endif
1882char $2 ();
1883/* The GNU C library defines this for functions which it implements
1884 to always fail with ENOSYS. Some functions are actually named
1885 something starting with __ and the normal name is an alias. */
1886#if defined __stub_$2 || defined __stub___$2
1887choke me
1888#endif
5464f5a1 1889
81ecdfbb
RW
1890int
1891main ()
1892{
1893return $2 ();
1894 ;
1895 return 0;
1896}
5464f5a1 1897_ACEOF
81ecdfbb
RW
1898if ac_fn_c_try_link "$LINENO"; then :
1899 eval "$3=yes"
1900else
1901 eval "$3=no"
1902fi
1903rm -f core conftest.err conftest.$ac_objext \
1904 conftest$ac_exeext conftest.$ac_ext
1905fi
1906eval ac_res=\$$3
1907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1908$as_echo "$ac_res" >&6; }
1909 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
5464f5a1 1910
81ecdfbb 1911} # ac_fn_c_check_func
5464f5a1 1912
33c734b2
AM
1913# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1914# -------------------------------------------
1915# Tests whether TYPE exists after having included INCLUDES, setting cache
1916# variable VAR accordingly.
1917ac_fn_c_check_type ()
1918{
1919 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1921$as_echo_n "checking for $2... " >&6; }
1922if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1923 $as_echo_n "(cached) " >&6
1924else
1925 eval "$3=no"
1926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1927/* end confdefs.h. */
1928$4
1929int
1930main ()
1931{
1932if (sizeof ($2))
1933 return 0;
1934 ;
1935 return 0;
1936}
1937_ACEOF
1938if ac_fn_c_try_compile "$LINENO"; then :
1939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1940/* end confdefs.h. */
1941$4
1942int
1943main ()
1944{
1945if (sizeof (($2)))
1946 return 0;
1947 ;
1948 return 0;
1949}
1950_ACEOF
1951if ac_fn_c_try_compile "$LINENO"; then :
1952
1953else
1954 eval "$3=yes"
1955fi
1956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1957fi
1958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1959fi
1960eval ac_res=\$$3
1961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1962$as_echo "$ac_res" >&6; }
1963 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1964
1965} # ac_fn_c_check_type
1966
81ecdfbb
RW
1967# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1968# --------------------------------------------
1969# Tries to find the compile-time value of EXPR in a program that includes
1970# INCLUDES, setting VAR accordingly. Returns whether the value could be
1971# computed
1972ac_fn_c_compute_int ()
1973{
1974 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1975 if test "$cross_compiling" = yes; then
1976 # Depending upon the size, compute the lo and hi bounds.
1977cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1978/* end confdefs.h. */
1979$4
1980int
1981main ()
1982{
1983static int test_array [1 - 2 * !(($2) >= 0)];
1984test_array [0] = 0
5464f5a1 1985
81ecdfbb
RW
1986 ;
1987 return 0;
1988}
5464f5a1 1989_ACEOF
81ecdfbb
RW
1990if ac_fn_c_try_compile "$LINENO"; then :
1991 ac_lo=0 ac_mid=0
1992 while :; do
1993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1994/* end confdefs.h. */
1995$4
1996int
1997main ()
1998{
1999static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2000test_array [0] = 0
5464f5a1 2001
81ecdfbb
RW
2002 ;
2003 return 0;
2004}
2005_ACEOF
2006if ac_fn_c_try_compile "$LINENO"; then :
2007 ac_hi=$ac_mid; break
5464f5a1 2008else
81ecdfbb
RW
2009 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2010 if test $ac_lo -le $ac_mid; then
2011 ac_lo= ac_hi=
2012 break
2013 fi
2014 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
5464f5a1 2015fi
81ecdfbb
RW
2016rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2017 done
2018else
2019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2020/* end confdefs.h. */
2021$4
2022int
2023main ()
2024{
2025static int test_array [1 - 2 * !(($2) < 0)];
2026test_array [0] = 0
5464f5a1 2027
81ecdfbb
RW
2028 ;
2029 return 0;
2030}
2031_ACEOF
2032if ac_fn_c_try_compile "$LINENO"; then :
2033 ac_hi=-1 ac_mid=-1
2034 while :; do
2035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2036/* end confdefs.h. */
2037$4
2038int
2039main ()
2040{
2041static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2042test_array [0] = 0
5464f5a1 2043
81ecdfbb
RW
2044 ;
2045 return 0;
2046}
2047_ACEOF
2048if ac_fn_c_try_compile "$LINENO"; then :
2049 ac_lo=$ac_mid; break
2050else
2051 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2052 if test $ac_mid -le $ac_hi; then
2053 ac_lo= ac_hi=
2054 break
2055 fi
2056 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2057fi
2058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2059 done
2060else
2061 ac_lo= ac_hi=
2062fi
2063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2064fi
2065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2066# Binary search between lo and hi bounds.
2067while test "x$ac_lo" != "x$ac_hi"; do
2068 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2070/* end confdefs.h. */
2071$4
2072int
2073main ()
2074{
2075static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2076test_array [0] = 0
5464f5a1 2077
81ecdfbb
RW
2078 ;
2079 return 0;
2080}
2081_ACEOF
2082if ac_fn_c_try_compile "$LINENO"; then :
2083 ac_hi=$ac_mid
2084else
2085 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2086fi
2087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2088done
2089case $ac_lo in #((
2090?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2091'') ac_retval=1 ;;
2092esac
2093 else
2094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2095/* end confdefs.h. */
2096$4
2097static long int longval () { return $2; }
2098static unsigned long int ulongval () { return $2; }
2099#include <stdio.h>
2100#include <stdlib.h>
2101int
2102main ()
2103{
5464f5a1 2104
81ecdfbb
RW
2105 FILE *f = fopen ("conftest.val", "w");
2106 if (! f)
2107 return 1;
2108 if (($2) < 0)
2109 {
2110 long int i = longval ();
2111 if (i != ($2))
2112 return 1;
2113 fprintf (f, "%ld", i);
2114 }
2115 else
2116 {
2117 unsigned long int i = ulongval ();
2118 if (i != ($2))
2119 return 1;
2120 fprintf (f, "%lu", i);
2121 }
2122 /* Do not output a trailing newline, as this causes \r\n confusion
2123 on some platforms. */
2124 return ferror (f) || fclose (f) != 0;
5464f5a1 2125
81ecdfbb
RW
2126 ;
2127 return 0;
2128}
2129_ACEOF
2130if ac_fn_c_try_run "$LINENO"; then :
2131 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2132else
2133 ac_retval=1
2134fi
2135rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2136 conftest.$ac_objext conftest.beam conftest.$ac_ext
2137rm -f conftest.val
7357c5b6 2138
81ecdfbb
RW
2139 fi
2140 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2141 return $ac_retval
7357c5b6 2142
81ecdfbb 2143} # ac_fn_c_compute_int
7357c5b6 2144
81ecdfbb
RW
2145# ac_fn_c_check_decl LINENO SYMBOL VAR
2146# ------------------------------------
2147# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2148ac_fn_c_check_decl ()
2149{
2150 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
360cfc9c
AM
2151 as_decl_name=`echo $2|sed 's/ *(.*//'`
2152 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2154$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
81ecdfbb
RW
2155if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2156 $as_echo_n "(cached) " >&6
2157else
2158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2159/* end confdefs.h. */
2160$4
2161int
2162main ()
2163{
360cfc9c
AM
2164#ifndef $as_decl_name
2165#ifdef __cplusplus
2166 (void) $as_decl_use;
2167#else
2168 (void) $as_decl_name;
2169#endif
81ecdfbb 2170#endif
5464f5a1 2171
81ecdfbb
RW
2172 ;
2173 return 0;
2174}
2175_ACEOF
2176if ac_fn_c_try_compile "$LINENO"; then :
2177 eval "$3=yes"
2178else
2179 eval "$3=no"
5464f5a1 2180fi
81ecdfbb
RW
2181rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2182fi
2183eval ac_res=\$$3
2184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2185$as_echo "$ac_res" >&6; }
2186 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
5464f5a1 2187
81ecdfbb
RW
2188} # ac_fn_c_check_decl
2189cat >config.log <<_ACEOF
2190This file contains any messages produced by compilers while
2191running configure, to aid debugging if configure makes a mistake.
5464f5a1 2192
55e99962 2193It was created by bfd $as_me 2.30.52, which was
81ecdfbb 2194generated by GNU Autoconf 2.64. Invocation command line was
5464f5a1 2195
81ecdfbb 2196 $ $0 $@
5464f5a1 2197
81ecdfbb
RW
2198_ACEOF
2199exec 5>>config.log
2200{
2201cat <<_ASUNAME
2202## --------- ##
2203## Platform. ##
2204## --------- ##
5464f5a1 2205
81ecdfbb
RW
2206hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2207uname -m = `(uname -m) 2>/dev/null || echo unknown`
2208uname -r = `(uname -r) 2>/dev/null || echo unknown`
2209uname -s = `(uname -s) 2>/dev/null || echo unknown`
2210uname -v = `(uname -v) 2>/dev/null || echo unknown`
5464f5a1 2211
81ecdfbb
RW
2212/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2213/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
5464f5a1 2214
81ecdfbb
RW
2215/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2216/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2217/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2218/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2219/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2220/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2221/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
5464f5a1 2222
81ecdfbb 2223_ASUNAME
5464f5a1 2224
5464f5a1
NN
2225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2226for as_dir in $PATH
2227do
2228 IFS=$as_save_IFS
2229 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2230 $as_echo "PATH: $as_dir"
2231 done
2232IFS=$as_save_IFS
5464f5a1 2233
81ecdfbb 2234} >&5
5464f5a1 2235
81ecdfbb 2236cat >&5 <<_ACEOF
5464f5a1 2237
5464f5a1 2238
81ecdfbb
RW
2239## ----------- ##
2240## Core tests. ##
2241## ----------- ##
5464f5a1 2242
81ecdfbb
RW
2243_ACEOF
2244
2245
2246# Keep a trace of the command line.
2247# Strip out --no-create and --no-recursion so they do not pile up.
2248# Strip out --silent because we don't want to record it for future runs.
2249# Also quote any args containing shell meta-characters.
2250# Make two passes to allow for proper duplicate-argument suppression.
2251ac_configure_args=
2252ac_configure_args0=
2253ac_configure_args1=
2254ac_must_keep_next=false
2255for ac_pass in 1 2
2256do
2257 for ac_arg
2258 do
2259 case $ac_arg in
2260 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2261 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2262 | -silent | --silent | --silen | --sile | --sil)
2263 continue ;;
2264 *\'*)
2265 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2266 esac
2267 case $ac_pass in
2268 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2269 2)
2270 as_fn_append ac_configure_args1 " '$ac_arg'"
2271 if test $ac_must_keep_next = true; then
2272 ac_must_keep_next=false # Got value, back to normal.
2273 else
2274 case $ac_arg in
2275 *=* | --config-cache | -C | -disable-* | --disable-* \
2276 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2277 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2278 | -with-* | --with-* | -without-* | --without-* | --x)
2279 case "$ac_configure_args0 " in
2280 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2281 esac
2282 ;;
2283 -* ) ac_must_keep_next=true ;;
2284 esac
2285 fi
2286 as_fn_append ac_configure_args " '$ac_arg'"
2287 ;;
2288 esac
2289 done
2290done
2291{ ac_configure_args0=; unset ac_configure_args0;}
2292{ ac_configure_args1=; unset ac_configure_args1;}
2293
2294# When interrupted or exit'd, cleanup temporary files, and complete
2295# config.log. We remove comments because anyway the quotes in there
2296# would cause problems or look ugly.
2297# WARNING: Use '\'' to represent an apostrophe within the trap.
2298# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2299trap 'exit_status=$?
2300 # Save into config.log some information that might help in debugging.
2301 {
2302 echo
2303
2304 cat <<\_ASBOX
2305## ---------------- ##
2306## Cache variables. ##
2307## ---------------- ##
2308_ASBOX
2309 echo
2310 # The following way of writing the cache mishandles newlines in values,
2311(
2312 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2313 eval ac_val=\$$ac_var
2314 case $ac_val in #(
2315 *${as_nl}*)
2316 case $ac_var in #(
2317 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2318$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2319 esac
2320 case $ac_var in #(
2321 _ | IFS | as_nl) ;; #(
2322 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2323 *) { eval $ac_var=; unset $ac_var;} ;;
2324 esac ;;
2325 esac
2326 done
2327 (set) 2>&1 |
2328 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2329 *${as_nl}ac_space=\ *)
2330 sed -n \
2331 "s/'\''/'\''\\\\'\'''\''/g;
2332 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2333 ;; #(
2334 *)
2335 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2336 ;;
2337 esac |
2338 sort
2339)
2340 echo
2341
2342 cat <<\_ASBOX
2343## ----------------- ##
2344## Output variables. ##
2345## ----------------- ##
2346_ASBOX
2347 echo
2348 for ac_var in $ac_subst_vars
2349 do
2350 eval ac_val=\$$ac_var
2351 case $ac_val in
2352 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2353 esac
2354 $as_echo "$ac_var='\''$ac_val'\''"
2355 done | sort
2356 echo
2357
2358 if test -n "$ac_subst_files"; then
2359 cat <<\_ASBOX
2360## ------------------- ##
2361## File substitutions. ##
2362## ------------------- ##
2363_ASBOX
2364 echo
2365 for ac_var in $ac_subst_files
2366 do
2367 eval ac_val=\$$ac_var
2368 case $ac_val in
2369 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2370 esac
2371 $as_echo "$ac_var='\''$ac_val'\''"
2372 done | sort
2373 echo
2374 fi
2375
2376 if test -s confdefs.h; then
2377 cat <<\_ASBOX
2378## ----------- ##
2379## confdefs.h. ##
2380## ----------- ##
2381_ASBOX
2382 echo
2383 cat confdefs.h
2384 echo
2385 fi
2386 test "$ac_signal" != 0 &&
2387 $as_echo "$as_me: caught signal $ac_signal"
2388 $as_echo "$as_me: exit $exit_status"
2389 } >&5
2390 rm -f core *.core core.conftest.* &&
2391 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2392 exit $exit_status
2393' 0
2394for ac_signal in 1 2 13 15; do
2395 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2396done
2397ac_signal=0
2398
2399# confdefs.h avoids OS command line length limits that DEFS can exceed.
2400rm -f -r conftest* confdefs.h
2401
2402$as_echo "/* confdefs.h */" > confdefs.h
2403
2404# Predefined preprocessor variables.
2405
2406cat >>confdefs.h <<_ACEOF
2407#define PACKAGE_NAME "$PACKAGE_NAME"
2408_ACEOF
2409
2410cat >>confdefs.h <<_ACEOF
2411#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2412_ACEOF
2413
2414cat >>confdefs.h <<_ACEOF
2415#define PACKAGE_VERSION "$PACKAGE_VERSION"
2416_ACEOF
2417
2418cat >>confdefs.h <<_ACEOF
2419#define PACKAGE_STRING "$PACKAGE_STRING"
2420_ACEOF
2421
2422cat >>confdefs.h <<_ACEOF
2423#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2424_ACEOF
2425
2426cat >>confdefs.h <<_ACEOF
2427#define PACKAGE_URL "$PACKAGE_URL"
2428_ACEOF
2429
2430
2431# Let the site file select an alternate cache file if it wants to.
2432# Prefer an explicitly selected file to automatically selected ones.
2433ac_site_file1=NONE
2434ac_site_file2=NONE
2435if test -n "$CONFIG_SITE"; then
2436 ac_site_file1=$CONFIG_SITE
2437elif test "x$prefix" != xNONE; then
2438 ac_site_file1=$prefix/share/config.site
2439 ac_site_file2=$prefix/etc/config.site
2440else
2441 ac_site_file1=$ac_default_prefix/share/config.site
2442 ac_site_file2=$ac_default_prefix/etc/config.site
2443fi
2444for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2445do
2446 test "x$ac_site_file" = xNONE && continue
2447 if test -r "$ac_site_file"; then
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2449$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2450 sed 's/^/| /' "$ac_site_file" >&5
2451 . "$ac_site_file"
2452 fi
2453done
2454
2455if test -r "$cache_file"; then
2456 # Some versions of bash will fail to source /dev/null (special
2457 # files actually), so we avoid doing that.
2458 if test -f "$cache_file"; then
2459 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2460$as_echo "$as_me: loading cache $cache_file" >&6;}
2461 case $cache_file in
2462 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2463 *) . "./$cache_file";;
2464 esac
2465 fi
2466else
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2468$as_echo "$as_me: creating cache $cache_file" >&6;}
2469 >$cache_file
2470fi
2471
2472# Check that the precious variables saved in the cache have kept the same
2473# value.
2474ac_cache_corrupted=false
2475for ac_var in $ac_precious_vars; do
2476 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2477 eval ac_new_set=\$ac_env_${ac_var}_set
2478 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2479 eval ac_new_val=\$ac_env_${ac_var}_value
2480 case $ac_old_set,$ac_new_set in
2481 set,)
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2483$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2484 ac_cache_corrupted=: ;;
2485 ,set)
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2487$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2488 ac_cache_corrupted=: ;;
2489 ,);;
2490 *)
2491 if test "x$ac_old_val" != "x$ac_new_val"; then
2492 # differences in whitespace do not lead to failure.
2493 ac_old_val_w=`echo x $ac_old_val`
2494 ac_new_val_w=`echo x $ac_new_val`
2495 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2496 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2497$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2498 ac_cache_corrupted=:
2499 else
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2501$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2502 eval $ac_var=\$ac_old_val
2503 fi
2504 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2505$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2507$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2508 fi;;
2509 esac
2510 # Pass precious variables to config.status.
2511 if test "$ac_new_set" = set; then
2512 case $ac_new_val in
2513 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2514 *) ac_arg=$ac_var=$ac_new_val ;;
2515 esac
2516 case " $ac_configure_args " in
2517 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2518 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2519 esac
5464f5a1
NN
2520 fi
2521done
81ecdfbb
RW
2522if $ac_cache_corrupted; then
2523 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2524$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2526$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2527 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2528fi
2529## -------------------- ##
2530## Main body of script. ##
2531## -------------------- ##
2532
2533ac_ext=c
2534ac_cpp='$CPP $CPPFLAGS'
2535ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2536ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2537ac_compiler_gnu=$ac_cv_c_compiler_gnu
2538
2539
2540
2541
2542
2543
2544
2545ac_aux_dir=
2546for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2547 for ac_t in install-sh install.sh shtool; do
2548 if test -f "$ac_dir/$ac_t"; then
2549 ac_aux_dir=$ac_dir
2550 ac_install_sh="$ac_aux_dir/$ac_t -c"
2551 break 2
2552 fi
2553 done
5464f5a1 2554done
81ecdfbb
RW
2555if test -z "$ac_aux_dir"; then
2556 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2557fi
2558
2559# These three variables are undocumented and unsupported,
2560# and are intended to be withdrawn in a future Autoconf release.
2561# They can cause serious problems if a builder's source tree is in a directory
2562# whose full name contains unusual characters.
2563ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2564ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2565ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2566
2567
2568# Make sure we can run config.sub.
2569$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2570 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2571
2572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2573$as_echo_n "checking build system type... " >&6; }
2574if test "${ac_cv_build+set}" = set; then :
2575 $as_echo_n "(cached) " >&6
2576else
2577 ac_build_alias=$build_alias
2578test "x$ac_build_alias" = x &&
2579 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2580test "x$ac_build_alias" = x &&
2581 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2582ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2583 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2584
2585fi
2586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2587$as_echo "$ac_cv_build" >&6; }
2588case $ac_cv_build in
2589*-*-*) ;;
2590*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2591esac
2592build=$ac_cv_build
2593ac_save_IFS=$IFS; IFS='-'
2594set x $ac_cv_build
2595shift
2596build_cpu=$1
2597build_vendor=$2
2598shift; shift
2599# Remember, the first character of IFS is used to create $*,
2600# except with old shells:
2601build_os=$*
2602IFS=$ac_save_IFS
2603case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5464f5a1 2604
81ecdfbb
RW
2605
2606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2607$as_echo_n "checking host system type... " >&6; }
2608if test "${ac_cv_host+set}" = set; then :
2609 $as_echo_n "(cached) " >&6
2610else
2611 if test "x$host_alias" = x; then
2612 ac_cv_host=$ac_cv_build
2613else
2614 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2615 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5464f5a1 2616fi
81ecdfbb 2617
5464f5a1 2618fi
81ecdfbb
RW
2619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2620$as_echo "$ac_cv_host" >&6; }
2621case $ac_cv_host in
2622*-*-*) ;;
2623*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2624esac
2625host=$ac_cv_host
2626ac_save_IFS=$IFS; IFS='-'
2627set x $ac_cv_host
2628shift
2629host_cpu=$1
2630host_vendor=$2
2631shift; shift
2632# Remember, the first character of IFS is used to create $*,
2633# except with old shells:
2634host_os=$*
2635IFS=$ac_save_IFS
2636case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2637
2638
2639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2640$as_echo_n "checking target system type... " >&6; }
2641if test "${ac_cv_target+set}" = set; then :
2642 $as_echo_n "(cached) " >&6
5464f5a1 2643else
81ecdfbb
RW
2644 if test "x$target_alias" = x; then
2645 ac_cv_target=$ac_cv_host
2646else
2647 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2648 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
5464f5a1
NN
2649fi
2650
2651fi
81ecdfbb
RW
2652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2653$as_echo "$ac_cv_target" >&6; }
2654case $ac_cv_target in
2655*-*-*) ;;
2656*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2657esac
2658target=$ac_cv_target
2659ac_save_IFS=$IFS; IFS='-'
2660set x $ac_cv_target
2661shift
2662target_cpu=$1
2663target_vendor=$2
2664shift; shift
2665# Remember, the first character of IFS is used to create $*,
2666# except with old shells:
2667target_os=$*
2668IFS=$ac_save_IFS
2669case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2670
2671
2672# The aliases save the names the user supplied, while $host etc.
2673# will get canonicalized.
2674test -n "$target_alias" &&
2675 test "$program_prefix$program_suffix$program_transform_name" = \
2676 NONENONEs,x,x, &&
2677 program_prefix=${target_alias}-
2678ac_ext=c
2679ac_cpp='$CPP $CPPFLAGS'
2680ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2681ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2682ac_compiler_gnu=$ac_cv_c_compiler_gnu
2683if test -n "$ac_tool_prefix"; then
2684 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2685set dummy ${ac_tool_prefix}gcc; ac_word=$2
2686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2687$as_echo_n "checking for $ac_word... " >&6; }
2688if test "${ac_cv_prog_CC+set}" = set; then :
2689 $as_echo_n "(cached) " >&6
5464f5a1 2690else
81ecdfbb
RW
2691 if test -n "$CC"; then
2692 ac_cv_prog_CC="$CC" # Let the user override the test.
5464f5a1
NN
2693else
2694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2695for as_dir in $PATH
2696do
2697 IFS=$as_save_IFS
2698 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2699 for ac_exec_ext in '' $ac_executable_extensions; do
2700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2701 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5464f5a1
NN
2703 break 2
2704 fi
2705done
81ecdfbb
RW
2706 done
2707IFS=$as_save_IFS
5464f5a1
NN
2708
2709fi
2710fi
81ecdfbb
RW
2711CC=$ac_cv_prog_CC
2712if test -n "$CC"; then
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2714$as_echo "$CC" >&6; }
5464f5a1 2715else
81ecdfbb
RW
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2717$as_echo "no" >&6; }
5464f5a1
NN
2718fi
2719
81ecdfbb
RW
2720
2721fi
2722if test -z "$ac_cv_prog_CC"; then
2723 ac_ct_CC=$CC
2724 # Extract the first word of "gcc", so it can be a program name with args.
2725set dummy gcc; ac_word=$2
2726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2727$as_echo_n "checking for $ac_word... " >&6; }
2728if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2729 $as_echo_n "(cached) " >&6
2730else
2731 if test -n "$ac_ct_CC"; then
2732 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2733else
2734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2735for as_dir in $PATH
2736do
2737 IFS=$as_save_IFS
2738 test -z "$as_dir" && as_dir=.
2739 for ac_exec_ext in '' $ac_executable_extensions; do
2740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2741 ac_cv_prog_ac_ct_CC="gcc"
2742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2743 break 2
2744 fi
2745done
2746 done
2747IFS=$as_save_IFS
2748
2749fi
2750fi
2751ac_ct_CC=$ac_cv_prog_ac_ct_CC
2752if test -n "$ac_ct_CC"; then
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2754$as_echo "$ac_ct_CC" >&6; }
2755else
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2757$as_echo "no" >&6; }
2758fi
2759
2760 if test "x$ac_ct_CC" = x; then
2761 CC=""
2762 else
2763 case $cross_compiling:$ac_tool_warned in
2764yes:)
2765{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2766$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2767ac_tool_warned=yes ;;
2768esac
2769 CC=$ac_ct_CC
2770 fi
2771else
2772 CC="$ac_cv_prog_CC"
2773fi
2774
2775if test -z "$CC"; then
2776 if test -n "$ac_tool_prefix"; then
2777 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2778set dummy ${ac_tool_prefix}cc; ac_word=$2
2779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2780$as_echo_n "checking for $ac_word... " >&6; }
2781if test "${ac_cv_prog_CC+set}" = set; then :
2782 $as_echo_n "(cached) " >&6
2783else
2784 if test -n "$CC"; then
2785 ac_cv_prog_CC="$CC" # Let the user override the test.
2786else
2787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2788for as_dir in $PATH
2789do
2790 IFS=$as_save_IFS
2791 test -z "$as_dir" && as_dir=.
2792 for ac_exec_ext in '' $ac_executable_extensions; do
2793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2794 ac_cv_prog_CC="${ac_tool_prefix}cc"
2795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2796 break 2
2797 fi
2798done
2799 done
2800IFS=$as_save_IFS
2801
5464f5a1 2802fi
81ecdfbb
RW
2803fi
2804CC=$ac_cv_prog_CC
2805if test -n "$CC"; then
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2807$as_echo "$CC" >&6; }
2808else
2809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2810$as_echo "no" >&6; }
2811fi
2812
5464f5a1 2813
81ecdfbb 2814 fi
5464f5a1
NN
2815fi
2816if test -z "$CC"; then
2817 # Extract the first word of "cc", so it can be a program name with args.
2818set dummy cc; ac_word=$2
81ecdfbb
RW
2819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2820$as_echo_n "checking for $ac_word... " >&6; }
2821if test "${ac_cv_prog_CC+set}" = set; then :
2822 $as_echo_n "(cached) " >&6
5464f5a1
NN
2823else
2824 if test -n "$CC"; then
2825 ac_cv_prog_CC="$CC" # Let the user override the test.
2826else
2827 ac_prog_rejected=no
2828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2829for as_dir in $PATH
2830do
2831 IFS=$as_save_IFS
2832 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2833 for ac_exec_ext in '' $ac_executable_extensions; do
2834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5464f5a1
NN
2835 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2836 ac_prog_rejected=yes
2837 continue
2838 fi
2839 ac_cv_prog_CC="cc"
81ecdfbb 2840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5464f5a1
NN
2841 break 2
2842 fi
2843done
81ecdfbb
RW
2844 done
2845IFS=$as_save_IFS
5464f5a1
NN
2846
2847if test $ac_prog_rejected = yes; then
2848 # We found a bogon in the path, so make sure we never use it.
2849 set dummy $ac_cv_prog_CC
2850 shift
2851 if test $# != 0; then
2852 # We chose a different compiler from the bogus one.
2853 # However, it has the same basename, so the bogon will be chosen
2854 # first if we set CC to just the basename; use the full file name.
2855 shift
2856 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2857 fi
2858fi
2859fi
2860fi
2861CC=$ac_cv_prog_CC
2862if test -n "$CC"; then
81ecdfbb
RW
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2864$as_echo "$CC" >&6; }
5464f5a1 2865else
81ecdfbb
RW
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2867$as_echo "no" >&6; }
5464f5a1
NN
2868fi
2869
81ecdfbb 2870
5464f5a1
NN
2871fi
2872if test -z "$CC"; then
2873 if test -n "$ac_tool_prefix"; then
81ecdfbb 2874 for ac_prog in cl.exe
5464f5a1
NN
2875 do
2876 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2877set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
2878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2879$as_echo_n "checking for $ac_word... " >&6; }
2880if test "${ac_cv_prog_CC+set}" = set; then :
2881 $as_echo_n "(cached) " >&6
5464f5a1
NN
2882else
2883 if test -n "$CC"; then
2884 ac_cv_prog_CC="$CC" # Let the user override the test.
2885else
2886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2887for as_dir in $PATH
2888do
2889 IFS=$as_save_IFS
2890 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2891 for ac_exec_ext in '' $ac_executable_extensions; do
2892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5464f5a1 2893 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 2894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5464f5a1
NN
2895 break 2
2896 fi
2897done
81ecdfbb
RW
2898 done
2899IFS=$as_save_IFS
5464f5a1
NN
2900
2901fi
2902fi
2903CC=$ac_cv_prog_CC
2904if test -n "$CC"; then
81ecdfbb
RW
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2906$as_echo "$CC" >&6; }
5464f5a1 2907else
81ecdfbb
RW
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2909$as_echo "no" >&6; }
5464f5a1
NN
2910fi
2911
81ecdfbb 2912
5464f5a1
NN
2913 test -n "$CC" && break
2914 done
2915fi
2916if test -z "$CC"; then
2917 ac_ct_CC=$CC
81ecdfbb 2918 for ac_prog in cl.exe
5464f5a1
NN
2919do
2920 # Extract the first word of "$ac_prog", so it can be a program name with args.
2921set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
2922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2923$as_echo_n "checking for $ac_word... " >&6; }
2924if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2925 $as_echo_n "(cached) " >&6
5464f5a1
NN
2926else
2927 if test -n "$ac_ct_CC"; then
2928 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2929else
2930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2931for as_dir in $PATH
2932do
2933 IFS=$as_save_IFS
2934 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2935 for ac_exec_ext in '' $ac_executable_extensions; do
2936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5464f5a1 2937 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 2938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5464f5a1
NN
2939 break 2
2940 fi
2941done
81ecdfbb
RW
2942 done
2943IFS=$as_save_IFS
5464f5a1
NN
2944
2945fi
2946fi
2947ac_ct_CC=$ac_cv_prog_ac_ct_CC
2948if test -n "$ac_ct_CC"; then
81ecdfbb
RW
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2950$as_echo "$ac_ct_CC" >&6; }
5464f5a1 2951else
81ecdfbb
RW
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2953$as_echo "no" >&6; }
5464f5a1
NN
2954fi
2955
81ecdfbb 2956
5464f5a1
NN
2957 test -n "$ac_ct_CC" && break
2958done
2959
81ecdfbb
RW
2960 if test "x$ac_ct_CC" = x; then
2961 CC=""
2962 else
2963 case $cross_compiling:$ac_tool_warned in
2964yes:)
2965{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2966$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2967ac_tool_warned=yes ;;
2968esac
2969 CC=$ac_ct_CC
2970 fi
5464f5a1
NN
2971fi
2972
2973fi
2974
2975
81ecdfbb
RW
2976test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2977$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2978as_fn_error "no acceptable C compiler found in \$PATH
2979See \`config.log' for more details." "$LINENO" 5; }
5464f5a1
NN
2980
2981# Provide some information about the compiler.
81ecdfbb
RW
2982$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2983set X $ac_compile
2984ac_compiler=$2
2985for ac_option in --version -v -V -qversion; do
2986 { { ac_try="$ac_compiler $ac_option >&5"
2987case "(($ac_try" in
2988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2989 *) ac_try_echo=$ac_try;;
2990esac
2991eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2992$as_echo "$ac_try_echo"; } >&5
2993 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5464f5a1 2994 ac_status=$?
81ecdfbb
RW
2995 if test -s conftest.err; then
2996 sed '10a\
2997... rest of stderr output deleted ...
2998 10q' conftest.err >conftest.er1
2999 cat conftest.er1 >&5
3000 rm -f conftest.er1 conftest.err
3001 fi
3002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3003 test $ac_status = 0; }
3004done
5464f5a1 3005
81ecdfbb 3006cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5464f5a1
NN
3007/* end confdefs.h. */
3008
3009int
3010main ()
3011{
3012
3013 ;
3014 return 0;
3015}
3016_ACEOF
3017ac_clean_files_save=$ac_clean_files
81ecdfbb 3018ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
5464f5a1
NN
3019# Try to create an executable without -o first, disregard a.out.
3020# It will help us diagnose broken compilers, and finding out an intuition
3021# of exeext.
81ecdfbb
RW
3022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3023$as_echo_n "checking for C compiler default output file name... " >&6; }
3024ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3025
3026# The possible output files:
3027ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3028
3029ac_rmfiles=
3030for ac_file in $ac_files
3031do
3032 case $ac_file in
3033 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3034 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3035 esac
3036done
3037rm -f $ac_rmfiles
3038
3039if { { ac_try="$ac_link_default"
3040case "(($ac_try" in
3041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3042 *) ac_try_echo=$ac_try;;
3043esac
3044eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3045$as_echo "$ac_try_echo"; } >&5
3046 (eval "$ac_link_default") 2>&5
3047 ac_status=$?
3048 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3049 test $ac_status = 0; }; then :
3050 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3051# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3052# in a Makefile. We should not override ac_cv_exeext if it was cached,
3053# so that the user can short-circuit this test for compilers unknown to
3054# Autoconf.
3055for ac_file in $ac_files ''
5464f5a1
NN
3056do
3057 test -f "$ac_file" || continue
3058 case $ac_file in
81ecdfbb 3059 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5464f5a1
NN
3060 ;;
3061 [ab].out )
3062 # We found the default executable, but exeext='' is most
3063 # certainly right.
3064 break;;
3065 *.* )
81ecdfbb
RW
3066 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3067 then :; else
3068 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3069 fi
3070 # We set ac_cv_exeext here because the later test for it is not
3071 # safe: cross compilers may not add the suffix if given an `-o'
3072 # argument, so we may need to know it at that point already.
3073 # Even if this section looks crufty: it has the advantage of
3074 # actually working.
5464f5a1
NN
3075 break;;
3076 * )
3077 break;;
3078 esac
3079done
81ecdfbb
RW
3080test "$ac_cv_exeext" = no && ac_cv_exeext=
3081
5464f5a1 3082else
81ecdfbb
RW
3083 ac_file=''
3084fi
3085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3086$as_echo "$ac_file" >&6; }
3087if test -z "$ac_file"; then :
3088 $as_echo "$as_me: failed program was:" >&5
5464f5a1
NN
3089sed 's/^/| /' conftest.$ac_ext >&5
3090
81ecdfbb
RW
3091{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3092$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3093{ as_fn_set_status 77
3094as_fn_error "C compiler cannot create executables
3095See \`config.log' for more details." "$LINENO" 5; }; }
5464f5a1 3096fi
5464f5a1 3097ac_exeext=$ac_cv_exeext
5464f5a1 3098
81ecdfbb 3099# Check that the compiler produces executables we can run. If not, either
5464f5a1 3100# the compiler is broken, or we cross compile.
81ecdfbb
RW
3101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3102$as_echo_n "checking whether the C compiler works... " >&6; }
5464f5a1
NN
3103# If not cross compiling, check that we can run a simple program.
3104if test "$cross_compiling" != yes; then
3105 if { ac_try='./$ac_file'
81ecdfbb
RW
3106 { { case "(($ac_try" in
3107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3108 *) ac_try_echo=$ac_try;;
3109esac
3110eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3111$as_echo "$ac_try_echo"; } >&5
3112 (eval "$ac_try") 2>&5
5464f5a1 3113 ac_status=$?
81ecdfbb
RW
3114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3115 test $ac_status = 0; }; }; then
5464f5a1
NN
3116 cross_compiling=no
3117 else
3118 if test "$cross_compiling" = maybe; then
3119 cross_compiling=yes
3120 else
81ecdfbb
RW
3121 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3122$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3123as_fn_error "cannot run C compiled programs.
5464f5a1 3124If you meant to cross compile, use \`--host'.
81ecdfbb 3125See \`config.log' for more details." "$LINENO" 5; }
5464f5a1
NN
3126 fi
3127 fi
3128fi
81ecdfbb
RW
3129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3130$as_echo "yes" >&6; }
5464f5a1 3131
81ecdfbb 3132rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
5464f5a1 3133ac_clean_files=$ac_clean_files_save
81ecdfbb 3134# Check that the compiler produces executables we can run. If not, either
5464f5a1 3135# the compiler is broken, or we cross compile.
81ecdfbb
RW
3136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3137$as_echo_n "checking whether we are cross compiling... " >&6; }
3138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3139$as_echo "$cross_compiling" >&6; }
3140
3141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3142$as_echo_n "checking for suffix of executables... " >&6; }
3143if { { ac_try="$ac_link"
3144case "(($ac_try" in
3145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3146 *) ac_try_echo=$ac_try;;
3147esac
3148eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3149$as_echo "$ac_try_echo"; } >&5
3150 (eval "$ac_link") 2>&5
5464f5a1 3151 ac_status=$?
81ecdfbb
RW
3152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3153 test $ac_status = 0; }; then :
5464f5a1
NN
3154 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3155# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3156# work properly (i.e., refer to `conftest.exe'), while it won't with
3157# `rm'.
3158for ac_file in conftest.exe conftest conftest.*; do
3159 test -f "$ac_file" || continue
3160 case $ac_file in
81ecdfbb 3161 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5464f5a1 3162 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5464f5a1
NN
3163 break;;
3164 * ) break;;
3165 esac
3166done
3167else
81ecdfbb
RW
3168 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3169$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3170as_fn_error "cannot compute suffix of executables: cannot compile and link
3171See \`config.log' for more details." "$LINENO" 5; }
5464f5a1 3172fi
5464f5a1 3173rm -f conftest$ac_cv_exeext
81ecdfbb
RW
3174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3175$as_echo "$ac_cv_exeext" >&6; }
5464f5a1
NN
3176
3177rm -f conftest.$ac_ext
3178EXEEXT=$ac_cv_exeext
3179ac_exeext=$EXEEXT
81ecdfbb
RW
3180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3181$as_echo_n "checking for suffix of object files... " >&6; }
3182if test "${ac_cv_objext+set}" = set; then :
3183 $as_echo_n "(cached) " >&6
5464f5a1 3184else
81ecdfbb 3185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5464f5a1
NN
3186/* end confdefs.h. */
3187
3188int
3189main ()
3190{
3191
3192 ;
3193 return 0;
3194}
3195_ACEOF
3196rm -f conftest.o conftest.obj
81ecdfbb
RW
3197if { { ac_try="$ac_compile"
3198case "(($ac_try" in
3199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3200 *) ac_try_echo=$ac_try;;
3201esac
3202eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3203$as_echo "$ac_try_echo"; } >&5
3204 (eval "$ac_compile") 2>&5
3205 ac_status=$?
3206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3207 test $ac_status = 0; }; then :
3208 for ac_file in conftest.o conftest.obj conftest.*; do
3209 test -f "$ac_file" || continue;
5464f5a1 3210 case $ac_file in
81ecdfbb 3211 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5464f5a1
NN
3212 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3213 break;;
3214 esac
3215done
3216else
81ecdfbb 3217 $as_echo "$as_me: failed program was:" >&5
5464f5a1
NN
3218sed 's/^/| /' conftest.$ac_ext >&5
3219
81ecdfbb
RW
3220{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3221$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3222as_fn_error "cannot compute suffix of object files: cannot compile
3223See \`config.log' for more details." "$LINENO" 5; }
5464f5a1 3224fi
5464f5a1
NN
3225rm -f conftest.$ac_cv_objext conftest.$ac_ext
3226fi
81ecdfbb
RW
3227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3228$as_echo "$ac_cv_objext" >&6; }
5464f5a1
NN
3229OBJEXT=$ac_cv_objext
3230ac_objext=$OBJEXT
81ecdfbb
RW
3231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3232$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3233if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3234 $as_echo_n "(cached) " >&6
5464f5a1 3235else
81ecdfbb 3236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5464f5a1
NN
3237/* end confdefs.h. */
3238
3239int
3240main ()
3241{
3242#ifndef __GNUC__
3243 choke me
3244#endif
3245
3246 ;
3247 return 0;
3248}
3249_ACEOF
81ecdfbb 3250if ac_fn_c_try_compile "$LINENO"; then :
5464f5a1
NN
3251 ac_compiler_gnu=yes
3252else
81ecdfbb 3253 ac_compiler_gnu=no
5464f5a1 3254fi
81ecdfbb 3255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5464f5a1
NN
3256ac_cv_c_compiler_gnu=$ac_compiler_gnu
3257
3258fi
81ecdfbb
RW
3259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3260$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3261if test $ac_compiler_gnu = yes; then
3262 GCC=yes
3263else
3264 GCC=
3265fi
5464f5a1
NN
3266ac_test_CFLAGS=${CFLAGS+set}
3267ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
3268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3269$as_echo_n "checking whether $CC accepts -g... " >&6; }
3270if test "${ac_cv_prog_cc_g+set}" = set; then :
3271 $as_echo_n "(cached) " >&6
3272else
3273 ac_save_c_werror_flag=$ac_c_werror_flag
3274 ac_c_werror_flag=yes
3275 ac_cv_prog_cc_g=no
3276 CFLAGS="-g"
3277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5464f5a1
NN
3278/* end confdefs.h. */
3279
3280int
3281main ()
3282{
3283
3284 ;
3285 return 0;
3286}
3287_ACEOF
81ecdfbb 3288if ac_fn_c_try_compile "$LINENO"; then :
5464f5a1
NN
3289 ac_cv_prog_cc_g=yes
3290else
81ecdfbb
RW
3291 CFLAGS=""
3292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3293/* end confdefs.h. */
5464f5a1 3294
81ecdfbb
RW
3295int
3296main ()
3297{
3298
3299 ;
3300 return 0;
3301}
3302_ACEOF
3303if ac_fn_c_try_compile "$LINENO"; then :
3304
3305else
3306 ac_c_werror_flag=$ac_save_c_werror_flag
3307 CFLAGS="-g"
3308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3309/* end confdefs.h. */
3310
3311int
3312main ()
3313{
3314
3315 ;
3316 return 0;
3317}
3318_ACEOF
3319if ac_fn_c_try_compile "$LINENO"; then :
3320 ac_cv_prog_cc_g=yes
3321fi
3322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5464f5a1 3323fi
81ecdfbb 3324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5464f5a1 3325fi
81ecdfbb
RW
3326rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3327 ac_c_werror_flag=$ac_save_c_werror_flag
3328fi
3329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3330$as_echo "$ac_cv_prog_cc_g" >&6; }
5464f5a1
NN
3331if test "$ac_test_CFLAGS" = set; then
3332 CFLAGS=$ac_save_CFLAGS
3333elif test $ac_cv_prog_cc_g = yes; then
3334 if test "$GCC" = yes; then
3335 CFLAGS="-g -O2"
3336 else
3337 CFLAGS="-g"
3338 fi
3339else
3340 if test "$GCC" = yes; then
3341 CFLAGS="-O2"
3342 else
3343 CFLAGS=
3344 fi
3345fi
81ecdfbb
RW
3346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3347$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3348if test "${ac_cv_prog_cc_c89+set}" = set; then :
3349 $as_echo_n "(cached) " >&6
5464f5a1 3350else
81ecdfbb 3351 ac_cv_prog_cc_c89=no
5464f5a1 3352ac_save_CC=$CC
81ecdfbb 3353cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5464f5a1
NN
3354/* end confdefs.h. */
3355#include <stdarg.h>
3356#include <stdio.h>
3357#include <sys/types.h>
3358#include <sys/stat.h>
3359/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3360struct buf { int x; };
3361FILE * (*rcsopen) (struct buf *, struct stat *, int);
3362static char *e (p, i)
3363 char **p;
3364 int i;
3365{
3366 return p[i];
3367}
3368static char *f (char * (*g) (char **, int), char **p, ...)
3369{
3370 char *s;
3371 va_list v;
3372 va_start (v,p);
3373 s = g (p, va_arg (v,int));
3374 va_end (v);
3375 return s;
3376}
3377
3378/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3379 function prototypes and stuff, but not '\xHH' hex character constants.
3380 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 3381 as 'x'. The following induces an error, until -std is added to get
5464f5a1
NN
3382 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3383 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 3384 that's true only with -std. */
5464f5a1
NN
3385int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3386
81ecdfbb
RW
3387/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3388 inside strings and character constants. */
3389#define FOO(x) 'x'
3390int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3391
5464f5a1
NN
3392int test (int i, double x);
3393struct s1 {int (*f) (int a);};
3394struct s2 {int (*f) (double a);};
3395int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3396int argc;
3397char **argv;
3398int
3399main ()
3400{
3401return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3402 ;
3403 return 0;
3404}
3405_ACEOF
81ecdfbb
RW
3406for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3407 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5464f5a1
NN
3408do
3409 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
3410 if ac_fn_c_try_compile "$LINENO"; then :
3411 ac_cv_prog_cc_c89=$ac_arg
5464f5a1 3412fi
81ecdfbb
RW
3413rm -f core conftest.err conftest.$ac_objext
3414 test "x$ac_cv_prog_cc_c89" != "xno" && break
5464f5a1 3415done
81ecdfbb 3416rm -f conftest.$ac_ext
5464f5a1
NN
3417CC=$ac_save_CC
3418
3419fi
81ecdfbb
RW
3420# AC_CACHE_VAL
3421case "x$ac_cv_prog_cc_c89" in
3422 x)
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3424$as_echo "none needed" >&6; } ;;
3425 xno)
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3427$as_echo "unsupported" >&6; } ;;
5464f5a1 3428 *)
81ecdfbb
RW
3429 CC="$CC $ac_cv_prog_cc_c89"
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3431$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5464f5a1 3432esac
81ecdfbb 3433if test "x$ac_cv_prog_cc_c89" != xno; then :
5464f5a1
NN
3434
3435fi
5464f5a1 3436
5464f5a1
NN
3437ac_ext=c
3438ac_cpp='$CPP $CPPFLAGS'
3439ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3440ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3441ac_compiler_gnu=$ac_cv_c_compiler_gnu
3442
3443
81ecdfbb
RW
3444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3445$as_echo_n "checking for library containing strerror... " >&6; }
3446if test "${ac_cv_search_strerror+set}" = set; then :
3447 $as_echo_n "(cached) " >&6
5464f5a1 3448else
f5385ebf 3449 ac_func_search_save_LIBS=$LIBS
81ecdfbb 3450cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5464f5a1
NN
3451/* end confdefs.h. */
3452
81ecdfbb
RW
3453/* Override any GCC internal prototype to avoid an error.
3454 Use char because int might match the return type of a GCC
3455 builtin and then its argument prototype would still apply. */
5464f5a1
NN
3456#ifdef __cplusplus
3457extern "C"
3458#endif
5464f5a1
NN
3459char strerror ();
3460int
3461main ()
3462{
81ecdfbb 3463return strerror ();
5464f5a1
NN
3464 ;
3465 return 0;
3466}
3467_ACEOF
81ecdfbb
RW
3468for ac_lib in '' cposix; do
3469 if test -z "$ac_lib"; then
3470 ac_res="none required"
3471 else
3472 ac_res=-l$ac_lib
f5385ebf 3473 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
81ecdfbb
RW
3474 fi
3475 if ac_fn_c_try_link "$LINENO"; then :
3476 ac_cv_search_strerror=$ac_res
3477fi
3478rm -f core conftest.err conftest.$ac_objext \
3479 conftest$ac_exeext
3480 if test "${ac_cv_search_strerror+set}" = set; then :
3481 break
3482fi
3483done
3484if test "${ac_cv_search_strerror+set}" = set; then :
f5385ebf 3485
f5385ebf 3486else
81ecdfbb 3487 ac_cv_search_strerror=no
5464f5a1 3488fi
81ecdfbb 3489rm conftest.$ac_ext
f5385ebf
AM
3490LIBS=$ac_func_search_save_LIBS
3491fi
81ecdfbb
RW
3492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3493$as_echo "$ac_cv_search_strerror" >&6; }
3494ac_res=$ac_cv_search_strerror
3495if test "$ac_res" != no; then :
3496 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5464f5a1 3497
f5385ebf 3498fi
5464f5a1
NN
3499
3500
81ecdfbb
RW
3501am__api_version='1.11'
3502
5464f5a1
NN
3503# Find a good install program. We prefer a C program (faster),
3504# so one script is as good as another. But avoid the broken or
3505# incompatible versions:
3506# SysV /etc/install, /usr/sbin/install
3507# SunOS /usr/etc/install
3508# IRIX /sbin/install
3509# AIX /bin/install
3510# AmigaOS /C/install, which installs bootblocks on floppy discs
252b5132
RH
3511# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3512# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3513# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5464f5a1 3514# OS/2's system install, which has a completely different semantic
252b5132 3515# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 3516# Reject install programs that cannot install multiple files.
81ecdfbb
RW
3517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3518$as_echo_n "checking for a BSD-compatible install... " >&6; }
252b5132 3519if test -z "$INSTALL"; then
81ecdfbb
RW
3520if test "${ac_cv_path_install+set}" = set; then :
3521 $as_echo_n "(cached) " >&6
252b5132 3522else
5464f5a1
NN
3523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3524for as_dir in $PATH
3525do
3526 IFS=$as_save_IFS
3527 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3528 # Account for people who put trailing slashes in PATH elements.
3529case $as_dir/ in #((
3530 ./ | .// | /[cC]/* | \
5464f5a1 3531 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
81ecdfbb 3532 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5464f5a1
NN
3533 /usr/ucb/* ) ;;
3534 *)
3535 # OSF1 and SCO ODT 3.0 have their own names for install.
3536 # Don't use installbsd from OSF since it installs stuff as root
3537 # by default.
3538 for ac_prog in ginstall scoinst install; do
3539 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb 3540 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
252b5132 3541 if test $ac_prog = install &&
5464f5a1 3542 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
252b5132
RH
3543 # AIX install. It has an incompatible calling convention.
3544 :
5464f5a1
NN
3545 elif test $ac_prog = install &&
3546 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3547 # program-specific install script used by HP pwplus--don't use.
3548 :
252b5132 3549 else
58c85be7
RW
3550 rm -rf conftest.one conftest.two conftest.dir
3551 echo one > conftest.one
3552 echo two > conftest.two
3553 mkdir conftest.dir
3554 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3555 test -s conftest.one && test -s conftest.two &&
3556 test -s conftest.dir/conftest.one &&
3557 test -s conftest.dir/conftest.two
3558 then
3559 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3560 break 3
3561 fi
252b5132
RH
3562 fi
3563 fi
3564 done
5464f5a1
NN
3565 done
3566 ;;
3567esac
81ecdfbb
RW
3568
3569 done
3570IFS=$as_save_IFS
5464f5a1 3571
58c85be7 3572rm -rf conftest.one conftest.two conftest.dir
252b5132
RH
3573
3574fi
3575 if test "${ac_cv_path_install+set}" = set; then
5464f5a1 3576 INSTALL=$ac_cv_path_install
252b5132 3577 else
58c85be7
RW
3578 # As a last resort, use the slow shell script. Don't cache a
3579 # value for INSTALL within a source directory, because that will
252b5132 3580 # break other packages using the cache if that directory is
58c85be7 3581 # removed, or if the value is a relative name.
5464f5a1 3582 INSTALL=$ac_install_sh
252b5132
RH
3583 fi
3584fi
81ecdfbb
RW
3585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3586$as_echo "$INSTALL" >&6; }
252b5132
RH
3587
3588# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3589# It thinks the first close brace ends the variable substitution.
3590test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3591
5464f5a1 3592test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
3593
3594test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3595
81ecdfbb
RW
3596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3597$as_echo_n "checking whether build environment is sane... " >&6; }
252b5132
RH
3598# Just in case
3599sleep 1
f5385ebf 3600echo timestamp > conftest.file
81ecdfbb
RW
3601# Reject unsafe characters in $srcdir or the absolute working directory
3602# name. Accept space and tab only in the latter.
3603am_lf='
3604'
3605case `pwd` in
3606 *[\\\"\#\$\&\'\`$am_lf]*)
3607 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3608esac
3609case $srcdir in
3610 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3611 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3612esac
3613
252b5132
RH
3614# Do `set' in a subshell so we don't clobber the current shell's
3615# arguments. Must try -L first in case configure is actually a
3616# symlink; some systems play weird games with the mod time of symlinks
3617# (eg FreeBSD returns the mod time of the symlink's containing
3618# directory).
3619if (
81ecdfbb 3620 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
252b5132
RH
3621 if test "$*" = "X"; then
3622 # -L didn't work.
81ecdfbb 3623 set X `ls -t "$srcdir/configure" conftest.file`
252b5132 3624 fi
f5385ebf
AM
3625 rm -f conftest.file
3626 if test "$*" != "X $srcdir/configure conftest.file" \
3627 && test "$*" != "X conftest.file $srcdir/configure"; then
252b5132
RH
3628
3629 # If neither matched, then we have a broken ls. This can happen
3630 # if, for instance, CONFIG_SHELL is bash and it inherits a
3631 # broken ls alias from the environment. This has actually
3632 # happened. Such a system could not be considered "sane".
81ecdfbb
RW
3633 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3634alias in your environment" "$LINENO" 5
252b5132
RH
3635 fi
3636
f5385ebf 3637 test "$2" = conftest.file
252b5132
RH
3638 )
3639then
3640 # Ok.
3641 :
3642else
81ecdfbb
RW
3643 as_fn_error "newly created file is older than distributed files!
3644Check your system clock" "$LINENO" 5
252b5132 3645fi
81ecdfbb
RW
3646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3647$as_echo "yes" >&6; }
252b5132 3648test "$program_prefix" != NONE &&
81ecdfbb 3649 program_transform_name="s&^&$program_prefix&;$program_transform_name"
252b5132
RH
3650# Use a double $ so make ignores it.
3651test "$program_suffix" != NONE &&
81ecdfbb
RW
3652 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3653# Double any \ or $.
5464f5a1 3654# By default was `s,x,x', remove it if useless.
81ecdfbb
RW
3655ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3656program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
5464f5a1 3657
f5385ebf
AM
3658# expand $ac_aux_dir to an absolute path
3659am_aux_dir=`cd $ac_aux_dir && pwd`
3660
81ecdfbb
RW
3661if test x"${MISSING+set}" != xset; then
3662 case $am_aux_dir in
3663 *\ * | *\ *)
3664 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3665 *)
3666 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3667 esac
3668fi
f5385ebf
AM
3669# Use eval to expand $SHELL
3670if eval "$MISSING --run true"; then
3671 am_missing_run="$MISSING --run "
3672else
3673 am_missing_run=
81ecdfbb
RW
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3675$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3676fi
3677
3678if test x"${install_sh}" != xset; then
3679 case $am_aux_dir in
3680 *\ * | *\ *)
3681 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3682 *)
3683 install_sh="\${SHELL} $am_aux_dir/install-sh"
3684 esac
3685fi
3686
3687# Installed binaries are usually stripped using `strip' when the user
3688# run `make install-strip'. However `strip' might not be the right
3689# tool to use in cross-compilation environments, therefore Automake
3690# will honor the `STRIP' environment variable to overrule this program.
3691if test "$cross_compiling" != no; then
3692 if test -n "$ac_tool_prefix"; then
3693 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3694set dummy ${ac_tool_prefix}strip; ac_word=$2
3695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3696$as_echo_n "checking for $ac_word... " >&6; }
3697if test "${ac_cv_prog_STRIP+set}" = set; then :
3698 $as_echo_n "(cached) " >&6
3699else
3700 if test -n "$STRIP"; then
3701 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3702else
3703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3704for as_dir in $PATH
3705do
3706 IFS=$as_save_IFS
3707 test -z "$as_dir" && as_dir=.
3708 for ac_exec_ext in '' $ac_executable_extensions; do
3709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3710 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3712 break 2
3713 fi
3714done
3715 done
3716IFS=$as_save_IFS
3717
3718fi
3719fi
3720STRIP=$ac_cv_prog_STRIP
3721if test -n "$STRIP"; then
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3723$as_echo "$STRIP" >&6; }
3724else
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3726$as_echo "no" >&6; }
3727fi
3728
3729
3730fi
3731if test -z "$ac_cv_prog_STRIP"; then
3732 ac_ct_STRIP=$STRIP
3733 # Extract the first word of "strip", so it can be a program name with args.
3734set dummy strip; ac_word=$2
3735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3736$as_echo_n "checking for $ac_word... " >&6; }
3737if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3738 $as_echo_n "(cached) " >&6
3739else
3740 if test -n "$ac_ct_STRIP"; then
3741 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3742else
3743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3744for as_dir in $PATH
3745do
3746 IFS=$as_save_IFS
3747 test -z "$as_dir" && as_dir=.
3748 for ac_exec_ext in '' $ac_executable_extensions; do
3749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3750 ac_cv_prog_ac_ct_STRIP="strip"
3751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3752 break 2
3753 fi
3754done
3755 done
3756IFS=$as_save_IFS
3757
3758fi
3759fi
3760ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3761if test -n "$ac_ct_STRIP"; then
3762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3763$as_echo "$ac_ct_STRIP" >&6; }
3764else
3765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3766$as_echo "no" >&6; }
3767fi
3768
3769 if test "x$ac_ct_STRIP" = x; then
3770 STRIP=":"
3771 else
3772 case $cross_compiling:$ac_tool_warned in
3773yes:)
3774{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3775$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3776ac_tool_warned=yes ;;
3777esac
3778 STRIP=$ac_ct_STRIP
3779 fi
3780else
3781 STRIP="$ac_cv_prog_STRIP"
3782fi
3783
3784fi
3785INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3786
3787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3788$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3789if test -z "$MKDIR_P"; then
3790 if test "${ac_cv_path_mkdir+set}" = set; then :
3791 $as_echo_n "(cached) " >&6
3792else
3793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3794for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3795do
3796 IFS=$as_save_IFS
3797 test -z "$as_dir" && as_dir=.
3798 for ac_prog in mkdir gmkdir; do
3799 for ac_exec_ext in '' $ac_executable_extensions; do
3800 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3801 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3802 'mkdir (GNU coreutils) '* | \
3803 'mkdir (coreutils) '* | \
3804 'mkdir (fileutils) '4.1*)
3805 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3806 break 3;;
3807 esac
3808 done
3809 done
f5385ebf 3810 done
81ecdfbb
RW
3811IFS=$as_save_IFS
3812
3813fi
3814
3815 if test "${ac_cv_path_mkdir+set}" = set; then
3816 MKDIR_P="$ac_cv_path_mkdir -p"
f5385ebf 3817 else
81ecdfbb
RW
3818 # As a last resort, use the slow shell script. Don't cache a
3819 # value for MKDIR_P within a source directory, because that will
3820 # break other packages using the cache if that directory is
3821 # removed, or if the value is a relative name.
3822 test -d ./--version && rmdir ./--version
3823 MKDIR_P="$ac_install_sh -d"
f5385ebf
AM
3824 fi
3825fi
81ecdfbb
RW
3826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3827$as_echo "$MKDIR_P" >&6; }
3828
3829mkdir_p="$MKDIR_P"
3830case $mkdir_p in
3831 [\\/$]* | ?:[\\/]*) ;;
3832 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3833esac
f5385ebf
AM
3834
3835for ac_prog in gawk mawk nawk awk
3836do
3837 # Extract the first word of "$ac_prog", so it can be a program name with args.
3838set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
3839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3840$as_echo_n "checking for $ac_word... " >&6; }
3841if test "${ac_cv_prog_AWK+set}" = set; then :
3842 $as_echo_n "(cached) " >&6
f5385ebf
AM
3843else
3844 if test -n "$AWK"; then
3845 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3846else
3847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3848for as_dir in $PATH
3849do
3850 IFS=$as_save_IFS
3851 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3852 for ac_exec_ext in '' $ac_executable_extensions; do
3853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
f5385ebf 3854 ac_cv_prog_AWK="$ac_prog"
81ecdfbb 3855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
f5385ebf
AM
3856 break 2
3857 fi
3858done
81ecdfbb
RW
3859 done
3860IFS=$as_save_IFS
f5385ebf
AM
3861
3862fi
3863fi
3864AWK=$ac_cv_prog_AWK
3865if test -n "$AWK"; then
81ecdfbb
RW
3866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3867$as_echo "$AWK" >&6; }
f5385ebf 3868else
81ecdfbb
RW
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3870$as_echo "no" >&6; }
f5385ebf
AM
3871fi
3872
81ecdfbb 3873
f5385ebf
AM
3874 test -n "$AWK" && break
3875done
3876
81ecdfbb
RW
3877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3878$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3879set x ${MAKE-make}
3880ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3881if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3882 $as_echo_n "(cached) " >&6
5464f5a1
NN
3883else
3884 cat >conftest.make <<\_ACEOF
81ecdfbb 3885SHELL = /bin/sh
252b5132 3886all:
81ecdfbb 3887 @echo '@@@%%%=$(MAKE)=@@@%%%'
5464f5a1 3888_ACEOF
252b5132 3889# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
81ecdfbb
RW
3890case `${MAKE-make} -f conftest.make 2>/dev/null` in
3891 *@@@%%%=?*=@@@%%%*)
3892 eval ac_cv_prog_make_${ac_make}_set=yes;;
3893 *)
3894 eval ac_cv_prog_make_${ac_make}_set=no;;
3895esac
5464f5a1 3896rm -f conftest.make
252b5132 3897fi
81ecdfbb
RW
3898if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3900$as_echo "yes" >&6; }
252b5132
RH
3901 SET_MAKE=
3902else
81ecdfbb
RW
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3904$as_echo "no" >&6; }
252b5132
RH
3905 SET_MAKE="MAKE=${MAKE-make}"
3906fi
3907
f5385ebf
AM
3908rm -rf .tst 2>/dev/null
3909mkdir .tst 2>/dev/null
3910if test -d .tst; then
3911 am__leading_dot=.
3912else
3913 am__leading_dot=_
3914fi
3915rmdir .tst 2>/dev/null
3916
3917DEPDIR="${am__leading_dot}deps"
3918
81ecdfbb 3919ac_config_commands="$ac_config_commands depfiles"
f5385ebf
AM
3920
3921
3922am_make=${MAKE-make}
3923cat > confinc << 'END'
3924am__doit:
81ecdfbb 3925 @echo this is the am__doit target
f5385ebf
AM
3926.PHONY: am__doit
3927END
3928# If we don't find an include directive, just comment out the code.
81ecdfbb
RW
3929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3930$as_echo_n "checking for style of include used by $am_make... " >&6; }
f5385ebf
AM
3931am__include="#"
3932am__quote=
3933_am_result=none
3934# First try GNU make style include.
3935echo "include confinc" > confmf
81ecdfbb
RW
3936# Ignore all kinds of additional output from `make'.
3937case `$am_make -s -f confmf 2> /dev/null` in #(
3938*the\ am__doit\ target*)
3939 am__include=include
3940 am__quote=
3941 _am_result=GNU
3942 ;;
3943esac
f5385ebf
AM
3944# Now try BSD make style include.
3945if test "$am__include" = "#"; then
3946 echo '.include "confinc"' > confmf
81ecdfbb
RW
3947 case `$am_make -s -f confmf 2> /dev/null` in #(
3948 *the\ am__doit\ target*)
3949 am__include=.include
3950 am__quote="\""
3951 _am_result=BSD
3952 ;;
3953 esac
f5385ebf
AM
3954fi
3955
3956
81ecdfbb
RW
3957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3958$as_echo "$_am_result" >&6; }
f5385ebf
AM
3959rm -f confinc confmf
3960
81ecdfbb
RW
3961# Check whether --enable-dependency-tracking was given.
3962if test "${enable_dependency_tracking+set}" = set; then :
3963 enableval=$enable_dependency_tracking;
3964fi
f5385ebf 3965
f5385ebf
AM
3966if test "x$enable_dependency_tracking" != xno; then
3967 am_depcomp="$ac_aux_dir/depcomp"
3968 AMDEPBACKSLASH='\'
6eb7d830 3969 am__nodep='_no'
f5385ebf 3970fi
81ecdfbb 3971 if test "x$enable_dependency_tracking" != xno; then
f5385ebf
AM
3972 AMDEP_TRUE=
3973 AMDEP_FALSE='#'
3974else
3975 AMDEP_TRUE='#'
3976 AMDEP_FALSE=
3977fi
6be7c12c 3978
252b5132 3979
81ecdfbb
RW
3980if test "`cd $srcdir && pwd`" != "`pwd`"; then
3981 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3982 # is not polluted with repeated "-I."
3983 am__isrc=' -I$(srcdir)'
3984 # test to see if srcdir already configured
3985 if test -f $srcdir/config.status; then
3986 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3987 fi
252b5132 3988fi
5464f5a1 3989
f5385ebf
AM
3990# test whether we have cygpath
3991if test -z "$CYGPATH_W"; then
3992 if (cygpath --version) >/dev/null 2>/dev/null; then
3993 CYGPATH_W='cygpath -w'
3994 else
3995 CYGPATH_W=echo
3996 fi
3997fi
3998
3999
4000# Define the identity of the package.
c4dd807e 4001 PACKAGE='bfd'
55e99962 4002 VERSION='2.30.52'
f5385ebf
AM
4003
4004
5464f5a1 4005cat >>confdefs.h <<_ACEOF
252b5132 4006#define PACKAGE "$PACKAGE"
5464f5a1 4007_ACEOF
252b5132 4008
5464f5a1
NN
4009
4010cat >>confdefs.h <<_ACEOF
252b5132 4011#define VERSION "$VERSION"
5464f5a1 4012_ACEOF
252b5132 4013
f5385ebf
AM
4014# Some tools Automake needs.
4015
4016ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4017
4018
4019AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4020
4021
4022AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4023
4024
4025AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4026
4027
4028MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
6be7c12c 4029
f5385ebf
AM
4030# We need awk for the "check" target. The system "awk" is bad on
4031# some platforms.
6eb7d830
AM
4032# Always define AMTAR for backward compatibility. Yes, it's still used
4033# in the wild :-( We should find a proper way to deprecate it ...
4034AMTAR='$${TAR-tar}'
f5385ebf 4035
6eb7d830 4036am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
f5385ebf 4037
252b5132 4038
f5385ebf
AM
4039
4040
4041depcc="$CC" am_compiler_list=
4042
81ecdfbb
RW
4043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4044$as_echo_n "checking dependency style of $depcc... " >&6; }
4045if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4046 $as_echo_n "(cached) " >&6
252b5132 4047else
f5385ebf
AM
4048 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4049 # We make a subdir and do the tests there. Otherwise we can end up
4050 # making bogus files that we don't know about and never remove. For
4051 # instance it was reported that on HP-UX the gcc test will end up
4052 # making a dummy file named `D' -- because `-MD' means `put the output
4053 # in D'.
6eb7d830 4054 rm -rf conftest.dir
f5385ebf
AM
4055 mkdir conftest.dir
4056 # Copy depcomp to subdir because otherwise we won't find it if we're
4057 # using a relative directory.
4058 cp "$am_depcomp" conftest.dir
4059 cd conftest.dir
4060 # We will build objects and dependencies in a subdirectory because
4061 # it helps to detect inapplicable dependency modes. For instance
4062 # both Tru64's cc and ICC support -MD to output dependencies as a
4063 # side effect of compilation, but ICC will put the dependencies in
4064 # the current directory while Tru64 will put them in the object
4065 # directory.
4066 mkdir sub
4067
4068 am_cv_CC_dependencies_compiler_type=none
4069 if test "$am_compiler_list" = ""; then
4070 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4071 fi
81ecdfbb
RW
4072 am__universal=false
4073 case " $depcc " in #(
4074 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4075 esac
4076
f5385ebf
AM
4077 for depmode in $am_compiler_list; do
4078 # Setup a source with many dependencies, because some compilers
4079 # like to wrap large dependency lists on column 80 (with \), and
4080 # we should not choose a depcomp mode which is confused by this.
4081 #
4082 # We need to recreate these files for each test, as the compiler may
4083 # overwrite some of them when testing with obscure command lines.
4084 # This happens at least with the AIX C compiler.
4085 : > sub/conftest.c
4086 for i in 1 2 3 4 5 6; do
4087 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4088 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4089 # Solaris 8's {/usr,}/bin/sh.
4090 touch sub/conftst$i.h
4091 done
4092 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4093
81ecdfbb
RW
4094 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4095 # mode. It turns out that the SunPro C++ compiler does not properly
4096 # handle `-M -o', and we need to detect this. Also, some Intel
4097 # versions had trouble with output in subdirs
4098 am__obj=sub/conftest.${OBJEXT-o}
4099 am__minus_obj="-o $am__obj"
f5385ebf 4100 case $depmode in
81ecdfbb
RW
4101 gcc)
4102 # This depmode causes a compiler race in universal mode.
4103 test "$am__universal" = false || continue
4104 ;;
f5385ebf
AM
4105 nosideeffect)
4106 # after this tag, mechanisms are not by side-effect, so they'll
4107 # only be used when explicitly requested
4108 if test "x$enable_dependency_tracking" = xyes; then
4109 continue
4110 else
4111 break
4112 fi
4113 ;;
6eb7d830 4114 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
81ecdfbb
RW
4115 # This compiler won't grok `-c -o', but also, the minuso test has
4116 # not run yet. These depmodes are late enough in the game, and
4117 # so weak that their functioning should not be impacted.
4118 am__obj=conftest.${OBJEXT-o}
4119 am__minus_obj=
4120 ;;
f5385ebf
AM
4121 none) break ;;
4122 esac
f5385ebf 4123 if depmode=$depmode \
81ecdfbb 4124 source=sub/conftest.c object=$am__obj \
f5385ebf 4125 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
81ecdfbb 4126 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
f5385ebf 4127 >/dev/null 2>conftest.err &&
81ecdfbb 4128 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
f5385ebf 4129 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
81ecdfbb 4130 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
f5385ebf
AM
4131 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4132 # icc doesn't choke on unknown options, it will just issue warnings
4133 # or remarks (even with -Werror). So we grep stderr for any message
4134 # that says an option was ignored or not supported.
4135 # When given -MP, icc 7.0 and 7.1 complain thusly:
4136 # icc: Command line warning: ignoring option '-M'; no argument required
4137 # The diagnosis changed in icc 8.0:
4138 # icc: Command line remark: option '-MP' not supported
4139 if (grep 'ignoring option' conftest.err ||
4140 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4141 am_cv_CC_dependencies_compiler_type=$depmode
4142 break
4143 fi
4144 fi
4145 done
4146
4147 cd ..
4148 rm -rf conftest.dir
4149else
4150 am_cv_CC_dependencies_compiler_type=none
4151fi
4152
252b5132 4153fi
81ecdfbb
RW
4154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4155$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
f5385ebf 4156CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
252b5132 4157
81ecdfbb 4158 if
f5385ebf
AM
4159 test "x$enable_dependency_tracking" != xno \
4160 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4161 am__fastdepCC_TRUE=
4162 am__fastdepCC_FALSE='#'
252b5132 4163else
f5385ebf
AM
4164 am__fastdepCC_TRUE='#'
4165 am__fastdepCC_FALSE=
252b5132
RH
4166fi
4167
6be7c12c 4168
e43d48cc 4169
f5385ebf 4170
5464f5a1
NN
4171if test -n "$ac_tool_prefix"; then
4172 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
252b5132 4173set dummy ${ac_tool_prefix}ar; ac_word=$2
81ecdfbb
RW
4174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4175$as_echo_n "checking for $ac_word... " >&6; }
4176if test "${ac_cv_prog_AR+set}" = set; then :
4177 $as_echo_n "(cached) " >&6
252b5132
RH
4178else
4179 if test -n "$AR"; then
4180 ac_cv_prog_AR="$AR" # Let the user override the test.
4181else
5464f5a1
NN
4182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4183for as_dir in $PATH
4184do
4185 IFS=$as_save_IFS
4186 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4187 for ac_exec_ext in '' $ac_executable_extensions; do
4188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5464f5a1 4189 ac_cv_prog_AR="${ac_tool_prefix}ar"
81ecdfbb 4190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5464f5a1
NN
4191 break 2
4192 fi
4193done
81ecdfbb
RW
4194 done
4195IFS=$as_save_IFS
5464f5a1 4196
252b5132
RH
4197fi
4198fi
5464f5a1 4199AR=$ac_cv_prog_AR
252b5132 4200if test -n "$AR"; then
81ecdfbb
RW
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4202$as_echo "$AR" >&6; }
252b5132 4203else
81ecdfbb
RW
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4205$as_echo "no" >&6; }
5464f5a1
NN
4206fi
4207
81ecdfbb 4208
252b5132 4209fi
5464f5a1
NN
4210if test -z "$ac_cv_prog_AR"; then
4211 ac_ct_AR=$AR
4212 # Extract the first word of "ar", so it can be a program name with args.
4213set dummy ar; ac_word=$2
81ecdfbb
RW
4214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4215$as_echo_n "checking for $ac_word... " >&6; }
4216if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4217 $as_echo_n "(cached) " >&6
5464f5a1
NN
4218else
4219 if test -n "$ac_ct_AR"; then
4220 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4221else
4222as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4223for as_dir in $PATH
4224do
4225 IFS=$as_save_IFS
4226 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4227 for ac_exec_ext in '' $ac_executable_extensions; do
4228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5464f5a1 4229 ac_cv_prog_ac_ct_AR="ar"
81ecdfbb 4230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5464f5a1
NN
4231 break 2
4232 fi
4233done
81ecdfbb
RW
4234 done
4235IFS=$as_save_IFS
252b5132 4236
5464f5a1
NN
4237fi
4238fi
4239ac_ct_AR=$ac_cv_prog_ac_ct_AR
4240if test -n "$ac_ct_AR"; then
81ecdfbb
RW
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4242$as_echo "$ac_ct_AR" >&6; }
5464f5a1 4243else
81ecdfbb
RW
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4245$as_echo "no" >&6; }
5464f5a1 4246fi
252b5132 4247
81ecdfbb
RW
4248 if test "x$ac_ct_AR" = x; then
4249 AR=""
4250 else
4251 case $cross_compiling:$ac_tool_warned in
4252yes:)
4253{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4254$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4255ac_tool_warned=yes ;;
4256esac
4257 AR=$ac_ct_AR
4258 fi
5464f5a1
NN
4259else
4260 AR="$ac_cv_prog_AR"
4261fi
6be7c12c 4262
5464f5a1
NN
4263if test -n "$ac_tool_prefix"; then
4264 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
252b5132 4265set dummy ${ac_tool_prefix}ranlib; ac_word=$2
81ecdfbb
RW
4266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4267$as_echo_n "checking for $ac_word... " >&6; }
4268if test "${ac_cv_prog_RANLIB+set}" = set; then :
4269 $as_echo_n "(cached) " >&6
252b5132
RH
4270else
4271 if test -n "$RANLIB"; then
4272 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4273else
5464f5a1
NN
4274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4275for as_dir in $PATH
4276do
4277 IFS=$as_save_IFS
4278 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4279 for ac_exec_ext in '' $ac_executable_extensions; do
4280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5464f5a1 4281 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
81ecdfbb 4282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5464f5a1
NN
4283 break 2
4284 fi
4285done
81ecdfbb
RW
4286 done
4287IFS=$as_save_IFS
5464f5a1 4288
252b5132
RH
4289fi
4290fi
5464f5a1 4291RANLIB=$ac_cv_prog_RANLIB
252b5132 4292if test -n "$RANLIB"; then
81ecdfbb
RW
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4294$as_echo "$RANLIB" >&6; }
252b5132 4295else
81ecdfbb
RW
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4297$as_echo "no" >&6; }
252b5132
RH
4298fi
4299
81ecdfbb 4300
5464f5a1 4301fi
252b5132 4302if test -z "$ac_cv_prog_RANLIB"; then
5464f5a1 4303 ac_ct_RANLIB=$RANLIB
252b5132
RH
4304 # Extract the first word of "ranlib", so it can be a program name with args.
4305set dummy ranlib; ac_word=$2
81ecdfbb
RW
4306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4307$as_echo_n "checking for $ac_word... " >&6; }
4308if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4309 $as_echo_n "(cached) " >&6
6be7c12c 4310else
5464f5a1
NN
4311 if test -n "$ac_ct_RANLIB"; then
4312 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6be7c12c 4313else
5464f5a1
NN
4314as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4315for as_dir in $PATH
4316do
4317 IFS=$as_save_IFS
4318 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4319 for ac_exec_ext in '' $ac_executable_extensions; do
4320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5464f5a1 4321 ac_cv_prog_ac_ct_RANLIB="ranlib"
81ecdfbb 4322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5464f5a1
NN
4323 break 2
4324 fi
4325done
81ecdfbb
RW
4326 done
4327IFS=$as_save_IFS
5464f5a1 4328
252b5132
RH
4329fi
4330fi
5464f5a1
NN
4331ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4332if test -n "$ac_ct_RANLIB"; then
81ecdfbb
RW
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4334$as_echo "$ac_ct_RANLIB" >&6; }
252b5132 4335else
81ecdfbb
RW
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4337$as_echo "no" >&6; }
252b5132
RH
4338fi
4339
81ecdfbb
RW
4340 if test "x$ac_ct_RANLIB" = x; then
4341 RANLIB=":"
4342 else
4343 case $cross_compiling:$ac_tool_warned in
4344yes:)
4345{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4346$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4347ac_tool_warned=yes ;;
4348esac
4349 RANLIB=$ac_ct_RANLIB
4350 fi
252b5132 4351else
5464f5a1 4352 RANLIB="$ac_cv_prog_RANLIB"
6be7c12c
AO
4353fi
4354
252b5132 4355
81ecdfbb
RW
4356# Check whether --enable-shared was given.
4357if test "${enable_shared+set}" = set; then :
4358 enableval=$enable_shared; p=${PACKAGE-default}
d7040cdb
SE
4359 case $enableval in
4360 yes) enable_shared=yes ;;
4361 no) enable_shared=no ;;
4362 *)
4363 enable_shared=no
4364 # Look at the argument we got. We use all the common list separators.
4365 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4366 for pkg in $enableval; do
4367 IFS="$lt_save_ifs"
4368 if test "X$pkg" = "X$p"; then
4369 enable_shared=yes
4370 fi
4371 done
4372 IFS="$lt_save_ifs"
4373 ;;
4374 esac
252b5132
RH
4375else
4376 enable_shared=no
81ecdfbb
RW
4377fi
4378
252b5132 4379
d7040cdb
SE
4380
4381
4382
4383
4384
4385
4386
4387
cfbc9945
SE
4388ac_ext=c
4389ac_cpp='$CPP $CPPFLAGS'
4390ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4391ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4392ac_compiler_gnu=$ac_cv_c_compiler_gnu
4393if test -n "$ac_tool_prefix"; then
4394 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4395set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
4396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4397$as_echo_n "checking for $ac_word... " >&6; }
4398if test "${ac_cv_prog_CC+set}" = set; then :
4399 $as_echo_n "(cached) " >&6
252b5132 4400else
cfbc9945
SE
4401 if test -n "$CC"; then
4402 ac_cv_prog_CC="$CC" # Let the user override the test.
b2ef150d 4403else
cfbc9945
SE
4404as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4405for as_dir in $PATH
4406do
4407 IFS=$as_save_IFS
4408 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4409 for ac_exec_ext in '' $ac_executable_extensions; do
4410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cfbc9945 4411 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 4412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cfbc9945
SE
4413 break 2
4414 fi
4415done
81ecdfbb
RW
4416 done
4417IFS=$as_save_IFS
c5d1701e 4418
cfbc9945
SE
4419fi
4420fi
4421CC=$ac_cv_prog_CC
4422if test -n "$CC"; then
81ecdfbb
RW
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4424$as_echo "$CC" >&6; }
252b5132 4425else
81ecdfbb
RW
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4427$as_echo "no" >&6; }
252b5132 4428fi
cfbc9945 4429
81ecdfbb 4430
cfbc9945
SE
4431fi
4432if test -z "$ac_cv_prog_CC"; then
4433 ac_ct_CC=$CC
4434 # Extract the first word of "gcc", so it can be a program name with args.
4435set dummy gcc; ac_word=$2
81ecdfbb
RW
4436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4437$as_echo_n "checking for $ac_word... " >&6; }
4438if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4439 $as_echo_n "(cached) " >&6
252b5132 4440else
cfbc9945
SE
4441 if test -n "$ac_ct_CC"; then
4442 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
252b5132 4443else
cfbc9945
SE
4444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4445for as_dir in $PATH
4446do
4447 IFS=$as_save_IFS
4448 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4449 for ac_exec_ext in '' $ac_executable_extensions; do
4450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cfbc9945 4451 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 4452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cfbc9945
SE
4453 break 2
4454 fi
4455done
81ecdfbb
RW
4456 done
4457IFS=$as_save_IFS
cfbc9945 4458
252b5132
RH
4459fi
4460fi
cfbc9945
SE
4461ac_ct_CC=$ac_cv_prog_ac_ct_CC
4462if test -n "$ac_ct_CC"; then
81ecdfbb
RW
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4464$as_echo "$ac_ct_CC" >&6; }
252b5132 4465else
81ecdfbb
RW
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4467$as_echo "no" >&6; }
252b5132 4468fi
cfbc9945 4469
81ecdfbb
RW
4470 if test "x$ac_ct_CC" = x; then
4471 CC=""
4472 else
4473 case $cross_compiling:$ac_tool_warned in
4474yes:)
4475{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4476$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4477ac_tool_warned=yes ;;
4478esac
4479 CC=$ac_ct_CC
4480 fi
cfbc9945
SE
4481else
4482 CC="$ac_cv_prog_CC"
4483fi
4484
4485if test -z "$CC"; then
81ecdfbb
RW
4486 if test -n "$ac_tool_prefix"; then
4487 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
cfbc9945 4488set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
4489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4490$as_echo_n "checking for $ac_word... " >&6; }
4491if test "${ac_cv_prog_CC+set}" = set; then :
4492 $as_echo_n "(cached) " >&6
252b5132 4493else
cfbc9945
SE
4494 if test -n "$CC"; then
4495 ac_cv_prog_CC="$CC" # Let the user override the test.
252b5132 4496else
cfbc9945
SE
4497as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4498for as_dir in $PATH
4499do
4500 IFS=$as_save_IFS
4501 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4502 for ac_exec_ext in '' $ac_executable_extensions; do
4503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cfbc9945 4504 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 4505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cfbc9945
SE
4506 break 2
4507 fi
4508done
81ecdfbb
RW
4509 done
4510IFS=$as_save_IFS
cfbc9945 4511
252b5132
RH
4512fi
4513fi
cfbc9945
SE
4514CC=$ac_cv_prog_CC
4515if test -n "$CC"; then
81ecdfbb
RW
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4517$as_echo "$CC" >&6; }
ac48eca1 4518else
81ecdfbb
RW
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4520$as_echo "no" >&6; }
ac48eca1 4521fi
ac48eca1 4522
81ecdfbb
RW
4523
4524 fi
cfbc9945 4525fi
81ecdfbb 4526if test -z "$CC"; then
cfbc9945
SE
4527 # Extract the first word of "cc", so it can be a program name with args.
4528set dummy cc; ac_word=$2
81ecdfbb
RW
4529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4530$as_echo_n "checking for $ac_word... " >&6; }
4531if test "${ac_cv_prog_CC+set}" = set; then :
4532 $as_echo_n "(cached) " >&6
252b5132 4533else
81ecdfbb
RW
4534 if test -n "$CC"; then
4535 ac_cv_prog_CC="$CC" # Let the user override the test.
252b5132 4536else
81ecdfbb 4537 ac_prog_rejected=no
cfbc9945
SE
4538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4539for as_dir in $PATH
4540do
4541 IFS=$as_save_IFS
4542 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4543 for ac_exec_ext in '' $ac_executable_extensions; do
4544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cfbc9945
SE
4545 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4546 ac_prog_rejected=yes
4547 continue
4548 fi
4549 ac_cv_prog_CC="cc"
81ecdfbb 4550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cfbc9945
SE
4551 break 2
4552 fi
4553done
81ecdfbb
RW
4554 done
4555IFS=$as_save_IFS
cfbc9945
SE
4556
4557if test $ac_prog_rejected = yes; then
4558 # We found a bogon in the path, so make sure we never use it.
4559 set dummy $ac_cv_prog_CC
4560 shift
4561 if test $# != 0; then
4562 # We chose a different compiler from the bogus one.
4563 # However, it has the same basename, so the bogon will be chosen
4564 # first if we set CC to just the basename; use the full file name.
4565 shift
4566 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4567 fi
4568fi
4569fi
4570fi
4571CC=$ac_cv_prog_CC
4572if test -n "$CC"; then
81ecdfbb
RW
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4574$as_echo "$CC" >&6; }
cfbc9945 4575else
81ecdfbb
RW
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4577$as_echo "no" >&6; }
252b5132
RH
4578fi
4579
81ecdfbb 4580
cfbc9945
SE
4581fi
4582if test -z "$CC"; then
4583 if test -n "$ac_tool_prefix"; then
81ecdfbb 4584 for ac_prog in cl.exe
cfbc9945
SE
4585 do
4586 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4587set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
4588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4589$as_echo_n "checking for $ac_word... " >&6; }
4590if test "${ac_cv_prog_CC+set}" = set; then :
4591 $as_echo_n "(cached) " >&6
ac48eca1 4592else
cfbc9945
SE
4593 if test -n "$CC"; then
4594 ac_cv_prog_CC="$CC" # Let the user override the test.
4595else
4596as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4597for as_dir in $PATH
4598do
4599 IFS=$as_save_IFS
4600 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4601 for ac_exec_ext in '' $ac_executable_extensions; do
4602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cfbc9945 4603 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 4604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cfbc9945
SE
4605 break 2
4606 fi
4607done
81ecdfbb
RW
4608 done
4609IFS=$as_save_IFS
ac48eca1 4610
cfbc9945
SE
4611fi
4612fi
4613CC=$ac_cv_prog_CC
4614if test -n "$CC"; then
81ecdfbb
RW
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4616$as_echo "$CC" >&6; }
cfbc9945 4617else
81ecdfbb
RW
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4619$as_echo "no" >&6; }
cfbc9945 4620fi
ac48eca1 4621
81ecdfbb 4622
cfbc9945
SE
4623 test -n "$CC" && break
4624 done
4625fi
4626if test -z "$CC"; then
4627 ac_ct_CC=$CC
81ecdfbb 4628 for ac_prog in cl.exe
cfbc9945
SE
4629do
4630 # Extract the first word of "$ac_prog", so it can be a program name with args.
4631set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
4632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4633$as_echo_n "checking for $ac_word... " >&6; }
4634if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4635 $as_echo_n "(cached) " >&6
cfbc9945
SE
4636else
4637 if test -n "$ac_ct_CC"; then
4638 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4639else
4640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4641for as_dir in $PATH
4642do
4643 IFS=$as_save_IFS
4644 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4645 for ac_exec_ext in '' $ac_executable_extensions; do
4646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cfbc9945 4647 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 4648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cfbc9945
SE
4649 break 2
4650 fi
4651done
81ecdfbb
RW
4652 done
4653IFS=$as_save_IFS
ac48eca1 4654
cfbc9945
SE
4655fi
4656fi
4657ac_ct_CC=$ac_cv_prog_ac_ct_CC
4658if test -n "$ac_ct_CC"; then
81ecdfbb
RW
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4660$as_echo "$ac_ct_CC" >&6; }
cfbc9945 4661else
81ecdfbb
RW
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4663$as_echo "no" >&6; }
cfbc9945 4664fi
ac48eca1 4665
81ecdfbb 4666
cfbc9945
SE
4667 test -n "$ac_ct_CC" && break
4668done
ac48eca1 4669
81ecdfbb
RW
4670 if test "x$ac_ct_CC" = x; then
4671 CC=""
4672 else
4673 case $cross_compiling:$ac_tool_warned in
4674yes:)
4675{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4676$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4677ac_tool_warned=yes ;;
4678esac
4679 CC=$ac_ct_CC
4680 fi
cfbc9945 4681fi
55c80943 4682
cfbc9945 4683fi
ac48eca1 4684
ac48eca1 4685
81ecdfbb
RW
4686test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4687$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4688as_fn_error "no acceptable C compiler found in \$PATH
4689See \`config.log' for more details." "$LINENO" 5; }
ac48eca1 4690
cfbc9945 4691# Provide some information about the compiler.
81ecdfbb
RW
4692$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4693set X $ac_compile
4694ac_compiler=$2
4695for ac_option in --version -v -V -qversion; do
4696 { { ac_try="$ac_compiler $ac_option >&5"
4697case "(($ac_try" in
4698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4699 *) ac_try_echo=$ac_try;;
4700esac
4701eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4702$as_echo "$ac_try_echo"; } >&5
4703 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cfbc9945 4704 ac_status=$?
81ecdfbb
RW
4705 if test -s conftest.err; then
4706 sed '10a\
4707... rest of stderr output deleted ...
4708 10q' conftest.err >conftest.er1
4709 cat conftest.er1 >&5
4710 rm -f conftest.er1 conftest.err
4711 fi
4712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4713 test $ac_status = 0; }
4714done
ac48eca1 4715
81ecdfbb
RW
4716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4717$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4718if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4719 $as_echo_n "(cached) " >&6
ac48eca1 4720else
81ecdfbb 4721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cfbc9945 4722/* end confdefs.h. */
ac48eca1 4723
cfbc9945
SE
4724int
4725main ()
4726{
4727#ifndef __GNUC__
4728 choke me
4729#endif
5464f5a1 4730
cfbc9945
SE
4731 ;
4732 return 0;
4733}
4734_ACEOF
81ecdfbb 4735if ac_fn_c_try_compile "$LINENO"; then :
cfbc9945 4736 ac_compiler_gnu=yes
ac48eca1 4737else
81ecdfbb 4738 ac_compiler_gnu=no
ac48eca1 4739fi
81ecdfbb 4740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cfbc9945 4741ac_cv_c_compiler_gnu=$ac_compiler_gnu
ac48eca1 4742
5464f5a1 4743fi
81ecdfbb
RW
4744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4745$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4746if test $ac_compiler_gnu = yes; then
4747 GCC=yes
4748else
4749 GCC=
4750fi
cfbc9945
SE
4751ac_test_CFLAGS=${CFLAGS+set}
4752ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
4753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4754$as_echo_n "checking whether $CC accepts -g... " >&6; }
4755if test "${ac_cv_prog_cc_g+set}" = set; then :
4756 $as_echo_n "(cached) " >&6
4757else
4758 ac_save_c_werror_flag=$ac_c_werror_flag
4759 ac_c_werror_flag=yes
4760 ac_cv_prog_cc_g=no
4761 CFLAGS="-g"
4762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cfbc9945
SE
4763/* end confdefs.h. */
4764
4765int
4766main ()
4767{
4768
4769 ;
4770 return 0;
4771}
4772_ACEOF
81ecdfbb 4773if ac_fn_c_try_compile "$LINENO"; then :
cfbc9945 4774 ac_cv_prog_cc_g=yes
6be7c12c 4775else
81ecdfbb
RW
4776 CFLAGS=""
4777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4778/* end confdefs.h. */
4779
4780int
4781main ()
4782{
4783
4784 ;
4785 return 0;
4786}
4787_ACEOF
4788if ac_fn_c_try_compile "$LINENO"; then :
4789
4790else
4791 ac_c_werror_flag=$ac_save_c_werror_flag
4792 CFLAGS="-g"
4793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4794/* end confdefs.h. */
4795
4796int
4797main ()
4798{
5464f5a1 4799
81ecdfbb
RW
4800 ;
4801 return 0;
4802}
4803_ACEOF
4804if ac_fn_c_try_compile "$LINENO"; then :
4805 ac_cv_prog_cc_g=yes
4806fi
4807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ac48eca1 4808fi
81ecdfbb 4809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ac48eca1 4810fi
81ecdfbb
RW
4811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4812 ac_c_werror_flag=$ac_save_c_werror_flag
4813fi
4814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4815$as_echo "$ac_cv_prog_cc_g" >&6; }
cfbc9945
SE
4816if test "$ac_test_CFLAGS" = set; then
4817 CFLAGS=$ac_save_CFLAGS
4818elif test $ac_cv_prog_cc_g = yes; then
4819 if test "$GCC" = yes; then
4820 CFLAGS="-g -O2"
4821 else
4822 CFLAGS="-g"
4823 fi
ac48eca1 4824else
cfbc9945
SE
4825 if test "$GCC" = yes; then
4826 CFLAGS="-O2"
4827 else
4828 CFLAGS=
4829 fi
ac48eca1 4830fi
81ecdfbb
RW
4831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4832$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4833if test "${ac_cv_prog_cc_c89+set}" = set; then :
4834 $as_echo_n "(cached) " >&6
ac48eca1 4835else
81ecdfbb 4836 ac_cv_prog_cc_c89=no
cfbc9945 4837ac_save_CC=$CC
81ecdfbb 4838cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cfbc9945
SE
4839/* end confdefs.h. */
4840#include <stdarg.h>
4841#include <stdio.h>
4842#include <sys/types.h>
4843#include <sys/stat.h>
4844/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4845struct buf { int x; };
4846FILE * (*rcsopen) (struct buf *, struct stat *, int);
4847static char *e (p, i)
4848 char **p;
4849 int i;
4850{
4851 return p[i];
4852}
4853static char *f (char * (*g) (char **, int), char **p, ...)
4854{
4855 char *s;
4856 va_list v;
4857 va_start (v,p);
4858 s = g (p, va_arg (v,int));
4859 va_end (v);
4860 return s;
4861}
5464f5a1 4862
cfbc9945
SE
4863/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4864 function prototypes and stuff, but not '\xHH' hex character constants.
4865 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 4866 as 'x'. The following induces an error, until -std is added to get
cfbc9945
SE
4867 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4868 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 4869 that's true only with -std. */
cfbc9945
SE
4870int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4871
81ecdfbb
RW
4872/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4873 inside strings and character constants. */
4874#define FOO(x) 'x'
4875int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4876
cfbc9945
SE
4877int test (int i, double x);
4878struct s1 {int (*f) (int a);};
4879struct s2 {int (*f) (double a);};
4880int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4881int argc;
4882char **argv;
4883int
4884main ()
4885{
4886return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4887 ;
4888 return 0;
4889}
4890_ACEOF
81ecdfbb
RW
4891for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4892 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
cfbc9945
SE
4893do
4894 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
4895 if ac_fn_c_try_compile "$LINENO"; then :
4896 ac_cv_prog_cc_c89=$ac_arg
5464f5a1 4897fi
81ecdfbb
RW
4898rm -f core conftest.err conftest.$ac_objext
4899 test "x$ac_cv_prog_cc_c89" != "xno" && break
5464f5a1 4900done
81ecdfbb 4901rm -f conftest.$ac_ext
cfbc9945 4902CC=$ac_save_CC
5464f5a1 4903
ac48eca1 4904fi
81ecdfbb
RW
4905# AC_CACHE_VAL
4906case "x$ac_cv_prog_cc_c89" in
4907 x)
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4909$as_echo "none needed" >&6; } ;;
4910 xno)
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4912$as_echo "unsupported" >&6; } ;;
cfbc9945 4913 *)
81ecdfbb
RW
4914 CC="$CC $ac_cv_prog_cc_c89"
4915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4916$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
cfbc9945 4917esac
81ecdfbb 4918if test "x$ac_cv_prog_cc_c89" != xno; then :
6be7c12c 4919
6ec7057a 4920fi
cfbc9945 4921
cfbc9945
SE
4922ac_ext=c
4923ac_cpp='$CPP $CPPFLAGS'
4924ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4925ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4926ac_compiler_gnu=$ac_cv_c_compiler_gnu
92f01d61 4927
7357c5b6
AM
4928ac_ext=c
4929ac_cpp='$CPP $CPPFLAGS'
4930ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4931ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4932ac_compiler_gnu=$ac_cv_c_compiler_gnu
81ecdfbb
RW
4933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4934$as_echo_n "checking how to run the C preprocessor... " >&6; }
7357c5b6
AM
4935# On Suns, sometimes $CPP names a directory.
4936if test -n "$CPP" && test -d "$CPP"; then
4937 CPP=
4938fi
4939if test -z "$CPP"; then
81ecdfbb
RW
4940 if test "${ac_cv_prog_CPP+set}" = set; then :
4941 $as_echo_n "(cached) " >&6
7357c5b6
AM
4942else
4943 # Double quotes because CPP needs to be expanded
4944 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4945 do
4946 ac_preproc_ok=false
4947for ac_c_preproc_warn_flag in '' yes
4948do
4949 # Use a header file that comes with gcc, so configuring glibc
4950 # with a fresh cross-compiler works.
4951 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4952 # <limits.h> exists even on freestanding compilers.
4953 # On the NeXT, cc -E runs the code through the compiler's parser,
4954 # not just through cpp. "Syntax error" is here to catch this case.
81ecdfbb 4955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4956/* end confdefs.h. */
4957#ifdef __STDC__
4958# include <limits.h>
4959#else
4960# include <assert.h>
4961#endif
4962 Syntax error
4963_ACEOF
81ecdfbb 4964if ac_fn_c_try_cpp "$LINENO"; then :
cfbc9945 4965
81ecdfbb 4966else
7357c5b6
AM
4967 # Broken: fails on valid input.
4968continue
4969fi
4970rm -f conftest.err conftest.$ac_ext
d7040cdb 4971
81ecdfbb 4972 # OK, works on sane cases. Now check whether nonexistent headers
7357c5b6 4973 # can be detected and how.
81ecdfbb 4974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4975/* end confdefs.h. */
4976#include <ac_nonexistent.h>
4977_ACEOF
81ecdfbb 4978if ac_fn_c_try_cpp "$LINENO"; then :
7357c5b6
AM
4979 # Broken: success on invalid input.
4980continue
4981else
7357c5b6
AM
4982 # Passes both tests.
4983ac_preproc_ok=:
4984break
4985fi
4986rm -f conftest.err conftest.$ac_ext
d7040cdb 4987
7357c5b6
AM
4988done
4989# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4990rm -f conftest.err conftest.$ac_ext
81ecdfbb 4991if $ac_preproc_ok; then :
7357c5b6
AM
4992 break
4993fi
d7040cdb 4994
7357c5b6
AM
4995 done
4996 ac_cv_prog_CPP=$CPP
d7040cdb 4997
7357c5b6
AM
4998fi
4999 CPP=$ac_cv_prog_CPP
5000else
5001 ac_cv_prog_CPP=$CPP
5002fi
81ecdfbb
RW
5003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5004$as_echo "$CPP" >&6; }
7357c5b6
AM
5005ac_preproc_ok=false
5006for ac_c_preproc_warn_flag in '' yes
5007do
5008 # Use a header file that comes with gcc, so configuring glibc
5009 # with a fresh cross-compiler works.
5010 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5011 # <limits.h> exists even on freestanding compilers.
5012 # On the NeXT, cc -E runs the code through the compiler's parser,
5013 # not just through cpp. "Syntax error" is here to catch this case.
81ecdfbb 5014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
5015/* end confdefs.h. */
5016#ifdef __STDC__
5017# include <limits.h>
5018#else
5019# include <assert.h>
5020#endif
5021 Syntax error
5022_ACEOF
81ecdfbb 5023if ac_fn_c_try_cpp "$LINENO"; then :
d7040cdb 5024
81ecdfbb 5025else
7357c5b6
AM
5026 # Broken: fails on valid input.
5027continue
5028fi
5029rm -f conftest.err conftest.$ac_ext
d7040cdb 5030
81ecdfbb 5031 # OK, works on sane cases. Now check whether nonexistent headers
7357c5b6 5032 # can be detected and how.
81ecdfbb 5033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
5034/* end confdefs.h. */
5035#include <ac_nonexistent.h>
5036_ACEOF
81ecdfbb 5037if ac_fn_c_try_cpp "$LINENO"; then :
7357c5b6
AM
5038 # Broken: success on invalid input.
5039continue
5040else
7357c5b6
AM
5041 # Passes both tests.
5042ac_preproc_ok=:
5043break
5044fi
5045rm -f conftest.err conftest.$ac_ext
d7040cdb 5046
7357c5b6
AM
5047done
5048# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5049rm -f conftest.err conftest.$ac_ext
81ecdfbb
RW
5050if $ac_preproc_ok; then :
5051
7357c5b6 5052else
81ecdfbb
RW
5053 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5054$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5055as_fn_error "C preprocessor \"$CPP\" fails sanity check
5056See \`config.log' for more details." "$LINENO" 5; }
7357c5b6 5057fi
d7040cdb 5058
7357c5b6
AM
5059ac_ext=c
5060ac_cpp='$CPP $CPPFLAGS'
5061ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5062ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5063ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 5064
d7040cdb 5065
81ecdfbb
RW
5066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5067$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5068if test "${ac_cv_path_GREP+set}" = set; then :
5069 $as_echo_n "(cached) " >&6
5070else
5071 if test -z "$GREP"; then
5072 ac_path_GREP_found=false
5073 # Loop through the user's path and test for each of PROGNAME-LIST
5074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5075for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5076do
5077 IFS=$as_save_IFS
5078 test -z "$as_dir" && as_dir=.
5079 for ac_prog in grep ggrep; do
5080 for ac_exec_ext in '' $ac_executable_extensions; do
5081 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5082 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5083# Check for GNU ac_path_GREP and select it if it is found.
5084 # Check for GNU $ac_path_GREP
5085case `"$ac_path_GREP" --version 2>&1` in
5086*GNU*)
5087 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5088*)
5089 ac_count=0
5090 $as_echo_n 0123456789 >"conftest.in"
5091 while :
5092 do
5093 cat "conftest.in" "conftest.in" >"conftest.tmp"
5094 mv "conftest.tmp" "conftest.in"
5095 cp "conftest.in" "conftest.nl"
5096 $as_echo 'GREP' >> "conftest.nl"
5097 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5098 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5099 as_fn_arith $ac_count + 1 && ac_count=$as_val
5100 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5101 # Best one so far, save it but keep looking for a better one
5102 ac_cv_path_GREP="$ac_path_GREP"
5103 ac_path_GREP_max=$ac_count
5104 fi
5105 # 10*(2^10) chars as input seems more than enough
5106 test $ac_count -gt 10 && break
5107 done
5108 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5109esac
5110
5111 $ac_path_GREP_found && break 3
5112 done
5113 done
5114 done
5115IFS=$as_save_IFS
5116 if test -z "$ac_cv_path_GREP"; then
5117 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5118 fi
5119else
5120 ac_cv_path_GREP=$GREP
5121fi
5122
5123fi
5124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5125$as_echo "$ac_cv_path_GREP" >&6; }
5126 GREP="$ac_cv_path_GREP"
5127
5128
5129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5130$as_echo_n "checking for egrep... " >&6; }
5131if test "${ac_cv_path_EGREP+set}" = set; then :
5132 $as_echo_n "(cached) " >&6
7357c5b6 5133else
81ecdfbb
RW
5134 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5135 then ac_cv_path_EGREP="$GREP -E"
5136 else
5137 if test -z "$EGREP"; then
5138 ac_path_EGREP_found=false
5139 # Loop through the user's path and test for each of PROGNAME-LIST
5140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5141for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5142do
5143 IFS=$as_save_IFS
5144 test -z "$as_dir" && as_dir=.
5145 for ac_prog in egrep; do
5146 for ac_exec_ext in '' $ac_executable_extensions; do
5147 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5148 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5149# Check for GNU ac_path_EGREP and select it if it is found.
5150 # Check for GNU $ac_path_EGREP
5151case `"$ac_path_EGREP" --version 2>&1` in
5152*GNU*)
5153 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5154*)
5155 ac_count=0
5156 $as_echo_n 0123456789 >"conftest.in"
5157 while :
5158 do
5159 cat "conftest.in" "conftest.in" >"conftest.tmp"
5160 mv "conftest.tmp" "conftest.in"
5161 cp "conftest.in" "conftest.nl"
5162 $as_echo 'EGREP' >> "conftest.nl"
5163 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5164 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5165 as_fn_arith $ac_count + 1 && ac_count=$as_val
5166 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5167 # Best one so far, save it but keep looking for a better one
5168 ac_cv_path_EGREP="$ac_path_EGREP"
5169 ac_path_EGREP_max=$ac_count
7357c5b6 5170 fi
81ecdfbb
RW
5171 # 10*(2^10) chars as input seems more than enough
5172 test $ac_count -gt 10 && break
5173 done
5174 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5175esac
5176
5177 $ac_path_EGREP_found && break 3
5178 done
5179 done
5180 done
5181IFS=$as_save_IFS
5182 if test -z "$ac_cv_path_EGREP"; then
5183 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5184 fi
5185else
5186 ac_cv_path_EGREP=$EGREP
5187fi
5188
5189 fi
7357c5b6 5190fi
81ecdfbb
RW
5191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5192$as_echo "$ac_cv_path_EGREP" >&6; }
5193 EGREP="$ac_cv_path_EGREP"
d7040cdb
SE
5194
5195
81ecdfbb
RW
5196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5197$as_echo_n "checking for ANSI C header files... " >&6; }
5198if test "${ac_cv_header_stdc+set}" = set; then :
5199 $as_echo_n "(cached) " >&6
7357c5b6 5200else
81ecdfbb 5201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
5202/* end confdefs.h. */
5203#include <stdlib.h>
5204#include <stdarg.h>
5205#include <string.h>
5206#include <float.h>
d7040cdb 5207
7357c5b6
AM
5208int
5209main ()
5210{
d7040cdb 5211
7357c5b6
AM
5212 ;
5213 return 0;
5214}
5215_ACEOF
81ecdfbb 5216if ac_fn_c_try_compile "$LINENO"; then :
7357c5b6 5217 ac_cv_header_stdc=yes
c428fa83 5218else
81ecdfbb 5219 ac_cv_header_stdc=no
7357c5b6 5220fi
81ecdfbb 5221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d7040cdb 5222
7357c5b6
AM
5223if test $ac_cv_header_stdc = yes; then
5224 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
81ecdfbb 5225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
5226/* end confdefs.h. */
5227#include <string.h>
d7040cdb 5228
7357c5b6
AM
5229_ACEOF
5230if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb
RW
5231 $EGREP "memchr" >/dev/null 2>&1; then :
5232
7357c5b6
AM
5233else
5234 ac_cv_header_stdc=no
5235fi
5236rm -f conftest*
d7040cdb 5237
7357c5b6 5238fi
d7040cdb 5239
7357c5b6
AM
5240if test $ac_cv_header_stdc = yes; then
5241 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
81ecdfbb 5242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
5243/* end confdefs.h. */
5244#include <stdlib.h>
d7040cdb 5245
7357c5b6
AM
5246_ACEOF
5247if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb
RW
5248 $EGREP "free" >/dev/null 2>&1; then :
5249
7357c5b6
AM
5250else
5251 ac_cv_header_stdc=no
5252fi
5253rm -f conftest*
d7040cdb 5254
7357c5b6 5255fi
d7040cdb 5256
7357c5b6
AM
5257if test $ac_cv_header_stdc = yes; then
5258 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
81ecdfbb 5259 if test "$cross_compiling" = yes; then :
7357c5b6
AM
5260 :
5261else
81ecdfbb 5262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
5263/* end confdefs.h. */
5264#include <ctype.h>
81ecdfbb 5265#include <stdlib.h>
7357c5b6
AM
5266#if ((' ' & 0x0FF) == 0x020)
5267# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5268# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5269#else
5270# define ISLOWER(c) \
5271 (('a' <= (c) && (c) <= 'i') \
5272 || ('j' <= (c) && (c) <= 'r') \
5273 || ('s' <= (c) && (c) <= 'z'))
5274# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5275#endif
d7040cdb 5276
7357c5b6
AM
5277#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5278int
5279main ()
5280{
5281 int i;
5282 for (i = 0; i < 256; i++)
5283 if (XOR (islower (i), ISLOWER (i))
5284 || toupper (i) != TOUPPER (i))
81ecdfbb
RW
5285 return 2;
5286 return 0;
7357c5b6
AM
5287}
5288_ACEOF
81ecdfbb 5289if ac_fn_c_try_run "$LINENO"; then :
d7040cdb 5290
81ecdfbb
RW
5291else
5292 ac_cv_header_stdc=no
7357c5b6 5293fi
81ecdfbb
RW
5294rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5295 conftest.$ac_objext conftest.beam conftest.$ac_ext
7357c5b6 5296fi
81ecdfbb 5297
7357c5b6
AM
5298fi
5299fi
81ecdfbb
RW
5300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5301$as_echo "$ac_cv_header_stdc" >&6; }
7357c5b6 5302if test $ac_cv_header_stdc = yes; then
d7040cdb 5303
81ecdfbb 5304$as_echo "#define STDC_HEADERS 1" >>confdefs.h
d7040cdb 5305
7357c5b6 5306fi
d7040cdb 5307
7357c5b6 5308# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7357c5b6
AM
5309for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5310 inttypes.h stdint.h unistd.h
81ecdfbb
RW
5311do :
5312 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5313ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5314"
5315eval as_val=\$$as_ac_Header
5316 if test "x$as_val" = x""yes; then :
7357c5b6 5317 cat >>confdefs.h <<_ACEOF
81ecdfbb 5318#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7357c5b6 5319_ACEOF
d7040cdb 5320
7357c5b6
AM
5321fi
5322
5323done
5324
5325
5326
81ecdfbb
RW
5327 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5328if test "x$ac_cv_header_minix_config_h" = x""yes; then :
7357c5b6
AM
5329 MINIX=yes
5330else
5331 MINIX=
5332fi
d7040cdb
SE
5333
5334
7357c5b6 5335 if test "$MINIX" = yes; then
d7040cdb 5336
81ecdfbb 5337$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
d7040cdb
SE
5338
5339
81ecdfbb 5340$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
d7040cdb
SE
5341
5342
81ecdfbb 5343$as_echo "#define _MINIX 1" >>confdefs.h
d7040cdb 5344
7357c5b6 5345 fi
d7040cdb
SE
5346
5347
81ecdfbb
RW
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5349$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5350if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5351 $as_echo_n "(cached) " >&6
d053aef8 5352else
81ecdfbb 5353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d053aef8 5354/* end confdefs.h. */
ce3c775b
NC
5355
5356# define __EXTENSIONS__ 1
5357 $ac_includes_default
d053aef8
JK
5358int
5359main ()
5360{
5361
5362 ;
5363 return 0;
5364}
5365_ACEOF
81ecdfbb 5366if ac_fn_c_try_compile "$LINENO"; then :
ce3c775b 5367 ac_cv_safe_to_define___extensions__=yes
d053aef8 5368else
81ecdfbb 5369 ac_cv_safe_to_define___extensions__=no
d053aef8 5370fi
81ecdfbb 5371rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ce3c775b 5372fi
81ecdfbb
RW
5373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5374$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
ce3c775b 5375 test $ac_cv_safe_to_define___extensions__ = yes &&
81ecdfbb 5376 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
d053aef8 5377
81ecdfbb 5378 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
d053aef8 5379
81ecdfbb
RW
5380 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5381
5382 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5383
5384 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
d053aef8 5385
ce3c775b 5386
d053aef8 5387
d053aef8 5388
d7040cdb 5389
718a6fd8
SE
5390case `pwd` in
5391 *\ * | *\ *)
81ecdfbb
RW
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5393$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
718a6fd8 5394esac
d7040cdb
SE
5395
5396
7357c5b6 5397
3725885a
RW
5398macro_version='2.2.7a'
5399macro_revision='1.3134'
7357c5b6
AM
5400
5401
5402
5403
5404
5405
7357c5b6
AM
5406
5407
5408
5409
5410
5411
5412
718a6fd8 5413ltmain="$ac_aux_dir/ltmain.sh"
7357c5b6 5414
3725885a
RW
5415# Backslashify metacharacters that are still active within
5416# double-quoted strings.
5417sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5418
5419# Same as above, but do not quote variable references.
5420double_quote_subst='s/\(["`\\]\)/\\\1/g'
5421
5422# Sed substitution to delay expansion of an escaped shell variable in a
5423# double_quote_subst'ed string.
5424delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5425
5426# Sed substitution to delay expansion of an escaped single quote.
5427delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5428
5429# Sed substitution to avoid accidental globbing in evaled expressions
5430no_glob_subst='s/\*/\\\*/g'
5431
5432ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5433ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5434ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5435
5436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5437$as_echo_n "checking how to print strings... " >&6; }
5438# Test print first, because it will be a builtin if present.
5439if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5440 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5441 ECHO='print -r --'
5442elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5443 ECHO='printf %s\n'
5444else
5445 # Use this function as a fallback that always works.
5446 func_fallback_echo ()
5447 {
5448 eval 'cat <<_LTECHO_EOF
5449$1
5450_LTECHO_EOF'
5451 }
5452 ECHO='func_fallback_echo'
5453fi
5454
5455# func_echo_all arg...
5456# Invoke $ECHO with all args, space-separated.
5457func_echo_all ()
5458{
5459 $ECHO ""
5460}
5461
5462case "$ECHO" in
5463 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5464$as_echo "printf" >&6; } ;;
5465 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5466$as_echo "print -r" >&6; } ;;
5467 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5468$as_echo "cat" >&6; } ;;
5469esac
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
81ecdfbb
RW
5484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5485$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5486if test "${ac_cv_path_SED+set}" = set; then :
5487 $as_echo_n "(cached) " >&6
7357c5b6 5488else
81ecdfbb
RW
5489 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5490 for ac_i in 1 2 3 4 5 6 7; do
5491 ac_script="$ac_script$as_nl$ac_script"
5492 done
5493 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5494 { ac_script=; unset ac_script;}
5495 if test -z "$SED"; then
5496 ac_path_SED_found=false
5497 # Loop through the user's path and test for each of PROGNAME-LIST
5498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7357c5b6
AM
5499for as_dir in $PATH
5500do
5501 IFS=$as_save_IFS
5502 test -z "$as_dir" && as_dir=.
81ecdfbb 5503 for ac_prog in sed gsed; do
7357c5b6 5504 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb
RW
5505 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5506 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5507# Check for GNU ac_path_SED and select it if it is found.
5508 # Check for GNU $ac_path_SED
5509case `"$ac_path_SED" --version 2>&1` in
5510*GNU*)
5511 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5512*)
5513 ac_count=0
5514 $as_echo_n 0123456789 >"conftest.in"
5515 while :
5516 do
5517 cat "conftest.in" "conftest.in" >"conftest.tmp"
5518 mv "conftest.tmp" "conftest.in"
5519 cp "conftest.in" "conftest.nl"
5520 $as_echo '' >> "conftest.nl"
5521 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5522 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5523 as_fn_arith $ac_count + 1 && ac_count=$as_val
5524 if test $ac_count -gt ${ac_path_SED_max-0}; then
5525 # Best one so far, save it but keep looking for a better one
5526 ac_cv_path_SED="$ac_path_SED"
5527 ac_path_SED_max=$ac_count
5528 fi
5529 # 10*(2^10) chars as input seems more than enough
5530 test $ac_count -gt 10 && break
5531 done
5532 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5533esac
5534
5535 $ac_path_SED_found && break 3
7357c5b6
AM
5536 done
5537 done
81ecdfbb 5538 done
7357c5b6 5539IFS=$as_save_IFS
81ecdfbb
RW
5540 if test -z "$ac_cv_path_SED"; then
5541 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
7357c5b6 5542 fi
81ecdfbb
RW
5543else
5544 ac_cv_path_SED=$SED
7357c5b6
AM
5545fi
5546
81ecdfbb
RW
5547fi
5548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5549$as_echo "$ac_cv_path_SED" >&6; }
5550 SED="$ac_cv_path_SED"
5551 rm -f conftest.sed
7357c5b6
AM
5552
5553test -z "$SED" && SED=sed
5554Xsed="$SED -e 1s/^X//"
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
81ecdfbb
RW
5566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5567$as_echo_n "checking for fgrep... " >&6; }
5568if test "${ac_cv_path_FGREP+set}" = set; then :
5569 $as_echo_n "(cached) " >&6
7357c5b6 5570else
81ecdfbb
RW
5571 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5572 then ac_cv_path_FGREP="$GREP -F"
5573 else
5574 if test -z "$FGREP"; then
5575 ac_path_FGREP_found=false
5576 # Loop through the user's path and test for each of PROGNAME-LIST
5577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5578for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5579do
5580 IFS=$as_save_IFS
5581 test -z "$as_dir" && as_dir=.
5582 for ac_prog in fgrep; do
5583 for ac_exec_ext in '' $ac_executable_extensions; do
5584 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5585 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5586# Check for GNU ac_path_FGREP and select it if it is found.
5587 # Check for GNU $ac_path_FGREP
5588case `"$ac_path_FGREP" --version 2>&1` in
5589*GNU*)
5590 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5591*)
5592 ac_count=0
5593 $as_echo_n 0123456789 >"conftest.in"
5594 while :
5595 do
5596 cat "conftest.in" "conftest.in" >"conftest.tmp"
5597 mv "conftest.tmp" "conftest.in"
5598 cp "conftest.in" "conftest.nl"
5599 $as_echo 'FGREP' >> "conftest.nl"
5600 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5601 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5602 as_fn_arith $ac_count + 1 && ac_count=$as_val
5603 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5604 # Best one so far, save it but keep looking for a better one
5605 ac_cv_path_FGREP="$ac_path_FGREP"
5606 ac_path_FGREP_max=$ac_count
7357c5b6 5607 fi
81ecdfbb
RW
5608 # 10*(2^10) chars as input seems more than enough
5609 test $ac_count -gt 10 && break
5610 done
5611 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5612esac
5613
5614 $ac_path_FGREP_found && break 3
5615 done
5616 done
5617 done
5618IFS=$as_save_IFS
5619 if test -z "$ac_cv_path_FGREP"; then
5620 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5621 fi
5622else
5623 ac_cv_path_FGREP=$FGREP
7357c5b6 5624fi
81ecdfbb
RW
5625
5626 fi
5627fi
5628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5629$as_echo "$ac_cv_path_FGREP" >&6; }
5630 FGREP="$ac_cv_path_FGREP"
7357c5b6
AM
5631
5632
5633test -z "$GREP" && GREP=grep
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
81ecdfbb
RW
5653# Check whether --with-gnu-ld was given.
5654if test "${with_gnu_ld+set}" = set; then :
5655 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7357c5b6
AM
5656else
5657 with_gnu_ld=no
81ecdfbb
RW
5658fi
5659
7357c5b6
AM
5660ac_prog=ld
5661if test "$GCC" = yes; then
5662 # Check if gcc -print-prog-name=ld gives a path.
81ecdfbb
RW
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5664$as_echo_n "checking for ld used by $CC... " >&6; }
7357c5b6
AM
5665 case $host in
5666 *-*-mingw*)
5667 # gcc leaves a trailing carriage return which upsets mingw
5668 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5669 *)
5670 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5671 esac
5672 case $ac_prog in
5673 # Accept absolute paths.
5674 [\\/]* | ?:[\\/]*)
5675 re_direlt='/[^/][^/]*/\.\./'
5676 # Canonicalize the pathname of ld
5677 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5678 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
d7040cdb 5679 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
cfbc9945
SE
5680 done
5681 test -z "$LD" && LD="$ac_prog"
5682 ;;
5bd8253d 5683 "")
cfbc9945
SE
5684 # If it fails, then pretend we aren't using GCC.
5685 ac_prog=ld
5bd8253d
L
5686 ;;
5687 *)
cfbc9945
SE
5688 # If it is relative, then search for the first ld in PATH.
5689 with_gnu_ld=unknown
5bd8253d 5690 ;;
cfbc9945
SE
5691 esac
5692elif test "$with_gnu_ld" = yes; then
81ecdfbb
RW
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5694$as_echo_n "checking for GNU ld... " >&6; }
cfbc9945 5695else
81ecdfbb
RW
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5697$as_echo_n "checking for non-GNU ld... " >&6; }
cfbc9945 5698fi
81ecdfbb
RW
5699if test "${lt_cv_path_LD+set}" = set; then :
5700 $as_echo_n "(cached) " >&6
cfbc9945
SE
5701else
5702 if test -z "$LD"; then
d7040cdb 5703 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
cfbc9945 5704 for ac_dir in $PATH; do
d7040cdb 5705 IFS="$lt_save_ifs"
cfbc9945
SE
5706 test -z "$ac_dir" && ac_dir=.
5707 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5708 lt_cv_path_LD="$ac_dir/$ac_prog"
5709 # Check to see if the program is GNU ld. I'd rather use --version,
d7040cdb 5710 # but apparently some variants of GNU ld only accept -v.
cfbc9945 5711 # Break only if it was the GNU/non-GNU ld that we prefer.
d7040cdb
SE
5712 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5713 *GNU* | *'with BFD'*)
cfbc9945 5714 test "$with_gnu_ld" != no && break
d7040cdb
SE
5715 ;;
5716 *)
cfbc9945 5717 test "$with_gnu_ld" != yes && break
d7040cdb
SE
5718 ;;
5719 esac
cfbc9945
SE
5720 fi
5721 done
d7040cdb 5722 IFS="$lt_save_ifs"
cfbc9945
SE
5723else
5724 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9e9b66a9 5725fi
1ad12f97
NC
5726fi
5727
cfbc9945
SE
5728LD="$lt_cv_path_LD"
5729if test -n "$LD"; then
81ecdfbb
RW
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5731$as_echo "$LD" >&6; }
cfbc9945 5732else
81ecdfbb
RW
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5734$as_echo "no" >&6; }
cfbc9945 5735fi
81ecdfbb
RW
5736test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5738$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5739if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5740 $as_echo_n "(cached) " >&6
cfbc9945 5741else
d7040cdb
SE
5742 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5743case `$LD -v 2>&1 </dev/null` in
5744*GNU* | *'with BFD'*)
cfbc9945 5745 lt_cv_prog_gnu_ld=yes
d7040cdb
SE
5746 ;;
5747*)
cfbc9945 5748 lt_cv_prog_gnu_ld=no
d7040cdb
SE
5749 ;;
5750esac
49c96104 5751fi
81ecdfbb
RW
5752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5753$as_echo "$lt_cv_prog_gnu_ld" >&6; }
cfbc9945 5754with_gnu_ld=$lt_cv_prog_gnu_ld
49c96104 5755
9e9b66a9 5756
cfbc9945 5757
d7040cdb
SE
5758
5759
5760
5761
5762
5763
81ecdfbb
RW
5764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5765$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5766if test "${lt_cv_path_NM+set}" = set; then :
5767 $as_echo_n "(cached) " >&6
cfbc9945
SE
5768else
5769 if test -n "$NM"; then
5770 # Let the user override the test.
5771 lt_cv_path_NM="$NM"
5772else
d7040cdb
SE
5773 lt_nm_to_check="${ac_tool_prefix}nm"
5774 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5775 lt_nm_to_check="$lt_nm_to_check nm"
5776 fi
5777 for lt_tmp_nm in $lt_nm_to_check; do
5778 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5779 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5780 IFS="$lt_save_ifs"
5781 test -z "$ac_dir" && ac_dir=.
5782 tmp_nm="$ac_dir/$lt_tmp_nm"
5783 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5784 # Check to see if the nm accepts a BSD-compat flag.
5785 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5786 # nm: unknown option "B" ignored
5787 # Tru64's nm complains that /dev/null is an invalid object file
5788 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5789 */dev/null* | *'Invalid file or object type'*)
5790 lt_cv_path_NM="$tmp_nm -B"
5791 break
5792 ;;
5793 *)
5794 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5795 */dev/null*)
5796 lt_cv_path_NM="$tmp_nm -p"
5797 break
5798 ;;
5799 *)
5800 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5801 continue # so that we can try to find one that supports BSD flags
5802 ;;
5803 esac
5804 ;;
5805 esac
cfbc9945 5806 fi
d7040cdb
SE
5807 done
5808 IFS="$lt_save_ifs"
cfbc9945 5809 done
d7040cdb 5810 : ${lt_cv_path_NM=no}
cfbc9945 5811fi
a2d91340 5812fi
81ecdfbb
RW
5813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5814$as_echo "$lt_cv_path_NM" >&6; }
d7040cdb
SE
5815if test "$lt_cv_path_NM" != "no"; then
5816 NM="$lt_cv_path_NM"
cfbc9945 5817else
d7040cdb 5818 # Didn't find any BSD compatible name lister, look for dumpbin.
3725885a
RW
5819 if test -n "$DUMPBIN"; then :
5820 # Let the user override the test.
5821 else
5822 if test -n "$ac_tool_prefix"; then
5823 for ac_prog in dumpbin "link -dump"
d7040cdb
SE
5824 do
5825 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5826set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
5827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5828$as_echo_n "checking for $ac_word... " >&6; }
5829if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5830 $as_echo_n "(cached) " >&6
252b5132 5831else
d7040cdb
SE
5832 if test -n "$DUMPBIN"; then
5833 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5834else
5835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5836for as_dir in $PATH
5837do
5838 IFS=$as_save_IFS
5839 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5840 for ac_exec_ext in '' $ac_executable_extensions; do
5841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 5842 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
81ecdfbb 5843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
5844 break 2
5845 fi
5846done
81ecdfbb
RW
5847 done
5848IFS=$as_save_IFS
5464f5a1 5849
d7040cdb
SE
5850fi
5851fi
5852DUMPBIN=$ac_cv_prog_DUMPBIN
5853if test -n "$DUMPBIN"; then
81ecdfbb
RW
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5855$as_echo "$DUMPBIN" >&6; }
d7040cdb 5856else
81ecdfbb
RW
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5858$as_echo "no" >&6; }
d7040cdb 5859fi
d5fbea21 5860
81ecdfbb 5861
d7040cdb
SE
5862 test -n "$DUMPBIN" && break
5863 done
5864fi
5865if test -z "$DUMPBIN"; then
5866 ac_ct_DUMPBIN=$DUMPBIN
3725885a 5867 for ac_prog in dumpbin "link -dump"
d7040cdb
SE
5868do
5869 # Extract the first word of "$ac_prog", so it can be a program name with args.
5870set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
5871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5872$as_echo_n "checking for $ac_word... " >&6; }
5873if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5874 $as_echo_n "(cached) " >&6
d7040cdb
SE
5875else
5876 if test -n "$ac_ct_DUMPBIN"; then
5877 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5878else
5879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5880for as_dir in $PATH
5881do
5882 IFS=$as_save_IFS
5883 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5884 for ac_exec_ext in '' $ac_executable_extensions; do
5885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 5886 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
81ecdfbb 5887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb 5888 break 2
cfbc9945 5889 fi
d7040cdb 5890done
81ecdfbb
RW
5891 done
5892IFS=$as_save_IFS
d5fbea21 5893
d7040cdb
SE
5894fi
5895fi
5896ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5897if test -n "$ac_ct_DUMPBIN"; then
81ecdfbb
RW
5898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5899$as_echo "$ac_ct_DUMPBIN" >&6; }
d7040cdb 5900else
81ecdfbb
RW
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5902$as_echo "no" >&6; }
d7040cdb 5903fi
d5fbea21 5904
81ecdfbb 5905
d7040cdb
SE
5906 test -n "$ac_ct_DUMPBIN" && break
5907done
24443139 5908
81ecdfbb
RW
5909 if test "x$ac_ct_DUMPBIN" = x; then
5910 DUMPBIN=":"
5911 else
5912 case $cross_compiling:$ac_tool_warned in
5913yes:)
5914{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5915$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5916ac_tool_warned=yes ;;
5917esac
5918 DUMPBIN=$ac_ct_DUMPBIN
5919 fi
d7040cdb 5920fi
24443139 5921
3725885a
RW
5922 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5923 *COFF*)
5924 DUMPBIN="$DUMPBIN -symbols"
5925 ;;
5926 *)
5927 DUMPBIN=:
5928 ;;
5929 esac
5930 fi
24443139 5931
d7040cdb
SE
5932 if test "$DUMPBIN" != ":"; then
5933 NM="$DUMPBIN"
cfbc9945 5934 fi
d7040cdb
SE
5935fi
5936test -z "$NM" && NM=nm
a703a6ea 5937
f5385ebf 5938
cfbc9945 5939
24443139
AS
5940
5941
5942
81ecdfbb
RW
5943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5944$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5945if test "${lt_cv_nm_interface+set}" = set; then :
5946 $as_echo_n "(cached) " >&6
d7040cdb
SE
5947else
5948 lt_cv_nm_interface="BSD nm"
5949 echo "int some_variable = 0;" > conftest.$ac_ext
3725885a 5950 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
d7040cdb
SE
5951 (eval "$ac_compile" 2>conftest.err)
5952 cat conftest.err >&5
3725885a 5953 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
d7040cdb
SE
5954 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5955 cat conftest.err >&5
3725885a 5956 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
d7040cdb
SE
5957 cat conftest.out >&5
5958 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5959 lt_cv_nm_interface="MS dumpbin"
5960 fi
5961 rm -f conftest*
cfbc9945 5962fi
81ecdfbb
RW
5963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5964$as_echo "$lt_cv_nm_interface" >&6; }
a703a6ea 5965
81ecdfbb
RW
5966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5967$as_echo_n "checking whether ln -s works... " >&6; }
d7040cdb
SE
5968LN_S=$as_ln_s
5969if test "$LN_S" = "ln -s"; then
81ecdfbb
RW
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5971$as_echo "yes" >&6; }
d7040cdb 5972else
81ecdfbb
RW
5973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5974$as_echo "no, using $LN_S" >&6; }
d7040cdb 5975fi
252b5132 5976
cfbc9945 5977# find the maximum length of command line arguments
81ecdfbb
RW
5978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5979$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5980if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5981 $as_echo_n "(cached) " >&6
cfbc9945
SE
5982else
5983 i=0
5984 teststring="ABCD"
5464f5a1 5985
cfbc9945
SE
5986 case $build_os in
5987 msdosdjgpp*)
5988 # On DJGPP, this test can blow up pretty badly due to problems in libc
5989 # (any single argument exceeding 2000 bytes causes a buffer overrun
5990 # during glob expansion). Even if it were fixed, the result of this
5991 # check would be larger than it should be.
5992 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5993 ;;
5464f5a1 5994
d7040cdb
SE
5995 gnu*)
5996 # Under GNU Hurd, this test is not required because there is
5997 # no limit to the length of command line arguments.
5998 # Libtool will interpret -1 as no limit whatsoever
5999 lt_cv_sys_max_cmd_len=-1;
6000 ;;
6001
718a6fd8 6002 cygwin* | mingw* | cegcc*)
cfbc9945
SE
6003 # On Win9x/ME, this test blows up -- it succeeds, but takes
6004 # about 5 minutes as the teststring grows exponentially.
6005 # Worse, since 9x/ME are not pre-emptively multitasking,
6006 # you end up with a "frozen" computer, even though with patience
6007 # the test eventually succeeds (with a max line length of 256k).
6008 # Instead, let's just punt: use the minimum linelength reported by
6009 # all of the supported platforms: 8192 (on NT/2K/XP).
6010 lt_cv_sys_max_cmd_len=8192;
6011 ;;
5464f5a1 6012
3725885a
RW
6013 mint*)
6014 # On MiNT this can take a long time and run out of memory.
6015 lt_cv_sys_max_cmd_len=8192;
6016 ;;
6017
cfbc9945
SE
6018 amigaos*)
6019 # On AmigaOS with pdksh, this test takes hours, literally.
6020 # So we just punt and use a minimum line length of 8192.
6021 lt_cv_sys_max_cmd_len=8192;
6022 ;;
5464f5a1 6023
cfbc9945
SE
6024 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6025 # This has been around since 386BSD, at least. Likely further.
6026 if test -x /sbin/sysctl; then
6027 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6028 elif test -x /usr/sbin/sysctl; then
6029 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6030 else
d7040cdb 6031 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
cfbc9945
SE
6032 fi
6033 # And add a safety zone
6034 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6035 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6036 ;;
d7040cdb
SE
6037
6038 interix*)
6039 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6040 lt_cv_sys_max_cmd_len=196608
6041 ;;
6042
6043 osf*)
6044 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6045 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6046 # nice to cause kernel panics so lets avoid the loop below.
6047 # First set a reasonable default.
6048 lt_cv_sys_max_cmd_len=16384
6049 #
6050 if test -x /sbin/sysconfig; then
6051 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6052 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6053 esac
6054 fi
6055 ;;
6056 sco3.2v5*)
6057 lt_cv_sys_max_cmd_len=102400
6058 ;;
6059 sysv5* | sco5v6* | sysv4.2uw2*)
6060 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6061 if test -n "$kargmax"; then
6062 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6063 else
6064 lt_cv_sys_max_cmd_len=32768
6065 fi
6066 ;;
6067 *)
718a6fd8
SE
6068 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6069 if test -n "$lt_cv_sys_max_cmd_len"; then
79887925
L
6070 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6071 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6072 else
6073 # Make teststring a little bigger before we do anything with it.
6074 # a 1K string should be a reasonable start.
6075 for i in 1 2 3 4 5 6 7 8 ; do
6076 teststring=$teststring$teststring
6077 done
6078 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6079 # If test is not a shell built-in, we'll probably end up computing a
6080 # maximum length that is only half of the actual maximum length, but
6081 # we can't tell.
3725885a
RW
6082 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6083 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
79887925
L
6084 test $i != 17 # 1/2 MB should be enough
6085 do
6086 i=`expr $i + 1`
6087 teststring=$teststring$teststring
6088 done
6089 # Only check the string length outside the loop.
6090 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6091 teststring=
6092 # Add a significant safety factor because C++ compilers can tack on
6093 # massive amounts of additional arguments before passing them to the
6094 # linker. It appears as though 1/2 is a usable value.
6095 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6096 fi
d7040cdb 6097 ;;
cfbc9945 6098 esac
5464f5a1 6099
252b5132 6100fi
cfbc9945 6101
d7040cdb 6102if test -n $lt_cv_sys_max_cmd_len ; then
81ecdfbb
RW
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6104$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5464f5a1 6105else
81ecdfbb
RW
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6107$as_echo "none" >&6; }
5464f5a1 6108fi
d7040cdb 6109max_cmd_len=$lt_cv_sys_max_cmd_len
252b5132 6110
cfbc9945 6111
252b5132 6112
cfbc9945 6113
cfbc9945 6114
d7040cdb 6115
d7040cdb
SE
6116: ${CP="cp -f"}
6117: ${MV="mv -f"}
6118: ${RM="rm -f"}
6119
81ecdfbb
RW
6120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6121$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
d7040cdb
SE
6122# Try some XSI features
6123xsi_shell=no
6124( _lt_dummy="a/b/c"
6125 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
718a6fd8
SE
6126 = c,a/b,, \
6127 && eval 'test $(( 1 + 1 )) -eq 2 \
6128 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
d7040cdb 6129 && xsi_shell=yes
81ecdfbb
RW
6130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6131$as_echo "$xsi_shell" >&6; }
d7040cdb
SE
6132
6133
81ecdfbb
RW
6134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6135$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
d7040cdb
SE
6136lt_shell_append=no
6137( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6138 >/dev/null 2>&1 \
6139 && lt_shell_append=yes
81ecdfbb
RW
6140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6141$as_echo "$lt_shell_append" >&6; }
d7040cdb
SE
6142
6143
6144if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6145 lt_unset=unset
5464f5a1 6146else
d7040cdb 6147 lt_unset=false
5464f5a1 6148fi
252b5132 6149
d7040cdb
SE
6150
6151
6152
6153
6154# test EBCDIC or ASCII
6155case `echo X|tr X '\101'` in
6156 A) # ASCII based system
6157 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6158 lt_SP2NL='tr \040 \012'
6159 lt_NL2SP='tr \015\012 \040\040'
6160 ;;
6161 *) # EBCDIC based system
6162 lt_SP2NL='tr \100 \n'
6163 lt_NL2SP='tr \r\n \100\100'
6164 ;;
6165esac
6166
6167
6168
6169
6170
6171
6172
6173
6174
81ecdfbb
RW
6175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6176$as_echo_n "checking for $LD option to reload object files... " >&6; }
6177if test "${lt_cv_ld_reload_flag+set}" = set; then :
6178 $as_echo_n "(cached) " >&6
5464f5a1 6179else
d7040cdb
SE
6180 lt_cv_ld_reload_flag='-r'
6181fi
81ecdfbb
RW
6182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6183$as_echo "$lt_cv_ld_reload_flag" >&6; }
d7040cdb
SE
6184reload_flag=$lt_cv_ld_reload_flag
6185case $reload_flag in
6186"" | " "*) ;;
6187*) reload_flag=" $reload_flag" ;;
6188esac
6189reload_cmds='$LD$reload_flag -o $output$reload_objs'
6190case $host_os in
6191 darwin*)
6192 if test "$GCC" = yes; then
6193 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6194 else
6195 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6196 fi
6197 ;;
6198esac
6199
6200
6201
6202
6203
6204
6205
6206
6207
718a6fd8
SE
6208if test -n "$ac_tool_prefix"; then
6209 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6210set dummy ${ac_tool_prefix}objdump; ac_word=$2
81ecdfbb
RW
6211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6212$as_echo_n "checking for $ac_word... " >&6; }
6213if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6214 $as_echo_n "(cached) " >&6
718a6fd8
SE
6215else
6216 if test -n "$OBJDUMP"; then
6217 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6218else
6219as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6220for as_dir in $PATH
6221do
6222 IFS=$as_save_IFS
6223 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6224 for ac_exec_ext in '' $ac_executable_extensions; do
6225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 6226 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
81ecdfbb 6227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
6228 break 2
6229 fi
6230done
81ecdfbb
RW
6231 done
6232IFS=$as_save_IFS
718a6fd8
SE
6233
6234fi
6235fi
6236OBJDUMP=$ac_cv_prog_OBJDUMP
6237if test -n "$OBJDUMP"; then
81ecdfbb
RW
6238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6239$as_echo "$OBJDUMP" >&6; }
718a6fd8 6240else
81ecdfbb
RW
6241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6242$as_echo "no" >&6; }
718a6fd8
SE
6243fi
6244
81ecdfbb 6245
718a6fd8
SE
6246fi
6247if test -z "$ac_cv_prog_OBJDUMP"; then
6248 ac_ct_OBJDUMP=$OBJDUMP
6249 # Extract the first word of "objdump", so it can be a program name with args.
6250set dummy objdump; ac_word=$2
81ecdfbb
RW
6251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6252$as_echo_n "checking for $ac_word... " >&6; }
6253if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6254 $as_echo_n "(cached) " >&6
718a6fd8
SE
6255else
6256 if test -n "$ac_ct_OBJDUMP"; then
6257 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6258else
6259as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6260for as_dir in $PATH
6261do
6262 IFS=$as_save_IFS
6263 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6264 for ac_exec_ext in '' $ac_executable_extensions; do
6265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 6266 ac_cv_prog_ac_ct_OBJDUMP="objdump"
81ecdfbb 6267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
6268 break 2
6269 fi
6270done
81ecdfbb
RW
6271 done
6272IFS=$as_save_IFS
718a6fd8 6273
718a6fd8
SE
6274fi
6275fi
6276ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6277if test -n "$ac_ct_OBJDUMP"; then
81ecdfbb
RW
6278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6279$as_echo "$ac_ct_OBJDUMP" >&6; }
718a6fd8 6280else
81ecdfbb
RW
6281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6282$as_echo "no" >&6; }
718a6fd8
SE
6283fi
6284
81ecdfbb
RW
6285 if test "x$ac_ct_OBJDUMP" = x; then
6286 OBJDUMP="false"
6287 else
6288 case $cross_compiling:$ac_tool_warned in
6289yes:)
6290{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6291$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6292ac_tool_warned=yes ;;
6293esac
6294 OBJDUMP=$ac_ct_OBJDUMP
6295 fi
718a6fd8
SE
6296else
6297 OBJDUMP="$ac_cv_prog_OBJDUMP"
6298fi
6299
6300test -z "$OBJDUMP" && OBJDUMP=objdump
6301
6302
6303
6304
6305
6306
6307
6308
d7040cdb 6309
81ecdfbb
RW
6310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6311$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6312if test "${lt_cv_deplibs_check_method+set}" = set; then :
6313 $as_echo_n "(cached) " >&6
d7040cdb
SE
6314else
6315 lt_cv_file_magic_cmd='$MAGIC_CMD'
6316lt_cv_file_magic_test_file=
6317lt_cv_deplibs_check_method='unknown'
6318# Need to set the preceding variable on all platforms that support
6319# interlibrary dependencies.
6320# 'none' -- dependencies not supported.
6321# `unknown' -- same as none, but documents that we really don't know.
6322# 'pass_all' -- all dependencies passed with no checks.
6323# 'test_compile' -- check by making test program.
6324# 'file_magic [[regex]]' -- check by looking for files in library path
6325# which responds to the $file_magic_cmd with a given extended regex.
6326# If you have `file' or equivalent on your system and you're not sure
6327# whether `pass_all' will *always* work, you probably want this one.
6328
6329case $host_os in
e81819a5 6330aix[4-9]*)
d7040cdb
SE
6331 lt_cv_deplibs_check_method=pass_all
6332 ;;
6333
6334beos*)
6335 lt_cv_deplibs_check_method=pass_all
6336 ;;
6337
6338bsdi[45]*)
6339 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6340 lt_cv_file_magic_cmd='/usr/bin/file -L'
6341 lt_cv_file_magic_test_file=/shlib/libc.so
6342 ;;
6343
6344cygwin*)
6345 # func_win32_libid is a shell function defined in ltmain.sh
6346 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6347 lt_cv_file_magic_cmd='func_win32_libid'
6348 ;;
6349
6350mingw* | pw32*)
6351 # Base MSYS/MinGW do not provide the 'file' command needed by
6352 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6353 # unless we find 'file', for example because we are cross-compiling.
3725885a
RW
6354 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6355 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
d7040cdb
SE
6356 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6357 lt_cv_file_magic_cmd='func_win32_libid'
6358 else
6359 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6360 lt_cv_file_magic_cmd='$OBJDUMP -f'
6361 fi
6362 ;;
6363
3725885a 6364cegcc*)
718a6fd8
SE
6365 # use the weaker test based on 'objdump'. See mingw*.
6366 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6367 lt_cv_file_magic_cmd='$OBJDUMP -f'
6368 ;;
6369
d7040cdb
SE
6370darwin* | rhapsody*)
6371 lt_cv_deplibs_check_method=pass_all
cfbc9945 6372 ;;
d7040cdb
SE
6373
6374freebsd* | dragonfly*)
6375 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6376 case $host_cpu in
6377 i*86 )
6378 # Not sure whether the presence of OpenBSD here was a mistake.
6379 # Let's accept both of them until this is cleared up.
6380 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6381 lt_cv_file_magic_cmd=/usr/bin/file
6382 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6383 ;;
6384 esac
6385 else
6386 lt_cv_deplibs_check_method=pass_all
6387 fi
6388 ;;
6389
6390gnu*)
6391 lt_cv_deplibs_check_method=pass_all
cfbc9945 6392 ;;
d7040cdb 6393
3725885a
RW
6394haiku*)
6395 lt_cv_deplibs_check_method=pass_all
6396 ;;
6397
d7040cdb
SE
6398hpux10.20* | hpux11*)
6399 lt_cv_file_magic_cmd=/usr/bin/file
6400 case $host_cpu in
6401 ia64*)
6402 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6403 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6404 ;;
6405 hppa*64*)
3725885a 6406 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
6407 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6408 ;;
cfbc9945 6409 *)
3725885a 6410 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
d7040cdb
SE
6411 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6412 ;;
6413 esac
6414 ;;
6be7c12c 6415
d7040cdb
SE
6416interix[3-9]*)
6417 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6418 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6419 ;;
cfbc9945 6420
d7040cdb
SE
6421irix5* | irix6* | nonstopux*)
6422 case $LD in
6423 *-32|*"-32 ") libmagic=32-bit;;
6424 *-n32|*"-n32 ") libmagic=N32;;
6425 *-64|*"-64 ") libmagic=64-bit;;
6426 *) libmagic=never-match;;
6427 esac
6428 lt_cv_deplibs_check_method=pass_all
cfbc9945 6429 ;;
cfbc9945 6430
d7040cdb 6431# This must be Linux ELF.
58e24671 6432linux* | k*bsd*-gnu | kopensolaris*-gnu)
d7040cdb
SE
6433 lt_cv_deplibs_check_method=pass_all
6434 ;;
5464f5a1 6435
d7040cdb
SE
6436netbsd*)
6437 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6438 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
cfbc9945 6439 else
d7040cdb 6440 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
cfbc9945 6441 fi
d7040cdb
SE
6442 ;;
6443
6444newos6*)
6445 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6446 lt_cv_file_magic_cmd=/usr/bin/file
6447 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6448 ;;
6449
6450*nto* | *qnx*)
6451 lt_cv_deplibs_check_method=pass_all
6452 ;;
cfbc9945 6453
d7040cdb
SE
6454openbsd*)
6455 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6456 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6457 else
6458 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
cfbc9945
SE
6459 fi
6460 ;;
d7040cdb
SE
6461
6462osf3* | osf4* | osf5*)
6463 lt_cv_deplibs_check_method=pass_all
6464 ;;
6465
6466rdos*)
6467 lt_cv_deplibs_check_method=pass_all
6468 ;;
6469
6470solaris*)
6471 lt_cv_deplibs_check_method=pass_all
6472 ;;
6473
6474sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6475 lt_cv_deplibs_check_method=pass_all
6476 ;;
6477
6478sysv4 | sysv4.3*)
6479 case $host_vendor in
6480 motorola)
6481 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]'
6482 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6483 ;;
6484 ncr)
6485 lt_cv_deplibs_check_method=pass_all
6486 ;;
6487 sequent)
6488 lt_cv_file_magic_cmd='/bin/file'
6489 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6490 ;;
6491 sni)
6492 lt_cv_file_magic_cmd='/bin/file'
6493 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6494 lt_cv_file_magic_test_file=/lib/libc.so
6495 ;;
6496 siemens)
6497 lt_cv_deplibs_check_method=pass_all
6498 ;;
6499 pc)
6500 lt_cv_deplibs_check_method=pass_all
6501 ;;
6502 esac
6503 ;;
6504
6505tpf*)
6506 lt_cv_deplibs_check_method=pass_all
6507 ;;
cfbc9945
SE
6508esac
6509
d7040cdb 6510fi
81ecdfbb
RW
6511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6512$as_echo "$lt_cv_deplibs_check_method" >&6; }
d7040cdb
SE
6513file_magic_cmd=$lt_cv_file_magic_cmd
6514deplibs_check_method=$lt_cv_deplibs_check_method
6515test -z "$deplibs_check_method" && deplibs_check_method=unknown
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
cfbc9945 6528if test -n "$ac_tool_prefix"; then
d7040cdb
SE
6529 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6530set dummy ${ac_tool_prefix}ar; ac_word=$2
81ecdfbb
RW
6531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6532$as_echo_n "checking for $ac_word... " >&6; }
6533if test "${ac_cv_prog_AR+set}" = set; then :
6534 $as_echo_n "(cached) " >&6
5464f5a1 6535else
d7040cdb
SE
6536 if test -n "$AR"; then
6537 ac_cv_prog_AR="$AR" # Let the user override the test.
5464f5a1
NN
6538else
6539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6540for as_dir in $PATH
6541do
6542 IFS=$as_save_IFS
6543 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6544 for ac_exec_ext in '' $ac_executable_extensions; do
6545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 6546 ac_cv_prog_AR="${ac_tool_prefix}ar"
81ecdfbb 6547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5464f5a1
NN
6548 break 2
6549 fi
6550done
81ecdfbb
RW
6551 done
6552IFS=$as_save_IFS
5464f5a1
NN
6553
6554fi
6555fi
d7040cdb
SE
6556AR=$ac_cv_prog_AR
6557if test -n "$AR"; then
81ecdfbb
RW
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6559$as_echo "$AR" >&6; }
5464f5a1 6560else
81ecdfbb
RW
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6562$as_echo "no" >&6; }
5464f5a1
NN
6563fi
6564
81ecdfbb 6565
5464f5a1 6566fi
d7040cdb
SE
6567if test -z "$ac_cv_prog_AR"; then
6568 ac_ct_AR=$AR
6569 # Extract the first word of "ar", so it can be a program name with args.
6570set dummy ar; ac_word=$2
81ecdfbb
RW
6571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6572$as_echo_n "checking for $ac_word... " >&6; }
6573if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6574 $as_echo_n "(cached) " >&6
252b5132 6575else
d7040cdb
SE
6576 if test -n "$ac_ct_AR"; then
6577 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
252b5132 6578else
5464f5a1
NN
6579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6580for as_dir in $PATH
6581do
6582 IFS=$as_save_IFS
6583 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6584 for ac_exec_ext in '' $ac_executable_extensions; do
6585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 6586 ac_cv_prog_ac_ct_AR="ar"
81ecdfbb 6587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5464f5a1
NN
6588 break 2
6589 fi
6590done
81ecdfbb
RW
6591 done
6592IFS=$as_save_IFS
5464f5a1 6593
5464f5a1
NN
6594fi
6595fi
d7040cdb
SE
6596ac_ct_AR=$ac_cv_prog_ac_ct_AR
6597if test -n "$ac_ct_AR"; then
81ecdfbb
RW
6598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6599$as_echo "$ac_ct_AR" >&6; }
d7040cdb 6600else
81ecdfbb
RW
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6602$as_echo "no" >&6; }
5464f5a1
NN
6603fi
6604
81ecdfbb
RW
6605 if test "x$ac_ct_AR" = x; then
6606 AR="false"
6607 else
6608 case $cross_compiling:$ac_tool_warned in
6609yes:)
6610{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6611$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6612ac_tool_warned=yes ;;
6613esac
6614 AR=$ac_ct_AR
6615 fi
cfbc9945 6616else
d7040cdb 6617 AR="$ac_cv_prog_AR"
5464f5a1 6618fi
cfbc9945 6619
d7040cdb
SE
6620test -z "$AR" && AR=ar
6621test -z "$AR_FLAGS" && AR_FLAGS=cru
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
cfbc9945
SE
6633if test -n "$ac_tool_prefix"; then
6634 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6635set dummy ${ac_tool_prefix}strip; ac_word=$2
81ecdfbb
RW
6636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6637$as_echo_n "checking for $ac_word... " >&6; }
6638if test "${ac_cv_prog_STRIP+set}" = set; then :
6639 $as_echo_n "(cached) " >&6
5464f5a1 6640else
cfbc9945
SE
6641 if test -n "$STRIP"; then
6642 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5464f5a1
NN
6643else
6644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6645for as_dir in $PATH
6646do
6647 IFS=$as_save_IFS
6648 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6649 for ac_exec_ext in '' $ac_executable_extensions; do
6650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cfbc9945 6651 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
81ecdfbb 6652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5464f5a1
NN
6653 break 2
6654 fi
6655done
81ecdfbb
RW
6656 done
6657IFS=$as_save_IFS
5464f5a1
NN
6658
6659fi
6660fi
cfbc9945
SE
6661STRIP=$ac_cv_prog_STRIP
6662if test -n "$STRIP"; then
81ecdfbb
RW
6663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6664$as_echo "$STRIP" >&6; }
5464f5a1 6665else
81ecdfbb
RW
6666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6667$as_echo "no" >&6; }
5464f5a1
NN
6668fi
6669
81ecdfbb 6670
252b5132 6671fi
cfbc9945
SE
6672if test -z "$ac_cv_prog_STRIP"; then
6673 ac_ct_STRIP=$STRIP
6674 # Extract the first word of "strip", so it can be a program name with args.
6675set dummy strip; ac_word=$2
81ecdfbb
RW
6676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6677$as_echo_n "checking for $ac_word... " >&6; }
6678if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6679 $as_echo_n "(cached) " >&6
5464f5a1 6680else
cfbc9945
SE
6681 if test -n "$ac_ct_STRIP"; then
6682 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5464f5a1
NN
6683else
6684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6685for as_dir in $PATH
6686do
6687 IFS=$as_save_IFS
6688 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6689 for ac_exec_ext in '' $ac_executable_extensions; do
6690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cfbc9945 6691 ac_cv_prog_ac_ct_STRIP="strip"
81ecdfbb 6692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5464f5a1
NN
6693 break 2
6694 fi
6695done
81ecdfbb
RW
6696 done
6697IFS=$as_save_IFS
5464f5a1
NN
6698
6699fi
6700fi
cfbc9945
SE
6701ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6702if test -n "$ac_ct_STRIP"; then
81ecdfbb
RW
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6704$as_echo "$ac_ct_STRIP" >&6; }
5464f5a1 6705else
81ecdfbb
RW
6706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6707$as_echo "no" >&6; }
5464f5a1
NN
6708fi
6709
81ecdfbb
RW
6710 if test "x$ac_ct_STRIP" = x; then
6711 STRIP=":"
6712 else
6713 case $cross_compiling:$ac_tool_warned in
6714yes:)
6715{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6716$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6717ac_tool_warned=yes ;;
6718esac
6719 STRIP=$ac_ct_STRIP
6720 fi
cfbc9945
SE
6721else
6722 STRIP="$ac_cv_prog_STRIP"
5464f5a1
NN
6723fi
6724
d7040cdb 6725test -z "$STRIP" && STRIP=:
5464f5a1 6726
cfbc9945
SE
6727
6728
cfbc9945 6729
cfbc9945
SE
6730
6731
d7040cdb
SE
6732if test -n "$ac_tool_prefix"; then
6733 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6734set dummy ${ac_tool_prefix}ranlib; ac_word=$2
81ecdfbb
RW
6735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6736$as_echo_n "checking for $ac_word... " >&6; }
6737if test "${ac_cv_prog_RANLIB+set}" = set; then :
6738 $as_echo_n "(cached) " >&6
cfbc9945 6739else
d7040cdb
SE
6740 if test -n "$RANLIB"; then
6741 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6742else
6743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6744for as_dir in $PATH
6745do
6746 IFS=$as_save_IFS
6747 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6748 for ac_exec_ext in '' $ac_executable_extensions; do
6749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 6750 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
81ecdfbb 6751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb 6752 break 2
cfbc9945 6753 fi
d7040cdb 6754done
81ecdfbb
RW
6755 done
6756IFS=$as_save_IFS
cfbc9945 6757
d7040cdb
SE
6758fi
6759fi
6760RANLIB=$ac_cv_prog_RANLIB
6761if test -n "$RANLIB"; then
81ecdfbb
RW
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6763$as_echo "$RANLIB" >&6; }
d7040cdb 6764else
81ecdfbb
RW
6765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6766$as_echo "no" >&6; }
d7040cdb 6767fi
cfbc9945 6768
81ecdfbb 6769
d7040cdb
SE
6770fi
6771if test -z "$ac_cv_prog_RANLIB"; then
6772 ac_ct_RANLIB=$RANLIB
6773 # Extract the first word of "ranlib", so it can be a program name with args.
6774set dummy ranlib; ac_word=$2
81ecdfbb
RW
6775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6776$as_echo_n "checking for $ac_word... " >&6; }
6777if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6778 $as_echo_n "(cached) " >&6
d7040cdb
SE
6779else
6780 if test -n "$ac_ct_RANLIB"; then
6781 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6782else
6783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6784for as_dir in $PATH
6785do
6786 IFS=$as_save_IFS
6787 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6788 for ac_exec_ext in '' $ac_executable_extensions; do
6789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 6790 ac_cv_prog_ac_ct_RANLIB="ranlib"
81ecdfbb 6791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb 6792 break 2
cfbc9945 6793 fi
d7040cdb 6794done
81ecdfbb
RW
6795 done
6796IFS=$as_save_IFS
cfbc9945 6797
d7040cdb
SE
6798fi
6799fi
6800ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6801if test -n "$ac_ct_RANLIB"; then
81ecdfbb
RW
6802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6803$as_echo "$ac_ct_RANLIB" >&6; }
cfbc9945 6804else
81ecdfbb
RW
6805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6806$as_echo "no" >&6; }
d7040cdb 6807fi
5464f5a1 6808
81ecdfbb
RW
6809 if test "x$ac_ct_RANLIB" = x; then
6810 RANLIB=":"
6811 else
6812 case $cross_compiling:$ac_tool_warned in
6813yes:)
6814{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6815$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6816ac_tool_warned=yes ;;
6817esac
6818 RANLIB=$ac_ct_RANLIB
6819 fi
d7040cdb
SE
6820else
6821 RANLIB="$ac_cv_prog_RANLIB"
6822fi
5464f5a1 6823
d7040cdb 6824test -z "$RANLIB" && RANLIB=:
5464f5a1 6825
5464f5a1 6826
5464f5a1 6827
cfbc9945 6828
cfbc9945 6829
d7040cdb
SE
6830
6831# Determine commands to create old-style static archives.
718a6fd8 6832old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
d7040cdb
SE
6833old_postinstall_cmds='chmod 644 $oldlib'
6834old_postuninstall_cmds=
6835
6836if test -n "$RANLIB"; then
6837 case $host_os in
6838 openbsd*)
6839 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6840 ;;
6841 *)
6842 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6843 ;;
6844 esac
6845 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
cfbc9945 6846fi
cfbc9945 6847
3725885a
RW
6848case $host_os in
6849 darwin*)
6850 lock_old_archive_extraction=yes ;;
6851 *)
6852 lock_old_archive_extraction=no ;;
6853esac
6854
6855
6856
6857
6858
6859
cfbc9945 6860
cfbc9945
SE
6861
6862
cfbc9945 6863
cfbc9945 6864
cfbc9945 6865
cfbc9945 6866
cfbc9945
SE
6867
6868
cfbc9945 6869
cfbc9945 6870
cfbc9945
SE
6871
6872
6873
6874
6875
6876
6877
5464f5a1 6878
5464f5a1 6879
cfbc9945
SE
6880
6881
6882
5464f5a1 6883
5464f5a1 6884
cfbc9945
SE
6885
6886
6887
5464f5a1 6888
cfbc9945
SE
6889
6890
6891
6892
d7040cdb
SE
6893# If no C compiler was specified, use CC.
6894LTCC=${LTCC-"$CC"}
cfbc9945 6895
d7040cdb
SE
6896# If no C compiler flags were specified, use CFLAGS.
6897LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
cfbc9945 6898
d7040cdb
SE
6899# Allow CC to be a program name with arguments.
6900compiler=$CC
cfbc9945 6901
cfbc9945 6902
d7040cdb 6903# Check for command to grab the raw symbol name followed by C symbol from nm.
81ecdfbb
RW
6904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6905$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6906if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6907 $as_echo_n "(cached) " >&6
d7040cdb 6908else
5464f5a1 6909
d7040cdb
SE
6910# These are sane defaults that work on at least a few old systems.
6911# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5464f5a1 6912
d7040cdb
SE
6913# Character class describing NM global symbol codes.
6914symcode='[BCDEGRST]'
6915
6916# Regexp to match symbols that can be accessed directly from C.
6917sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6918
6919# Define system-specific variables.
6920case $host_os in
6921aix*)
6922 symcode='[BCDT]'
6923 ;;
718a6fd8 6924cygwin* | mingw* | pw32* | cegcc*)
d7040cdb
SE
6925 symcode='[ABCDGISTW]'
6926 ;;
6927hpux*)
6928 if test "$host_cpu" = ia64; then
6929 symcode='[ABCDEGRST]'
6930 fi
6931 ;;
6932irix* | nonstopux*)
6933 symcode='[BCDEGRST]'
6934 ;;
6935osf*)
6936 symcode='[BCDEGQRST]'
6937 ;;
6938solaris*)
6939 symcode='[BDRT]'
6940 ;;
6941sco3.2v5*)
6942 symcode='[DT]'
6943 ;;
6944sysv4.2uw2*)
6945 symcode='[DT]'
6946 ;;
6947sysv5* | sco5v6* | unixware* | OpenUNIX*)
6948 symcode='[ABDT]'
6949 ;;
6950sysv4)
6951 symcode='[DFNSTU]'
6952 ;;
cfbc9945 6953esac
5464f5a1 6954
d7040cdb
SE
6955# If we're using GNU nm, then use its standard symbol codes.
6956case `$NM -V 2>&1` in
6957*GNU* | *'with BFD'*)
6958 symcode='[ABCDGIRSTW]' ;;
6959esac
5464f5a1 6960
d7040cdb
SE
6961# Transform an extracted symbol line into a proper C declaration.
6962# Some systems (esp. on ia64) link data and code symbols differently,
6963# so use this general approach.
6964lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5464f5a1 6965
d7040cdb
SE
6966# Transform an extracted symbol line into symbol name and symbol address
6967lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
718a6fd8 6968lt_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'"
5464f5a1 6969
d7040cdb
SE
6970# Handle CRLF in mingw tool chain
6971opt_cr=
6972case $build_os in
6973mingw*)
6974 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6975 ;;
6976esac
5464f5a1 6977
d7040cdb
SE
6978# Try without a prefix underscore, then with it.
6979for ac_symprfx in "" "_"; do
6980
6981 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6982 symxfrm="\\1 $ac_symprfx\\2 \\2"
6983
6984 # Write the raw and C identifiers.
6985 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6986 # Fake it for dumpbin and say T for any non-static function
6987 # and D for any global variable.
6988 # Also find C++ and __fastcall symbols from MSVC++,
6989 # which start with @ or ?.
6990 lt_cv_sys_global_symbol_pipe="$AWK '"\
6991" {last_section=section; section=\$ 3};"\
6992" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6993" \$ 0!~/External *\|/{next};"\
6994" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6995" {if(hide[section]) next};"\
6996" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6997" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6998" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6999" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7000" ' prfx=^$ac_symprfx"
7001 else
7002 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7003 fi
cfbc9945 7004
d7040cdb
SE
7005 # Check to see that the pipe works correctly.
7006 pipe_works=no
cfbc9945 7007
d7040cdb
SE
7008 rm -f conftest*
7009 cat > conftest.$ac_ext <<_LT_EOF
7010#ifdef __cplusplus
7011extern "C" {
7012#endif
7013char nm_test_var;
7014void nm_test_func(void);
7015void nm_test_func(void){}
7016#ifdef __cplusplus
7017}
7018#endif
7019int main(){nm_test_var='a';nm_test_func();return(0);}
7020_LT_EOF
cfbc9945 7021
81ecdfbb 7022 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
d7040cdb
SE
7023 (eval $ac_compile) 2>&5
7024 ac_status=$?
81ecdfbb
RW
7025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7026 test $ac_status = 0; }; then
d7040cdb
SE
7027 # Now try to grab the symbols.
7028 nlist=conftest.nm
3725885a
RW
7029 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7030 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
d7040cdb 7031 ac_status=$?
81ecdfbb
RW
7032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7033 test $ac_status = 0; } && test -s "$nlist"; then
d7040cdb
SE
7034 # Try sorting and uniquifying the output.
7035 if sort "$nlist" | uniq > "$nlist"T; then
7036 mv -f "$nlist"T "$nlist"
7037 else
7038 rm -f "$nlist"T
7039 fi
cfbc9945 7040
d7040cdb
SE
7041 # Make sure that we snagged all the symbols we need.
7042 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7043 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7044 cat <<_LT_EOF > conftest.$ac_ext
7045#ifdef __cplusplus
7046extern "C" {
7047#endif
cfbc9945 7048
d7040cdb
SE
7049_LT_EOF
7050 # Now generate the symbol file.
7051 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5464f5a1 7052
d7040cdb 7053 cat <<_LT_EOF >> conftest.$ac_ext
cfbc9945 7054
d7040cdb
SE
7055/* The mapping between symbol names and symbols. */
7056const struct {
7057 const char *name;
7058 void *address;
7059}
7060lt__PROGRAM__LTX_preloaded_symbols[] =
7061{
7062 { "@PROGRAM@", (void *) 0 },
7063_LT_EOF
7064 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7065 cat <<\_LT_EOF >> conftest.$ac_ext
7066 {0, (void *) 0}
7067};
7068
7069/* This works around a problem in FreeBSD linker */
7070#ifdef FREEBSD_WORKAROUND
7071static const void *lt_preloaded_setup() {
7072 return lt__PROGRAM__LTX_preloaded_symbols;
7073}
7074#endif
cfbc9945 7075
d7040cdb
SE
7076#ifdef __cplusplus
7077}
7078#endif
7079_LT_EOF
7080 # Now try linking the two files.
7081 mv conftest.$ac_objext conftstm.$ac_objext
7082 lt_save_LIBS="$LIBS"
7083 lt_save_CFLAGS="$CFLAGS"
7084 LIBS="conftstm.$ac_objext"
7085 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
81ecdfbb 7086 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
d7040cdb
SE
7087 (eval $ac_link) 2>&5
7088 ac_status=$?
81ecdfbb
RW
7089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7090 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
d7040cdb
SE
7091 pipe_works=yes
7092 fi
7093 LIBS="$lt_save_LIBS"
7094 CFLAGS="$lt_save_CFLAGS"
7095 else
7096 echo "cannot find nm_test_func in $nlist" >&5
7097 fi
7098 else
7099 echo "cannot find nm_test_var in $nlist" >&5
7100 fi
7101 else
7102 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7103 fi
7104 else
7105 echo "$progname: failed program was:" >&5
7106 cat conftest.$ac_ext >&5
7107 fi
718a6fd8 7108 rm -rf conftest* conftst*
cfbc9945 7109
d7040cdb
SE
7110 # Do not use the global_symbol_pipe unless it works.
7111 if test "$pipe_works" = yes; then
7112 break
7113 else
7114 lt_cv_sys_global_symbol_pipe=
7115 fi
7116done
cfbc9945 7117
252b5132 7118fi
5464f5a1 7119
d7040cdb
SE
7120if test -z "$lt_cv_sys_global_symbol_pipe"; then
7121 lt_cv_sys_global_symbol_to_cdecl=
7122fi
7123if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
81ecdfbb
RW
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7125$as_echo "failed" >&6; }
b3baf5d0 7126else
81ecdfbb
RW
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7128$as_echo "ok" >&6; }
d7040cdb 7129fi
5464f5a1 7130
cfbc9945 7131
b3baf5d0 7132
cfbc9945
SE
7133
7134
7135
7136
5464f5a1 7137
4a2a2686
HPN
7138
7139
7140
cfbc9945
SE
7141
7142
cfbc9945 7143
cfbc9945 7144
718a6fd8
SE
7145
7146
7147
7148
7149
9d7cbccd 7150
20e95c23 7151
81ecdfbb
RW
7152# Check whether --enable-libtool-lock was given.
7153if test "${enable_libtool_lock+set}" = set; then :
7154 enableval=$enable_libtool_lock;
7155fi
20e95c23 7156
d7040cdb 7157test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
20e95c23 7158
d7040cdb
SE
7159# Some flags need to be propagated to the compiler or linker for good
7160# libtool support.
7161case $host in
7162ia64-*-hpux*)
7163 # Find out which ABI we are using.
7164 echo 'int i;' > conftest.$ac_ext
81ecdfbb 7165 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
d7040cdb
SE
7166 (eval $ac_compile) 2>&5
7167 ac_status=$?
81ecdfbb
RW
7168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7169 test $ac_status = 0; }; then
d7040cdb
SE
7170 case `/usr/bin/file conftest.$ac_objext` in
7171 *ELF-32*)
7172 HPUX_IA64_MODE="32"
7173 ;;
7174 *ELF-64*)
7175 HPUX_IA64_MODE="64"
7176 ;;
20e95c23 7177 esac
d7040cdb
SE
7178 fi
7179 rm -rf conftest*
7180 ;;
7181*-*-irix6*)
7182 # Find out which ABI we are using.
3725885a 7183 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
81ecdfbb 7184 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
d7040cdb
SE
7185 (eval $ac_compile) 2>&5
7186 ac_status=$?
81ecdfbb
RW
7187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7188 test $ac_status = 0; }; then
d7040cdb
SE
7189 if test "$lt_cv_prog_gnu_ld" = yes; then
7190 case `/usr/bin/file conftest.$ac_objext` in
7191 *32-bit*)
7192 LD="${LD-ld} -melf32bsmip"
7193 ;;
7194 *N32*)
7195 LD="${LD-ld} -melf32bmipn32"
7196 ;;
7197 *64-bit*)
7198 LD="${LD-ld} -melf64bmip"
7199 ;;
7200 esac
20e95c23 7201 else
d7040cdb
SE
7202 case `/usr/bin/file conftest.$ac_objext` in
7203 *32-bit*)
7204 LD="${LD-ld} -32"
7205 ;;
7206 *N32*)
7207 LD="${LD-ld} -n32"
7208 ;;
7209 *64-bit*)
7210 LD="${LD-ld} -64"
7211 ;;
20e95c23
DJ
7212 esac
7213 fi
d7040cdb
SE
7214 fi
7215 rm -rf conftest*
7216 ;;
20e95c23 7217
cc9afea3 7218x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
d7040cdb
SE
7219s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7220 # Find out which ABI we are using.
7221 echo 'int i;' > conftest.$ac_ext
81ecdfbb 7222 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
d7040cdb
SE
7223 (eval $ac_compile) 2>&5
7224 ac_status=$?
81ecdfbb
RW
7225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7226 test $ac_status = 0; }; then
d7040cdb
SE
7227 case `/usr/bin/file conftest.o` in
7228 *32-bit*)
7229 case $host in
7230 x86_64-*kfreebsd*-gnu)
7231 LD="${LD-ld} -m elf_i386_fbsd"
7232 ;;
7233 x86_64-*linux*)
6d2920c8
L
7234 case `/usr/bin/file conftest.o` in
7235 *x86-64*)
7236 LD="${LD-ld} -m elf32_x86_64"
7237 ;;
7238 *)
7239 LD="${LD-ld} -m elf_i386"
7240 ;;
7241 esac
d7040cdb 7242 ;;
cc9afea3
AM
7243 powerpc64le-*linux*)
7244 LD="${LD-ld} -m elf32lppclinux"
7245 ;;
7246 powerpc64-*linux*)
d7040cdb
SE
7247 LD="${LD-ld} -m elf32ppclinux"
7248 ;;
7249 s390x-*linux*)
7250 LD="${LD-ld} -m elf_s390"
7251 ;;
7252 sparc64-*linux*)
7253 LD="${LD-ld} -m elf32_sparc"
7254 ;;
7255 esac
7256 ;;
7257 *64-bit*)
7258 case $host in
7259 x86_64-*kfreebsd*-gnu)
7260 LD="${LD-ld} -m elf_x86_64_fbsd"
7261 ;;
7262 x86_64-*linux*)
7263 LD="${LD-ld} -m elf_x86_64"
7264 ;;
cc9afea3
AM
7265 powerpcle-*linux*)
7266 LD="${LD-ld} -m elf64lppc"
7267 ;;
7268 powerpc-*linux*)
d7040cdb
SE
7269 LD="${LD-ld} -m elf64ppc"
7270 ;;
7271 s390*-*linux*|s390*-*tpf*)
7272 LD="${LD-ld} -m elf64_s390"
7273 ;;
7274 sparc*-*linux*)
7275 LD="${LD-ld} -m elf64_sparc"
7276 ;;
7277 esac
7278 ;;
20e95c23
DJ
7279 esac
7280 fi
d7040cdb 7281 rm -rf conftest*
7357c5b6 7282 ;;
d7040cdb 7283
7357c5b6
AM
7284*-*-sco3.2v5*)
7285 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7286 SAVE_CFLAGS="$CFLAGS"
7287 CFLAGS="$CFLAGS -belf"
81ecdfbb
RW
7288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7289$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7290if test "${lt_cv_cc_needs_belf+set}" = set; then :
7291 $as_echo_n "(cached) " >&6
d7040cdb 7292else
7357c5b6
AM
7293 ac_ext=c
7294ac_cpp='$CPP $CPPFLAGS'
7295ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7296ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7297ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 7298
81ecdfbb 7299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb 7300/* end confdefs.h. */
d7040cdb 7301
d7040cdb
SE
7302int
7303main ()
7304{
7357c5b6
AM
7305
7306 ;
7307 return 0;
d7040cdb
SE
7308}
7309_ACEOF
81ecdfbb 7310if ac_fn_c_try_link "$LINENO"; then :
7357c5b6 7311 lt_cv_cc_needs_belf=yes
d7040cdb 7312else
81ecdfbb 7313 lt_cv_cc_needs_belf=no
d7040cdb 7314fi
81ecdfbb
RW
7315rm -f core conftest.err conftest.$ac_objext \
7316 conftest$ac_exeext conftest.$ac_ext
7357c5b6
AM
7317 ac_ext=c
7318ac_cpp='$CPP $CPPFLAGS'
7319ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7320ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7321ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb
SE
7322
7323fi
81ecdfbb
RW
7324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7325$as_echo "$lt_cv_cc_needs_belf" >&6; }
7357c5b6
AM
7326 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7327 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7328 CFLAGS="$SAVE_CFLAGS"
7329 fi
7330 ;;
7331sparc*-*solaris*)
7332 # Find out which ABI we are using.
7333 echo 'int i;' > conftest.$ac_ext
81ecdfbb 7334 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
7335 (eval $ac_compile) 2>&5
7336 ac_status=$?
81ecdfbb
RW
7337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7338 test $ac_status = 0; }; then
7357c5b6
AM
7339 case `/usr/bin/file conftest.o` in
7340 *64-bit*)
7341 case $lt_cv_prog_gnu_ld in
7342 yes*) LD="${LD-ld} -m elf64_sparc" ;;
718a6fd8
SE
7343 *)
7344 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7345 LD="${LD-ld} -64"
7346 fi
7347 ;;
7357c5b6
AM
7348 esac
7349 ;;
7350 esac
7351 fi
7352 rm -rf conftest*
7353 ;;
7354esac
d7040cdb 7355
7357c5b6 7356need_locks="$enable_libtool_lock"
d7040cdb
SE
7357
7358
718a6fd8
SE
7359 case $host_os in
7360 rhapsody* | darwin*)
7361 if test -n "$ac_tool_prefix"; then
7362 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7363set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
81ecdfbb
RW
7364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7365$as_echo_n "checking for $ac_word... " >&6; }
7366if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7367 $as_echo_n "(cached) " >&6
718a6fd8
SE
7368else
7369 if test -n "$DSYMUTIL"; then
7370 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7371else
7372as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7373for as_dir in $PATH
7374do
7375 IFS=$as_save_IFS
7376 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7377 for ac_exec_ext in '' $ac_executable_extensions; do
7378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7379 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
81ecdfbb 7380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7381 break 2
7382 fi
7383done
81ecdfbb
RW
7384 done
7385IFS=$as_save_IFS
718a6fd8
SE
7386
7387fi
7388fi
7389DSYMUTIL=$ac_cv_prog_DSYMUTIL
7390if test -n "$DSYMUTIL"; then
81ecdfbb
RW
7391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7392$as_echo "$DSYMUTIL" >&6; }
718a6fd8 7393else
81ecdfbb
RW
7394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7395$as_echo "no" >&6; }
718a6fd8
SE
7396fi
7397
81ecdfbb 7398
718a6fd8
SE
7399fi
7400if test -z "$ac_cv_prog_DSYMUTIL"; then
7401 ac_ct_DSYMUTIL=$DSYMUTIL
7402 # Extract the first word of "dsymutil", so it can be a program name with args.
7403set dummy dsymutil; ac_word=$2
81ecdfbb
RW
7404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7405$as_echo_n "checking for $ac_word... " >&6; }
7406if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7407 $as_echo_n "(cached) " >&6
718a6fd8
SE
7408else
7409 if test -n "$ac_ct_DSYMUTIL"; then
7410 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7411else
7412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7413for as_dir in $PATH
7414do
7415 IFS=$as_save_IFS
7416 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7417 for ac_exec_ext in '' $ac_executable_extensions; do
7418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7419 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
81ecdfbb 7420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7421 break 2
7422 fi
7423done
81ecdfbb
RW
7424 done
7425IFS=$as_save_IFS
718a6fd8 7426
718a6fd8
SE
7427fi
7428fi
7429ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7430if test -n "$ac_ct_DSYMUTIL"; then
81ecdfbb
RW
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7432$as_echo "$ac_ct_DSYMUTIL" >&6; }
718a6fd8 7433else
81ecdfbb
RW
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7435$as_echo "no" >&6; }
718a6fd8
SE
7436fi
7437
81ecdfbb
RW
7438 if test "x$ac_ct_DSYMUTIL" = x; then
7439 DSYMUTIL=":"
7440 else
7441 case $cross_compiling:$ac_tool_warned in
7442yes:)
7443{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7444$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7445ac_tool_warned=yes ;;
7446esac
7447 DSYMUTIL=$ac_ct_DSYMUTIL
7448 fi
718a6fd8
SE
7449else
7450 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7451fi
7452
7453 if test -n "$ac_tool_prefix"; then
7454 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7455set dummy ${ac_tool_prefix}nmedit; ac_word=$2
81ecdfbb
RW
7456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7457$as_echo_n "checking for $ac_word... " >&6; }
7458if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7459 $as_echo_n "(cached) " >&6
718a6fd8
SE
7460else
7461 if test -n "$NMEDIT"; then
7462 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7463else
7464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7465for as_dir in $PATH
7466do
7467 IFS=$as_save_IFS
7468 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7469 for ac_exec_ext in '' $ac_executable_extensions; do
7470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7471 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
81ecdfbb 7472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7473 break 2
7474 fi
7475done
81ecdfbb
RW
7476 done
7477IFS=$as_save_IFS
718a6fd8
SE
7478
7479fi
7480fi
7481NMEDIT=$ac_cv_prog_NMEDIT
7482if test -n "$NMEDIT"; then
81ecdfbb
RW
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7484$as_echo "$NMEDIT" >&6; }
718a6fd8 7485else
81ecdfbb
RW
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7487$as_echo "no" >&6; }
718a6fd8
SE
7488fi
7489
81ecdfbb 7490
718a6fd8
SE
7491fi
7492if test -z "$ac_cv_prog_NMEDIT"; then
7493 ac_ct_NMEDIT=$NMEDIT
7494 # Extract the first word of "nmedit", so it can be a program name with args.
7495set dummy nmedit; ac_word=$2
81ecdfbb
RW
7496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7497$as_echo_n "checking for $ac_word... " >&6; }
7498if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7499 $as_echo_n "(cached) " >&6
718a6fd8
SE
7500else
7501 if test -n "$ac_ct_NMEDIT"; then
7502 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7503else
7504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7505for as_dir in $PATH
7506do
7507 IFS=$as_save_IFS
7508 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7509 for ac_exec_ext in '' $ac_executable_extensions; do
7510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7511 ac_cv_prog_ac_ct_NMEDIT="nmedit"
81ecdfbb 7512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7513 break 2
7514 fi
7515done
81ecdfbb
RW
7516 done
7517IFS=$as_save_IFS
718a6fd8 7518
718a6fd8
SE
7519fi
7520fi
7521ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7522if test -n "$ac_ct_NMEDIT"; then
81ecdfbb
RW
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7524$as_echo "$ac_ct_NMEDIT" >&6; }
718a6fd8 7525else
81ecdfbb
RW
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7527$as_echo "no" >&6; }
718a6fd8
SE
7528fi
7529
81ecdfbb
RW
7530 if test "x$ac_ct_NMEDIT" = x; then
7531 NMEDIT=":"
7532 else
7533 case $cross_compiling:$ac_tool_warned in
7534yes:)
7535{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7536$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7537ac_tool_warned=yes ;;
7538esac
7539 NMEDIT=$ac_ct_NMEDIT
7540 fi
718a6fd8
SE
7541else
7542 NMEDIT="$ac_cv_prog_NMEDIT"
7543fi
7544
7545 if test -n "$ac_tool_prefix"; then
7546 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7547set dummy ${ac_tool_prefix}lipo; ac_word=$2
81ecdfbb
RW
7548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7549$as_echo_n "checking for $ac_word... " >&6; }
7550if test "${ac_cv_prog_LIPO+set}" = set; then :
7551 $as_echo_n "(cached) " >&6
718a6fd8
SE
7552else
7553 if test -n "$LIPO"; then
7554 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7555else
7556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7557for as_dir in $PATH
7558do
7559 IFS=$as_save_IFS
7560 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7561 for ac_exec_ext in '' $ac_executable_extensions; do
7562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7563 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
81ecdfbb 7564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7565 break 2
7566 fi
7567done
81ecdfbb
RW
7568 done
7569IFS=$as_save_IFS
718a6fd8
SE
7570
7571fi
7572fi
7573LIPO=$ac_cv_prog_LIPO
7574if test -n "$LIPO"; then
81ecdfbb
RW
7575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7576$as_echo "$LIPO" >&6; }
718a6fd8 7577else
81ecdfbb
RW
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7579$as_echo "no" >&6; }
718a6fd8
SE
7580fi
7581
81ecdfbb 7582
718a6fd8
SE
7583fi
7584if test -z "$ac_cv_prog_LIPO"; then
7585 ac_ct_LIPO=$LIPO
7586 # Extract the first word of "lipo", so it can be a program name with args.
7587set dummy lipo; ac_word=$2
81ecdfbb
RW
7588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7589$as_echo_n "checking for $ac_word... " >&6; }
7590if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7591 $as_echo_n "(cached) " >&6
718a6fd8
SE
7592else
7593 if test -n "$ac_ct_LIPO"; then
7594 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7595else
7596as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7597for as_dir in $PATH
7598do
7599 IFS=$as_save_IFS
7600 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7601 for ac_exec_ext in '' $ac_executable_extensions; do
7602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7603 ac_cv_prog_ac_ct_LIPO="lipo"
81ecdfbb 7604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7605 break 2
7606 fi
7607done
81ecdfbb
RW
7608 done
7609IFS=$as_save_IFS
718a6fd8 7610
718a6fd8
SE
7611fi
7612fi
7613ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7614if test -n "$ac_ct_LIPO"; then
81ecdfbb
RW
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7616$as_echo "$ac_ct_LIPO" >&6; }
718a6fd8 7617else
81ecdfbb
RW
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7619$as_echo "no" >&6; }
718a6fd8
SE
7620fi
7621
81ecdfbb
RW
7622 if test "x$ac_ct_LIPO" = x; then
7623 LIPO=":"
7624 else
7625 case $cross_compiling:$ac_tool_warned in
7626yes:)
7627{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7628$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7629ac_tool_warned=yes ;;
7630esac
7631 LIPO=$ac_ct_LIPO
7632 fi
7633else
718a6fd8
SE
7634 LIPO="$ac_cv_prog_LIPO"
7635fi
7636
7637 if test -n "$ac_tool_prefix"; then
7638 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7639set dummy ${ac_tool_prefix}otool; ac_word=$2
81ecdfbb
RW
7640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7641$as_echo_n "checking for $ac_word... " >&6; }
7642if test "${ac_cv_prog_OTOOL+set}" = set; then :
7643 $as_echo_n "(cached) " >&6
718a6fd8
SE
7644else
7645 if test -n "$OTOOL"; then
7646 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7647else
7648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7649for as_dir in $PATH
7650do
7651 IFS=$as_save_IFS
7652 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7653 for ac_exec_ext in '' $ac_executable_extensions; do
7654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7655 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
81ecdfbb 7656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7657 break 2
7658 fi
7659done
81ecdfbb
RW
7660 done
7661IFS=$as_save_IFS
718a6fd8
SE
7662
7663fi
7664fi
7665OTOOL=$ac_cv_prog_OTOOL
7666if test -n "$OTOOL"; then
81ecdfbb
RW
7667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7668$as_echo "$OTOOL" >&6; }
718a6fd8 7669else
81ecdfbb
RW
7670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7671$as_echo "no" >&6; }
718a6fd8
SE
7672fi
7673
81ecdfbb 7674
718a6fd8
SE
7675fi
7676if test -z "$ac_cv_prog_OTOOL"; then
7677 ac_ct_OTOOL=$OTOOL
7678 # Extract the first word of "otool", so it can be a program name with args.
7679set dummy otool; ac_word=$2
81ecdfbb
RW
7680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7681$as_echo_n "checking for $ac_word... " >&6; }
7682if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7683 $as_echo_n "(cached) " >&6
718a6fd8
SE
7684else
7685 if test -n "$ac_ct_OTOOL"; then
7686 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7687else
7688as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7689for as_dir in $PATH
7690do
7691 IFS=$as_save_IFS
7692 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7693 for ac_exec_ext in '' $ac_executable_extensions; do
7694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7695 ac_cv_prog_ac_ct_OTOOL="otool"
81ecdfbb 7696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7697 break 2
7698 fi
7699done
81ecdfbb
RW
7700 done
7701IFS=$as_save_IFS
718a6fd8 7702
718a6fd8
SE
7703fi
7704fi
7705ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7706if test -n "$ac_ct_OTOOL"; then
81ecdfbb
RW
7707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7708$as_echo "$ac_ct_OTOOL" >&6; }
718a6fd8 7709else
81ecdfbb
RW
7710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7711$as_echo "no" >&6; }
718a6fd8
SE
7712fi
7713
81ecdfbb
RW
7714 if test "x$ac_ct_OTOOL" = x; then
7715 OTOOL=":"
7716 else
7717 case $cross_compiling:$ac_tool_warned in
7718yes:)
7719{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7720$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7721ac_tool_warned=yes ;;
7722esac
7723 OTOOL=$ac_ct_OTOOL
7724 fi
718a6fd8
SE
7725else
7726 OTOOL="$ac_cv_prog_OTOOL"
7727fi
7728
7729 if test -n "$ac_tool_prefix"; then
7730 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7731set dummy ${ac_tool_prefix}otool64; ac_word=$2
81ecdfbb
RW
7732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7733$as_echo_n "checking for $ac_word... " >&6; }
7734if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7735 $as_echo_n "(cached) " >&6
718a6fd8
SE
7736else
7737 if test -n "$OTOOL64"; then
7738 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7739else
7740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7741for as_dir in $PATH
7742do
7743 IFS=$as_save_IFS
7744 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7745 for ac_exec_ext in '' $ac_executable_extensions; do
7746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7747 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
81ecdfbb 7748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7749 break 2
7750 fi
7751done
81ecdfbb
RW
7752 done
7753IFS=$as_save_IFS
718a6fd8
SE
7754
7755fi
7756fi
7757OTOOL64=$ac_cv_prog_OTOOL64
7758if test -n "$OTOOL64"; then
81ecdfbb
RW
7759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7760$as_echo "$OTOOL64" >&6; }
718a6fd8 7761else
81ecdfbb
RW
7762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7763$as_echo "no" >&6; }
718a6fd8
SE
7764fi
7765
81ecdfbb 7766
718a6fd8
SE
7767fi
7768if test -z "$ac_cv_prog_OTOOL64"; then
7769 ac_ct_OTOOL64=$OTOOL64
7770 # Extract the first word of "otool64", so it can be a program name with args.
7771set dummy otool64; ac_word=$2
81ecdfbb
RW
7772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7773$as_echo_n "checking for $ac_word... " >&6; }
7774if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7775 $as_echo_n "(cached) " >&6
718a6fd8
SE
7776else
7777 if test -n "$ac_ct_OTOOL64"; then
7778 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7779else
7780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7781for as_dir in $PATH
7782do
7783 IFS=$as_save_IFS
7784 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7785 for ac_exec_ext in '' $ac_executable_extensions; do
7786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7787 ac_cv_prog_ac_ct_OTOOL64="otool64"
81ecdfbb 7788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7789 break 2
7790 fi
7791done
81ecdfbb
RW
7792 done
7793IFS=$as_save_IFS
718a6fd8 7794
718a6fd8
SE
7795fi
7796fi
7797ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7798if test -n "$ac_ct_OTOOL64"; then
81ecdfbb
RW
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7800$as_echo "$ac_ct_OTOOL64" >&6; }
718a6fd8 7801else
81ecdfbb
RW
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7803$as_echo "no" >&6; }
718a6fd8
SE
7804fi
7805
81ecdfbb
RW
7806 if test "x$ac_ct_OTOOL64" = x; then
7807 OTOOL64=":"
7808 else
7809 case $cross_compiling:$ac_tool_warned in
7810yes:)
7811{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7812$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7813ac_tool_warned=yes ;;
7814esac
7815 OTOOL64=$ac_ct_OTOOL64
7816 fi
718a6fd8
SE
7817else
7818 OTOOL64="$ac_cv_prog_OTOOL64"
7819fi
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845
7846
81ecdfbb
RW
7847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7848$as_echo_n "checking for -single_module linker flag... " >&6; }
7849if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7850 $as_echo_n "(cached) " >&6
718a6fd8
SE
7851else
7852 lt_cv_apple_cc_single_mod=no
7853 if test -z "${LT_MULTI_MODULE}"; then
7854 # By default we will add the -single_module flag. You can override
7855 # by either setting the environment variable LT_MULTI_MODULE
7856 # non-empty at configure time, or by adding -multi_module to the
7857 # link flags.
7858 rm -rf libconftest.dylib*
7859 echo "int foo(void){return 1;}" > conftest.c
7860 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7861-dynamiclib -Wl,-single_module conftest.c" >&5
7862 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7863 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7864 _lt_result=$?
7865 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7866 lt_cv_apple_cc_single_mod=yes
7867 else
7868 cat conftest.err >&5
7869 fi
7870 rm -rf libconftest.dylib*
7871 rm -f conftest.*
7872 fi
7873fi
81ecdfbb
RW
7874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7875$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7877$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7878if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7879 $as_echo_n "(cached) " >&6
718a6fd8
SE
7880else
7881 lt_cv_ld_exported_symbols_list=no
7882 save_LDFLAGS=$LDFLAGS
7883 echo "_main" > conftest.sym
7884 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
81ecdfbb 7885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
718a6fd8
SE
7886/* end confdefs.h. */
7887
7888int
7889main ()
7890{
7891
7892 ;
7893 return 0;
7894}
7895_ACEOF
81ecdfbb 7896if ac_fn_c_try_link "$LINENO"; then :
718a6fd8
SE
7897 lt_cv_ld_exported_symbols_list=yes
7898else
81ecdfbb 7899 lt_cv_ld_exported_symbols_list=no
718a6fd8 7900fi
81ecdfbb
RW
7901rm -f core conftest.err conftest.$ac_objext \
7902 conftest$ac_exeext conftest.$ac_ext
718a6fd8
SE
7903 LDFLAGS="$save_LDFLAGS"
7904
7905fi
81ecdfbb
RW
7906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7907$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
3725885a
RW
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7909$as_echo_n "checking for -force_load linker flag... " >&6; }
7910if test "${lt_cv_ld_force_load+set}" = set; then :
7911 $as_echo_n "(cached) " >&6
7912else
7913 lt_cv_ld_force_load=no
7914 cat > conftest.c << _LT_EOF
7915int forced_loaded() { return 2;}
7916_LT_EOF
7917 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7918 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7919 echo "$AR cru libconftest.a conftest.o" >&5
7920 $AR cru libconftest.a conftest.o 2>&5
7921 cat > conftest.c << _LT_EOF
7922int main() { return 0;}
7923_LT_EOF
7924 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7925 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7926 _lt_result=$?
7927 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7928 lt_cv_ld_force_load=yes
7929 else
7930 cat conftest.err >&5
7931 fi
7932 rm -f conftest.err libconftest.a conftest conftest.c
7933 rm -rf conftest.dSYM
7934
7935fi
7936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7937$as_echo "$lt_cv_ld_force_load" >&6; }
718a6fd8
SE
7938 case $host_os in
7939 rhapsody* | darwin1.[012])
7940 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7941 darwin1.*)
7942 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7943 darwin*) # darwin 5.x on
7944 # if running on 10.5 or later, the deployment target defaults
7945 # to the OS version, if on x86, and 10.4, the deployment
7946 # target defaults to 10.4. Don't you love it?
7947 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7948 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7949 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6e733cce 7950 10.[012][,.]*)
718a6fd8
SE
7951 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7952 10.*)
7953 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7954 esac
7955 ;;
7956 esac
7957 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7958 _lt_dar_single_mod='$single_module'
7959 fi
7960 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7961 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7962 else
7963 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7964 fi
3725885a 7965 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
718a6fd8
SE
7966 _lt_dsymutil='~$DSYMUTIL $lib || :'
7967 else
7968 _lt_dsymutil=
7969 fi
7970 ;;
7971 esac
7972
d7040cdb 7973for ac_header in dlfcn.h
81ecdfbb
RW
7974do :
7975 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7976"
7977if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
d7040cdb 7978 cat >>confdefs.h <<_ACEOF
81ecdfbb 7979#define HAVE_DLFCN_H 1
d7040cdb
SE
7980_ACEOF
7981
7982fi
7983
7984done
7985
7986
7987
3725885a
RW
7988
7989
718a6fd8 7990# Set options
ce3c775b 7991enable_dlopen=yes
718a6fd8
SE
7992
7993
7994
718a6fd8
SE
7995
7996 enable_win32_dll=no
7997
7998
7999
81ecdfbb
RW
8000 # Check whether --enable-static was given.
8001if test "${enable_static+set}" = set; then :
8002 enableval=$enable_static; p=${PACKAGE-default}
718a6fd8
SE
8003 case $enableval in
8004 yes) enable_static=yes ;;
8005 no) enable_static=no ;;
8006 *)
8007 enable_static=no
8008 # Look at the argument we got. We use all the common list separators.
8009 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8010 for pkg in $enableval; do
8011 IFS="$lt_save_ifs"
8012 if test "X$pkg" = "X$p"; then
8013 enable_static=yes
8014 fi
8015 done
8016 IFS="$lt_save_ifs"
8017 ;;
8018 esac
8019else
8020 enable_static=yes
81ecdfbb 8021fi
718a6fd8
SE
8022
8023
8024
8025
8026
8027
8028
8029
8030
81ecdfbb
RW
8031
8032# Check whether --with-pic was given.
8033if test "${with_pic+set}" = set; then :
8034 withval=$with_pic; pic_mode="$withval"
718a6fd8
SE
8035else
8036 pic_mode=default
81ecdfbb
RW
8037fi
8038
718a6fd8
SE
8039
8040test -z "$pic_mode" && pic_mode=default
8041
8042
8043
8044
8045
8046
8047
81ecdfbb
RW
8048 # Check whether --enable-fast-install was given.
8049if test "${enable_fast_install+set}" = set; then :
8050 enableval=$enable_fast_install; p=${PACKAGE-default}
718a6fd8
SE
8051 case $enableval in
8052 yes) enable_fast_install=yes ;;
8053 no) enable_fast_install=no ;;
8054 *)
8055 enable_fast_install=no
8056 # Look at the argument we got. We use all the common list separators.
8057 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8058 for pkg in $enableval; do
8059 IFS="$lt_save_ifs"
8060 if test "X$pkg" = "X$p"; then
8061 enable_fast_install=yes
8062 fi
8063 done
8064 IFS="$lt_save_ifs"
8065 ;;
8066 esac
8067else
8068 enable_fast_install=yes
81ecdfbb
RW
8069fi
8070
718a6fd8
SE
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
d7040cdb
SE
8081# This can be used to rebuild libtool when needed
8082LIBTOOL_DEPS="$ltmain"
8083
8084# Always use our own libtool.
8085LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100
8101
8102
8103
8104
8105
8106
8107
8108
3725885a 8109
d7040cdb
SE
8110
8111
8112test -z "$LN_S" && LN_S="ln -s"
8113
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125
8126
8127if test -n "${ZSH_VERSION+set}" ; then
8128 setopt NO_GLOB_SUBST
8129fi
8130
81ecdfbb
RW
8131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8132$as_echo_n "checking for objdir... " >&6; }
8133if test "${lt_cv_objdir+set}" = set; then :
8134 $as_echo_n "(cached) " >&6
d7040cdb
SE
8135else
8136 rm -f .libs 2>/dev/null
8137mkdir .libs 2>/dev/null
8138if test -d .libs; then
8139 lt_cv_objdir=.libs
8140else
8141 # MS-DOS does not allow filenames that begin with a dot.
8142 lt_cv_objdir=_libs
8143fi
8144rmdir .libs 2>/dev/null
8145fi
81ecdfbb
RW
8146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8147$as_echo "$lt_cv_objdir" >&6; }
d7040cdb
SE
8148objdir=$lt_cv_objdir
8149
8150
8151
8152
8153
8154cat >>confdefs.h <<_ACEOF
8155#define LT_OBJDIR "$lt_cv_objdir/"
8156_ACEOF
8157
8158
8159
8160
d7040cdb
SE
8161case $host_os in
8162aix3*)
8163 # AIX sometimes has problems with the GCC collect2 program. For some
8164 # reason, if we set the COLLECT_NAMES environment variable, the problems
8165 # vanish in a puff of smoke.
8166 if test "X${COLLECT_NAMES+set}" != Xset; then
8167 COLLECT_NAMES=
8168 export COLLECT_NAMES
8169 fi
8170 ;;
8171esac
8172
d7040cdb
SE
8173# Global variables:
8174ofile=libtool
8175can_build_shared=yes
8176
8177# All known linkers require a `.a' archive for static linking (except MSVC,
8178# which needs '.lib').
8179libext=a
8180
8181with_gnu_ld="$lt_cv_prog_gnu_ld"
8182
8183old_CC="$CC"
8184old_CFLAGS="$CFLAGS"
8185
8186# Set sane defaults for various variables
8187test -z "$CC" && CC=cc
8188test -z "$LTCC" && LTCC=$CC
8189test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8190test -z "$LD" && LD=ld
8191test -z "$ac_objext" && ac_objext=o
8192
8193for cc_temp in $compiler""; do
8194 case $cc_temp in
8195 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8196 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8197 \-*) ;;
8198 *) break;;
8199 esac
8200done
3725885a 8201cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
d7040cdb
SE
8202
8203
8204# Only perform the check for file, if the check method requires it
8205test -z "$MAGIC_CMD" && MAGIC_CMD=file
8206case $deplibs_check_method in
8207file_magic*)
8208 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
81ecdfbb
RW
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8210$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8211if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8212 $as_echo_n "(cached) " >&6
d7040cdb
SE
8213else
8214 case $MAGIC_CMD in
8215[\\/*] | ?:[\\/]*)
8216 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8217 ;;
8218*)
8219 lt_save_MAGIC_CMD="$MAGIC_CMD"
8220 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8221 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8222 for ac_dir in $ac_dummy; do
8223 IFS="$lt_save_ifs"
8224 test -z "$ac_dir" && ac_dir=.
8225 if test -f $ac_dir/${ac_tool_prefix}file; then
8226 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8227 if test -n "$file_magic_test_file"; then
8228 case $deplibs_check_method in
8229 "file_magic "*)
8230 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8231 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8232 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8233 $EGREP "$file_magic_regex" > /dev/null; then
8234 :
8235 else
8236 cat <<_LT_EOF 1>&2
8237
8238*** Warning: the command libtool uses to detect shared libraries,
8239*** $file_magic_cmd, produces output that libtool cannot recognize.
8240*** The result is that libtool may fail to recognize shared libraries
8241*** as such. This will affect the creation of libtool libraries that
8242*** depend on shared libraries, but programs linked with such libtool
8243*** libraries will work regardless of this problem. Nevertheless, you
8244*** may want to report the problem to your system manager and/or to
8245*** bug-libtool@gnu.org
8246
8247_LT_EOF
8248 fi ;;
8249 esac
8250 fi
8251 break
8252 fi
8253 done
8254 IFS="$lt_save_ifs"
8255 MAGIC_CMD="$lt_save_MAGIC_CMD"
8256 ;;
8257esac
8258fi
8259
8260MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8261if test -n "$MAGIC_CMD"; then
81ecdfbb
RW
8262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8263$as_echo "$MAGIC_CMD" >&6; }
d7040cdb 8264else
81ecdfbb
RW
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8266$as_echo "no" >&6; }
d7040cdb
SE
8267fi
8268
8269
8270
8271
8272
8273if test -z "$lt_cv_path_MAGIC_CMD"; then
8274 if test -n "$ac_tool_prefix"; then
81ecdfbb
RW
8275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8276$as_echo_n "checking for file... " >&6; }
8277if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8278 $as_echo_n "(cached) " >&6
d7040cdb
SE
8279else
8280 case $MAGIC_CMD in
8281[\\/*] | ?:[\\/]*)
8282 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8283 ;;
8284*)
8285 lt_save_MAGIC_CMD="$MAGIC_CMD"
8286 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8287 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8288 for ac_dir in $ac_dummy; do
8289 IFS="$lt_save_ifs"
8290 test -z "$ac_dir" && ac_dir=.
8291 if test -f $ac_dir/file; then
8292 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8293 if test -n "$file_magic_test_file"; then
8294 case $deplibs_check_method in
8295 "file_magic "*)
8296 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8297 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8298 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8299 $EGREP "$file_magic_regex" > /dev/null; then
8300 :
8301 else
8302 cat <<_LT_EOF 1>&2
8303
8304*** Warning: the command libtool uses to detect shared libraries,
8305*** $file_magic_cmd, produces output that libtool cannot recognize.
8306*** The result is that libtool may fail to recognize shared libraries
8307*** as such. This will affect the creation of libtool libraries that
8308*** depend on shared libraries, but programs linked with such libtool
8309*** libraries will work regardless of this problem. Nevertheless, you
8310*** may want to report the problem to your system manager and/or to
8311*** bug-libtool@gnu.org
8312
8313_LT_EOF
8314 fi ;;
8315 esac
8316 fi
8317 break
8318 fi
8319 done
8320 IFS="$lt_save_ifs"
8321 MAGIC_CMD="$lt_save_MAGIC_CMD"
8322 ;;
8323esac
8324fi
8325
8326MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8327if test -n "$MAGIC_CMD"; then
81ecdfbb
RW
8328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8329$as_echo "$MAGIC_CMD" >&6; }
d7040cdb 8330else
81ecdfbb
RW
8331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8332$as_echo "no" >&6; }
d7040cdb
SE
8333fi
8334
8335
8336 else
8337 MAGIC_CMD=:
8338 fi
8339fi
8340
8341 fi
8342 ;;
8343esac
8344
8345# Use C for the default configuration in the libtool script
8346
8347lt_save_CC="$CC"
8348ac_ext=c
8349ac_cpp='$CPP $CPPFLAGS'
8350ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8351ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8352ac_compiler_gnu=$ac_cv_c_compiler_gnu
8353
8354
8355# Source file extension for C test sources.
8356ac_ext=c
8357
8358# Object file extension for compiled C test sources.
8359objext=o
8360objext=$objext
8361
8362# Code to be used in simple compile tests
8363lt_simple_compile_test_code="int some_variable = 0;"
8364
8365# Code to be used in simple link tests
8366lt_simple_link_test_code='int main(){return(0);}'
8367
8368
8369
8370
8371
8372
8373
8374# If no C compiler was specified, use CC.
8375LTCC=${LTCC-"$CC"}
8376
8377# If no C compiler flags were specified, use CFLAGS.
8378LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8379
8380# Allow CC to be a program name with arguments.
8381compiler=$CC
8382
8383# Save the default compiler, since it gets overwritten when the other
8384# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8385compiler_DEFAULT=$CC
8386
8387# save warnings/boilerplate of simple test code
8388ac_outfile=conftest.$ac_objext
8389echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8390eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8391_lt_compiler_boilerplate=`cat conftest.err`
8392$RM conftest*
8393
8394ac_outfile=conftest.$ac_objext
8395echo "$lt_simple_link_test_code" >conftest.$ac_ext
8396eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8397_lt_linker_boilerplate=`cat conftest.err`
718a6fd8 8398$RM -r conftest*
d7040cdb
SE
8399
8400
8401## CAVEAT EMPTOR:
8402## There is no encapsulation within the following macros, do not change
8403## the running order or otherwise move them around unless you know exactly
8404## what you are doing...
8405if test -n "$compiler"; then
8406
8407lt_prog_compiler_no_builtin_flag=
8408
8409if test "$GCC" = yes; then
3725885a
RW
8410 case $cc_basename in
8411 nvcc*)
8412 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8413 *)
8414 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8415 esac
d7040cdb 8416
81ecdfbb
RW
8417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8418$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8419if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8420 $as_echo_n "(cached) " >&6
d7040cdb
SE
8421else
8422 lt_cv_prog_compiler_rtti_exceptions=no
8423 ac_outfile=conftest.$ac_objext
8424 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8425 lt_compiler_flag="-fno-rtti -fno-exceptions"
8426 # Insert the option either (1) after the last *FLAGS variable, or
8427 # (2) before a word containing "conftest.", or (3) at the end.
8428 # Note that $ac_compile itself does not contain backslashes and begins
8429 # with a dollar sign (not a hyphen), so the echo should work correctly.
8430 # The option is referenced via a variable to avoid confusing sed.
8431 lt_compile=`echo "$ac_compile" | $SED \
8432 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8433 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8434 -e 's:$: $lt_compiler_flag:'`
3725885a 8435 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
d7040cdb
SE
8436 (eval "$lt_compile" 2>conftest.err)
8437 ac_status=$?
8438 cat conftest.err >&5
3725885a 8439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb
SE
8440 if (exit $ac_status) && test -s "$ac_outfile"; then
8441 # The compiler can only warn and ignore the option if not recognized
8442 # So say no if there are warnings other than the usual output.
3725885a 8443 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
d7040cdb
SE
8444 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8445 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8446 lt_cv_prog_compiler_rtti_exceptions=yes
8447 fi
8448 fi
8449 $RM conftest*
8450
8451fi
81ecdfbb
RW
8452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8453$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
d7040cdb
SE
8454
8455if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8456 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8457else
8458 :
8459fi
8460
8461fi
8462
8463
8464
8465
8466
8467
8468 lt_prog_compiler_wl=
8469lt_prog_compiler_pic=
8470lt_prog_compiler_static=
8471
81ecdfbb
RW
8472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8473$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
d7040cdb
SE
8474
8475 if test "$GCC" = yes; then
8476 lt_prog_compiler_wl='-Wl,'
8477 lt_prog_compiler_static='-static'
8478
8479 case $host_os in
8480 aix*)
8481 # All AIX code is PIC.
8482 if test "$host_cpu" = ia64; then
8483 # AIX 5 now supports IA64 processor
8484 lt_prog_compiler_static='-Bstatic'
8485 fi
6c9c0a50 8486 lt_prog_compiler_pic='-fPIC'
d7040cdb
SE
8487 ;;
8488
8489 amigaos*)
718a6fd8
SE
8490 case $host_cpu in
8491 powerpc)
8492 # see comment about AmigaOS4 .so support
8493 lt_prog_compiler_pic='-fPIC'
8494 ;;
8495 m68k)
8496 # FIXME: we need at least 68020 code to build shared libraries, but
8497 # adding the `-m68020' flag to GCC prevents building anything better,
8498 # like `-m68040'.
8499 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8500 ;;
8501 esac
d7040cdb
SE
8502 ;;
8503
8504 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8505 # PIC is the default for these OSes.
8506 ;;
8507
718a6fd8 8508 mingw* | cygwin* | pw32* | os2* | cegcc*)
d7040cdb
SE
8509 # This hack is so that the source file can tell whether it is being
8510 # built for inclusion in a dll (and should export symbols for example).
8511 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8512 # (--disable-auto-import) libraries
8513 lt_prog_compiler_pic='-DDLL_EXPORT'
8514 ;;
8515
8516 darwin* | rhapsody*)
8517 # PIC is the default on this platform
8518 # Common symbols not allowed in MH_DYLIB files
8519 lt_prog_compiler_pic='-fno-common'
8520 ;;
8521
3725885a
RW
8522 haiku*)
8523 # PIC is the default for Haiku.
8524 # The "-static" flag exists, but is broken.
8525 lt_prog_compiler_static=
8526 ;;
8527
d7040cdb 8528 hpux*)
718a6fd8
SE
8529 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8530 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8531 # sets the default TLS model and affects inlining.
d7040cdb 8532 case $host_cpu in
718a6fd8 8533 hppa*64*)
d7040cdb
SE
8534 # +Z the default
8535 ;;
8536 *)
8537 lt_prog_compiler_pic='-fPIC'
8538 ;;
8539 esac
8540 ;;
8541
8542 interix[3-9]*)
8543 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8544 # Instead, we relocate shared libraries at runtime.
8545 ;;
8546
8547 msdosdjgpp*)
8548 # Just because we use GCC doesn't mean we suddenly get shared libraries
8549 # on systems that don't support them.
8550 lt_prog_compiler_can_build_shared=no
8551 enable_shared=no
8552 ;;
8553
8554 *nto* | *qnx*)
8555 # QNX uses GNU C++, but need to define -shared option too, otherwise
8556 # it will coredump.
8557 lt_prog_compiler_pic='-fPIC -shared'
8558 ;;
8559
8560 sysv4*MP*)
8561 if test -d /usr/nec; then
8562 lt_prog_compiler_pic=-Kconform_pic
8563 fi
8564 ;;
8565
8566 *)
8567 lt_prog_compiler_pic='-fPIC'
8568 ;;
8569 esac
3725885a
RW
8570
8571 case $cc_basename in
8572 nvcc*) # Cuda Compiler Driver 2.2
8573 lt_prog_compiler_wl='-Xlinker '
8574 lt_prog_compiler_pic='-Xcompiler -fPIC'
8575 ;;
8576 esac
d7040cdb
SE
8577 else
8578 # PORTME Check for flag to pass linker flags through the system compiler.
8579 case $host_os in
8580 aix*)
8581 lt_prog_compiler_wl='-Wl,'
8582 if test "$host_cpu" = ia64; then
8583 # AIX 5 now supports IA64 processor
8584 lt_prog_compiler_static='-Bstatic'
8585 else
8586 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8587 fi
8588 ;;
d7040cdb 8589
718a6fd8 8590 mingw* | cygwin* | pw32* | os2* | cegcc*)
d7040cdb
SE
8591 # This hack is so that the source file can tell whether it is being
8592 # built for inclusion in a dll (and should export symbols for example).
8593 lt_prog_compiler_pic='-DDLL_EXPORT'
8594 ;;
8595
8596 hpux9* | hpux10* | hpux11*)
8597 lt_prog_compiler_wl='-Wl,'
8598 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8599 # not for PA HP-UX.
8600 case $host_cpu in
8601 hppa*64*|ia64*)
8602 # +Z the default
8603 ;;
8604 *)
8605 lt_prog_compiler_pic='+Z'
8606 ;;
8607 esac
8608 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8609 lt_prog_compiler_static='${wl}-a ${wl}archive'
8610 ;;
8611
8612 irix5* | irix6* | nonstopux*)
8613 lt_prog_compiler_wl='-Wl,'
8614 # PIC (with -KPIC) is the default.
8615 lt_prog_compiler_static='-non_shared'
8616 ;;
8617
58e24671 8618 linux* | k*bsd*-gnu | kopensolaris*-gnu)
d7040cdb 8619 case $cc_basename in
718a6fd8
SE
8620 # old Intel for x86_64 which still supported -KPIC.
8621 ecc*)
d7040cdb
SE
8622 lt_prog_compiler_wl='-Wl,'
8623 lt_prog_compiler_pic='-KPIC'
8624 lt_prog_compiler_static='-static'
8625 ;;
718a6fd8
SE
8626 # icc used to be incompatible with GCC.
8627 # ICC 10 doesn't accept -KPIC any more.
8628 icc* | ifort*)
8629 lt_prog_compiler_wl='-Wl,'
8630 lt_prog_compiler_pic='-fPIC'
8631 lt_prog_compiler_static='-static'
8632 ;;
8633 # Lahey Fortran 8.1.
8634 lf95*)
8635 lt_prog_compiler_wl='-Wl,'
8636 lt_prog_compiler_pic='--shared'
8637 lt_prog_compiler_static='--static'
8638 ;;
3725885a 8639 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
d7040cdb
SE
8640 # Portland Group compilers (*not* the Pentium gcc compiler,
8641 # which looks to be a dead project)
8642 lt_prog_compiler_wl='-Wl,'
8643 lt_prog_compiler_pic='-fpic'
8644 lt_prog_compiler_static='-Bstatic'
8645 ;;
8646 ccc*)
8647 lt_prog_compiler_wl='-Wl,'
8648 # All Alpha code is PIC.
8649 lt_prog_compiler_static='-non_shared'
8650 ;;
3725885a
RW
8651 xl* | bgxl* | bgf* | mpixl*)
8652 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
718a6fd8
SE
8653 lt_prog_compiler_wl='-Wl,'
8654 lt_prog_compiler_pic='-qpic'
8655 lt_prog_compiler_static='-qstaticlink'
8656 ;;
d7040cdb
SE
8657 *)
8658 case `$CC -V 2>&1 | sed 5q` in
3725885a
RW
8659 *Sun\ F* | *Sun*Fortran*)
8660 # Sun Fortran 8.3 passes all unrecognized flags to the linker
d7040cdb
SE
8661 lt_prog_compiler_pic='-KPIC'
8662 lt_prog_compiler_static='-Bstatic'
3725885a 8663 lt_prog_compiler_wl=''
d7040cdb 8664 ;;
3725885a
RW
8665 *Sun\ C*)
8666 # Sun C 5.9
d7040cdb
SE
8667 lt_prog_compiler_pic='-KPIC'
8668 lt_prog_compiler_static='-Bstatic'
3725885a 8669 lt_prog_compiler_wl='-Wl,'
d7040cdb
SE
8670 ;;
8671 esac
8672 ;;
8673 esac
8674 ;;
8675
8676 newsos6)
8677 lt_prog_compiler_pic='-KPIC'
8678 lt_prog_compiler_static='-Bstatic'
8679 ;;
8680
8681 *nto* | *qnx*)
8682 # QNX uses GNU C++, but need to define -shared option too, otherwise
8683 # it will coredump.
8684 lt_prog_compiler_pic='-fPIC -shared'
8685 ;;
8686
8687 osf3* | osf4* | osf5*)
8688 lt_prog_compiler_wl='-Wl,'
8689 # All OSF/1 code is PIC.
8690 lt_prog_compiler_static='-non_shared'
8691 ;;
8692
8693 rdos*)
8694 lt_prog_compiler_static='-non_shared'
8695 ;;
8696
8697 solaris*)
8698 lt_prog_compiler_pic='-KPIC'
8699 lt_prog_compiler_static='-Bstatic'
8700 case $cc_basename in
8701 f77* | f90* | f95*)
8702 lt_prog_compiler_wl='-Qoption ld ';;
8703 *)
8704 lt_prog_compiler_wl='-Wl,';;
8705 esac
8706 ;;
8707
8708 sunos4*)
8709 lt_prog_compiler_wl='-Qoption ld '
8710 lt_prog_compiler_pic='-PIC'
8711 lt_prog_compiler_static='-Bstatic'
8712 ;;
8713
8714 sysv4 | sysv4.2uw2* | sysv4.3*)
8715 lt_prog_compiler_wl='-Wl,'
8716 lt_prog_compiler_pic='-KPIC'
8717 lt_prog_compiler_static='-Bstatic'
8718 ;;
8719
8720 sysv4*MP*)
8721 if test -d /usr/nec ;then
8722 lt_prog_compiler_pic='-Kconform_pic'
8723 lt_prog_compiler_static='-Bstatic'
8724 fi
8725 ;;
8726
8727 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8728 lt_prog_compiler_wl='-Wl,'
8729 lt_prog_compiler_pic='-KPIC'
8730 lt_prog_compiler_static='-Bstatic'
8731 ;;
8732
8733 unicos*)
8734 lt_prog_compiler_wl='-Wl,'
8735 lt_prog_compiler_can_build_shared=no
8736 ;;
8737
8738 uts4*)
8739 lt_prog_compiler_pic='-pic'
8740 lt_prog_compiler_static='-Bstatic'
8741 ;;
8742
8743 *)
8744 lt_prog_compiler_can_build_shared=no
8745 ;;
8746 esac
8747 fi
8748
8749case $host_os in
8750 # For platforms which do not support PIC, -DPIC is meaningless:
8751 *djgpp*)
8752 lt_prog_compiler_pic=
8753 ;;
8754 *)
8755 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8756 ;;
8757esac
81ecdfbb
RW
8758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8759$as_echo "$lt_prog_compiler_pic" >&6; }
d7040cdb
SE
8760
8761
8762
8763
8764
8765
8766#
8767# Check to make sure the PIC flag actually works.
8768#
8769if test -n "$lt_prog_compiler_pic"; then
81ecdfbb
RW
8770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8771$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8772if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8773 $as_echo_n "(cached) " >&6
d7040cdb 8774else
718a6fd8 8775 lt_cv_prog_compiler_pic_works=no
d7040cdb
SE
8776 ac_outfile=conftest.$ac_objext
8777 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8778 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8779 # Insert the option either (1) after the last *FLAGS variable, or
8780 # (2) before a word containing "conftest.", or (3) at the end.
8781 # Note that $ac_compile itself does not contain backslashes and begins
8782 # with a dollar sign (not a hyphen), so the echo should work correctly.
8783 # The option is referenced via a variable to avoid confusing sed.
8784 lt_compile=`echo "$ac_compile" | $SED \
8785 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8786 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8787 -e 's:$: $lt_compiler_flag:'`
3725885a 8788 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
d7040cdb
SE
8789 (eval "$lt_compile" 2>conftest.err)
8790 ac_status=$?
8791 cat conftest.err >&5
3725885a 8792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb
SE
8793 if (exit $ac_status) && test -s "$ac_outfile"; then
8794 # The compiler can only warn and ignore the option if not recognized
8795 # So say no if there are warnings other than the usual output.
3725885a 8796 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
d7040cdb
SE
8797 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8798 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
718a6fd8 8799 lt_cv_prog_compiler_pic_works=yes
d7040cdb
SE
8800 fi
8801 fi
8802 $RM conftest*
8803
8804fi
81ecdfbb
RW
8805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8806$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
d7040cdb 8807
718a6fd8 8808if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
d7040cdb
SE
8809 case $lt_prog_compiler_pic in
8810 "" | " "*) ;;
8811 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8812 esac
8813else
8814 lt_prog_compiler_pic=
8815 lt_prog_compiler_can_build_shared=no
8816fi
8817
8818fi
8819
8820
8821
8822
8823
8824
8825#
8826# Check to make sure the static flag actually works.
8827#
8828wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
81ecdfbb
RW
8829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8830$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8831if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8832 $as_echo_n "(cached) " >&6
d7040cdb 8833else
718a6fd8 8834 lt_cv_prog_compiler_static_works=no
d7040cdb
SE
8835 save_LDFLAGS="$LDFLAGS"
8836 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8837 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8838 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8839 # The linker can only warn and ignore the option if not recognized
8840 # So say no if there are warnings
8841 if test -s conftest.err; then
8842 # Append any errors to the config.log.
8843 cat conftest.err 1>&5
3725885a 8844 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
d7040cdb
SE
8845 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8846 if diff conftest.exp conftest.er2 >/dev/null; then
718a6fd8 8847 lt_cv_prog_compiler_static_works=yes
d7040cdb
SE
8848 fi
8849 else
718a6fd8 8850 lt_cv_prog_compiler_static_works=yes
d7040cdb
SE
8851 fi
8852 fi
718a6fd8 8853 $RM -r conftest*
d7040cdb
SE
8854 LDFLAGS="$save_LDFLAGS"
8855
8856fi
81ecdfbb
RW
8857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8858$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
d7040cdb 8859
718a6fd8 8860if test x"$lt_cv_prog_compiler_static_works" = xyes; then
d7040cdb
SE
8861 :
8862else
8863 lt_prog_compiler_static=
8864fi
8865
8866
8867
8868
8869
8870
8871
81ecdfbb
RW
8872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8873$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8874if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8875 $as_echo_n "(cached) " >&6
d7040cdb
SE
8876else
8877 lt_cv_prog_compiler_c_o=no
8878 $RM -r conftest 2>/dev/null
8879 mkdir conftest
8880 cd conftest
8881 mkdir out
8882 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8883
8884 lt_compiler_flag="-o out/conftest2.$ac_objext"
8885 # Insert the option either (1) after the last *FLAGS variable, or
8886 # (2) before a word containing "conftest.", or (3) at the end.
8887 # Note that $ac_compile itself does not contain backslashes and begins
8888 # with a dollar sign (not a hyphen), so the echo should work correctly.
8889 lt_compile=`echo "$ac_compile" | $SED \
8890 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8891 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8892 -e 's:$: $lt_compiler_flag:'`
3725885a 8893 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
d7040cdb
SE
8894 (eval "$lt_compile" 2>out/conftest.err)
8895 ac_status=$?
8896 cat out/conftest.err >&5
3725885a 8897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb
SE
8898 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8899 then
8900 # The compiler can only warn and ignore the option if not recognized
8901 # So say no if there are warnings
3725885a 8902 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
d7040cdb
SE
8903 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8904 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8905 lt_cv_prog_compiler_c_o=yes
8906 fi
8907 fi
8908 chmod u+w . 2>&5
8909 $RM conftest*
8910 # SGI C++ compiler will create directory out/ii_files/ for
8911 # template instantiation
8912 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8913 $RM out/* && rmdir out
8914 cd ..
8915 $RM -r conftest
8916 $RM conftest*
8917
8918fi
81ecdfbb
RW
8919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8920$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
d7040cdb
SE
8921
8922
8923
8924
8925
8926
81ecdfbb
RW
8927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8928$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8929if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8930 $as_echo_n "(cached) " >&6
d7040cdb
SE
8931else
8932 lt_cv_prog_compiler_c_o=no
8933 $RM -r conftest 2>/dev/null
8934 mkdir conftest
8935 cd conftest
8936 mkdir out
8937 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8938
8939 lt_compiler_flag="-o out/conftest2.$ac_objext"
8940 # Insert the option either (1) after the last *FLAGS variable, or
8941 # (2) before a word containing "conftest.", or (3) at the end.
8942 # Note that $ac_compile itself does not contain backslashes and begins
8943 # with a dollar sign (not a hyphen), so the echo should work correctly.
8944 lt_compile=`echo "$ac_compile" | $SED \
8945 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8946 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8947 -e 's:$: $lt_compiler_flag:'`
3725885a 8948 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
d7040cdb
SE
8949 (eval "$lt_compile" 2>out/conftest.err)
8950 ac_status=$?
8951 cat out/conftest.err >&5
3725885a 8952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb
SE
8953 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8954 then
8955 # The compiler can only warn and ignore the option if not recognized
8956 # So say no if there are warnings
3725885a 8957 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
d7040cdb
SE
8958 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8959 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8960 lt_cv_prog_compiler_c_o=yes
8961 fi
8962 fi
8963 chmod u+w . 2>&5
8964 $RM conftest*
8965 # SGI C++ compiler will create directory out/ii_files/ for
8966 # template instantiation
8967 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8968 $RM out/* && rmdir out
8969 cd ..
8970 $RM -r conftest
8971 $RM conftest*
8972
8973fi
81ecdfbb
RW
8974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8975$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
d7040cdb
SE
8976
8977
8978
8979
8980hard_links="nottested"
8981if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8982 # do not overwrite the value of need_locks provided by the user
81ecdfbb
RW
8983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8984$as_echo_n "checking if we can lock with hard links... " >&6; }
d7040cdb
SE
8985 hard_links=yes
8986 $RM conftest*
8987 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8988 touch conftest.a
8989 ln conftest.a conftest.b 2>&5 || hard_links=no
8990 ln conftest.a conftest.b 2>/dev/null && hard_links=no
81ecdfbb
RW
8991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8992$as_echo "$hard_links" >&6; }
d7040cdb 8993 if test "$hard_links" = no; then
81ecdfbb
RW
8994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8995$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
d7040cdb
SE
8996 need_locks=warn
8997 fi
8998else
8999 need_locks=no
9000fi
9001
9002
9003
9004
9005
9006
81ecdfbb
RW
9007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9008$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
d7040cdb
SE
9009
9010 runpath_var=
9011 allow_undefined_flag=
9012 always_export_symbols=no
9013 archive_cmds=
9014 archive_expsym_cmds=
9015 compiler_needs_object=no
9016 enable_shared_with_static_runtimes=no
9017 export_dynamic_flag_spec=
9018 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9019 hardcode_automatic=no
9020 hardcode_direct=no
9021 hardcode_direct_absolute=no
9022 hardcode_libdir_flag_spec=
9023 hardcode_libdir_flag_spec_ld=
9024 hardcode_libdir_separator=
9025 hardcode_minus_L=no
9026 hardcode_shlibpath_var=unsupported
9027 inherit_rpath=no
9028 link_all_deplibs=unknown
9029 module_cmds=
9030 module_expsym_cmds=
9031 old_archive_from_new_cmds=
9032 old_archive_from_expsyms_cmds=
9033 thread_safe_flag_spec=
9034 whole_archive_flag_spec=
9035 # include_expsyms should be a list of space-separated symbols to be *always*
9036 # included in the symbol list
9037 include_expsyms=
9038 # exclude_expsyms can be an extended regexp of symbols to exclude
9039 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9040 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9041 # as well as any symbol that contains `d'.
718a6fd8 9042 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
d7040cdb
SE
9043 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9044 # platforms (ab)use it in PIC code, but their linkers get confused if
9045 # the symbol is explicitly referenced. Since portable code cannot
9046 # rely on this symbol name, it's probably fine to never include it in
9047 # preloaded symbol tables.
718a6fd8 9048 # Exclude shared library initialization/finalization symbols.
d7040cdb
SE
9049 extract_expsyms_cmds=
9050
9051 case $host_os in
718a6fd8 9052 cygwin* | mingw* | pw32* | cegcc*)
d7040cdb
SE
9053 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9054 # When not using gcc, we currently assume that we are using
9055 # Microsoft Visual C++.
9056 if test "$GCC" != yes; then
9057 with_gnu_ld=no
9058 fi
9059 ;;
9060 interix*)
9061 # we just hope/assume this is gcc and not c89 (= MSVC++)
9062 with_gnu_ld=yes
9063 ;;
9064 openbsd*)
9065 with_gnu_ld=no
9066 ;;
9067 esac
9068
9069 ld_shlibs=yes
3725885a
RW
9070
9071 # On some targets, GNU ld is compatible enough with the native linker
9072 # that we're better off using the native interface for both.
9073 lt_use_gnu_ld_interface=no
d7040cdb 9074 if test "$with_gnu_ld" = yes; then
3725885a
RW
9075 case $host_os in
9076 aix*)
9077 # The AIX port of GNU ld has always aspired to compatibility
9078 # with the native linker. However, as the warning in the GNU ld
9079 # block says, versions before 2.19.5* couldn't really create working
9080 # shared libraries, regardless of the interface used.
9081 case `$LD -v 2>&1` in
9082 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9083 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9084 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9085 *)
9086 lt_use_gnu_ld_interface=yes
9087 ;;
9088 esac
9089 ;;
9090 *)
9091 lt_use_gnu_ld_interface=yes
9092 ;;
9093 esac
9094 fi
9095
9096 if test "$lt_use_gnu_ld_interface" = yes; then
d7040cdb
SE
9097 # If archive_cmds runs LD, not CC, wlarc should be empty
9098 wlarc='${wl}'
9099
9100 # Set some defaults for GNU ld with shared library support. These
9101 # are reset later if shared libraries are not supported. Putting them
9102 # here allows them to be overridden if necessary.
9103 runpath_var=LD_RUN_PATH
9104 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9105 export_dynamic_flag_spec='${wl}--export-dynamic'
9106 # ancient GNU ld didn't support --whole-archive et. al.
9107 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9108 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9109 else
9110 whole_archive_flag_spec=
9111 fi
9112 supports_anon_versioning=no
9113 case `$LD -v 2>&1` in
3725885a 9114 *GNU\ gold*) supports_anon_versioning=yes ;;
d7040cdb
SE
9115 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9116 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9117 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9118 *\ 2.11.*) ;; # other 2.11 versions
9119 *) supports_anon_versioning=yes ;;
9120 esac
9121
9122 # See if GNU ld supports shared libraries.
9123 case $host_os in
e81819a5 9124 aix[3-9]*)
d7040cdb
SE
9125 # On AIX/PPC, the GNU linker is very broken
9126 if test "$host_cpu" != ia64; then
9127 ld_shlibs=no
9128 cat <<_LT_EOF 1>&2
9129
3725885a 9130*** Warning: the GNU linker, at least up to release 2.19, is reported
d7040cdb
SE
9131*** to be unable to reliably create shared libraries on AIX.
9132*** Therefore, libtool is disabling shared libraries support. If you
3725885a
RW
9133*** really care for shared libraries, you may want to install binutils
9134*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9135*** You will then need to restart the configuration process.
d7040cdb
SE
9136
9137_LT_EOF
9138 fi
9139 ;;
9140
9141 amigaos*)
718a6fd8
SE
9142 case $host_cpu in
9143 powerpc)
9144 # see comment about AmigaOS4 .so support
9145 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9146 archive_expsym_cmds=''
9147 ;;
9148 m68k)
9149 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)'
9150 hardcode_libdir_flag_spec='-L$libdir'
9151 hardcode_minus_L=yes
9152 ;;
9153 esac
d7040cdb
SE
9154 ;;
9155
9156 beos*)
9157 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9158 allow_undefined_flag=unsupported
9159 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9160 # support --undefined. This deserves some investigation. FIXME
9161 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9162 else
9163 ld_shlibs=no
9164 fi
9165 ;;
9166
718a6fd8 9167 cygwin* | mingw* | pw32* | cegcc*)
d7040cdb
SE
9168 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9169 # as there is no search path for DLLs.
9170 hardcode_libdir_flag_spec='-L$libdir'
3725885a 9171 export_dynamic_flag_spec='${wl}--export-all-symbols'
d7040cdb
SE
9172 allow_undefined_flag=unsupported
9173 always_export_symbols=no
9174 enable_shared_with_static_runtimes=yes
9175 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9176
9177 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9178 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9179 # If the export-symbols file already is a .def file (1st line
9180 # is EXPORTS), use it as is; otherwise, prepend...
9181 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9182 cp $export_symbols $output_objdir/$soname.def;
9183 else
9184 echo EXPORTS > $output_objdir/$soname.def;
9185 cat $export_symbols >> $output_objdir/$soname.def;
9186 fi~
9187 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9188 else
9189 ld_shlibs=no
9190 fi
9191 ;;
9192
3725885a
RW
9193 haiku*)
9194 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9195 link_all_deplibs=yes
9196 ;;
9197
d7040cdb
SE
9198 interix[3-9]*)
9199 hardcode_direct=no
9200 hardcode_shlibpath_var=no
9201 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9202 export_dynamic_flag_spec='${wl}-E'
9203 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9204 # Instead, shared libraries are loaded at an image base (0x10000000 by
9205 # default) and relocated if they conflict, which is a slow very memory
9206 # consuming and fragmenting process. To avoid this, we pick a random,
9207 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9208 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9209 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9210 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'
9211 ;;
9212
58e24671 9213 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
d7040cdb
SE
9214 tmp_diet=no
9215 if test "$host_os" = linux-dietlibc; then
9216 case $cc_basename in
9217 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9218 esac
9219 fi
9220 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9221 && test "$tmp_diet" = no
9222 then
6e733cce 9223 tmp_addflag=' $pic_flag'
718a6fd8 9224 tmp_sharedflag='-shared'
d7040cdb
SE
9225 case $cc_basename,$host_cpu in
9226 pgcc*) # Portland Group C compiler
3725885a 9227 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
9228 tmp_addflag=' $pic_flag'
9229 ;;
3725885a
RW
9230 pgf77* | pgf90* | pgf95* | pgfortran*)
9231 # Portland Group f77 and f90 compilers
9232 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
9233 tmp_addflag=' $pic_flag -Mnomain' ;;
9234 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9235 tmp_addflag=' -i_dynamic' ;;
9236 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9237 tmp_addflag=' -i_dynamic -nofor_main' ;;
9238 ifc* | ifort*) # Intel Fortran compiler
9239 tmp_addflag=' -nofor_main' ;;
718a6fd8
SE
9240 lf95*) # Lahey Fortran 8.1
9241 whole_archive_flag_spec=
9242 tmp_sharedflag='--shared' ;;
3725885a 9243 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
718a6fd8
SE
9244 tmp_sharedflag='-qmkshrobj'
9245 tmp_addflag= ;;
3725885a
RW
9246 nvcc*) # Cuda Compiler Driver 2.2
9247 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'
9248 compiler_needs_object=yes
9249 ;;
d7040cdb
SE
9250 esac
9251 case `$CC -V 2>&1 | sed 5q` in
9252 *Sun\ C*) # Sun C 5.9
3725885a 9253 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
9254 compiler_needs_object=yes
9255 tmp_sharedflag='-G' ;;
9256 *Sun\ F*) # Sun Fortran 8.3
9257 tmp_sharedflag='-G' ;;
d7040cdb
SE
9258 esac
9259 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9260
9261 if test "x$supports_anon_versioning" = xyes; then
9262 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9263 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9264 echo "local: *; };" >> $output_objdir/$libname.ver~
9265 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9266 fi
718a6fd8
SE
9267
9268 case $cc_basename in
3725885a 9269 xlf* | bgf* | bgxlf* | mpixlf*)
718a6fd8
SE
9270 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9271 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9272 hardcode_libdir_flag_spec=
9273 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9274 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9275 if test "x$supports_anon_versioning" = xyes; then
9276 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9277 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9278 echo "local: *; };" >> $output_objdir/$libname.ver~
9279 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9280 fi
9281 ;;
9282 esac
d7040cdb
SE
9283 else
9284 ld_shlibs=no
9285 fi
9286 ;;
9287
9288 netbsd*)
9289 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9290 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9291 wlarc=
9292 else
9293 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9294 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9295 fi
9296 ;;
9297
9298 solaris*)
9299 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9300 ld_shlibs=no
9301 cat <<_LT_EOF 1>&2
9302
9303*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9304*** create shared libraries on Solaris systems. Therefore, libtool
9305*** is disabling shared libraries support. We urge you to upgrade GNU
9306*** binutils to release 2.9.1 or newer. Another option is to modify
9307*** your PATH or compiler configuration so that the native linker is
9308*** used, and then restart.
9309
9310_LT_EOF
9311 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9312 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9313 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9314 else
9315 ld_shlibs=no
9316 fi
9317 ;;
9318
9319 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9320 case `$LD -v 2>&1` in
9321 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9322 ld_shlibs=no
9323 cat <<_LT_EOF 1>&2
9324
9325*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9326*** reliably create shared libraries on SCO systems. Therefore, libtool
9327*** is disabling shared libraries support. We urge you to upgrade GNU
9328*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9329*** your PATH or compiler configuration so that the native linker is
9330*** used, and then restart.
9331
9332_LT_EOF
9333 ;;
9334 *)
9335 # For security reasons, it is highly recommended that you always
9336 # use absolute paths for naming shared libraries, and exclude the
9337 # DT_RUNPATH tag from executables and libraries. But doing so
9338 # requires that you compile everything twice, which is a pain.
9339 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9340 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9341 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9342 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9343 else
9344 ld_shlibs=no
9345 fi
9346 ;;
9347 esac
9348 ;;
9349
9350 sunos4*)
9351 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9352 wlarc=
9353 hardcode_direct=yes
9354 hardcode_shlibpath_var=no
9355 ;;
9356
9357 *)
9358 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9359 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9360 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9361 else
9362 ld_shlibs=no
9363 fi
9364 ;;
9365 esac
9366
9367 if test "$ld_shlibs" = no; then
9368 runpath_var=
9369 hardcode_libdir_flag_spec=
9370 export_dynamic_flag_spec=
9371 whole_archive_flag_spec=
9372 fi
9373 else
9374 # PORTME fill in a description of your system's linker (not GNU ld)
9375 case $host_os in
9376 aix3*)
9377 allow_undefined_flag=unsupported
9378 always_export_symbols=yes
9379 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'
9380 # Note: this linker hardcodes the directories in LIBPATH if there
9381 # are no directories specified by -L.
9382 hardcode_minus_L=yes
9383 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9384 # Neither direct hardcoding nor static linking is supported with a
9385 # broken collect2.
9386 hardcode_direct=unsupported
9387 fi
9388 ;;
9389
e81819a5 9390 aix[4-9]*)
d7040cdb
SE
9391 if test "$host_cpu" = ia64; then
9392 # On IA64, the linker does run time linking by default, so we don't
9393 # have to do anything special.
9394 aix_use_runtimelinking=no
9395 exp_sym_flag='-Bexport'
9396 no_entry_flag=""
9397 else
9398 # If we're using GNU nm, then we don't want the "-C" option.
9399 # -C means demangle to AIX nm, but means don't demangle with GNU nm
3725885a
RW
9400 # Also, AIX nm treats weak defined symbols like other global
9401 # defined symbols, whereas GNU nm marks them as "W".
d7040cdb 9402 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
3725885a 9403 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 9404 else
5c14705f 9405 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
9406 fi
9407 aix_use_runtimelinking=no
9408
9409 # Test if we are trying to use run time linking or normal
9410 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9411 # need to do runtime linking.
e81819a5 9412 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
d7040cdb
SE
9413 for ld_flag in $LDFLAGS; do
9414 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9415 aix_use_runtimelinking=yes
9416 break
9417 fi
9418 done
9419 ;;
9420 esac
9421
9422 exp_sym_flag='-bexport'
9423 no_entry_flag='-bnoentry'
9424 fi
9425
9426 # When large executables or shared objects are built, AIX ld can
9427 # have problems creating the table of contents. If linking a library
9428 # or program results in "error TOC overflow" add -mminimal-toc to
9429 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9430 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9431
9432 archive_cmds=''
9433 hardcode_direct=yes
9434 hardcode_direct_absolute=yes
9435 hardcode_libdir_separator=':'
9436 link_all_deplibs=yes
9437 file_list_spec='${wl}-f,'
9438
9439 if test "$GCC" = yes; then
9440 case $host_os in aix4.[012]|aix4.[012].*)
9441 # We only want to do this on AIX 4.2 and lower, the check
9442 # below for broken collect2 doesn't work under 4.3+
9443 collect2name=`${CC} -print-prog-name=collect2`
9444 if test -f "$collect2name" &&
9445 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9446 then
9447 # We have reworked collect2
9448 :
9449 else
9450 # We have old collect2
9451 hardcode_direct=unsupported
9452 # It fails to find uninstalled libraries when the uninstalled
9453 # path is not listed in the libpath. Setting hardcode_minus_L
9454 # to unsupported forces relinking
9455 hardcode_minus_L=yes
9456 hardcode_libdir_flag_spec='-L$libdir'
9457 hardcode_libdir_separator=
9458 fi
9459 ;;
9460 esac
9461 shared_flag='-shared'
9462 if test "$aix_use_runtimelinking" = yes; then
9463 shared_flag="$shared_flag "'${wl}-G'
9464 fi
9465 else
9466 # not using gcc
9467 if test "$host_cpu" = ia64; then
9468 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9469 # chokes on -Wl,-G. The following line is correct:
9470 shared_flag='-G'
9471 else
9472 if test "$aix_use_runtimelinking" = yes; then
9473 shared_flag='${wl}-G'
9474 else
9475 shared_flag='${wl}-bM:SRE'
9476 fi
9477 fi
9478 fi
9479
718a6fd8 9480 export_dynamic_flag_spec='${wl}-bexpall'
d7040cdb
SE
9481 # It seems that -bexpall does not export symbols beginning with
9482 # underscore (_), so it is better to generate a list of symbols to export.
9483 always_export_symbols=yes
9484 if test "$aix_use_runtimelinking" = yes; then
9485 # Warning - without using the other runtime loading flags (-brtl),
9486 # -berok will link without error, but may produce a broken library.
9487 allow_undefined_flag='-berok'
9488 # Determine the default libpath from the value encoded in an
9489 # empty executable.
81ecdfbb 9490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
9491/* end confdefs.h. */
9492
9493int
9494main ()
9495{
9496
9497 ;
9498 return 0;
9499}
9500_ACEOF
81ecdfbb 9501if ac_fn_c_try_link "$LINENO"; then :
d7040cdb
SE
9502
9503lt_aix_libpath_sed='
9504 /Import File Strings/,/^$/ {
9505 /^0/ {
9506 s/^0 *\(.*\)$/\1/
9507 p
9508 }
9509 }'
9510aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9511# Check for a 64-bit object if we didn't find anything.
9512if test -z "$aix_libpath"; then
9513 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9514fi
d7040cdb 9515fi
81ecdfbb
RW
9516rm -f core conftest.err conftest.$ac_objext \
9517 conftest$ac_exeext conftest.$ac_ext
d7040cdb
SE
9518if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9519
9520 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
3725885a 9521 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
9522 else
9523 if test "$host_cpu" = ia64; then
9524 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9525 allow_undefined_flag="-z nodefs"
9526 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"
9527 else
9528 # Determine the default libpath from the value encoded in an
9529 # empty executable.
81ecdfbb 9530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
9531/* end confdefs.h. */
9532
9533int
9534main ()
9535{
9536
9537 ;
9538 return 0;
9539}
9540_ACEOF
81ecdfbb 9541if ac_fn_c_try_link "$LINENO"; then :
d7040cdb
SE
9542
9543lt_aix_libpath_sed='
9544 /Import File Strings/,/^$/ {
9545 /^0/ {
9546 s/^0 *\(.*\)$/\1/
9547 p
9548 }
9549 }'
9550aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9551# Check for a 64-bit object if we didn't find anything.
9552if test -z "$aix_libpath"; then
9553 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9554fi
d7040cdb 9555fi
81ecdfbb
RW
9556rm -f core conftest.err conftest.$ac_objext \
9557 conftest$ac_exeext conftest.$ac_ext
d7040cdb
SE
9558if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9559
9560 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9561 # Warning - without using the other run time loading flags,
9562 # -berok will link without error, but may produce a broken library.
9563 no_undefined_flag=' ${wl}-bernotok'
9564 allow_undefined_flag=' ${wl}-berok'
3725885a
RW
9565 if test "$with_gnu_ld" = yes; then
9566 # We only use this code for GNU lds that support --whole-archive.
9567 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9568 else
9569 # Exported symbols can be pulled into shared objects from archives
9570 whole_archive_flag_spec='$convenience'
9571 fi
d7040cdb
SE
9572 archive_cmds_need_lc=yes
9573 # This is similar to how AIX traditionally builds its shared libraries.
9574 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'
9575 fi
9576 fi
9577 ;;
9578
9579 amigaos*)
718a6fd8
SE
9580 case $host_cpu in
9581 powerpc)
9582 # see comment about AmigaOS4 .so support
9583 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9584 archive_expsym_cmds=''
9585 ;;
9586 m68k)
9587 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)'
9588 hardcode_libdir_flag_spec='-L$libdir'
9589 hardcode_minus_L=yes
9590 ;;
9591 esac
d7040cdb
SE
9592 ;;
9593
9594 bsdi[45]*)
9595 export_dynamic_flag_spec=-rdynamic
9596 ;;
9597
718a6fd8 9598 cygwin* | mingw* | pw32* | cegcc*)
d7040cdb
SE
9599 # When not using gcc, we currently assume that we are using
9600 # Microsoft Visual C++.
9601 # hardcode_libdir_flag_spec is actually meaningless, as there is
9602 # no search path for DLLs.
9603 hardcode_libdir_flag_spec=' '
9604 allow_undefined_flag=unsupported
9605 # Tell ltmain to make .lib files, not .a files.
9606 libext=lib
9607 # Tell ltmain to make .dll files, not .so files.
9608 shrext_cmds=".dll"
9609 # FIXME: Setting linknames here is a bad hack.
3725885a 9610 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
d7040cdb
SE
9611 # The linker will automatically build a .lib file if we build a DLL.
9612 old_archive_from_new_cmds='true'
9613 # FIXME: Should let the user specify the lib program.
9614 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9615 fix_srcfile_path='`cygpath -w "$srcfile"`'
9616 enable_shared_with_static_runtimes=yes
9617 ;;
9618
9619 darwin* | rhapsody*)
d7040cdb 9620
718a6fd8
SE
9621
9622 archive_cmds_need_lc=no
9623 hardcode_direct=no
9624 hardcode_automatic=yes
9625 hardcode_shlibpath_var=unsupported
3725885a
RW
9626 if test "$lt_cv_ld_force_load" = "yes"; then
9627 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\"`'
9628 else
9629 whole_archive_flag_spec=''
9630 fi
718a6fd8
SE
9631 link_all_deplibs=yes
9632 allow_undefined_flag="$_lt_dar_allow_undefined"
9633 case $cc_basename in
9634 ifort*) _lt_dar_can_shared=yes ;;
9635 *) _lt_dar_can_shared=$GCC ;;
9636 esac
9637 if test "$_lt_dar_can_shared" = "yes"; then
3725885a 9638 output_verbose_link_cmd=func_echo_all
718a6fd8
SE
9639 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9640 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9641 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}"
9642 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}"
9643
9644 else
9645 ld_shlibs=no
9646 fi
9647
d7040cdb
SE
9648 ;;
9649
9650 dgux*)
9651 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9652 hardcode_libdir_flag_spec='-L$libdir'
9653 hardcode_shlibpath_var=no
9654 ;;
9655
d7040cdb
SE
9656 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9657 # support. Future versions do this automatically, but an explicit c++rt0.o
9658 # does not break anything, and helps significantly (at the cost of a little
9659 # extra space).
9660 freebsd2.2*)
9661 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9662 hardcode_libdir_flag_spec='-R$libdir'
9663 hardcode_direct=yes
9664 hardcode_shlibpath_var=no
9665 ;;
9666
9667 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6d2920c8 9668 freebsd2.*)
d7040cdb
SE
9669 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9670 hardcode_direct=yes
9671 hardcode_minus_L=yes
9672 hardcode_shlibpath_var=no
9673 ;;
9674
9675 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9676 freebsd* | dragonfly*)
9677 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9678 hardcode_libdir_flag_spec='-R$libdir'
9679 hardcode_direct=yes
9680 hardcode_shlibpath_var=no
9681 ;;
9682
9683 hpux9*)
9684 if test "$GCC" = yes; then
9685 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'
9686 else
9687 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'
9688 fi
9689 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9690 hardcode_libdir_separator=:
9691 hardcode_direct=yes
9692
9693 # hardcode_minus_L: Not really in the search PATH,
9694 # but as the default location of the library.
9695 hardcode_minus_L=yes
9696 export_dynamic_flag_spec='${wl}-E'
9697 ;;
9698
9699 hpux10*)
3725885a 9700 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
d7040cdb
SE
9701 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9702 else
9703 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9704 fi
9705 if test "$with_gnu_ld" = no; then
9706 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9707 hardcode_libdir_flag_spec_ld='+b $libdir'
9708 hardcode_libdir_separator=:
9709 hardcode_direct=yes
9710 hardcode_direct_absolute=yes
9711 export_dynamic_flag_spec='${wl}-E'
9712 # hardcode_minus_L: Not really in the search PATH,
9713 # but as the default location of the library.
9714 hardcode_minus_L=yes
9715 fi
9716 ;;
9717
9718 hpux11*)
3725885a 9719 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
d7040cdb
SE
9720 case $host_cpu in
9721 hppa*64*)
9722 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9723 ;;
9724 ia64*)
718a6fd8 9725 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
d7040cdb
SE
9726 ;;
9727 *)
9728 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9729 ;;
9730 esac
9731 else
9732 case $host_cpu in
9733 hppa*64*)
9734 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9735 ;;
9736 ia64*)
9737 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9738 ;;
9739 *)
3725885a
RW
9740
9741 # Older versions of the 11.00 compiler do not understand -b yet
9742 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9744$as_echo_n "checking if $CC understands -b... " >&6; }
9745if test "${lt_cv_prog_compiler__b+set}" = set; then :
9746 $as_echo_n "(cached) " >&6
9747else
9748 lt_cv_prog_compiler__b=no
9749 save_LDFLAGS="$LDFLAGS"
9750 LDFLAGS="$LDFLAGS -b"
9751 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9752 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9753 # The linker can only warn and ignore the option if not recognized
9754 # So say no if there are warnings
9755 if test -s conftest.err; then
9756 # Append any errors to the config.log.
9757 cat conftest.err 1>&5
9758 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9759 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9760 if diff conftest.exp conftest.er2 >/dev/null; then
9761 lt_cv_prog_compiler__b=yes
9762 fi
9763 else
9764 lt_cv_prog_compiler__b=yes
9765 fi
9766 fi
9767 $RM -r conftest*
9768 LDFLAGS="$save_LDFLAGS"
9769
9770fi
9771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9772$as_echo "$lt_cv_prog_compiler__b" >&6; }
9773
9774if test x"$lt_cv_prog_compiler__b" = xyes; then
9775 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9776else
9777 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9778fi
9779
d7040cdb
SE
9780 ;;
9781 esac
9782 fi
9783 if test "$with_gnu_ld" = no; then
9784 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9785 hardcode_libdir_separator=:
9786
9787 case $host_cpu in
9788 hppa*64*|ia64*)
9789 hardcode_direct=no
9790 hardcode_shlibpath_var=no
9791 ;;
9792 *)
9793 hardcode_direct=yes
9794 hardcode_direct_absolute=yes
9795 export_dynamic_flag_spec='${wl}-E'
9796
9797 # hardcode_minus_L: Not really in the search PATH,
9798 # but as the default location of the library.
9799 hardcode_minus_L=yes
9800 ;;
9801 esac
9802 fi
9803 ;;
9804
9805 irix5* | irix6* | nonstopux*)
9806 if test "$GCC" = yes; then
3725885a 9807 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
9808 # Try to use the -exported_symbol ld option, if it does not
9809 # work, assume that -exports_file does not work either and
9810 # implicitly export all symbols.
9811 save_LDFLAGS="$LDFLAGS"
9812 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
81ecdfbb
RW
9813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9814/* end confdefs.h. */
d7040cdb
SE
9815int foo(void) {}
9816_ACEOF
81ecdfbb 9817if ac_fn_c_try_link "$LINENO"; then :
3725885a 9818 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
d7040cdb 9819
d7040cdb 9820fi
81ecdfbb
RW
9821rm -f core conftest.err conftest.$ac_objext \
9822 conftest$ac_exeext conftest.$ac_ext
d7040cdb
SE
9823 LDFLAGS="$save_LDFLAGS"
9824 else
3725885a
RW
9825 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'
9826 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
9827 fi
9828 archive_cmds_need_lc='no'
9829 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9830 hardcode_libdir_separator=:
9831 inherit_rpath=yes
9832 link_all_deplibs=yes
9833 ;;
9834
9835 netbsd*)
9836 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9837 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9838 else
9839 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9840 fi
9841 hardcode_libdir_flag_spec='-R$libdir'
9842 hardcode_direct=yes
9843 hardcode_shlibpath_var=no
9844 ;;
9845
9846 newsos6)
9847 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9848 hardcode_direct=yes
9849 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9850 hardcode_libdir_separator=:
9851 hardcode_shlibpath_var=no
9852 ;;
9853
9854 *nto* | *qnx*)
9855 ;;
9856
9857 openbsd*)
718a6fd8
SE
9858 if test -f /usr/libexec/ld.so; then
9859 hardcode_direct=yes
9860 hardcode_shlibpath_var=no
9861 hardcode_direct_absolute=yes
9862 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
d7040cdb 9863 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
718a6fd8 9864 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
d7040cdb 9865 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
718a6fd8
SE
9866 export_dynamic_flag_spec='${wl}-E'
9867 else
9868 case $host_os in
9869 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9870 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9871 hardcode_libdir_flag_spec='-R$libdir'
9872 ;;
9873 *)
9874 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9875 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9876 ;;
9877 esac
9878 fi
9879 else
9880 ld_shlibs=no
d7040cdb
SE
9881 fi
9882 ;;
9883
9884 os2*)
9885 hardcode_libdir_flag_spec='-L$libdir'
9886 hardcode_minus_L=yes
9887 allow_undefined_flag=unsupported
3725885a 9888 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
9889 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9890 ;;
9891
9892 osf3*)
9893 if test "$GCC" = yes; then
9894 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3725885a 9895 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
9896 else
9897 allow_undefined_flag=' -expect_unresolved \*'
3725885a 9898 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
9899 fi
9900 archive_cmds_need_lc='no'
9901 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9902 hardcode_libdir_separator=:
9903 ;;
9904
9905 osf4* | osf5*) # as osf3* with the addition of -msym flag
9906 if test "$GCC" = yes; then
9907 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3725885a 9908 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
9909 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9910 else
9911 allow_undefined_flag=' -expect_unresolved \*'
3725885a 9912 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 9913 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 9914 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
d7040cdb
SE
9915
9916 # Both c and cxx compiler support -rpath directly
9917 hardcode_libdir_flag_spec='-rpath $libdir'
9918 fi
9919 archive_cmds_need_lc='no'
9920 hardcode_libdir_separator=:
9921 ;;
9922
9923 solaris*)
9924 no_undefined_flag=' -z defs'
9925 if test "$GCC" = yes; then
9926 wlarc='${wl}'
9927 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9928 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9929 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9930 else
9931 case `$CC -V 2>&1` in
9932 *"Compilers 5.0"*)
9933 wlarc=''
9934 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9935 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9936 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9937 ;;
9938 *)
9939 wlarc='${wl}'
9940 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9941 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9942 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9943 ;;
9944 esac
9945 fi
9946 hardcode_libdir_flag_spec='-R$libdir'
9947 hardcode_shlibpath_var=no
9948 case $host_os in
9949 solaris2.[0-5] | solaris2.[0-5].*) ;;
9950 *)
9951 # The compiler driver will combine and reorder linker options,
9952 # but understands `-z linker_flag'. GCC discards it without `$wl',
9953 # but is careful enough not to reorder.
9954 # Supported since Solaris 2.6 (maybe 2.5.1?)
9955 if test "$GCC" = yes; then
9956 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9957 else
9958 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9959 fi
9960 ;;
9961 esac
9962 link_all_deplibs=yes
9963 ;;
9964
9965 sunos4*)
9966 if test "x$host_vendor" = xsequent; then
9967 # Use $CC to link under sequent, because it throws in some extra .o
9968 # files that make .init and .fini sections work.
9969 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9970 else
9971 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9972 fi
9973 hardcode_libdir_flag_spec='-L$libdir'
9974 hardcode_direct=yes
9975 hardcode_minus_L=yes
9976 hardcode_shlibpath_var=no
9977 ;;
9978
9979 sysv4)
9980 case $host_vendor in
9981 sni)
9982 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9983 hardcode_direct=yes # is this really true???
9984 ;;
9985 siemens)
9986 ## LD is ld it makes a PLAMLIB
9987 ## CC just makes a GrossModule.
9988 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9989 reload_cmds='$CC -r -o $output$reload_objs'
9990 hardcode_direct=no
9991 ;;
9992 motorola)
9993 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9994 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9995 ;;
9996 esac
9997 runpath_var='LD_RUN_PATH'
9998 hardcode_shlibpath_var=no
9999 ;;
10000
10001 sysv4.3*)
10002 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10003 hardcode_shlibpath_var=no
10004 export_dynamic_flag_spec='-Bexport'
10005 ;;
10006
10007 sysv4*MP*)
10008 if test -d /usr/nec; then
10009 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10010 hardcode_shlibpath_var=no
10011 runpath_var=LD_RUN_PATH
10012 hardcode_runpath_var=yes
10013 ld_shlibs=yes
10014 fi
10015 ;;
10016
10017 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10018 no_undefined_flag='${wl}-z,text'
10019 archive_cmds_need_lc=no
10020 hardcode_shlibpath_var=no
10021 runpath_var='LD_RUN_PATH'
10022
10023 if test "$GCC" = yes; then
10024 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10025 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10026 else
10027 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10028 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10029 fi
10030 ;;
10031
10032 sysv5* | sco3.2v5* | sco5v6*)
10033 # Note: We can NOT use -z defs as we might desire, because we do not
10034 # link with -lc, and that would cause any symbols used from libc to
10035 # always be unresolved, which means just about no library would
10036 # ever link correctly. If we're not using GNU ld we use -z text
10037 # though, which does catch some bad symbols but isn't as heavy-handed
10038 # as -z defs.
10039 no_undefined_flag='${wl}-z,text'
10040 allow_undefined_flag='${wl}-z,nodefs'
10041 archive_cmds_need_lc=no
10042 hardcode_shlibpath_var=no
10043 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10044 hardcode_libdir_separator=':'
10045 link_all_deplibs=yes
10046 export_dynamic_flag_spec='${wl}-Bexport'
10047 runpath_var='LD_RUN_PATH'
10048
10049 if test "$GCC" = yes; then
10050 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10051 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10052 else
10053 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10054 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10055 fi
10056 ;;
10057
10058 uts4*)
10059 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10060 hardcode_libdir_flag_spec='-L$libdir'
10061 hardcode_shlibpath_var=no
10062 ;;
10063
10064 *)
10065 ld_shlibs=no
10066 ;;
10067 esac
10068
10069 if test x$host_vendor = xsni; then
10070 case $host in
10071 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10072 export_dynamic_flag_spec='${wl}-Blargedynsym'
10073 ;;
10074 esac
10075 fi
10076 fi
10077
81ecdfbb
RW
10078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10079$as_echo "$ld_shlibs" >&6; }
d7040cdb
SE
10080test "$ld_shlibs" = no && can_build_shared=no
10081
10082with_gnu_ld=$with_gnu_ld
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098#
10099# Do we need to explicitly link libc?
10100#
10101case "x$archive_cmds_need_lc" in
10102x|xyes)
10103 # Assume -lc should be added
10104 archive_cmds_need_lc=yes
10105
10106 if test "$enable_shared" = yes && test "$GCC" = yes; then
10107 case $archive_cmds in
10108 *'~'*)
10109 # FIXME: we may have to deal with multi-command sequences.
10110 ;;
10111 '$CC '*)
10112 # Test whether the compiler implicitly links with -lc since on some
10113 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10114 # to ld, don't add -lc before -lgcc.
81ecdfbb
RW
10115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10116$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10117if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10118 $as_echo_n "(cached) " >&6
39144654
RW
10119else
10120 $RM conftest*
10121 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 10122
81ecdfbb 10123 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
d7040cdb
SE
10124 (eval $ac_compile) 2>&5
10125 ac_status=$?
81ecdfbb
RW
10126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10127 test $ac_status = 0; } 2>conftest.err; then
39144654
RW
10128 soname=conftest
10129 lib=conftest
10130 libobjs=conftest.$ac_objext
10131 deplibs=
10132 wl=$lt_prog_compiler_wl
10133 pic_flag=$lt_prog_compiler_pic
10134 compiler_flags=-v
10135 linker_flags=-v
10136 verstring=
10137 output_objdir=.
10138 libname=conftest
10139 lt_save_allow_undefined_flag=$allow_undefined_flag
10140 allow_undefined_flag=
81ecdfbb 10141 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
d7040cdb
SE
10142 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10143 ac_status=$?
81ecdfbb
RW
10144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10145 test $ac_status = 0; }
39144654
RW
10146 then
10147 lt_cv_archive_cmds_need_lc=no
10148 else
10149 lt_cv_archive_cmds_need_lc=yes
10150 fi
10151 allow_undefined_flag=$lt_save_allow_undefined_flag
10152 else
10153 cat conftest.err 1>&5
10154 fi
10155 $RM conftest*
10156
10157fi
81ecdfbb
RW
10158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10159$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
39144654 10160 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
d7040cdb
SE
10161 ;;
10162 esac
10163 fi
10164 ;;
10165esac
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
81ecdfbb
RW
10323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10324$as_echo_n "checking dynamic linker characteristics... " >&6; }
718a6fd8
SE
10325
10326if test "$GCC" = yes; then
d7040cdb
SE
10327 case $host_os in
10328 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10329 *) lt_awk_arg="/^libraries:/" ;;
10330 esac
3725885a
RW
10331 case $host_os in
10332 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10333 *) lt_sed_strip_eq="s,=/,/,g" ;;
10334 esac
10335 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10336 case $lt_search_path_spec in
10337 *\;*)
d7040cdb
SE
10338 # if the path contains ";" then we assume it to be the separator
10339 # otherwise default to the standard path separator (i.e. ":") - it is
10340 # assumed that no part of a normal pathname contains ";" but that should
10341 # okay in the real world where ";" in dirpaths is itself problematic.
3725885a
RW
10342 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10343 ;;
10344 *)
10345 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10346 ;;
10347 esac
d7040cdb
SE
10348 # Ok, now we have the path, separated by spaces, we can step through it
10349 # and add multilib dir if necessary.
10350 lt_tmp_lt_search_path_spec=
10351 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10352 for lt_sys_path in $lt_search_path_spec; do
10353 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10354 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10355 else
10356 test -d "$lt_sys_path" && \
10357 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10358 fi
10359 done
3725885a 10360 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
d7040cdb
SE
10361BEGIN {RS=" "; FS="/|\n";} {
10362 lt_foo="";
10363 lt_count=0;
10364 for (lt_i = NF; lt_i > 0; lt_i--) {
10365 if ($lt_i != "" && $lt_i != ".") {
10366 if ($lt_i == "..") {
10367 lt_count++;
10368 } else {
10369 if (lt_count == 0) {
10370 lt_foo="/" $lt_i lt_foo;
10371 } else {
10372 lt_count--;
10373 }
10374 }
10375 }
10376 }
10377 if (lt_foo != "") { lt_freq[lt_foo]++; }
10378 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10379}'`
3725885a
RW
10380 # AWK program above erroneously prepends '/' to C:/dos/paths
10381 # for these hosts.
10382 case $host_os in
10383 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10384 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10385 esac
10386 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
d7040cdb
SE
10387else
10388 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10389fi
10390library_names_spec=
10391libname_spec='lib$name'
10392soname_spec=
10393shrext_cmds=".so"
10394postinstall_cmds=
10395postuninstall_cmds=
10396finish_cmds=
10397finish_eval=
10398shlibpath_var=
10399shlibpath_overrides_runpath=unknown
10400version_type=none
10401dynamic_linker="$host_os ld.so"
10402sys_lib_dlsearch_path_spec="/lib /usr/lib"
10403need_lib_prefix=unknown
10404hardcode_into_libs=no
10405
10406# when you set need_version to no, make sure it does not cause -set_version
10407# flags to be left without arguments
10408need_version=unknown
10409
10410case $host_os in
10411aix3*)
10412 version_type=linux
10413 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10414 shlibpath_var=LIBPATH
10415
10416 # AIX 3 has no versioning support, so we append a major version to the name.
10417 soname_spec='${libname}${release}${shared_ext}$major'
10418 ;;
10419
e81819a5 10420aix[4-9]*)
d7040cdb
SE
10421 version_type=linux
10422 need_lib_prefix=no
10423 need_version=no
10424 hardcode_into_libs=yes
10425 if test "$host_cpu" = ia64; then
10426 # AIX 5 supports IA64
10427 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10428 shlibpath_var=LD_LIBRARY_PATH
10429 else
10430 # With GCC up to 2.95.x, collect2 would create an import file
10431 # for dependence libraries. The import file would start with
10432 # the line `#! .'. This would cause the generated library to
10433 # depend on `.', always an invalid library. This was fixed in
10434 # development snapshots of GCC prior to 3.0.
10435 case $host_os in
10436 aix4 | aix4.[01] | aix4.[01].*)
10437 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10438 echo ' yes '
10439 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10440 :
10441 else
10442 can_build_shared=no
10443 fi
10444 ;;
10445 esac
10446 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10447 # soname into executable. Probably we can add versioning support to
10448 # collect2, so additional links can be useful in future.
10449 if test "$aix_use_runtimelinking" = yes; then
10450 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10451 # instead of lib<name>.a to let people know that these are not
10452 # typical AIX shared libraries.
10453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10454 else
10455 # We preserve .a as extension for shared libraries through AIX4.2
10456 # and later when we are not doing run time linking.
10457 library_names_spec='${libname}${release}.a $libname.a'
10458 soname_spec='${libname}${release}${shared_ext}$major'
10459 fi
10460 shlibpath_var=LIBPATH
10461 fi
10462 ;;
10463
10464amigaos*)
718a6fd8
SE
10465 case $host_cpu in
10466 powerpc)
10467 # Since July 2007 AmigaOS4 officially supports .so libraries.
10468 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10470 ;;
10471 m68k)
d7040cdb
SE
10472 library_names_spec='$libname.ixlibrary $libname.a'
10473 # Create ${libname}_ixlibrary.a entries in /sys/libs.
3725885a 10474 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
10475 ;;
10476 esac
d7040cdb
SE
10477 ;;
10478
10479beos*)
10480 library_names_spec='${libname}${shared_ext}'
10481 dynamic_linker="$host_os ld.so"
10482 shlibpath_var=LIBRARY_PATH
10483 ;;
10484
10485bsdi[45]*)
10486 version_type=linux
10487 need_version=no
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 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10491 shlibpath_var=LD_LIBRARY_PATH
10492 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10493 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10494 # the default ld.so.conf also contains /usr/contrib/lib and
10495 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10496 # libtool to hard-code these into programs
10497 ;;
10498
718a6fd8 10499cygwin* | mingw* | pw32* | cegcc*)
d7040cdb
SE
10500 version_type=windows
10501 shrext_cmds=".dll"
10502 need_version=no
10503 need_lib_prefix=no
10504
718a6fd8
SE
10505 case $GCC,$host_os in
10506 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
d7040cdb
SE
10507 library_names_spec='$libname.dll.a'
10508 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10509 postinstall_cmds='base_file=`basename \${file}`~
10510 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10511 dldir=$destdir/`dirname \$dlpath`~
10512 test -d \$dldir || mkdir -p \$dldir~
10513 $install_prog $dir/$dlname \$dldir/$dlname~
10514 chmod a+x \$dldir/$dlname~
10515 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10516 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10517 fi'
10518 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10519 dlpath=$dir/\$dldll~
10520 $RM \$dlpath'
10521 shlibpath_overrides_runpath=yes
10522
10523 case $host_os in
10524 cygwin*)
10525 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10526 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
3725885a
RW
10527
10528 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
d7040cdb 10529 ;;
718a6fd8 10530 mingw* | cegcc*)
d7040cdb
SE
10531 # MinGW DLLs use traditional 'lib' prefix
10532 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
d7040cdb
SE
10533 ;;
10534 pw32*)
10535 # pw32 DLLs use 'pw' prefix rather than 'lib'
10536 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10537 ;;
10538 esac
10539 ;;
10540
10541 *)
10542 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10543 ;;
10544 esac
10545 dynamic_linker='Win32 ld.exe'
10546 # FIXME: first we should search . and the directory the executable is in
10547 shlibpath_var=PATH
10548 ;;
10549
10550darwin* | rhapsody*)
10551 dynamic_linker="$host_os dyld"
10552 version_type=darwin
10553 need_lib_prefix=no
10554 need_version=no
10555 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10556 soname_spec='${libname}${release}${major}$shared_ext'
10557 shlibpath_overrides_runpath=yes
10558 shlibpath_var=DYLD_LIBRARY_PATH
10559 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10560
10561 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10562 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10563 ;;
10564
10565dgux*)
10566 version_type=linux
10567 need_lib_prefix=no
10568 need_version=no
10569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10570 soname_spec='${libname}${release}${shared_ext}$major'
10571 shlibpath_var=LD_LIBRARY_PATH
10572 ;;
10573
d7040cdb
SE
10574freebsd* | dragonfly*)
10575 # DragonFly does not have aout. When/if they implement a new
10576 # versioning mechanism, adjust this.
10577 if test -x /usr/bin/objformat; then
10578 objformat=`/usr/bin/objformat`
10579 else
10580 case $host_os in
6d2920c8 10581 freebsd[23].*) objformat=aout ;;
d7040cdb
SE
10582 *) objformat=elf ;;
10583 esac
10584 fi
10585 version_type=freebsd-$objformat
10586 case $version_type in
10587 freebsd-elf*)
10588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10589 need_version=no
10590 need_lib_prefix=no
10591 ;;
10592 freebsd-*)
10593 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10594 need_version=yes
10595 ;;
10596 esac
10597 shlibpath_var=LD_LIBRARY_PATH
10598 case $host_os in
6d2920c8 10599 freebsd2.*)
d7040cdb
SE
10600 shlibpath_overrides_runpath=yes
10601 ;;
10602 freebsd3.[01]* | freebsdelf3.[01]*)
10603 shlibpath_overrides_runpath=yes
10604 hardcode_into_libs=yes
10605 ;;
10606 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10607 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10608 shlibpath_overrides_runpath=no
10609 hardcode_into_libs=yes
10610 ;;
10611 *) # from 4.6 on, and DragonFly
10612 shlibpath_overrides_runpath=yes
10613 hardcode_into_libs=yes
10614 ;;
10615 esac
10616 ;;
10617
10618gnu*)
10619 version_type=linux
10620 need_lib_prefix=no
10621 need_version=no
10622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10623 soname_spec='${libname}${release}${shared_ext}$major'
10624 shlibpath_var=LD_LIBRARY_PATH
10625 hardcode_into_libs=yes
10626 ;;
10627
3725885a
RW
10628haiku*)
10629 version_type=linux
10630 need_lib_prefix=no
10631 need_version=no
10632 dynamic_linker="$host_os runtime_loader"
10633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10634 soname_spec='${libname}${release}${shared_ext}$major'
10635 shlibpath_var=LIBRARY_PATH
10636 shlibpath_overrides_runpath=yes
10637 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10638 hardcode_into_libs=yes
10639 ;;
10640
d7040cdb
SE
10641hpux9* | hpux10* | hpux11*)
10642 # Give a soname corresponding to the major version so that dld.sl refuses to
10643 # link against other versions.
10644 version_type=sunos
10645 need_lib_prefix=no
10646 need_version=no
10647 case $host_cpu in
10648 ia64*)
10649 shrext_cmds='.so'
10650 hardcode_into_libs=yes
10651 dynamic_linker="$host_os dld.so"
10652 shlibpath_var=LD_LIBRARY_PATH
10653 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10655 soname_spec='${libname}${release}${shared_ext}$major'
10656 if test "X$HPUX_IA64_MODE" = X32; then
10657 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10658 else
10659 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10660 fi
10661 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10662 ;;
10663 hppa*64*)
10664 shrext_cmds='.sl'
10665 hardcode_into_libs=yes
10666 dynamic_linker="$host_os dld.sl"
10667 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10668 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10670 soname_spec='${libname}${release}${shared_ext}$major'
10671 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10672 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10673 ;;
10674 *)
10675 shrext_cmds='.sl'
10676 dynamic_linker="$host_os dld.sl"
10677 shlibpath_var=SHLIB_PATH
10678 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10680 soname_spec='${libname}${release}${shared_ext}$major'
10681 ;;
10682 esac
3725885a 10683 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
d7040cdb 10684 postinstall_cmds='chmod 555 $lib'
3725885a
RW
10685 # or fails outright, so override atomically:
10686 install_override_mode=555
d7040cdb
SE
10687 ;;
10688
10689interix[3-9]*)
10690 version_type=linux
10691 need_lib_prefix=no
10692 need_version=no
10693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10694 soname_spec='${libname}${release}${shared_ext}$major'
10695 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10696 shlibpath_var=LD_LIBRARY_PATH
10697 shlibpath_overrides_runpath=no
10698 hardcode_into_libs=yes
10699 ;;
10700
10701irix5* | irix6* | nonstopux*)
10702 case $host_os in
10703 nonstopux*) version_type=nonstopux ;;
10704 *)
10705 if test "$lt_cv_prog_gnu_ld" = yes; then
10706 version_type=linux
10707 else
10708 version_type=irix
10709 fi ;;
10710 esac
10711 need_lib_prefix=no
10712 need_version=no
10713 soname_spec='${libname}${release}${shared_ext}$major'
10714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10715 case $host_os in
10716 irix5* | nonstopux*)
10717 libsuff= shlibsuff=
10718 ;;
10719 *)
10720 case $LD in # libtool.m4 will add one of these switches to LD
10721 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10722 libsuff= shlibsuff= libmagic=32-bit;;
10723 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10724 libsuff=32 shlibsuff=N32 libmagic=N32;;
10725 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10726 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10727 *) libsuff= shlibsuff= libmagic=never-match;;
10728 esac
10729 ;;
10730 esac
10731 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10732 shlibpath_overrides_runpath=no
10733 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10734 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10735 hardcode_into_libs=yes
10736 ;;
10737
10738# No shared lib support for Linux oldld, aout, or coff.
10739linux*oldld* | linux*aout* | linux*coff*)
10740 dynamic_linker=no
10741 ;;
10742
10743# This must be Linux ELF.
58e24671 10744linux* | k*bsd*-gnu | kopensolaris*-gnu)
d7040cdb
SE
10745 version_type=linux
10746 need_lib_prefix=no
10747 need_version=no
10748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10749 soname_spec='${libname}${release}${shared_ext}$major'
10750 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10751 shlibpath_var=LD_LIBRARY_PATH
10752 shlibpath_overrides_runpath=no
39144654 10753
d7040cdb 10754 # Some binutils ld are patched to set DT_RUNPATH
81ecdfbb
RW
10755 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10756 $as_echo_n "(cached) " >&6
39144654
RW
10757else
10758 lt_cv_shlibpath_overrides_runpath=no
10759 save_LDFLAGS=$LDFLAGS
10760 save_libdir=$libdir
10761 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10762 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
81ecdfbb 10763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
10764/* end confdefs.h. */
10765
10766int
10767main ()
10768{
10769
10770 ;
10771 return 0;
10772}
10773_ACEOF
81ecdfbb
RW
10774if ac_fn_c_try_link "$LINENO"; then :
10775 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
39144654 10776 lt_cv_shlibpath_overrides_runpath=yes
d7040cdb 10777fi
d7040cdb 10778fi
81ecdfbb
RW
10779rm -f core conftest.err conftest.$ac_objext \
10780 conftest$ac_exeext conftest.$ac_ext
39144654
RW
10781 LDFLAGS=$save_LDFLAGS
10782 libdir=$save_libdir
10783
10784fi
10785
10786 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
d7040cdb
SE
10787
10788 # This implies no fast_install, which is unacceptable.
10789 # Some rework will be needed to allow for fast_install
10790 # before this can be enabled.
10791 hardcode_into_libs=yes
10792
10793 # Append ld.so.conf contents to the search path
10794 if test -f /etc/ld.so.conf; then
3725885a 10795 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' ' '`
d7040cdb
SE
10796 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10797 fi
10798
10799 # We used to test for /lib/ld.so.1 and disable shared libraries on
10800 # powerpc, because MkLinux only supported shared libraries with the
10801 # GNU dynamic linker. Since this was broken with cross compilers,
10802 # most powerpc-linux boxes support dynamic linking these days and
10803 # people can always --disable-shared, the test was removed, and we
10804 # assume the GNU/Linux dynamic linker is in use.
10805 dynamic_linker='GNU/Linux ld.so'
10806 ;;
10807
10808netbsd*)
10809 version_type=sunos
10810 need_lib_prefix=no
10811 need_version=no
10812 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10814 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10815 dynamic_linker='NetBSD (a.out) ld.so'
10816 else
10817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10818 soname_spec='${libname}${release}${shared_ext}$major'
10819 dynamic_linker='NetBSD ld.elf_so'
10820 fi
10821 shlibpath_var=LD_LIBRARY_PATH
10822 shlibpath_overrides_runpath=yes
10823 hardcode_into_libs=yes
10824 ;;
10825
10826newsos6)
10827 version_type=linux
10828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10829 shlibpath_var=LD_LIBRARY_PATH
10830 shlibpath_overrides_runpath=yes
10831 ;;
10832
10833*nto* | *qnx*)
10834 version_type=qnx
10835 need_lib_prefix=no
10836 need_version=no
10837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10838 soname_spec='${libname}${release}${shared_ext}$major'
10839 shlibpath_var=LD_LIBRARY_PATH
10840 shlibpath_overrides_runpath=no
10841 hardcode_into_libs=yes
10842 dynamic_linker='ldqnx.so'
10843 ;;
10844
10845openbsd*)
10846 version_type=sunos
10847 sys_lib_dlsearch_path_spec="/usr/lib"
10848 need_lib_prefix=no
10849 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10850 case $host_os in
10851 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10852 *) need_version=no ;;
10853 esac
10854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10855 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10856 shlibpath_var=LD_LIBRARY_PATH
10857 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10858 case $host_os in
10859 openbsd2.[89] | openbsd2.[89].*)
10860 shlibpath_overrides_runpath=no
10861 ;;
10862 *)
10863 shlibpath_overrides_runpath=yes
10864 ;;
10865 esac
10866 else
10867 shlibpath_overrides_runpath=yes
10868 fi
10869 ;;
10870
10871os2*)
10872 libname_spec='$name'
10873 shrext_cmds=".dll"
10874 need_lib_prefix=no
10875 library_names_spec='$libname${shared_ext} $libname.a'
10876 dynamic_linker='OS/2 ld.exe'
10877 shlibpath_var=LIBPATH
10878 ;;
10879
10880osf3* | osf4* | osf5*)
10881 version_type=osf
10882 need_lib_prefix=no
10883 need_version=no
10884 soname_spec='${libname}${release}${shared_ext}$major'
10885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10886 shlibpath_var=LD_LIBRARY_PATH
10887 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10888 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10889 ;;
10890
10891rdos*)
10892 dynamic_linker=no
10893 ;;
10894
10895solaris*)
10896 version_type=linux
10897 need_lib_prefix=no
10898 need_version=no
10899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10900 soname_spec='${libname}${release}${shared_ext}$major'
10901 shlibpath_var=LD_LIBRARY_PATH
10902 shlibpath_overrides_runpath=yes
10903 hardcode_into_libs=yes
10904 # ldd complains unless libraries are executable
10905 postinstall_cmds='chmod +x $lib'
10906 ;;
10907
10908sunos4*)
10909 version_type=sunos
10910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10911 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10912 shlibpath_var=LD_LIBRARY_PATH
10913 shlibpath_overrides_runpath=yes
10914 if test "$with_gnu_ld" = yes; then
10915 need_lib_prefix=no
10916 fi
10917 need_version=yes
10918 ;;
10919
10920sysv4 | sysv4.3*)
10921 version_type=linux
10922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10923 soname_spec='${libname}${release}${shared_ext}$major'
10924 shlibpath_var=LD_LIBRARY_PATH
10925 case $host_vendor in
10926 sni)
10927 shlibpath_overrides_runpath=no
10928 need_lib_prefix=no
10929 runpath_var=LD_RUN_PATH
10930 ;;
10931 siemens)
10932 need_lib_prefix=no
10933 ;;
10934 motorola)
10935 need_lib_prefix=no
10936 need_version=no
10937 shlibpath_overrides_runpath=no
10938 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10939 ;;
10940 esac
10941 ;;
10942
10943sysv4*MP*)
10944 if test -d /usr/nec ;then
10945 version_type=linux
10946 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10947 soname_spec='$libname${shared_ext}.$major'
10948 shlibpath_var=LD_LIBRARY_PATH
10949 fi
10950 ;;
10951
10952sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10953 version_type=freebsd-elf
10954 need_lib_prefix=no
10955 need_version=no
10956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10957 soname_spec='${libname}${release}${shared_ext}$major'
10958 shlibpath_var=LD_LIBRARY_PATH
10959 shlibpath_overrides_runpath=yes
10960 hardcode_into_libs=yes
10961 if test "$with_gnu_ld" = yes; then
10962 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10963 else
10964 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10965 case $host_os in
10966 sco3.2v5*)
10967 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10968 ;;
10969 esac
10970 fi
10971 sys_lib_dlsearch_path_spec='/usr/lib'
10972 ;;
10973
10974tpf*)
10975 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10976 version_type=linux
10977 need_lib_prefix=no
10978 need_version=no
718a6fd8 10979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
d7040cdb
SE
10980 shlibpath_var=LD_LIBRARY_PATH
10981 shlibpath_overrides_runpath=no
10982 hardcode_into_libs=yes
10983 ;;
10984
10985uts4*)
10986 version_type=linux
10987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10988 soname_spec='${libname}${release}${shared_ext}$major'
10989 shlibpath_var=LD_LIBRARY_PATH
10990 ;;
10991
10992*)
10993 dynamic_linker=no
10994 ;;
10995esac
81ecdfbb
RW
10996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10997$as_echo "$dynamic_linker" >&6; }
d7040cdb
SE
10998test "$dynamic_linker" = no && can_build_shared=no
10999
11000variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11001if test "$GCC" = yes; then
11002 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11003fi
11004
718a6fd8
SE
11005if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11006 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11007fi
11008if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11009 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11010fi
11011
d7040cdb
SE
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
3725885a
RW
11092
11093
11094
11095
11096
d7040cdb
SE
11097
11098
11099
11100
11101
11102
81ecdfbb
RW
11103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11104$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
d7040cdb
SE
11105hardcode_action=
11106if test -n "$hardcode_libdir_flag_spec" ||
11107 test -n "$runpath_var" ||
11108 test "X$hardcode_automatic" = "Xyes" ; then
11109
11110 # We can hardcode non-existent directories.
11111 if test "$hardcode_direct" != no &&
11112 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11113 # have to relink, otherwise we might link with an installed library
11114 # when we should be linking with a yet-to-be-installed one
11115 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11116 test "$hardcode_minus_L" != no; then
11117 # Linking always hardcodes the temporary library directory.
11118 hardcode_action=relink
11119 else
11120 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11121 hardcode_action=immediate
11122 fi
11123else
11124 # We cannot hardcode anything, or else we can only hardcode existing
11125 # directories.
11126 hardcode_action=unsupported
11127fi
81ecdfbb
RW
11128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11129$as_echo "$hardcode_action" >&6; }
d7040cdb
SE
11130
11131if test "$hardcode_action" = relink ||
11132 test "$inherit_rpath" = yes; then
11133 # Fast installation is not supported
11134 enable_fast_install=no
11135elif test "$shlibpath_overrides_runpath" = yes ||
11136 test "$enable_shared" = no; then
11137 # Fast installation is not necessary
11138 enable_fast_install=needless
11139fi
11140
11141
11142
11143
11144
11145
11146 if test "x$enable_dlopen" != xyes; then
11147 enable_dlopen=unknown
11148 enable_dlopen_self=unknown
11149 enable_dlopen_self_static=unknown
11150else
11151 lt_cv_dlopen=no
11152 lt_cv_dlopen_libs=
11153
11154 case $host_os in
11155 beos*)
11156 lt_cv_dlopen="load_add_on"
11157 lt_cv_dlopen_libs=
11158 lt_cv_dlopen_self=yes
11159 ;;
11160
718a6fd8 11161 mingw* | pw32* | cegcc*)
d7040cdb
SE
11162 lt_cv_dlopen="LoadLibrary"
11163 lt_cv_dlopen_libs=
11164 ;;
11165
11166 cygwin*)
11167 lt_cv_dlopen="dlopen"
11168 lt_cv_dlopen_libs=
11169 ;;
11170
11171 darwin*)
11172 # if libdl is installed we need to link against it
81ecdfbb
RW
11173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11174$as_echo_n "checking for dlopen in -ldl... " >&6; }
11175if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11176 $as_echo_n "(cached) " >&6
d7040cdb
SE
11177else
11178 ac_check_lib_save_LIBS=$LIBS
11179LIBS="-ldl $LIBS"
81ecdfbb 11180cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
11181/* end confdefs.h. */
11182
81ecdfbb
RW
11183/* Override any GCC internal prototype to avoid an error.
11184 Use char because int might match the return type of a GCC
11185 builtin and then its argument prototype would still apply. */
d7040cdb
SE
11186#ifdef __cplusplus
11187extern "C"
11188#endif
d7040cdb
SE
11189char dlopen ();
11190int
11191main ()
11192{
81ecdfbb 11193return dlopen ();
d7040cdb
SE
11194 ;
11195 return 0;
11196}
11197_ACEOF
81ecdfbb 11198if ac_fn_c_try_link "$LINENO"; then :
d7040cdb
SE
11199 ac_cv_lib_dl_dlopen=yes
11200else
81ecdfbb 11201 ac_cv_lib_dl_dlopen=no
d7040cdb 11202fi
81ecdfbb
RW
11203rm -f core conftest.err conftest.$ac_objext \
11204 conftest$ac_exeext conftest.$ac_ext
d7040cdb
SE
11205LIBS=$ac_check_lib_save_LIBS
11206fi
81ecdfbb
RW
11207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11208$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11209if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
d7040cdb
SE
11210 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11211else
11212
11213 lt_cv_dlopen="dyld"
11214 lt_cv_dlopen_libs=
11215 lt_cv_dlopen_self=yes
11216
11217fi
11218
11219 ;;
11220
11221 *)
81ecdfbb
RW
11222 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11223if test "x$ac_cv_func_shl_load" = x""yes; then :
d7040cdb
SE
11224 lt_cv_dlopen="shl_load"
11225else
81ecdfbb
RW
11226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11227$as_echo_n "checking for shl_load in -ldld... " >&6; }
11228if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11229 $as_echo_n "(cached) " >&6
d7040cdb
SE
11230else
11231 ac_check_lib_save_LIBS=$LIBS
11232LIBS="-ldld $LIBS"
81ecdfbb 11233cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
11234/* end confdefs.h. */
11235
81ecdfbb
RW
11236/* Override any GCC internal prototype to avoid an error.
11237 Use char because int might match the return type of a GCC
11238 builtin and then its argument prototype would still apply. */
d7040cdb
SE
11239#ifdef __cplusplus
11240extern "C"
11241#endif
d7040cdb
SE
11242char shl_load ();
11243int
11244main ()
11245{
81ecdfbb 11246return shl_load ();
d7040cdb
SE
11247 ;
11248 return 0;
11249}
11250_ACEOF
81ecdfbb 11251if ac_fn_c_try_link "$LINENO"; then :
d7040cdb
SE
11252 ac_cv_lib_dld_shl_load=yes
11253else
81ecdfbb 11254 ac_cv_lib_dld_shl_load=no
d7040cdb 11255fi
81ecdfbb
RW
11256rm -f core conftest.err conftest.$ac_objext \
11257 conftest$ac_exeext conftest.$ac_ext
d7040cdb
SE
11258LIBS=$ac_check_lib_save_LIBS
11259fi
81ecdfbb
RW
11260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11261$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11262if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
718a6fd8 11263 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
d7040cdb 11264else
81ecdfbb
RW
11265 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11266if test "x$ac_cv_func_dlopen" = x""yes; then :
d7040cdb
SE
11267 lt_cv_dlopen="dlopen"
11268else
81ecdfbb
RW
11269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11270$as_echo_n "checking for dlopen in -ldl... " >&6; }
11271if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11272 $as_echo_n "(cached) " >&6
d7040cdb
SE
11273else
11274 ac_check_lib_save_LIBS=$LIBS
11275LIBS="-ldl $LIBS"
81ecdfbb 11276cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
11277/* end confdefs.h. */
11278
81ecdfbb
RW
11279/* Override any GCC internal prototype to avoid an error.
11280 Use char because int might match the return type of a GCC
11281 builtin and then its argument prototype would still apply. */
d7040cdb
SE
11282#ifdef __cplusplus
11283extern "C"
11284#endif
d7040cdb
SE
11285char dlopen ();
11286int
11287main ()
11288{
81ecdfbb 11289return dlopen ();
d7040cdb
SE
11290 ;
11291 return 0;
11292}
11293_ACEOF
81ecdfbb 11294if ac_fn_c_try_link "$LINENO"; then :
d7040cdb
SE
11295 ac_cv_lib_dl_dlopen=yes
11296else
81ecdfbb 11297 ac_cv_lib_dl_dlopen=no
d7040cdb 11298fi
81ecdfbb
RW
11299rm -f core conftest.err conftest.$ac_objext \
11300 conftest$ac_exeext conftest.$ac_ext
d7040cdb
SE
11301LIBS=$ac_check_lib_save_LIBS
11302fi
81ecdfbb
RW
11303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11304$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11305if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
d7040cdb
SE
11306 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11307else
81ecdfbb
RW
11308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11309$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11310if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11311 $as_echo_n "(cached) " >&6
d7040cdb
SE
11312else
11313 ac_check_lib_save_LIBS=$LIBS
11314LIBS="-lsvld $LIBS"
81ecdfbb 11315cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
11316/* end confdefs.h. */
11317
81ecdfbb
RW
11318/* Override any GCC internal prototype to avoid an error.
11319 Use char because int might match the return type of a GCC
11320 builtin and then its argument prototype would still apply. */
d7040cdb
SE
11321#ifdef __cplusplus
11322extern "C"
11323#endif
d7040cdb
SE
11324char dlopen ();
11325int
11326main ()
11327{
81ecdfbb 11328return dlopen ();
d7040cdb
SE
11329 ;
11330 return 0;
11331}
11332_ACEOF
81ecdfbb 11333if ac_fn_c_try_link "$LINENO"; then :
d7040cdb
SE
11334 ac_cv_lib_svld_dlopen=yes
11335else
81ecdfbb 11336 ac_cv_lib_svld_dlopen=no
d7040cdb 11337fi
81ecdfbb
RW
11338rm -f core conftest.err conftest.$ac_objext \
11339 conftest$ac_exeext conftest.$ac_ext
d7040cdb
SE
11340LIBS=$ac_check_lib_save_LIBS
11341fi
81ecdfbb
RW
11342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11343$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11344if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
d7040cdb
SE
11345 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11346else
81ecdfbb
RW
11347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11348$as_echo_n "checking for dld_link in -ldld... " >&6; }
11349if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11350 $as_echo_n "(cached) " >&6
d7040cdb
SE
11351else
11352 ac_check_lib_save_LIBS=$LIBS
11353LIBS="-ldld $LIBS"
81ecdfbb 11354cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
11355/* end confdefs.h. */
11356
81ecdfbb
RW
11357/* Override any GCC internal prototype to avoid an error.
11358 Use char because int might match the return type of a GCC
11359 builtin and then its argument prototype would still apply. */
d7040cdb
SE
11360#ifdef __cplusplus
11361extern "C"
11362#endif
d7040cdb
SE
11363char dld_link ();
11364int
11365main ()
11366{
81ecdfbb 11367return dld_link ();
d7040cdb
SE
11368 ;
11369 return 0;
11370}
11371_ACEOF
81ecdfbb 11372if ac_fn_c_try_link "$LINENO"; then :
d7040cdb
SE
11373 ac_cv_lib_dld_dld_link=yes
11374else
81ecdfbb 11375 ac_cv_lib_dld_dld_link=no
d7040cdb 11376fi
81ecdfbb
RW
11377rm -f core conftest.err conftest.$ac_objext \
11378 conftest$ac_exeext conftest.$ac_ext
d7040cdb
SE
11379LIBS=$ac_check_lib_save_LIBS
11380fi
81ecdfbb
RW
11381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11382$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11383if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
718a6fd8 11384 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
d7040cdb
SE
11385fi
11386
11387
11388fi
11389
11390
11391fi
11392
11393
11394fi
11395
11396
11397fi
11398
11399
11400fi
11401
11402 ;;
11403 esac
11404
11405 if test "x$lt_cv_dlopen" != xno; then
11406 enable_dlopen=yes
20e95c23 11407 else
d7040cdb 11408 enable_dlopen=no
252b5132 11409 fi
5464f5a1 11410
d7040cdb
SE
11411 case $lt_cv_dlopen in
11412 dlopen)
11413 save_CPPFLAGS="$CPPFLAGS"
11414 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11415
11416 save_LDFLAGS="$LDFLAGS"
11417 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11418
11419 save_LIBS="$LIBS"
11420 LIBS="$lt_cv_dlopen_libs $LIBS"
11421
81ecdfbb
RW
11422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11423$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11424if test "${lt_cv_dlopen_self+set}" = set; then :
11425 $as_echo_n "(cached) " >&6
20e95c23 11426else
d7040cdb
SE
11427 if test "$cross_compiling" = yes; then :
11428 lt_cv_dlopen_self=cross
11429else
11430 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11431 lt_status=$lt_dlunknown
11432 cat > conftest.$ac_ext <<_LT_EOF
f6aec96d 11433#line 11433 "configure"
d7040cdb
SE
11434#include "confdefs.h"
11435
11436#if HAVE_DLFCN_H
11437#include <dlfcn.h>
11438#endif
11439
11440#include <stdio.h>
11441
11442#ifdef RTLD_GLOBAL
11443# define LT_DLGLOBAL RTLD_GLOBAL
11444#else
11445# ifdef DL_GLOBAL
11446# define LT_DLGLOBAL DL_GLOBAL
11447# else
11448# define LT_DLGLOBAL 0
11449# endif
11450#endif
11451
11452/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11453 find out it does not work in some platform. */
11454#ifndef LT_DLLAZY_OR_NOW
11455# ifdef RTLD_LAZY
11456# define LT_DLLAZY_OR_NOW RTLD_LAZY
11457# else
11458# ifdef DL_LAZY
11459# define LT_DLLAZY_OR_NOW DL_LAZY
11460# else
11461# ifdef RTLD_NOW
11462# define LT_DLLAZY_OR_NOW RTLD_NOW
11463# else
11464# ifdef DL_NOW
11465# define LT_DLLAZY_OR_NOW DL_NOW
11466# else
11467# define LT_DLLAZY_OR_NOW 0
11468# endif
11469# endif
11470# endif
11471# endif
11472#endif
11473
3725885a
RW
11474/* When -fvisbility=hidden is used, assume the code has been annotated
11475 correspondingly for the symbols needed. */
11476#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11477void fnord () __attribute__((visibility("default")));
11478#endif
11479
11480void fnord () { int i=42; }
d7040cdb
SE
11481int main ()
11482{
11483 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11484 int status = $lt_dlunknown;
11485
11486 if (self)
11487 {
11488 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
3725885a
RW
11489 else
11490 {
11491 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11492 else puts (dlerror ());
11493 }
d7040cdb
SE
11494 /* dlclose (self); */
11495 }
11496 else
11497 puts (dlerror ());
11498
718a6fd8 11499 return status;
d7040cdb
SE
11500}
11501_LT_EOF
81ecdfbb 11502 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
d7040cdb
SE
11503 (eval $ac_link) 2>&5
11504 ac_status=$?
81ecdfbb
RW
11505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11506 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
d7040cdb
SE
11507 (./conftest; exit; ) >&5 2>/dev/null
11508 lt_status=$?
11509 case x$lt_status in
11510 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11511 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11512 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11513 esac
11514 else :
11515 # compilation failed
11516 lt_cv_dlopen_self=no
11517 fi
252b5132 11518fi
d7040cdb 11519rm -fr conftest*
20e95c23 11520
d7040cdb
SE
11521
11522fi
81ecdfbb
RW
11523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11524$as_echo "$lt_cv_dlopen_self" >&6; }
d7040cdb
SE
11525
11526 if test "x$lt_cv_dlopen_self" = xyes; then
11527 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
81ecdfbb
RW
11528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11529$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11530if test "${lt_cv_dlopen_self_static+set}" = set; then :
11531 $as_echo_n "(cached) " >&6
20e95c23 11532else
d7040cdb
SE
11533 if test "$cross_compiling" = yes; then :
11534 lt_cv_dlopen_self_static=cross
11535else
11536 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11537 lt_status=$lt_dlunknown
11538 cat > conftest.$ac_ext <<_LT_EOF
f6aec96d 11539#line 11539 "configure"
d7040cdb
SE
11540#include "confdefs.h"
11541
11542#if HAVE_DLFCN_H
11543#include <dlfcn.h>
11544#endif
11545
11546#include <stdio.h>
11547
11548#ifdef RTLD_GLOBAL
11549# define LT_DLGLOBAL RTLD_GLOBAL
11550#else
11551# ifdef DL_GLOBAL
11552# define LT_DLGLOBAL DL_GLOBAL
11553# else
11554# define LT_DLGLOBAL 0
11555# endif
11556#endif
11557
11558/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11559 find out it does not work in some platform. */
11560#ifndef LT_DLLAZY_OR_NOW
11561# ifdef RTLD_LAZY
11562# define LT_DLLAZY_OR_NOW RTLD_LAZY
11563# else
11564# ifdef DL_LAZY
11565# define LT_DLLAZY_OR_NOW DL_LAZY
11566# else
11567# ifdef RTLD_NOW
11568# define LT_DLLAZY_OR_NOW RTLD_NOW
11569# else
11570# ifdef DL_NOW
11571# define LT_DLLAZY_OR_NOW DL_NOW
11572# else
11573# define LT_DLLAZY_OR_NOW 0
11574# endif
11575# endif
11576# endif
11577# endif
11578#endif
11579
3725885a
RW
11580/* When -fvisbility=hidden is used, assume the code has been annotated
11581 correspondingly for the symbols needed. */
11582#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11583void fnord () __attribute__((visibility("default")));
11584#endif
11585
11586void fnord () { int i=42; }
d7040cdb
SE
11587int main ()
11588{
11589 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11590 int status = $lt_dlunknown;
11591
11592 if (self)
11593 {
11594 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
3725885a
RW
11595 else
11596 {
11597 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11598 else puts (dlerror ());
11599 }
d7040cdb
SE
11600 /* dlclose (self); */
11601 }
11602 else
11603 puts (dlerror ());
11604
718a6fd8 11605 return status;
d7040cdb
SE
11606}
11607_LT_EOF
81ecdfbb 11608 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
d7040cdb
SE
11609 (eval $ac_link) 2>&5
11610 ac_status=$?
81ecdfbb
RW
11611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11612 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
d7040cdb
SE
11613 (./conftest; exit; ) >&5 2>/dev/null
11614 lt_status=$?
11615 case x$lt_status in
11616 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11617 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11618 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11619 esac
11620 else :
11621 # compilation failed
11622 lt_cv_dlopen_self_static=no
11623 fi
11624fi
11625rm -fr conftest*
11626
11627
11628fi
81ecdfbb
RW
11629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11630$as_echo "$lt_cv_dlopen_self_static" >&6; }
d7040cdb
SE
11631 fi
11632
11633 CPPFLAGS="$save_CPPFLAGS"
11634 LDFLAGS="$save_LDFLAGS"
11635 LIBS="$save_LIBS"
11636 ;;
11637 esac
11638
11639 case $lt_cv_dlopen_self in
11640 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11641 *) enable_dlopen_self=unknown ;;
11642 esac
11643
11644 case $lt_cv_dlopen_self_static in
11645 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11646 *) enable_dlopen_self_static=unknown ;;
11647 esac
11648fi
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666striplib=
11667old_striplib=
81ecdfbb
RW
11668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11669$as_echo_n "checking whether stripping libraries is possible... " >&6; }
d7040cdb
SE
11670if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11671 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11672 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
81ecdfbb
RW
11673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11674$as_echo "yes" >&6; }
d7040cdb
SE
11675else
11676# FIXME - insert some real tests, host_os isn't really good enough
11677 case $host_os in
11678 darwin*)
11679 if test -n "$STRIP" ; then
11680 striplib="$STRIP -x"
11681 old_striplib="$STRIP -S"
81ecdfbb
RW
11682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11683$as_echo "yes" >&6; }
d7040cdb 11684 else
81ecdfbb
RW
11685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11686$as_echo "no" >&6; }
d7040cdb 11687 fi
20e95c23
DJ
11688 ;;
11689 *)
81ecdfbb
RW
11690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11691$as_echo "no" >&6; }
d7040cdb
SE
11692 ;;
11693 esac
11694fi
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707 # Report which library types will actually be built
81ecdfbb
RW
11708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11709$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11711$as_echo "$can_build_shared" >&6; }
d7040cdb 11712
81ecdfbb
RW
11713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11714$as_echo_n "checking whether to build shared libraries... " >&6; }
d7040cdb
SE
11715 test "$can_build_shared" = "no" && enable_shared=no
11716
11717 # On AIX, shared libraries and static libraries use the same namespace, and
11718 # are all built from PIC.
11719 case $host_os in
11720 aix3*)
11721 test "$enable_shared" = yes && enable_static=no
11722 if test -n "$RANLIB"; then
11723 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11724 postinstall_cmds='$RANLIB $lib'
11725 fi
11726 ;;
11727
e81819a5 11728 aix[4-9]*)
d7040cdb
SE
11729 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11730 test "$enable_shared" = yes && enable_static=no
11731 fi
20e95c23 11732 ;;
d7040cdb 11733 esac
81ecdfbb
RW
11734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11735$as_echo "$enable_shared" >&6; }
d7040cdb 11736
81ecdfbb
RW
11737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11738$as_echo_n "checking whether to build static libraries... " >&6; }
d7040cdb
SE
11739 # Make sure either enable_shared or enable_static is yes.
11740 test "$enable_shared" = yes || enable_static=yes
81ecdfbb
RW
11741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11742$as_echo "$enable_static" >&6; }
d7040cdb
SE
11743
11744
11745
11746
11747fi
11748ac_ext=c
11749ac_cpp='$CPP $CPPFLAGS'
11750ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11751ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11752ac_compiler_gnu=$ac_cv_c_compiler_gnu
11753
11754CC="$lt_save_CC"
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
81ecdfbb 11768 ac_config_commands="$ac_config_commands libtool"
ce3c775b
NC
11769
11770
11771
11772
11773# Only expand once:
11774
11775
11776
da2f07f1
JK
11777# AC_PLUGINS setting $plugins is called by ACX_LARGEFILE.
11778
3388710e
JM
11779# The tests for host and target for $enable_largefile require
11780# canonical names.
11781
11782
11783
da2f07f1
JK
11784# As the $enable_largefile decision depends on --enable-plugins we must set it
11785# even in directories otherwise not depending on the $plugins option.
11786
5691d22d 11787
b879806f
AM
11788 maybe_plugins=no
11789 for ac_header in dlfcn.h
11790do :
11791 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11792"
11793if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
11794 cat >>confdefs.h <<_ACEOF
11795#define HAVE_DLFCN_H 1
11796_ACEOF
11797 maybe_plugins=yes
11798fi
11799
11800done
11801
11802 for ac_header in windows.h
11803do :
11804 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
11805"
11806if test "x$ac_cv_header_windows_h" = x""yes; then :
11807 cat >>confdefs.h <<_ACEOF
11808#define HAVE_WINDOWS_H 1
11809_ACEOF
11810 maybe_plugins=yes
11811fi
11812
11813done
11814
11815
11816 # Check whether --enable-plugins was given.
81ecdfbb
RW
11817if test "${enable_plugins+set}" = set; then :
11818 enableval=$enable_plugins; case "${enableval}" in
b879806f
AM
11819 no) plugins=no ;;
11820 *) plugins=yes
11821 if test "$maybe_plugins" != "yes" ; then
11822 as_fn_error "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
11823 fi ;;
11824 esac
ce3c775b 11825else
b879806f
AM
11826 plugins=$maybe_plugins
11827
81ecdfbb 11828fi
ce3c775b 11829
2974be62 11830 if test "$plugins" = "yes"; then
3cba8b6c
L
11831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
11832$as_echo_n "checking for library containing dlsym... " >&6; }
11833if test "${ac_cv_search_dlsym+set}" = set; then :
2974be62
AM
11834 $as_echo_n "(cached) " >&6
11835else
11836 ac_func_search_save_LIBS=$LIBS
11837cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11838/* end confdefs.h. */
11839
11840/* Override any GCC internal prototype to avoid an error.
11841 Use char because int might match the return type of a GCC
11842 builtin and then its argument prototype would still apply. */
11843#ifdef __cplusplus
11844extern "C"
11845#endif
3cba8b6c 11846char dlsym ();
2974be62
AM
11847int
11848main ()
11849{
3cba8b6c 11850return dlsym ();
2974be62
AM
11851 ;
11852 return 0;
11853}
11854_ACEOF
11855for ac_lib in '' dl; do
11856 if test -z "$ac_lib"; then
11857 ac_res="none required"
11858 else
11859 ac_res=-l$ac_lib
11860 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11861 fi
11862 if ac_fn_c_try_link "$LINENO"; then :
3cba8b6c 11863 ac_cv_search_dlsym=$ac_res
2974be62
AM
11864fi
11865rm -f core conftest.err conftest.$ac_objext \
11866 conftest$ac_exeext
3cba8b6c 11867 if test "${ac_cv_search_dlsym+set}" = set; then :
2974be62
AM
11868 break
11869fi
11870done
3cba8b6c 11871if test "${ac_cv_search_dlsym+set}" = set; then :
2974be62
AM
11872
11873else
3cba8b6c 11874 ac_cv_search_dlsym=no
2974be62
AM
11875fi
11876rm conftest.$ac_ext
11877LIBS=$ac_func_search_save_LIBS
11878fi
3cba8b6c
L
11879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
11880$as_echo "$ac_cv_search_dlsym" >&6; }
11881ac_res=$ac_cv_search_dlsym
2974be62
AM
11882if test "$ac_res" != no; then :
11883 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11884
11885fi
11886
11887 fi
ce3c775b 11888
5691d22d 11889
da2f07f1 11890case "${host}" in
ce3c775b
NC
11891 sparc-*-solaris*|i[3-7]86-*-solaris*)
11892 # On native 32bit sparc and ia32 solaris, large-file and procfs support
da2f07f1 11893 # are mutually exclusive; and without procfs support, the bfd/ elf module
ce3c775b
NC
11894 # cannot provide certain routines such as elfcore_write_prpsinfo
11895 # or elfcore_write_prstatus. So unless the user explicitly requested
11896 # large-file support through the --enable-largefile switch, disable
11897 # large-file support in favor of procfs support.
da2f07f1
JK
11898 test "${target}" = "${host}" -a "x$plugins" = xno \
11899 && : ${enable_largefile="no"}
ce3c775b
NC
11900 ;;
11901esac
11902
81ecdfbb
RW
11903# Check whether --enable-largefile was given.
11904if test "${enable_largefile+set}" = set; then :
11905 enableval=$enable_largefile;
11906fi
ce3c775b 11907
ce3c775b
NC
11908if test "$enable_largefile" != no; then
11909
81ecdfbb
RW
11910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
11911$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
11912if test "${ac_cv_sys_largefile_CC+set}" = set; then :
11913 $as_echo_n "(cached) " >&6
ce3c775b
NC
11914else
11915 ac_cv_sys_largefile_CC=no
11916 if test "$GCC" != yes; then
11917 ac_save_CC=$CC
11918 while :; do
81ecdfbb
RW
11919 # IRIX 6.2 and later do not support large files by default,
11920 # so use the C compiler's -n32 option if that helps.
11921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce3c775b
NC
11922/* end confdefs.h. */
11923#include <sys/types.h>
11924 /* Check that off_t can represent 2**63 - 1 correctly.
11925 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11926 since some C++ compilers masquerading as C compilers
11927 incorrectly reject 9223372036854775807. */
11928#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11929 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11930 && LARGE_OFF_T % 2147483647 == 1)
11931 ? 1 : -1];
11932int
11933main ()
11934{
11935
11936 ;
11937 return 0;
11938}
11939_ACEOF
81ecdfbb 11940 if ac_fn_c_try_compile "$LINENO"; then :
ce3c775b 11941 break
ce3c775b 11942fi
81ecdfbb
RW
11943rm -f core conftest.err conftest.$ac_objext
11944 CC="$CC -n32"
11945 if ac_fn_c_try_compile "$LINENO"; then :
ce3c775b 11946 ac_cv_sys_largefile_CC=' -n32'; break
ce3c775b 11947fi
81ecdfbb 11948rm -f core conftest.err conftest.$ac_objext
ce3c775b
NC
11949 break
11950 done
11951 CC=$ac_save_CC
11952 rm -f conftest.$ac_ext
11953 fi
11954fi
81ecdfbb
RW
11955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
11956$as_echo "$ac_cv_sys_largefile_CC" >&6; }
ce3c775b
NC
11957 if test "$ac_cv_sys_largefile_CC" != no; then
11958 CC=$CC$ac_cv_sys_largefile_CC
11959 fi
11960
81ecdfbb
RW
11961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
11962$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
11963if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
11964 $as_echo_n "(cached) " >&6
ce3c775b
NC
11965else
11966 while :; do
81ecdfbb 11967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce3c775b
NC
11968/* end confdefs.h. */
11969#include <sys/types.h>
11970 /* Check that off_t can represent 2**63 - 1 correctly.
11971 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11972 since some C++ compilers masquerading as C compilers
11973 incorrectly reject 9223372036854775807. */
11974#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11975 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11976 && LARGE_OFF_T % 2147483647 == 1)
11977 ? 1 : -1];
11978int
11979main ()
11980{
11981
11982 ;
11983 return 0;
11984}
11985_ACEOF
81ecdfbb
RW
11986if ac_fn_c_try_compile "$LINENO"; then :
11987 ac_cv_sys_file_offset_bits=no; break
ce3c775b 11988fi
81ecdfbb
RW
11989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce3c775b
NC
11991/* end confdefs.h. */
11992#define _FILE_OFFSET_BITS 64
11993#include <sys/types.h>
11994 /* Check that off_t can represent 2**63 - 1 correctly.
11995 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11996 since some C++ compilers masquerading as C compilers
11997 incorrectly reject 9223372036854775807. */
11998#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11999 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12000 && LARGE_OFF_T % 2147483647 == 1)
12001 ? 1 : -1];
12002int
12003main ()
12004{
12005
12006 ;
12007 return 0;
12008}
12009_ACEOF
81ecdfbb 12010if ac_fn_c_try_compile "$LINENO"; then :
ce3c775b 12011 ac_cv_sys_file_offset_bits=64; break
ce3c775b 12012fi
81ecdfbb
RW
12013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12014 ac_cv_sys_file_offset_bits=unknown
ce3c775b
NC
12015 break
12016done
12017fi
81ecdfbb
RW
12018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
12019$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
12020case $ac_cv_sys_file_offset_bits in #(
12021 no | unknown) ;;
12022 *)
ce3c775b
NC
12023cat >>confdefs.h <<_ACEOF
12024#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
12025_ACEOF
81ecdfbb
RW
12026;;
12027esac
12028rm -rf conftest*
12029 if test $ac_cv_sys_file_offset_bits = unknown; then
12030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
12031$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
12032if test "${ac_cv_sys_large_files+set}" = set; then :
12033 $as_echo_n "(cached) " >&6
ce3c775b
NC
12034else
12035 while :; do
81ecdfbb 12036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce3c775b
NC
12037/* end confdefs.h. */
12038#include <sys/types.h>
12039 /* Check that off_t can represent 2**63 - 1 correctly.
12040 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12041 since some C++ compilers masquerading as C compilers
12042 incorrectly reject 9223372036854775807. */
12043#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12044 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12045 && LARGE_OFF_T % 2147483647 == 1)
12046 ? 1 : -1];
12047int
12048main ()
12049{
12050
12051 ;
12052 return 0;
12053}
12054_ACEOF
81ecdfbb
RW
12055if ac_fn_c_try_compile "$LINENO"; then :
12056 ac_cv_sys_large_files=no; break
ce3c775b 12057fi
81ecdfbb
RW
12058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce3c775b
NC
12060/* end confdefs.h. */
12061#define _LARGE_FILES 1
12062#include <sys/types.h>
12063 /* Check that off_t can represent 2**63 - 1 correctly.
12064 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12065 since some C++ compilers masquerading as C compilers
12066 incorrectly reject 9223372036854775807. */
12067#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12068 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12069 && LARGE_OFF_T % 2147483647 == 1)
12070 ? 1 : -1];
12071int
12072main ()
12073{
d7040cdb 12074
ce3c775b
NC
12075 ;
12076 return 0;
12077}
12078_ACEOF
81ecdfbb 12079if ac_fn_c_try_compile "$LINENO"; then :
ce3c775b 12080 ac_cv_sys_large_files=1; break
ce3c775b 12081fi
81ecdfbb
RW
12082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12083 ac_cv_sys_large_files=unknown
ce3c775b
NC
12084 break
12085done
12086fi
81ecdfbb
RW
12087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
12088$as_echo "$ac_cv_sys_large_files" >&6; }
12089case $ac_cv_sys_large_files in #(
12090 no | unknown) ;;
12091 *)
ce3c775b
NC
12092cat >>confdefs.h <<_ACEOF
12093#define _LARGE_FILES $ac_cv_sys_large_files
12094_ACEOF
81ecdfbb
RW
12095;;
12096esac
12097rm -rf conftest*
12098 fi
ce3c775b 12099fi
d7040cdb
SE
12100
12101
da2f07f1
JK
12102
12103 if test "$plugins" = "yes"; then
12104 PLUGINS_TRUE=
12105 PLUGINS_FALSE='#'
12106else
12107 PLUGINS_TRUE='#'
12108 PLUGINS_FALSE=
12109fi
12110
12111
12112if test "$plugins" = "yes"; then
da2f07f1
JK
12113 enable_targets="$enable_targets plugin"
12114fi
12115
81ecdfbb
RW
12116# Check whether --enable-64-bit-bfd was given.
12117if test "${enable_64_bit_bfd+set}" = set; then :
12118 enableval=$enable_64_bit_bfd; case "${enableval}" in
d7040cdb
SE
12119 yes) want64=true ;;
12120 no) want64=false ;;
81ecdfbb 12121 *) as_fn_error "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
d7040cdb
SE
12122esac
12123else
12124 want64=false
81ecdfbb
RW
12125fi
12126
12127# Check whether --enable-targets was given.
12128if test "${enable_targets+set}" = set; then :
12129 enableval=$enable_targets; case "${enableval}" in
12130 yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5
d7040cdb
SE
12131 ;;
12132 no) enable_targets= ;;
12133 *) enable_targets=$enableval ;;
12134esac
81ecdfbb 12135fi
504b7d20 12136
e6cc316a
L
12137# Check whether --enable-64_bit_archive was given.
12138if test "${enable_64_bit_archive+set}" = set; then :
12139 enableval=$enable_64_bit_archive; case "${enableval}" in
12140 yes) want_64_bit_archive=true ;;
12141 no) want_64_bit_archive=false ;;
12142 *) as_fn_error "bad value ${enableval} for 64-bit-archive option" "$LINENO" 5 ;;
12143esac
12144else
12145 want_64_bit_archive=unset
12146fi
12147
81ecdfbb
RW
12148
12149# Check whether --with-mmap was given.
12150if test "${with_mmap+set}" = set; then :
12151 withval=$with_mmap; case "${withval}" in
d7040cdb
SE
12152 yes) want_mmap=true ;;
12153 no) want_mmap=false ;;
81ecdfbb 12154 *) as_fn_error "bad value ${withval} for BFD with-mmap option" "$LINENO" 5 ;;
20e95c23 12155esac
252b5132 12156else
d7040cdb 12157 want_mmap=false
81ecdfbb
RW
12158fi
12159
12160# Check whether --enable-secureplt was given.
12161if test "${enable_secureplt+set}" = set; then :
12162 enableval=$enable_secureplt; case "${enableval}" in
d7040cdb
SE
12163 yes) use_secureplt=true ;;
12164 no) use_secureplt=false ;;
81ecdfbb 12165 *) as_fn_error "bad value ${enableval} for secureplt option" "$LINENO" 5 ;;
d7040cdb 12166esac
252b5132 12167else
cc75d373 12168 use_secureplt=true
81ecdfbb
RW
12169fi
12170if test $use_secureplt = true; then
d7040cdb 12171
81ecdfbb 12172$as_echo "#define USE_SECUREPLT 1" >>confdefs.h
5464f5a1 12173
252b5132 12174fi
20e95c23 12175
f6aec96d
L
12176# Decide if -z separate-code should be enabled in ELF linker by default.
12177ac_default_ld_z_separate_code=unset
12178# Check whether --enable-separate-code was given.
12179if test "${enable_separate_code+set}" = set; then :
12180 enableval=$enable_separate_code; case "${enableval}" in
12181 yes) ac_default_ld_z_separate_code=1 ;;
12182 no) ac_default_ld_z_separate_code=0 ;;
12183esac
12184fi
12185
12186# Enable -z separate-code by default for Linux/x86.
12187case "${target}" in
12188i3-786-*-linux-* | x86_64-*-linux-*)
12189 if test ${ac_default_ld_z_separate_code} = unset; then
12190 ac_default_ld_z_separate_code=1
12191 fi
12192 ;;
12193esac
12194if test "${ac_default_ld_z_separate_code}" = unset; then
12195 ac_default_ld_z_separate_code=0
12196fi
12197
12198cat >>confdefs.h <<_ACEOF
12199#define DEFAULT_LD_Z_SEPARATE_CODE $ac_default_ld_z_separate_code
12200_ACEOF
12201
12202
ef72a554
KT
12203# Check whether --enable-leading-mingw64-underscores was given.
12204if test "${enable_leading_mingw64_underscores+set}" = set; then :
12205 enableval=$enable_leading_mingw64_underscores;
12206fi
12207
12208if test x"$enable_leading_mingw64_underscores" = xyes ; then :
12209
12210$as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
12211
12212fi
12213
0d4a1476
AS
12214DEBUGDIR=${libdir}/debug
12215
81ecdfbb
RW
12216# Check whether --with-separate-debug-dir was given.
12217if test "${with_separate_debug_dir+set}" = set; then :
12218 withval=$with_separate_debug_dir; DEBUGDIR="${withval}"
12219fi
12220
0d4a1476
AS
12221
12222
504b7d20 12223
d7040cdb 12224
81ecdfbb
RW
12225# Check whether --with-pkgversion was given.
12226if test "${with_pkgversion+set}" = set; then :
12227 withval=$with_pkgversion; case "$withval" in
12228 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
d7040cdb
SE
12229 no) PKGVERSION= ;;
12230 *) PKGVERSION="($withval) " ;;
12231 esac
252b5132 12232else
d7040cdb 12233 PKGVERSION="(GNU Binutils) "
252b5132 12234
81ecdfbb
RW
12235fi
12236
20e95c23
DJ
12237
12238
5464f5a1 12239
20e95c23 12240
81ecdfbb
RW
12241# Check whether --with-bugurl was given.
12242if test "${with_bugurl+set}" = set; then :
12243 withval=$with_bugurl; case "$withval" in
12244 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
d7040cdb
SE
12245 no) BUGURL=
12246 ;;
12247 *) BUGURL="$withval"
12248 ;;
12249 esac
252b5132 12250else
d7040cdb
SE
12251 BUGURL="http://www.sourceware.org/bugzilla/"
12252
81ecdfbb
RW
12253fi
12254
d7040cdb
SE
12255 case ${BUGURL} in
12256 "")
12257 REPORT_BUGS_TO=
12258 REPORT_BUGS_TEXI=
20e95c23
DJ
12259 ;;
12260 *)
d7040cdb
SE
12261 REPORT_BUGS_TO="<$BUGURL>"
12262 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
20e95c23 12263 ;;
d7040cdb
SE
12264 esac;
12265
12266
12267
12268
12269
270c9937
JB
12270# Set the 'development' global.
12271. $srcdir/../bfd/development.sh
12272
c5da1932
VZ
12273# Set acp_cpp_for_build variable
12274ac_cpp_for_build="$CC_FOR_BUILD -E $CPPFLAGS_FOR_BUILD"
12275
9780e045 12276# Default set of GCC warnings to enable.
d1a98e0c 12277GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
c5da1932 12278GCC_WARN_CFLAGS_FOR_BUILD="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
9780e045
NC
12279
12280# Add -Wshadow if the compiler is a sufficiently recent version of GCC.
d1a98e0c
AM
12281cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12282/* end confdefs.h. */
12283__GNUC__
12284_ACEOF
12285if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12286 $EGREP "^[0-3]$" >/dev/null 2>&1; then :
12287
12288else
12289 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
12290fi
12291rm -f conftest*
12292
d7040cdb 12293
9780e045
NC
12294# Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
12295cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12296/* end confdefs.h. */
12297__GNUC__
12298_ACEOF
12299if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12300 $EGREP "^[0-4]$" >/dev/null 2>&1; then :
12301
12302else
12303 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144"
12304fi
12305rm -f conftest*
12306
12307
6757cf57
TS
12308# Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings.
12309WARN_WRITE_STRINGS=""
12310cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12311/* end confdefs.h. */
12312__GNUC__
12313_ACEOF
12314if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12315 $EGREP "^[0-3]$" >/dev/null 2>&1; then :
12316
12317else
12318 WARN_WRITE_STRINGS="-Wwrite-strings"
12319fi
12320rm -f conftest*
12321
9780e045 12322
96fe4562 12323# Verify CC_FOR_BUILD to be compatible with warning flags
c5da1932
VZ
12324
12325# Add -Wshadow if the compiler is a sufficiently recent version of GCC.
12326cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12327/* end confdefs.h. */
12328__GNUC__
12329_ACEOF
12330if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
12331 $EGREP "^[0-3]$" >/dev/null 2>&1; then :
12332
12333else
12334 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wshadow"
12335fi
12336rm -f conftest*
12337
12338
12339# Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
12340cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12341/* end confdefs.h. */
12342__GNUC__
12343_ACEOF
12344if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
12345 $EGREP "^[0-4]$" >/dev/null 2>&1; then :
12346
12347else
12348 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wstack-usage=262144"
12349fi
12350rm -f conftest*
12351
12352
81ecdfbb
RW
12353# Check whether --enable-werror was given.
12354if test "${enable_werror+set}" = set; then :
12355 enableval=$enable_werror; case "${enableval}" in
d7040cdb
SE
12356 yes | y) ERROR_ON_WARNING="yes" ;;
12357 no | n) ERROR_ON_WARNING="no" ;;
81ecdfbb 12358 *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
d7040cdb 12359 esac
81ecdfbb
RW
12360fi
12361
d7040cdb 12362
d1a98e0c 12363# Disable -Wformat by default when using gcc on mingw
bb8541b9
L
12364case "${host}" in
12365 *-*-mingw32*)
12366 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
12367 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
c5da1932 12368 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wno-format"
bb8541b9
L
12369 fi
12370 ;;
12371 *) ;;
12372esac
12373
270c9937
JB
12374# Enable -Werror by default when using gcc. Turn it off for releases.
12375if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then
d7040cdb
SE
12376 ERROR_ON_WARNING=yes
12377fi
12378
12379NO_WERROR=
12380if test "${ERROR_ON_WARNING}" = yes ; then
9780e045 12381 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
c5da1932 12382 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Werror"
d7040cdb
SE
12383 NO_WERROR="-Wno-error"
12384fi
12385
12386if test "${GCC}" = yes ; then
12387 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
c5da1932 12388 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}"
d7040cdb
SE
12389fi
12390
81ecdfbb
RW
12391# Check whether --enable-build-warnings was given.
12392if test "${enable_build_warnings+set}" = set; then :
12393 enableval=$enable_build_warnings; case "${enableval}" in
c5da1932
VZ
12394 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}"
12395 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}";;
d7040cdb
SE
12396 no) if test "${GCC}" = yes ; then
12397 WARN_CFLAGS="-w"
c5da1932 12398 WARN_CFLAGS_FOR_BUILD="-w"
d7040cdb
SE
12399 fi;;
12400 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
c5da1932
VZ
12401 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}"
12402 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD} ${t}";;
d7040cdb 12403 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
c5da1932
VZ
12404 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}"
12405 WARN_CFLAGS_FOR_BUILD="${t} ${GCC_WARN_CFLAGS_FOR_BUILD}";;
12406 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`
12407 WARN_CFLAGS_FOR_BUILD=`echo "${enableval}" | sed -e "s/,/ /g"`;;
20e95c23 12408esac
81ecdfbb
RW
12409fi
12410
d7040cdb
SE
12411
12412if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
12413 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
20e95c23 12414fi
d7040cdb
SE
12415
12416
12417
12418
12419
6757cf57 12420
c5da1932 12421
81ecdfbb 12422ac_config_headers="$ac_config_headers config.h:config.in"
d7040cdb
SE
12423
12424
df7b86aa
NC
12425# PR 14072
12426
12427
d7040cdb 12428if test -z "$target" ; then
81ecdfbb 12429 as_fn_error "Unrecognized target system type; please check config.sub." "$LINENO" 5
20e95c23
DJ
12430fi
12431
81ecdfbb
RW
12432
12433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
12434$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
12435 # Check whether --enable-maintainer-mode was given.
12436if test "${enable_maintainer_mode+set}" = set; then :
12437 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
d7040cdb
SE
12438else
12439 USE_MAINTAINER_MODE=no
81ecdfbb 12440fi
20e95c23 12441
81ecdfbb
RW
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
12443$as_echo "$USE_MAINTAINER_MODE" >&6; }
12444 if test $USE_MAINTAINER_MODE = yes; then
d7040cdb
SE
12445 MAINTAINER_MODE_TRUE=
12446 MAINTAINER_MODE_FALSE='#'
12447else
12448 MAINTAINER_MODE_TRUE='#'
12449 MAINTAINER_MODE_FALSE=
6be7c12c 12450fi
5464f5a1 12451
d7040cdb
SE
12452 MAINT=$MAINTAINER_MODE_TRUE
12453
12454
81ecdfbb 12455 if false; then
d7040cdb
SE
12456 GENINSRC_NEVER_TRUE=
12457 GENINSRC_NEVER_FALSE='#'
20e95c23 12458else
d7040cdb
SE
12459 GENINSRC_NEVER_TRUE='#'
12460 GENINSRC_NEVER_FALSE=
5464f5a1 12461fi
5464f5a1 12462
d7040cdb
SE
12463 case ${build_alias} in
12464 "") build_noncanonical=${build} ;;
12465 *) build_noncanonical=${build_alias} ;;
20e95c23 12466esac
d7040cdb
SE
12467
12468 case ${host_alias} in
12469 "") host_noncanonical=${build_noncanonical} ;;
12470 *) host_noncanonical=${host_alias} ;;
12471esac
12472
12473 case ${target_alias} in
12474 "") target_noncanonical=${host_noncanonical} ;;
12475 *) target_noncanonical=${target_alias} ;;
12476esac
12477
81ecdfbb
RW
12478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install libbfd" >&5
12479$as_echo_n "checking whether to install libbfd... " >&6; }
12480 # Check whether --enable-install-libbfd was given.
12481if test "${enable_install_libbfd+set}" = set; then :
12482 enableval=$enable_install_libbfd; install_libbfd_p=$enableval
252b5132 12483else
d7040cdb
SE
12484 if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
12485 install_libbfd_p=yes
12486 else
12487 install_libbfd_p=no
12488 fi
81ecdfbb 12489fi
d7040cdb 12490
81ecdfbb
RW
12491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $install_libbfd_p" >&5
12492$as_echo "$install_libbfd_p" >&6; }
12493 if test $install_libbfd_p = yes; then
d7040cdb
SE
12494 INSTALL_LIBBFD_TRUE=
12495 INSTALL_LIBBFD_FALSE='#'
12496else
12497 INSTALL_LIBBFD_TRUE='#'
12498 INSTALL_LIBBFD_FALSE=
5464f5a1 12499fi
5464f5a1 12500
d7040cdb 12501 # Need _noncanonical variables for this.
5464f5a1 12502
5464f5a1 12503
d7040cdb
SE
12504
12505
12506 # libbfd.a is a host library containing target dependent code
12507 bfdlibdir='$(libdir)'
12508 bfdincludedir='$(includedir)'
12509 if test "${host}" != "${target}"; then
12510 bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
12511 bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
20e95c23 12512 fi
6be7c12c 12513
5464f5a1 12514
5464f5a1
NN
12515
12516
5464f5a1 12517
ac48eca1 12518
573e8a1c
RW
12519
12520
d7040cdb
SE
12521host64=false
12522target64=false
12523bfd_default_target_size=32
252b5132 12524
d7040cdb 12525# host stuff:
20e95c23 12526
293b4d4f 12527ALL_LINGUAS="da es fi fr hr id ja ro ru rw sr sv tr uk vi zh_CN pt"
d7040cdb
SE
12528# If we haven't got the data from the intl directory,
12529# assume NLS is disabled.
12530USE_NLS=no
12531LIBINTL=
12532LIBINTL_DEP=
12533INCINTL=
12534XGETTEXT=
12535GMSGFMT=
12536POSUB=
12537
12538if test -f ../intl/config.intl; then
12539 . ../intl/config.intl
252b5132 12540fi
81ecdfbb
RW
12541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12542$as_echo_n "checking whether NLS is requested... " >&6; }
d7040cdb 12543if test x"$USE_NLS" != xyes; then
81ecdfbb
RW
12544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12545$as_echo "no" >&6; }
d7040cdb 12546else
81ecdfbb
RW
12547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12548$as_echo "yes" >&6; }
5464f5a1 12549
81ecdfbb 12550$as_echo "#define ENABLE_NLS 1" >>confdefs.h
252b5132 12551
6be7c12c 12552
81ecdfbb
RW
12553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
12554$as_echo_n "checking for catalogs to be installed... " >&6; }
d7040cdb
SE
12555 # Look for .po and .gmo files in the source directory.
12556 CATALOGS=
12557 XLINGUAS=
12558 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12559 # If there aren't any .gmo files the shell will give us the
12560 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12561 # weeded out.
12562 case "$cat" in *\**)
12563 continue;;
12564 esac
12565 # The quadruple backslash is collapsed to a double backslash
12566 # by the backticks, then collapsed again by the double quotes,
12567 # leaving us with one backslash in the sed expression (right
12568 # before the dot that mustn't act as a wildcard).
12569 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
12570 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
12571 # The user is allowed to set LINGUAS to a list of languages to
12572 # install catalogs for. If it's empty that means "all of them."
12573 if test "x$LINGUAS" = x; then
12574 CATALOGS="$CATALOGS $cat"
12575 XLINGUAS="$XLINGUAS $lang"
12576 else
12577 case "$LINGUAS" in *$lang*)
12578 CATALOGS="$CATALOGS $cat"
12579 XLINGUAS="$XLINGUAS $lang"
12580 ;;
12581 esac
12582 fi
12583 done
12584 LINGUAS="$XLINGUAS"
81ecdfbb
RW
12585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
12586$as_echo "$LINGUAS" >&6; }
d7040cdb 12587
252b5132 12588
d7040cdb 12589 DATADIRNAME=share
252b5132 12590
d7040cdb 12591 INSTOBJEXT=.mo
5464f5a1 12592
d7040cdb 12593 GENCAT=gencat
20e95c23 12594
d7040cdb 12595 CATOBJEXT=.gmo
5464f5a1 12596
20e95c23 12597fi
5464f5a1 12598
d7040cdb
SE
12599 MKINSTALLDIRS=
12600 if test -n "$ac_aux_dir"; then
12601 case "$ac_aux_dir" in
12602 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
12603 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
12604 esac
12605 fi
12606 if test -z "$MKINSTALLDIRS"; then
12607 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5464f5a1 12608 fi
5464f5a1 12609
5464f5a1 12610
d7040cdb 12611
81ecdfbb
RW
12612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12613$as_echo_n "checking whether NLS is requested... " >&6; }
12614 # Check whether --enable-nls was given.
12615if test "${enable_nls+set}" = set; then :
12616 enableval=$enable_nls; USE_NLS=$enableval
252b5132 12617else
d7040cdb 12618 USE_NLS=yes
81ecdfbb
RW
12619fi
12620
12621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
12622$as_echo "$USE_NLS" >&6; }
5464f5a1 12623
252b5132 12624
5464f5a1 12625
252b5132 12626
d7040cdb
SE
12627
12628
12629# Prepare PATH_SEPARATOR.
12630# The user is always right.
12631if test "${PATH_SEPARATOR+set}" != set; then
12632 echo "#! /bin/sh" >conf$$.sh
12633 echo "exit 0" >>conf$$.sh
12634 chmod +x conf$$.sh
12635 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12636 PATH_SEPARATOR=';'
20e95c23 12637 else
d7040cdb 12638 PATH_SEPARATOR=:
20e95c23 12639 fi
d7040cdb
SE
12640 rm -f conf$$.sh
12641fi
12642
12643# Find out how to test for executable files. Don't use a zero-byte file,
12644# as systems may use methods other than mode bits to determine executability.
12645cat >conf$$.file <<_ASEOF
12646#! /bin/sh
12647exit 0
12648_ASEOF
12649chmod +x conf$$.file
12650if test -x conf$$.file >/dev/null 2>&1; then
12651 ac_executable_p="test -x"
20e95c23 12652else
d7040cdb 12653 ac_executable_p="test -f"
20e95c23 12654fi
d7040cdb 12655rm -f conf$$.file
5464f5a1 12656
d7040cdb
SE
12657# Extract the first word of "msgfmt", so it can be a program name with args.
12658set dummy msgfmt; ac_word=$2
81ecdfbb
RW
12659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12660$as_echo_n "checking for $ac_word... " >&6; }
12661if test "${ac_cv_path_MSGFMT+set}" = set; then :
12662 $as_echo_n "(cached) " >&6
d7040cdb
SE
12663else
12664 case "$MSGFMT" in
12665 [\\/]* | ?:[\\/]*)
12666 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12667 ;;
12668 *)
12669 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12670 for ac_dir in $PATH; do
12671 IFS="$ac_save_IFS"
12672 test -z "$ac_dir" && ac_dir=.
12673 for ac_exec_ext in '' $ac_executable_extensions; do
12674 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12675 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
12676 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12677 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
12678 break 2
12679 fi
12680 fi
12681 done
12682 done
12683 IFS="$ac_save_IFS"
12684 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
12685 ;;
12686esac
5464f5a1 12687fi
d7040cdb
SE
12688MSGFMT="$ac_cv_path_MSGFMT"
12689if test "$MSGFMT" != ":"; then
81ecdfbb
RW
12690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
12691$as_echo "$MSGFMT" >&6; }
20e95c23 12692else
81ecdfbb
RW
12693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12694$as_echo "no" >&6; }
252b5132 12695fi
d7040cdb
SE
12696
12697 # Extract the first word of "gmsgfmt", so it can be a program name with args.
12698set dummy gmsgfmt; ac_word=$2
81ecdfbb
RW
12699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12700$as_echo_n "checking for $ac_word... " >&6; }
12701if test "${ac_cv_path_GMSGFMT+set}" = set; then :
12702 $as_echo_n "(cached) " >&6
252b5132 12703else
d7040cdb
SE
12704 case $GMSGFMT in
12705 [\\/]* | ?:[\\/]*)
12706 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12707 ;;
12708 *)
12709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12710for as_dir in $PATH
12711do
12712 IFS=$as_save_IFS
12713 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12714 for ac_exec_ext in '' $ac_executable_extensions; do
12715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 12716 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
12718 break 2
12719 fi
12720done
81ecdfbb
RW
12721 done
12722IFS=$as_save_IFS
5464f5a1 12723
d7040cdb
SE
12724 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12725 ;;
12726esac
252b5132 12727fi
d7040cdb 12728GMSGFMT=$ac_cv_path_GMSGFMT
d7040cdb 12729if test -n "$GMSGFMT"; then
81ecdfbb
RW
12730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
12731$as_echo "$GMSGFMT" >&6; }
252b5132 12732else
81ecdfbb
RW
12733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12734$as_echo "no" >&6; }
252b5132
RH
12735fi
12736
20e95c23
DJ
12737
12738
81ecdfbb 12739
d7040cdb
SE
12740# Prepare PATH_SEPARATOR.
12741# The user is always right.
12742if test "${PATH_SEPARATOR+set}" != set; then
12743 echo "#! /bin/sh" >conf$$.sh
12744 echo "exit 0" >>conf$$.sh
12745 chmod +x conf$$.sh
12746 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12747 PATH_SEPARATOR=';'
12748 else
12749 PATH_SEPARATOR=:
12750 fi
12751 rm -f conf$$.sh
252b5132 12752fi
20e95c23 12753
d7040cdb
SE
12754# Find out how to test for executable files. Don't use a zero-byte file,
12755# as systems may use methods other than mode bits to determine executability.
12756cat >conf$$.file <<_ASEOF
12757#! /bin/sh
12758exit 0
12759_ASEOF
12760chmod +x conf$$.file
12761if test -x conf$$.file >/dev/null 2>&1; then
12762 ac_executable_p="test -x"
12763else
12764 ac_executable_p="test -f"
12765fi
12766rm -f conf$$.file
252b5132 12767
d7040cdb
SE
12768# Extract the first word of "xgettext", so it can be a program name with args.
12769set dummy xgettext; ac_word=$2
81ecdfbb
RW
12770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12771$as_echo_n "checking for $ac_word... " >&6; }
12772if test "${ac_cv_path_XGETTEXT+set}" = set; then :
12773 $as_echo_n "(cached) " >&6
20e95c23 12774else
d7040cdb
SE
12775 case "$XGETTEXT" in
12776 [\\/]* | ?:[\\/]*)
12777 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12778 ;;
12779 *)
12780 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12781 for ac_dir in $PATH; do
12782 IFS="$ac_save_IFS"
12783 test -z "$ac_dir" && ac_dir=.
12784 for ac_exec_ext in '' $ac_executable_extensions; do
12785 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12786 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12787 (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
12788 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
12789 break 2
12790 fi
12791 fi
12792 done
12793 done
12794 IFS="$ac_save_IFS"
12795 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12796 ;;
12797esac
12798fi
12799XGETTEXT="$ac_cv_path_XGETTEXT"
12800if test "$XGETTEXT" != ":"; then
81ecdfbb
RW
12801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
12802$as_echo "$XGETTEXT" >&6; }
252b5132 12803else
81ecdfbb
RW
12804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12805$as_echo "no" >&6; }
252b5132
RH
12806fi
12807
d7040cdb 12808 rm -f messages.po
5464f5a1 12809
252b5132 12810
d7040cdb
SE
12811# Prepare PATH_SEPARATOR.
12812# The user is always right.
12813if test "${PATH_SEPARATOR+set}" != set; then
12814 echo "#! /bin/sh" >conf$$.sh
12815 echo "exit 0" >>conf$$.sh
12816 chmod +x conf$$.sh
12817 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12818 PATH_SEPARATOR=';'
12819 else
12820 PATH_SEPARATOR=:
12821 fi
12822 rm -f conf$$.sh
252b5132
RH
12823fi
12824
d7040cdb
SE
12825# Find out how to test for executable files. Don't use a zero-byte file,
12826# as systems may use methods other than mode bits to determine executability.
12827cat >conf$$.file <<_ASEOF
12828#! /bin/sh
12829exit 0
12830_ASEOF
12831chmod +x conf$$.file
12832if test -x conf$$.file >/dev/null 2>&1; then
12833 ac_executable_p="test -x"
5464f5a1 12834else
d7040cdb 12835 ac_executable_p="test -f"
20e95c23 12836fi
d7040cdb 12837rm -f conf$$.file
5464f5a1 12838
d7040cdb
SE
12839# Extract the first word of "msgmerge", so it can be a program name with args.
12840set dummy msgmerge; ac_word=$2
81ecdfbb
RW
12841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12842$as_echo_n "checking for $ac_word... " >&6; }
12843if test "${ac_cv_path_MSGMERGE+set}" = set; then :
12844 $as_echo_n "(cached) " >&6
d7040cdb
SE
12845else
12846 case "$MSGMERGE" in
12847 [\\/]* | ?:[\\/]*)
12848 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12849 ;;
12850 *)
12851 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12852 for ac_dir in $PATH; do
12853 IFS="$ac_save_IFS"
12854 test -z "$ac_dir" && ac_dir=.
12855 for ac_exec_ext in '' $ac_executable_extensions; do
12856 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12857 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
12858 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
12859 break 2
12860 fi
12861 fi
12862 done
12863 done
12864 IFS="$ac_save_IFS"
12865 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12866 ;;
12867esac
5464f5a1 12868fi
d7040cdb
SE
12869MSGMERGE="$ac_cv_path_MSGMERGE"
12870if test "$MSGMERGE" != ":"; then
81ecdfbb
RW
12871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
12872$as_echo "$MSGMERGE" >&6; }
20e95c23 12873else
81ecdfbb
RW
12874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12875$as_echo "no" >&6; }
d7040cdb 12876fi
20e95c23 12877
5464f5a1 12878
d7040cdb
SE
12879 if test "$GMSGFMT" != ":"; then
12880 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
12881 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12882 : ;
12883 else
12884 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
81ecdfbb
RW
12885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
12886$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
d7040cdb
SE
12887 GMSGFMT=":"
12888 fi
12889 fi
252b5132 12890
d7040cdb
SE
12891 if test "$XGETTEXT" != ":"; then
12892 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12893 (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
12894 : ;
12895 else
81ecdfbb
RW
12896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
12897$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
d7040cdb
SE
12898 XGETTEXT=":"
12899 fi
12900 rm -f messages.po
12901 fi
6be7c12c 12902
81ecdfbb 12903 ac_config_commands="$ac_config_commands default-1"
5464f5a1 12904
252b5132 12905
5464f5a1 12906
d7040cdb
SE
12907# Permit host specific settings.
12908. ${srcdir}/configure.host
12909
12910
252b5132 12911
252b5132 12912
d7040cdb 12913BFD_HOST_64BIT_LONG=0
d2df793a 12914BFD_HOST_64BIT_LONG_LONG=0
d7040cdb
SE
12915BFD_HOST_64_BIT_DEFINED=0
12916BFD_HOST_64_BIT=
12917BFD_HOST_U_64_BIT=
d2df793a 12918BFD_HOSTPTR_T="unsigned long"
6be7c12c 12919
33c734b2
AM
12920
12921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
12922$as_echo_n "checking for long double... " >&6; }
12923if test "${ac_cv_type_long_double+set}" = set; then :
12924 $as_echo_n "(cached) " >&6
12925else
12926 if test "$GCC" = yes; then
12927 ac_cv_type_long_double=yes
12928 else
12929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12930/* end confdefs.h. */
12931/* The Stardent Vistra knows sizeof (long double), but does
12932 not support it. */
12933 long double foo = 0.0L;
12934int
12935main ()
12936{
12937static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
12938 sizeof (double) <= sizeof (long double))];
12939test_array [0] = 0
12940
12941 ;
12942 return 0;
12943}
12944_ACEOF
12945if ac_fn_c_try_compile "$LINENO"; then :
12946 ac_cv_type_long_double=yes
12947else
12948 ac_cv_type_long_double=no
12949fi
12950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12951 fi
12952fi
12953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
12954$as_echo "$ac_cv_type_long_double" >&6; }
12955 if test $ac_cv_type_long_double = yes; then
12956
12957$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
12958
12959 fi
12960
12961ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
12962if test "x$ac_cv_type_long_long" = x""yes; then :
12963
12964cat >>confdefs.h <<_ACEOF
12965#define HAVE_LONG_LONG 1
12966_ACEOF
12967
81ecdfbb
RW
12968# The cast to long int works around a bug in the HP C Compiler
12969# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12970# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12971# This bug is HP SR number 8606223364.
12972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12973$as_echo_n "checking size of long long... " >&6; }
12974if test "${ac_cv_sizeof_long_long+set}" = set; then :
12975 $as_echo_n "(cached) " >&6
6726e1ea 12976else
81ecdfbb
RW
12977 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
12978
12979else
12980 if test "$ac_cv_type_long_long" = yes; then
12981 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12982$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12983{ as_fn_set_status 77
12984as_fn_error "cannot compute sizeof (long long)
12985See \`config.log' for more details." "$LINENO" 5; }; }
12986 else
12987 ac_cv_sizeof_long_long=0
12988 fi
12989fi
12990
12991fi
12992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
12993$as_echo "$ac_cv_sizeof_long_long" >&6; }
12994
12995
12996
12997cat >>confdefs.h <<_ACEOF
12998#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5464f5a1 12999_ACEOF
81ecdfbb
RW
13000
13001
33c734b2
AM
13002fi
13003
81ecdfbb
RW
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 void *" >&5
13009$as_echo_n "checking size of void *... " >&6; }
13010if test "${ac_cv_sizeof_void_p+set}" = set; then :
13011 $as_echo_n "(cached) " >&6
6726e1ea 13012else
81ecdfbb 13013 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5464f5a1 13014
81ecdfbb
RW
13015else
13016 if test "$ac_cv_type_void_p" = 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;}
13019{ as_fn_set_status 77
13020as_fn_error "cannot compute sizeof (void *)
13021See \`config.log' for more details." "$LINENO" 5; }; }
13022 else
13023 ac_cv_sizeof_void_p=0
13024 fi
6726e1ea 13025fi
81ecdfbb 13026
6726e1ea 13027fi
81ecdfbb
RW
13028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
13029$as_echo "$ac_cv_sizeof_void_p" >&6; }
6726e1ea 13030
6726e1ea 13031
2ba49b59 13032
81ecdfbb
RW
13033cat >>confdefs.h <<_ACEOF
13034#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5464f5a1 13035_ACEOF
81ecdfbb
RW
13036
13037
13038# The cast to long int works around a bug in the HP C Compiler
13039# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13040# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13041# This bug is HP SR number 8606223364.
13042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
13043$as_echo_n "checking size of long... " >&6; }
13044if test "${ac_cv_sizeof_long+set}" = set; then :
13045 $as_echo_n "(cached) " >&6
6726e1ea 13046else
81ecdfbb 13047 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5464f5a1 13048
252b5132 13049else
81ecdfbb
RW
13050 if test "$ac_cv_type_long" = yes; then
13051 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13052$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13053{ as_fn_set_status 77
13054as_fn_error "cannot compute sizeof (long)
13055See \`config.log' for more details." "$LINENO" 5; }; }
13056 else
13057 ac_cv_sizeof_long=0
13058 fi
13059fi
5464f5a1 13060
81ecdfbb
RW
13061fi
13062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
13063$as_echo "$ac_cv_sizeof_long" >&6; }
2ba49b59 13064
81ecdfbb
RW
13065
13066
13067cat >>confdefs.h <<_ACEOF
13068#define SIZEOF_LONG $ac_cv_sizeof_long
5464f5a1 13069_ACEOF
2ba49b59 13070
2ba49b59 13071
81ecdfbb
RW
13072
13073if test "x${ac_cv_sizeof_void_p}" = "x8"; then
13074 host64=true
252b5132 13075fi
5464f5a1 13076
81ecdfbb
RW
13077if test "x${ac_cv_sizeof_long}" = "x8"; then
13078 BFD_HOST_64BIT_LONG=1
13079 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long"
13080 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long"
13081elif test "x${ac_cv_sizeof_long_long}" = "x8"; then
13082 BFD_HOST_64BIT_LONG_LONG=1
13083 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long"
13084 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long"
13085 if test "x${ac_cv_sizeof_void_p}" = "x8"; then
13086 BFD_HOSTPTR_T="unsigned long long"
13087 fi
252b5132 13088fi
81ecdfbb
RW
13089
13090if test -n "${HOST_64BIT_TYPE}" -a -n "${HOST_U_64BIT_TYPE}"; then
13091 BFD_HOST_64_BIT_DEFINED=1
13092 BFD_HOST_64_BIT="${HOST_64BIT_TYPE}"
13093 BFD_HOST_U_64_BIT="${HOST_U_64BIT_TYPE}"
2ba49b59 13094fi
5464f5a1 13095
5464f5a1 13096
2ba49b59 13097
2ba49b59 13098
5464f5a1 13099
81ecdfbb
RW
13100
13101
13102
13103# Put a plausible default for CC_FOR_BUILD in Makefile.
13104if test -z "$CC_FOR_BUILD"; then
13105 if test "x$cross_compiling" = "xno"; then
13106 CC_FOR_BUILD='$(CC)'
13107 else
13108 CC_FOR_BUILD=gcc
13109 fi
2ba49b59 13110fi
81ecdfbb
RW
13111
13112# Also set EXEEXT_FOR_BUILD.
13113if test "x$cross_compiling" = "xno"; then
13114 EXEEXT_FOR_BUILD='$(EXEEXT)'
13115else
13116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build system executable suffix" >&5
13117$as_echo_n "checking for build system executable suffix... " >&6; }
13118if test "${bfd_cv_build_exeext+set}" = set; then :
13119 $as_echo_n "(cached) " >&6
6be7c12c 13120else
81ecdfbb
RW
13121 rm -f conftest*
13122 echo 'int main () { return 0; }' > conftest.c
13123 bfd_cv_build_exeext=
13124 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
13125 for file in conftest.*; do
13126 case $file in
13127 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
13128 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
13129 esac
13130 done
13131 rm -f conftest*
13132 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
5464f5a1 13133fi
81ecdfbb
RW
13134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_build_exeext" >&5
13135$as_echo "$bfd_cv_build_exeext" >&6; }
13136 EXEEXT_FOR_BUILD=""
13137 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
5464f5a1 13138fi
5464f5a1 13139
5464f5a1 13140
31593e1b 13141for ac_header in alloca.h stddef.h string.h strings.h stdlib.h time.h unistd.h wchar.h wctype.h
81ecdfbb
RW
13142do :
13143 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13144ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13145eval as_val=\$$as_ac_Header
13146 if test "x$as_val" = x""yes; then :
13147 cat >>confdefs.h <<_ACEOF
13148#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
d2df793a 13149_ACEOF
d2df793a 13150
d2df793a 13151fi
d2df793a 13152
81ecdfbb 13153done
d2df793a 13154
9d782e8d 13155for ac_header in fcntl.h sys/file.h sys/time.h sys/stat.h sys/resource.h
81ecdfbb
RW
13156do :
13157 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13158ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13159eval as_val=\$$as_ac_Header
13160 if test "x$as_val" = x""yes; then :
13161 cat >>confdefs.h <<_ACEOF
13162#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
d2df793a 13163_ACEOF
d2df793a 13164
d2df793a 13165fi
d2df793a 13166
81ecdfbb 13167done
d2df793a 13168
81ecdfbb 13169
d2df793a 13170
f3b4f6d0 13171inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
81ecdfbb 13172
f3b4f6d0
PB
13173acx_cv_header_stdint=stddef.h
13174acx_cv_header_stdint_kind="(already complete)"
13175for i in stdint.h $inttype_headers; do
13176 unset ac_cv_type_uintptr_t
13177 unset ac_cv_type_uintmax_t
13178 unset ac_cv_type_int_least32_t
13179 unset ac_cv_type_int_fast32_t
13180 unset ac_cv_type_uint64_t
13181 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
13182 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
13183#include <$i>
13184"
13185if test "x$ac_cv_type_uintmax_t" = x""yes; then :
13186 acx_cv_header_stdint=$i
d2df793a 13187else
f3b4f6d0
PB
13188 continue
13189fi
81ecdfbb 13190
f3b4f6d0
PB
13191 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
13192#include <$i>
13193"
13194if test "x$ac_cv_type_uintptr_t" = x""yes; then :
d2df793a 13195
81ecdfbb 13196else
f3b4f6d0 13197 acx_cv_header_stdint_kind="(mostly complete)"
d2df793a 13198fi
81ecdfbb 13199
f3b4f6d0
PB
13200 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
13201#include <$i>
13202"
13203if test "x$ac_cv_type_int_least32_t" = x""yes; then :
13204
d2df793a 13205else
f3b4f6d0 13206 acx_cv_header_stdint_kind="(mostly complete)"
81ecdfbb 13207fi
81ecdfbb 13208
f3b4f6d0
PB
13209 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
13210#include <$i>
13211"
13212if test "x$ac_cv_type_int_fast32_t" = x""yes; then :
81ecdfbb 13213
f3b4f6d0
PB
13214else
13215 acx_cv_header_stdint_kind="(mostly complete)"
13216fi
81ecdfbb 13217
f3b4f6d0
PB
13218 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
13219#include <$i>
13220"
13221if test "x$ac_cv_type_uint64_t" = x""yes; then :
d2df793a 13222
07c58694 13223else
f3b4f6d0
PB
13224 acx_cv_header_stdint_kind="(lacks uint64_t)"
13225fi
81ecdfbb 13226
f3b4f6d0
PB
13227 break
13228done
13229if test "$acx_cv_header_stdint" = stddef.h; then
13230 acx_cv_header_stdint_kind="(lacks uintmax_t)"
13231 for i in stdint.h $inttype_headers; do
13232 unset ac_cv_type_uintptr_t
13233 unset ac_cv_type_uint32_t
13234 unset ac_cv_type_uint64_t
13235 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
13236 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
13237#include <$i>
13238"
13239if test "x$ac_cv_type_uint32_t" = x""yes; then :
13240 acx_cv_header_stdint=$i
13241else
13242 continue
d2df793a 13243fi
81ecdfbb 13244
f3b4f6d0
PB
13245 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
13246#include <$i>
13247"
13248if test "x$ac_cv_type_uint64_t" = x""yes; then :
81ecdfbb 13249
f3b4f6d0 13250fi
81ecdfbb 13251
f3b4f6d0
PB
13252 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
13253#include <$i>
13254"
13255if test "x$ac_cv_type_uintptr_t" = x""yes; then :
81ecdfbb 13256
f3b4f6d0 13257fi
81ecdfbb 13258
f3b4f6d0
PB
13259 break
13260 done
13261fi
13262if test "$acx_cv_header_stdint" = stddef.h; then
13263 acx_cv_header_stdint_kind="(u_intXX_t style)"
13264 for i in sys/types.h $inttype_headers; do
13265 unset ac_cv_type_u_int32_t
13266 unset ac_cv_type_u_int64_t
13267 $as_echo_n "looking for u_intXX_t types in $i, " >&6
13268 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
13269#include <$i>
13270"
13271if test "x$ac_cv_type_u_int32_t" = x""yes; then :
13272 acx_cv_header_stdint=$i
07c58694 13273else
f3b4f6d0
PB
13274 continue
13275fi
81ecdfbb 13276
f3b4f6d0
PB
13277 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
13278#include <$i>
13279"
13280if test "x$ac_cv_type_u_int64_t" = x""yes; then :
81ecdfbb 13281
f3b4f6d0 13282fi
81ecdfbb 13283
f3b4f6d0
PB
13284 break
13285 done
d2df793a 13286fi
f3b4f6d0
PB
13287if test "$acx_cv_header_stdint" = stddef.h; then
13288 acx_cv_header_stdint_kind="(using manual detection)"
d2df793a 13289fi
81ecdfbb 13290
f3b4f6d0
PB
13291test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
13292test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
13293test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
13294test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
13295test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
81ecdfbb 13296
f3b4f6d0 13297# ----------------- Summarize what we found so far
07c58694 13298
f3b4f6d0
PB
13299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in bfd_stdint.h" >&5
13300$as_echo_n "checking what to include in bfd_stdint.h... " >&6; }
81ecdfbb 13301
f3b4f6d0
PB
13302case `$as_basename -- bfd_stdint.h ||
13303$as_expr X/bfd_stdint.h : '.*/\([^/][^/]*\)/*$' \| \
13304 Xbfd_stdint.h : 'X\(//\)$' \| \
13305 Xbfd_stdint.h : 'X\(/\)' \| . 2>/dev/null ||
13306$as_echo X/bfd_stdint.h |
13307 sed '/^.*\/\([^/][^/]*\)\/*$/{
13308 s//\1/
13309 q
13310 }
13311 /^X\/\(\/\/\)$/{
13312 s//\1/
13313 q
13314 }
13315 /^X\/\(\/\).*/{
13316 s//\1/
13317 q
13318 }
13319 s/.*/./; q'` in
13320 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
13321$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
13322 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
13323$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
13324 *) ;;
13325esac
81ecdfbb 13326
f3b4f6d0
PB
13327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
13328$as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
5464f5a1 13329
f3b4f6d0 13330# ----------------- done included file, check C basic types --------
2ba49b59 13331
f3b4f6d0
PB
13332# Lacking an uintptr_t? Test size of void *
13333case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
13334 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
13335# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13336# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13337# This bug is HP SR number 8606223364.
13338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
13339$as_echo_n "checking size of void *... " >&6; }
13340if test "${ac_cv_sizeof_void_p+set}" = set; then :
13341 $as_echo_n "(cached) " >&6
13342else
13343 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
2ba49b59 13344
f3b4f6d0
PB
13345else
13346 if test "$ac_cv_type_void_p" = yes; then
13347 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13348$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13349{ as_fn_set_status 77
13350as_fn_error "cannot compute sizeof (void *)
13351See \`config.log' for more details." "$LINENO" 5; }; }
13352 else
13353 ac_cv_sizeof_void_p=0
13354 fi
13355fi
81ecdfbb 13356
f3b4f6d0
PB
13357fi
13358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
13359$as_echo "$ac_cv_sizeof_void_p" >&6; }
81ecdfbb 13360
07c58694
PB
13361
13362
13363cat >>confdefs.h <<_ACEOF
f3b4f6d0 13364#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
07c58694 13365_ACEOF
07c58694 13366
f3b4f6d0
PB
13367 ;;
13368esac
07c58694 13369
f3b4f6d0
PB
13370# Lacking an uint64_t? Test size of long
13371case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
13372 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
13373# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13374# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13375# This bug is HP SR number 8606223364.
13376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
13377$as_echo_n "checking size of long... " >&6; }
13378if test "${ac_cv_sizeof_long+set}" = set; then :
81ecdfbb 13379 $as_echo_n "(cached) " >&6
5464f5a1 13380else
f3b4f6d0 13381 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
07c58694 13382
2ba49b59 13383else
f3b4f6d0
PB
13384 if test "$ac_cv_type_long" = yes; then
13385 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13386$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13387{ as_fn_set_status 77
13388as_fn_error "cannot compute sizeof (long)
13389See \`config.log' for more details." "$LINENO" 5; }; }
13390 else
13391 ac_cv_sizeof_long=0
13392 fi
81ecdfbb 13393fi
2ba49b59 13394
f3b4f6d0
PB
13395fi
13396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
13397$as_echo "$ac_cv_sizeof_long" >&6; }
81ecdfbb 13398
5464f5a1 13399
81ecdfbb 13400
f3b4f6d0
PB
13401cat >>confdefs.h <<_ACEOF
13402#define SIZEOF_LONG $ac_cv_sizeof_long
13403_ACEOF
07c58694 13404
f3b4f6d0
PB
13405 ;;
13406esac
2ba49b59 13407
f3b4f6d0
PB
13408if test $acx_cv_header_stdint = stddef.h; then
13409 # Lacking a good header? Test size of everything and deduce all types.
13410 # The cast to long int works around a bug in the HP C Compiler
13411# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13412# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13413# This bug is HP SR number 8606223364.
13414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
13415$as_echo_n "checking size of int... " >&6; }
13416if test "${ac_cv_sizeof_int+set}" = set; then :
13417 $as_echo_n "(cached) " >&6
81ecdfbb 13418else
f3b4f6d0 13419 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
81ecdfbb 13420
f3b4f6d0
PB
13421else
13422 if test "$ac_cv_type_int" = yes; then
13423 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13424$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13425{ as_fn_set_status 77
13426as_fn_error "cannot compute sizeof (int)
13427See \`config.log' for more details." "$LINENO" 5; }; }
13428 else
13429 ac_cv_sizeof_int=0
13430 fi
2ba49b59 13431fi
81ecdfbb 13432
f3b4f6d0
PB
13433fi
13434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
13435$as_echo "$ac_cv_sizeof_int" >&6; }
81ecdfbb
RW
13436
13437
07c58694
PB
13438
13439cat >>confdefs.h <<_ACEOF
f3b4f6d0 13440#define SIZEOF_INT $ac_cv_sizeof_int
07c58694 13441_ACEOF
81ecdfbb 13442
07c58694 13443
f3b4f6d0
PB
13444 # The cast to long int works around a bug in the HP C Compiler
13445# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13446# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13447# This bug is HP SR number 8606223364.
13448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
13449$as_echo_n "checking size of short... " >&6; }
13450if test "${ac_cv_sizeof_short+set}" = set; then :
13451 $as_echo_n "(cached) " >&6
13452else
13453 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
07c58694 13454
f3b4f6d0
PB
13455else
13456 if test "$ac_cv_type_short" = yes; then
13457 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13458$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13459{ as_fn_set_status 77
13460as_fn_error "cannot compute sizeof (short)
13461See \`config.log' for more details." "$LINENO" 5; }; }
13462 else
13463 ac_cv_sizeof_short=0
13464 fi
13465fi
07c58694 13466
f3b4f6d0
PB
13467fi
13468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
13469$as_echo "$ac_cv_sizeof_short" >&6; }
07c58694
PB
13470
13471
13472
f3b4f6d0
PB
13473cat >>confdefs.h <<_ACEOF
13474#define SIZEOF_SHORT $ac_cv_sizeof_short
13475_ACEOF
07c58694
PB
13476
13477
f3b4f6d0
PB
13478 # The cast to long int works around a bug in the HP C Compiler
13479# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13480# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13481# This bug is HP SR number 8606223364.
13482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
13483$as_echo_n "checking size of char... " >&6; }
13484if test "${ac_cv_sizeof_char+set}" = set; then :
13485 $as_echo_n "(cached) " >&6
13486else
13487 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
07c58694 13488
f3b4f6d0
PB
13489else
13490 if test "$ac_cv_type_char" = yes; then
13491 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13492$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13493{ as_fn_set_status 77
13494as_fn_error "cannot compute sizeof (char)
13495See \`config.log' for more details." "$LINENO" 5; }; }
13496 else
13497 ac_cv_sizeof_char=0
13498 fi
13499fi
07c58694 13500
f3b4f6d0
PB
13501fi
13502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
13503$as_echo "$ac_cv_sizeof_char" >&6; }
07c58694
PB
13504
13505
07c58694 13506
2ba49b59 13507cat >>confdefs.h <<_ACEOF
f3b4f6d0 13508#define SIZEOF_CHAR $ac_cv_sizeof_char
2ba49b59
KC
13509_ACEOF
13510
13511
2ba49b59 13512
f3b4f6d0
PB
13513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
13514$as_echo_n "checking for type equivalent to int8_t... " >&6; }
13515 case "$ac_cv_sizeof_char" in
13516 1) acx_cv_type_int8_t=char ;;
58bbed62 13517 *) as_fn_error "no 8-bit type, please report a bug" "$LINENO" 5
f3b4f6d0
PB
13518 esac
13519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
13520$as_echo "$acx_cv_type_int8_t" >&6; }
13521
13522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
13523$as_echo_n "checking for type equivalent to int16_t... " >&6; }
13524 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
13525 2:*) acx_cv_type_int16_t=int ;;
13526 *:2) acx_cv_type_int16_t=short ;;
58bbed62 13527 *) as_fn_error "no 16-bit type, please report a bug" "$LINENO" 5
f3b4f6d0
PB
13528 esac
13529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
13530$as_echo "$acx_cv_type_int16_t" >&6; }
13531
13532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
13533$as_echo_n "checking for type equivalent to int32_t... " >&6; }
13534 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
13535 4:*) acx_cv_type_int32_t=int ;;
13536 *:4) acx_cv_type_int32_t=long ;;
58bbed62 13537 *) as_fn_error "no 32-bit type, please report a bug" "$LINENO" 5
f3b4f6d0
PB
13538 esac
13539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
13540$as_echo "$acx_cv_type_int32_t" >&6; }
81ecdfbb 13541fi
2ba49b59 13542
f3b4f6d0 13543# These tests are here to make the output prettier
07c58694 13544
f3b4f6d0
PB
13545if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
13546 case "$ac_cv_sizeof_long" in
13547 8) acx_cv_type_int64_t=long ;;
13548 esac
13549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
13550$as_echo_n "checking for type equivalent to int64_t... " >&6; }
13551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
13552$as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
13553fi
13554
13555# Now we can use the above types
13556
13557if test "$ac_cv_type_uintptr_t" != yes; then
13558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
13559$as_echo_n "checking for type equivalent to intptr_t... " >&6; }
13560 case $ac_cv_sizeof_void_p in
13561 2) acx_cv_type_intptr_t=int16_t ;;
13562 4) acx_cv_type_intptr_t=int32_t ;;
13563 8) acx_cv_type_intptr_t=int64_t ;;
58bbed62 13564 *) as_fn_error "no equivalent for intptr_t, please report a bug" "$LINENO" 5
f3b4f6d0
PB
13565 esac
13566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
13567$as_echo "$acx_cv_type_intptr_t" >&6; }
13568fi
07c58694 13569
f3b4f6d0 13570# ----------------- done all checks, emit header -------------
81ecdfbb 13571ac_config_commands="$ac_config_commands bfd_stdint.h"
2ba49b59
KC
13572
13573
d2df793a 13574
81ecdfbb
RW
13575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
13576$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
13577if test "${ac_cv_header_time+set}" = set; then :
13578 $as_echo_n "(cached) " >&6
2ba49b59 13579else
81ecdfbb
RW
13580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13581/* end confdefs.h. */
13582#include <sys/types.h>
13583#include <sys/time.h>
13584#include <time.h>
13585
13586int
13587main ()
13588{
13589if ((struct tm *) 0)
13590return 0;
13591 ;
13592 return 0;
13593}
13594_ACEOF
13595if ac_fn_c_try_compile "$LINENO"; then :
13596 ac_cv_header_time=yes
2ba49b59 13597else
81ecdfbb 13598 ac_cv_header_time=no
2ba49b59 13599fi
81ecdfbb 13600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2ba49b59 13601fi
81ecdfbb
RW
13602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
13603$as_echo "$ac_cv_header_time" >&6; }
13604if test $ac_cv_header_time = yes; then
2ba49b59 13605
81ecdfbb 13606$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
2ba49b59 13607
2ba49b59 13608fi
81ecdfbb
RW
13609
13610ac_header_dirent=no
13611for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13612 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
13614$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
13615if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
13616 $as_echo_n "(cached) " >&6
2ba49b59 13617else
81ecdfbb 13618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2ba49b59 13619/* end confdefs.h. */
81ecdfbb
RW
13620#include <sys/types.h>
13621#include <$ac_hdr>
13622
13623int
13624main ()
13625{
13626if ((DIR *) 0)
13627return 0;
13628 ;
13629 return 0;
13630}
2ba49b59 13631_ACEOF
81ecdfbb
RW
13632if ac_fn_c_try_compile "$LINENO"; then :
13633 eval "$as_ac_Header=yes"
2ba49b59 13634else
81ecdfbb
RW
13635 eval "$as_ac_Header=no"
13636fi
13637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13638fi
13639eval ac_res=\$$as_ac_Header
13640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13641$as_echo "$ac_res" >&6; }
13642eval as_val=\$$as_ac_Header
13643 if test "x$as_val" = x""yes; then :
13644 cat >>confdefs.h <<_ACEOF
13645#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13646_ACEOF
2ba49b59 13647
81ecdfbb 13648ac_header_dirent=$ac_hdr; break
2ba49b59 13649fi
2ba49b59 13650
81ecdfbb
RW
13651done
13652# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13653if test $ac_header_dirent = dirent.h; then
13654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
13655$as_echo_n "checking for library containing opendir... " >&6; }
13656if test "${ac_cv_search_opendir+set}" = set; then :
13657 $as_echo_n "(cached) " >&6
13658else
13659 ac_func_search_save_LIBS=$LIBS
13660cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2ba49b59 13661/* end confdefs.h. */
81ecdfbb
RW
13662
13663/* Override any GCC internal prototype to avoid an error.
13664 Use char because int might match the return type of a GCC
13665 builtin and then its argument prototype would still apply. */
13666#ifdef __cplusplus
13667extern "C"
13668#endif
13669char opendir ();
13670int
13671main ()
13672{
13673return opendir ();
13674 ;
13675 return 0;
13676}
2ba49b59 13677_ACEOF
81ecdfbb
RW
13678for ac_lib in '' dir; do
13679 if test -z "$ac_lib"; then
13680 ac_res="none required"
2ba49b59 13681 else
81ecdfbb
RW
13682 ac_res=-l$ac_lib
13683 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2ba49b59 13684 fi
81ecdfbb
RW
13685 if ac_fn_c_try_link "$LINENO"; then :
13686 ac_cv_search_opendir=$ac_res
2ba49b59 13687fi
81ecdfbb
RW
13688rm -f core conftest.err conftest.$ac_objext \
13689 conftest$ac_exeext
13690 if test "${ac_cv_search_opendir+set}" = set; then :
13691 break
2ba49b59 13692fi
81ecdfbb
RW
13693done
13694if test "${ac_cv_search_opendir+set}" = set; then :
2ba49b59 13695
2ba49b59 13696else
81ecdfbb 13697 ac_cv_search_opendir=no
2ba49b59 13698fi
81ecdfbb
RW
13699rm conftest.$ac_ext
13700LIBS=$ac_func_search_save_LIBS
2ba49b59 13701fi
81ecdfbb
RW
13702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
13703$as_echo "$ac_cv_search_opendir" >&6; }
13704ac_res=$ac_cv_search_opendir
13705if test "$ac_res" != no; then :
13706 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
2ba49b59
KC
13707
13708fi
13709
81ecdfbb
RW
13710else
13711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
13712$as_echo_n "checking for library containing opendir... " >&6; }
13713if test "${ac_cv_search_opendir+set}" = set; then :
13714 $as_echo_n "(cached) " >&6
13715else
13716 ac_func_search_save_LIBS=$LIBS
13717cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13718/* end confdefs.h. */
2ba49b59 13719
81ecdfbb
RW
13720/* Override any GCC internal prototype to avoid an error.
13721 Use char because int might match the return type of a GCC
13722 builtin and then its argument prototype would still apply. */
13723#ifdef __cplusplus
13724extern "C"
13725#endif
13726char opendir ();
13727int
13728main ()
13729{
13730return opendir ();
13731 ;
13732 return 0;
13733}
13734_ACEOF
13735for ac_lib in '' x; do
13736 if test -z "$ac_lib"; then
13737 ac_res="none required"
13738 else
13739 ac_res=-l$ac_lib
13740 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13741 fi
13742 if ac_fn_c_try_link "$LINENO"; then :
13743 ac_cv_search_opendir=$ac_res
13744fi
13745rm -f core conftest.err conftest.$ac_objext \
13746 conftest$ac_exeext
13747 if test "${ac_cv_search_opendir+set}" = set; then :
13748 break
13749fi
13750done
13751if test "${ac_cv_search_opendir+set}" = set; then :
2ba49b59 13752
81ecdfbb
RW
13753else
13754 ac_cv_search_opendir=no
13755fi
13756rm conftest.$ac_ext
13757LIBS=$ac_func_search_save_LIBS
13758fi
13759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
13760$as_echo "$ac_cv_search_opendir" >&6; }
13761ac_res=$ac_cv_search_opendir
13762if test "$ac_res" != no; then :
13763 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
2ba49b59 13764
81ecdfbb 13765fi
efde2f2c 13766
2ba49b59 13767fi
81ecdfbb 13768
17d5dae2 13769
81ecdfbb
RW
13770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
13771$as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
13772if test "${gcc_cv_header_string+set}" = set; then :
13773 $as_echo_n "(cached) " >&6
2ba49b59 13774else
81ecdfbb 13775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2ba49b59 13776/* end confdefs.h. */
81ecdfbb
RW
13777#include <string.h>
13778#include <strings.h>
13779int
13780main ()
13781{
13782
13783 ;
13784 return 0;
13785}
2ba49b59 13786_ACEOF
81ecdfbb
RW
13787if ac_fn_c_try_compile "$LINENO"; then :
13788 gcc_cv_header_string=yes
2ba49b59 13789else
81ecdfbb
RW
13790 gcc_cv_header_string=no
13791fi
13792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13793fi
13794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
13795$as_echo "$gcc_cv_header_string" >&6; }
13796if test $gcc_cv_header_string = yes; then
13797
13798$as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
2ba49b59 13799
2ba49b59 13800fi
2ba49b59 13801
81ecdfbb
RW
13802for ac_func in fcntl getpagesize setitimer sysconf fdopen getuid getgid fileno
13803do :
13804 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13805ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13806eval as_val=\$$as_ac_var
13807 if test "x$as_val" = x""yes; then :
13808 cat >>confdefs.h <<_ACEOF
13809#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
2ba49b59 13810_ACEOF
81ecdfbb
RW
13811
13812fi
13813done
13814
9d782e8d 13815for ac_func in strtoull getrlimit
81ecdfbb 13816do :
9d782e8d
MW
13817 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13818ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13819eval as_val=\$$as_ac_var
13820 if test "x$as_val" = x""yes; then :
81ecdfbb 13821 cat >>confdefs.h <<_ACEOF
9d782e8d 13822#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
2ba49b59 13823_ACEOF
81ecdfbb
RW
13824
13825fi
13826done
13827
13828
13829ac_fn_c_check_decl "$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default"
13830if test "x$ac_cv_have_decl_basename" = x""yes; then :
13831 ac_have_decl=1
2ba49b59 13832else
81ecdfbb 13833 ac_have_decl=0
2ba49b59 13834fi
81ecdfbb
RW
13835
13836cat >>confdefs.h <<_ACEOF
13837#define HAVE_DECL_BASENAME $ac_have_decl
13838_ACEOF
13839
13840ac_fn_c_check_decl "$LINENO" "ftello" "ac_cv_have_decl_ftello" "$ac_includes_default"
13841if test "x$ac_cv_have_decl_ftello" = x""yes; then :
13842 ac_have_decl=1
2ba49b59 13843else
81ecdfbb
RW
13844 ac_have_decl=0
13845fi
2ba49b59 13846
81ecdfbb
RW
13847cat >>confdefs.h <<_ACEOF
13848#define HAVE_DECL_FTELLO $ac_have_decl
13849_ACEOF
13850
13851ac_fn_c_check_decl "$LINENO" "ftello64" "ac_cv_have_decl_ftello64" "$ac_includes_default"
13852if test "x$ac_cv_have_decl_ftello64" = x""yes; then :
13853 ac_have_decl=1
13854else
13855 ac_have_decl=0
2ba49b59 13856fi
2ba49b59 13857
81ecdfbb
RW
13858cat >>confdefs.h <<_ACEOF
13859#define HAVE_DECL_FTELLO64 $ac_have_decl
13860_ACEOF
13861
13862ac_fn_c_check_decl "$LINENO" "fseeko" "ac_cv_have_decl_fseeko" "$ac_includes_default"
13863if test "x$ac_cv_have_decl_fseeko" = x""yes; then :
13864 ac_have_decl=1
2ba49b59 13865else
81ecdfbb 13866 ac_have_decl=0
2ba49b59 13867fi
2ba49b59 13868
81ecdfbb
RW
13869cat >>confdefs.h <<_ACEOF
13870#define HAVE_DECL_FSEEKO $ac_have_decl
13871_ACEOF
13872
13873ac_fn_c_check_decl "$LINENO" "fseeko64" "ac_cv_have_decl_fseeko64" "$ac_includes_default"
13874if test "x$ac_cv_have_decl_fseeko64" = x""yes; then :
13875 ac_have_decl=1
13876else
13877 ac_have_decl=0
2ba49b59 13878fi
81ecdfbb
RW
13879
13880cat >>confdefs.h <<_ACEOF
13881#define HAVE_DECL_FSEEKO64 $ac_have_decl
2ba49b59
KC
13882_ACEOF
13883
81ecdfbb
RW
13884
13885
13886case "${host}" in
13887*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
13888
13889$as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
13890 ;;
13891esac
13892
13893ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
13894if test "x$ac_cv_have_decl_ffs" = x""yes; then :
13895 ac_have_decl=1
13896else
13897 ac_have_decl=0
2ba49b59
KC
13898fi
13899
81ecdfbb
RW
13900cat >>confdefs.h <<_ACEOF
13901#define HAVE_DECL_FFS $ac_have_decl
13902_ACEOF
2ba49b59 13903
81ecdfbb
RW
13904ac_fn_c_check_decl "$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
13905if test "x$ac_cv_have_decl_free" = x""yes; then :
13906 ac_have_decl=1
13907else
13908 ac_have_decl=0
13909fi
d5efd9fc 13910
81ecdfbb
RW
13911cat >>confdefs.h <<_ACEOF
13912#define HAVE_DECL_FREE $ac_have_decl
13913_ACEOF
d5efd9fc 13914
81ecdfbb
RW
13915ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
13916if test "x$ac_cv_have_decl_getenv" = x""yes; then :
13917 ac_have_decl=1
13918else
13919 ac_have_decl=0
13920fi
d5efd9fc 13921
81ecdfbb
RW
13922cat >>confdefs.h <<_ACEOF
13923#define HAVE_DECL_GETENV $ac_have_decl
d5efd9fc 13924_ACEOF
d5efd9fc 13925
81ecdfbb
RW
13926ac_fn_c_check_decl "$LINENO" "malloc" "ac_cv_have_decl_malloc" "$ac_includes_default"
13927if test "x$ac_cv_have_decl_malloc" = x""yes; then :
13928 ac_have_decl=1
13929else
13930 ac_have_decl=0
13931fi
13932
13933cat >>confdefs.h <<_ACEOF
13934#define HAVE_DECL_MALLOC $ac_have_decl
d5efd9fc 13935_ACEOF
81ecdfbb
RW
13936
13937ac_fn_c_check_decl "$LINENO" "realloc" "ac_cv_have_decl_realloc" "$ac_includes_default"
13938if test "x$ac_cv_have_decl_realloc" = x""yes; then :
13939 ac_have_decl=1
d5efd9fc 13940else
81ecdfbb
RW
13941 ac_have_decl=0
13942fi
13943
13944cat >>confdefs.h <<_ACEOF
13945#define HAVE_DECL_REALLOC $ac_have_decl
13946_ACEOF
d5efd9fc 13947
81ecdfbb
RW
13948ac_fn_c_check_decl "$LINENO" "stpcpy" "ac_cv_have_decl_stpcpy" "$ac_includes_default"
13949if test "x$ac_cv_have_decl_stpcpy" = x""yes; then :
13950 ac_have_decl=1
13951else
13952 ac_have_decl=0
d5efd9fc 13953fi
81ecdfbb
RW
13954
13955cat >>confdefs.h <<_ACEOF
13956#define HAVE_DECL_STPCPY $ac_have_decl
13957_ACEOF
13958
13959ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
13960if test "x$ac_cv_have_decl_strstr" = x""yes; then :
13961 ac_have_decl=1
13962else
13963 ac_have_decl=0
d5efd9fc 13964fi
81ecdfbb
RW
13965
13966cat >>confdefs.h <<_ACEOF
13967#define HAVE_DECL_STRSTR $ac_have_decl
13968_ACEOF
13969
d6f1bafa
IB
13970ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
13971if test "x$ac_cv_have_decl_asprintf" = x""yes; then :
13972 ac_have_decl=1
13973else
13974 ac_have_decl=0
13975fi
13976
13977cat >>confdefs.h <<_ACEOF
13978#define HAVE_DECL_ASPRINTF $ac_have_decl
13979_ACEOF
13980
13981ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
13982if test "x$ac_cv_have_decl_vasprintf" = x""yes; then :
13983 ac_have_decl=1
13984else
13985 ac_have_decl=0
13986fi
13987
13988cat >>confdefs.h <<_ACEOF
13989#define HAVE_DECL_VASPRINTF $ac_have_decl
13990_ACEOF
13991
81ecdfbb
RW
13992ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
13993if test "x$ac_cv_have_decl_snprintf" = x""yes; then :
13994 ac_have_decl=1
d5efd9fc 13995else
81ecdfbb 13996 ac_have_decl=0
d5efd9fc
AM
13997fi
13998
81ecdfbb
RW
13999cat >>confdefs.h <<_ACEOF
14000#define HAVE_DECL_SNPRINTF $ac_have_decl
14001_ACEOF
14002
14003ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
14004if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
14005 ac_have_decl=1
d5efd9fc 14006else
81ecdfbb
RW
14007 ac_have_decl=0
14008fi
14009
14010cat >>confdefs.h <<_ACEOF
14011#define HAVE_DECL_VSNPRINTF $ac_have_decl
d5efd9fc 14012_ACEOF
81ecdfbb 14013
5a026fc9
NC
14014ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
14015if test "x$ac_cv_have_decl_strnlen" = x""yes; then :
14016 ac_have_decl=1
14017else
14018 ac_have_decl=0
14019fi
14020
14021cat >>confdefs.h <<_ACEOF
14022#define HAVE_DECL_STRNLEN $ac_have_decl
14023_ACEOF
14024
81ecdfbb 14025
9ae46699
L
14026# Link in zlib if we can. This allows us to read compressed debug sections.
14027# This is used only by compress.c.
14028
14029 # Use the system's zlib library.
39f3de7c
L
14030 zlibdir="-L\$(top_builddir)/../zlib"
14031 zlibinc="-I\$(top_srcdir)/../zlib"
bf993e3c 14032
243340ad
L
14033# Check whether --with-system-zlib was given.
14034if test "${with_system_zlib+set}" = set; then :
afa59b79
L
14035 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
14036 zlibdir=
14037 zlibinc=
14038 fi
bf993e3c 14039
bf993e3c
JB
14040fi
14041
14042
bf993e3c 14043
d5efd9fc 14044
9ae46699 14045
629dabe3
AM
14046save_CFLAGS="$CFLAGS"
14047CFLAGS="$CFLAGS -Werror"
8722de9c
AM
14048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler support for hidden visibility" >&5
14049$as_echo_n "checking compiler support for hidden visibility... " >&6; }
14050if test "${bfd_cv_hidden+set}" = set; then :
14051 $as_echo_n "(cached) " >&6
14052else
14053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14054/* end confdefs.h. */
14055
14056const char hw[] __attribute__ ((__visibility__ ("hidden"))) = "Hello, World\n";
14057extern void print (const char *) __attribute__ ((__visibility__ ("hidden")));
14058int
14059main ()
14060{
14061print (hw);
14062 ;
14063 return 0;
14064}
14065_ACEOF
14066if ac_fn_c_try_compile "$LINENO"; then :
14067 bfd_cv_hidden=yes
14068else
14069 bfd_cv_hidden=no
14070fi
14071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14072fi
14073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_hidden" >&5
14074$as_echo "$bfd_cv_hidden" >&6; }
629dabe3 14075CFLAGS="$save_CFLAGS"
8722de9c
AM
14076if test $bfd_cv_hidden = yes; then
14077
14078$as_echo "#define HAVE_HIDDEN 1" >>confdefs.h
14079
14080fi
14081
c603b11b
AM
14082# Check if linker supports --as-needed and --no-as-needed options
14083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
14084$as_echo_n "checking linker --as-needed support... " >&6; }
14085if test "${bfd_cv_ld_as_needed+set}" = set; then :
14086 $as_echo_n "(cached) " >&6
14087else
14088 bfd_cv_ld_as_needed=no
14089 if $LD --help 2>/dev/null | grep as-needed > /dev/null; then
14090 bfd_cv_ld_as_needed=yes
14091 fi
d5efd9fc 14092
c603b11b
AM
14093fi
14094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_ld_as_needed" >&5
14095$as_echo "$bfd_cv_ld_as_needed" >&6; }
d5efd9fc 14096
c603b11b
AM
14097LIBM=
14098case $host in
14099*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
14100 # These system don't have libm, or don't need it
14101 ;;
14102*-ncr-sysv4.3*)
14103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
14104$as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
14105if test "${ac_cv_lib_mw__mwvalidcheckl+set}" = set; then :
14106 $as_echo_n "(cached) " >&6
14107else
14108 ac_check_lib_save_LIBS=$LIBS
14109LIBS="-lmw $LIBS"
14110cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d5efd9fc 14111/* end confdefs.h. */
c603b11b
AM
14112
14113/* Override any GCC internal prototype to avoid an error.
14114 Use char because int might match the return type of a GCC
14115 builtin and then its argument prototype would still apply. */
14116#ifdef __cplusplus
14117extern "C"
14118#endif
14119char _mwvalidcheckl ();
d5efd9fc
AM
14120int
14121main ()
14122{
c603b11b 14123return _mwvalidcheckl ();
d5efd9fc
AM
14124 ;
14125 return 0;
14126}
14127_ACEOF
c603b11b
AM
14128if ac_fn_c_try_link "$LINENO"; then :
14129 ac_cv_lib_mw__mwvalidcheckl=yes
d5efd9fc 14130else
c603b11b 14131 ac_cv_lib_mw__mwvalidcheckl=no
d5efd9fc 14132fi
c603b11b
AM
14133rm -f core conftest.err conftest.$ac_objext \
14134 conftest$ac_exeext conftest.$ac_ext
14135LIBS=$ac_check_lib_save_LIBS
d5efd9fc 14136fi
c603b11b
AM
14137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
14138$as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
14139if test "x$ac_cv_lib_mw__mwvalidcheckl" = x""yes; then :
14140 LIBM="-lmw"
d5efd9fc
AM
14141fi
14142
c603b11b
AM
14143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
14144$as_echo_n "checking for cos in -lm... " >&6; }
14145if test "${ac_cv_lib_m_cos+set}" = set; then :
81ecdfbb 14146 $as_echo_n "(cached) " >&6
d5efd9fc 14147else
c603b11b
AM
14148 ac_check_lib_save_LIBS=$LIBS
14149LIBS="-lm $LIBS"
14150cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d5efd9fc 14151/* end confdefs.h. */
81ecdfbb 14152
c603b11b
AM
14153/* Override any GCC internal prototype to avoid an error.
14154 Use char because int might match the return type of a GCC
14155 builtin and then its argument prototype would still apply. */
14156#ifdef __cplusplus
14157extern "C"
14158#endif
14159char cos ();
d5efd9fc
AM
14160int
14161main ()
14162{
c603b11b 14163return cos ();
d5efd9fc
AM
14164 ;
14165 return 0;
14166}
14167_ACEOF
c603b11b
AM
14168if ac_fn_c_try_link "$LINENO"; then :
14169 ac_cv_lib_m_cos=yes
d5efd9fc 14170else
c603b11b 14171 ac_cv_lib_m_cos=no
d5efd9fc 14172fi
c603b11b
AM
14173rm -f core conftest.err conftest.$ac_objext \
14174 conftest$ac_exeext conftest.$ac_ext
14175LIBS=$ac_check_lib_save_LIBS
14176fi
14177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
14178$as_echo "$ac_cv_lib_m_cos" >&6; }
14179if test "x$ac_cv_lib_m_cos" = x""yes; then :
14180 LIBM="$LIBM -lm"
d5efd9fc 14181fi
d5efd9fc 14182
c603b11b
AM
14183 ;;
14184*)
14185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
14186$as_echo_n "checking for cos in -lm... " >&6; }
14187if test "${ac_cv_lib_m_cos+set}" = set; then :
81ecdfbb 14188 $as_echo_n "(cached) " >&6
d5efd9fc 14189else
c603b11b
AM
14190 ac_check_lib_save_LIBS=$LIBS
14191LIBS="-lm $LIBS"
14192cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d5efd9fc 14193/* end confdefs.h. */
81ecdfbb 14194
c603b11b
AM
14195/* Override any GCC internal prototype to avoid an error.
14196 Use char because int might match the return type of a GCC
14197 builtin and then its argument prototype would still apply. */
14198#ifdef __cplusplus
14199extern "C"
14200#endif
14201char cos ();
d5efd9fc
AM
14202int
14203main ()
14204{
c603b11b 14205return cos ();
d5efd9fc
AM
14206 ;
14207 return 0;
14208}
14209_ACEOF
c603b11b
AM
14210if ac_fn_c_try_link "$LINENO"; then :
14211 ac_cv_lib_m_cos=yes
81ecdfbb 14212else
c603b11b 14213 ac_cv_lib_m_cos=no
81ecdfbb 14214fi
c603b11b
AM
14215rm -f core conftest.err conftest.$ac_objext \
14216 conftest$ac_exeext conftest.$ac_ext
14217LIBS=$ac_check_lib_save_LIBS
14218fi
14219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
14220$as_echo "$ac_cv_lib_m_cos" >&6; }
14221if test "x$ac_cv_lib_m_cos" = x""yes; then :
14222 LIBM="-lm"
81ecdfbb
RW
14223fi
14224
c603b11b
AM
14225 ;;
14226esac
81ecdfbb 14227
81ecdfbb 14228
81ecdfbb 14229
c603b11b
AM
14230# When building a shared libbfd, link against the pic version of libiberty
14231# so that apps that use libbfd won't need libiberty just to satisfy any
14232# libbfd references.
14233# We can't do that if a pic libiberty is unavailable since including non-pic
14234# code would insert text relocations into libbfd.
14235SHARED_LIBADD=
14236SHARED_LDFLAGS=
14237if test "$enable_shared" = "yes"; then
14238 x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'`
14239 if test -n "$x"; then
14240 SHARED_LIBADD="-L`pwd`/../libiberty/pic -liberty"
14241 fi
81ecdfbb 14242
c603b11b
AM
14243# More hacks to build DLLs on Windows.
14244 case "${host}" in
14245 *-*-cygwin*)
14246 SHARED_LDFLAGS="-no-undefined"
14247 SHARED_LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
14248 ;;
d5efd9fc 14249
c603b11b
AM
14250 # Hack to build or1k-src on OSX
14251 or1k*-*-darwin*)
14252 SHARED_LIBADD="-L`pwd`/../libiberty/pic -L`pwd`/../intl -liberty -lintl"
14253 ;;
14254 esac
14255
14256 if test -n "$SHARED_LIBADD"; then
14257 if test -n "$LIBM"; then
14258 if test x"$bfd_cv_ld_as_needed" = xyes; then
14259 # Link against libm only when needed. Put -lc, -lm inside -Wl
14260 # to stop libtool reordering these options.
14261 SHARED_LIBADD="$SHARED_LIBADD -Wl,-lc,--as-needed,`echo $LIBM | sed 's/ /,/g'`,--no-as-needed"
14262 else
14263 SHARED_LIBADD="$SHARED_LIBADD $LIBM"
14264 fi
14265 fi
14266 fi
81ecdfbb 14267fi
d5efd9fc 14268
81ecdfbb 14269
81ecdfbb 14270
c603b11b 14271# target stuff:
81ecdfbb 14272
c603b11b
AM
14273# Canonicalize the secondary target names.
14274if test -n "$enable_targets" ; then
14275 for targ in `echo $enable_targets | sed 's/,/ /g'`
14276 do
14277 result=`$ac_config_sub $targ 2>/dev/null`
14278 if test -n "$result" ; then
14279 canon_targets="$canon_targets $result"
14280 else
14281 # Allow targets that config.sub doesn't recognize, like "all".
14282 canon_targets="$canon_targets $targ"
14283 fi
14284 done
d5efd9fc 14285fi
d5efd9fc 14286
c603b11b
AM
14287all_targets=false
14288defvec=
14289selvecs=
14290assocvecs=
14291selarchs=
14292TDEFINES=
14293for targ in $target $canon_targets
14294do
14295 if test "x$targ" = "xall"; then
14296 all_targets=true
14297 assocvecs="$assocvecs $targ_defvec $targ_selvecs"
14298 else
14299 . $srcdir/config.bfd
14300 if test "x$targ" = "x$target"; then
14301 defvec=$targ_defvec
14302 fi
14303 selvecs="$selvecs $targ_defvec $targ_selvecs"
14304 selarchs="$selarchs $targ_archs"
14305 TDEFINES="$TDEFINES $targ_cflags"
14306 fi
14307done
d5efd9fc 14308
81ecdfbb 14309
c603b11b
AM
14310# This processing still needs to be done if we're to decide properly whether
14311# 64-bit support needs to be compiled in. Currently, it will be included if
14312# the default or any other explicitly requested target requires it; it
14313# will not be included on a 32-bit host if no 64-bit target is requested, and
14314# no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
14315# used.
81ecdfbb 14316
c603b11b
AM
14317# uniq the default and selected vectors in all the configured targets.
14318f=""
14319for i in $selvecs ; do
14320 case " $f " in
14321 *" $i "*) ;;
14322 *) f="$f $i" ;;
14323 esac
14324done
14325selvecs="$f"
335e41d4 14326
335e41d4 14327
c603b11b
AM
14328# uniq the associated vectors in all the configured targets.
14329f=""
14330for i in $assocvecs ; do
14331 case " $f " in
14332 *" $i "*) ;;
14333 *) f="$f $i" ;;
14334 esac
14335done
14336assocvecs="$f"
335e41d4 14337
335e41d4 14338
c603b11b
AM
14339# uniq the architectures in all the configured targets.
14340f=""
14341for i in $selarchs ; do
14342 case " $f " in
14343 *" $i "*) ;;
14344 *) f="$f $i" ;;
14345 esac
14346done
14347selarchs="$f"
335e41d4 14348
c603b11b
AM
14349# Target backend .o files.
14350tb=
335e41d4 14351
46bed679 14352elf="elf.lo elflink.lo elf-attrs.lo elf-strtab.lo elf-properties.lo
c603b11b
AM
14353 elf-eh-frame.lo dwarf1.lo dwarf2.lo"
14354coffgen="coffgen.lo dwarf2.lo"
14355coff="cofflink.lo $coffgen"
14356ecoff="ecofflink.lo $coffgen"
14357xcoff="xcofflink.lo $coffgen"
2ba49b59 14358
81ecdfbb 14359for vec in $selvecs
49c97a80 14360do
81ecdfbb
RW
14361 target_size=32
14362 case "$vec" in
14363 # This list is alphabetized to make it easy to compare
14364 # with the two vector lists in targets.c. For the same reason,
14365 # use one entry per line, even though this leads to long lines.
2f67d686
AM
14366 aarch64_elf32_be_vec) tb="$tb elf32-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf32.lo $elf"; target_size=64 ;;
14367 aarch64_elf32_le_vec) tb="$tb elf32-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf32.lo $elf"; target_size=64 ;;
d8bd95ef 14368 aarch64_elf64_be_vec) tb="$tb elf64-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
a75cf613 14369 aarch64_elf64_be_cloudabi_vec) tb="$tb elf64-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
d8bd95ef 14370 aarch64_elf64_le_vec) tb="$tb elf64-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
a75cf613 14371 aarch64_elf64_le_cloudabi_vec) tb="$tb elf64-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
f075eb5e 14372 aarch64_mach_o_vec) tb="$tb mach-o-aarch64.lo"; target_size=64 ;;
f4943d82 14373 alpha_ecoff_le_vec) tb="$tb coff-alpha.lo ecoff.lo $ecoff"; target_size=64 ;;
2f67d686
AM
14374 alpha_elf64_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
14375 alpha_elf64_fbsd_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
2f67d686
AM
14376 alpha_vms_vec) tb="$tb vms-alpha.lo vms-misc.lo vms-lib.lo"; target_size=64 ;;
14377 alpha_vms_lib_txt_vec) tb="$tb vms-lib.lo vms-misc.lo" ;;
14378 am33_elf32_linux_vec) tb="$tb elf32-am33lin.lo elf32.lo $elf" ;;
6d00b590 14379 aout0_be_vec) tb="$tb aout0.lo aout32.lo" ;;
2f67d686
AM
14380 aout64_vec) tb="$tb demo64.lo aout64.lo"; target_size=64 ;;
14381 aout_vec) tb="$tb host-aout.lo aout32.lo" ;;
2f67d686
AM
14382 arc_elf32_be_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
14383 arc_elf32_le_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
2f67d686
AM
14384 arm_elf32_be_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
14385 arm_elf32_le_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
617a5ada
CL
14386 arm_elf32_fdpic_be_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
14387 arm_elf32_fdpic_le_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
2f67d686
AM
14388 arm_elf32_nacl_be_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
14389 arm_elf32_nacl_le_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
14390 arm_elf32_symbian_be_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
14391 arm_elf32_symbian_le_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
14392 arm_elf32_vxworks_be_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
14393 arm_elf32_vxworks_le_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
f4943d82
AM
14394 arm_pe_be_vec) tb="$tb pe-arm.lo peigen.lo $coff" ;;
14395 arm_pe_le_vec) tb="$tb pe-arm.lo peigen.lo $coff" ;;
f4943d82
AM
14396 arm_pe_wince_be_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo $coff" ;;
14397 arm_pe_wince_le_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo $coff" ;;
14398 arm_pei_be_vec) tb="$tb pei-arm.lo peigen.lo $coff" ;;
14399 arm_pei_le_vec) tb="$tb pei-arm.lo peigen.lo $coff" ;;
f4943d82
AM
14400 arm_pei_wince_be_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo $coff" ;;
14401 arm_pei_wince_le_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo $coff" ;;
f075eb5e 14402 arm_mach_o_vec) tb="$tb mach-o-arm.lo" ;;
6d00b590
AM
14403 avr_elf32_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;;
14404 bfin_elf32_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
14405 bfin_elf32_fdpic_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
6d00b590
AM
14406 cr16_elf32_vec) tb="$tb elf32-cr16.lo elf32.lo $elf" ;;
14407 cr16c_elf32_vec) tb="$tb elf32-cr16c.lo elf32.lo $elf" ;;
2f67d686 14408 cris_aout_vec) tb="$tb aout-cris.lo" ;;
6d00b590 14409 cris_elf32_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
2f67d686 14410 cris_elf32_us_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
6d00b590
AM
14411 crx_elf32_vec) tb="$tb elf32-crx.lo elf32.lo $elf" ;;
14412 d10v_elf32_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
14413 d30v_elf32_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;;
14414 dlx_elf32_be_vec) tb="$tb elf32-dlx.lo elf32.lo $elf" ;;
2f67d686
AM
14415 elf32_be_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
14416 elf32_le_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
14417 elf64_be_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
14418 elf64_le_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
6d00b590
AM
14419 epiphany_elf32_vec) tb="$tb elf32-epiphany.lo elf32.lo $elf" ;;
14420 fr30_elf32_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;;
14421 frv_elf32_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
14422 frv_elf32_fdpic_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
14423 h8300_elf32_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
5518c738 14424 h8300_elf32_linux_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
2f67d686 14425 hppa_elf32_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
6d00b590
AM
14426 hppa_elf32_linux_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
14427 hppa_elf32_nbsd_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
2f67d686
AM
14428 hppa_elf64_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
14429 hppa_elf64_linux_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
14430 hppa_som_vec) tb="$tb som.lo" ;;
2f67d686
AM
14431 i386_aout_vec) tb="$tb i386aout.lo aout32.lo" ;;
14432 i386_aout_bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;;
2f67d686 14433 i386_aout_lynx_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
f4943d82
AM
14434 i386_coff_vec) tb="$tb coff-i386.lo $coff" ;;
14435 i386_coff_go32_vec) tb="$tb coff-go32.lo $coff" ;;
14436 i386_coff_go32stubbed_vec) tb="$tb coff-stgo32.lo $coff" ;;
14437 i386_coff_lynx_vec) tb="$tb cf-i386lynx.lo lynx-core.lo $coff" ;;
0afcef53
L
14438 i386_elf32_vec) tb="$tb elf32-i386.lo elfxx-x86.lo elf-ifunc.lo elf-nacl.lo elf-vxworks.lo elf32.lo $elf" ;;
14439 i386_elf32_fbsd_vec) tb="$tb elf32-i386.lo elfxx-x86.lo elf-ifunc.lo elf-nacl.lo elf-vxworks.lo elf32.lo $elf" ;;
14440 i386_elf32_nacl_vec) tb="$tb elf32-i386.lo elfxx-x86.lo elf-ifunc.lo elf-nacl.lo elf-vxworks.lo elf32.lo $elf" ;;
14441 i386_elf32_sol2_vec) tb="$tb elf32-i386.lo elfxx-x86.lo elf-ifunc.lo elf-nacl.lo elf-vxworks.lo elf32.lo $elf" ;;
14442 i386_elf32_vxworks_vec) tb="$tb elf32-i386.lo elfxx-x86.lo elf-ifunc.lo elf-nacl.lo elf-vxworks.lo elf32.lo $elf" ;;
2f67d686
AM
14443 i386_mach_o_vec) tb="$tb mach-o-i386.lo" ;;
14444 i386_msdos_vec) tb="$tb i386msdos.lo" ;;
f4943d82
AM
14445 i386_pe_vec) tb="$tb pe-i386.lo peigen.lo $coff" ;;
14446 i386_pei_vec) tb="$tb pei-i386.lo peigen.lo $coff" ;;
0afcef53 14447 iamcu_elf32_vec) tb="$tb elf32-i386.lo elfxx-x86.lo elf-ifunc.lo elf-nacl.lo elf-vxworks.lo elf32.lo $elf" ;;
6d00b590
AM
14448 ia64_elf32_be_vec) tb="$tb elf32-ia64.lo elfxx-ia64.lo elf32.lo $elf" ;;
14449 ia64_elf32_hpux_be_vec) tb="$tb elf32-ia64.lo elfxx-ia64.lo elf32.lo $elf" ;;
2f67d686
AM
14450 ia64_elf64_be_vec) tb="$tb elf64-ia64.lo elfxx-ia64.lo elf64.lo $elf"; target_size=64 ;;
14451 ia64_elf64_le_vec) tb="$tb elf64-ia64.lo elfxx-ia64.lo elf64.lo $elf"; target_size=64 ;;
14452 ia64_elf64_hpux_be_vec) tb="$tb elf64-ia64.lo elfxx-ia64.lo elf64.lo $elf"; target_size=64 ;;
14453 ia64_elf64_vms_vec) tb="$tb elf64-ia64-vms.lo elf64-ia64.lo elfxx-ia64.lo elf64.lo vms-lib.lo vms-misc.lo $elf"; target_size=64 ;;
f4943d82 14454 ia64_pei_vec) tb="$tb pei-ia64.lo pepigen.lo $coff"; target_size=64 ;;
6d00b590
AM
14455 ip2k_elf32_vec) tb="$tb elf32-ip2k.lo elf32.lo $elf" ;;
14456 iq2000_elf32_vec) tb="$tb elf32-iq2000.lo elf32.lo $elf" ;;
0afcef53
L
14457 k1om_elf64_vec) tb="$tb elf64-x86-64.lo elfxx-x86.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;;
14458 k1om_elf64_fbsd_vec) tb="$tb elf64-x86-64.lo elfxx-x86.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;;
14459 l1om_elf64_vec) tb="$tb elf64-x86-64.lo elfxx-x86.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;;
14460 l1om_elf64_fbsd_vec) tb="$tb elf64-x86-64.lo elfxx-x86.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;;
6d00b590
AM
14461 lm32_elf32_vec) tb="$tb elf32-lm32.lo elf32.lo $elf" ;;
14462 lm32_elf32_fdpic_vec) tb="$tb elf32-lm32.lo elf32.lo $elf" ;;
6d00b590
AM
14463 m32c_elf32_vec) tb="$tb elf32-m32c.lo elf32.lo $elf" ;;
14464 m32r_elf32_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
14465 m32r_elf32_le_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
14466 m32r_elf32_linux_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
14467 m32r_elf32_linux_le_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
14468 m68hc11_elf32_vec) tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
14469 m68hc12_elf32_vec) tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
14470 m68k_elf32_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
7b4ae824 14471 s12z_elf32_vec) tb="$tb elf32-s12z.lo elf32.lo $elf" ;;
f4943d82
AM
14472 mach_o_be_vec) tb="$tb mach-o.lo dwarf2.lo" ;;
14473 mach_o_le_vec) tb="$tb mach-o.lo dwarf2.lo" ;;
14474 mach_o_fat_vec) tb="$tb mach-o.lo dwarf2.lo" ;;
6d00b590
AM
14475 mcore_elf32_be_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
14476 mcore_elf32_le_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
f4943d82
AM
14477 mcore_pe_be_vec) tb="$tb pe-mcore.lo peigen.lo $coff" ;;
14478 mcore_pe_le_vec) tb="$tb pe-mcore.lo peigen.lo $coff" ;;
14479 mcore_pei_be_vec) tb="$tb pei-mcore.lo peigen.lo $coff" ;;
14480 mcore_pei_le_vec) tb="$tb pei-mcore.lo peigen.lo $coff" ;;
6d00b590
AM
14481 mep_elf32_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;;
14482 mep_elf32_le_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;;
14483 metag_elf32_vec) tb="$tb elf32-metag.lo elf32.lo $elf" ;;
6d00b590 14484 microblaze_elf32_vec) tb="$tb elf32-microblaze.lo elf32.lo $elf" ;;
2f67d686 14485 microblaze_elf32_le_vec) tb="$tb elf32-microblaze.lo elf32.lo $elf" ;;
8e415ce8
AM
14486 mips_ecoff_be_vec) tb="$tb coff-mips.lo ecoff.lo $ecoff" ;;
14487 mips_ecoff_le_vec) tb="$tb coff-mips.lo ecoff.lo $ecoff" ;;
14488 mips_ecoff_bele_vec) tb="$tb coff-mips.lo ecoff.lo $ecoff" ;;
f4943d82
AM
14489 mips_elf32_be_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
14490 mips_elf32_le_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
14491 mips_elf32_n_be_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
14492 mips_elf32_n_le_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
14493 mips_elf32_ntrad_be_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
14494 mips_elf32_ntrad_le_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
14495 mips_elf32_ntradfbsd_be_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
14496 mips_elf32_ntradfbsd_le_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
14497 mips_elf32_trad_be_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
14498 mips_elf32_trad_le_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
14499 mips_elf32_tradfbsd_be_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
14500 mips_elf32_tradfbsd_le_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
14501 mips_elf32_vxworks_be_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
14502 mips_elf32_vxworks_le_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
14503 mips_elf64_be_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
14504 mips_elf64_le_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
14505 mips_elf64_trad_be_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
14506 mips_elf64_trad_le_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
14507 mips_elf64_tradfbsd_be_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
14508 mips_elf64_tradfbsd_le_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
2f67d686
AM
14509 mmix_elf64_vec) tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;;
14510 mmix_mmo_vec) tb="$tb mmo.lo" target_size=64 ;;
14511 mn10200_elf32_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;;
14512 mn10300_elf32_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;;
14513 moxie_elf32_be_vec) tb="$tb elf32-moxie.lo elf32.lo $elf" ;;
14514 moxie_elf32_le_vec) tb="$tb elf32-moxie.lo elf32.lo $elf" ;;
14515 msp430_elf32_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
14516 msp430_elf32_ti_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
14517 mt_elf32_vec) tb="$tb elf32-mt.lo elf32.lo $elf" ;;
6d00b590
AM
14518 nds32_elf32_be_vec) tb="$tb elf32-nds32.lo elf32.lo $elf" ;;
14519 nds32_elf32_le_vec) tb="$tb elf32-nds32.lo elf32.lo $elf" ;;
14520 nds32_elf32_linux_be_vec) tb="$tb elf32-nds32.lo elf32.lo $elf" ;;
14521 nds32_elf32_linux_le_vec) tb="$tb elf32-nds32.lo elf32.lo $elf" ;;
fe944acf 14522 nfp_elf64_vec) tb="$tb elf64-nfp.lo elf64.lo $elf" ;;
2f67d686
AM
14523 nios2_elf32_be_vec) tb="$tb elf32-nios2.lo elf32.lo $elf" ;;
14524 nios2_elf32_le_vec) tb="$tb elf32-nios2.lo elf32.lo $elf" ;;
14525 ns32k_aout_pc532mach_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
14526 ns32k_aout_pc532nbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
6d00b590 14527 or1k_elf32_vec) tb="$tb elf32-or1k.lo elf32.lo $elf" ;;
2f67d686
AM
14528 pdp11_aout_vec) tb="$tb pdp11.lo" ;;
14529 pef_vec) tb="$tb pef.lo" ;;
14530 pef_xlib_vec) tb="$tb pef.lo" ;;
6d00b590
AM
14531 pj_elf32_vec) tb="$tb elf32-pj.lo elf32.lo $elf" ;;
14532 pj_elf32_le_vec) tb="$tb elf32-pj.lo elf32.lo $elf" ;;
2f67d686
AM
14533 plugin_vec) tb="$tb plugin.lo" ;;
14534 powerpc_boot_vec) tb="$tb ppcboot.lo" ;;
6d00b590
AM
14535 powerpc_elf32_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
14536 powerpc_elf32_le_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
14537 powerpc_elf32_fbsd_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
14538 powerpc_elf32_vxworks_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
2f67d686
AM
14539 powerpc_elf64_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
14540 powerpc_elf64_le_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
14541 powerpc_elf64_fbsd_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
f4943d82
AM
14542 powerpc_pe_vec) tb="$tb pe-ppc.lo peigen.lo $coff" ;;
14543 powerpc_pe_le_vec) tb="$tb pe-ppc.lo peigen.lo $coff" ;;
14544 powerpc_pei_vec) tb="$tb pei-ppc.lo peigen.lo $coff" ;;
14545 powerpc_pei_le_vec) tb="$tb pei-ppc.lo peigen.lo $coff" ;;
14546 powerpc_xcoff_vec) tb="$tb coff-rs6000.lo $xcoff" ;;
889294f6 14547 pru_elf32_vec) tb="$tb elf32-pru.lo elf32.lo $elf" ;;
e23eba97
NC
14548 riscv_elf32_vec) tb="$tb elf32-riscv.lo elfxx-riscv.lo elf32.lo $elf" ;;
14549 riscv_elf64_vec) tb="$tb elf64-riscv.lo elf64.lo elfxx-riscv.lo elf32.lo $elf"; target_size=64 ;;
6d00b590 14550 rl78_elf32_vec) tb="$tb elf32-rl78.lo elf32.lo $elf" ;;
f4943d82
AM
14551 rs6000_xcoff64_vec) tb="$tb coff64-rs6000.lo aix5ppc-core.lo $xcoff"; target_size=64 ;;
14552 rs6000_xcoff64_aix_vec) tb="$tb coff64-rs6000.lo aix5ppc-core.lo $xcoff"; target_size=64 ;;
14553 rs6000_xcoff_vec) tb="$tb coff-rs6000.lo $xcoff" ;;
6d00b590
AM
14554 rx_elf32_be_vec) tb="$tb elf32-rx.lo elf32.lo $elf" ;;
14555 rx_elf32_be_ns_vec) tb="$tb elf32-rx.lo elf32.lo $elf" ;;
2f67d686 14556 rx_elf32_le_vec) tb="$tb elf32-rx.lo elf32.lo $elf" ;;
6d00b590 14557 s390_elf32_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;;
2f67d686 14558 s390_elf64_vec) tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;;
6d00b590
AM
14559 score_elf32_be_vec) tb="$tb elf32-score.lo elf32-score7.lo elf32.lo $elf"; want64=true; target_size=64 ;;
14560 score_elf32_le_vec) tb="$tb elf32-score.lo elf32-score7.lo elf32.lo $elf"; want64=true; target_size=64 ;;
f4943d82
AM
14561 sh_coff_vec) tb="$tb coff-sh.lo $coff" ;;
14562 sh_coff_le_vec) tb="$tb coff-sh.lo $coff" ;;
14563 sh_coff_small_vec) tb="$tb coff-sh.lo $coff" ;;
14564 sh_coff_small_le_vec) tb="$tb coff-sh.lo $coff" ;;
14565 sh_elf32_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
14566 sh_elf32_le_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
14567 sh_elf32_fdpic_be_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
14568 sh_elf32_fdpic_le_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
14569 sh_elf32_linux_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
14570 sh_elf32_linux_be_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
14571 sh_elf32_nbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
14572 sh_elf32_nbsd_le_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
f4943d82
AM
14573 sh_elf32_vxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
14574 sh_elf32_vxworks_le_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
14575 sh_pe_le_vec) tb="$tb pe-sh.lo coff-sh.lo peigen.lo $coff" ;;
14576 sh_pei_le_vec) tb="$tb pei-sh.lo coff-sh.lo peigen.lo $coff" ;;
2f67d686
AM
14577 sparc_elf32_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
14578 sparc_elf32_sol2_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
14579 sparc_elf32_vxworks_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
14580 sparc_elf64_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
14581 sparc_elf64_fbsd_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
14582 sparc_elf64_sol2_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
2f67d686 14583 spu_elf32_vec) tb="$tb elf32-spu.lo elf32.lo $elf" ;;
6d00b590
AM
14584 sym_vec) tb="$tb xsym.lo" ;;
14585 tic30_aout_vec) tb="$tb aout-tic30.lo" ;;
f4943d82
AM
14586 tic30_coff_vec) tb="$tb coff-tic30.lo $coffgen" ;;
14587 tic4x_coff0_vec) tb="$tb coff-tic4x.lo $coffgen" ;;
14588 tic4x_coff0_beh_vec) tb="$tb coff-tic4x.lo $coffgen" ;;
14589 tic4x_coff1_vec) tb="$tb coff-tic4x.lo $coffgen" ;;
14590 tic4x_coff1_beh_vec) tb="$tb coff-tic4x.lo $coffgen" ;;
14591 tic4x_coff2_vec) tb="$tb coff-tic4x.lo $coffgen" ;;
14592 tic4x_coff2_beh_vec) tb="$tb coff-tic4x.lo $coffgen" ;;
14593 tic54x_coff0_vec) tb="$tb coff-tic54x.lo $coffgen" ;;
14594 tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo $coffgen" ;;
14595 tic54x_coff1_vec) tb="$tb coff-tic54x.lo $coffgen" ;;
14596 tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo $coffgen" ;;
14597 tic54x_coff2_vec) tb="$tb coff-tic54x.lo $coffgen" ;;
14598 tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo $coffgen" ;;
2f67d686
AM
14599 tic6x_elf32_be_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
14600 tic6x_elf32_le_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
14601 tic6x_elf32_c6000_be_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
14602 tic6x_elf32_c6000_le_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
14603 tic6x_elf32_linux_be_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
14604 tic6x_elf32_linux_le_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
f4943d82 14605 tic80_coff_vec) tb="$tb coff-tic80.lo $coff" ;;
2f67d686
AM
14606 tilegx_elf32_be_vec) tb="$tb elf32-tilegx.lo elfxx-tilegx.lo elf32.lo $elf" ; target_size=32 ;;
14607 tilegx_elf32_le_vec) tb="$tb elf32-tilegx.lo elfxx-tilegx.lo elf32.lo $elf" ; target_size=32 ;;
14608 tilegx_elf64_be_vec) tb="$tb elf64-tilegx.lo elfxx-tilegx.lo elf64.lo $elf" ; target_size=64 ;;
14609 tilegx_elf64_le_vec) tb="$tb elf64-tilegx.lo elfxx-tilegx.lo elf64.lo $elf" ; target_size=64 ;;
14610 tilepro_elf32_vec) tb="$tb elf32-tilepro.lo elf32.lo $elf" ;;
14611 v800_elf32_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
14612 v850_elf32_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
6d00b590 14613 vax_aout_1knbsd_vec) tb="$tb vax1knetbsd.lo aout32.lo" ;;
2f67d686
AM
14614 vax_aout_nbsd_vec) tb="$tb vaxnetbsd.lo aout32.lo" ;;
14615 vax_elf32_vec) tb="$tb elf32-vax.lo elf32.lo $elf" ;;
3f8107ab 14616 ft32_elf32_vec) tb="$tb elf32-ft32.lo elf32.lo $elf" ;;
d924db55 14617 visium_elf32_vec) tb="$tb elf32-visium.lo elf32.lo $elf" ;;
a6be0538 14618 wasm_vec) tb="$tb wasm-module.lo" ;;
8fb740dd 14619 wasm32_elf32_vec) tb="$tb elf32-wasm32.lo elf32.lo $elf" ;;
f4943d82 14620 x86_64_coff_vec) tb="$tb coff-x86_64.lo $coff"; target_size=64 ;;
0afcef53
L
14621 x86_64_elf32_vec) tb="$tb elf64-x86-64.lo elfxx-x86.lo elf-ifunc.lo elf-nacl.lo elf64.lo elf32.lo $elf"; target_size=64 ;;
14622 x86_64_elf32_nacl_vec) tb="$tb elf64-x86-64.lo elfxx-x86.lo elf-ifunc.lo elf-nacl.lo elf64.lo elf32.lo $elf"; target_size=64 ;;
14623 x86_64_elf64_vec) tb="$tb elf64-x86-64.lo elfxx-x86.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;;
14624 x86_64_elf64_cloudabi_vec) tb="$tb elf64-x86-64.lo elfxx-x86.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;;
14625 x86_64_elf64_fbsd_vec) tb="$tb elf64-x86-64.lo elfxx-x86.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;;
14626 x86_64_elf64_nacl_vec) tb="$tb elf64-x86-64.lo elfxx-x86.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;;
14627 x86_64_elf64_sol2_vec) tb="$tb elf64-x86-64.lo elfxx-x86.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;;
2f67d686 14628 x86_64_mach_o_vec) tb="$tb mach-o-x86-64.lo" ;;
f4943d82
AM
14629 x86_64_pe_vec) tb="$tb pe-x86_64.lo pex64igen.lo $coff"; target_size=64 ;;
14630 x86_64_pe_be_vec) tb="$tb pe-x86_64.lo pex64igen.lo $coff"; target_size=64 ;;
14631 x86_64_pei_vec) tb="$tb pei-x86_64.lo pex64igen.lo $coff"; target_size=64 ;;
2f67d686
AM
14632 xc16x_elf32_vec) tb="$tb elf32-xc16x.lo elf32.lo $elf" ;;
14633 xgate_elf32_vec) tb="$tb elf32-xgate.lo elf32.lo $elf" ;;
14634 xstormy16_elf32_vec) tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;;
14635 xtensa_elf32_be_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
14636 xtensa_elf32_le_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
f4943d82
AM
14637 z80_coff_vec) tb="$tb coff-z80.lo reloc16.lo $coffgen" ;;
14638 z8k_coff_vec) tb="$tb coff-z8k.lo reloc16.lo $coff" ;;
2ba49b59 14639
c603b11b
AM
14640 # These appear out of order in targets.c
14641 srec_vec) tb="$tb srec.lo" ;;
14642 symbolsrec_vec) tb="$tb srec.lo" ;;
14643 tekhex_vec) tb="$tb tekhex.lo" ;;
14644 core_cisco_be_vec) tb="$tb cisco-core.lo" ;;
14645 core_cisco_le_vec) tb="$tb cisco-core.lo" ;;
14646
14647 "") ;;
14648 *) as_fn_error "*** unknown target vector $vec" "$LINENO" 5 ;;
14649 esac
14650
14651 if test ${target_size} = 64; then
14652 target64=true
14653 fi
14654 if test x"${vec}" = x"${defvec}"; then
14655 bfd_default_target_size=${target_size}
14656 fi
14657done
14658
14659# Target architecture .o files.
14660# A couple of CPUs use shorter file names to avoid problems on DOS
14661# filesystems.
14662ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
14663
14664# Weed out duplicate .o files.
14665f=""
14666for i in $tb ; do
14667 case " $f " in
14668 *" $i "*) ;;
14669 *) f="$f $i" ;;
14670 esac
14671done
14672tb="$f"
14673
14674f=""
14675for i in $ta ; do
14676 case " $f " in
14677 *" $i "*) ;;
14678 *) f="$f $i" ;;
14679 esac
14680done
14681ta="$f"
14682
14683bfd_backends="$tb"
14684bfd_machines="$ta"
14685
14686if test x${all_targets} = xtrue ; then
14687 bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
14688 bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
14689 selvecs=
14690 havevecs=-DHAVE_all_vecs
14691 selarchs=
14692 test -n "$assocvecs" &&
14693 assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
14694else # all_targets is true
14695 # Only set these if they will be nonempty, for the clever echo.
14696 havevecs=
14697 assocvecs=
14698 test -n "$selvecs" &&
14699 havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
14700 test -n "$selvecs" &&
14701 selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
14702 test -n "$selarchs" &&
14703 selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
14704fi # all_targets is true
14705
e6cc316a
L
14706# 64-bit archives need a 64-bit bfd_vma.
14707if test "x$want_64_bit_archive" = xtrue; then
14708 want64=true
14709
14710$as_echo "#define USE_64_BIT_ARCHIVE 1" >>confdefs.h
14711
14712fi
14713
c603b11b
AM
14714case ${host64}-${target64}-${want64} in
14715 *true*)
14716 wordsize=64
14717 bfd64_libs='$(BFD64_LIBS)'
14718 all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
14719 if test $BFD_HOST_64_BIT_DEFINED = 0; then
14720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You have requested a 64 bit BFD configuration, but" >&5
14721$as_echo "$as_me: WARNING: You have requested a 64 bit BFD configuration, but" >&2;}
14722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: your compiler may not have a 64 bit integral type" >&5
14723$as_echo "$as_me: WARNING: your compiler may not have a 64 bit integral type" >&2;}
14724 fi
14725 if test -n "$GCC" ; then
14726 bad_64bit_gcc=no;
14727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc version with buggy 64-bit support" >&5
14728$as_echo_n "checking for gcc version with buggy 64-bit support... " >&6; }
14729 # Add more tests for gcc versions with non-working 64-bit support here.
14730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14731/* end confdefs.h. */
14732:__GNUC__:__GNUC_MINOR__:__i386__:
14733_ACEOF
14734if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14735 $EGREP ": 2 : 91 : 1 :" >/dev/null 2>&1; then :
14736 bad_64bit_gcc=yes;
14737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes: egcs-1.1.2 on ix86 spotted" >&5
14738$as_echo "yes: egcs-1.1.2 on ix86 spotted" >&6; }
14739else
14740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14741$as_echo "no" >&6; }
14742fi
14743rm -f conftest*
14744
14745 if test $bad_64bit_gcc = yes ; then
14746 as_fn_error "A newer version of gcc is needed for the requested 64-bit BFD configuration" "$LINENO" 5
14747 fi
14748 fi
14749 ;;
14750 false-false-false)
14751 wordsize=32
14752 all_backends='$(BFD32_BACKENDS)'
14753 ;;
14754esac
14755
14756tdefaults=""
14757test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
14758test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
14759test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'"
14760test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
14761
14762
14763
14764
14765
14766
14767
14768
14769
14770
14771# If we are configured native, pick a core file support file.
14772COREFILE=
14773COREFLAG=
14774CORE_HEADER=
14775TRAD_HEADER=
14776if test "${target}" = "${host}"; then
14777 case "${host}" in
14778 alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu | alpha*-*-*vms*)
14779 COREFILE=''
14780 ;;
14781 alpha*-*-linux-*)
14782 COREFILE=trad-core.lo
14783 TRAD_HEADER='"hosts/alphalinux.h"'
14784 ;;
14785 alpha*-*-netbsd* | alpha*-*-openbsd*)
14786 COREFILE=netbsd-core.lo
14787 ;;
14788 alpha*-*-*)
14789 COREFILE=osf-core.lo
14790 ;;
14791 arm-*-freebsd* | arm-*-kfreebsd*-gnu)
14792 COREFILE='' ;;
14793 arm-*-netbsd* | arm-*-openbsd*)
14794 COREFILE=netbsd-core.lo
14795 ;;
14796 arm-*-riscix) COREFILE=trad-core.lo ;;
14797 hppa*-*-hpux*) COREFILE=hpux-core.lo ;;
14798 hppa*-*-hiux*) COREFILE=hpux-core.lo ;;
14799 hppa*-*-mpeix*) COREFILE=hpux-core.lo ;;
14800 hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo"
14801 COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
14802 hppa*-*-netbsd* | hppa*-*-openbsd*)
14803 COREFILE=netbsd-core.lo
14804 ;;
14805
c603b11b
AM
14806 i[3-7]86-sequent-bsd*)
14807 COREFILE=trad-core.lo
14808 TRAD_HEADER='"hosts/symmetry.h"'
14809 ;;
14810 i[3-7]86-sequent-sysv4*) ;;
14811 i[3-7]86-sequent-sysv*)
14812 COREFILE=trad-core.lo
14813 TRAD_HEADER='"hosts/symmetry.h"'
14814 ;;
14815 i[3-7]86-*-bsdi)
14816 COREFILE=
14817 ;;
14818 i[3-7]86-*-bsd* | i[3-7]86-*-freebsd[123] | i[3-7]86-*-freebsd[123]\.* | i[3-7]86-*-freebsd4\.[01234] | i[3-7]86-*-freebsd4\.[01234]\.* | i[3-7]86-*-freebsd*aout*)
14819 COREFILE=trad-core.lo
14820 TRAD_HEADER='"hosts/i386bsd.h"'
14821 ;;
14822 i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu | i[3-7]86-*-dragonfly*)
14823 COREFILE=''
14824 TRAD_HEADER='"hosts/i386bsd.h"'
14825 ;;
14826 i[3-7]86-*-netbsd* | i[3-7]86-*-knetbsd*-gnu | i[3-7]86-*-openbsd*)
14827 COREFILE=netbsd-core.lo
14828 ;;
14829 i[3-7]86-esix-sysv3*)
14830 COREFILE=trad-core.lo
14831 TRAD_HEADER='"hosts/esix.h"'
14832 ;;
14833 i[3-7]86-*-sco3.2v5*)
14834 COREFILE=sco5-core.lo
14835 ;;
14836 i[3-7]86-*-sco* | i[3-7]86-*-isc*)
14837 COREFILE=trad-core.lo
14838 TRAD_HEADER='"hosts/i386sco.h"'
14839 ;;
14840 i[3-7]86-*-mach3*)
14841 COREFILE=trad-core.lo
14842 TRAD_HEADER='"hosts/i386mach3.h"'
14843 ;;
14844 i[3-7]86-*-linux-*)
14845 COREFILE=trad-core.lo
14846 TRAD_HEADER='"hosts/i386linux.h"'
14847 case "$enable_targets"-"$want64" in
14848 *x86_64-*linux*|*-true)
14849 CORE_HEADER='"hosts/x86-64linux.h"'
14850 esac
14851 ;;
14852 i[3-7]86-*-isc*) COREFILE=trad-core.lo ;;
14853 i[3-7]86-*-aix*) COREFILE=aix386-core.lo ;;
c603b11b
AM
14854 mips-*-netbsd* | mips*-*-openbsd*)
14855 COREFILE=netbsd-core.lo
14856 ;;
c603b11b
AM
14857 mips-sgi-irix4*) COREFILE=irix-core.lo ;;
14858 mips-sgi-irix5*) COREFILE=irix-core.lo ;;
14859 mips-sgi-irix6*) COREFILE=irix-core.lo ;;
c603b11b
AM
14860 m68*-*-linux-*)
14861 COREFILE=trad-core.lo
14862 TRAD_HEADER='"hosts/m68klinux.h"'
14863 ;;
dc12032b 14864 m68*-*-netbsd*)
c603b11b
AM
14865 COREFILE=netbsd-core.lo
14866 ;;
c603b11b
AM
14867 ns32k-pc532-mach)
14868 COREFILE=trad-core.lo
14869 TRAD_HEADER='"hosts/pc532mach.h"'
14870 ;;
14871 ns32k-*-netbsd* | ns32k-*-openbsd*)
14872 COREFILE=netbsd-core.lo
14873 ;;
14874 rs6000-*-lynx*)
14875 COREFILE=lynx-core.lo
14876 ;;
14877 rs6000-*-aix[5-9].* | powerpc-*-aix[5-9].* | powerpc64-*-aix[5-9].*)
14878 COREFILE=rs6000-core.lo
14879 COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE"
14880 ;;
14881 rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*)
14882 COREFILE=rs6000-core.lo
14883 COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
14884 # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE
14885 # have c_impl as a member of struct core_dumpx
14886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c_impl in struct core_dumpx" >&5
14887$as_echo_n "checking for c_impl in struct core_dumpx... " >&6; }
14888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14889/* end confdefs.h. */
14890#include <core.h>
14891int
14892main ()
14893{
14894struct core_dumpx c; c.c_impl = 0;
14895 ;
14896 return 0;
14897}
14898_ACEOF
14899if ac_fn_c_try_compile "$LINENO"; then :
14900
14901$as_echo "#define HAVE_ST_C_IMPL 1" >>confdefs.h
14902
14903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14904$as_echo "yes" >&6; }
14905else
14906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14907$as_echo "no" >&6; }
14908fi
14909rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14910 ;;
14911 rs6000-*-aix4*) COREFILE=rs6000-core.lo ;;
14912 rs6000-*-*) COREFILE=rs6000-core.lo ;;
14913 powerpc64-*-aix*) COREFILE=rs6000-core.lo ;;
14914 powerpc-*-aix4*) COREFILE=rs6000-core.lo ;;
14915 powerpc-*-aix*) COREFILE=rs6000-core.lo ;;
14916 powerpc-*-beos*) ;;
14917 powerpc-*-freebsd* | powerpc-*-kfreebsd*-gnu)
14918 COREFILE='' ;;
14919 powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;;
14920 powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;;
14921 s390*-*-*) COREFILE=trad-core.lo ;;
14922 sh*-*-netbsd* | sh*-*-openbsd*)
14923 COREFILE=netbsd-core.lo
14924 ;;
14925 sparc-*-netbsd* | sparc*-*-openbsd*)
14926 COREFILE=netbsd-core.lo
14927 ;;
c603b11b
AM
14928 vax-*-netbsd* | vax-*-openbsd*)
14929 COREFILE=netbsd-core.lo
14930 ;;
14931 vax-*-ultrix2*)
14932 COREFILE=trad-core.lo
14933 TRAD_HEADER='"hosts/vaxult2.h"'
14934 ;;
14935 vax-*-ultrix*)
14936 COREFILE=trad-core.lo
14937 TRAD_HEADER='"hosts/vaxult2.h"'
14938 ;;
14939 vax-*-linux-*)
14940 COREFILE=trad-core.lo
14941 TRAD_HEADER='"hosts/vaxlinux.h"'
14942 ;;
14943 vax-*-*)
14944 COREFILE=trad-core.lo
14945 TRAD_HEADER='"hosts/vaxbsd.h"'
14946 ;;
14947 x86_64-*-linux*)
14948 CORE_HEADER='"hosts/x86-64linux.h"'
14949 ;;
14950 x86_64-*-netbsd* | x86_64-*-openbsd*)
14951 COREFILE=netbsd-core.lo
14952 ;;
14953 esac
14954
14955 case "$COREFILE" in
14956 aix386-core.lo) COREFLAG=-DAIX386_CORE ;;
14957 hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;;
14958 hpux-core.lo) COREFLAG=-DHPUX_CORE ;;
14959 irix-core.lo) COREFLAG=-DIRIX_CORE ;;
14960 lynx-core.lo) COREFLAG=-DLYNX_CORE ;;
14961 netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;;
14962 osf-core.lo) COREFLAG=-DOSF_CORE ;;
14963 ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;;
14964 rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;;
14965 sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;;
14966 trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;;
14967 esac
14968
14969 # ELF corefile support has several flavors, but all of
14970 # them use something called <sys/procfs.h>
14971 for ac_header in sys/procfs.h
14972do :
14973 ac_fn_c_check_header_mongrel "$LINENO" "sys/procfs.h" "ac_cv_header_sys_procfs_h" "$ac_includes_default"
14974if test "x$ac_cv_header_sys_procfs_h" = x""yes; then :
14975 cat >>confdefs.h <<_ACEOF
14976#define HAVE_SYS_PROCFS_H 1
14977_ACEOF
14978
14979fi
14980
14981done
14982
14983 if test "$ac_cv_header_sys_procfs_h" = yes; then
14984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prstatus_t in sys/procfs.h" >&5
14985$as_echo_n "checking for prstatus_t in sys/procfs.h... " >&6; }
14986 if test "${bfd_cv_have_sys_procfs_type_prstatus_t+set}" = set; then :
14987 $as_echo_n "(cached) " >&6
14988else
14989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14990/* end confdefs.h. */
14991
14992#define _SYSCALL32
14993/* Needed for new procfs interface on sparc-solaris. */
14994#define _STRUCTURED_PROC 1
14995#include <sys/procfs.h>
14996int
14997main ()
14998{
14999prstatus_t avar
15000 ;
15001 return 0;
15002}
15003_ACEOF
15004if ac_fn_c_try_compile "$LINENO"; then :
15005 bfd_cv_have_sys_procfs_type_prstatus_t=yes
15006else
15007 bfd_cv_have_sys_procfs_type_prstatus_t=no
15008
15009fi
15010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15011fi
15012
15013 if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
15014
15015$as_echo "#define HAVE_PRSTATUS_T 1" >>confdefs.h
15016
15017 fi
15018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prstatus_t" >&5
15019$as_echo "$bfd_cv_have_sys_procfs_type_prstatus_t" >&6; }
15020
15021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prstatus32_t in sys/procfs.h" >&5
15022$as_echo_n "checking for prstatus32_t in sys/procfs.h... " >&6; }
15023 if test "${bfd_cv_have_sys_procfs_type_prstatus32_t+set}" = set; then :
15024 $as_echo_n "(cached) " >&6
15025else
15026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15027/* end confdefs.h. */
15028
15029#define _SYSCALL32
15030/* Needed for new procfs interface on sparc-solaris. */
15031#define _STRUCTURED_PROC 1
15032#include <sys/procfs.h>
15033int
15034main ()
15035{
15036prstatus32_t avar
15037 ;
15038 return 0;
15039}
15040_ACEOF
15041if ac_fn_c_try_compile "$LINENO"; then :
15042 bfd_cv_have_sys_procfs_type_prstatus32_t=yes
15043else
15044 bfd_cv_have_sys_procfs_type_prstatus32_t=no
15045
15046fi
15047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15048fi
15049
15050 if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then
15051
15052$as_echo "#define HAVE_PRSTATUS32_T 1" >>confdefs.h
15053
15054 fi
15055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prstatus32_t" >&5
15056$as_echo "$bfd_cv_have_sys_procfs_type_prstatus32_t" >&6; }
15057
15058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prstatus_t.pr_who in sys/procfs.h" >&5
15059$as_echo_n "checking for prstatus_t.pr_who in sys/procfs.h... " >&6; }
15060 if test "${bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who+set}" = set; then :
15061 $as_echo_n "(cached) " >&6
15062else
15063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15064/* end confdefs.h. */
15065
15066#define _SYSCALL32
15067/* Needed for new procfs interface on sparc-solaris. */
15068#define _STRUCTURED_PROC 1
15069#include <sys/procfs.h>
15070int
15071main ()
15072{
15073prstatus_t avar; void* aref = (void*) &avar.pr_who
15074 ;
15075 return 0;
15076}
15077_ACEOF
15078if ac_fn_c_try_compile "$LINENO"; then :
15079 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes
15080else
15081 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no
15082
15083fi
15084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15085fi
15086
15087 if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then
15088
15089$as_echo "#define HAVE_PRSTATUS_T_PR_WHO 1" >>confdefs.h
15090
15091 fi
15092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&5
15093$as_echo "$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&6; }
15094
15095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prstatus32_t.pr_who in sys/procfs.h" >&5
15096$as_echo_n "checking for prstatus32_t.pr_who in sys/procfs.h... " >&6; }
15097 if test "${bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who+set}" = set; then :
15098 $as_echo_n "(cached) " >&6
15099else
15100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15101/* end confdefs.h. */
15102
15103#define _SYSCALL32
15104/* Needed for new procfs interface on sparc-solaris. */
15105#define _STRUCTURED_PROC 1
15106#include <sys/procfs.h>
15107int
15108main ()
15109{
15110prstatus32_t avar; void* aref = (void*) &avar.pr_who
15111 ;
15112 return 0;
15113}
15114_ACEOF
15115if ac_fn_c_try_compile "$LINENO"; then :
15116 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes
15117else
15118 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no
15119
15120fi
15121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15122fi
15123
15124 if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then
15125
15126$as_echo "#define HAVE_PRSTATUS32_T_PR_WHO 1" >>confdefs.h
15127
15128 fi
15129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&5
15130$as_echo "$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&6; }
15131
15132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pstatus_t in sys/procfs.h" >&5
15133$as_echo_n "checking for pstatus_t in sys/procfs.h... " >&6; }
15134 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then :
15135 $as_echo_n "(cached) " >&6
15136else
15137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15138/* end confdefs.h. */
15139
15140#define _SYSCALL32
15141/* Needed for new procfs interface on sparc-solaris. */
15142#define _STRUCTURED_PROC 1
15143#include <sys/procfs.h>
15144int
15145main ()
15146{
15147pstatus_t avar
15148 ;
15149 return 0;
15150}
15151_ACEOF
15152if ac_fn_c_try_compile "$LINENO"; then :
15153 bfd_cv_have_sys_procfs_type_pstatus_t=yes
15154else
15155 bfd_cv_have_sys_procfs_type_pstatus_t=no
15156
15157fi
15158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15159fi
15160
15161 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
15162
15163$as_echo "#define HAVE_PSTATUS_T 1" >>confdefs.h
15164
15165 fi
15166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
15167$as_echo "$bfd_cv_have_sys_procfs_type_pstatus_t" >&6; }
15168
15169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pxstatus_t in sys/procfs.h" >&5
15170$as_echo_n "checking for pxstatus_t in sys/procfs.h... " >&6; }
15171 if test "${bfd_cv_have_sys_procfs_type_pxstatus_t+set}" = set; then :
15172 $as_echo_n "(cached) " >&6
15173else
15174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15175/* end confdefs.h. */
15176
15177#define _SYSCALL32
15178/* Needed for new procfs interface on sparc-solaris. */
15179#define _STRUCTURED_PROC 1
15180#include <sys/procfs.h>
15181int
15182main ()
15183{
15184pxstatus_t avar
15185 ;
15186 return 0;
15187}
15188_ACEOF
15189if ac_fn_c_try_compile "$LINENO"; then :
15190 bfd_cv_have_sys_procfs_type_pxstatus_t=yes
15191else
15192 bfd_cv_have_sys_procfs_type_pxstatus_t=no
15193
15194fi
15195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15196fi
15197
15198 if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then
15199
15200$as_echo "#define HAVE_PXSTATUS_T 1" >>confdefs.h
15201
15202 fi
15203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pxstatus_t" >&5
15204$as_echo "$bfd_cv_have_sys_procfs_type_pxstatus_t" >&6; }
15205
15206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pstatus32_t in sys/procfs.h" >&5
15207$as_echo_n "checking for pstatus32_t in sys/procfs.h... " >&6; }
15208 if test "${bfd_cv_have_sys_procfs_type_pstatus32_t+set}" = set; then :
15209 $as_echo_n "(cached) " >&6
15210else
15211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15212/* end confdefs.h. */
15213
15214#define _SYSCALL32
15215/* Needed for new procfs interface on sparc-solaris. */
15216#define _STRUCTURED_PROC 1
15217#include <sys/procfs.h>
15218int
15219main ()
15220{
15221pstatus32_t avar
15222 ;
15223 return 0;
15224}
15225_ACEOF
15226if ac_fn_c_try_compile "$LINENO"; then :
15227 bfd_cv_have_sys_procfs_type_pstatus32_t=yes
15228else
15229 bfd_cv_have_sys_procfs_type_pstatus32_t=no
15230
15231fi
15232rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15233fi
15234
15235 if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then
15236
15237$as_echo "#define HAVE_PSTATUS32_T 1" >>confdefs.h
15238
15239 fi
15240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pstatus32_t" >&5
15241$as_echo "$bfd_cv_have_sys_procfs_type_pstatus32_t" >&6; }
15242
15243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prpsinfo_t in sys/procfs.h" >&5
15244$as_echo_n "checking for prpsinfo_t in sys/procfs.h... " >&6; }
15245 if test "${bfd_cv_have_sys_procfs_type_prpsinfo_t+set}" = set; then :
15246 $as_echo_n "(cached) " >&6
15247else
15248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15249/* end confdefs.h. */
15250
15251#define _SYSCALL32
15252/* Needed for new procfs interface on sparc-solaris. */
15253#define _STRUCTURED_PROC 1
15254#include <sys/procfs.h>
15255int
15256main ()
15257{
15258prpsinfo_t avar
15259 ;
15260 return 0;
15261}
15262_ACEOF
15263if ac_fn_c_try_compile "$LINENO"; then :
15264 bfd_cv_have_sys_procfs_type_prpsinfo_t=yes
15265else
15266 bfd_cv_have_sys_procfs_type_prpsinfo_t=no
15267
15268fi
15269rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15270fi
15271
15272 if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
15273
15274$as_echo "#define HAVE_PRPSINFO_T 1" >>confdefs.h
15275
15276 fi
15277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prpsinfo_t" >&5
15278$as_echo "$bfd_cv_have_sys_procfs_type_prpsinfo_t" >&6; }
15279
15280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prpsinfo_t.pr_pid in sys/procfs.h" >&5
15281$as_echo_n "checking for prpsinfo_t.pr_pid in sys/procfs.h... " >&6; }
15282 if test "${bfd_cv_have_sys_procfs_type_member_prpsinfo_t_pr_pid+set}" = set; then :
15283 $as_echo_n "(cached) " >&6
15284else
15285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15286/* end confdefs.h. */
15287
15288#define _SYSCALL32
15289/* Needed for new procfs interface on sparc-solaris. */
15290#define _STRUCTURED_PROC 1
15291#include <sys/procfs.h>
15292int
15293main ()
15294{
15295prpsinfo_t avar; void* aref = (void*) &avar.pr_pid
15296 ;
15297 return 0;
15298}
15299_ACEOF
15300if ac_fn_c_try_compile "$LINENO"; then :
15301 bfd_cv_have_sys_procfs_type_member_prpsinfo_t_pr_pid=yes
15302else
15303 bfd_cv_have_sys_procfs_type_member_prpsinfo_t_pr_pid=no
15304
15305fi
15306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15307fi
15308
15309 if test $bfd_cv_have_sys_procfs_type_member_prpsinfo_t_pr_pid = yes; then
15310
15311$as_echo "#define HAVE_PRPSINFO_T_PR_PID 1" >>confdefs.h
15312
15313 fi
15314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_prpsinfo_t_pr_pid" >&5
15315$as_echo "$bfd_cv_have_sys_procfs_type_member_prpsinfo_t_pr_pid" >&6; }
15316
15317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prpsinfo32_t in sys/procfs.h" >&5
15318$as_echo_n "checking for prpsinfo32_t in sys/procfs.h... " >&6; }
15319 if test "${bfd_cv_have_sys_procfs_type_prpsinfo32_t+set}" = set; then :
15320 $as_echo_n "(cached) " >&6
15321else
15322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15323/* end confdefs.h. */
15324
15325#define _SYSCALL32
15326/* Needed for new procfs interface on sparc-solaris. */
15327#define _STRUCTURED_PROC 1
15328#include <sys/procfs.h>
15329int
15330main ()
15331{
15332prpsinfo32_t avar
15333 ;
15334 return 0;
15335}
15336_ACEOF
15337if ac_fn_c_try_compile "$LINENO"; then :
15338 bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes
15339else
15340 bfd_cv_have_sys_procfs_type_prpsinfo32_t=no
15341
15342fi
15343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15344fi
15345
15346 if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then
15347
15348$as_echo "#define HAVE_PRPSINFO32_T 1" >>confdefs.h
15349
15350 fi
15351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&5
15352$as_echo "$bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&6; }
15353
15354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prpsinfo32_t.pr_pid in sys/procfs.h" >&5
15355$as_echo_n "checking for prpsinfo32_t.pr_pid in sys/procfs.h... " >&6; }
15356 if test "${bfd_cv_have_sys_procfs_type_member_prpsinfo32_t_pr_pid+set}" = set; then :
15357 $as_echo_n "(cached) " >&6
15358else
15359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15360/* end confdefs.h. */
15361
15362#define _SYSCALL32
15363/* Needed for new procfs interface on sparc-solaris. */
15364#define _STRUCTURED_PROC 1
15365#include <sys/procfs.h>
15366int
15367main ()
15368{
15369prpsinfo32_t avar; void* aref = (void*) &avar.pr_pid
15370 ;
15371 return 0;
15372}
15373_ACEOF
15374if ac_fn_c_try_compile "$LINENO"; then :
15375 bfd_cv_have_sys_procfs_type_member_prpsinfo32_t_pr_pid=yes
15376else
15377 bfd_cv_have_sys_procfs_type_member_prpsinfo32_t_pr_pid=no
15378
15379fi
15380rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15381fi
15382
15383 if test $bfd_cv_have_sys_procfs_type_member_prpsinfo32_t_pr_pid = yes; then
15384
15385$as_echo "#define HAVE_PRPSINFO32_T_PR_PID 1" >>confdefs.h
15386
15387 fi
15388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_prpsinfo32_t_pr_pid" >&5
15389$as_echo "$bfd_cv_have_sys_procfs_type_member_prpsinfo32_t_pr_pid" >&6; }
15390
15391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psinfo_t in sys/procfs.h" >&5
15392$as_echo_n "checking for psinfo_t in sys/procfs.h... " >&6; }
15393 if test "${bfd_cv_have_sys_procfs_type_psinfo_t+set}" = set; then :
15394 $as_echo_n "(cached) " >&6
15395else
15396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15397/* end confdefs.h. */
15398
15399#define _SYSCALL32
15400/* Needed for new procfs interface on sparc-solaris. */
15401#define _STRUCTURED_PROC 1
15402#include <sys/procfs.h>
15403int
15404main ()
15405{
15406psinfo_t avar
15407 ;
15408 return 0;
15409}
15410_ACEOF
15411if ac_fn_c_try_compile "$LINENO"; then :
15412 bfd_cv_have_sys_procfs_type_psinfo_t=yes
15413else
15414 bfd_cv_have_sys_procfs_type_psinfo_t=no
15415
15416fi
15417rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15418fi
15419
15420 if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
15421
15422$as_echo "#define HAVE_PSINFO_T 1" >>confdefs.h
15423
15424 fi
15425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psinfo_t" >&5
15426$as_echo "$bfd_cv_have_sys_procfs_type_psinfo_t" >&6; }
15427
15428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psinfo_t.pr_pid in sys/procfs.h" >&5
15429$as_echo_n "checking for psinfo_t.pr_pid in sys/procfs.h... " >&6; }
15430 if test "${bfd_cv_have_sys_procfs_type_member_psinfo_t_pr_pid+set}" = set; then :
15431 $as_echo_n "(cached) " >&6
15432else
15433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15434/* end confdefs.h. */
15435
15436#define _SYSCALL32
15437/* Needed for new procfs interface on sparc-solaris. */
15438#define _STRUCTURED_PROC 1
15439#include <sys/procfs.h>
15440int
15441main ()
15442{
15443psinfo_t avar; void* aref = (void*) &avar.pr_pid
15444 ;
15445 return 0;
15446}
15447_ACEOF
15448if ac_fn_c_try_compile "$LINENO"; then :
15449 bfd_cv_have_sys_procfs_type_member_psinfo_t_pr_pid=yes
15450else
15451 bfd_cv_have_sys_procfs_type_member_psinfo_t_pr_pid=no
15452
15453fi
15454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15455fi
15456
15457 if test $bfd_cv_have_sys_procfs_type_member_psinfo_t_pr_pid = yes; then
15458
15459$as_echo "#define HAVE_PSINFO_T_PR_PID 1" >>confdefs.h
15460
15461 fi
15462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_psinfo_t_pr_pid" >&5
15463$as_echo "$bfd_cv_have_sys_procfs_type_member_psinfo_t_pr_pid" >&6; }
15464
15465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psinfo32_t in sys/procfs.h" >&5
15466$as_echo_n "checking for psinfo32_t in sys/procfs.h... " >&6; }
15467 if test "${bfd_cv_have_sys_procfs_type_psinfo32_t+set}" = set; then :
15468 $as_echo_n "(cached) " >&6
15469else
15470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15471/* end confdefs.h. */
15472
15473#define _SYSCALL32
15474/* Needed for new procfs interface on sparc-solaris. */
15475#define _STRUCTURED_PROC 1
15476#include <sys/procfs.h>
15477int
15478main ()
15479{
15480psinfo32_t avar
15481 ;
15482 return 0;
15483}
15484_ACEOF
15485if ac_fn_c_try_compile "$LINENO"; then :
15486 bfd_cv_have_sys_procfs_type_psinfo32_t=yes
15487else
15488 bfd_cv_have_sys_procfs_type_psinfo32_t=no
15489
15490fi
15491rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15492fi
15493
15494 if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then
15495
15496$as_echo "#define HAVE_PSINFO32_T 1" >>confdefs.h
15497
15498 fi
15499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psinfo32_t" >&5
15500$as_echo "$bfd_cv_have_sys_procfs_type_psinfo32_t" >&6; }
15501
15502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psinfo32_t.pr_pid in sys/procfs.h" >&5
15503$as_echo_n "checking for psinfo32_t.pr_pid in sys/procfs.h... " >&6; }
15504 if test "${bfd_cv_have_sys_procfs_type_member_psinfo32_t_pr_pid+set}" = set; then :
15505 $as_echo_n "(cached) " >&6
15506else
15507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15508/* end confdefs.h. */
15509
15510#define _SYSCALL32
15511/* Needed for new procfs interface on sparc-solaris. */
15512#define _STRUCTURED_PROC 1
15513#include <sys/procfs.h>
15514int
15515main ()
15516{
15517psinfo32_t avar; void* aref = (void*) &avar.pr_pid
15518 ;
15519 return 0;
15520}
15521_ACEOF
15522if ac_fn_c_try_compile "$LINENO"; then :
15523 bfd_cv_have_sys_procfs_type_member_psinfo32_t_pr_pid=yes
15524else
15525 bfd_cv_have_sys_procfs_type_member_psinfo32_t_pr_pid=no
15526
15527fi
15528rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15529fi
15530
15531 if test $bfd_cv_have_sys_procfs_type_member_psinfo32_t_pr_pid = yes; then
15532
15533$as_echo "#define HAVE_PSINFO32_T_PR_PID 1" >>confdefs.h
15534
15535 fi
15536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_psinfo32_t_pr_pid" >&5
15537$as_echo "$bfd_cv_have_sys_procfs_type_member_psinfo32_t_pr_pid" >&6; }
15538
15539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpstatus_t in sys/procfs.h" >&5
15540$as_echo_n "checking for lwpstatus_t in sys/procfs.h... " >&6; }
15541 if test "${bfd_cv_have_sys_procfs_type_lwpstatus_t+set}" = set; then :
15542 $as_echo_n "(cached) " >&6
15543else
15544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15545/* end confdefs.h. */
15546
15547#define _SYSCALL32
15548/* Needed for new procfs interface on sparc-solaris. */
15549#define _STRUCTURED_PROC 1
15550#include <sys/procfs.h>
15551int
15552main ()
15553{
15554lwpstatus_t avar
15555 ;
15556 return 0;
15557}
15558_ACEOF
15559if ac_fn_c_try_compile "$LINENO"; then :
15560 bfd_cv_have_sys_procfs_type_lwpstatus_t=yes
15561else
15562 bfd_cv_have_sys_procfs_type_lwpstatus_t=no
15563
15564fi
15565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15566fi
15567
15568 if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
15569
15570$as_echo "#define HAVE_LWPSTATUS_T 1" >>confdefs.h
15571
15572 fi
15573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpstatus_t" >&5
15574$as_echo "$bfd_cv_have_sys_procfs_type_lwpstatus_t" >&6; }
15575
15576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpxstatus_t in sys/procfs.h" >&5
15577$as_echo_n "checking for lwpxstatus_t in sys/procfs.h... " >&6; }
15578 if test "${bfd_cv_have_sys_procfs_type_lwpxstatus_t+set}" = set; then :
15579 $as_echo_n "(cached) " >&6
15580else
15581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15582/* end confdefs.h. */
15583
15584#define _SYSCALL32
15585/* Needed for new procfs interface on sparc-solaris. */
15586#define _STRUCTURED_PROC 1
15587#include <sys/procfs.h>
15588int
15589main ()
15590{
15591lwpxstatus_t avar
15592 ;
15593 return 0;
15594}
15595_ACEOF
15596if ac_fn_c_try_compile "$LINENO"; then :
15597 bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes
15598else
15599 bfd_cv_have_sys_procfs_type_lwpxstatus_t=no
15600
15601fi
15602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15603fi
15604
15605 if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then
15606
15607$as_echo "#define HAVE_LWPXSTATUS_T 1" >>confdefs.h
5464f5a1 15608
c603b11b
AM
15609 fi
15610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&5
15611$as_echo "$bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&6; }
1012372a 15612
c603b11b
AM
15613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
15614$as_echo_n "checking for lwpstatus_t.pr_context in sys/procfs.h... " >&6; }
15615 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context+set}" = set; then :
15616 $as_echo_n "(cached) " >&6
15617else
15618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15619/* end confdefs.h. */
2ba49b59 15620
c603b11b
AM
15621#define _SYSCALL32
15622/* Needed for new procfs interface on sparc-solaris. */
15623#define _STRUCTURED_PROC 1
15624#include <sys/procfs.h>
15625int
15626main ()
15627{
15628lwpstatus_t avar; void* aref = (void*) &avar.pr_context
15629 ;
15630 return 0;
15631}
15632_ACEOF
15633if ac_fn_c_try_compile "$LINENO"; then :
15634 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes
15635else
15636 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no
5464f5a1 15637
c603b11b
AM
15638fi
15639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15640fi
1012372a 15641
c603b11b 15642 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
2ba49b59 15643
c603b11b 15644$as_echo "#define HAVE_LWPSTATUS_T_PR_CONTEXT 1" >>confdefs.h
1012372a 15645
c603b11b
AM
15646 fi
15647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&5
15648$as_echo "$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&6; }
81ecdfbb 15649
c603b11b
AM
15650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
15651$as_echo_n "checking for lwpstatus_t.pr_reg in sys/procfs.h... " >&6; }
15652 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg+set}" = set; then :
15653 $as_echo_n "(cached) " >&6
15654else
15655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
81ecdfbb 15656/* end confdefs.h. */
c603b11b
AM
15657
15658#define _SYSCALL32
15659/* Needed for new procfs interface on sparc-solaris. */
15660#define _STRUCTURED_PROC 1
15661#include <sys/procfs.h>
15662int
15663main ()
15664{
15665lwpstatus_t avar; void* aref = (void*) &avar.pr_reg
15666 ;
15667 return 0;
15668}
81ecdfbb 15669_ACEOF
c603b11b
AM
15670if ac_fn_c_try_compile "$LINENO"; then :
15671 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes
2ba49b59 15672else
c603b11b
AM
15673 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no
15674
15675fi
15676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2ba49b59 15677fi
1012372a 15678
c603b11b
AM
15679 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
15680
15681$as_echo "#define HAVE_LWPSTATUS_T_PR_REG 1" >>confdefs.h
15682
15683 fi
15684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&5
15685$as_echo "$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&6; }
15686
15687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpstatus_t.pr_fpreg in sys/procfs.h" >&5
15688$as_echo_n "checking for lwpstatus_t.pr_fpreg in sys/procfs.h... " >&6; }
15689 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg+set}" = set; then :
15690 $as_echo_n "(cached) " >&6
15691else
15692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15693/* end confdefs.h. */
15694
15695#define _SYSCALL32
15696/* Needed for new procfs interface on sparc-solaris. */
15697#define _STRUCTURED_PROC 1
15698#include <sys/procfs.h>
15699int
15700main ()
15701{
15702lwpstatus_t avar; void* aref = (void*) &avar.pr_fpreg
15703 ;
15704 return 0;
15705}
15706_ACEOF
15707if ac_fn_c_try_compile "$LINENO"; then :
15708 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg=yes
15709else
15710 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg=no
15711
15712fi
15713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15714fi
15715
15716 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg = yes; then
1012372a 15717
c603b11b
AM
15718$as_echo "#define HAVE_LWPSTATUS_T_PR_FPREG 1" >>confdefs.h
15719
15720 fi
15721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg" >&5
15722$as_echo "$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg" >&6; }
15723
15724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for win32_pstatus_t in sys/procfs.h" >&5
15725$as_echo_n "checking for win32_pstatus_t in sys/procfs.h... " >&6; }
15726 if test "${bfd_cv_have_sys_procfs_type_win32_pstatus_t+set}" = set; then :
15727 $as_echo_n "(cached) " >&6
15728else
15729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15730/* end confdefs.h. */
15731
15732#define _SYSCALL32
15733/* Needed for new procfs interface on sparc-solaris. */
15734#define _STRUCTURED_PROC 1
15735#include <sys/procfs.h>
15736int
15737main ()
15738{
15739win32_pstatus_t avar
15740 ;
15741 return 0;
15742}
15743_ACEOF
15744if ac_fn_c_try_compile "$LINENO"; then :
15745 bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes
15746else
15747 bfd_cv_have_sys_procfs_type_win32_pstatus_t=no
15748
15749fi
15750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15751fi
15752
15753 if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then
15754
15755$as_echo "#define HAVE_WIN32_PSTATUS_T 1" >>confdefs.h
15756
15757 fi
15758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&5
15759$as_echo "$bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&6; }
15760
15761 fi
15762fi
1012372a
AC
15763
15764
c603b11b 15765if test -n "$CORE_HEADER"; then
1012372a 15766
c603b11b
AM
15767cat >>confdefs.h <<_ACEOF
15768#define CORE_HEADER $CORE_HEADER
15769_ACEOF
252b5132 15770
c603b11b
AM
15771fi
15772if test -n "$TRAD_HEADER"; then
6be7c12c 15773
c603b11b
AM
15774cat >>confdefs.h <<_ACEOF
15775#define TRAD_HEADER $TRAD_HEADER
15776_ACEOF
5464f5a1 15777
c603b11b 15778fi
5464f5a1 15779
81ecdfbb
RW
15780if test "$plugins" = "yes"; then
15781 supports_plugins=1
5464f5a1 15782else
81ecdfbb 15783 supports_plugins=0
5464f5a1 15784fi
5464f5a1 15785
81ecdfbb 15786
3cf9e6c4 15787
96fe4562 15788# Determine the host dependent file_ptr a.k.a. off_t type. In order
81ecdfbb
RW
15789# prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and
15790# fseeko, long. This assumes that sizeof off_t is .ge. sizeof long.
15791# Hopefully a reasonable assumption since fseeko et.al. should be
15792# upward compatible.
15793for ac_func in ftello ftello64 fseeko fseeko64 fopen64
15794do :
15795 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15796ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15797eval as_val=\$$as_ac_var
15798 if test "x$as_val" = x""yes; then :
15799 cat >>confdefs.h <<_ACEOF
15800#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5464f5a1 15801_ACEOF
5464f5a1 15802
252b5132 15803fi
81ecdfbb 15804done
5464f5a1 15805
81ecdfbb
RW
15806if test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then
15807 # The cast to long int works around a bug in the HP C Compiler
15808# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15809# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15810# This bug is HP SR number 8606223364.
15811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
15812$as_echo_n "checking size of off_t... " >&6; }
15813if test "${ac_cv_sizeof_off_t+set}" = set; then :
15814 $as_echo_n "(cached) " >&6
6be7c12c 15815else
81ecdfbb 15816 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
5464f5a1 15817
81ecdfbb
RW
15818else
15819 if test "$ac_cv_type_off_t" = yes; then
15820 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15821$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15822{ as_fn_set_status 77
15823as_fn_error "cannot compute sizeof (off_t)
15824See \`config.log' for more details." "$LINENO" 5; }; }
15825 else
15826 ac_cv_sizeof_off_t=0
15827 fi
5464f5a1 15828fi
5464f5a1 15829
252b5132 15830fi
81ecdfbb
RW
15831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
15832$as_echo "$ac_cv_sizeof_off_t" >&6; }
5464f5a1 15833
252b5132 15834
5464f5a1 15835
81ecdfbb
RW
15836cat >>confdefs.h <<_ACEOF
15837#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
5464f5a1 15838_ACEOF
5464f5a1 15839
5464f5a1 15840
81ecdfbb
RW
15841fi
15842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking file_ptr type" >&5
15843$as_echo_n "checking file_ptr type... " >&6; }
15844bfd_file_ptr="long"
15845bfd_ufile_ptr="unsigned long"
15846if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \
15847 -o x"${ac_cv_sizeof_off_t}" = x8; then
15848 bfd_file_ptr=BFD_HOST_64_BIT
15849 bfd_ufile_ptr=BFD_HOST_U_64_BIT
15850fi
15851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_file_ptr" >&5
15852$as_echo "$bfd_file_ptr" >&6; }
15853
6be7c12c 15854
252b5132 15855
81ecdfbb
RW
15856for ac_header in stdlib.h unistd.h
15857do :
15858 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15859ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15860eval as_val=\$$as_ac_Header
15861 if test "x$as_val" = x""yes; then :
15862 cat >>confdefs.h <<_ACEOF
15863#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5464f5a1 15864_ACEOF
5464f5a1 15865
5464f5a1 15866fi
81ecdfbb
RW
15867
15868done
15869
15870for ac_func in getpagesize
15871do :
15872 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
15873if test "x$ac_cv_func_getpagesize" = x""yes; then :
5464f5a1 15874 cat >>confdefs.h <<_ACEOF
81ecdfbb 15875#define HAVE_GETPAGESIZE 1
5464f5a1 15876_ACEOF
252b5132 15877
252b5132
RH
15878fi
15879done
15880
81ecdfbb
RW
15881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
15882$as_echo_n "checking for working mmap... " >&6; }
15883if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
15884 $as_echo_n "(cached) " >&6
252b5132 15885else
81ecdfbb 15886 if test "$cross_compiling" = yes; then :
252b5132
RH
15887 ac_cv_func_mmap_fixed_mapped=no
15888else
81ecdfbb 15889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5464f5a1
NN
15890/* end confdefs.h. */
15891$ac_includes_default
15892/* malloc might have been renamed as rpl_malloc. */
15893#undef malloc
6be7c12c 15894
252b5132
RH
15895/* Thanks to Mike Haertel and Jim Avera for this test.
15896 Here is a matrix of mmap possibilities:
15897 mmap private not fixed
15898 mmap private fixed at somewhere currently unmapped
15899 mmap private fixed at somewhere already mapped
15900 mmap shared not fixed
15901 mmap shared fixed at somewhere currently unmapped
15902 mmap shared fixed at somewhere already mapped
15903 For private mappings, we should verify that changes cannot be read()
15904 back from the file, nor mmap's back from the file at a different
15905 address. (There have been systems where private was not correctly
15906 implemented like the infamous i386 svr4.0, and systems where the
5464f5a1 15907 VM page cache was not coherent with the file system buffer cache
252b5132
RH
15908 like early versions of FreeBSD and possibly contemporary NetBSD.)
15909 For shared mappings, we should conversely verify that changes get
5464f5a1 15910 propagated back to all the places they're supposed to be.
252b5132
RH
15911
15912 Grep wants private fixed already mapped.
15913 The main things grep needs to know about mmap are:
15914 * does it exist and is it safe to write into the mmap'd area
15915 * how to use it (BSD variants) */
5464f5a1 15916
252b5132
RH
15917#include <fcntl.h>
15918#include <sys/mman.h>
15919
81ecdfbb 15920#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
5464f5a1
NN
15921char *malloc ();
15922#endif
6be7c12c 15923
5464f5a1 15924/* This mess was copied from the GNU getpagesize.h. */
81ecdfbb 15925#ifndef HAVE_GETPAGESIZE
252b5132 15926/* Assume that all systems that can run configure have sys/param.h. */
81ecdfbb 15927# ifndef HAVE_SYS_PARAM_H
252b5132
RH
15928# define HAVE_SYS_PARAM_H 1
15929# endif
15930
15931# ifdef _SC_PAGESIZE
15932# define getpagesize() sysconf(_SC_PAGESIZE)
15933# else /* no _SC_PAGESIZE */
81ecdfbb 15934# ifdef HAVE_SYS_PARAM_H
252b5132
RH
15935# include <sys/param.h>
15936# ifdef EXEC_PAGESIZE
15937# define getpagesize() EXEC_PAGESIZE
15938# else /* no EXEC_PAGESIZE */
15939# ifdef NBPG
15940# define getpagesize() NBPG * CLSIZE
15941# ifndef CLSIZE
15942# define CLSIZE 1
15943# endif /* no CLSIZE */
15944# else /* no NBPG */
15945# ifdef NBPC
15946# define getpagesize() NBPC
15947# else /* no NBPC */
15948# ifdef PAGESIZE
15949# define getpagesize() PAGESIZE
15950# endif /* PAGESIZE */
15951# endif /* no NBPC */
15952# endif /* no NBPG */
15953# endif /* no EXEC_PAGESIZE */
15954# else /* no HAVE_SYS_PARAM_H */
15955# define getpagesize() 8192 /* punt totally */
15956# endif /* no HAVE_SYS_PARAM_H */
15957# endif /* no _SC_PAGESIZE */
15958
5464f5a1
NN
15959#endif /* no HAVE_GETPAGESIZE */
15960
15961int
15962main ()
15963{
15964 char *data, *data2, *data3;
15965 int i, pagesize;
15966 int fd;
15967
15968 pagesize = getpagesize ();
15969
15970 /* First, make a file with some known garbage in it. */
15971 data = (char *) malloc (pagesize);
15972 if (!data)
81ecdfbb 15973 return 1;
5464f5a1
NN
15974 for (i = 0; i < pagesize; ++i)
15975 *(data + i) = rand ();
15976 umask (0);
15977 fd = creat ("conftest.mmap", 0600);
15978 if (fd < 0)
81ecdfbb 15979 return 1;
5464f5a1 15980 if (write (fd, data, pagesize) != pagesize)
81ecdfbb 15981 return 1;
5464f5a1
NN
15982 close (fd);
15983
15984 /* Next, try to mmap the file at a fixed address which already has
15985 something else allocated at it. If we can, also make sure that
15986 we see the same garbage. */
15987 fd = open ("conftest.mmap", O_RDWR);
15988 if (fd < 0)
81ecdfbb 15989 return 1;
5464f5a1
NN
15990 data2 = (char *) malloc (2 * pagesize);
15991 if (!data2)
81ecdfbb
RW
15992 return 1;
15993 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
5464f5a1
NN
15994 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
15995 MAP_PRIVATE | MAP_FIXED, fd, 0L))
81ecdfbb 15996 return 1;
5464f5a1
NN
15997 for (i = 0; i < pagesize; ++i)
15998 if (*(data + i) != *(data2 + i))
81ecdfbb 15999 return 1;
5464f5a1
NN
16000
16001 /* Finally, make sure that changes to the mapped area do not
16002 percolate back to the file as seen by read(). (This is a bug on
16003 some variants of i386 svr4.0.) */
16004 for (i = 0; i < pagesize; ++i)
16005 *(data2 + i) = *(data2 + i) + 1;
16006 data3 = (char *) malloc (pagesize);
16007 if (!data3)
81ecdfbb 16008 return 1;
5464f5a1 16009 if (read (fd, data3, pagesize) != pagesize)
81ecdfbb 16010 return 1;
5464f5a1
NN
16011 for (i = 0; i < pagesize; ++i)
16012 if (*(data + i) != *(data3 + i))
81ecdfbb 16013 return 1;
5464f5a1 16014 close (fd);
81ecdfbb 16015 return 0;
5464f5a1
NN
16016}
16017_ACEOF
81ecdfbb 16018if ac_fn_c_try_run "$LINENO"; then :
5464f5a1
NN
16019 ac_cv_func_mmap_fixed_mapped=yes
16020else
81ecdfbb 16021 ac_cv_func_mmap_fixed_mapped=no
5464f5a1 16022fi
81ecdfbb
RW
16023rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16024 conftest.$ac_objext conftest.beam conftest.$ac_ext
5464f5a1 16025fi
81ecdfbb 16026
5464f5a1 16027fi
81ecdfbb
RW
16028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
16029$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
5464f5a1
NN
16030if test $ac_cv_func_mmap_fixed_mapped = yes; then
16031
81ecdfbb 16032$as_echo "#define HAVE_MMAP 1" >>confdefs.h
5464f5a1
NN
16033
16034fi
16035rm -f conftest.mmap
16036
5464f5a1 16037for ac_func in madvise mprotect
81ecdfbb
RW
16038do :
16039 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16040ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16041eval as_val=\$$as_ac_var
16042 if test "x$as_val" = x""yes; then :
5464f5a1 16043 cat >>confdefs.h <<_ACEOF
81ecdfbb 16044#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5464f5a1
NN
16045_ACEOF
16046
16047fi
16048done
16049
16050case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
16051 true+yes )
81ecdfbb 16052$as_echo "#define USE_MMAP 1" >>confdefs.h
5464f5a1
NN
16053 ;;
16054esac
16055
16056rm -f doc/config.status
81ecdfbb 16057ac_config_files="$ac_config_files Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in"
5464f5a1 16058
20e95c23 16059
81ecdfbb 16060ac_config_commands="$ac_config_commands default"
5464f5a1 16061
108a6f8e
CD
16062
16063
16064
16065
16066
31dd3154 16067
5464f5a1
NN
16068cat >confcache <<\_ACEOF
16069# This file is a shell script that caches the results of configure
16070# tests run on this system so they can be shared between configure
16071# scripts and configure runs, see configure's option --config-cache.
16072# It is not useful on other systems. If it contains results you don't
16073# want to keep, you may remove or edit it.
16074#
16075# config.status only pays attention to the cache file if you give it
16076# the --recheck option to rerun configure.
16077#
16078# `ac_cv_env_foo' variables (set or unset) will be overridden when
16079# loading this file, other *unset* `ac_cv_foo' will be assigned the
16080# following values.
16081
16082_ACEOF
16083
16084# The following way of writing the cache mishandles newlines in values,
16085# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 16086# So, we kill variables containing newlines.
5464f5a1
NN
16087# Ultrix sh set writes to stderr and can't be redirected directly,
16088# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
16089(
16090 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16091 eval ac_val=\$$ac_var
16092 case $ac_val in #(
16093 *${as_nl}*)
16094 case $ac_var in #(
16095 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16096$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16097 esac
16098 case $ac_var in #(
16099 _ | IFS | as_nl) ;; #(
16100 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16101 *) { eval $ac_var=; unset $ac_var;} ;;
16102 esac ;;
16103 esac
16104 done
16105
5464f5a1 16106 (set) 2>&1 |
81ecdfbb
RW
16107 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16108 *${as_nl}ac_space=\ *)
16109 # `set' does not quote correctly, so add quotes: double-quote
16110 # substitution turns \\\\ into \\, and sed turns \\ into \.
5464f5a1
NN
16111 sed -n \
16112 "s/'/'\\\\''/g;
16113 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 16114 ;; #(
5464f5a1
NN
16115 *)
16116 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 16117 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5464f5a1 16118 ;;
81ecdfbb
RW
16119 esac |
16120 sort
16121) |
5464f5a1 16122 sed '
81ecdfbb 16123 /^ac_cv_env_/b end
5464f5a1 16124 t clear
81ecdfbb 16125 :clear
5464f5a1
NN
16126 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16127 t end
81ecdfbb
RW
16128 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16129 :end' >>confcache
16130if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16131 if test -w "$cache_file"; then
16132 test "x$cache_file" != "x/dev/null" &&
16133 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16134$as_echo "$as_me: updating cache $cache_file" >&6;}
5464f5a1
NN
16135 cat confcache >$cache_file
16136 else
81ecdfbb
RW
16137 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16138$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5464f5a1
NN
16139 fi
16140fi
16141rm -f confcache
16142
16143test "x$prefix" = xNONE && prefix=$ac_default_prefix
16144# Let make expand exec_prefix.
16145test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16146
5464f5a1
NN
16147DEFS=-DHAVE_CONFIG_H
16148
16149ac_libobjs=
16150ac_ltlibobjs=
16151for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16152 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
16153 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16154 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16155 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16156 # will be set to the directory where LIBOBJS objects are built.
16157 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16158 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
5464f5a1
NN
16159done
16160LIBOBJS=$ac_libobjs
16161
16162LTLIBOBJS=$ac_ltlibobjs
16163
16164
f5385ebf 16165if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
81ecdfbb
RW
16166 as_fn_error "conditional \"AMDEP\" was never defined.
16167Usually this means the macro was only invoked conditionally." "$LINENO" 5
f5385ebf
AM
16168fi
16169if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
81ecdfbb
RW
16170 as_fn_error "conditional \"am__fastdepCC\" was never defined.
16171Usually this means the macro was only invoked conditionally." "$LINENO" 5
16172fi
16173 if test -n "$EXEEXT"; then
16174 am__EXEEXT_TRUE=
16175 am__EXEEXT_FALSE='#'
16176else
16177 am__EXEEXT_TRUE='#'
16178 am__EXEEXT_FALSE=
f5385ebf 16179fi
81ecdfbb 16180
ce3c775b 16181if test -z "${PLUGINS_TRUE}" && test -z "${PLUGINS_FALSE}"; then
81ecdfbb
RW
16182 as_fn_error "conditional \"PLUGINS\" was never defined.
16183Usually this means the macro was only invoked conditionally." "$LINENO" 5
ce3c775b 16184fi
f5385ebf 16185if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
81ecdfbb
RW
16186 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
16187Usually this means the macro was only invoked conditionally." "$LINENO" 5
f5385ebf 16188fi
d5fbea21 16189if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
81ecdfbb
RW
16190 as_fn_error "conditional \"GENINSRC_NEVER\" was never defined.
16191Usually this means the macro was only invoked conditionally." "$LINENO" 5
d5fbea21 16192fi
f5385ebf 16193if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then
81ecdfbb
RW
16194 as_fn_error "conditional \"INSTALL_LIBBFD\" was never defined.
16195Usually this means the macro was only invoked conditionally." "$LINENO" 5
f5385ebf 16196fi
5464f5a1
NN
16197
16198: ${CONFIG_STATUS=./config.status}
81ecdfbb 16199ac_write_fail=0
5464f5a1
NN
16200ac_clean_files_save=$ac_clean_files
16201ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
16202{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16203$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16204as_write_fail=0
16205cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5464f5a1
NN
16206#! $SHELL
16207# Generated by $as_me.
16208# Run this file to recreate the current configuration.
16209# Compiler output produced by configure, useful for debugging
16210# configure, is in config.log if it exists.
16211
16212debug=false
16213ac_cs_recheck=false
16214ac_cs_silent=false
5464f5a1 16215
81ecdfbb
RW
16216SHELL=\${CONFIG_SHELL-$SHELL}
16217export SHELL
16218_ASEOF
16219cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16220## -------------------- ##
16221## M4sh Initialization. ##
16222## -------------------- ##
5464f5a1 16223
81ecdfbb
RW
16224# Be more Bourne compatible
16225DUALCASE=1; export DUALCASE # for MKS sh
16226if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5464f5a1
NN
16227 emulate sh
16228 NULLCMD=:
81ecdfbb 16229 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5464f5a1
NN
16230 # is contrary to our usage. Disable this feature.
16231 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
16232 setopt NO_GLOB_SUBST
16233else
16234 case `(set -o) 2>/dev/null` in #(
16235 *posix*) :
16236 set -o posix ;; #(
16237 *) :
16238 ;;
16239esac
5464f5a1 16240fi
5464f5a1 16241
81ecdfbb
RW
16242
16243as_nl='
16244'
16245export as_nl
16246# Printing a long string crashes Solaris 7 /usr/bin/printf.
16247as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16248as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16249as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16250# Prefer a ksh shell builtin over an external printf program on Solaris,
16251# but without wasting forks for bash or zsh.
16252if test -z "$BASH_VERSION$ZSH_VERSION" \
16253 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16254 as_echo='print -r --'
16255 as_echo_n='print -rn --'
16256elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16257 as_echo='printf %s\n'
16258 as_echo_n='printf %s'
16259else
16260 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16261 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16262 as_echo_n='/usr/ucb/echo -n'
16263 else
16264 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16265 as_echo_n_body='eval
16266 arg=$1;
16267 case $arg in #(
16268 *"$as_nl"*)
16269 expr "X$arg" : "X\\(.*\\)$as_nl";
16270 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16271 esac;
16272 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16273 '
16274 export as_echo_n_body
16275 as_echo_n='sh -c $as_echo_n_body as_echo'
16276 fi
16277 export as_echo_body
16278 as_echo='sh -c $as_echo_body as_echo'
16279fi
16280
16281# The user is always right.
16282if test "${PATH_SEPARATOR+set}" != set; then
16283 PATH_SEPARATOR=:
16284 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16285 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16286 PATH_SEPARATOR=';'
16287 }
5464f5a1
NN
16288fi
16289
16290
81ecdfbb
RW
16291# IFS
16292# We need space, tab and new line, in precisely that order. Quoting is
16293# there to prevent editors from complaining about space-tab.
16294# (If _AS_PATH_WALK were called with IFS unset, it would disable word
16295# splitting by setting IFS to empty value.)
16296IFS=" "" $as_nl"
16297
16298# Find who we are. Look in the path if we contain no directory separator.
16299case $0 in #((
16300 *[\\/]* ) as_myself=$0 ;;
16301 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16302for as_dir in $PATH
16303do
16304 IFS=$as_save_IFS
16305 test -z "$as_dir" && as_dir=.
16306 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16307 done
16308IFS=$as_save_IFS
16309
16310 ;;
16311esac
16312# We did not find ourselves, most probably we were run as `sh COMMAND'
16313# in which case we are not to be found in the path.
16314if test "x$as_myself" = x; then
16315 as_myself=$0
16316fi
16317if test ! -f "$as_myself"; then
16318 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16319 exit 1
16320fi
16321
16322# Unset variables that we do not need and which cause bugs (e.g. in
16323# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16324# suppresses any "Segmentation fault" message there. '((' could
16325# trigger a bug in pdksh 5.2.14.
16326for as_var in BASH_ENV ENV MAIL MAILPATH
16327do eval test x\${$as_var+set} = xset \
16328 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16329done
5464f5a1
NN
16330PS1='$ '
16331PS2='> '
16332PS4='+ '
16333
16334# NLS nuisances.
81ecdfbb
RW
16335LC_ALL=C
16336export LC_ALL
16337LANGUAGE=C
16338export LANGUAGE
16339
16340# CDPATH.
16341(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16342
16343
16344# as_fn_error ERROR [LINENO LOG_FD]
16345# ---------------------------------
16346# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16347# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16348# script with status $?, using 1 if that was 0.
16349as_fn_error ()
16350{
16351 as_status=$?; test $as_status -eq 0 && as_status=1
16352 if test "$3"; then
16353 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16354 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
5464f5a1 16355 fi
81ecdfbb
RW
16356 $as_echo "$as_me: error: $1" >&2
16357 as_fn_exit $as_status
16358} # as_fn_error
16359
16360
16361# as_fn_set_status STATUS
16362# -----------------------
16363# Set $? to STATUS, without forking.
16364as_fn_set_status ()
16365{
16366 return $1
16367} # as_fn_set_status
16368
16369# as_fn_exit STATUS
16370# -----------------
16371# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16372as_fn_exit ()
16373{
16374 set +e
16375 as_fn_set_status $1
16376 exit $1
16377} # as_fn_exit
16378
16379# as_fn_unset VAR
16380# ---------------
16381# Portably unset VAR.
16382as_fn_unset ()
16383{
16384 { eval $1=; unset $1;}
16385}
16386as_unset=as_fn_unset
16387# as_fn_append VAR VALUE
16388# ----------------------
16389# Append the text in VALUE to the end of the definition contained in VAR. Take
16390# advantage of any shell optimizations that allow amortized linear growth over
16391# repeated appends, instead of the typical quadratic growth present in naive
16392# implementations.
16393if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16394 eval 'as_fn_append ()
16395 {
16396 eval $1+=\$2
16397 }'
16398else
16399 as_fn_append ()
16400 {
16401 eval $1=\$$1\$2
16402 }
16403fi # as_fn_append
16404
16405# as_fn_arith ARG...
16406# ------------------
16407# Perform arithmetic evaluation on the ARGs, and store the result in the
16408# global $as_val. Take advantage of shells that can avoid forks. The arguments
16409# must be portable across $(()) and expr.
16410if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16411 eval 'as_fn_arith ()
16412 {
16413 as_val=$(( $* ))
16414 }'
16415else
16416 as_fn_arith ()
16417 {
16418 as_val=`expr "$@" || test $? -eq 1`
16419 }
16420fi # as_fn_arith
16421
5464f5a1 16422
81ecdfbb
RW
16423if expr a : '\(a\)' >/dev/null 2>&1 &&
16424 test "X`expr 00001 : '.*\(...\)'`" = X001; then
5464f5a1
NN
16425 as_expr=expr
16426else
16427 as_expr=false
16428fi
16429
81ecdfbb 16430if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5464f5a1
NN
16431 as_basename=basename
16432else
16433 as_basename=false
16434fi
252b5132 16435
81ecdfbb
RW
16436if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16437 as_dirname=dirname
16438else
16439 as_dirname=false
16440fi
6be7c12c 16441
81ecdfbb 16442as_me=`$as_basename -- "$0" ||
5464f5a1
NN
16443$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16444 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
16445 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16446$as_echo X/"$0" |
16447 sed '/^.*\/\([^/][^/]*\)\/*$/{
16448 s//\1/
16449 q
16450 }
16451 /^X\/\(\/\/\)$/{
16452 s//\1/
16453 q
16454 }
16455 /^X\/\(\/\).*/{
16456 s//\1/
16457 q
16458 }
16459 s/.*/./; q'`
5464f5a1 16460
5464f5a1
NN
16461# Avoid depending upon Character Ranges.
16462as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16463as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16464as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16465as_cr_digits='0123456789'
16466as_cr_alnum=$as_cr_Letters$as_cr_digits
16467
81ecdfbb
RW
16468ECHO_C= ECHO_N= ECHO_T=
16469case `echo -n x` in #(((((
16470-n*)
16471 case `echo 'xy\c'` in
16472 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16473 xy) ECHO_C='\c';;
16474 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16475 ECHO_T=' ';;
16476 esac;;
16477*)
16478 ECHO_N='-n';;
5464f5a1
NN
16479esac
16480
81ecdfbb
RW
16481rm -f conf$$ conf$$.exe conf$$.file
16482if test -d conf$$.dir; then
16483 rm -f conf$$.dir/conf$$.file
252b5132 16484else
81ecdfbb
RW
16485 rm -f conf$$.dir
16486 mkdir conf$$.dir 2>/dev/null
252b5132 16487fi
81ecdfbb
RW
16488if (echo >conf$$.file) 2>/dev/null; then
16489 if ln -s conf$$.file conf$$ 2>/dev/null; then
5464f5a1 16490 as_ln_s='ln -s'
81ecdfbb
RW
16491 # ... but there are two gotchas:
16492 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16493 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16494 # In both cases, we have to default to `cp -p'.
16495 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16496 as_ln_s='cp -p'
16497 elif ln conf$$.file conf$$ 2>/dev/null; then
16498 as_ln_s=ln
16499 else
16500 as_ln_s='cp -p'
5464f5a1 16501 fi
5464f5a1
NN
16502else
16503 as_ln_s='cp -p'
252b5132 16504fi
81ecdfbb
RW
16505rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16506rmdir conf$$.dir 2>/dev/null
16507
16508
16509# as_fn_mkdir_p
16510# -------------
16511# Create "$as_dir" as a directory, including parents if necessary.
16512as_fn_mkdir_p ()
16513{
16514
16515 case $as_dir in #(
16516 -*) as_dir=./$as_dir;;
16517 esac
16518 test -d "$as_dir" || eval $as_mkdir_p || {
16519 as_dirs=
16520 while :; do
16521 case $as_dir in #(
16522 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16523 *) as_qdir=$as_dir;;
16524 esac
16525 as_dirs="'$as_qdir' $as_dirs"
16526 as_dir=`$as_dirname -- "$as_dir" ||
16527$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16528 X"$as_dir" : 'X\(//\)[^/]' \| \
16529 X"$as_dir" : 'X\(//\)$' \| \
16530 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16531$as_echo X"$as_dir" |
16532 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16533 s//\1/
16534 q
16535 }
16536 /^X\(\/\/\)[^/].*/{
16537 s//\1/
16538 q
16539 }
16540 /^X\(\/\/\)$/{
16541 s//\1/
16542 q
16543 }
16544 /^X\(\/\).*/{
16545 s//\1/
16546 q
16547 }
16548 s/.*/./; q'`
16549 test -d "$as_dir" && break
16550 done
16551 test -z "$as_dirs" || eval "mkdir $as_dirs"
16552 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
16553
6be7c12c 16554
81ecdfbb 16555} # as_fn_mkdir_p
5464f5a1 16556if mkdir -p . 2>/dev/null; then
81ecdfbb 16557 as_mkdir_p='mkdir -p "$as_dir"'
5464f5a1
NN
16558else
16559 test -d ./-p && rmdir ./-p
16560 as_mkdir_p=false
252b5132 16561fi
81ecdfbb
RW
16562
16563if test -x / >/dev/null 2>&1; then
16564 as_test_x='test -x'
16565else
16566 if ls -dL / >/dev/null 2>&1; then
16567 as_ls_L_option=L
16568 else
16569 as_ls_L_option=
16570 fi
16571 as_test_x='
16572 eval sh -c '\''
16573 if test -d "$1"; then
16574 test -d "$1/.";
16575 else
16576 case $1 in #(
16577 -*)set "./$1";;
16578 esac;
16579 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16580 ???[sx]*):;;*)false;;esac;fi
16581 '\'' sh
16582 '
16583fi
16584as_executable_p=$as_test_x
252b5132 16585
5464f5a1
NN
16586# Sed expression to map a string onto a valid CPP name.
16587as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
252b5132 16588
5464f5a1
NN
16589# Sed expression to map a string onto a valid variable name.
16590as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6be7c12c 16591
252b5132 16592
5464f5a1 16593exec 6>&1
81ecdfbb
RW
16594## ----------------------------------- ##
16595## Main body of $CONFIG_STATUS script. ##
16596## ----------------------------------- ##
16597_ASEOF
16598test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
5464f5a1 16599
81ecdfbb
RW
16600cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16601# Save the log message, to keep $0 and so on meaningful, and to
5464f5a1 16602# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
16603# values after options handling.
16604ac_log="
55e99962 16605This file was extended by bfd $as_me 2.30.52, which was
81ecdfbb 16606generated by GNU Autoconf 2.64. Invocation command line was
5464f5a1
NN
16607
16608 CONFIG_FILES = $CONFIG_FILES
16609 CONFIG_HEADERS = $CONFIG_HEADERS
16610 CONFIG_LINKS = $CONFIG_LINKS
16611 CONFIG_COMMANDS = $CONFIG_COMMANDS
16612 $ $0 $@
16613
81ecdfbb
RW
16614on `(hostname || uname -n) 2>/dev/null | sed 1q`
16615"
16616
5464f5a1
NN
16617_ACEOF
16618
81ecdfbb
RW
16619case $ac_config_files in *"
16620"*) set x $ac_config_files; shift; ac_config_files=$*;;
16621esac
5464f5a1 16622
81ecdfbb
RW
16623case $ac_config_headers in *"
16624"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16625esac
252b5132 16626
252b5132 16627
81ecdfbb
RW
16628cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16629# Files that config.status was made for.
16630config_files="$ac_config_files"
16631config_headers="$ac_config_headers"
16632config_commands="$ac_config_commands"
252b5132 16633
81ecdfbb 16634_ACEOF
5464f5a1 16635
81ecdfbb 16636cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5464f5a1 16637ac_cs_usage="\
81ecdfbb
RW
16638\`$as_me' instantiates files and other configuration actions
16639from templates according to the current configuration. Unless the files
16640and actions are specified as TAGs, all are instantiated by default.
5464f5a1 16641
81ecdfbb 16642Usage: $0 [OPTION]... [TAG]...
5464f5a1
NN
16643
16644 -h, --help print this help, then exit
81ecdfbb
RW
16645 -V, --version print version number and configuration settings, then exit
16646 -q, --quiet, --silent
16647 do not print progress messages
5464f5a1
NN
16648 -d, --debug don't remove temporary files
16649 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
16650 --file=FILE[:TEMPLATE]
16651 instantiate the configuration file FILE
16652 --header=FILE[:TEMPLATE]
16653 instantiate the configuration header FILE
5464f5a1
NN
16654
16655Configuration files:
16656$config_files
16657
16658Configuration headers:
16659$config_headers
16660
16661Configuration commands:
16662$config_commands
16663
81ecdfbb 16664Report bugs to the package provider."
5464f5a1 16665
81ecdfbb
RW
16666_ACEOF
16667cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5464f5a1 16668ac_cs_version="\\
55e99962 16669bfd config.status 2.30.52
81ecdfbb
RW
16670configured by $0, generated by GNU Autoconf 2.64,
16671 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
5464f5a1 16672
81ecdfbb 16673Copyright (C) 2009 Free Software Foundation, Inc.
5464f5a1
NN
16674This config.status script is free software; the Free Software Foundation
16675gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
16676
16677ac_pwd='$ac_pwd'
16678srcdir='$srcdir'
16679INSTALL='$INSTALL'
16680MKDIR_P='$MKDIR_P'
16681AWK='$AWK'
16682test -n "\$AWK" || AWK=awk
5464f5a1
NN
16683_ACEOF
16684
81ecdfbb
RW
16685cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16686# The default lists apply if the user does not specify any file.
5464f5a1
NN
16687ac_need_defaults=:
16688while test $# != 0
16689do
16690 case $1 in
16691 --*=*)
81ecdfbb
RW
16692 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16693 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5464f5a1 16694 ac_shift=:
6be7c12c 16695 ;;
81ecdfbb 16696 *)
5464f5a1
NN
16697 ac_option=$1
16698 ac_optarg=$2
16699 ac_shift=shift
6be7c12c 16700 ;;
5464f5a1 16701 esac
252b5132 16702
5464f5a1
NN
16703 case $ac_option in
16704 # Handling of the options.
5464f5a1
NN
16705 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16706 ac_cs_recheck=: ;;
81ecdfbb
RW
16707 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16708 $as_echo "$ac_cs_version"; exit ;;
16709 --debug | --debu | --deb | --de | --d | -d )
5464f5a1
NN
16710 debug=: ;;
16711 --file | --fil | --fi | --f )
16712 $ac_shift
81ecdfbb
RW
16713 case $ac_optarg in
16714 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16715 esac
16716 as_fn_append CONFIG_FILES " '$ac_optarg'"
5464f5a1
NN
16717 ac_need_defaults=false;;
16718 --header | --heade | --head | --hea )
16719 $ac_shift
81ecdfbb
RW
16720 case $ac_optarg in
16721 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16722 esac
16723 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
5464f5a1 16724 ac_need_defaults=false;;
81ecdfbb
RW
16725 --he | --h)
16726 # Conflict between --help and --header
16727 as_fn_error "ambiguous option: \`$1'
16728Try \`$0 --help' for more information.";;
16729 --help | --hel | -h )
16730 $as_echo "$ac_cs_usage"; exit ;;
5464f5a1
NN
16731 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16732 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16733 ac_cs_silent=: ;;
6be7c12c 16734
5464f5a1 16735 # This is an error.
81ecdfbb
RW
16736 -*) as_fn_error "unrecognized option: \`$1'
16737Try \`$0 --help' for more information." ;;
252b5132 16738
81ecdfbb
RW
16739 *) as_fn_append ac_config_targets " $1"
16740 ac_need_defaults=false ;;
252b5132 16741
5464f5a1
NN
16742 esac
16743 shift
16744done
6be7c12c 16745
5464f5a1 16746ac_configure_extra_args=
252b5132 16747
5464f5a1
NN
16748if $ac_cs_silent; then
16749 exec 6>/dev/null
16750 ac_configure_extra_args="$ac_configure_extra_args --silent"
16751fi
6be7c12c 16752
5464f5a1 16753_ACEOF
81ecdfbb 16754cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5464f5a1 16755if \$ac_cs_recheck; then
81ecdfbb
RW
16756 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16757 shift
16758 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16759 CONFIG_SHELL='$SHELL'
16760 export CONFIG_SHELL
16761 exec "\$@"
5464f5a1
NN
16762fi
16763
16764_ACEOF
81ecdfbb
RW
16765cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16766exec 5>>config.log
16767{
16768 echo
16769 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16770## Running $as_me. ##
16771_ASBOX
16772 $as_echo "$ac_log"
16773} >&5
5464f5a1 16774
81ecdfbb
RW
16775_ACEOF
16776cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6be7c12c 16777#
81ecdfbb 16778# INIT-COMMANDS
6be7c12c 16779#
f5385ebf 16780AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
d7040cdb
SE
16781
16782
16783# The HP-UX ksh and POSIX shell print the target directory to stdout
16784# if CDPATH is set.
16785(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16786
16787sed_quote_subst='$sed_quote_subst'
16788double_quote_subst='$double_quote_subst'
16789delay_variable_subst='$delay_variable_subst'
3725885a
RW
16790enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16791macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16792macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16793enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16794pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16795enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16796SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16797ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16798host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16799host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16800host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16801build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16802build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16803build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16804SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16805Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16806GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16807EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16808FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16809LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16810NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16811LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16812max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16813ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16814exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16815lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16816lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16817lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16818reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16819reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16820OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16821deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16822file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16823AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16824AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16825STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16826RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16827old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16828old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16829old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16830lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16831CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16832CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16833compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16834GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16835lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16836lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16837lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16838lt_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"`'
16839objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16840MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16841lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16842lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16843lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16844lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16845lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16846need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16847DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16848NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16849LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16850OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16851OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16852libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16853shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16854extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16855archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16856enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16857export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16858whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16859compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16860old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16861old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16862archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16863archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16864module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16865module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16866with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16867allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16868no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16869hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16870hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16871hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16872hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16873hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16874hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16875hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16876hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16877inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16878link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16879fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16880always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16881export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16882exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16883include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16884prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16885file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16886variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16887need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16888need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16889version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16890runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16891shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16892shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16893libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16894library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16895soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16896install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16897postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16898postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16899finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16900finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16901hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16902sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16903sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16904hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16905enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16906enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16907enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16908old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16909striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
d7040cdb
SE
16910
16911LTCC='$LTCC'
16912LTCFLAGS='$LTCFLAGS'
16913compiler='$compiler_DEFAULT'
16914
3725885a
RW
16915# A function that is used when there is no print builtin or printf.
16916func_fallback_echo ()
16917{
16918 eval 'cat <<_LTECHO_EOF
16919\$1
16920_LTECHO_EOF'
16921}
16922
d7040cdb 16923# Quote evaled strings.
3725885a
RW
16924for var in SHELL \
16925ECHO \
16926SED \
d7040cdb
SE
16927GREP \
16928EGREP \
16929FGREP \
16930LD \
16931NM \
16932LN_S \
16933lt_SP2NL \
16934lt_NL2SP \
16935reload_flag \
718a6fd8 16936OBJDUMP \
d7040cdb
SE
16937deplibs_check_method \
16938file_magic_cmd \
16939AR \
16940AR_FLAGS \
16941STRIP \
16942RANLIB \
16943CC \
16944CFLAGS \
16945compiler \
16946lt_cv_sys_global_symbol_pipe \
16947lt_cv_sys_global_symbol_to_cdecl \
16948lt_cv_sys_global_symbol_to_c_name_address \
718a6fd8 16949lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
d7040cdb
SE
16950lt_prog_compiler_no_builtin_flag \
16951lt_prog_compiler_wl \
16952lt_prog_compiler_pic \
16953lt_prog_compiler_static \
16954lt_cv_prog_compiler_c_o \
16955need_locks \
718a6fd8
SE
16956DSYMUTIL \
16957NMEDIT \
16958LIPO \
16959OTOOL \
16960OTOOL64 \
d7040cdb
SE
16961shrext_cmds \
16962export_dynamic_flag_spec \
16963whole_archive_flag_spec \
16964compiler_needs_object \
16965with_gnu_ld \
16966allow_undefined_flag \
16967no_undefined_flag \
16968hardcode_libdir_flag_spec \
16969hardcode_libdir_flag_spec_ld \
16970hardcode_libdir_separator \
16971fix_srcfile_path \
16972exclude_expsyms \
16973include_expsyms \
16974file_list_spec \
16975variables_saved_for_relink \
16976libname_spec \
16977library_names_spec \
16978soname_spec \
3725885a 16979install_override_mode \
d7040cdb
SE
16980finish_eval \
16981old_striplib \
16982striplib; do
3725885a 16983 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
d7040cdb 16984 *[\\\\\\\`\\"\\\$]*)
3725885a 16985 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
d7040cdb
SE
16986 ;;
16987 *)
16988 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16989 ;;
16990 esac
16991done
16992
16993# Double-quote double-evaled strings.
16994for var in reload_cmds \
16995old_postinstall_cmds \
16996old_postuninstall_cmds \
16997old_archive_cmds \
16998extract_expsyms_cmds \
16999old_archive_from_new_cmds \
17000old_archive_from_expsyms_cmds \
17001archive_cmds \
17002archive_expsym_cmds \
17003module_cmds \
17004module_expsym_cmds \
17005export_symbols_cmds \
17006prelink_cmds \
17007postinstall_cmds \
17008postuninstall_cmds \
17009finish_cmds \
17010sys_lib_search_path_spec \
17011sys_lib_dlsearch_path_spec; do
3725885a 17012 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
d7040cdb 17013 *[\\\\\\\`\\"\\\$]*)
3725885a 17014 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
d7040cdb
SE
17015 ;;
17016 *)
17017 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17018 ;;
17019 esac
17020done
17021
d7040cdb
SE
17022ac_aux_dir='$ac_aux_dir'
17023xsi_shell='$xsi_shell'
17024lt_shell_append='$lt_shell_append'
17025
17026# See if we are running on zsh, and set the options which allow our
17027# commands through without removal of \ escapes INIT.
17028if test -n "\${ZSH_VERSION+set}" ; then
17029 setopt NO_GLOB_SUBST
17030fi
17031
17032
17033 PACKAGE='$PACKAGE'
17034 VERSION='$VERSION'
17035 TIMESTAMP='$TIMESTAMP'
17036 RM='$RM'
17037 ofile='$ofile'
17038
17039
17040
20e95c23
DJ
17041# Capture the value of obsolete ALL_LINGUAS because we need it to compute
17042 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
17043 # from automake.
17044 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
17045 # Capture the value of LINGUAS because we need it to compute CATALOGS.
17046 LINGUAS="${LINGUAS-%UNSET%}"
17047
5464f5a1 17048
f3b4f6d0
PB
17049GCC="$GCC"
17050CC="$CC"
17051acx_cv_header_stdint="$acx_cv_header_stdint"
17052acx_cv_type_int8_t="$acx_cv_type_int8_t"
17053acx_cv_type_int16_t="$acx_cv_type_int16_t"
17054acx_cv_type_int32_t="$acx_cv_type_int32_t"
17055acx_cv_type_int64_t="$acx_cv_type_int64_t"
17056acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
17057ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
17058ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
17059ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
17060ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
17061ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
d5efd9fc
AM
17062ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
17063ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
f3b4f6d0 17064ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
d5efd9fc
AM
17065
17066
5464f5a1
NN
17067
17068_ACEOF
17069
81ecdfbb 17070cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5464f5a1 17071
81ecdfbb 17072# Handling of arguments.
5464f5a1 17073for ac_config_target in $ac_config_targets
252b5132 17074do
81ecdfbb
RW
17075 case $ac_config_target in
17076 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17077 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17078 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
17079 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
17080 "bfd_stdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS bfd_stdint.h" ;;
17081 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17082 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17083 "bfd-in3.h") CONFIG_FILES="$CONFIG_FILES bfd-in3.h:bfd-in2.h" ;;
17084 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
17085 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
17086
17087 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
252b5132
RH
17088 esac
17089done
17090
81ecdfbb 17091
5464f5a1
NN
17092# If the user did not use the arguments to specify the items to instantiate,
17093# then the envvar interface is used. Set only those that are not.
17094# We use the long form for the default assignment because of an extremely
17095# bizarre bug on SunOS 4.1.3.
17096if $ac_need_defaults; then
17097 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17098 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17099 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17100fi
17101
17102# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 17103# simply because there is no reason against having it here, and in addition,
5464f5a1 17104# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
17105# Hook for its removal unless debugging.
17106# Note that there is a small window in which the directory will not be cleaned:
17107# after its creation but before its name has been assigned to `$tmp'.
5464f5a1
NN
17108$debug ||
17109{
81ecdfbb
RW
17110 tmp=
17111 trap 'exit_status=$?
17112 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17113' 0
17114 trap 'as_fn_exit 1' 1 2 13 15
5464f5a1 17115}
5464f5a1 17116# Create a (secure) tmp directory for tmp files.
b3baf5d0 17117
5464f5a1 17118{
81ecdfbb 17119 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5464f5a1
NN
17120 test -n "$tmp" && test -d "$tmp"
17121} ||
17122{
81ecdfbb
RW
17123 tmp=./conf$$-$RANDOM
17124 (umask 077 && mkdir "$tmp")
17125} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
17126
17127# Set up the scripts for CONFIG_FILES section.
17128# No need to generate them if there are no CONFIG_FILES.
17129# This happens for instance with `./config.status config.h'.
17130if test -n "$CONFIG_FILES"; then
17131
17132
17133ac_cr=`echo X | tr X '\015'`
17134# On cygwin, bash can eat \r inside `` if the user requested igncr.
17135# But we know of no other shell where ac_cr would be empty at this
17136# point, so we can use a bashism as a fallback.
17137if test "x$ac_cr" = x; then
17138 eval ac_cr=\$\'\\r\'
17139fi
17140ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17141if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17142 ac_cs_awk_cr='\r'
17143else
17144 ac_cs_awk_cr=$ac_cr
17145fi
17146
17147echo 'BEGIN {' >"$tmp/subs1.awk" &&
17148_ACEOF
17149
17150
17151{
17152 echo "cat >conf$$subs.awk <<_ACEOF" &&
17153 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17154 echo "_ACEOF"
17155} >conf$$subs.sh ||
17156 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17157ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
17158ac_delim='%!_!# '
17159for ac_last_try in false false false false false :; do
17160 . ./conf$$subs.sh ||
17161 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17162
17163 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17164 if test $ac_delim_n = $ac_delim_num; then
17165 break
17166 elif $ac_last_try; then
17167 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17168 else
17169 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17170 fi
17171done
17172rm -f conf$$subs.sh
17173
17174cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17175cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
17176_ACEOF
17177sed -n '
17178h
17179s/^/S["/; s/!.*/"]=/
17180p
17181g
17182s/^[^!]*!//
17183:repl
17184t repl
17185s/'"$ac_delim"'$//
17186t delim
17187:nl
17188h
17189s/\(.\{148\}\).*/\1/
17190t more1
17191s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17192p
17193n
17194b repl
17195:more1
17196s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17197p
17198g
17199s/.\{148\}//
17200t nl
17201:delim
17202h
17203s/\(.\{148\}\).*/\1/
17204t more2
17205s/["\\]/\\&/g; s/^/"/; s/$/"/
17206p
17207b
17208:more2
17209s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17210p
17211g
17212s/.\{148\}//
17213t delim
17214' <conf$$subs.awk | sed '
17215/^[^""]/{
17216 N
17217 s/\n//
17218}
17219' >>$CONFIG_STATUS || ac_write_fail=1
17220rm -f conf$$subs.awk
17221cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17222_ACAWK
17223cat >>"\$tmp/subs1.awk" <<_ACAWK &&
17224 for (key in S) S_is_set[key] = 1
17225 FS = "\a"
17226
17227}
5464f5a1 17228{
81ecdfbb
RW
17229 line = $ 0
17230 nfields = split(line, field, "@")
17231 substed = 0
17232 len = length(field[1])
17233 for (i = 2; i < nfields; i++) {
17234 key = field[i]
17235 keylen = length(key)
17236 if (S_is_set[key]) {
17237 value = S[key]
17238 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17239 len += length(value) + length(field[++i])
17240 substed = 1
17241 } else
17242 len += 1 + keylen
17243 }
17244
17245 print line
5464f5a1
NN
17246}
17247
81ecdfbb
RW
17248_ACAWK
17249_ACEOF
17250cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17251if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17252 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17253else
17254 cat
17255fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
17256 || as_fn_error "could not setup config files machinery" "$LINENO" 5
5464f5a1
NN
17257_ACEOF
17258
81ecdfbb
RW
17259# VPATH may cause trouble with some makes, so we remove $(srcdir),
17260# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17261# trailing colons and then remove the whole line if VPATH becomes empty
17262# (actually we leave an empty line to preserve line numbers).
17263if test "x$srcdir" = x.; then
17264 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17265s/:*\$(srcdir):*/:/
17266s/:*\${srcdir}:*/:/
17267s/:*@srcdir@:*/:/
17268s/^\([^=]*=[ ]*\):*/\1/
17269s/:*$//
17270s/^[^=]*=[ ]*$//
17271}'
17272fi
b3baf5d0 17273
81ecdfbb
RW
17274cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17275fi # test -n "$CONFIG_FILES"
252b5132 17276
81ecdfbb
RW
17277# Set up the scripts for CONFIG_HEADERS section.
17278# No need to generate them if there are no CONFIG_HEADERS.
17279# This happens for instance with `./config.status Makefile'.
17280if test -n "$CONFIG_HEADERS"; then
17281cat >"$tmp/defines.awk" <<\_ACAWK ||
17282BEGIN {
5464f5a1
NN
17283_ACEOF
17284
81ecdfbb
RW
17285# Transform confdefs.h into an awk script `defines.awk', embedded as
17286# here-document in config.status, that substitutes the proper values into
17287# config.h.in to produce config.h.
17288
17289# Create a delimiter string that does not exist in confdefs.h, to ease
17290# handling of long lines.
17291ac_delim='%!_!# '
17292for ac_last_try in false false :; do
17293 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
17294 if test -z "$ac_t"; then
17295 break
17296 elif $ac_last_try; then
17297 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
17298 else
17299 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
252b5132 17300 fi
81ecdfbb 17301done
6be7c12c 17302
81ecdfbb
RW
17303# For the awk script, D is an array of macro values keyed by name,
17304# likewise P contains macro parameters if any. Preserve backslash
17305# newline sequences.
17306
17307ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17308sed -n '
17309s/.\{148\}/&'"$ac_delim"'/g
17310t rset
17311:rset
17312s/^[ ]*#[ ]*define[ ][ ]*/ /
17313t def
17314d
17315:def
17316s/\\$//
17317t bsnl
17318s/["\\]/\\&/g
17319s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17320D["\1"]=" \3"/p
17321s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17322d
17323:bsnl
17324s/["\\]/\\&/g
17325s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17326D["\1"]=" \3\\\\\\n"\\/p
17327t cont
17328s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17329t cont
17330d
17331:cont
17332n
17333s/.\{148\}/&'"$ac_delim"'/g
17334t clear
17335:clear
17336s/\\$//
17337t bsnlc
17338s/["\\]/\\&/g; s/^/"/; s/$/"/p
17339d
17340:bsnlc
17341s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17342b cont
17343' <confdefs.h | sed '
17344s/'"$ac_delim"'/"\\\
17345"/g' >>$CONFIG_STATUS || ac_write_fail=1
17346
17347cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17348 for (key in D) D_is_set[key] = 1
17349 FS = "\a"
17350}
17351/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17352 line = \$ 0
17353 split(line, arg, " ")
17354 if (arg[1] == "#") {
17355 defundef = arg[2]
17356 mac1 = arg[3]
17357 } else {
17358 defundef = substr(arg[1], 2)
17359 mac1 = arg[2]
17360 }
17361 split(mac1, mac2, "(") #)
17362 macro = mac2[1]
17363 prefix = substr(line, 1, index(line, defundef) - 1)
17364 if (D_is_set[macro]) {
17365 # Preserve the white space surrounding the "#".
17366 print prefix "define", macro P[macro] D[macro]
17367 next
17368 } else {
17369 # Replace #undef with comments. This is necessary, for example,
17370 # in the case of _POSIX_SOURCE, which is predefined and required
17371 # on some systems where configure will not decide to define it.
17372 if (defundef == "undef") {
17373 print "/*", prefix defundef, macro, "*/"
17374 next
17375 }
17376 }
17377}
17378{ print }
17379_ACAWK
5464f5a1 17380_ACEOF
81ecdfbb
RW
17381cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17382 as_fn_error "could not setup config headers machinery" "$LINENO" 5
17383fi # test -n "$CONFIG_HEADERS"
17384
17385
17386eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17387shift
17388for ac_tag
17389do
17390 case $ac_tag in
17391 :[FHLC]) ac_mode=$ac_tag; continue;;
17392 esac
17393 case $ac_mode$ac_tag in
17394 :[FHL]*:*);;
17395 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
17396 :[FH]-) ac_tag=-:-;;
17397 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17398 esac
17399 ac_save_IFS=$IFS
17400 IFS=:
17401 set x $ac_tag
17402 IFS=$ac_save_IFS
17403 shift
17404 ac_file=$1
17405 shift
17406
17407 case $ac_mode in
17408 :L) ac_source=$1;;
17409 :[FH])
17410 ac_file_inputs=
17411 for ac_f
17412 do
17413 case $ac_f in
17414 -) ac_f="$tmp/stdin";;
17415 *) # Look for the file first in the build tree, then in the source tree
17416 # (if the path is not absolute). The absolute path cannot be DOS-style,
17417 # because $ac_f cannot contain `:'.
17418 test -f "$ac_f" ||
17419 case $ac_f in
17420 [\\/$]*) false;;
17421 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17422 esac ||
17423 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17424 esac
17425 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17426 as_fn_append ac_file_inputs " '$ac_f'"
17427 done
17428
17429 # Let's still pretend it is `configure' which instantiates (i.e., don't
17430 # use $as_me), people would be surprised to read:
17431 # /* config.h. Generated by config.status. */
17432 configure_input='Generated from '`
17433 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17434 `' by configure.'
17435 if test x"$ac_file" != x-; then
17436 configure_input="$ac_file. $configure_input"
17437 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17438$as_echo "$as_me: creating $ac_file" >&6;}
17439 fi
17440 # Neutralize special characters interpreted by sed in replacement strings.
17441 case $configure_input in #(
17442 *\&* | *\|* | *\\* )
17443 ac_sed_conf_input=`$as_echo "$configure_input" |
17444 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17445 *) ac_sed_conf_input=$configure_input;;
17446 esac
17447
17448 case $ac_tag in
17449 *:-:* | *:-) cat >"$tmp/stdin" \
17450 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
17451 esac
17452 ;;
252b5132
RH
17453 esac
17454
81ecdfbb 17455 ac_dir=`$as_dirname -- "$ac_file" ||
5464f5a1
NN
17456$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17457 X"$ac_file" : 'X\(//\)[^/]' \| \
17458 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
17459 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17460$as_echo X"$ac_file" |
17461 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17462 s//\1/
17463 q
17464 }
17465 /^X\(\/\/\)[^/].*/{
17466 s//\1/
17467 q
17468 }
17469 /^X\(\/\/\)$/{
17470 s//\1/
17471 q
17472 }
17473 /^X\(\/\).*/{
17474 s//\1/
17475 q
17476 }
17477 s/.*/./; q'`
17478 as_dir="$ac_dir"; as_fn_mkdir_p
5464f5a1
NN
17479 ac_builddir=.
17480
81ecdfbb
RW
17481case "$ac_dir" in
17482.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17483*)
17484 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17485 # A ".." for each directory in $ac_dir_suffix.
17486 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17487 case $ac_top_builddir_sub in
17488 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17489 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17490 esac ;;
17491esac
17492ac_abs_top_builddir=$ac_pwd
17493ac_abs_builddir=$ac_pwd$ac_dir_suffix
17494# for backward compatibility:
17495ac_top_builddir=$ac_top_build_prefix
252b5132 17496
5464f5a1 17497case $srcdir in
81ecdfbb 17498 .) # We are building in place.
5464f5a1 17499 ac_srcdir=.
81ecdfbb
RW
17500 ac_top_srcdir=$ac_top_builddir_sub
17501 ac_abs_top_srcdir=$ac_pwd ;;
17502 [\\/]* | ?:[\\/]* ) # Absolute name.
5464f5a1 17503 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
17504 ac_top_srcdir=$srcdir
17505 ac_abs_top_srcdir=$srcdir ;;
17506 *) # Relative name.
17507 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17508 ac_top_srcdir=$ac_top_build_prefix$srcdir
17509 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5464f5a1 17510esac
81ecdfbb 17511ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
252b5132 17512
252b5132 17513
81ecdfbb
RW
17514 case $ac_mode in
17515 :F)
17516 #
17517 # CONFIG_FILE
17518 #
5464f5a1
NN
17519
17520 case $INSTALL in
17521 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb
RW
17522 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17523 esac
17524 ac_MKDIR_P=$MKDIR_P
17525 case $MKDIR_P in
17526 [\\/$]* | ?:[\\/]* ) ;;
17527 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
6be7c12c 17528 esac
81ecdfbb 17529_ACEOF
252b5132 17530
81ecdfbb
RW
17531cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17532# If the template does not know about datarootdir, expand it.
17533# FIXME: This hack should be removed a few years after 2.60.
17534ac_datarootdir_hack=; ac_datarootdir_seen=
17535ac_sed_dataroot='
17536/datarootdir/ {
17537 p
17538 q
17539}
17540/@datadir@/p
17541/@docdir@/p
17542/@infodir@/p
17543/@localedir@/p
17544/@mandir@/p'
17545case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17546*datarootdir*) ac_datarootdir_seen=yes;;
17547*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17548 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17549$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17550_ACEOF
17551cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17552 ac_datarootdir_hack='
17553 s&@datadir@&$datadir&g
17554 s&@docdir@&$docdir&g
17555 s&@infodir@&$infodir&g
17556 s&@localedir@&$localedir&g
17557 s&@mandir@&$mandir&g
17558 s&\\\${datarootdir}&$datarootdir&g' ;;
17559esac
5464f5a1 17560_ACEOF
81ecdfbb
RW
17561
17562# Neutralize VPATH when `$srcdir' = `.'.
17563# Shell code in configure.ac might set extrasub.
17564# FIXME: do we really want to maintain this feature?
17565cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17566ac_sed_extra="$ac_vpsub
5464f5a1
NN
17567$extrasub
17568_ACEOF
81ecdfbb 17569cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5464f5a1
NN
17570:t
17571/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
17572s|@configure_input@|$ac_sed_conf_input|;t t
17573s&@top_builddir@&$ac_top_builddir_sub&;t t
17574s&@top_build_prefix@&$ac_top_build_prefix&;t t
17575s&@srcdir@&$ac_srcdir&;t t
17576s&@abs_srcdir@&$ac_abs_srcdir&;t t
17577s&@top_srcdir@&$ac_top_srcdir&;t t
17578s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17579s&@builddir@&$ac_builddir&;t t
17580s&@abs_builddir@&$ac_abs_builddir&;t t
17581s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17582s&@INSTALL@&$ac_INSTALL&;t t
17583s&@MKDIR_P@&$ac_MKDIR_P&;t t
17584$ac_datarootdir_hack
17585"
17586eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17587 || as_fn_error "could not create $ac_file" "$LINENO" 5
17588
17589test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17590 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17591 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17592 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17593which seems to be undefined. Please make sure it is defined." >&5
17594$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17595which seems to be undefined. Please make sure it is defined." >&2;}
17596
17597 rm -f "$tmp/stdin"
5464f5a1 17598 case $ac_file in
81ecdfbb
RW
17599 -) cat "$tmp/out" && rm -f "$tmp/out";;
17600 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17601 esac \
17602 || as_fn_error "could not create $ac_file" "$LINENO" 5
17603 ;;
17604 :H)
17605 #
17606 # CONFIG_HEADER
17607 #
5464f5a1 17608 if test x"$ac_file" != x-; then
81ecdfbb
RW
17609 {
17610 $as_echo "/* $configure_input */" \
17611 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17612 } >"$tmp/config.h" \
17613 || as_fn_error "could not create $ac_file" "$LINENO" 5
17614 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17615 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17616$as_echo "$as_me: $ac_file is unchanged" >&6;}
5464f5a1 17617 else
81ecdfbb
RW
17618 rm -f "$ac_file"
17619 mv "$tmp/config.h" "$ac_file" \
17620 || as_fn_error "could not create $ac_file" "$LINENO" 5
252b5132 17621 fi
5464f5a1 17622 else
81ecdfbb
RW
17623 $as_echo "/* $configure_input */" \
17624 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17625 || as_fn_error "could not create -" "$LINENO" 5
252b5132 17626 fi
81ecdfbb
RW
17627# Compute "$ac_file"'s index in $config_headers.
17628_am_arg="$ac_file"
f5385ebf
AM
17629_am_stamp_count=1
17630for _am_header in $config_headers :; do
17631 case $_am_header in
81ecdfbb 17632 $_am_arg | $_am_arg:* )
f5385ebf
AM
17633 break ;;
17634 * )
17635 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17636 esac
17637done
81ecdfbb
RW
17638echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17639$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17640 X"$_am_arg" : 'X\(//\)[^/]' \| \
17641 X"$_am_arg" : 'X\(//\)$' \| \
17642 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17643$as_echo X"$_am_arg" |
17644 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17645 s//\1/
17646 q
17647 }
17648 /^X\(\/\/\)[^/].*/{
17649 s//\1/
17650 q
17651 }
17652 /^X\(\/\/\)$/{
17653 s//\1/
17654 q
17655 }
17656 /^X\(\/\).*/{
17657 s//\1/
17658 q
17659 }
17660 s/.*/./; q'`/stamp-h$_am_stamp_count
17661 ;;
5464f5a1 17662
81ecdfbb
RW
17663 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17664$as_echo "$as_me: executing $ac_file commands" >&6;}
17665 ;;
17666 esac
5464f5a1
NN
17667
17668
81ecdfbb
RW
17669 case $ac_file$ac_mode in
17670 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17671 # Autoconf 2.62 quotes --file arguments for eval, but not when files
17672 # are listed without --file. Let's play safe and only enable the eval
17673 # if we detect the quoting.
17674 case $CONFIG_FILES in
17675 *\'*) eval set x "$CONFIG_FILES" ;;
17676 *) set x $CONFIG_FILES ;;
17677 esac
17678 shift
17679 for mf
17680 do
17681 # Strip MF so we end up with the name of the file.
17682 mf=`echo "$mf" | sed -e 's/:.*$//'`
17683 # Check whether this is an Automake generated Makefile or not.
17684 # We used to match only the files named `Makefile.in', but
17685 # some people rename them; so instead we look at the file content.
17686 # Grep'ing the first line is not enough: some people post-process
17687 # each Makefile.in and add a new line on top of each file to say so.
17688 # Grep'ing the whole file is not good either: AIX grep has a line
17689 # limit of 2048, but all sed's we know have understand at least 4000.
17690 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17691 dirpart=`$as_dirname -- "$mf" ||
f5385ebf
AM
17692$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17693 X"$mf" : 'X\(//\)[^/]' \| \
17694 X"$mf" : 'X\(//\)$' \| \
81ecdfbb
RW
17695 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17696$as_echo X"$mf" |
17697 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17698 s//\1/
17699 q
17700 }
17701 /^X\(\/\/\)[^/].*/{
17702 s//\1/
17703 q
17704 }
17705 /^X\(\/\/\)$/{
17706 s//\1/
17707 q
17708 }
17709 /^X\(\/\).*/{
17710 s//\1/
17711 q
17712 }
17713 s/.*/./; q'`
17714 else
17715 continue
17716 fi
17717 # Extract the definition of DEPDIR, am__include, and am__quote
17718 # from the Makefile without running `make'.
17719 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17720 test -z "$DEPDIR" && continue
17721 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17722 test -z "am__include" && continue
17723 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17724 # When using ansi2knr, U may be empty or an underscore; expand it
17725 U=`sed -n 's/^U = //p' < "$mf"`
17726 # Find all dependency output files, they are included files with
17727 # $(DEPDIR) in their names. We invoke sed twice because it is the
17728 # simplest approach to changing $(DEPDIR) to its actual value in the
17729 # expansion.
17730 for file in `sed -n "
17731 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17732 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17733 # Make sure the directory exists.
17734 test -f "$dirpart/$file" && continue
17735 fdir=`$as_dirname -- "$file" ||
f5385ebf
AM
17736$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17737 X"$file" : 'X\(//\)[^/]' \| \
17738 X"$file" : 'X\(//\)$' \| \
81ecdfbb
RW
17739 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17740$as_echo X"$file" |
17741 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17742 s//\1/
17743 q
17744 }
17745 /^X\(\/\/\)[^/].*/{
17746 s//\1/
17747 q
17748 }
17749 /^X\(\/\/\)$/{
17750 s//\1/
17751 q
17752 }
17753 /^X\(\/\).*/{
17754 s//\1/
17755 q
17756 }
17757 s/.*/./; q'`
17758 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17759 # echo "creating $dirpart/$file"
17760 echo '# dummy' > "$dirpart/$file"
f5385ebf 17761 done
f5385ebf 17762 done
81ecdfbb 17763}
d7040cdb 17764 ;;
81ecdfbb 17765 "libtool":C)
d7040cdb
SE
17766
17767 # See if we are running on zsh, and set the options which allow our
17768 # commands through without removal of \ escapes.
17769 if test -n "${ZSH_VERSION+set}" ; then
17770 setopt NO_GLOB_SUBST
17771 fi
17772
17773 cfgfile="${ofile}T"
17774 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17775 $RM "$cfgfile"
17776
17777 cat <<_LT_EOF >> "$cfgfile"
17778#! $SHELL
17779
17780# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
718a6fd8 17781# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
d7040cdb
SE
17782# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17783# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17784#
718a6fd8 17785# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
3725885a 17786# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
718a6fd8 17787# Written by Gordon Matzigkeit, 1996
d7040cdb 17788#
718a6fd8 17789# This file is part of GNU Libtool.
d7040cdb 17790#
718a6fd8
SE
17791# GNU Libtool is free software; you can redistribute it and/or
17792# modify it under the terms of the GNU General Public License as
17793# published by the Free Software Foundation; either version 2 of
17794# the License, or (at your option) any later version.
d7040cdb 17795#
718a6fd8
SE
17796# As a special exception to the GNU General Public License,
17797# if you distribute this file as part of a program or library that
17798# is built using GNU Libtool, you may include this file under the
17799# same distribution terms that you use for the rest of that program.
d7040cdb 17800#
718a6fd8
SE
17801# GNU Libtool is distributed in the hope that it will be useful,
17802# but WITHOUT ANY WARRANTY; without even the implied warranty of
17803# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17804# GNU General Public License for more details.
d7040cdb 17805#
718a6fd8
SE
17806# You should have received a copy of the GNU General Public License
17807# along with GNU Libtool; see the file COPYING. If not, a copy
17808# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17809# obtained by writing to the Free Software Foundation, Inc.,
17810# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
d7040cdb
SE
17811
17812
17813# The names of the tagged configurations supported by this script.
17814available_tags=""
17815
17816# ### BEGIN LIBTOOL CONFIG
17817
17818# Whether or not to build shared libraries.
17819build_libtool_libs=$enable_shared
17820
17821# Which release of libtool.m4 was used?
17822macro_version=$macro_version
17823macro_revision=$macro_revision
17824
17825# Whether or not to build static libraries.
17826build_old_libs=$enable_static
17827
17828# What type of objects to build.
17829pic_mode=$pic_mode
17830
17831# Whether or not to optimize for fast installation.
17832fast_install=$enable_fast_install
17833
3725885a
RW
17834# Shell to use when invoking shell scripts.
17835SHELL=$lt_SHELL
17836
17837# An echo program that protects backslashes.
17838ECHO=$lt_ECHO
17839
d7040cdb
SE
17840# The host system.
17841host_alias=$host_alias
17842host=$host
17843host_os=$host_os
17844
17845# The build system.
17846build_alias=$build_alias
17847build=$build
17848build_os=$build_os
17849
17850# A sed program that does not truncate output.
17851SED=$lt_SED
17852
17853# Sed that helps us avoid accidentally triggering echo(1) options like -n.
17854Xsed="\$SED -e 1s/^X//"
17855
17856# A grep program that handles long lines.
17857GREP=$lt_GREP
17858
17859# An ERE matcher.
17860EGREP=$lt_EGREP
17861
17862# A literal string matcher.
17863FGREP=$lt_FGREP
17864
17865# A BSD- or MS-compatible name lister.
17866NM=$lt_NM
17867
17868# Whether we need soft or hard links.
17869LN_S=$lt_LN_S
17870
17871# What is the maximum length of a command?
17872max_cmd_len=$max_cmd_len
17873
17874# Object file suffix (normally "o").
17875objext=$ac_objext
17876
17877# Executable file suffix (normally "").
17878exeext=$exeext
17879
17880# whether the shell understands "unset".
17881lt_unset=$lt_unset
17882
17883# turn spaces into newlines.
17884SP2NL=$lt_lt_SP2NL
17885
17886# turn newlines into spaces.
17887NL2SP=$lt_lt_NL2SP
17888
718a6fd8
SE
17889# An object symbol dumper.
17890OBJDUMP=$lt_OBJDUMP
17891
d7040cdb
SE
17892# Method to check whether dependent libraries are shared objects.
17893deplibs_check_method=$lt_deplibs_check_method
17894
17895# Command to use when deplibs_check_method == "file_magic".
17896file_magic_cmd=$lt_file_magic_cmd
17897
17898# The archiver.
17899AR=$lt_AR
17900AR_FLAGS=$lt_AR_FLAGS
17901
17902# A symbol stripping program.
17903STRIP=$lt_STRIP
17904
17905# Commands used to install an old-style archive.
17906RANLIB=$lt_RANLIB
17907old_postinstall_cmds=$lt_old_postinstall_cmds
17908old_postuninstall_cmds=$lt_old_postuninstall_cmds
17909
3725885a
RW
17910# Whether to use a lock for old archive extraction.
17911lock_old_archive_extraction=$lock_old_archive_extraction
17912
d7040cdb
SE
17913# A C compiler.
17914LTCC=$lt_CC
17915
17916# LTCC compiler flags.
17917LTCFLAGS=$lt_CFLAGS
17918
17919# Take the output of nm and produce a listing of raw symbols and C names.
17920global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17921
17922# Transform the output of nm in a proper C declaration.
17923global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17924
17925# Transform the output of nm in a C name address pair.
17926global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17927
718a6fd8
SE
17928# Transform the output of nm in a C name address pair when lib prefix is needed.
17929global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17930
d7040cdb
SE
17931# The name of the directory that contains temporary libtool files.
17932objdir=$objdir
17933
d7040cdb
SE
17934# Used to examine libraries when file_magic_cmd begins with "file".
17935MAGIC_CMD=$MAGIC_CMD
17936
17937# Must we lock files when doing compilation?
17938need_locks=$lt_need_locks
17939
718a6fd8
SE
17940# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17941DSYMUTIL=$lt_DSYMUTIL
17942
17943# Tool to change global to local symbols on Mac OS X.
17944NMEDIT=$lt_NMEDIT
17945
17946# Tool to manipulate fat objects and archives on Mac OS X.
17947LIPO=$lt_LIPO
17948
17949# ldd/readelf like tool for Mach-O binaries on Mac OS X.
17950OTOOL=$lt_OTOOL
17951
17952# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17953OTOOL64=$lt_OTOOL64
17954
d7040cdb
SE
17955# Old archive suffix (normally "a").
17956libext=$libext
17957
17958# Shared library suffix (normally ".so").
17959shrext_cmds=$lt_shrext_cmds
17960
17961# The commands to extract the exported symbol list from a shared archive.
17962extract_expsyms_cmds=$lt_extract_expsyms_cmds
17963
17964# Variables whose values should be saved in libtool wrapper scripts and
17965# restored at link time.
17966variables_saved_for_relink=$lt_variables_saved_for_relink
17967
17968# Do we need the "lib" prefix for modules?
17969need_lib_prefix=$need_lib_prefix
17970
17971# Do we need a version for libraries?
17972need_version=$need_version
17973
17974# Library versioning type.
17975version_type=$version_type
17976
17977# Shared library runtime path variable.
17978runpath_var=$runpath_var
17979
17980# Shared library path variable.
17981shlibpath_var=$shlibpath_var
17982
17983# Is shlibpath searched before the hard-coded library search path?
17984shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17985
17986# Format of library name prefix.
17987libname_spec=$lt_libname_spec
17988
17989# List of archive names. First name is the real one, the rest are links.
17990# The last name is the one that the linker finds with -lNAME
17991library_names_spec=$lt_library_names_spec
17992
17993# The coded name of the library, if different from the real name.
17994soname_spec=$lt_soname_spec
17995
3725885a
RW
17996# Permission mode override for installation of shared libraries.
17997install_override_mode=$lt_install_override_mode
17998
d7040cdb
SE
17999# Command to use after installation of a shared archive.
18000postinstall_cmds=$lt_postinstall_cmds
18001
18002# Command to use after uninstallation of a shared archive.
18003postuninstall_cmds=$lt_postuninstall_cmds
18004
18005# Commands used to finish a libtool library installation in a directory.
18006finish_cmds=$lt_finish_cmds
18007
18008# As "finish_cmds", except a single script fragment to be evaled but
18009# not shown.
18010finish_eval=$lt_finish_eval
18011
18012# Whether we should hardcode library paths into libraries.
18013hardcode_into_libs=$hardcode_into_libs
18014
18015# Compile-time system search path for libraries.
18016sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18017
18018# Run-time system search path for libraries.
18019sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18020
18021# Whether dlopen is supported.
18022dlopen_support=$enable_dlopen
18023
18024# Whether dlopen of programs is supported.
18025dlopen_self=$enable_dlopen_self
18026
18027# Whether dlopen of statically linked programs is supported.
18028dlopen_self_static=$enable_dlopen_self_static
18029
18030# Commands to strip libraries.
18031old_striplib=$lt_old_striplib
18032striplib=$lt_striplib
18033
18034
18035# The linker used to build libraries.
18036LD=$lt_LD
18037
3725885a
RW
18038# How to create reloadable object files.
18039reload_flag=$lt_reload_flag
18040reload_cmds=$lt_reload_cmds
18041
d7040cdb
SE
18042# Commands used to build an old-style archive.
18043old_archive_cmds=$lt_old_archive_cmds
18044
18045# A language specific compiler.
18046CC=$lt_compiler
18047
18048# Is the compiler the GNU compiler?
18049with_gcc=$GCC
18050
18051# Compiler flag to turn off builtin functions.
18052no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18053
18054# How to pass a linker flag through the compiler.
18055wl=$lt_lt_prog_compiler_wl
18056
18057# Additional compiler flags for building library objects.
18058pic_flag=$lt_lt_prog_compiler_pic
18059
18060# Compiler flag to prevent dynamic linking.
18061link_static_flag=$lt_lt_prog_compiler_static
18062
18063# Does compiler simultaneously support -c and -o options?
18064compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18065
18066# Whether or not to add -lc for building shared libraries.
18067build_libtool_need_lc=$archive_cmds_need_lc
18068
18069# Whether or not to disallow shared libs when runtime libs are static.
18070allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18071
18072# Compiler flag to allow reflexive dlopens.
18073export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18074
18075# Compiler flag to generate shared objects directly from archives.
18076whole_archive_flag_spec=$lt_whole_archive_flag_spec
18077
18078# Whether the compiler copes with passing no objects directly.
18079compiler_needs_object=$lt_compiler_needs_object
18080
18081# Create an old-style archive from a shared archive.
18082old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18083
18084# Create a temporary old-style archive to link instead of a shared archive.
18085old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18086
18087# Commands used to build a shared archive.
18088archive_cmds=$lt_archive_cmds
18089archive_expsym_cmds=$lt_archive_expsym_cmds
18090
18091# Commands used to build a loadable module if different from building
18092# a shared archive.
18093module_cmds=$lt_module_cmds
18094module_expsym_cmds=$lt_module_expsym_cmds
18095
18096# Whether we are building with GNU ld or not.
18097with_gnu_ld=$lt_with_gnu_ld
18098
18099# Flag that allows shared libraries with undefined symbols to be built.
18100allow_undefined_flag=$lt_allow_undefined_flag
18101
18102# Flag that enforces no undefined symbols.
18103no_undefined_flag=$lt_no_undefined_flag
18104
18105# Flag to hardcode \$libdir into a binary during linking.
18106# This must work even if \$libdir does not exist
18107hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18108
18109# If ld is used when linking, flag to hardcode \$libdir into a binary
18110# during linking. This must work even if \$libdir does not exist.
18111hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18112
18113# Whether we need a single "-rpath" flag with a separated argument.
18114hardcode_libdir_separator=$lt_hardcode_libdir_separator
18115
18116# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18117# DIR into the resulting binary.
18118hardcode_direct=$hardcode_direct
18119
18120# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18121# DIR into the resulting binary and the resulting library dependency is
18122# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18123# library is relocated.
18124hardcode_direct_absolute=$hardcode_direct_absolute
18125
18126# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18127# into the resulting binary.
18128hardcode_minus_L=$hardcode_minus_L
18129
18130# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18131# into the resulting binary.
18132hardcode_shlibpath_var=$hardcode_shlibpath_var
18133
18134# Set to "yes" if building a shared library automatically hardcodes DIR
18135# into the library and all subsequent libraries and executables linked
18136# against it.
18137hardcode_automatic=$hardcode_automatic
18138
18139# Set to yes if linker adds runtime paths of dependent libraries
18140# to runtime path list.
18141inherit_rpath=$inherit_rpath
18142
18143# Whether libtool must link a program against all its dependency libraries.
18144link_all_deplibs=$link_all_deplibs
18145
18146# Fix the shell variable \$srcfile for the compiler.
18147fix_srcfile_path=$lt_fix_srcfile_path
18148
18149# Set to "yes" if exported symbols are required.
18150always_export_symbols=$always_export_symbols
18151
18152# The commands to list exported symbols.
18153export_symbols_cmds=$lt_export_symbols_cmds
18154
18155# Symbols that should not be listed in the preloaded symbols.
18156exclude_expsyms=$lt_exclude_expsyms
18157
18158# Symbols that must always be exported.
18159include_expsyms=$lt_include_expsyms
18160
18161# Commands necessary for linking programs (against libraries) with templates.
18162prelink_cmds=$lt_prelink_cmds
18163
18164# Specify filename containing input files.
18165file_list_spec=$lt_file_list_spec
18166
18167# How to hardcode a shared library path into an executable.
18168hardcode_action=$hardcode_action
18169
18170# ### END LIBTOOL CONFIG
18171
18172_LT_EOF
18173
18174 case $host_os in
18175 aix3*)
18176 cat <<\_LT_EOF >> "$cfgfile"
18177# AIX sometimes has problems with the GCC collect2 program. For some
18178# reason, if we set the COLLECT_NAMES environment variable, the problems
18179# vanish in a puff of smoke.
18180if test "X${COLLECT_NAMES+set}" != Xset; then
18181 COLLECT_NAMES=
18182 export COLLECT_NAMES
18183fi
18184_LT_EOF
18185 ;;
18186 esac
18187
18188
18189ltmain="$ac_aux_dir/ltmain.sh"
18190
18191
18192 # We use sed instead of cat because bash on DJGPP gets confused if
18193 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18194 # text mode, it properly converts lines to CR/LF. This bash problem
18195 # is reportedly fixed, but why not run on old versions too?
18196 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18197 || (rm -f "$cfgfile"; exit 1)
18198
18199 case $xsi_shell in
18200 yes)
18201 cat << \_LT_EOF >> "$cfgfile"
718a6fd8 18202
d7040cdb
SE
18203# func_dirname file append nondir_replacement
18204# Compute the dirname of FILE. If nonempty, add APPEND to the result,
18205# otherwise set result to NONDIR_REPLACEMENT.
18206func_dirname ()
18207{
18208 case ${1} in
18209 */*) func_dirname_result="${1%/*}${2}" ;;
18210 * ) func_dirname_result="${3}" ;;
18211 esac
18212}
18213
18214# func_basename file
18215func_basename ()
18216{
18217 func_basename_result="${1##*/}"
18218}
18219
718a6fd8
SE
18220# func_dirname_and_basename file append nondir_replacement
18221# perform func_basename and func_dirname in a single function
18222# call:
18223# dirname: Compute the dirname of FILE. If nonempty,
18224# add APPEND to the result, otherwise set result
18225# to NONDIR_REPLACEMENT.
18226# value returned in "$func_dirname_result"
18227# basename: Compute filename of FILE.
18228# value retuned in "$func_basename_result"
18229# Implementation must be kept synchronized with func_dirname
18230# and func_basename. For efficiency, we do not delegate to
18231# those functions but instead duplicate the functionality here.
18232func_dirname_and_basename ()
18233{
18234 case ${1} in
18235 */*) func_dirname_result="${1%/*}${2}" ;;
18236 * ) func_dirname_result="${3}" ;;
18237 esac
18238 func_basename_result="${1##*/}"
18239}
18240
d7040cdb
SE
18241# func_stripname prefix suffix name
18242# strip PREFIX and SUFFIX off of NAME.
18243# PREFIX and SUFFIX must not contain globbing or regex special
18244# characters, hashes, percent signs, but SUFFIX may contain a leading
18245# dot (in which case that matches only a dot).
18246func_stripname ()
18247{
18248 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18249 # positional parameters, so assign one to ordinary parameter first.
18250 func_stripname_result=${3}
18251 func_stripname_result=${func_stripname_result#"${1}"}
18252 func_stripname_result=${func_stripname_result%"${2}"}
18253}
18254
18255# func_opt_split
18256func_opt_split ()
18257{
18258 func_opt_split_opt=${1%%=*}
18259 func_opt_split_arg=${1#*=}
18260}
18261
18262# func_lo2o object
18263func_lo2o ()
18264{
18265 case ${1} in
18266 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18267 *) func_lo2o_result=${1} ;;
18268 esac
18269}
718a6fd8
SE
18270
18271# func_xform libobj-or-source
18272func_xform ()
18273{
18274 func_xform_result=${1%.*}.lo
18275}
18276
18277# func_arith arithmetic-term...
18278func_arith ()
18279{
18280 func_arith_result=$(( $* ))
18281}
18282
18283# func_len string
18284# STRING may not start with a hyphen.
18285func_len ()
18286{
18287 func_len_result=${#1}
18288}
18289
d7040cdb
SE
18290_LT_EOF
18291 ;;
18292 *) # Bourne compatible functions.
18293 cat << \_LT_EOF >> "$cfgfile"
718a6fd8 18294
d7040cdb
SE
18295# func_dirname file append nondir_replacement
18296# Compute the dirname of FILE. If nonempty, add APPEND to the result,
18297# otherwise set result to NONDIR_REPLACEMENT.
18298func_dirname ()
18299{
18300 # Extract subdirectory from the argument.
3725885a 18301 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
d7040cdb
SE
18302 if test "X$func_dirname_result" = "X${1}"; then
18303 func_dirname_result="${3}"
18304 else
18305 func_dirname_result="$func_dirname_result${2}"
18306 fi
18307}
18308
18309# func_basename file
18310func_basename ()
18311{
3725885a 18312 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
d7040cdb
SE
18313}
18314
718a6fd8 18315
d7040cdb
SE
18316# func_stripname prefix suffix name
18317# strip PREFIX and SUFFIX off of NAME.
18318# PREFIX and SUFFIX must not contain globbing or regex special
18319# characters, hashes, percent signs, but SUFFIX may contain a leading
18320# dot (in which case that matches only a dot).
18321# func_strip_suffix prefix name
18322func_stripname ()
18323{
18324 case ${2} in
3725885a
RW
18325 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
18326 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
d7040cdb
SE
18327 esac
18328}
18329
18330# sed scripts:
18331my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18332my_sed_long_arg='1s/^-[^=]*=//'
18333
18334# func_opt_split
18335func_opt_split ()
18336{
3725885a
RW
18337 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
18338 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
d7040cdb
SE
18339}
18340
18341# func_lo2o object
18342func_lo2o ()
18343{
3725885a 18344 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
d7040cdb 18345}
718a6fd8
SE
18346
18347# func_xform libobj-or-source
18348func_xform ()
18349{
3725885a 18350 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
718a6fd8
SE
18351}
18352
18353# func_arith arithmetic-term...
18354func_arith ()
18355{
18356 func_arith_result=`expr "$@"`
18357}
18358
18359# func_len string
18360# STRING may not start with a hyphen.
18361func_len ()
18362{
18363 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18364}
18365
d7040cdb
SE
18366_LT_EOF
18367esac
18368
18369case $lt_shell_append in
18370 yes)
18371 cat << \_LT_EOF >> "$cfgfile"
18372
18373# func_append var value
18374# Append VALUE to the end of shell variable VAR.
18375func_append ()
18376{
18377 eval "$1+=\$2"
18378}
18379_LT_EOF
18380 ;;
18381 *)
18382 cat << \_LT_EOF >> "$cfgfile"
18383
18384# func_append var value
18385# Append VALUE to the end of shell variable VAR.
18386func_append ()
18387{
18388 eval "$1=\$$1\$2"
18389}
718a6fd8 18390
d7040cdb
SE
18391_LT_EOF
18392 ;;
18393 esac
18394
18395
18396 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18397 || (rm -f "$cfgfile"; exit 1)
18398
18399 mv -f "$cfgfile" "$ofile" ||
18400 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18401 chmod +x "$ofile"
18402
f5385ebf 18403 ;;
81ecdfbb 18404 "default-1":C)
20e95c23
DJ
18405 for ac_file in $CONFIG_FILES; do
18406 # Support "outfile[:infile[:infile...]]"
18407 case "$ac_file" in
18408 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18409 esac
18410 # PO directories have a Makefile.in generated from Makefile.in.in.
18411 case "$ac_file" in */Makefile.in)
18412 # Adjust a relative srcdir.
18413 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
3cac54d2 18414 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
20e95c23
DJ
18415 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
18416 # In autoconf-2.13 it is called $ac_given_srcdir.
18417 # In autoconf-2.50 it is called $srcdir.
18418 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
18419 case "$ac_given_srcdir" in
18420 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
18421 /*) top_srcdir="$ac_given_srcdir" ;;
18422 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
18423 esac
18424 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
18425 rm -f "$ac_dir/POTFILES"
18426 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
18427 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
18428 POMAKEFILEDEPS="POTFILES.in"
18429 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
18430 # on $ac_dir but don't depend on user-specified configuration
18431 # parameters.
18432 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
18433 # The LINGUAS file contains the set of available languages.
18434 if test -n "$OBSOLETE_ALL_LINGUAS"; then
37a42ee9 18435 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
18436 fi
18437 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
18438 # Hide the ALL_LINGUAS assigment from automake.
18439 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
18440 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
18441 else
37a42ee9 18442 # The set of available languages was given in configure.ac.
20e95c23
DJ
18443 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
18444 fi
18445 case "$ac_given_srcdir" in
18446 .) srcdirpre= ;;
18447 *) srcdirpre='$(srcdir)/' ;;
18448 esac
18449 POFILES=
18450 GMOFILES=
18451 UPDATEPOFILES=
18452 DUMMYPOFILES=
18453 for lang in $ALL_LINGUAS; do
18454 POFILES="$POFILES $srcdirpre$lang.po"
18455 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
18456 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
18457 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
18458 done
18459 # CATALOGS depends on both $ac_dir and the user's LINGUAS
18460 # environment variable.
18461 INST_LINGUAS=
18462 if test -n "$ALL_LINGUAS"; then
18463 for presentlang in $ALL_LINGUAS; do
18464 useit=no
18465 if test "%UNSET%" != "$LINGUAS"; then
18466 desiredlanguages="$LINGUAS"
18467 else
18468 desiredlanguages="$ALL_LINGUAS"
18469 fi
18470 for desiredlang in $desiredlanguages; do
18471 # Use the presentlang catalog if desiredlang is
18472 # a. equal to presentlang, or
18473 # b. a variant of presentlang (because in this case,
18474 # presentlang can be used as a fallback for messages
18475 # which are not translated in the desiredlang catalog).
18476 case "$desiredlang" in
18477 "$presentlang"*) useit=yes;;
18478 esac
18479 done
18480 if test $useit = yes; then
18481 INST_LINGUAS="$INST_LINGUAS $presentlang"
18482 fi
18483 done
18484 fi
18485 CATALOGS=
18486 if test -n "$INST_LINGUAS"; then
18487 for lang in $INST_LINGUAS; do
18488 CATALOGS="$CATALOGS $lang.gmo"
18489 done
18490 fi
18491 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
18492 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"
18493 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
18494 if test -f "$f"; then
18495 case "$f" in
18496 *.orig | *.bak | *~) ;;
18497 *) cat "$f" >> "$ac_dir/Makefile" ;;
18498 esac
18499 fi
18500 done
18501 fi
18502 ;;
18503 esac
18504 done ;;
81ecdfbb 18505 "bfd_stdint.h":C)
f3b4f6d0
PB
18506if test "$GCC" = yes; then
18507 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
18508else
18509 echo "/* generated for $CC */" > tmp-stdint.h
18510fi
d5efd9fc 18511
f3b4f6d0
PB
18512sed 's/^ *//' >> tmp-stdint.h <<EOF
18513
18514 #ifndef GCC_GENERATED_STDINT_H
18515 #define GCC_GENERATED_STDINT_H 1
18516
18517 #include <sys/types.h>
18518EOF
18519
18520if test "$acx_cv_header_stdint" != stdint.h; then
18521 echo "#include <stddef.h>" >> tmp-stdint.h
18522fi
18523if test "$acx_cv_header_stdint" != stddef.h; then
18524 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
18525fi
18526
18527sed 's/^ *//' >> tmp-stdint.h <<EOF
18528 /* glibc uses these symbols as guards to prevent redefinitions. */
18529 #ifdef __int8_t_defined
18530 #define _INT8_T
18531 #define _INT16_T
18532 #define _INT32_T
18533 #endif
18534 #ifdef __uint32_t_defined
18535 #define _UINT32_T
18536 #endif
18537
18538EOF
18539
18540# ----------------- done header, emit basic int types -------------
18541if test "$acx_cv_header_stdint" = stddef.h; then
18542 sed 's/^ *//' >> tmp-stdint.h <<EOF
18543
18544 #ifndef _UINT8_T
18545 #define _UINT8_T
18546 #ifndef __uint8_t_defined
18547 #define __uint8_t_defined
a009f2e7 18548 #ifndef uint8_t
f3b4f6d0
PB
18549 typedef unsigned $acx_cv_type_int8_t uint8_t;
18550 #endif
18551 #endif
a009f2e7 18552 #endif
f3b4f6d0
PB
18553
18554 #ifndef _UINT16_T
18555 #define _UINT16_T
18556 #ifndef __uint16_t_defined
18557 #define __uint16_t_defined
a009f2e7 18558 #ifndef uint16_t
f3b4f6d0
PB
18559 typedef unsigned $acx_cv_type_int16_t uint16_t;
18560 #endif
18561 #endif
a009f2e7 18562 #endif
f3b4f6d0
PB
18563
18564 #ifndef _UINT32_T
18565 #define _UINT32_T
18566 #ifndef __uint32_t_defined
18567 #define __uint32_t_defined
a009f2e7 18568 #ifndef uint32_t
f3b4f6d0
PB
18569 typedef unsigned $acx_cv_type_int32_t uint32_t;
18570 #endif
18571 #endif
a009f2e7 18572 #endif
f3b4f6d0
PB
18573
18574 #ifndef _INT8_T
18575 #define _INT8_T
18576 #ifndef __int8_t_defined
18577 #define __int8_t_defined
a009f2e7 18578 #ifndef int8_t
f3b4f6d0
PB
18579 typedef $acx_cv_type_int8_t int8_t;
18580 #endif
18581 #endif
a009f2e7 18582 #endif
f3b4f6d0
PB
18583
18584 #ifndef _INT16_T
18585 #define _INT16_T
18586 #ifndef __int16_t_defined
18587 #define __int16_t_defined
a009f2e7 18588 #ifndef int16_t
f3b4f6d0
PB
18589 typedef $acx_cv_type_int16_t int16_t;
18590 #endif
18591 #endif
a009f2e7 18592 #endif
f3b4f6d0
PB
18593
18594 #ifndef _INT32_T
18595 #define _INT32_T
18596 #ifndef __int32_t_defined
18597 #define __int32_t_defined
a009f2e7 18598 #ifndef int32_t
f3b4f6d0
PB
18599 typedef $acx_cv_type_int32_t int32_t;
18600 #endif
18601 #endif
a009f2e7 18602 #endif
f3b4f6d0
PB
18603EOF
18604elif test "$ac_cv_type_u_int32_t" = yes; then
18605 sed 's/^ *//' >> tmp-stdint.h <<EOF
18606
18607 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
18608 #ifndef _INT8_T
18609 #define _INT8_T
18610 #endif
18611 #ifndef _INT16_T
18612 #define _INT16_T
18613 #endif
18614 #ifndef _INT32_T
18615 #define _INT32_T
18616 #endif
18617
18618 #ifndef _UINT8_T
18619 #define _UINT8_T
18620 #ifndef __uint8_t_defined
18621 #define __uint8_t_defined
a009f2e7 18622 #ifndef uint8_t
f3b4f6d0
PB
18623 typedef u_int8_t uint8_t;
18624 #endif
18625 #endif
a009f2e7 18626 #endif
f3b4f6d0
PB
18627
18628 #ifndef _UINT16_T
18629 #define _UINT16_T
18630 #ifndef __uint16_t_defined
18631 #define __uint16_t_defined
a009f2e7 18632 #ifndef uint16_t
f3b4f6d0
PB
18633 typedef u_int16_t uint16_t;
18634 #endif
18635 #endif
a009f2e7 18636 #endif
f3b4f6d0
PB
18637
18638 #ifndef _UINT32_T
18639 #define _UINT32_T
18640 #ifndef __uint32_t_defined
18641 #define __uint32_t_defined
a009f2e7 18642 #ifndef uint32_t
f3b4f6d0
PB
18643 typedef u_int32_t uint32_t;
18644 #endif
18645 #endif
a009f2e7 18646 #endif
d5efd9fc 18647EOF
f3b4f6d0
PB
18648else
18649 sed 's/^ *//' >> tmp-stdint.h <<EOF
18650
18651 /* Some systems have guard macros to prevent redefinitions, define them. */
18652 #ifndef _INT8_T
18653 #define _INT8_T
18654 #endif
18655 #ifndef _INT16_T
18656 #define _INT16_T
18657 #endif
18658 #ifndef _INT32_T
18659 #define _INT32_T
18660 #endif
18661 #ifndef _UINT8_T
18662 #define _UINT8_T
18663 #endif
18664 #ifndef _UINT16_T
18665 #define _UINT16_T
18666 #endif
18667 #ifndef _UINT32_T
18668 #define _UINT32_T
18669 #endif
18670EOF
18671fi
18672
18673# ------------- done basic int types, emit int64_t types ------------
18674if test "$ac_cv_type_uint64_t" = yes; then
18675 sed 's/^ *//' >> tmp-stdint.h <<EOF
d5efd9fc 18676
f3b4f6d0
PB
18677 /* system headers have good uint64_t and int64_t */
18678 #ifndef _INT64_T
18679 #define _INT64_T
18680 #endif
18681 #ifndef _UINT64_T
18682 #define _UINT64_T
18683 #endif
18684EOF
18685elif test "$ac_cv_type_u_int64_t" = yes; then
18686 sed 's/^ *//' >> tmp-stdint.h <<EOF
18687
18688 /* system headers have an u_int64_t (and int64_t) */
18689 #ifndef _INT64_T
18690 #define _INT64_T
18691 #endif
18692 #ifndef _UINT64_T
18693 #define _UINT64_T
18694 #ifndef __uint64_t_defined
18695 #define __uint64_t_defined
a009f2e7 18696 #ifndef uint64_t
f3b4f6d0
PB
18697 typedef u_int64_t uint64_t;
18698 #endif
18699 #endif
a009f2e7 18700 #endif
f3b4f6d0
PB
18701EOF
18702elif test -n "$acx_cv_type_int64_t"; then
18703 sed 's/^ *//' >> tmp-stdint.h <<EOF
18704
18705 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
18706 #ifndef _INT64_T
18707 #define _INT64_T
a009f2e7 18708 #ifndef int64_t
f3b4f6d0
PB
18709 typedef $acx_cv_type_int64_t int64_t;
18710 #endif
a009f2e7 18711 #endif
f3b4f6d0
PB
18712 #ifndef _UINT64_T
18713 #define _UINT64_T
18714 #ifndef __uint64_t_defined
18715 #define __uint64_t_defined
a009f2e7 18716 #ifndef uint64_t
f3b4f6d0
PB
18717 typedef unsigned $acx_cv_type_int64_t uint64_t;
18718 #endif
18719 #endif
a009f2e7 18720 #endif
f3b4f6d0
PB
18721EOF
18722else
18723 sed 's/^ *//' >> tmp-stdint.h <<EOF
18724
18725 /* some common heuristics for int64_t, using compiler-specific tests */
18726 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
18727 #ifndef _INT64_T
18728 #define _INT64_T
18729 #ifndef __int64_t_defined
a009f2e7 18730 #ifndef int64_t
f3b4f6d0
PB
18731 typedef long long int64_t;
18732 #endif
18733 #endif
a009f2e7 18734 #endif
f3b4f6d0
PB
18735 #ifndef _UINT64_T
18736 #define _UINT64_T
a009f2e7 18737 #ifndef uint64_t
f3b4f6d0
PB
18738 typedef unsigned long long uint64_t;
18739 #endif
a009f2e7 18740 #endif
f3b4f6d0
PB
18741
18742 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
18743 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
18744 does not implement __extension__. But that compiler doesn't define
18745 __GNUC_MINOR__. */
18746 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
18747 # define __extension__
18748 # endif
18749
18750 # ifndef _INT64_T
18751 # define _INT64_T
a009f2e7 18752 # ifndef int64_t
f3b4f6d0
PB
18753 __extension__ typedef long long int64_t;
18754 # endif
a009f2e7 18755 # endif
f3b4f6d0
PB
18756 # ifndef _UINT64_T
18757 # define _UINT64_T
a009f2e7 18758 # ifndef uint64_t
f3b4f6d0
PB
18759 __extension__ typedef unsigned long long uint64_t;
18760 # endif
a009f2e7 18761 # endif
f3b4f6d0
PB
18762
18763 #elif !defined __STRICT_ANSI__
18764 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
18765
18766 # ifndef _INT64_T
18767 # define _INT64_T
a009f2e7 18768 # ifndef int64_t
f3b4f6d0
PB
18769 typedef __int64 int64_t;
18770 # endif
a009f2e7 18771 # endif
f3b4f6d0
PB
18772 # ifndef _UINT64_T
18773 # define _UINT64_T
a009f2e7 18774 # ifndef uint64_t
f3b4f6d0
PB
18775 typedef unsigned __int64 uint64_t;
18776 # endif
a009f2e7 18777 # endif
f3b4f6d0
PB
18778 # endif /* compiler */
18779
18780 #endif /* ANSI version */
18781EOF
18782fi
18783
18784# ------------- done int64_t types, emit intptr types ------------
18785if test "$ac_cv_type_uintptr_t" != yes; then
18786 sed 's/^ *//' >> tmp-stdint.h <<EOF
18787
18788 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
18789 #ifndef __uintptr_t_defined
a009f2e7 18790 #ifndef uintptr_t
f3b4f6d0
PB
18791 typedef u$acx_cv_type_intptr_t uintptr_t;
18792 #endif
a009f2e7 18793 #endif
f3b4f6d0 18794 #ifndef __intptr_t_defined
a009f2e7 18795 #ifndef intptr_t
f3b4f6d0
PB
18796 typedef $acx_cv_type_intptr_t intptr_t;
18797 #endif
a009f2e7 18798 #endif
f3b4f6d0
PB
18799EOF
18800fi
18801
18802# ------------- done intptr types, emit int_least types ------------
d5efd9fc 18803if test "$ac_cv_type_int_least32_t" != yes; then
f3b4f6d0 18804 sed 's/^ *//' >> tmp-stdint.h <<EOF
d5efd9fc
AM
18805
18806 /* Define int_least types */
18807 typedef int8_t int_least8_t;
18808 typedef int16_t int_least16_t;
18809 typedef int32_t int_least32_t;
f3b4f6d0 18810 #ifdef _INT64_T
d5efd9fc 18811 typedef int64_t int_least64_t;
f3b4f6d0 18812 #endif
d5efd9fc
AM
18813
18814 typedef uint8_t uint_least8_t;
18815 typedef uint16_t uint_least16_t;
18816 typedef uint32_t uint_least32_t;
f3b4f6d0 18817 #ifdef _UINT64_T
d5efd9fc 18818 typedef uint64_t uint_least64_t;
f3b4f6d0 18819 #endif
d5efd9fc
AM
18820EOF
18821fi
18822
f3b4f6d0 18823# ------------- done intptr types, emit int_fast types ------------
d5efd9fc 18824if test "$ac_cv_type_int_fast32_t" != yes; then
f3b4f6d0 18825 sed 's/^ *//' >> tmp-stdint.h <<EOF
d5efd9fc
AM
18826
18827 /* Define int_fast types. short is often slow */
18828 typedef int8_t int_fast8_t;
18829 typedef int int_fast16_t;
18830 typedef int32_t int_fast32_t;
f3b4f6d0 18831 #ifdef _INT64_T
d5efd9fc 18832 typedef int64_t int_fast64_t;
f3b4f6d0 18833 #endif
d5efd9fc
AM
18834
18835 typedef uint8_t uint_fast8_t;
18836 typedef unsigned int uint_fast16_t;
18837 typedef uint32_t uint_fast32_t;
f3b4f6d0 18838 #ifdef _UINT64_T
d5efd9fc 18839 typedef uint64_t uint_fast64_t;
f3b4f6d0
PB
18840 #endif
18841EOF
18842fi
18843
18844if test "$ac_cv_type_uintmax_t" != yes; then
18845 sed 's/^ *//' >> tmp-stdint.h <<EOF
18846
18847 /* Define intmax based on what we found */
a009f2e7 18848 #ifndef intmax_t
f3b4f6d0
PB
18849 #ifdef _INT64_T
18850 typedef int64_t intmax_t;
18851 #else
18852 typedef long intmax_t;
18853 #endif
a009f2e7
RW
18854 #endif
18855 #ifndef uintmax_t
f3b4f6d0
PB
18856 #ifdef _UINT64_T
18857 typedef uint64_t uintmax_t;
18858 #else
18859 typedef unsigned long uintmax_t;
18860 #endif
a009f2e7 18861 #endif
d5efd9fc
AM
18862EOF
18863fi
18864
f3b4f6d0
PB
18865sed 's/^ *//' >> tmp-stdint.h <<EOF
18866
18867 #endif /* GCC_GENERATED_STDINT_H */
18868EOF
d5efd9fc 18869
f3b4f6d0
PB
18870if test -r bfd_stdint.h && cmp -s tmp-stdint.h bfd_stdint.h; then
18871 rm -f tmp-stdint.h
d5efd9fc 18872else
f3b4f6d0 18873 mv -f tmp-stdint.h bfd_stdint.h
d5efd9fc
AM
18874fi
18875
18876 ;;
81ecdfbb 18877 "default":C)
20e95c23
DJ
18878case "$srcdir" in
18879 .) srcdirpre= ;;
18880 *) srcdirpre='$(srcdir)/' ;;
18881esac
18882POFILES=
18883GMOFILES=
18884for lang in dummy $OBSOLETE_ALL_LINGUAS; do
18885 if test $lang != dummy; then
18886 POFILES="$POFILES $srcdirpre$lang.po"
18887 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
18888 fi
18889done
18890sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' \
18891 -e '/BLD-POTFILES =/r po/BLD-POTFILES' \
18892 -e "s,@POFILES@,$POFILES," \
18893 -e "s,@GMOFILES@,$GMOFILES," \
18894 po/Makefile.in > po/Makefile ;;
81ecdfbb 18895
5464f5a1 18896 esac
81ecdfbb 18897done # for ac_tag
5464f5a1 18898
5464f5a1 18899
81ecdfbb 18900as_fn_exit 0
5464f5a1 18901_ACEOF
5464f5a1
NN
18902ac_clean_files=$ac_clean_files_save
18903
81ecdfbb
RW
18904test $ac_write_fail = 0 ||
18905 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
18906
5464f5a1
NN
18907
18908# configure is writing to config.log, and then calls config.status.
18909# config.status does its own redirection, appending to config.log.
18910# Unfortunately, on DOS this fails, as config.log is still kept open
18911# by configure, so config.status won't be able to write to it; its
18912# output is simply discarded. So we exec the FD to /dev/null,
18913# effectively closing config.log, so it can be properly (re)opened and
18914# appended to by config.status. When coming back to configure, we
18915# need to make the FD available again.
18916if test "$no_create" != yes; then
18917 ac_cs_success=:
18918 ac_config_status_args=
18919 test "$silent" = yes &&
18920 ac_config_status_args="$ac_config_status_args --quiet"
18921 exec 5>/dev/null
18922 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18923 exec 5>>config.log
18924 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18925 # would make configure fail if this is the last instruction.
81ecdfbb
RW
18926 $ac_cs_success || as_fn_exit $?
18927fi
18928if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18930$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
5464f5a1 18931fi
252b5132 18932
This page took 3.008369 seconds and 4 git commands to generate.