Remove i860, i960, bout and aout-adobe targets
[deliverable/binutils-gdb.git] / bfd / configure
CommitLineData
252b5132 1#! /bin/sh
252b5132 2# Guess values for system-dependent variables and create Makefiles.
769c7ea5 3# Generated by GNU Autoconf 2.64 for bfd 2.30.51.
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'
769c7ea5
NC
559PACKAGE_VERSION='2.30.51'
560PACKAGE_STRING='bfd 2.30.51'
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
769c7ea5 1358\`configure' configures bfd 2.30.51 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
769c7ea5 1429 short | recursive ) echo "Configuration of bfd 2.30.51:";;
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
769c7ea5 1551bfd configure 2.30.51
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
769c7ea5 2193It was created by bfd $as_me 2.30.51, 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'
769c7ea5 4002 VERSION='2.30.51'
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
429d795d 12527ALL_LINGUAS="da es fi fr hr id ja ro ru rw sr sv tr uk vi zh_CN"
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
c603b11b
AM
14046# Check if linker supports --as-needed and --no-as-needed options
14047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
14048$as_echo_n "checking linker --as-needed support... " >&6; }
14049if test "${bfd_cv_ld_as_needed+set}" = set; then :
14050 $as_echo_n "(cached) " >&6
14051else
14052 bfd_cv_ld_as_needed=no
14053 if $LD --help 2>/dev/null | grep as-needed > /dev/null; then
14054 bfd_cv_ld_as_needed=yes
14055 fi
d5efd9fc 14056
c603b11b
AM
14057fi
14058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_ld_as_needed" >&5
14059$as_echo "$bfd_cv_ld_as_needed" >&6; }
d5efd9fc 14060
c603b11b
AM
14061LIBM=
14062case $host in
14063*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
14064 # These system don't have libm, or don't need it
14065 ;;
14066*-ncr-sysv4.3*)
14067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
14068$as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
14069if test "${ac_cv_lib_mw__mwvalidcheckl+set}" = set; then :
14070 $as_echo_n "(cached) " >&6
14071else
14072 ac_check_lib_save_LIBS=$LIBS
14073LIBS="-lmw $LIBS"
14074cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d5efd9fc 14075/* end confdefs.h. */
c603b11b
AM
14076
14077/* Override any GCC internal prototype to avoid an error.
14078 Use char because int might match the return type of a GCC
14079 builtin and then its argument prototype would still apply. */
14080#ifdef __cplusplus
14081extern "C"
14082#endif
14083char _mwvalidcheckl ();
d5efd9fc
AM
14084int
14085main ()
14086{
c603b11b 14087return _mwvalidcheckl ();
d5efd9fc
AM
14088 ;
14089 return 0;
14090}
14091_ACEOF
c603b11b
AM
14092if ac_fn_c_try_link "$LINENO"; then :
14093 ac_cv_lib_mw__mwvalidcheckl=yes
d5efd9fc 14094else
c603b11b 14095 ac_cv_lib_mw__mwvalidcheckl=no
d5efd9fc 14096fi
c603b11b
AM
14097rm -f core conftest.err conftest.$ac_objext \
14098 conftest$ac_exeext conftest.$ac_ext
14099LIBS=$ac_check_lib_save_LIBS
d5efd9fc 14100fi
c603b11b
AM
14101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
14102$as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
14103if test "x$ac_cv_lib_mw__mwvalidcheckl" = x""yes; then :
14104 LIBM="-lmw"
d5efd9fc
AM
14105fi
14106
c603b11b
AM
14107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
14108$as_echo_n "checking for cos in -lm... " >&6; }
14109if test "${ac_cv_lib_m_cos+set}" = set; then :
81ecdfbb 14110 $as_echo_n "(cached) " >&6
d5efd9fc 14111else
c603b11b
AM
14112 ac_check_lib_save_LIBS=$LIBS
14113LIBS="-lm $LIBS"
14114cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d5efd9fc 14115/* end confdefs.h. */
81ecdfbb 14116
c603b11b
AM
14117/* Override any GCC internal prototype to avoid an error.
14118 Use char because int might match the return type of a GCC
14119 builtin and then its argument prototype would still apply. */
14120#ifdef __cplusplus
14121extern "C"
14122#endif
14123char cos ();
d5efd9fc
AM
14124int
14125main ()
14126{
c603b11b 14127return cos ();
d5efd9fc
AM
14128 ;
14129 return 0;
14130}
14131_ACEOF
c603b11b
AM
14132if ac_fn_c_try_link "$LINENO"; then :
14133 ac_cv_lib_m_cos=yes
d5efd9fc 14134else
c603b11b 14135 ac_cv_lib_m_cos=no
d5efd9fc 14136fi
c603b11b
AM
14137rm -f core conftest.err conftest.$ac_objext \
14138 conftest$ac_exeext conftest.$ac_ext
14139LIBS=$ac_check_lib_save_LIBS
14140fi
14141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
14142$as_echo "$ac_cv_lib_m_cos" >&6; }
14143if test "x$ac_cv_lib_m_cos" = x""yes; then :
14144 LIBM="$LIBM -lm"
d5efd9fc 14145fi
d5efd9fc 14146
c603b11b
AM
14147 ;;
14148*)
14149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
14150$as_echo_n "checking for cos in -lm... " >&6; }
14151if test "${ac_cv_lib_m_cos+set}" = set; then :
81ecdfbb 14152 $as_echo_n "(cached) " >&6
d5efd9fc 14153else
c603b11b
AM
14154 ac_check_lib_save_LIBS=$LIBS
14155LIBS="-lm $LIBS"
14156cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d5efd9fc 14157/* end confdefs.h. */
81ecdfbb 14158
c603b11b
AM
14159/* Override any GCC internal prototype to avoid an error.
14160 Use char because int might match the return type of a GCC
14161 builtin and then its argument prototype would still apply. */
14162#ifdef __cplusplus
14163extern "C"
14164#endif
14165char cos ();
d5efd9fc
AM
14166int
14167main ()
14168{
c603b11b 14169return cos ();
d5efd9fc
AM
14170 ;
14171 return 0;
14172}
14173_ACEOF
c603b11b
AM
14174if ac_fn_c_try_link "$LINENO"; then :
14175 ac_cv_lib_m_cos=yes
81ecdfbb 14176else
c603b11b 14177 ac_cv_lib_m_cos=no
81ecdfbb 14178fi
c603b11b
AM
14179rm -f core conftest.err conftest.$ac_objext \
14180 conftest$ac_exeext conftest.$ac_ext
14181LIBS=$ac_check_lib_save_LIBS
14182fi
14183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
14184$as_echo "$ac_cv_lib_m_cos" >&6; }
14185if test "x$ac_cv_lib_m_cos" = x""yes; then :
14186 LIBM="-lm"
81ecdfbb
RW
14187fi
14188
c603b11b
AM
14189 ;;
14190esac
81ecdfbb 14191
81ecdfbb 14192
81ecdfbb 14193
c603b11b
AM
14194# When building a shared libbfd, link against the pic version of libiberty
14195# so that apps that use libbfd won't need libiberty just to satisfy any
14196# libbfd references.
14197# We can't do that if a pic libiberty is unavailable since including non-pic
14198# code would insert text relocations into libbfd.
14199SHARED_LIBADD=
14200SHARED_LDFLAGS=
14201if test "$enable_shared" = "yes"; then
14202 x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'`
14203 if test -n "$x"; then
14204 SHARED_LIBADD="-L`pwd`/../libiberty/pic -liberty"
14205 fi
81ecdfbb 14206
c603b11b
AM
14207# More hacks to build DLLs on Windows.
14208 case "${host}" in
14209 *-*-cygwin*)
14210 SHARED_LDFLAGS="-no-undefined"
14211 SHARED_LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
14212 ;;
d5efd9fc 14213
c603b11b
AM
14214 # Hack to build or1k-src on OSX
14215 or1k*-*-darwin*)
14216 SHARED_LIBADD="-L`pwd`/../libiberty/pic -L`pwd`/../intl -liberty -lintl"
14217 ;;
14218 esac
14219
14220 if test -n "$SHARED_LIBADD"; then
14221 if test -n "$LIBM"; then
14222 if test x"$bfd_cv_ld_as_needed" = xyes; then
14223 # Link against libm only when needed. Put -lc, -lm inside -Wl
14224 # to stop libtool reordering these options.
14225 SHARED_LIBADD="$SHARED_LIBADD -Wl,-lc,--as-needed,`echo $LIBM | sed 's/ /,/g'`,--no-as-needed"
14226 else
14227 SHARED_LIBADD="$SHARED_LIBADD $LIBM"
14228 fi
14229 fi
14230 fi
81ecdfbb 14231fi
d5efd9fc 14232
81ecdfbb 14233
81ecdfbb 14234
c603b11b 14235# target stuff:
81ecdfbb 14236
c603b11b
AM
14237# Canonicalize the secondary target names.
14238if test -n "$enable_targets" ; then
14239 for targ in `echo $enable_targets | sed 's/,/ /g'`
14240 do
14241 result=`$ac_config_sub $targ 2>/dev/null`
14242 if test -n "$result" ; then
14243 canon_targets="$canon_targets $result"
14244 else
14245 # Allow targets that config.sub doesn't recognize, like "all".
14246 canon_targets="$canon_targets $targ"
14247 fi
14248 done
d5efd9fc 14249fi
d5efd9fc 14250
c603b11b
AM
14251all_targets=false
14252defvec=
14253selvecs=
14254assocvecs=
14255selarchs=
14256TDEFINES=
14257for targ in $target $canon_targets
14258do
14259 if test "x$targ" = "xall"; then
14260 all_targets=true
14261 assocvecs="$assocvecs $targ_defvec $targ_selvecs"
14262 else
14263 . $srcdir/config.bfd
14264 if test "x$targ" = "x$target"; then
14265 defvec=$targ_defvec
14266 fi
14267 selvecs="$selvecs $targ_defvec $targ_selvecs"
14268 selarchs="$selarchs $targ_archs"
14269 TDEFINES="$TDEFINES $targ_cflags"
14270 fi
14271done
d5efd9fc 14272
81ecdfbb 14273
c603b11b
AM
14274# This processing still needs to be done if we're to decide properly whether
14275# 64-bit support needs to be compiled in. Currently, it will be included if
14276# the default or any other explicitly requested target requires it; it
14277# will not be included on a 32-bit host if no 64-bit target is requested, and
14278# no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
14279# used.
81ecdfbb 14280
c603b11b
AM
14281# uniq the default and selected vectors in all the configured targets.
14282f=""
14283for i in $selvecs ; do
14284 case " $f " in
14285 *" $i "*) ;;
14286 *) f="$f $i" ;;
14287 esac
14288done
14289selvecs="$f"
335e41d4 14290
335e41d4 14291
c603b11b
AM
14292# uniq the associated vectors in all the configured targets.
14293f=""
14294for i in $assocvecs ; do
14295 case " $f " in
14296 *" $i "*) ;;
14297 *) f="$f $i" ;;
14298 esac
14299done
14300assocvecs="$f"
335e41d4 14301
335e41d4 14302
c603b11b
AM
14303# uniq the architectures in all the configured targets.
14304f=""
14305for i in $selarchs ; do
14306 case " $f " in
14307 *" $i "*) ;;
14308 *) f="$f $i" ;;
14309 esac
14310done
14311selarchs="$f"
335e41d4 14312
c603b11b
AM
14313# Target backend .o files.
14314tb=
335e41d4 14315
46bed679 14316elf="elf.lo elflink.lo elf-attrs.lo elf-strtab.lo elf-properties.lo
c603b11b
AM
14317 elf-eh-frame.lo dwarf1.lo dwarf2.lo"
14318coffgen="coffgen.lo dwarf2.lo"
14319coff="cofflink.lo $coffgen"
14320ecoff="ecofflink.lo $coffgen"
14321xcoff="xcofflink.lo $coffgen"
2ba49b59 14322
81ecdfbb 14323for vec in $selvecs
49c97a80 14324do
81ecdfbb
RW
14325 target_size=32
14326 case "$vec" in
14327 # This list is alphabetized to make it easy to compare
14328 # with the two vector lists in targets.c. For the same reason,
14329 # use one entry per line, even though this leads to long lines.
2f67d686
AM
14330 aarch64_elf32_be_vec) tb="$tb elf32-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf32.lo $elf"; target_size=64 ;;
14331 aarch64_elf32_le_vec) tb="$tb elf32-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf32.lo $elf"; target_size=64 ;;
d8bd95ef 14332 aarch64_elf64_be_vec) tb="$tb elf64-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
a75cf613 14333 aarch64_elf64_be_cloudabi_vec) tb="$tb elf64-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
d8bd95ef 14334 aarch64_elf64_le_vec) tb="$tb elf64-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
a75cf613 14335 aarch64_elf64_le_cloudabi_vec) tb="$tb elf64-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
f075eb5e 14336 aarch64_mach_o_vec) tb="$tb mach-o-aarch64.lo"; target_size=64 ;;
f4943d82 14337 alpha_ecoff_le_vec) tb="$tb coff-alpha.lo ecoff.lo $ecoff"; target_size=64 ;;
2f67d686
AM
14338 alpha_elf64_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
14339 alpha_elf64_fbsd_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
14340 alpha_nlm32_vec) tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"; target_size=64 ;;
14341 alpha_vms_vec) tb="$tb vms-alpha.lo vms-misc.lo vms-lib.lo"; target_size=64 ;;
14342 alpha_vms_lib_txt_vec) tb="$tb vms-lib.lo vms-misc.lo" ;;
14343 am33_elf32_linux_vec) tb="$tb elf32-am33lin.lo elf32.lo $elf" ;;
6d00b590 14344 aout0_be_vec) tb="$tb aout0.lo aout32.lo" ;;
2f67d686
AM
14345 aout64_vec) tb="$tb demo64.lo aout64.lo"; target_size=64 ;;
14346 aout_vec) tb="$tb host-aout.lo aout32.lo" ;;
2f67d686
AM
14347 arc_elf32_be_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
14348 arc_elf32_le_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
6d00b590
AM
14349 arm_aout_be_vec) tb="$tb aout-arm.lo aout32.lo" ;;
14350 arm_aout_le_vec) tb="$tb aout-arm.lo aout32.lo" ;;
2f67d686
AM
14351 arm_aout_nbsd_vec) tb="$tb armnetbsd.lo aout32.lo" ;;
14352 arm_aout_riscix_vec) tb="$tb aout32.lo riscix.lo" ;;
f4943d82
AM
14353 arm_coff_be_vec) tb="$tb coff-arm.lo $coff" ;;
14354 arm_coff_le_vec) tb="$tb coff-arm.lo $coff" ;;
2f67d686
AM
14355 arm_elf32_be_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
14356 arm_elf32_le_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
14357 arm_elf32_nacl_be_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
14358 arm_elf32_nacl_le_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
14359 arm_elf32_symbian_be_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
14360 arm_elf32_symbian_le_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
14361 arm_elf32_vxworks_be_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
14362 arm_elf32_vxworks_le_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
f4943d82
AM
14363 arm_pe_be_vec) tb="$tb pe-arm.lo peigen.lo $coff" ;;
14364 arm_pe_le_vec) tb="$tb pe-arm.lo peigen.lo $coff" ;;
14365 arm_pe_epoc_be_vec) tb="$tb epoc-pe-arm.lo peigen.lo $coff" ;;
14366 arm_pe_epoc_le_vec) tb="$tb epoc-pe-arm.lo peigen.lo $coff" ;;
14367 arm_pe_wince_be_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo $coff" ;;
14368 arm_pe_wince_le_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo $coff" ;;
14369 arm_pei_be_vec) tb="$tb pei-arm.lo peigen.lo $coff" ;;
14370 arm_pei_le_vec) tb="$tb pei-arm.lo peigen.lo $coff" ;;
14371 arm_pei_epoc_be_vec) tb="$tb epoc-pei-arm.lo peigen.lo $coff" ;;
14372 arm_pei_epoc_le_vec) tb="$tb epoc-pei-arm.lo peigen.lo $coff" ;;
14373 arm_pei_wince_be_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo $coff" ;;
14374 arm_pei_wince_le_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo $coff" ;;
f075eb5e 14375 arm_mach_o_vec) tb="$tb mach-o-arm.lo" ;;
6d00b590
AM
14376 avr_elf32_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;;
14377 bfin_elf32_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
14378 bfin_elf32_fdpic_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
6d00b590
AM
14379 cr16_elf32_vec) tb="$tb elf32-cr16.lo elf32.lo $elf" ;;
14380 cr16c_elf32_vec) tb="$tb elf32-cr16c.lo elf32.lo $elf" ;;
2f67d686 14381 cris_aout_vec) tb="$tb aout-cris.lo" ;;
6d00b590 14382 cris_elf32_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
2f67d686 14383 cris_elf32_us_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
6d00b590
AM
14384 crx_elf32_vec) tb="$tb elf32-crx.lo elf32.lo $elf" ;;
14385 d10v_elf32_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
14386 d30v_elf32_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;;
14387 dlx_elf32_be_vec) tb="$tb elf32-dlx.lo elf32.lo $elf" ;;
2f67d686
AM
14388 elf32_be_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
14389 elf32_le_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
14390 elf64_be_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
14391 elf64_le_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
6d00b590
AM
14392 epiphany_elf32_vec) tb="$tb elf32-epiphany.lo elf32.lo $elf" ;;
14393 fr30_elf32_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;;
14394 frv_elf32_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
14395 frv_elf32_fdpic_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
f4943d82 14396 h8300_coff_vec) tb="$tb coff-h8300.lo reloc16.lo $coffgen" ;;
6d00b590 14397 h8300_elf32_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
5518c738 14398 h8300_elf32_linux_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
f4943d82 14399 h8500_coff_vec) tb="$tb coff-h8500.lo reloc16.lo $coffgen" ;;
2f67d686 14400 hppa_elf32_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
6d00b590
AM
14401 hppa_elf32_linux_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
14402 hppa_elf32_nbsd_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
2f67d686
AM
14403 hppa_elf64_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
14404 hppa_elf64_linux_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
14405 hppa_som_vec) tb="$tb som.lo" ;;
6d00b590 14406 i370_elf32_vec) tb="$tb elf32-i370.lo elf32.lo $elf" ;;
2f67d686
AM
14407 i386_aout_vec) tb="$tb i386aout.lo aout32.lo" ;;
14408 i386_aout_bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;;
14409 i386_aout_dynix_vec) tb="$tb i386dynix.lo aout32.lo" ;;
14410 i386_aout_fbsd_vec) tb="$tb i386freebsd.lo aout32.lo" ;;
14411 i386_aout_linux_vec) tb="$tb i386linux.lo aout32.lo" ;;
14412 i386_aout_lynx_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
14413 i386_aout_mach3_vec) tb="$tb i386mach3.lo aout32.lo" ;;
14414 i386_aout_nbsd_vec) tb="$tb i386netbsd.lo aout32.lo" ;;
14415 i386_aout_os9k_vec) tb="$tb i386os9k.lo aout32.lo" ;;
f4943d82
AM
14416 i386_coff_vec) tb="$tb coff-i386.lo $coff" ;;
14417 i386_coff_go32_vec) tb="$tb coff-go32.lo $coff" ;;
14418 i386_coff_go32stubbed_vec) tb="$tb coff-stgo32.lo $coff" ;;
14419 i386_coff_lynx_vec) tb="$tb cf-i386lynx.lo lynx-core.lo $coff" ;;
0afcef53
L
14420 i386_elf32_vec) tb="$tb elf32-i386.lo elfxx-x86.lo elf-ifunc.lo elf-nacl.lo elf-vxworks.lo elf32.lo $elf" ;;
14421 i386_elf32_fbsd_vec) tb="$tb elf32-i386.lo elfxx-x86.lo elf-ifunc.lo elf-nacl.lo elf-vxworks.lo elf32.lo $elf" ;;
14422 i386_elf32_nacl_vec) tb="$tb elf32-i386.lo elfxx-x86.lo elf-ifunc.lo elf-nacl.lo elf-vxworks.lo elf32.lo $elf" ;;
14423 i386_elf32_sol2_vec) tb="$tb elf32-i386.lo elfxx-x86.lo elf-ifunc.lo elf-nacl.lo elf-vxworks.lo elf32.lo $elf" ;;
14424 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
14425 i386_mach_o_vec) tb="$tb mach-o-i386.lo" ;;
14426 i386_msdos_vec) tb="$tb i386msdos.lo" ;;
14427 i386_nlm32_vec) tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
f4943d82
AM
14428 i386_pe_vec) tb="$tb pe-i386.lo peigen.lo $coff" ;;
14429 i386_pei_vec) tb="$tb pei-i386.lo peigen.lo $coff" ;;
0afcef53 14430 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
14431 ia64_elf32_be_vec) tb="$tb elf32-ia64.lo elfxx-ia64.lo elf32.lo $elf" ;;
14432 ia64_elf32_hpux_be_vec) tb="$tb elf32-ia64.lo elfxx-ia64.lo elf32.lo $elf" ;;
2f67d686
AM
14433 ia64_elf64_be_vec) tb="$tb elf64-ia64.lo elfxx-ia64.lo elf64.lo $elf"; target_size=64 ;;
14434 ia64_elf64_le_vec) tb="$tb elf64-ia64.lo elfxx-ia64.lo elf64.lo $elf"; target_size=64 ;;
14435 ia64_elf64_hpux_be_vec) tb="$tb elf64-ia64.lo elfxx-ia64.lo elf64.lo $elf"; target_size=64 ;;
14436 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 14437 ia64_pei_vec) tb="$tb pei-ia64.lo pepigen.lo $coff"; target_size=64 ;;
2f67d686 14438 ieee_vec) tb="$tb ieee.lo" ;;
6d00b590
AM
14439 ip2k_elf32_vec) tb="$tb elf32-ip2k.lo elf32.lo $elf" ;;
14440 iq2000_elf32_vec) tb="$tb elf32-iq2000.lo elf32.lo $elf" ;;
0afcef53
L
14441 k1om_elf64_vec) tb="$tb elf64-x86-64.lo elfxx-x86.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;;
14442 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 ;;
14443 l1om_elf64_vec) tb="$tb elf64-x86-64.lo elfxx-x86.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;;
14444 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
14445 lm32_elf32_vec) tb="$tb elf32-lm32.lo elf32.lo $elf" ;;
14446 lm32_elf32_fdpic_vec) tb="$tb elf32-lm32.lo elf32.lo $elf" ;;
6d00b590
AM
14447 m32c_elf32_vec) tb="$tb elf32-m32c.lo elf32.lo $elf" ;;
14448 m32r_elf32_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
14449 m32r_elf32_le_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
14450 m32r_elf32_linux_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
14451 m32r_elf32_linux_le_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
14452 m68hc11_elf32_vec) tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
14453 m68hc12_elf32_vec) tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
2f67d686
AM
14454 m68k_aout_4knbsd_vec) tb="$tb m68k4knetbsd.lo aout32.lo" ;;
14455 m68k_aout_hp300bsd_vec) tb="$tb hp300bsd.lo aout32.lo" ;;
14456 m68k_aout_hp300hpux_vec) tb="$tb hp300hpux.lo aout32.lo" ;;
14457 m68k_aout_linux_vec) tb="$tb m68klinux.lo aout32.lo" ;;
14458 m68k_aout_nbsd_vec) tb="$tb m68knetbsd.lo aout32.lo" ;;
14459 m68k_aout_newsos3_vec) tb="$tb newsos3.lo aout32.lo" ;;
f4943d82
AM
14460 m68k_coff_vec) tb="$tb coff-m68k.lo $coff" ;;
14461 m68k_coff_apollo_vec) tb="$tb coff-apollo.lo $coffgen" ;;
14462 m68k_coff_aux_vec) tb="$tb coff-aux.lo coff-m68k.lo $coff" ;;
14463 m68k_coff_sysv_vec) tb="$tb coff-svm68k.lo $coff" ;;
14464 m68k_coff_un_vec) tb="$tb coff-u68k.lo coff-m68k.lo $coff" ;;
6d00b590 14465 m68k_elf32_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
2f67d686
AM
14466 m68k_versados_vec) tb="$tb versados.lo" ;;
14467 m88k_aout_mach3_vec) tb="$tb m88kmach3.lo aout32.lo" ;;
14468 m88k_aout_obsd_vec) tb="$tb m88kopenbsd.lo aout32.lo" ;;
f4943d82 14469 m88k_coff_bcs_vec) tb="$tb coff-m88k.lo $coffgen" ;;
6d00b590 14470 m88k_elf32_vec) tb="$tb elf32-m88k.lo elf32.lo $elf" ;;
f4943d82
AM
14471 mach_o_be_vec) tb="$tb mach-o.lo dwarf2.lo" ;;
14472 mach_o_le_vec) tb="$tb mach-o.lo dwarf2.lo" ;;
14473 mach_o_fat_vec) tb="$tb mach-o.lo dwarf2.lo" ;;
6d00b590
AM
14474 mcore_elf32_be_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
14475 mcore_elf32_le_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
f4943d82
AM
14476 mcore_pe_be_vec) tb="$tb pe-mcore.lo peigen.lo $coff" ;;
14477 mcore_pe_le_vec) tb="$tb pe-mcore.lo peigen.lo $coff" ;;
14478 mcore_pei_be_vec) tb="$tb pei-mcore.lo peigen.lo $coff" ;;
14479 mcore_pei_le_vec) tb="$tb pei-mcore.lo peigen.lo $coff" ;;
6d00b590
AM
14480 mep_elf32_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;;
14481 mep_elf32_le_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;;
14482 metag_elf32_vec) tb="$tb elf32-metag.lo elf32.lo $elf" ;;
6d00b590 14483 microblaze_elf32_vec) tb="$tb elf32-microblaze.lo elf32.lo $elf" ;;
2f67d686 14484 microblaze_elf32_le_vec) tb="$tb elf32-microblaze.lo elf32.lo $elf" ;;
f4943d82
AM
14485 mips_ecoff_be_vec) tb="$tb coff-mips.lo ecoff.lo $ecoff" ;;
14486 mips_ecoff_le_vec) tb="$tb coff-mips.lo ecoff.lo $ecoff" ;;
14487 mips_ecoff_bele_vec) tb="$tb coff-mips.lo ecoff.lo $ecoff" ;;
14488 mips_elf32_be_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
14489 mips_elf32_le_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
14490 mips_elf32_n_be_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
14491 mips_elf32_n_le_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
14492 mips_elf32_ntrad_be_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
14493 mips_elf32_ntrad_le_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
14494 mips_elf32_ntradfbsd_be_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
14495 mips_elf32_ntradfbsd_le_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
14496 mips_elf32_trad_be_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
14497 mips_elf32_trad_le_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
14498 mips_elf32_tradfbsd_be_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
14499 mips_elf32_tradfbsd_le_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
14500 mips_elf32_vxworks_be_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
14501 mips_elf32_vxworks_le_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
14502 mips_elf64_be_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
14503 mips_elf64_le_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
14504 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 ;;
14505 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 ;;
14506 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 ;;
14507 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 ;;
14508 mips_pe_le_vec) tb="$tb pe-mips.lo peigen.lo $coff" ;;
14509 mips_pei_le_vec) tb="$tb pei-mips.lo peigen.lo $coff" ;;
2f67d686
AM
14510 mmix_elf64_vec) tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;;
14511 mmix_mmo_vec) tb="$tb mmo.lo" target_size=64 ;;
14512 mn10200_elf32_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;;
14513 mn10300_elf32_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;;
14514 moxie_elf32_be_vec) tb="$tb elf32-moxie.lo elf32.lo $elf" ;;
14515 moxie_elf32_le_vec) tb="$tb elf32-moxie.lo elf32.lo $elf" ;;
14516 msp430_elf32_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
14517 msp430_elf32_ti_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
14518 mt_elf32_vec) tb="$tb elf32-mt.lo elf32.lo $elf" ;;
6d00b590
AM
14519 nds32_elf32_be_vec) tb="$tb elf32-nds32.lo elf32.lo $elf" ;;
14520 nds32_elf32_le_vec) tb="$tb elf32-nds32.lo elf32.lo $elf" ;;
14521 nds32_elf32_linux_be_vec) tb="$tb elf32-nds32.lo elf32.lo $elf" ;;
14522 nds32_elf32_linux_le_vec) tb="$tb elf32-nds32.lo elf32.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 ;;
14542 powerpc_nlm32_vec) tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
f4943d82
AM
14543 powerpc_pe_vec) tb="$tb pe-ppc.lo peigen.lo $coff" ;;
14544 powerpc_pe_le_vec) tb="$tb pe-ppc.lo peigen.lo $coff" ;;
14545 powerpc_pei_vec) tb="$tb pei-ppc.lo peigen.lo $coff" ;;
14546 powerpc_pei_le_vec) tb="$tb pei-ppc.lo peigen.lo $coff" ;;
14547 powerpc_xcoff_vec) tb="$tb coff-rs6000.lo $xcoff" ;;
889294f6 14548 pru_elf32_vec) tb="$tb elf32-pru.lo elf32.lo $elf" ;;
e23eba97
NC
14549 riscv_elf32_vec) tb="$tb elf32-riscv.lo elfxx-riscv.lo elf32.lo $elf" ;;
14550 riscv_elf64_vec) tb="$tb elf64-riscv.lo elf64.lo elfxx-riscv.lo elf32.lo $elf"; target_size=64 ;;
6d00b590 14551 rl78_elf32_vec) tb="$tb elf32-rl78.lo elf32.lo $elf" ;;
f4943d82
AM
14552 rs6000_xcoff64_vec) tb="$tb coff64-rs6000.lo aix5ppc-core.lo $xcoff"; target_size=64 ;;
14553 rs6000_xcoff64_aix_vec) tb="$tb coff64-rs6000.lo aix5ppc-core.lo $xcoff"; target_size=64 ;;
14554 rs6000_xcoff_vec) tb="$tb coff-rs6000.lo $xcoff" ;;
6d00b590
AM
14555 rx_elf32_be_vec) tb="$tb elf32-rx.lo elf32.lo $elf" ;;
14556 rx_elf32_be_ns_vec) tb="$tb elf32-rx.lo elf32.lo $elf" ;;
2f67d686 14557 rx_elf32_le_vec) tb="$tb elf32-rx.lo elf32.lo $elf" ;;
6d00b590 14558 s390_elf32_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;;
2f67d686 14559 s390_elf64_vec) tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;;
6d00b590
AM
14560 score_elf32_be_vec) tb="$tb elf32-score.lo elf32-score7.lo elf32.lo $elf"; want64=true; target_size=64 ;;
14561 score_elf32_le_vec) tb="$tb elf32-score.lo elf32-score7.lo elf32.lo $elf"; want64=true; target_size=64 ;;
f4943d82
AM
14562 sh64_elf32_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf" target_size=64 ;;
14563 sh64_elf32_le_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf" target_size=64 ;;
14564 sh64_elf32_linux_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf" target_size=64 ;;
14565 sh64_elf32_linux_be_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf" target_size=64 ;;
14566 sh64_elf32_nbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf" ;;
14567 sh64_elf32_nbsd_le_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf" ;;
6d00b590
AM
14568 sh64_elf64_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
14569 sh64_elf64_le_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
14570 sh64_elf64_linux_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
14571 sh64_elf64_linux_be_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
6d00b590 14572 sh64_elf64_nbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
2f67d686 14573 sh64_elf64_nbsd_le_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
f4943d82
AM
14574 sh_coff_vec) tb="$tb coff-sh.lo $coff" ;;
14575 sh_coff_le_vec) tb="$tb coff-sh.lo $coff" ;;
14576 sh_coff_small_vec) tb="$tb coff-sh.lo $coff" ;;
14577 sh_coff_small_le_vec) tb="$tb coff-sh.lo $coff" ;;
14578 sh_elf32_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
14579 sh_elf32_le_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
14580 sh_elf32_fdpic_be_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
14581 sh_elf32_fdpic_le_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
14582 sh_elf32_linux_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
14583 sh_elf32_linux_be_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
14584 sh_elf32_nbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
14585 sh_elf32_nbsd_le_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
14586 sh_elf32_symbian_le_vec) tb="$tb elf32-sh-symbian.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
14587 sh_elf32_vxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
14588 sh_elf32_vxworks_le_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
14589 sh_pe_le_vec) tb="$tb pe-sh.lo coff-sh.lo peigen.lo $coff" ;;
14590 sh_pei_le_vec) tb="$tb pei-sh.lo coff-sh.lo peigen.lo $coff" ;;
6d00b590
AM
14591 sparc_aout_le_vec) tb="$tb aout-sparcle.lo aout32.lo" ;;
14592 sparc_aout_linux_vec) tb="$tb sparclinux.lo aout32.lo" ;;
14593 sparc_aout_lynx_vec) tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
6d00b590
AM
14594 sparc_aout_nbsd_vec) tb="$tb sparcnetbsd.lo aout32.lo" ;;
14595 sparc_aout_sunos_be_vec) tb="$tb sunos.lo aout32.lo" ;;
f4943d82
AM
14596 sparc_coff_vec) tb="$tb coff-sparc.lo $coffgen" ;;
14597 sparc_coff_lynx_vec) tb="$tb cf-sparclynx.lo lynx-core.lo $coffgen" ;;
2f67d686
AM
14598 sparc_elf32_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
14599 sparc_elf32_sol2_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
14600 sparc_elf32_vxworks_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
14601 sparc_elf64_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
14602 sparc_elf64_fbsd_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
14603 sparc_elf64_sol2_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
14604 sparc_nlm32_vec) tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
14605 spu_elf32_vec) tb="$tb elf32-spu.lo elf32.lo $elf" ;;
6d00b590
AM
14606 sym_vec) tb="$tb xsym.lo" ;;
14607 tic30_aout_vec) tb="$tb aout-tic30.lo" ;;
f4943d82
AM
14608 tic30_coff_vec) tb="$tb coff-tic30.lo $coffgen" ;;
14609 tic4x_coff0_vec) tb="$tb coff-tic4x.lo $coffgen" ;;
14610 tic4x_coff0_beh_vec) tb="$tb coff-tic4x.lo $coffgen" ;;
14611 tic4x_coff1_vec) tb="$tb coff-tic4x.lo $coffgen" ;;
14612 tic4x_coff1_beh_vec) tb="$tb coff-tic4x.lo $coffgen" ;;
14613 tic4x_coff2_vec) tb="$tb coff-tic4x.lo $coffgen" ;;
14614 tic4x_coff2_beh_vec) tb="$tb coff-tic4x.lo $coffgen" ;;
14615 tic54x_coff0_vec) tb="$tb coff-tic54x.lo $coffgen" ;;
14616 tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo $coffgen" ;;
14617 tic54x_coff1_vec) tb="$tb coff-tic54x.lo $coffgen" ;;
14618 tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo $coffgen" ;;
14619 tic54x_coff2_vec) tb="$tb coff-tic54x.lo $coffgen" ;;
14620 tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo $coffgen" ;;
2f67d686
AM
14621 tic6x_elf32_be_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
14622 tic6x_elf32_le_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
14623 tic6x_elf32_c6000_be_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
14624 tic6x_elf32_c6000_le_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
14625 tic6x_elf32_linux_be_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
14626 tic6x_elf32_linux_le_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
f4943d82 14627 tic80_coff_vec) tb="$tb coff-tic80.lo $coff" ;;
2f67d686
AM
14628 tilegx_elf32_be_vec) tb="$tb elf32-tilegx.lo elfxx-tilegx.lo elf32.lo $elf" ; target_size=32 ;;
14629 tilegx_elf32_le_vec) tb="$tb elf32-tilegx.lo elfxx-tilegx.lo elf32.lo $elf" ; target_size=32 ;;
14630 tilegx_elf64_be_vec) tb="$tb elf64-tilegx.lo elfxx-tilegx.lo elf64.lo $elf" ; target_size=64 ;;
14631 tilegx_elf64_le_vec) tb="$tb elf64-tilegx.lo elfxx-tilegx.lo elf64.lo $elf" ; target_size=64 ;;
14632 tilepro_elf32_vec) tb="$tb elf32-tilepro.lo elf32.lo $elf" ;;
14633 v800_elf32_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
14634 v850_elf32_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
6d00b590
AM
14635 vax_aout_1knbsd_vec) tb="$tb vax1knetbsd.lo aout32.lo" ;;
14636 vax_aout_bsd_vec) tb="$tb vaxbsd.lo aout32.lo" ;;
2f67d686
AM
14637 vax_aout_nbsd_vec) tb="$tb vaxnetbsd.lo aout32.lo" ;;
14638 vax_elf32_vec) tb="$tb elf32-vax.lo elf32.lo $elf" ;;
3f8107ab 14639 ft32_elf32_vec) tb="$tb elf32-ft32.lo elf32.lo $elf" ;;
d924db55 14640 visium_elf32_vec) tb="$tb elf32-visium.lo elf32.lo $elf" ;;
f4943d82 14641 w65_coff_vec) tb="$tb coff-w65.lo reloc16.lo $coffgen" ;;
a6be0538 14642 wasm_vec) tb="$tb wasm-module.lo" ;;
8fb740dd 14643 wasm32_elf32_vec) tb="$tb elf32-wasm32.lo elf32.lo $elf" ;;
f4943d82
AM
14644 we32k_coff_vec) tb="$tb coff-we32k.lo $coffgen" ;;
14645 x86_64_coff_vec) tb="$tb coff-x86_64.lo $coff"; target_size=64 ;;
0afcef53
L
14646 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 ;;
14647 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 ;;
14648 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 ;;
14649 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 ;;
14650 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 ;;
14651 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 ;;
14652 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 14653 x86_64_mach_o_vec) tb="$tb mach-o-x86-64.lo" ;;
f4943d82
AM
14654 x86_64_pe_vec) tb="$tb pe-x86_64.lo pex64igen.lo $coff"; target_size=64 ;;
14655 x86_64_pe_be_vec) tb="$tb pe-x86_64.lo pex64igen.lo $coff"; target_size=64 ;;
14656 x86_64_pei_vec) tb="$tb pei-x86_64.lo pex64igen.lo $coff"; target_size=64 ;;
2f67d686
AM
14657 xc16x_elf32_vec) tb="$tb elf32-xc16x.lo elf32.lo $elf" ;;
14658 xgate_elf32_vec) tb="$tb elf32-xgate.lo elf32.lo $elf" ;;
14659 xstormy16_elf32_vec) tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;;
14660 xtensa_elf32_be_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
14661 xtensa_elf32_le_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
f4943d82
AM
14662 z80_coff_vec) tb="$tb coff-z80.lo reloc16.lo $coffgen" ;;
14663 z8k_coff_vec) tb="$tb coff-z8k.lo reloc16.lo $coff" ;;
2ba49b59 14664
c603b11b
AM
14665 # These appear out of order in targets.c
14666 srec_vec) tb="$tb srec.lo" ;;
14667 symbolsrec_vec) tb="$tb srec.lo" ;;
14668 tekhex_vec) tb="$tb tekhex.lo" ;;
14669 core_cisco_be_vec) tb="$tb cisco-core.lo" ;;
14670 core_cisco_le_vec) tb="$tb cisco-core.lo" ;;
14671
14672 "") ;;
14673 *) as_fn_error "*** unknown target vector $vec" "$LINENO" 5 ;;
14674 esac
14675
14676 if test ${target_size} = 64; then
14677 target64=true
14678 fi
14679 if test x"${vec}" = x"${defvec}"; then
14680 bfd_default_target_size=${target_size}
14681 fi
14682done
14683
14684# Target architecture .o files.
14685# A couple of CPUs use shorter file names to avoid problems on DOS
14686# filesystems.
14687ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
14688
14689# Weed out duplicate .o files.
14690f=""
14691for i in $tb ; do
14692 case " $f " in
14693 *" $i "*) ;;
14694 *) f="$f $i" ;;
14695 esac
14696done
14697tb="$f"
14698
14699f=""
14700for i in $ta ; do
14701 case " $f " in
14702 *" $i "*) ;;
14703 *) f="$f $i" ;;
14704 esac
14705done
14706ta="$f"
14707
14708bfd_backends="$tb"
14709bfd_machines="$ta"
14710
14711if test x${all_targets} = xtrue ; then
14712 bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
14713 bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
14714 selvecs=
14715 havevecs=-DHAVE_all_vecs
14716 selarchs=
14717 test -n "$assocvecs" &&
14718 assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
14719else # all_targets is true
14720 # Only set these if they will be nonempty, for the clever echo.
14721 havevecs=
14722 assocvecs=
14723 test -n "$selvecs" &&
14724 havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
14725 test -n "$selvecs" &&
14726 selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
14727 test -n "$selarchs" &&
14728 selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
14729fi # all_targets is true
14730
e6cc316a
L
14731# 64-bit archives need a 64-bit bfd_vma.
14732if test "x$want_64_bit_archive" = xtrue; then
14733 want64=true
14734
14735$as_echo "#define USE_64_BIT_ARCHIVE 1" >>confdefs.h
14736
14737fi
14738
c603b11b
AM
14739case ${host64}-${target64}-${want64} in
14740 *true*)
14741 wordsize=64
14742 bfd64_libs='$(BFD64_LIBS)'
14743 all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
14744 if test $BFD_HOST_64_BIT_DEFINED = 0; then
14745 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You have requested a 64 bit BFD configuration, but" >&5
14746$as_echo "$as_me: WARNING: You have requested a 64 bit BFD configuration, but" >&2;}
14747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: your compiler may not have a 64 bit integral type" >&5
14748$as_echo "$as_me: WARNING: your compiler may not have a 64 bit integral type" >&2;}
14749 fi
14750 if test -n "$GCC" ; then
14751 bad_64bit_gcc=no;
14752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc version with buggy 64-bit support" >&5
14753$as_echo_n "checking for gcc version with buggy 64-bit support... " >&6; }
14754 # Add more tests for gcc versions with non-working 64-bit support here.
14755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14756/* end confdefs.h. */
14757:__GNUC__:__GNUC_MINOR__:__i386__:
14758_ACEOF
14759if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14760 $EGREP ": 2 : 91 : 1 :" >/dev/null 2>&1; then :
14761 bad_64bit_gcc=yes;
14762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes: egcs-1.1.2 on ix86 spotted" >&5
14763$as_echo "yes: egcs-1.1.2 on ix86 spotted" >&6; }
14764else
14765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14766$as_echo "no" >&6; }
14767fi
14768rm -f conftest*
14769
14770 if test $bad_64bit_gcc = yes ; then
14771 as_fn_error "A newer version of gcc is needed for the requested 64-bit BFD configuration" "$LINENO" 5
14772 fi
14773 fi
14774 ;;
14775 false-false-false)
14776 wordsize=32
14777 all_backends='$(BFD32_BACKENDS)'
14778 ;;
14779esac
14780
14781tdefaults=""
14782test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
14783test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
14784test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'"
14785test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
14786
14787
14788
14789
14790
14791
14792
14793
14794
14795
14796# If we are configured native, pick a core file support file.
14797COREFILE=
14798COREFLAG=
14799CORE_HEADER=
14800TRAD_HEADER=
14801if test "${target}" = "${host}"; then
14802 case "${host}" in
14803 alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu | alpha*-*-*vms*)
14804 COREFILE=''
14805 ;;
14806 alpha*-*-linux-*)
14807 COREFILE=trad-core.lo
14808 TRAD_HEADER='"hosts/alphalinux.h"'
14809 ;;
14810 alpha*-*-netbsd* | alpha*-*-openbsd*)
14811 COREFILE=netbsd-core.lo
14812 ;;
14813 alpha*-*-*)
14814 COREFILE=osf-core.lo
14815 ;;
14816 arm-*-freebsd* | arm-*-kfreebsd*-gnu)
14817 COREFILE='' ;;
14818 arm-*-netbsd* | arm-*-openbsd*)
14819 COREFILE=netbsd-core.lo
14820 ;;
14821 arm-*-riscix) COREFILE=trad-core.lo ;;
14822 hppa*-*-hpux*) COREFILE=hpux-core.lo ;;
14823 hppa*-*-hiux*) COREFILE=hpux-core.lo ;;
14824 hppa*-*-mpeix*) COREFILE=hpux-core.lo ;;
14825 hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo"
14826 COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
14827 hppa*-*-netbsd* | hppa*-*-openbsd*)
14828 COREFILE=netbsd-core.lo
14829 ;;
14830
14831 i370-*-*)
14832 COREFILE=trad-core.lo
14833 TRAD_HEADER='"hosts/i370linux.h"'
14834 ;;
14835
14836 i[3-7]86-sequent-bsd*)
14837 COREFILE=trad-core.lo
14838 TRAD_HEADER='"hosts/symmetry.h"'
14839 ;;
14840 i[3-7]86-sequent-sysv4*) ;;
14841 i[3-7]86-sequent-sysv*)
14842 COREFILE=trad-core.lo
14843 TRAD_HEADER='"hosts/symmetry.h"'
14844 ;;
14845 i[3-7]86-*-bsdi)
14846 COREFILE=
14847 ;;
14848 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*)
14849 COREFILE=trad-core.lo
14850 TRAD_HEADER='"hosts/i386bsd.h"'
14851 ;;
14852 i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu | i[3-7]86-*-dragonfly*)
14853 COREFILE=''
14854 TRAD_HEADER='"hosts/i386bsd.h"'
14855 ;;
14856 i[3-7]86-*-netbsd* | i[3-7]86-*-knetbsd*-gnu | i[3-7]86-*-openbsd*)
14857 COREFILE=netbsd-core.lo
14858 ;;
14859 i[3-7]86-esix-sysv3*)
14860 COREFILE=trad-core.lo
14861 TRAD_HEADER='"hosts/esix.h"'
14862 ;;
14863 i[3-7]86-*-sco3.2v5*)
14864 COREFILE=sco5-core.lo
14865 ;;
14866 i[3-7]86-*-sco* | i[3-7]86-*-isc*)
14867 COREFILE=trad-core.lo
14868 TRAD_HEADER='"hosts/i386sco.h"'
14869 ;;
14870 i[3-7]86-*-mach3*)
14871 COREFILE=trad-core.lo
14872 TRAD_HEADER='"hosts/i386mach3.h"'
14873 ;;
14874 i[3-7]86-*-linux-*)
14875 COREFILE=trad-core.lo
14876 TRAD_HEADER='"hosts/i386linux.h"'
14877 case "$enable_targets"-"$want64" in
14878 *x86_64-*linux*|*-true)
14879 CORE_HEADER='"hosts/x86-64linux.h"'
14880 esac
14881 ;;
14882 i[3-7]86-*-isc*) COREFILE=trad-core.lo ;;
14883 i[3-7]86-*-aix*) COREFILE=aix386-core.lo ;;
c603b11b
AM
14884 mips-*-netbsd* | mips*-*-openbsd*)
14885 COREFILE=netbsd-core.lo
14886 ;;
14887 mips-dec-*)
14888 COREFILE=trad-core.lo
14889 TRAD_HEADER='"hosts/decstation.h"'
14890 ;;
14891 mips-sgi-irix4*) COREFILE=irix-core.lo ;;
14892 mips-sgi-irix5*) COREFILE=irix-core.lo ;;
14893 mips-sgi-irix6*) COREFILE=irix-core.lo ;;
14894 mips-*-sysv4*) ;;
14895 mips-*-sysv* | mips-*-riscos*)
14896 COREFILE=trad-core.lo
14897 TRAD_HEADER='"hosts/riscos.h"'
14898 ;;
14899 mips-sony-bsd*)
14900 COREFILE=trad-core.lo
14901 TRAD_HEADER='"hosts/news-mips.h"'
14902 ;;
14903 m68*-bull*-sysv*)
14904 COREFILE=trad-core.lo
14905 TRAD_HEADER='"hosts/dpx2.h"'
14906 ;;
14907 m68*-hp-hpux*) COREFILE=hpux-core.lo ;;
14908 m68*-hp-bsd*)
14909 COREFILE=trad-core.lo
14910 TRAD_HEADER='"hosts/hp300bsd.h"'
14911 ;;
14912 m68*-*-linux-*)
14913 COREFILE=trad-core.lo
14914 TRAD_HEADER='"hosts/m68klinux.h"'
14915 ;;
14916 m68*-motorola-sysv*)
14917 COREFILE=trad-core.lo
14918 TRAD_HEADER='"hosts/delta68.h"'
14919 ;;
14920 m68*-sony-*)
14921 COREFILE=trad-core.lo
14922 TRAD_HEADER='"hosts/news.h"'
14923 ;;
14924 m68*-*-netbsd* | m68*-*-openbsd*)
14925 COREFILE=netbsd-core.lo
14926 ;;
14927 m68*-apple-aux*)
14928 COREFILE=trad-core.lo
14929 TRAD_HEADER='"hosts/m68kaux.h"'
14930 ;;
14931 m88*-*-sysv4*)
14932 ;;
14933 m88*-motorola-sysv*)
14934 COREFILE=ptrace-core.lo
14935 ;;
14936 m88*-*-mach3*)
14937 COREFILE=trad-core.lo
14938 TRAD_HEADER='"hosts/m88kmach3.h"'
14939 ;;
14940 m88*-*-openbsd*)
14941 COREFILE=netbsd-core.lo
14942 ;;
14943 ns32k-pc532-mach)
14944 COREFILE=trad-core.lo
14945 TRAD_HEADER='"hosts/pc532mach.h"'
14946 ;;
14947 ns32k-*-netbsd* | ns32k-*-openbsd*)
14948 COREFILE=netbsd-core.lo
14949 ;;
14950 rs6000-*-lynx*)
14951 COREFILE=lynx-core.lo
14952 ;;
14953 rs6000-*-aix[5-9].* | powerpc-*-aix[5-9].* | powerpc64-*-aix[5-9].*)
14954 COREFILE=rs6000-core.lo
14955 COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE"
14956 ;;
14957 rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*)
14958 COREFILE=rs6000-core.lo
14959 COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
14960 # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE
14961 # have c_impl as a member of struct core_dumpx
14962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c_impl in struct core_dumpx" >&5
14963$as_echo_n "checking for c_impl in struct core_dumpx... " >&6; }
14964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14965/* end confdefs.h. */
14966#include <core.h>
14967int
14968main ()
14969{
14970struct core_dumpx c; c.c_impl = 0;
14971 ;
14972 return 0;
14973}
14974_ACEOF
14975if ac_fn_c_try_compile "$LINENO"; then :
14976
14977$as_echo "#define HAVE_ST_C_IMPL 1" >>confdefs.h
14978
14979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14980$as_echo "yes" >&6; }
14981else
14982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14983$as_echo "no" >&6; }
14984fi
14985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14986 ;;
14987 rs6000-*-aix4*) COREFILE=rs6000-core.lo ;;
14988 rs6000-*-*) COREFILE=rs6000-core.lo ;;
14989 powerpc64-*-aix*) COREFILE=rs6000-core.lo ;;
14990 powerpc-*-aix4*) COREFILE=rs6000-core.lo ;;
14991 powerpc-*-aix*) COREFILE=rs6000-core.lo ;;
14992 powerpc-*-beos*) ;;
14993 powerpc-*-freebsd* | powerpc-*-kfreebsd*-gnu)
14994 COREFILE='' ;;
14995 powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;;
14996 powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;;
14997 s390*-*-*) COREFILE=trad-core.lo ;;
14998 sh*-*-netbsd* | sh*-*-openbsd*)
14999 COREFILE=netbsd-core.lo
15000 ;;
15001 sparc-*-netbsd* | sparc*-*-openbsd*)
15002 COREFILE=netbsd-core.lo
15003 ;;
15004 tahoe-*-*)
15005 COREFILE=trad-core.lo
15006 TRAD_HEADER='"hosts/tahoe.h"'
15007 ;;
15008 vax-*-netbsd* | vax-*-openbsd*)
15009 COREFILE=netbsd-core.lo
15010 ;;
15011 vax-*-ultrix2*)
15012 COREFILE=trad-core.lo
15013 TRAD_HEADER='"hosts/vaxult2.h"'
15014 ;;
15015 vax-*-ultrix*)
15016 COREFILE=trad-core.lo
15017 TRAD_HEADER='"hosts/vaxult2.h"'
15018 ;;
15019 vax-*-linux-*)
15020 COREFILE=trad-core.lo
15021 TRAD_HEADER='"hosts/vaxlinux.h"'
15022 ;;
15023 vax-*-*)
15024 COREFILE=trad-core.lo
15025 TRAD_HEADER='"hosts/vaxbsd.h"'
15026 ;;
15027 x86_64-*-linux*)
15028 CORE_HEADER='"hosts/x86-64linux.h"'
15029 ;;
15030 x86_64-*-netbsd* | x86_64-*-openbsd*)
15031 COREFILE=netbsd-core.lo
15032 ;;
15033 esac
15034
15035 case "$COREFILE" in
15036 aix386-core.lo) COREFLAG=-DAIX386_CORE ;;
15037 hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;;
15038 hpux-core.lo) COREFLAG=-DHPUX_CORE ;;
15039 irix-core.lo) COREFLAG=-DIRIX_CORE ;;
15040 lynx-core.lo) COREFLAG=-DLYNX_CORE ;;
15041 netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;;
15042 osf-core.lo) COREFLAG=-DOSF_CORE ;;
15043 ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;;
15044 rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;;
15045 sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;;
15046 trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;;
15047 esac
15048
15049 # ELF corefile support has several flavors, but all of
15050 # them use something called <sys/procfs.h>
15051 for ac_header in sys/procfs.h
15052do :
15053 ac_fn_c_check_header_mongrel "$LINENO" "sys/procfs.h" "ac_cv_header_sys_procfs_h" "$ac_includes_default"
15054if test "x$ac_cv_header_sys_procfs_h" = x""yes; then :
15055 cat >>confdefs.h <<_ACEOF
15056#define HAVE_SYS_PROCFS_H 1
15057_ACEOF
15058
15059fi
15060
15061done
15062
15063 if test "$ac_cv_header_sys_procfs_h" = yes; then
15064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prstatus_t in sys/procfs.h" >&5
15065$as_echo_n "checking for prstatus_t in sys/procfs.h... " >&6; }
15066 if test "${bfd_cv_have_sys_procfs_type_prstatus_t+set}" = set; then :
15067 $as_echo_n "(cached) " >&6
15068else
15069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15070/* end confdefs.h. */
15071
15072#define _SYSCALL32
15073/* Needed for new procfs interface on sparc-solaris. */
15074#define _STRUCTURED_PROC 1
15075#include <sys/procfs.h>
15076int
15077main ()
15078{
15079prstatus_t avar
15080 ;
15081 return 0;
15082}
15083_ACEOF
15084if ac_fn_c_try_compile "$LINENO"; then :
15085 bfd_cv_have_sys_procfs_type_prstatus_t=yes
15086else
15087 bfd_cv_have_sys_procfs_type_prstatus_t=no
15088
15089fi
15090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15091fi
15092
15093 if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
15094
15095$as_echo "#define HAVE_PRSTATUS_T 1" >>confdefs.h
15096
15097 fi
15098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prstatus_t" >&5
15099$as_echo "$bfd_cv_have_sys_procfs_type_prstatus_t" >&6; }
15100
15101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prstatus32_t in sys/procfs.h" >&5
15102$as_echo_n "checking for prstatus32_t in sys/procfs.h... " >&6; }
15103 if test "${bfd_cv_have_sys_procfs_type_prstatus32_t+set}" = set; then :
15104 $as_echo_n "(cached) " >&6
15105else
15106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15107/* end confdefs.h. */
15108
15109#define _SYSCALL32
15110/* Needed for new procfs interface on sparc-solaris. */
15111#define _STRUCTURED_PROC 1
15112#include <sys/procfs.h>
15113int
15114main ()
15115{
15116prstatus32_t avar
15117 ;
15118 return 0;
15119}
15120_ACEOF
15121if ac_fn_c_try_compile "$LINENO"; then :
15122 bfd_cv_have_sys_procfs_type_prstatus32_t=yes
15123else
15124 bfd_cv_have_sys_procfs_type_prstatus32_t=no
15125
15126fi
15127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15128fi
15129
15130 if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then
15131
15132$as_echo "#define HAVE_PRSTATUS32_T 1" >>confdefs.h
15133
15134 fi
15135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prstatus32_t" >&5
15136$as_echo "$bfd_cv_have_sys_procfs_type_prstatus32_t" >&6; }
15137
15138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prstatus_t.pr_who in sys/procfs.h" >&5
15139$as_echo_n "checking for prstatus_t.pr_who in sys/procfs.h... " >&6; }
15140 if test "${bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who+set}" = set; then :
15141 $as_echo_n "(cached) " >&6
15142else
15143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15144/* end confdefs.h. */
15145
15146#define _SYSCALL32
15147/* Needed for new procfs interface on sparc-solaris. */
15148#define _STRUCTURED_PROC 1
15149#include <sys/procfs.h>
15150int
15151main ()
15152{
15153prstatus_t avar; void* aref = (void*) &avar.pr_who
15154 ;
15155 return 0;
15156}
15157_ACEOF
15158if ac_fn_c_try_compile "$LINENO"; then :
15159 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes
15160else
15161 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no
15162
15163fi
15164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15165fi
15166
15167 if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then
15168
15169$as_echo "#define HAVE_PRSTATUS_T_PR_WHO 1" >>confdefs.h
15170
15171 fi
15172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&5
15173$as_echo "$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&6; }
15174
15175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prstatus32_t.pr_who in sys/procfs.h" >&5
15176$as_echo_n "checking for prstatus32_t.pr_who in sys/procfs.h... " >&6; }
15177 if test "${bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who+set}" = set; then :
15178 $as_echo_n "(cached) " >&6
15179else
15180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15181/* end confdefs.h. */
15182
15183#define _SYSCALL32
15184/* Needed for new procfs interface on sparc-solaris. */
15185#define _STRUCTURED_PROC 1
15186#include <sys/procfs.h>
15187int
15188main ()
15189{
15190prstatus32_t avar; void* aref = (void*) &avar.pr_who
15191 ;
15192 return 0;
15193}
15194_ACEOF
15195if ac_fn_c_try_compile "$LINENO"; then :
15196 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes
15197else
15198 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no
15199
15200fi
15201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15202fi
15203
15204 if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then
15205
15206$as_echo "#define HAVE_PRSTATUS32_T_PR_WHO 1" >>confdefs.h
15207
15208 fi
15209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&5
15210$as_echo "$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&6; }
15211
15212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pstatus_t in sys/procfs.h" >&5
15213$as_echo_n "checking for pstatus_t in sys/procfs.h... " >&6; }
15214 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then :
15215 $as_echo_n "(cached) " >&6
15216else
15217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15218/* end confdefs.h. */
15219
15220#define _SYSCALL32
15221/* Needed for new procfs interface on sparc-solaris. */
15222#define _STRUCTURED_PROC 1
15223#include <sys/procfs.h>
15224int
15225main ()
15226{
15227pstatus_t avar
15228 ;
15229 return 0;
15230}
15231_ACEOF
15232if ac_fn_c_try_compile "$LINENO"; then :
15233 bfd_cv_have_sys_procfs_type_pstatus_t=yes
15234else
15235 bfd_cv_have_sys_procfs_type_pstatus_t=no
15236
15237fi
15238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15239fi
15240
15241 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
15242
15243$as_echo "#define HAVE_PSTATUS_T 1" >>confdefs.h
15244
15245 fi
15246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
15247$as_echo "$bfd_cv_have_sys_procfs_type_pstatus_t" >&6; }
15248
15249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pxstatus_t in sys/procfs.h" >&5
15250$as_echo_n "checking for pxstatus_t in sys/procfs.h... " >&6; }
15251 if test "${bfd_cv_have_sys_procfs_type_pxstatus_t+set}" = set; then :
15252 $as_echo_n "(cached) " >&6
15253else
15254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15255/* end confdefs.h. */
15256
15257#define _SYSCALL32
15258/* Needed for new procfs interface on sparc-solaris. */
15259#define _STRUCTURED_PROC 1
15260#include <sys/procfs.h>
15261int
15262main ()
15263{
15264pxstatus_t avar
15265 ;
15266 return 0;
15267}
15268_ACEOF
15269if ac_fn_c_try_compile "$LINENO"; then :
15270 bfd_cv_have_sys_procfs_type_pxstatus_t=yes
15271else
15272 bfd_cv_have_sys_procfs_type_pxstatus_t=no
15273
15274fi
15275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15276fi
15277
15278 if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then
15279
15280$as_echo "#define HAVE_PXSTATUS_T 1" >>confdefs.h
15281
15282 fi
15283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pxstatus_t" >&5
15284$as_echo "$bfd_cv_have_sys_procfs_type_pxstatus_t" >&6; }
15285
15286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pstatus32_t in sys/procfs.h" >&5
15287$as_echo_n "checking for pstatus32_t in sys/procfs.h... " >&6; }
15288 if test "${bfd_cv_have_sys_procfs_type_pstatus32_t+set}" = set; then :
15289 $as_echo_n "(cached) " >&6
15290else
15291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15292/* end confdefs.h. */
15293
15294#define _SYSCALL32
15295/* Needed for new procfs interface on sparc-solaris. */
15296#define _STRUCTURED_PROC 1
15297#include <sys/procfs.h>
15298int
15299main ()
15300{
15301pstatus32_t avar
15302 ;
15303 return 0;
15304}
15305_ACEOF
15306if ac_fn_c_try_compile "$LINENO"; then :
15307 bfd_cv_have_sys_procfs_type_pstatus32_t=yes
15308else
15309 bfd_cv_have_sys_procfs_type_pstatus32_t=no
15310
15311fi
15312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15313fi
15314
15315 if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then
15316
15317$as_echo "#define HAVE_PSTATUS32_T 1" >>confdefs.h
15318
15319 fi
15320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pstatus32_t" >&5
15321$as_echo "$bfd_cv_have_sys_procfs_type_pstatus32_t" >&6; }
15322
15323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prpsinfo_t in sys/procfs.h" >&5
15324$as_echo_n "checking for prpsinfo_t in sys/procfs.h... " >&6; }
15325 if test "${bfd_cv_have_sys_procfs_type_prpsinfo_t+set}" = set; then :
15326 $as_echo_n "(cached) " >&6
15327else
15328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15329/* end confdefs.h. */
15330
15331#define _SYSCALL32
15332/* Needed for new procfs interface on sparc-solaris. */
15333#define _STRUCTURED_PROC 1
15334#include <sys/procfs.h>
15335int
15336main ()
15337{
15338prpsinfo_t avar
15339 ;
15340 return 0;
15341}
15342_ACEOF
15343if ac_fn_c_try_compile "$LINENO"; then :
15344 bfd_cv_have_sys_procfs_type_prpsinfo_t=yes
15345else
15346 bfd_cv_have_sys_procfs_type_prpsinfo_t=no
15347
15348fi
15349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15350fi
15351
15352 if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
15353
15354$as_echo "#define HAVE_PRPSINFO_T 1" >>confdefs.h
15355
15356 fi
15357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prpsinfo_t" >&5
15358$as_echo "$bfd_cv_have_sys_procfs_type_prpsinfo_t" >&6; }
15359
15360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prpsinfo_t.pr_pid in sys/procfs.h" >&5
15361$as_echo_n "checking for prpsinfo_t.pr_pid in sys/procfs.h... " >&6; }
15362 if test "${bfd_cv_have_sys_procfs_type_member_prpsinfo_t_pr_pid+set}" = set; then :
15363 $as_echo_n "(cached) " >&6
15364else
15365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15366/* end confdefs.h. */
15367
15368#define _SYSCALL32
15369/* Needed for new procfs interface on sparc-solaris. */
15370#define _STRUCTURED_PROC 1
15371#include <sys/procfs.h>
15372int
15373main ()
15374{
15375prpsinfo_t avar; void* aref = (void*) &avar.pr_pid
15376 ;
15377 return 0;
15378}
15379_ACEOF
15380if ac_fn_c_try_compile "$LINENO"; then :
15381 bfd_cv_have_sys_procfs_type_member_prpsinfo_t_pr_pid=yes
15382else
15383 bfd_cv_have_sys_procfs_type_member_prpsinfo_t_pr_pid=no
15384
15385fi
15386rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15387fi
15388
15389 if test $bfd_cv_have_sys_procfs_type_member_prpsinfo_t_pr_pid = yes; then
15390
15391$as_echo "#define HAVE_PRPSINFO_T_PR_PID 1" >>confdefs.h
15392
15393 fi
15394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_prpsinfo_t_pr_pid" >&5
15395$as_echo "$bfd_cv_have_sys_procfs_type_member_prpsinfo_t_pr_pid" >&6; }
15396
15397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prpsinfo32_t in sys/procfs.h" >&5
15398$as_echo_n "checking for prpsinfo32_t in sys/procfs.h... " >&6; }
15399 if test "${bfd_cv_have_sys_procfs_type_prpsinfo32_t+set}" = set; then :
15400 $as_echo_n "(cached) " >&6
15401else
15402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15403/* end confdefs.h. */
15404
15405#define _SYSCALL32
15406/* Needed for new procfs interface on sparc-solaris. */
15407#define _STRUCTURED_PROC 1
15408#include <sys/procfs.h>
15409int
15410main ()
15411{
15412prpsinfo32_t avar
15413 ;
15414 return 0;
15415}
15416_ACEOF
15417if ac_fn_c_try_compile "$LINENO"; then :
15418 bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes
15419else
15420 bfd_cv_have_sys_procfs_type_prpsinfo32_t=no
15421
15422fi
15423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15424fi
15425
15426 if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then
15427
15428$as_echo "#define HAVE_PRPSINFO32_T 1" >>confdefs.h
15429
15430 fi
15431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&5
15432$as_echo "$bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&6; }
15433
15434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prpsinfo32_t.pr_pid in sys/procfs.h" >&5
15435$as_echo_n "checking for prpsinfo32_t.pr_pid in sys/procfs.h... " >&6; }
15436 if test "${bfd_cv_have_sys_procfs_type_member_prpsinfo32_t_pr_pid+set}" = set; then :
15437 $as_echo_n "(cached) " >&6
15438else
15439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15440/* end confdefs.h. */
15441
15442#define _SYSCALL32
15443/* Needed for new procfs interface on sparc-solaris. */
15444#define _STRUCTURED_PROC 1
15445#include <sys/procfs.h>
15446int
15447main ()
15448{
15449prpsinfo32_t avar; void* aref = (void*) &avar.pr_pid
15450 ;
15451 return 0;
15452}
15453_ACEOF
15454if ac_fn_c_try_compile "$LINENO"; then :
15455 bfd_cv_have_sys_procfs_type_member_prpsinfo32_t_pr_pid=yes
15456else
15457 bfd_cv_have_sys_procfs_type_member_prpsinfo32_t_pr_pid=no
15458
15459fi
15460rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15461fi
15462
15463 if test $bfd_cv_have_sys_procfs_type_member_prpsinfo32_t_pr_pid = yes; then
15464
15465$as_echo "#define HAVE_PRPSINFO32_T_PR_PID 1" >>confdefs.h
15466
15467 fi
15468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_prpsinfo32_t_pr_pid" >&5
15469$as_echo "$bfd_cv_have_sys_procfs_type_member_prpsinfo32_t_pr_pid" >&6; }
15470
15471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psinfo_t in sys/procfs.h" >&5
15472$as_echo_n "checking for psinfo_t in sys/procfs.h... " >&6; }
15473 if test "${bfd_cv_have_sys_procfs_type_psinfo_t+set}" = set; then :
15474 $as_echo_n "(cached) " >&6
15475else
15476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15477/* end confdefs.h. */
15478
15479#define _SYSCALL32
15480/* Needed for new procfs interface on sparc-solaris. */
15481#define _STRUCTURED_PROC 1
15482#include <sys/procfs.h>
15483int
15484main ()
15485{
15486psinfo_t avar
15487 ;
15488 return 0;
15489}
15490_ACEOF
15491if ac_fn_c_try_compile "$LINENO"; then :
15492 bfd_cv_have_sys_procfs_type_psinfo_t=yes
15493else
15494 bfd_cv_have_sys_procfs_type_psinfo_t=no
15495
15496fi
15497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15498fi
15499
15500 if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
15501
15502$as_echo "#define HAVE_PSINFO_T 1" >>confdefs.h
15503
15504 fi
15505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psinfo_t" >&5
15506$as_echo "$bfd_cv_have_sys_procfs_type_psinfo_t" >&6; }
15507
15508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psinfo_t.pr_pid in sys/procfs.h" >&5
15509$as_echo_n "checking for psinfo_t.pr_pid in sys/procfs.h... " >&6; }
15510 if test "${bfd_cv_have_sys_procfs_type_member_psinfo_t_pr_pid+set}" = set; then :
15511 $as_echo_n "(cached) " >&6
15512else
15513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15514/* end confdefs.h. */
15515
15516#define _SYSCALL32
15517/* Needed for new procfs interface on sparc-solaris. */
15518#define _STRUCTURED_PROC 1
15519#include <sys/procfs.h>
15520int
15521main ()
15522{
15523psinfo_t avar; void* aref = (void*) &avar.pr_pid
15524 ;
15525 return 0;
15526}
15527_ACEOF
15528if ac_fn_c_try_compile "$LINENO"; then :
15529 bfd_cv_have_sys_procfs_type_member_psinfo_t_pr_pid=yes
15530else
15531 bfd_cv_have_sys_procfs_type_member_psinfo_t_pr_pid=no
15532
15533fi
15534rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15535fi
15536
15537 if test $bfd_cv_have_sys_procfs_type_member_psinfo_t_pr_pid = yes; then
15538
15539$as_echo "#define HAVE_PSINFO_T_PR_PID 1" >>confdefs.h
15540
15541 fi
15542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_psinfo_t_pr_pid" >&5
15543$as_echo "$bfd_cv_have_sys_procfs_type_member_psinfo_t_pr_pid" >&6; }
15544
15545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psinfo32_t in sys/procfs.h" >&5
15546$as_echo_n "checking for psinfo32_t in sys/procfs.h... " >&6; }
15547 if test "${bfd_cv_have_sys_procfs_type_psinfo32_t+set}" = set; then :
15548 $as_echo_n "(cached) " >&6
15549else
15550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15551/* end confdefs.h. */
15552
15553#define _SYSCALL32
15554/* Needed for new procfs interface on sparc-solaris. */
15555#define _STRUCTURED_PROC 1
15556#include <sys/procfs.h>
15557int
15558main ()
15559{
15560psinfo32_t avar
15561 ;
15562 return 0;
15563}
15564_ACEOF
15565if ac_fn_c_try_compile "$LINENO"; then :
15566 bfd_cv_have_sys_procfs_type_psinfo32_t=yes
15567else
15568 bfd_cv_have_sys_procfs_type_psinfo32_t=no
15569
15570fi
15571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15572fi
15573
15574 if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then
15575
15576$as_echo "#define HAVE_PSINFO32_T 1" >>confdefs.h
15577
15578 fi
15579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psinfo32_t" >&5
15580$as_echo "$bfd_cv_have_sys_procfs_type_psinfo32_t" >&6; }
15581
15582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psinfo32_t.pr_pid in sys/procfs.h" >&5
15583$as_echo_n "checking for psinfo32_t.pr_pid in sys/procfs.h... " >&6; }
15584 if test "${bfd_cv_have_sys_procfs_type_member_psinfo32_t_pr_pid+set}" = set; then :
15585 $as_echo_n "(cached) " >&6
15586else
15587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15588/* end confdefs.h. */
15589
15590#define _SYSCALL32
15591/* Needed for new procfs interface on sparc-solaris. */
15592#define _STRUCTURED_PROC 1
15593#include <sys/procfs.h>
15594int
15595main ()
15596{
15597psinfo32_t avar; void* aref = (void*) &avar.pr_pid
15598 ;
15599 return 0;
15600}
15601_ACEOF
15602if ac_fn_c_try_compile "$LINENO"; then :
15603 bfd_cv_have_sys_procfs_type_member_psinfo32_t_pr_pid=yes
15604else
15605 bfd_cv_have_sys_procfs_type_member_psinfo32_t_pr_pid=no
15606
15607fi
15608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15609fi
15610
15611 if test $bfd_cv_have_sys_procfs_type_member_psinfo32_t_pr_pid = yes; then
15612
15613$as_echo "#define HAVE_PSINFO32_T_PR_PID 1" >>confdefs.h
15614
15615 fi
15616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_psinfo32_t_pr_pid" >&5
15617$as_echo "$bfd_cv_have_sys_procfs_type_member_psinfo32_t_pr_pid" >&6; }
15618
15619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpstatus_t in sys/procfs.h" >&5
15620$as_echo_n "checking for lwpstatus_t in sys/procfs.h... " >&6; }
15621 if test "${bfd_cv_have_sys_procfs_type_lwpstatus_t+set}" = set; then :
15622 $as_echo_n "(cached) " >&6
15623else
15624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15625/* end confdefs.h. */
15626
15627#define _SYSCALL32
15628/* Needed for new procfs interface on sparc-solaris. */
15629#define _STRUCTURED_PROC 1
15630#include <sys/procfs.h>
15631int
15632main ()
15633{
15634lwpstatus_t avar
15635 ;
15636 return 0;
15637}
15638_ACEOF
15639if ac_fn_c_try_compile "$LINENO"; then :
15640 bfd_cv_have_sys_procfs_type_lwpstatus_t=yes
15641else
15642 bfd_cv_have_sys_procfs_type_lwpstatus_t=no
15643
15644fi
15645rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15646fi
15647
15648 if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
15649
15650$as_echo "#define HAVE_LWPSTATUS_T 1" >>confdefs.h
15651
15652 fi
15653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpstatus_t" >&5
15654$as_echo "$bfd_cv_have_sys_procfs_type_lwpstatus_t" >&6; }
15655
15656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpxstatus_t in sys/procfs.h" >&5
15657$as_echo_n "checking for lwpxstatus_t in sys/procfs.h... " >&6; }
15658 if test "${bfd_cv_have_sys_procfs_type_lwpxstatus_t+set}" = set; then :
15659 $as_echo_n "(cached) " >&6
15660else
15661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15662/* end confdefs.h. */
15663
15664#define _SYSCALL32
15665/* Needed for new procfs interface on sparc-solaris. */
15666#define _STRUCTURED_PROC 1
15667#include <sys/procfs.h>
15668int
15669main ()
15670{
15671lwpxstatus_t avar
15672 ;
15673 return 0;
15674}
15675_ACEOF
15676if ac_fn_c_try_compile "$LINENO"; then :
15677 bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes
15678else
15679 bfd_cv_have_sys_procfs_type_lwpxstatus_t=no
15680
15681fi
15682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15683fi
15684
15685 if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then
15686
15687$as_echo "#define HAVE_LWPXSTATUS_T 1" >>confdefs.h
5464f5a1 15688
c603b11b
AM
15689 fi
15690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&5
15691$as_echo "$bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&6; }
1012372a 15692
c603b11b
AM
15693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
15694$as_echo_n "checking for lwpstatus_t.pr_context in sys/procfs.h... " >&6; }
15695 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context+set}" = set; then :
15696 $as_echo_n "(cached) " >&6
15697else
15698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15699/* end confdefs.h. */
2ba49b59 15700
c603b11b
AM
15701#define _SYSCALL32
15702/* Needed for new procfs interface on sparc-solaris. */
15703#define _STRUCTURED_PROC 1
15704#include <sys/procfs.h>
15705int
15706main ()
15707{
15708lwpstatus_t avar; void* aref = (void*) &avar.pr_context
15709 ;
15710 return 0;
15711}
15712_ACEOF
15713if ac_fn_c_try_compile "$LINENO"; then :
15714 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes
15715else
15716 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no
5464f5a1 15717
c603b11b
AM
15718fi
15719rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15720fi
1012372a 15721
c603b11b 15722 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
2ba49b59 15723
c603b11b 15724$as_echo "#define HAVE_LWPSTATUS_T_PR_CONTEXT 1" >>confdefs.h
1012372a 15725
c603b11b
AM
15726 fi
15727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&5
15728$as_echo "$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&6; }
81ecdfbb 15729
c603b11b
AM
15730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
15731$as_echo_n "checking for lwpstatus_t.pr_reg in sys/procfs.h... " >&6; }
15732 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg+set}" = set; then :
15733 $as_echo_n "(cached) " >&6
15734else
15735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
81ecdfbb 15736/* end confdefs.h. */
c603b11b
AM
15737
15738#define _SYSCALL32
15739/* Needed for new procfs interface on sparc-solaris. */
15740#define _STRUCTURED_PROC 1
15741#include <sys/procfs.h>
15742int
15743main ()
15744{
15745lwpstatus_t avar; void* aref = (void*) &avar.pr_reg
15746 ;
15747 return 0;
15748}
81ecdfbb 15749_ACEOF
c603b11b
AM
15750if ac_fn_c_try_compile "$LINENO"; then :
15751 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes
2ba49b59 15752else
c603b11b
AM
15753 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no
15754
15755fi
15756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2ba49b59 15757fi
1012372a 15758
c603b11b
AM
15759 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
15760
15761$as_echo "#define HAVE_LWPSTATUS_T_PR_REG 1" >>confdefs.h
15762
15763 fi
15764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&5
15765$as_echo "$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&6; }
15766
15767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpstatus_t.pr_fpreg in sys/procfs.h" >&5
15768$as_echo_n "checking for lwpstatus_t.pr_fpreg in sys/procfs.h... " >&6; }
15769 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg+set}" = set; then :
15770 $as_echo_n "(cached) " >&6
15771else
15772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15773/* end confdefs.h. */
15774
15775#define _SYSCALL32
15776/* Needed for new procfs interface on sparc-solaris. */
15777#define _STRUCTURED_PROC 1
15778#include <sys/procfs.h>
15779int
15780main ()
15781{
15782lwpstatus_t avar; void* aref = (void*) &avar.pr_fpreg
15783 ;
15784 return 0;
15785}
15786_ACEOF
15787if ac_fn_c_try_compile "$LINENO"; then :
15788 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg=yes
15789else
15790 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg=no
15791
15792fi
15793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15794fi
15795
15796 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg = yes; then
1012372a 15797
c603b11b
AM
15798$as_echo "#define HAVE_LWPSTATUS_T_PR_FPREG 1" >>confdefs.h
15799
15800 fi
15801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg" >&5
15802$as_echo "$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg" >&6; }
15803
15804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for win32_pstatus_t in sys/procfs.h" >&5
15805$as_echo_n "checking for win32_pstatus_t in sys/procfs.h... " >&6; }
15806 if test "${bfd_cv_have_sys_procfs_type_win32_pstatus_t+set}" = set; then :
15807 $as_echo_n "(cached) " >&6
15808else
15809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15810/* end confdefs.h. */
15811
15812#define _SYSCALL32
15813/* Needed for new procfs interface on sparc-solaris. */
15814#define _STRUCTURED_PROC 1
15815#include <sys/procfs.h>
15816int
15817main ()
15818{
15819win32_pstatus_t avar
15820 ;
15821 return 0;
15822}
15823_ACEOF
15824if ac_fn_c_try_compile "$LINENO"; then :
15825 bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes
15826else
15827 bfd_cv_have_sys_procfs_type_win32_pstatus_t=no
15828
15829fi
15830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15831fi
15832
15833 if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then
15834
15835$as_echo "#define HAVE_WIN32_PSTATUS_T 1" >>confdefs.h
15836
15837 fi
15838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&5
15839$as_echo "$bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&6; }
15840
15841 fi
15842fi
1012372a
AC
15843
15844
c603b11b 15845if test -n "$CORE_HEADER"; then
1012372a 15846
c603b11b
AM
15847cat >>confdefs.h <<_ACEOF
15848#define CORE_HEADER $CORE_HEADER
15849_ACEOF
252b5132 15850
c603b11b
AM
15851fi
15852if test -n "$TRAD_HEADER"; then
6be7c12c 15853
c603b11b
AM
15854cat >>confdefs.h <<_ACEOF
15855#define TRAD_HEADER $TRAD_HEADER
15856_ACEOF
5464f5a1 15857
c603b11b 15858fi
5464f5a1 15859
81ecdfbb
RW
15860if test "$plugins" = "yes"; then
15861 supports_plugins=1
5464f5a1 15862else
81ecdfbb 15863 supports_plugins=0
5464f5a1 15864fi
5464f5a1 15865
81ecdfbb 15866
3cf9e6c4 15867
96fe4562 15868# Determine the host dependent file_ptr a.k.a. off_t type. In order
81ecdfbb
RW
15869# prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and
15870# fseeko, long. This assumes that sizeof off_t is .ge. sizeof long.
15871# Hopefully a reasonable assumption since fseeko et.al. should be
15872# upward compatible.
15873for ac_func in ftello ftello64 fseeko fseeko64 fopen64
15874do :
15875 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15876ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15877eval as_val=\$$as_ac_var
15878 if test "x$as_val" = x""yes; then :
15879 cat >>confdefs.h <<_ACEOF
15880#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5464f5a1 15881_ACEOF
5464f5a1 15882
252b5132 15883fi
81ecdfbb 15884done
5464f5a1 15885
81ecdfbb
RW
15886if test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then
15887 # The cast to long int works around a bug in the HP C Compiler
15888# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15889# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15890# This bug is HP SR number 8606223364.
15891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
15892$as_echo_n "checking size of off_t... " >&6; }
15893if test "${ac_cv_sizeof_off_t+set}" = set; then :
15894 $as_echo_n "(cached) " >&6
6be7c12c 15895else
81ecdfbb 15896 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
5464f5a1 15897
81ecdfbb
RW
15898else
15899 if test "$ac_cv_type_off_t" = yes; then
15900 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15901$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15902{ as_fn_set_status 77
15903as_fn_error "cannot compute sizeof (off_t)
15904See \`config.log' for more details." "$LINENO" 5; }; }
15905 else
15906 ac_cv_sizeof_off_t=0
15907 fi
5464f5a1 15908fi
5464f5a1 15909
252b5132 15910fi
81ecdfbb
RW
15911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
15912$as_echo "$ac_cv_sizeof_off_t" >&6; }
5464f5a1 15913
252b5132 15914
5464f5a1 15915
81ecdfbb
RW
15916cat >>confdefs.h <<_ACEOF
15917#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
5464f5a1 15918_ACEOF
5464f5a1 15919
5464f5a1 15920
81ecdfbb
RW
15921fi
15922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking file_ptr type" >&5
15923$as_echo_n "checking file_ptr type... " >&6; }
15924bfd_file_ptr="long"
15925bfd_ufile_ptr="unsigned long"
15926if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \
15927 -o x"${ac_cv_sizeof_off_t}" = x8; then
15928 bfd_file_ptr=BFD_HOST_64_BIT
15929 bfd_ufile_ptr=BFD_HOST_U_64_BIT
15930fi
15931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_file_ptr" >&5
15932$as_echo "$bfd_file_ptr" >&6; }
15933
6be7c12c 15934
252b5132 15935
81ecdfbb
RW
15936for ac_header in stdlib.h unistd.h
15937do :
15938 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15939ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15940eval as_val=\$$as_ac_Header
15941 if test "x$as_val" = x""yes; then :
15942 cat >>confdefs.h <<_ACEOF
15943#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5464f5a1 15944_ACEOF
5464f5a1 15945
5464f5a1 15946fi
81ecdfbb
RW
15947
15948done
15949
15950for ac_func in getpagesize
15951do :
15952 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
15953if test "x$ac_cv_func_getpagesize" = x""yes; then :
5464f5a1 15954 cat >>confdefs.h <<_ACEOF
81ecdfbb 15955#define HAVE_GETPAGESIZE 1
5464f5a1 15956_ACEOF
252b5132 15957
252b5132
RH
15958fi
15959done
15960
81ecdfbb
RW
15961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
15962$as_echo_n "checking for working mmap... " >&6; }
15963if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
15964 $as_echo_n "(cached) " >&6
252b5132 15965else
81ecdfbb 15966 if test "$cross_compiling" = yes; then :
252b5132
RH
15967 ac_cv_func_mmap_fixed_mapped=no
15968else
81ecdfbb 15969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5464f5a1
NN
15970/* end confdefs.h. */
15971$ac_includes_default
15972/* malloc might have been renamed as rpl_malloc. */
15973#undef malloc
6be7c12c 15974
252b5132
RH
15975/* Thanks to Mike Haertel and Jim Avera for this test.
15976 Here is a matrix of mmap possibilities:
15977 mmap private not fixed
15978 mmap private fixed at somewhere currently unmapped
15979 mmap private fixed at somewhere already mapped
15980 mmap shared not fixed
15981 mmap shared fixed at somewhere currently unmapped
15982 mmap shared fixed at somewhere already mapped
15983 For private mappings, we should verify that changes cannot be read()
15984 back from the file, nor mmap's back from the file at a different
15985 address. (There have been systems where private was not correctly
15986 implemented like the infamous i386 svr4.0, and systems where the
5464f5a1 15987 VM page cache was not coherent with the file system buffer cache
252b5132
RH
15988 like early versions of FreeBSD and possibly contemporary NetBSD.)
15989 For shared mappings, we should conversely verify that changes get
5464f5a1 15990 propagated back to all the places they're supposed to be.
252b5132
RH
15991
15992 Grep wants private fixed already mapped.
15993 The main things grep needs to know about mmap are:
15994 * does it exist and is it safe to write into the mmap'd area
15995 * how to use it (BSD variants) */
5464f5a1 15996
252b5132
RH
15997#include <fcntl.h>
15998#include <sys/mman.h>
15999
81ecdfbb 16000#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
5464f5a1
NN
16001char *malloc ();
16002#endif
6be7c12c 16003
5464f5a1 16004/* This mess was copied from the GNU getpagesize.h. */
81ecdfbb 16005#ifndef HAVE_GETPAGESIZE
252b5132 16006/* Assume that all systems that can run configure have sys/param.h. */
81ecdfbb 16007# ifndef HAVE_SYS_PARAM_H
252b5132
RH
16008# define HAVE_SYS_PARAM_H 1
16009# endif
16010
16011# ifdef _SC_PAGESIZE
16012# define getpagesize() sysconf(_SC_PAGESIZE)
16013# else /* no _SC_PAGESIZE */
81ecdfbb 16014# ifdef HAVE_SYS_PARAM_H
252b5132
RH
16015# include <sys/param.h>
16016# ifdef EXEC_PAGESIZE
16017# define getpagesize() EXEC_PAGESIZE
16018# else /* no EXEC_PAGESIZE */
16019# ifdef NBPG
16020# define getpagesize() NBPG * CLSIZE
16021# ifndef CLSIZE
16022# define CLSIZE 1
16023# endif /* no CLSIZE */
16024# else /* no NBPG */
16025# ifdef NBPC
16026# define getpagesize() NBPC
16027# else /* no NBPC */
16028# ifdef PAGESIZE
16029# define getpagesize() PAGESIZE
16030# endif /* PAGESIZE */
16031# endif /* no NBPC */
16032# endif /* no NBPG */
16033# endif /* no EXEC_PAGESIZE */
16034# else /* no HAVE_SYS_PARAM_H */
16035# define getpagesize() 8192 /* punt totally */
16036# endif /* no HAVE_SYS_PARAM_H */
16037# endif /* no _SC_PAGESIZE */
16038
5464f5a1
NN
16039#endif /* no HAVE_GETPAGESIZE */
16040
16041int
16042main ()
16043{
16044 char *data, *data2, *data3;
16045 int i, pagesize;
16046 int fd;
16047
16048 pagesize = getpagesize ();
16049
16050 /* First, make a file with some known garbage in it. */
16051 data = (char *) malloc (pagesize);
16052 if (!data)
81ecdfbb 16053 return 1;
5464f5a1
NN
16054 for (i = 0; i < pagesize; ++i)
16055 *(data + i) = rand ();
16056 umask (0);
16057 fd = creat ("conftest.mmap", 0600);
16058 if (fd < 0)
81ecdfbb 16059 return 1;
5464f5a1 16060 if (write (fd, data, pagesize) != pagesize)
81ecdfbb 16061 return 1;
5464f5a1
NN
16062 close (fd);
16063
16064 /* Next, try to mmap the file at a fixed address which already has
16065 something else allocated at it. If we can, also make sure that
16066 we see the same garbage. */
16067 fd = open ("conftest.mmap", O_RDWR);
16068 if (fd < 0)
81ecdfbb 16069 return 1;
5464f5a1
NN
16070 data2 = (char *) malloc (2 * pagesize);
16071 if (!data2)
81ecdfbb
RW
16072 return 1;
16073 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
5464f5a1
NN
16074 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
16075 MAP_PRIVATE | MAP_FIXED, fd, 0L))
81ecdfbb 16076 return 1;
5464f5a1
NN
16077 for (i = 0; i < pagesize; ++i)
16078 if (*(data + i) != *(data2 + i))
81ecdfbb 16079 return 1;
5464f5a1
NN
16080
16081 /* Finally, make sure that changes to the mapped area do not
16082 percolate back to the file as seen by read(). (This is a bug on
16083 some variants of i386 svr4.0.) */
16084 for (i = 0; i < pagesize; ++i)
16085 *(data2 + i) = *(data2 + i) + 1;
16086 data3 = (char *) malloc (pagesize);
16087 if (!data3)
81ecdfbb 16088 return 1;
5464f5a1 16089 if (read (fd, data3, pagesize) != pagesize)
81ecdfbb 16090 return 1;
5464f5a1
NN
16091 for (i = 0; i < pagesize; ++i)
16092 if (*(data + i) != *(data3 + i))
81ecdfbb 16093 return 1;
5464f5a1 16094 close (fd);
81ecdfbb 16095 return 0;
5464f5a1
NN
16096}
16097_ACEOF
81ecdfbb 16098if ac_fn_c_try_run "$LINENO"; then :
5464f5a1
NN
16099 ac_cv_func_mmap_fixed_mapped=yes
16100else
81ecdfbb 16101 ac_cv_func_mmap_fixed_mapped=no
5464f5a1 16102fi
81ecdfbb
RW
16103rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16104 conftest.$ac_objext conftest.beam conftest.$ac_ext
5464f5a1 16105fi
81ecdfbb 16106
5464f5a1 16107fi
81ecdfbb
RW
16108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
16109$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
5464f5a1
NN
16110if test $ac_cv_func_mmap_fixed_mapped = yes; then
16111
81ecdfbb 16112$as_echo "#define HAVE_MMAP 1" >>confdefs.h
5464f5a1
NN
16113
16114fi
16115rm -f conftest.mmap
16116
5464f5a1 16117for ac_func in madvise mprotect
81ecdfbb
RW
16118do :
16119 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16120ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16121eval as_val=\$$as_ac_var
16122 if test "x$as_val" = x""yes; then :
5464f5a1 16123 cat >>confdefs.h <<_ACEOF
81ecdfbb 16124#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5464f5a1
NN
16125_ACEOF
16126
16127fi
16128done
16129
16130case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
16131 true+yes )
81ecdfbb 16132$as_echo "#define USE_MMAP 1" >>confdefs.h
5464f5a1
NN
16133 ;;
16134esac
16135
16136rm -f doc/config.status
81ecdfbb 16137ac_config_files="$ac_config_files Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in"
5464f5a1 16138
20e95c23 16139
81ecdfbb 16140ac_config_commands="$ac_config_commands default"
5464f5a1 16141
108a6f8e
CD
16142
16143
16144
16145
16146
31dd3154 16147
5464f5a1
NN
16148cat >confcache <<\_ACEOF
16149# This file is a shell script that caches the results of configure
16150# tests run on this system so they can be shared between configure
16151# scripts and configure runs, see configure's option --config-cache.
16152# It is not useful on other systems. If it contains results you don't
16153# want to keep, you may remove or edit it.
16154#
16155# config.status only pays attention to the cache file if you give it
16156# the --recheck option to rerun configure.
16157#
16158# `ac_cv_env_foo' variables (set or unset) will be overridden when
16159# loading this file, other *unset* `ac_cv_foo' will be assigned the
16160# following values.
16161
16162_ACEOF
16163
16164# The following way of writing the cache mishandles newlines in values,
16165# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 16166# So, we kill variables containing newlines.
5464f5a1
NN
16167# Ultrix sh set writes to stderr and can't be redirected directly,
16168# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
16169(
16170 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16171 eval ac_val=\$$ac_var
16172 case $ac_val in #(
16173 *${as_nl}*)
16174 case $ac_var in #(
16175 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16176$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16177 esac
16178 case $ac_var in #(
16179 _ | IFS | as_nl) ;; #(
16180 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16181 *) { eval $ac_var=; unset $ac_var;} ;;
16182 esac ;;
16183 esac
16184 done
16185
5464f5a1 16186 (set) 2>&1 |
81ecdfbb
RW
16187 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16188 *${as_nl}ac_space=\ *)
16189 # `set' does not quote correctly, so add quotes: double-quote
16190 # substitution turns \\\\ into \\, and sed turns \\ into \.
5464f5a1
NN
16191 sed -n \
16192 "s/'/'\\\\''/g;
16193 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 16194 ;; #(
5464f5a1
NN
16195 *)
16196 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 16197 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5464f5a1 16198 ;;
81ecdfbb
RW
16199 esac |
16200 sort
16201) |
5464f5a1 16202 sed '
81ecdfbb 16203 /^ac_cv_env_/b end
5464f5a1 16204 t clear
81ecdfbb 16205 :clear
5464f5a1
NN
16206 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16207 t end
81ecdfbb
RW
16208 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16209 :end' >>confcache
16210if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16211 if test -w "$cache_file"; then
16212 test "x$cache_file" != "x/dev/null" &&
16213 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16214$as_echo "$as_me: updating cache $cache_file" >&6;}
5464f5a1
NN
16215 cat confcache >$cache_file
16216 else
81ecdfbb
RW
16217 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16218$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5464f5a1
NN
16219 fi
16220fi
16221rm -f confcache
16222
16223test "x$prefix" = xNONE && prefix=$ac_default_prefix
16224# Let make expand exec_prefix.
16225test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16226
5464f5a1
NN
16227DEFS=-DHAVE_CONFIG_H
16228
16229ac_libobjs=
16230ac_ltlibobjs=
16231for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16232 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
16233 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16234 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16235 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16236 # will be set to the directory where LIBOBJS objects are built.
16237 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16238 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
5464f5a1
NN
16239done
16240LIBOBJS=$ac_libobjs
16241
16242LTLIBOBJS=$ac_ltlibobjs
16243
16244
f5385ebf 16245if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
81ecdfbb
RW
16246 as_fn_error "conditional \"AMDEP\" was never defined.
16247Usually this means the macro was only invoked conditionally." "$LINENO" 5
f5385ebf
AM
16248fi
16249if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
81ecdfbb
RW
16250 as_fn_error "conditional \"am__fastdepCC\" was never defined.
16251Usually this means the macro was only invoked conditionally." "$LINENO" 5
16252fi
16253 if test -n "$EXEEXT"; then
16254 am__EXEEXT_TRUE=
16255 am__EXEEXT_FALSE='#'
16256else
16257 am__EXEEXT_TRUE='#'
16258 am__EXEEXT_FALSE=
f5385ebf 16259fi
81ecdfbb 16260
ce3c775b 16261if test -z "${PLUGINS_TRUE}" && test -z "${PLUGINS_FALSE}"; then
81ecdfbb
RW
16262 as_fn_error "conditional \"PLUGINS\" was never defined.
16263Usually this means the macro was only invoked conditionally." "$LINENO" 5
ce3c775b 16264fi
f5385ebf 16265if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
81ecdfbb
RW
16266 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
16267Usually this means the macro was only invoked conditionally." "$LINENO" 5
f5385ebf 16268fi
d5fbea21 16269if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
81ecdfbb
RW
16270 as_fn_error "conditional \"GENINSRC_NEVER\" was never defined.
16271Usually this means the macro was only invoked conditionally." "$LINENO" 5
d5fbea21 16272fi
f5385ebf 16273if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then
81ecdfbb
RW
16274 as_fn_error "conditional \"INSTALL_LIBBFD\" was never defined.
16275Usually this means the macro was only invoked conditionally." "$LINENO" 5
f5385ebf 16276fi
5464f5a1
NN
16277
16278: ${CONFIG_STATUS=./config.status}
81ecdfbb 16279ac_write_fail=0
5464f5a1
NN
16280ac_clean_files_save=$ac_clean_files
16281ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
16282{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16283$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16284as_write_fail=0
16285cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5464f5a1
NN
16286#! $SHELL
16287# Generated by $as_me.
16288# Run this file to recreate the current configuration.
16289# Compiler output produced by configure, useful for debugging
16290# configure, is in config.log if it exists.
16291
16292debug=false
16293ac_cs_recheck=false
16294ac_cs_silent=false
5464f5a1 16295
81ecdfbb
RW
16296SHELL=\${CONFIG_SHELL-$SHELL}
16297export SHELL
16298_ASEOF
16299cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16300## -------------------- ##
16301## M4sh Initialization. ##
16302## -------------------- ##
5464f5a1 16303
81ecdfbb
RW
16304# Be more Bourne compatible
16305DUALCASE=1; export DUALCASE # for MKS sh
16306if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5464f5a1
NN
16307 emulate sh
16308 NULLCMD=:
81ecdfbb 16309 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5464f5a1
NN
16310 # is contrary to our usage. Disable this feature.
16311 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
16312 setopt NO_GLOB_SUBST
16313else
16314 case `(set -o) 2>/dev/null` in #(
16315 *posix*) :
16316 set -o posix ;; #(
16317 *) :
16318 ;;
16319esac
5464f5a1 16320fi
5464f5a1 16321
81ecdfbb
RW
16322
16323as_nl='
16324'
16325export as_nl
16326# Printing a long string crashes Solaris 7 /usr/bin/printf.
16327as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16328as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16329as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16330# Prefer a ksh shell builtin over an external printf program on Solaris,
16331# but without wasting forks for bash or zsh.
16332if test -z "$BASH_VERSION$ZSH_VERSION" \
16333 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16334 as_echo='print -r --'
16335 as_echo_n='print -rn --'
16336elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16337 as_echo='printf %s\n'
16338 as_echo_n='printf %s'
16339else
16340 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16341 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16342 as_echo_n='/usr/ucb/echo -n'
16343 else
16344 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16345 as_echo_n_body='eval
16346 arg=$1;
16347 case $arg in #(
16348 *"$as_nl"*)
16349 expr "X$arg" : "X\\(.*\\)$as_nl";
16350 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16351 esac;
16352 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16353 '
16354 export as_echo_n_body
16355 as_echo_n='sh -c $as_echo_n_body as_echo'
16356 fi
16357 export as_echo_body
16358 as_echo='sh -c $as_echo_body as_echo'
16359fi
16360
16361# The user is always right.
16362if test "${PATH_SEPARATOR+set}" != set; then
16363 PATH_SEPARATOR=:
16364 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16365 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16366 PATH_SEPARATOR=';'
16367 }
5464f5a1
NN
16368fi
16369
16370
81ecdfbb
RW
16371# IFS
16372# We need space, tab and new line, in precisely that order. Quoting is
16373# there to prevent editors from complaining about space-tab.
16374# (If _AS_PATH_WALK were called with IFS unset, it would disable word
16375# splitting by setting IFS to empty value.)
16376IFS=" "" $as_nl"
16377
16378# Find who we are. Look in the path if we contain no directory separator.
16379case $0 in #((
16380 *[\\/]* ) as_myself=$0 ;;
16381 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16382for as_dir in $PATH
16383do
16384 IFS=$as_save_IFS
16385 test -z "$as_dir" && as_dir=.
16386 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16387 done
16388IFS=$as_save_IFS
16389
16390 ;;
16391esac
16392# We did not find ourselves, most probably we were run as `sh COMMAND'
16393# in which case we are not to be found in the path.
16394if test "x$as_myself" = x; then
16395 as_myself=$0
16396fi
16397if test ! -f "$as_myself"; then
16398 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16399 exit 1
16400fi
16401
16402# Unset variables that we do not need and which cause bugs (e.g. in
16403# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16404# suppresses any "Segmentation fault" message there. '((' could
16405# trigger a bug in pdksh 5.2.14.
16406for as_var in BASH_ENV ENV MAIL MAILPATH
16407do eval test x\${$as_var+set} = xset \
16408 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16409done
5464f5a1
NN
16410PS1='$ '
16411PS2='> '
16412PS4='+ '
16413
16414# NLS nuisances.
81ecdfbb
RW
16415LC_ALL=C
16416export LC_ALL
16417LANGUAGE=C
16418export LANGUAGE
16419
16420# CDPATH.
16421(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16422
16423
16424# as_fn_error ERROR [LINENO LOG_FD]
16425# ---------------------------------
16426# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16427# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16428# script with status $?, using 1 if that was 0.
16429as_fn_error ()
16430{
16431 as_status=$?; test $as_status -eq 0 && as_status=1
16432 if test "$3"; then
16433 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16434 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
5464f5a1 16435 fi
81ecdfbb
RW
16436 $as_echo "$as_me: error: $1" >&2
16437 as_fn_exit $as_status
16438} # as_fn_error
16439
16440
16441# as_fn_set_status STATUS
16442# -----------------------
16443# Set $? to STATUS, without forking.
16444as_fn_set_status ()
16445{
16446 return $1
16447} # as_fn_set_status
16448
16449# as_fn_exit STATUS
16450# -----------------
16451# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16452as_fn_exit ()
16453{
16454 set +e
16455 as_fn_set_status $1
16456 exit $1
16457} # as_fn_exit
16458
16459# as_fn_unset VAR
16460# ---------------
16461# Portably unset VAR.
16462as_fn_unset ()
16463{
16464 { eval $1=; unset $1;}
16465}
16466as_unset=as_fn_unset
16467# as_fn_append VAR VALUE
16468# ----------------------
16469# Append the text in VALUE to the end of the definition contained in VAR. Take
16470# advantage of any shell optimizations that allow amortized linear growth over
16471# repeated appends, instead of the typical quadratic growth present in naive
16472# implementations.
16473if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16474 eval 'as_fn_append ()
16475 {
16476 eval $1+=\$2
16477 }'
16478else
16479 as_fn_append ()
16480 {
16481 eval $1=\$$1\$2
16482 }
16483fi # as_fn_append
16484
16485# as_fn_arith ARG...
16486# ------------------
16487# Perform arithmetic evaluation on the ARGs, and store the result in the
16488# global $as_val. Take advantage of shells that can avoid forks. The arguments
16489# must be portable across $(()) and expr.
16490if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16491 eval 'as_fn_arith ()
16492 {
16493 as_val=$(( $* ))
16494 }'
16495else
16496 as_fn_arith ()
16497 {
16498 as_val=`expr "$@" || test $? -eq 1`
16499 }
16500fi # as_fn_arith
16501
5464f5a1 16502
81ecdfbb
RW
16503if expr a : '\(a\)' >/dev/null 2>&1 &&
16504 test "X`expr 00001 : '.*\(...\)'`" = X001; then
5464f5a1
NN
16505 as_expr=expr
16506else
16507 as_expr=false
16508fi
16509
81ecdfbb 16510if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5464f5a1
NN
16511 as_basename=basename
16512else
16513 as_basename=false
16514fi
252b5132 16515
81ecdfbb
RW
16516if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16517 as_dirname=dirname
16518else
16519 as_dirname=false
16520fi
6be7c12c 16521
81ecdfbb 16522as_me=`$as_basename -- "$0" ||
5464f5a1
NN
16523$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16524 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
16525 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16526$as_echo X/"$0" |
16527 sed '/^.*\/\([^/][^/]*\)\/*$/{
16528 s//\1/
16529 q
16530 }
16531 /^X\/\(\/\/\)$/{
16532 s//\1/
16533 q
16534 }
16535 /^X\/\(\/\).*/{
16536 s//\1/
16537 q
16538 }
16539 s/.*/./; q'`
5464f5a1 16540
5464f5a1
NN
16541# Avoid depending upon Character Ranges.
16542as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16543as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16544as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16545as_cr_digits='0123456789'
16546as_cr_alnum=$as_cr_Letters$as_cr_digits
16547
81ecdfbb
RW
16548ECHO_C= ECHO_N= ECHO_T=
16549case `echo -n x` in #(((((
16550-n*)
16551 case `echo 'xy\c'` in
16552 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16553 xy) ECHO_C='\c';;
16554 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16555 ECHO_T=' ';;
16556 esac;;
16557*)
16558 ECHO_N='-n';;
5464f5a1
NN
16559esac
16560
81ecdfbb
RW
16561rm -f conf$$ conf$$.exe conf$$.file
16562if test -d conf$$.dir; then
16563 rm -f conf$$.dir/conf$$.file
252b5132 16564else
81ecdfbb
RW
16565 rm -f conf$$.dir
16566 mkdir conf$$.dir 2>/dev/null
252b5132 16567fi
81ecdfbb
RW
16568if (echo >conf$$.file) 2>/dev/null; then
16569 if ln -s conf$$.file conf$$ 2>/dev/null; then
5464f5a1 16570 as_ln_s='ln -s'
81ecdfbb
RW
16571 # ... but there are two gotchas:
16572 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16573 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16574 # In both cases, we have to default to `cp -p'.
16575 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16576 as_ln_s='cp -p'
16577 elif ln conf$$.file conf$$ 2>/dev/null; then
16578 as_ln_s=ln
16579 else
16580 as_ln_s='cp -p'
5464f5a1 16581 fi
5464f5a1
NN
16582else
16583 as_ln_s='cp -p'
252b5132 16584fi
81ecdfbb
RW
16585rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16586rmdir conf$$.dir 2>/dev/null
16587
16588
16589# as_fn_mkdir_p
16590# -------------
16591# Create "$as_dir" as a directory, including parents if necessary.
16592as_fn_mkdir_p ()
16593{
16594
16595 case $as_dir in #(
16596 -*) as_dir=./$as_dir;;
16597 esac
16598 test -d "$as_dir" || eval $as_mkdir_p || {
16599 as_dirs=
16600 while :; do
16601 case $as_dir in #(
16602 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16603 *) as_qdir=$as_dir;;
16604 esac
16605 as_dirs="'$as_qdir' $as_dirs"
16606 as_dir=`$as_dirname -- "$as_dir" ||
16607$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16608 X"$as_dir" : 'X\(//\)[^/]' \| \
16609 X"$as_dir" : 'X\(//\)$' \| \
16610 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16611$as_echo X"$as_dir" |
16612 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16613 s//\1/
16614 q
16615 }
16616 /^X\(\/\/\)[^/].*/{
16617 s//\1/
16618 q
16619 }
16620 /^X\(\/\/\)$/{
16621 s//\1/
16622 q
16623 }
16624 /^X\(\/\).*/{
16625 s//\1/
16626 q
16627 }
16628 s/.*/./; q'`
16629 test -d "$as_dir" && break
16630 done
16631 test -z "$as_dirs" || eval "mkdir $as_dirs"
16632 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
16633
6be7c12c 16634
81ecdfbb 16635} # as_fn_mkdir_p
5464f5a1 16636if mkdir -p . 2>/dev/null; then
81ecdfbb 16637 as_mkdir_p='mkdir -p "$as_dir"'
5464f5a1
NN
16638else
16639 test -d ./-p && rmdir ./-p
16640 as_mkdir_p=false
252b5132 16641fi
81ecdfbb
RW
16642
16643if test -x / >/dev/null 2>&1; then
16644 as_test_x='test -x'
16645else
16646 if ls -dL / >/dev/null 2>&1; then
16647 as_ls_L_option=L
16648 else
16649 as_ls_L_option=
16650 fi
16651 as_test_x='
16652 eval sh -c '\''
16653 if test -d "$1"; then
16654 test -d "$1/.";
16655 else
16656 case $1 in #(
16657 -*)set "./$1";;
16658 esac;
16659 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16660 ???[sx]*):;;*)false;;esac;fi
16661 '\'' sh
16662 '
16663fi
16664as_executable_p=$as_test_x
252b5132 16665
5464f5a1
NN
16666# Sed expression to map a string onto a valid CPP name.
16667as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
252b5132 16668
5464f5a1
NN
16669# Sed expression to map a string onto a valid variable name.
16670as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6be7c12c 16671
252b5132 16672
5464f5a1 16673exec 6>&1
81ecdfbb
RW
16674## ----------------------------------- ##
16675## Main body of $CONFIG_STATUS script. ##
16676## ----------------------------------- ##
16677_ASEOF
16678test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
5464f5a1 16679
81ecdfbb
RW
16680cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16681# Save the log message, to keep $0 and so on meaningful, and to
5464f5a1 16682# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
16683# values after options handling.
16684ac_log="
769c7ea5 16685This file was extended by bfd $as_me 2.30.51, which was
81ecdfbb 16686generated by GNU Autoconf 2.64. Invocation command line was
5464f5a1
NN
16687
16688 CONFIG_FILES = $CONFIG_FILES
16689 CONFIG_HEADERS = $CONFIG_HEADERS
16690 CONFIG_LINKS = $CONFIG_LINKS
16691 CONFIG_COMMANDS = $CONFIG_COMMANDS
16692 $ $0 $@
16693
81ecdfbb
RW
16694on `(hostname || uname -n) 2>/dev/null | sed 1q`
16695"
16696
5464f5a1
NN
16697_ACEOF
16698
81ecdfbb
RW
16699case $ac_config_files in *"
16700"*) set x $ac_config_files; shift; ac_config_files=$*;;
16701esac
5464f5a1 16702
81ecdfbb
RW
16703case $ac_config_headers in *"
16704"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16705esac
252b5132 16706
252b5132 16707
81ecdfbb
RW
16708cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16709# Files that config.status was made for.
16710config_files="$ac_config_files"
16711config_headers="$ac_config_headers"
16712config_commands="$ac_config_commands"
252b5132 16713
81ecdfbb 16714_ACEOF
5464f5a1 16715
81ecdfbb 16716cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5464f5a1 16717ac_cs_usage="\
81ecdfbb
RW
16718\`$as_me' instantiates files and other configuration actions
16719from templates according to the current configuration. Unless the files
16720and actions are specified as TAGs, all are instantiated by default.
5464f5a1 16721
81ecdfbb 16722Usage: $0 [OPTION]... [TAG]...
5464f5a1
NN
16723
16724 -h, --help print this help, then exit
81ecdfbb
RW
16725 -V, --version print version number and configuration settings, then exit
16726 -q, --quiet, --silent
16727 do not print progress messages
5464f5a1
NN
16728 -d, --debug don't remove temporary files
16729 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
16730 --file=FILE[:TEMPLATE]
16731 instantiate the configuration file FILE
16732 --header=FILE[:TEMPLATE]
16733 instantiate the configuration header FILE
5464f5a1
NN
16734
16735Configuration files:
16736$config_files
16737
16738Configuration headers:
16739$config_headers
16740
16741Configuration commands:
16742$config_commands
16743
81ecdfbb 16744Report bugs to the package provider."
5464f5a1 16745
81ecdfbb
RW
16746_ACEOF
16747cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5464f5a1 16748ac_cs_version="\\
769c7ea5 16749bfd config.status 2.30.51
81ecdfbb
RW
16750configured by $0, generated by GNU Autoconf 2.64,
16751 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
5464f5a1 16752
81ecdfbb 16753Copyright (C) 2009 Free Software Foundation, Inc.
5464f5a1
NN
16754This config.status script is free software; the Free Software Foundation
16755gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
16756
16757ac_pwd='$ac_pwd'
16758srcdir='$srcdir'
16759INSTALL='$INSTALL'
16760MKDIR_P='$MKDIR_P'
16761AWK='$AWK'
16762test -n "\$AWK" || AWK=awk
5464f5a1
NN
16763_ACEOF
16764
81ecdfbb
RW
16765cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16766# The default lists apply if the user does not specify any file.
5464f5a1
NN
16767ac_need_defaults=:
16768while test $# != 0
16769do
16770 case $1 in
16771 --*=*)
81ecdfbb
RW
16772 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16773 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5464f5a1 16774 ac_shift=:
6be7c12c 16775 ;;
81ecdfbb 16776 *)
5464f5a1
NN
16777 ac_option=$1
16778 ac_optarg=$2
16779 ac_shift=shift
6be7c12c 16780 ;;
5464f5a1 16781 esac
252b5132 16782
5464f5a1
NN
16783 case $ac_option in
16784 # Handling of the options.
5464f5a1
NN
16785 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16786 ac_cs_recheck=: ;;
81ecdfbb
RW
16787 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16788 $as_echo "$ac_cs_version"; exit ;;
16789 --debug | --debu | --deb | --de | --d | -d )
5464f5a1
NN
16790 debug=: ;;
16791 --file | --fil | --fi | --f )
16792 $ac_shift
81ecdfbb
RW
16793 case $ac_optarg in
16794 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16795 esac
16796 as_fn_append CONFIG_FILES " '$ac_optarg'"
5464f5a1
NN
16797 ac_need_defaults=false;;
16798 --header | --heade | --head | --hea )
16799 $ac_shift
81ecdfbb
RW
16800 case $ac_optarg in
16801 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16802 esac
16803 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
5464f5a1 16804 ac_need_defaults=false;;
81ecdfbb
RW
16805 --he | --h)
16806 # Conflict between --help and --header
16807 as_fn_error "ambiguous option: \`$1'
16808Try \`$0 --help' for more information.";;
16809 --help | --hel | -h )
16810 $as_echo "$ac_cs_usage"; exit ;;
5464f5a1
NN
16811 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16812 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16813 ac_cs_silent=: ;;
6be7c12c 16814
5464f5a1 16815 # This is an error.
81ecdfbb
RW
16816 -*) as_fn_error "unrecognized option: \`$1'
16817Try \`$0 --help' for more information." ;;
252b5132 16818
81ecdfbb
RW
16819 *) as_fn_append ac_config_targets " $1"
16820 ac_need_defaults=false ;;
252b5132 16821
5464f5a1
NN
16822 esac
16823 shift
16824done
6be7c12c 16825
5464f5a1 16826ac_configure_extra_args=
252b5132 16827
5464f5a1
NN
16828if $ac_cs_silent; then
16829 exec 6>/dev/null
16830 ac_configure_extra_args="$ac_configure_extra_args --silent"
16831fi
6be7c12c 16832
5464f5a1 16833_ACEOF
81ecdfbb 16834cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5464f5a1 16835if \$ac_cs_recheck; then
81ecdfbb
RW
16836 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16837 shift
16838 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16839 CONFIG_SHELL='$SHELL'
16840 export CONFIG_SHELL
16841 exec "\$@"
5464f5a1
NN
16842fi
16843
16844_ACEOF
81ecdfbb
RW
16845cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16846exec 5>>config.log
16847{
16848 echo
16849 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16850## Running $as_me. ##
16851_ASBOX
16852 $as_echo "$ac_log"
16853} >&5
5464f5a1 16854
81ecdfbb
RW
16855_ACEOF
16856cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6be7c12c 16857#
81ecdfbb 16858# INIT-COMMANDS
6be7c12c 16859#
f5385ebf 16860AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
d7040cdb
SE
16861
16862
16863# The HP-UX ksh and POSIX shell print the target directory to stdout
16864# if CDPATH is set.
16865(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16866
16867sed_quote_subst='$sed_quote_subst'
16868double_quote_subst='$double_quote_subst'
16869delay_variable_subst='$delay_variable_subst'
3725885a
RW
16870enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16871macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16872macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16873enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16874pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16875enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16876SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16877ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16878host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16879host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16880host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16881build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16882build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16883build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16884SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16885Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16886GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16887EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16888FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16889LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16890NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16891LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16892max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16893ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16894exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16895lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16896lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16897lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16898reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16899reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16900OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16901deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16902file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16903AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16904AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16905STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16906RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16907old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16908old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16909old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16910lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16911CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16912CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16913compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16914GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16915lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16916lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16917lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16918lt_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"`'
16919objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16920MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16921lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16922lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16923lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16924lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16925lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16926need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16927DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16928NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16929LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16930OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16931OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16932libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16933shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16934extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16935archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16936enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16937export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16938whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16939compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16940old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16941old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16942archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16943archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16944module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16945module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16946with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16947allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16948no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16949hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16950hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16951hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16952hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16953hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16954hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16955hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16956hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16957inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16958link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16959fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16960always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16961export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16962exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16963include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16964prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16965file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16966variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16967need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16968need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16969version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16970runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16971shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16972shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16973libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16974library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16975soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16976install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16977postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16978postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16979finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16980finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16981hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16982sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16983sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16984hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16985enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16986enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16987enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16988old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16989striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
d7040cdb
SE
16990
16991LTCC='$LTCC'
16992LTCFLAGS='$LTCFLAGS'
16993compiler='$compiler_DEFAULT'
16994
3725885a
RW
16995# A function that is used when there is no print builtin or printf.
16996func_fallback_echo ()
16997{
16998 eval 'cat <<_LTECHO_EOF
16999\$1
17000_LTECHO_EOF'
17001}
17002
d7040cdb 17003# Quote evaled strings.
3725885a
RW
17004for var in SHELL \
17005ECHO \
17006SED \
d7040cdb
SE
17007GREP \
17008EGREP \
17009FGREP \
17010LD \
17011NM \
17012LN_S \
17013lt_SP2NL \
17014lt_NL2SP \
17015reload_flag \
718a6fd8 17016OBJDUMP \
d7040cdb
SE
17017deplibs_check_method \
17018file_magic_cmd \
17019AR \
17020AR_FLAGS \
17021STRIP \
17022RANLIB \
17023CC \
17024CFLAGS \
17025compiler \
17026lt_cv_sys_global_symbol_pipe \
17027lt_cv_sys_global_symbol_to_cdecl \
17028lt_cv_sys_global_symbol_to_c_name_address \
718a6fd8 17029lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
d7040cdb
SE
17030lt_prog_compiler_no_builtin_flag \
17031lt_prog_compiler_wl \
17032lt_prog_compiler_pic \
17033lt_prog_compiler_static \
17034lt_cv_prog_compiler_c_o \
17035need_locks \
718a6fd8
SE
17036DSYMUTIL \
17037NMEDIT \
17038LIPO \
17039OTOOL \
17040OTOOL64 \
d7040cdb
SE
17041shrext_cmds \
17042export_dynamic_flag_spec \
17043whole_archive_flag_spec \
17044compiler_needs_object \
17045with_gnu_ld \
17046allow_undefined_flag \
17047no_undefined_flag \
17048hardcode_libdir_flag_spec \
17049hardcode_libdir_flag_spec_ld \
17050hardcode_libdir_separator \
17051fix_srcfile_path \
17052exclude_expsyms \
17053include_expsyms \
17054file_list_spec \
17055variables_saved_for_relink \
17056libname_spec \
17057library_names_spec \
17058soname_spec \
3725885a 17059install_override_mode \
d7040cdb
SE
17060finish_eval \
17061old_striplib \
17062striplib; do
3725885a 17063 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
d7040cdb 17064 *[\\\\\\\`\\"\\\$]*)
3725885a 17065 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
d7040cdb
SE
17066 ;;
17067 *)
17068 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17069 ;;
17070 esac
17071done
17072
17073# Double-quote double-evaled strings.
17074for var in reload_cmds \
17075old_postinstall_cmds \
17076old_postuninstall_cmds \
17077old_archive_cmds \
17078extract_expsyms_cmds \
17079old_archive_from_new_cmds \
17080old_archive_from_expsyms_cmds \
17081archive_cmds \
17082archive_expsym_cmds \
17083module_cmds \
17084module_expsym_cmds \
17085export_symbols_cmds \
17086prelink_cmds \
17087postinstall_cmds \
17088postuninstall_cmds \
17089finish_cmds \
17090sys_lib_search_path_spec \
17091sys_lib_dlsearch_path_spec; do
3725885a 17092 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
d7040cdb 17093 *[\\\\\\\`\\"\\\$]*)
3725885a 17094 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
d7040cdb
SE
17095 ;;
17096 *)
17097 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17098 ;;
17099 esac
17100done
17101
d7040cdb
SE
17102ac_aux_dir='$ac_aux_dir'
17103xsi_shell='$xsi_shell'
17104lt_shell_append='$lt_shell_append'
17105
17106# See if we are running on zsh, and set the options which allow our
17107# commands through without removal of \ escapes INIT.
17108if test -n "\${ZSH_VERSION+set}" ; then
17109 setopt NO_GLOB_SUBST
17110fi
17111
17112
17113 PACKAGE='$PACKAGE'
17114 VERSION='$VERSION'
17115 TIMESTAMP='$TIMESTAMP'
17116 RM='$RM'
17117 ofile='$ofile'
17118
17119
17120
20e95c23
DJ
17121# Capture the value of obsolete ALL_LINGUAS because we need it to compute
17122 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
17123 # from automake.
17124 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
17125 # Capture the value of LINGUAS because we need it to compute CATALOGS.
17126 LINGUAS="${LINGUAS-%UNSET%}"
17127
5464f5a1 17128
f3b4f6d0
PB
17129GCC="$GCC"
17130CC="$CC"
17131acx_cv_header_stdint="$acx_cv_header_stdint"
17132acx_cv_type_int8_t="$acx_cv_type_int8_t"
17133acx_cv_type_int16_t="$acx_cv_type_int16_t"
17134acx_cv_type_int32_t="$acx_cv_type_int32_t"
17135acx_cv_type_int64_t="$acx_cv_type_int64_t"
17136acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
17137ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
17138ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
17139ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
17140ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
17141ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
d5efd9fc
AM
17142ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
17143ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
f3b4f6d0 17144ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
d5efd9fc
AM
17145
17146
5464f5a1
NN
17147
17148_ACEOF
17149
81ecdfbb 17150cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5464f5a1 17151
81ecdfbb 17152# Handling of arguments.
5464f5a1 17153for ac_config_target in $ac_config_targets
252b5132 17154do
81ecdfbb
RW
17155 case $ac_config_target in
17156 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17157 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17158 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
17159 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
17160 "bfd_stdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS bfd_stdint.h" ;;
17161 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17162 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17163 "bfd-in3.h") CONFIG_FILES="$CONFIG_FILES bfd-in3.h:bfd-in2.h" ;;
17164 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
17165 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
17166
17167 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
252b5132
RH
17168 esac
17169done
17170
81ecdfbb 17171
5464f5a1
NN
17172# If the user did not use the arguments to specify the items to instantiate,
17173# then the envvar interface is used. Set only those that are not.
17174# We use the long form for the default assignment because of an extremely
17175# bizarre bug on SunOS 4.1.3.
17176if $ac_need_defaults; then
17177 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17178 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17179 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17180fi
17181
17182# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 17183# simply because there is no reason against having it here, and in addition,
5464f5a1 17184# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
17185# Hook for its removal unless debugging.
17186# Note that there is a small window in which the directory will not be cleaned:
17187# after its creation but before its name has been assigned to `$tmp'.
5464f5a1
NN
17188$debug ||
17189{
81ecdfbb
RW
17190 tmp=
17191 trap 'exit_status=$?
17192 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17193' 0
17194 trap 'as_fn_exit 1' 1 2 13 15
5464f5a1 17195}
5464f5a1 17196# Create a (secure) tmp directory for tmp files.
b3baf5d0 17197
5464f5a1 17198{
81ecdfbb 17199 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5464f5a1
NN
17200 test -n "$tmp" && test -d "$tmp"
17201} ||
17202{
81ecdfbb
RW
17203 tmp=./conf$$-$RANDOM
17204 (umask 077 && mkdir "$tmp")
17205} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
17206
17207# Set up the scripts for CONFIG_FILES section.
17208# No need to generate them if there are no CONFIG_FILES.
17209# This happens for instance with `./config.status config.h'.
17210if test -n "$CONFIG_FILES"; then
17211
17212
17213ac_cr=`echo X | tr X '\015'`
17214# On cygwin, bash can eat \r inside `` if the user requested igncr.
17215# But we know of no other shell where ac_cr would be empty at this
17216# point, so we can use a bashism as a fallback.
17217if test "x$ac_cr" = x; then
17218 eval ac_cr=\$\'\\r\'
17219fi
17220ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17221if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17222 ac_cs_awk_cr='\r'
17223else
17224 ac_cs_awk_cr=$ac_cr
17225fi
17226
17227echo 'BEGIN {' >"$tmp/subs1.awk" &&
17228_ACEOF
17229
17230
17231{
17232 echo "cat >conf$$subs.awk <<_ACEOF" &&
17233 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17234 echo "_ACEOF"
17235} >conf$$subs.sh ||
17236 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17237ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
17238ac_delim='%!_!# '
17239for ac_last_try in false false false false false :; do
17240 . ./conf$$subs.sh ||
17241 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17242
17243 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17244 if test $ac_delim_n = $ac_delim_num; then
17245 break
17246 elif $ac_last_try; then
17247 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17248 else
17249 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17250 fi
17251done
17252rm -f conf$$subs.sh
17253
17254cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17255cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
17256_ACEOF
17257sed -n '
17258h
17259s/^/S["/; s/!.*/"]=/
17260p
17261g
17262s/^[^!]*!//
17263:repl
17264t repl
17265s/'"$ac_delim"'$//
17266t delim
17267:nl
17268h
17269s/\(.\{148\}\).*/\1/
17270t more1
17271s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17272p
17273n
17274b repl
17275:more1
17276s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17277p
17278g
17279s/.\{148\}//
17280t nl
17281:delim
17282h
17283s/\(.\{148\}\).*/\1/
17284t more2
17285s/["\\]/\\&/g; s/^/"/; s/$/"/
17286p
17287b
17288:more2
17289s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17290p
17291g
17292s/.\{148\}//
17293t delim
17294' <conf$$subs.awk | sed '
17295/^[^""]/{
17296 N
17297 s/\n//
17298}
17299' >>$CONFIG_STATUS || ac_write_fail=1
17300rm -f conf$$subs.awk
17301cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17302_ACAWK
17303cat >>"\$tmp/subs1.awk" <<_ACAWK &&
17304 for (key in S) S_is_set[key] = 1
17305 FS = "\a"
17306
17307}
5464f5a1 17308{
81ecdfbb
RW
17309 line = $ 0
17310 nfields = split(line, field, "@")
17311 substed = 0
17312 len = length(field[1])
17313 for (i = 2; i < nfields; i++) {
17314 key = field[i]
17315 keylen = length(key)
17316 if (S_is_set[key]) {
17317 value = S[key]
17318 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17319 len += length(value) + length(field[++i])
17320 substed = 1
17321 } else
17322 len += 1 + keylen
17323 }
17324
17325 print line
5464f5a1
NN
17326}
17327
81ecdfbb
RW
17328_ACAWK
17329_ACEOF
17330cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17331if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17332 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17333else
17334 cat
17335fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
17336 || as_fn_error "could not setup config files machinery" "$LINENO" 5
5464f5a1
NN
17337_ACEOF
17338
81ecdfbb
RW
17339# VPATH may cause trouble with some makes, so we remove $(srcdir),
17340# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17341# trailing colons and then remove the whole line if VPATH becomes empty
17342# (actually we leave an empty line to preserve line numbers).
17343if test "x$srcdir" = x.; then
17344 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17345s/:*\$(srcdir):*/:/
17346s/:*\${srcdir}:*/:/
17347s/:*@srcdir@:*/:/
17348s/^\([^=]*=[ ]*\):*/\1/
17349s/:*$//
17350s/^[^=]*=[ ]*$//
17351}'
17352fi
b3baf5d0 17353
81ecdfbb
RW
17354cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17355fi # test -n "$CONFIG_FILES"
252b5132 17356
81ecdfbb
RW
17357# Set up the scripts for CONFIG_HEADERS section.
17358# No need to generate them if there are no CONFIG_HEADERS.
17359# This happens for instance with `./config.status Makefile'.
17360if test -n "$CONFIG_HEADERS"; then
17361cat >"$tmp/defines.awk" <<\_ACAWK ||
17362BEGIN {
5464f5a1
NN
17363_ACEOF
17364
81ecdfbb
RW
17365# Transform confdefs.h into an awk script `defines.awk', embedded as
17366# here-document in config.status, that substitutes the proper values into
17367# config.h.in to produce config.h.
17368
17369# Create a delimiter string that does not exist in confdefs.h, to ease
17370# handling of long lines.
17371ac_delim='%!_!# '
17372for ac_last_try in false false :; do
17373 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
17374 if test -z "$ac_t"; then
17375 break
17376 elif $ac_last_try; then
17377 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
17378 else
17379 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
252b5132 17380 fi
81ecdfbb 17381done
6be7c12c 17382
81ecdfbb
RW
17383# For the awk script, D is an array of macro values keyed by name,
17384# likewise P contains macro parameters if any. Preserve backslash
17385# newline sequences.
17386
17387ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17388sed -n '
17389s/.\{148\}/&'"$ac_delim"'/g
17390t rset
17391:rset
17392s/^[ ]*#[ ]*define[ ][ ]*/ /
17393t def
17394d
17395:def
17396s/\\$//
17397t bsnl
17398s/["\\]/\\&/g
17399s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17400D["\1"]=" \3"/p
17401s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17402d
17403:bsnl
17404s/["\\]/\\&/g
17405s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17406D["\1"]=" \3\\\\\\n"\\/p
17407t cont
17408s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17409t cont
17410d
17411:cont
17412n
17413s/.\{148\}/&'"$ac_delim"'/g
17414t clear
17415:clear
17416s/\\$//
17417t bsnlc
17418s/["\\]/\\&/g; s/^/"/; s/$/"/p
17419d
17420:bsnlc
17421s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17422b cont
17423' <confdefs.h | sed '
17424s/'"$ac_delim"'/"\\\
17425"/g' >>$CONFIG_STATUS || ac_write_fail=1
17426
17427cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17428 for (key in D) D_is_set[key] = 1
17429 FS = "\a"
17430}
17431/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17432 line = \$ 0
17433 split(line, arg, " ")
17434 if (arg[1] == "#") {
17435 defundef = arg[2]
17436 mac1 = arg[3]
17437 } else {
17438 defundef = substr(arg[1], 2)
17439 mac1 = arg[2]
17440 }
17441 split(mac1, mac2, "(") #)
17442 macro = mac2[1]
17443 prefix = substr(line, 1, index(line, defundef) - 1)
17444 if (D_is_set[macro]) {
17445 # Preserve the white space surrounding the "#".
17446 print prefix "define", macro P[macro] D[macro]
17447 next
17448 } else {
17449 # Replace #undef with comments. This is necessary, for example,
17450 # in the case of _POSIX_SOURCE, which is predefined and required
17451 # on some systems where configure will not decide to define it.
17452 if (defundef == "undef") {
17453 print "/*", prefix defundef, macro, "*/"
17454 next
17455 }
17456 }
17457}
17458{ print }
17459_ACAWK
5464f5a1 17460_ACEOF
81ecdfbb
RW
17461cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17462 as_fn_error "could not setup config headers machinery" "$LINENO" 5
17463fi # test -n "$CONFIG_HEADERS"
17464
17465
17466eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17467shift
17468for ac_tag
17469do
17470 case $ac_tag in
17471 :[FHLC]) ac_mode=$ac_tag; continue;;
17472 esac
17473 case $ac_mode$ac_tag in
17474 :[FHL]*:*);;
17475 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
17476 :[FH]-) ac_tag=-:-;;
17477 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17478 esac
17479 ac_save_IFS=$IFS
17480 IFS=:
17481 set x $ac_tag
17482 IFS=$ac_save_IFS
17483 shift
17484 ac_file=$1
17485 shift
17486
17487 case $ac_mode in
17488 :L) ac_source=$1;;
17489 :[FH])
17490 ac_file_inputs=
17491 for ac_f
17492 do
17493 case $ac_f in
17494 -) ac_f="$tmp/stdin";;
17495 *) # Look for the file first in the build tree, then in the source tree
17496 # (if the path is not absolute). The absolute path cannot be DOS-style,
17497 # because $ac_f cannot contain `:'.
17498 test -f "$ac_f" ||
17499 case $ac_f in
17500 [\\/$]*) false;;
17501 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17502 esac ||
17503 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17504 esac
17505 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17506 as_fn_append ac_file_inputs " '$ac_f'"
17507 done
17508
17509 # Let's still pretend it is `configure' which instantiates (i.e., don't
17510 # use $as_me), people would be surprised to read:
17511 # /* config.h. Generated by config.status. */
17512 configure_input='Generated from '`
17513 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17514 `' by configure.'
17515 if test x"$ac_file" != x-; then
17516 configure_input="$ac_file. $configure_input"
17517 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17518$as_echo "$as_me: creating $ac_file" >&6;}
17519 fi
17520 # Neutralize special characters interpreted by sed in replacement strings.
17521 case $configure_input in #(
17522 *\&* | *\|* | *\\* )
17523 ac_sed_conf_input=`$as_echo "$configure_input" |
17524 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17525 *) ac_sed_conf_input=$configure_input;;
17526 esac
17527
17528 case $ac_tag in
17529 *:-:* | *:-) cat >"$tmp/stdin" \
17530 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
17531 esac
17532 ;;
252b5132
RH
17533 esac
17534
81ecdfbb 17535 ac_dir=`$as_dirname -- "$ac_file" ||
5464f5a1
NN
17536$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17537 X"$ac_file" : 'X\(//\)[^/]' \| \
17538 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
17539 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17540$as_echo X"$ac_file" |
17541 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17542 s//\1/
17543 q
17544 }
17545 /^X\(\/\/\)[^/].*/{
17546 s//\1/
17547 q
17548 }
17549 /^X\(\/\/\)$/{
17550 s//\1/
17551 q
17552 }
17553 /^X\(\/\).*/{
17554 s//\1/
17555 q
17556 }
17557 s/.*/./; q'`
17558 as_dir="$ac_dir"; as_fn_mkdir_p
5464f5a1
NN
17559 ac_builddir=.
17560
81ecdfbb
RW
17561case "$ac_dir" in
17562.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17563*)
17564 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17565 # A ".." for each directory in $ac_dir_suffix.
17566 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17567 case $ac_top_builddir_sub in
17568 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17569 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17570 esac ;;
17571esac
17572ac_abs_top_builddir=$ac_pwd
17573ac_abs_builddir=$ac_pwd$ac_dir_suffix
17574# for backward compatibility:
17575ac_top_builddir=$ac_top_build_prefix
252b5132 17576
5464f5a1 17577case $srcdir in
81ecdfbb 17578 .) # We are building in place.
5464f5a1 17579 ac_srcdir=.
81ecdfbb
RW
17580 ac_top_srcdir=$ac_top_builddir_sub
17581 ac_abs_top_srcdir=$ac_pwd ;;
17582 [\\/]* | ?:[\\/]* ) # Absolute name.
5464f5a1 17583 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
17584 ac_top_srcdir=$srcdir
17585 ac_abs_top_srcdir=$srcdir ;;
17586 *) # Relative name.
17587 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17588 ac_top_srcdir=$ac_top_build_prefix$srcdir
17589 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5464f5a1 17590esac
81ecdfbb 17591ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
252b5132 17592
252b5132 17593
81ecdfbb
RW
17594 case $ac_mode in
17595 :F)
17596 #
17597 # CONFIG_FILE
17598 #
5464f5a1
NN
17599
17600 case $INSTALL in
17601 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb
RW
17602 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17603 esac
17604 ac_MKDIR_P=$MKDIR_P
17605 case $MKDIR_P in
17606 [\\/$]* | ?:[\\/]* ) ;;
17607 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
6be7c12c 17608 esac
81ecdfbb 17609_ACEOF
252b5132 17610
81ecdfbb
RW
17611cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17612# If the template does not know about datarootdir, expand it.
17613# FIXME: This hack should be removed a few years after 2.60.
17614ac_datarootdir_hack=; ac_datarootdir_seen=
17615ac_sed_dataroot='
17616/datarootdir/ {
17617 p
17618 q
17619}
17620/@datadir@/p
17621/@docdir@/p
17622/@infodir@/p
17623/@localedir@/p
17624/@mandir@/p'
17625case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17626*datarootdir*) ac_datarootdir_seen=yes;;
17627*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17628 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17629$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17630_ACEOF
17631cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17632 ac_datarootdir_hack='
17633 s&@datadir@&$datadir&g
17634 s&@docdir@&$docdir&g
17635 s&@infodir@&$infodir&g
17636 s&@localedir@&$localedir&g
17637 s&@mandir@&$mandir&g
17638 s&\\\${datarootdir}&$datarootdir&g' ;;
17639esac
5464f5a1 17640_ACEOF
81ecdfbb
RW
17641
17642# Neutralize VPATH when `$srcdir' = `.'.
17643# Shell code in configure.ac might set extrasub.
17644# FIXME: do we really want to maintain this feature?
17645cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17646ac_sed_extra="$ac_vpsub
5464f5a1
NN
17647$extrasub
17648_ACEOF
81ecdfbb 17649cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5464f5a1
NN
17650:t
17651/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
17652s|@configure_input@|$ac_sed_conf_input|;t t
17653s&@top_builddir@&$ac_top_builddir_sub&;t t
17654s&@top_build_prefix@&$ac_top_build_prefix&;t t
17655s&@srcdir@&$ac_srcdir&;t t
17656s&@abs_srcdir@&$ac_abs_srcdir&;t t
17657s&@top_srcdir@&$ac_top_srcdir&;t t
17658s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17659s&@builddir@&$ac_builddir&;t t
17660s&@abs_builddir@&$ac_abs_builddir&;t t
17661s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17662s&@INSTALL@&$ac_INSTALL&;t t
17663s&@MKDIR_P@&$ac_MKDIR_P&;t t
17664$ac_datarootdir_hack
17665"
17666eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17667 || as_fn_error "could not create $ac_file" "$LINENO" 5
17668
17669test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17670 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17671 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17673which seems to be undefined. Please make sure it is defined." >&5
17674$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17675which seems to be undefined. Please make sure it is defined." >&2;}
17676
17677 rm -f "$tmp/stdin"
5464f5a1 17678 case $ac_file in
81ecdfbb
RW
17679 -) cat "$tmp/out" && rm -f "$tmp/out";;
17680 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17681 esac \
17682 || as_fn_error "could not create $ac_file" "$LINENO" 5
17683 ;;
17684 :H)
17685 #
17686 # CONFIG_HEADER
17687 #
5464f5a1 17688 if test x"$ac_file" != x-; then
81ecdfbb
RW
17689 {
17690 $as_echo "/* $configure_input */" \
17691 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17692 } >"$tmp/config.h" \
17693 || as_fn_error "could not create $ac_file" "$LINENO" 5
17694 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17695 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17696$as_echo "$as_me: $ac_file is unchanged" >&6;}
5464f5a1 17697 else
81ecdfbb
RW
17698 rm -f "$ac_file"
17699 mv "$tmp/config.h" "$ac_file" \
17700 || as_fn_error "could not create $ac_file" "$LINENO" 5
252b5132 17701 fi
5464f5a1 17702 else
81ecdfbb
RW
17703 $as_echo "/* $configure_input */" \
17704 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17705 || as_fn_error "could not create -" "$LINENO" 5
252b5132 17706 fi
81ecdfbb
RW
17707# Compute "$ac_file"'s index in $config_headers.
17708_am_arg="$ac_file"
f5385ebf
AM
17709_am_stamp_count=1
17710for _am_header in $config_headers :; do
17711 case $_am_header in
81ecdfbb 17712 $_am_arg | $_am_arg:* )
f5385ebf
AM
17713 break ;;
17714 * )
17715 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17716 esac
17717done
81ecdfbb
RW
17718echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17719$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17720 X"$_am_arg" : 'X\(//\)[^/]' \| \
17721 X"$_am_arg" : 'X\(//\)$' \| \
17722 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17723$as_echo X"$_am_arg" |
17724 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17725 s//\1/
17726 q
17727 }
17728 /^X\(\/\/\)[^/].*/{
17729 s//\1/
17730 q
17731 }
17732 /^X\(\/\/\)$/{
17733 s//\1/
17734 q
17735 }
17736 /^X\(\/\).*/{
17737 s//\1/
17738 q
17739 }
17740 s/.*/./; q'`/stamp-h$_am_stamp_count
17741 ;;
5464f5a1 17742
81ecdfbb
RW
17743 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17744$as_echo "$as_me: executing $ac_file commands" >&6;}
17745 ;;
17746 esac
5464f5a1
NN
17747
17748
81ecdfbb
RW
17749 case $ac_file$ac_mode in
17750 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17751 # Autoconf 2.62 quotes --file arguments for eval, but not when files
17752 # are listed without --file. Let's play safe and only enable the eval
17753 # if we detect the quoting.
17754 case $CONFIG_FILES in
17755 *\'*) eval set x "$CONFIG_FILES" ;;
17756 *) set x $CONFIG_FILES ;;
17757 esac
17758 shift
17759 for mf
17760 do
17761 # Strip MF so we end up with the name of the file.
17762 mf=`echo "$mf" | sed -e 's/:.*$//'`
17763 # Check whether this is an Automake generated Makefile or not.
17764 # We used to match only the files named `Makefile.in', but
17765 # some people rename them; so instead we look at the file content.
17766 # Grep'ing the first line is not enough: some people post-process
17767 # each Makefile.in and add a new line on top of each file to say so.
17768 # Grep'ing the whole file is not good either: AIX grep has a line
17769 # limit of 2048, but all sed's we know have understand at least 4000.
17770 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17771 dirpart=`$as_dirname -- "$mf" ||
f5385ebf
AM
17772$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17773 X"$mf" : 'X\(//\)[^/]' \| \
17774 X"$mf" : 'X\(//\)$' \| \
81ecdfbb
RW
17775 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17776$as_echo X"$mf" |
17777 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17778 s//\1/
17779 q
17780 }
17781 /^X\(\/\/\)[^/].*/{
17782 s//\1/
17783 q
17784 }
17785 /^X\(\/\/\)$/{
17786 s//\1/
17787 q
17788 }
17789 /^X\(\/\).*/{
17790 s//\1/
17791 q
17792 }
17793 s/.*/./; q'`
17794 else
17795 continue
17796 fi
17797 # Extract the definition of DEPDIR, am__include, and am__quote
17798 # from the Makefile without running `make'.
17799 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17800 test -z "$DEPDIR" && continue
17801 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17802 test -z "am__include" && continue
17803 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17804 # When using ansi2knr, U may be empty or an underscore; expand it
17805 U=`sed -n 's/^U = //p' < "$mf"`
17806 # Find all dependency output files, they are included files with
17807 # $(DEPDIR) in their names. We invoke sed twice because it is the
17808 # simplest approach to changing $(DEPDIR) to its actual value in the
17809 # expansion.
17810 for file in `sed -n "
17811 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17812 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17813 # Make sure the directory exists.
17814 test -f "$dirpart/$file" && continue
17815 fdir=`$as_dirname -- "$file" ||
f5385ebf
AM
17816$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17817 X"$file" : 'X\(//\)[^/]' \| \
17818 X"$file" : 'X\(//\)$' \| \
81ecdfbb
RW
17819 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17820$as_echo X"$file" |
17821 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17822 s//\1/
17823 q
17824 }
17825 /^X\(\/\/\)[^/].*/{
17826 s//\1/
17827 q
17828 }
17829 /^X\(\/\/\)$/{
17830 s//\1/
17831 q
17832 }
17833 /^X\(\/\).*/{
17834 s//\1/
17835 q
17836 }
17837 s/.*/./; q'`
17838 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17839 # echo "creating $dirpart/$file"
17840 echo '# dummy' > "$dirpart/$file"
f5385ebf 17841 done
f5385ebf 17842 done
81ecdfbb 17843}
d7040cdb 17844 ;;
81ecdfbb 17845 "libtool":C)
d7040cdb
SE
17846
17847 # See if we are running on zsh, and set the options which allow our
17848 # commands through without removal of \ escapes.
17849 if test -n "${ZSH_VERSION+set}" ; then
17850 setopt NO_GLOB_SUBST
17851 fi
17852
17853 cfgfile="${ofile}T"
17854 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17855 $RM "$cfgfile"
17856
17857 cat <<_LT_EOF >> "$cfgfile"
17858#! $SHELL
17859
17860# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
718a6fd8 17861# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
d7040cdb
SE
17862# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17863# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17864#
718a6fd8 17865# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
3725885a 17866# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
718a6fd8 17867# Written by Gordon Matzigkeit, 1996
d7040cdb 17868#
718a6fd8 17869# This file is part of GNU Libtool.
d7040cdb 17870#
718a6fd8
SE
17871# GNU Libtool is free software; you can redistribute it and/or
17872# modify it under the terms of the GNU General Public License as
17873# published by the Free Software Foundation; either version 2 of
17874# the License, or (at your option) any later version.
d7040cdb 17875#
718a6fd8
SE
17876# As a special exception to the GNU General Public License,
17877# if you distribute this file as part of a program or library that
17878# is built using GNU Libtool, you may include this file under the
17879# same distribution terms that you use for the rest of that program.
d7040cdb 17880#
718a6fd8
SE
17881# GNU Libtool is distributed in the hope that it will be useful,
17882# but WITHOUT ANY WARRANTY; without even the implied warranty of
17883# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17884# GNU General Public License for more details.
d7040cdb 17885#
718a6fd8
SE
17886# You should have received a copy of the GNU General Public License
17887# along with GNU Libtool; see the file COPYING. If not, a copy
17888# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17889# obtained by writing to the Free Software Foundation, Inc.,
17890# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
d7040cdb
SE
17891
17892
17893# The names of the tagged configurations supported by this script.
17894available_tags=""
17895
17896# ### BEGIN LIBTOOL CONFIG
17897
17898# Whether or not to build shared libraries.
17899build_libtool_libs=$enable_shared
17900
17901# Which release of libtool.m4 was used?
17902macro_version=$macro_version
17903macro_revision=$macro_revision
17904
17905# Whether or not to build static libraries.
17906build_old_libs=$enable_static
17907
17908# What type of objects to build.
17909pic_mode=$pic_mode
17910
17911# Whether or not to optimize for fast installation.
17912fast_install=$enable_fast_install
17913
3725885a
RW
17914# Shell to use when invoking shell scripts.
17915SHELL=$lt_SHELL
17916
17917# An echo program that protects backslashes.
17918ECHO=$lt_ECHO
17919
d7040cdb
SE
17920# The host system.
17921host_alias=$host_alias
17922host=$host
17923host_os=$host_os
17924
17925# The build system.
17926build_alias=$build_alias
17927build=$build
17928build_os=$build_os
17929
17930# A sed program that does not truncate output.
17931SED=$lt_SED
17932
17933# Sed that helps us avoid accidentally triggering echo(1) options like -n.
17934Xsed="\$SED -e 1s/^X//"
17935
17936# A grep program that handles long lines.
17937GREP=$lt_GREP
17938
17939# An ERE matcher.
17940EGREP=$lt_EGREP
17941
17942# A literal string matcher.
17943FGREP=$lt_FGREP
17944
17945# A BSD- or MS-compatible name lister.
17946NM=$lt_NM
17947
17948# Whether we need soft or hard links.
17949LN_S=$lt_LN_S
17950
17951# What is the maximum length of a command?
17952max_cmd_len=$max_cmd_len
17953
17954# Object file suffix (normally "o").
17955objext=$ac_objext
17956
17957# Executable file suffix (normally "").
17958exeext=$exeext
17959
17960# whether the shell understands "unset".
17961lt_unset=$lt_unset
17962
17963# turn spaces into newlines.
17964SP2NL=$lt_lt_SP2NL
17965
17966# turn newlines into spaces.
17967NL2SP=$lt_lt_NL2SP
17968
718a6fd8
SE
17969# An object symbol dumper.
17970OBJDUMP=$lt_OBJDUMP
17971
d7040cdb
SE
17972# Method to check whether dependent libraries are shared objects.
17973deplibs_check_method=$lt_deplibs_check_method
17974
17975# Command to use when deplibs_check_method == "file_magic".
17976file_magic_cmd=$lt_file_magic_cmd
17977
17978# The archiver.
17979AR=$lt_AR
17980AR_FLAGS=$lt_AR_FLAGS
17981
17982# A symbol stripping program.
17983STRIP=$lt_STRIP
17984
17985# Commands used to install an old-style archive.
17986RANLIB=$lt_RANLIB
17987old_postinstall_cmds=$lt_old_postinstall_cmds
17988old_postuninstall_cmds=$lt_old_postuninstall_cmds
17989
3725885a
RW
17990# Whether to use a lock for old archive extraction.
17991lock_old_archive_extraction=$lock_old_archive_extraction
17992
d7040cdb
SE
17993# A C compiler.
17994LTCC=$lt_CC
17995
17996# LTCC compiler flags.
17997LTCFLAGS=$lt_CFLAGS
17998
17999# Take the output of nm and produce a listing of raw symbols and C names.
18000global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18001
18002# Transform the output of nm in a proper C declaration.
18003global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18004
18005# Transform the output of nm in a C name address pair.
18006global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18007
718a6fd8
SE
18008# Transform the output of nm in a C name address pair when lib prefix is needed.
18009global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18010
d7040cdb
SE
18011# The name of the directory that contains temporary libtool files.
18012objdir=$objdir
18013
d7040cdb
SE
18014# Used to examine libraries when file_magic_cmd begins with "file".
18015MAGIC_CMD=$MAGIC_CMD
18016
18017# Must we lock files when doing compilation?
18018need_locks=$lt_need_locks
18019
718a6fd8
SE
18020# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18021DSYMUTIL=$lt_DSYMUTIL
18022
18023# Tool to change global to local symbols on Mac OS X.
18024NMEDIT=$lt_NMEDIT
18025
18026# Tool to manipulate fat objects and archives on Mac OS X.
18027LIPO=$lt_LIPO
18028
18029# ldd/readelf like tool for Mach-O binaries on Mac OS X.
18030OTOOL=$lt_OTOOL
18031
18032# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18033OTOOL64=$lt_OTOOL64
18034
d7040cdb
SE
18035# Old archive suffix (normally "a").
18036libext=$libext
18037
18038# Shared library suffix (normally ".so").
18039shrext_cmds=$lt_shrext_cmds
18040
18041# The commands to extract the exported symbol list from a shared archive.
18042extract_expsyms_cmds=$lt_extract_expsyms_cmds
18043
18044# Variables whose values should be saved in libtool wrapper scripts and
18045# restored at link time.
18046variables_saved_for_relink=$lt_variables_saved_for_relink
18047
18048# Do we need the "lib" prefix for modules?
18049need_lib_prefix=$need_lib_prefix
18050
18051# Do we need a version for libraries?
18052need_version=$need_version
18053
18054# Library versioning type.
18055version_type=$version_type
18056
18057# Shared library runtime path variable.
18058runpath_var=$runpath_var
18059
18060# Shared library path variable.
18061shlibpath_var=$shlibpath_var
18062
18063# Is shlibpath searched before the hard-coded library search path?
18064shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18065
18066# Format of library name prefix.
18067libname_spec=$lt_libname_spec
18068
18069# List of archive names. First name is the real one, the rest are links.
18070# The last name is the one that the linker finds with -lNAME
18071library_names_spec=$lt_library_names_spec
18072
18073# The coded name of the library, if different from the real name.
18074soname_spec=$lt_soname_spec
18075
3725885a
RW
18076# Permission mode override for installation of shared libraries.
18077install_override_mode=$lt_install_override_mode
18078
d7040cdb
SE
18079# Command to use after installation of a shared archive.
18080postinstall_cmds=$lt_postinstall_cmds
18081
18082# Command to use after uninstallation of a shared archive.
18083postuninstall_cmds=$lt_postuninstall_cmds
18084
18085# Commands used to finish a libtool library installation in a directory.
18086finish_cmds=$lt_finish_cmds
18087
18088# As "finish_cmds", except a single script fragment to be evaled but
18089# not shown.
18090finish_eval=$lt_finish_eval
18091
18092# Whether we should hardcode library paths into libraries.
18093hardcode_into_libs=$hardcode_into_libs
18094
18095# Compile-time system search path for libraries.
18096sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18097
18098# Run-time system search path for libraries.
18099sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18100
18101# Whether dlopen is supported.
18102dlopen_support=$enable_dlopen
18103
18104# Whether dlopen of programs is supported.
18105dlopen_self=$enable_dlopen_self
18106
18107# Whether dlopen of statically linked programs is supported.
18108dlopen_self_static=$enable_dlopen_self_static
18109
18110# Commands to strip libraries.
18111old_striplib=$lt_old_striplib
18112striplib=$lt_striplib
18113
18114
18115# The linker used to build libraries.
18116LD=$lt_LD
18117
3725885a
RW
18118# How to create reloadable object files.
18119reload_flag=$lt_reload_flag
18120reload_cmds=$lt_reload_cmds
18121
d7040cdb
SE
18122# Commands used to build an old-style archive.
18123old_archive_cmds=$lt_old_archive_cmds
18124
18125# A language specific compiler.
18126CC=$lt_compiler
18127
18128# Is the compiler the GNU compiler?
18129with_gcc=$GCC
18130
18131# Compiler flag to turn off builtin functions.
18132no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18133
18134# How to pass a linker flag through the compiler.
18135wl=$lt_lt_prog_compiler_wl
18136
18137# Additional compiler flags for building library objects.
18138pic_flag=$lt_lt_prog_compiler_pic
18139
18140# Compiler flag to prevent dynamic linking.
18141link_static_flag=$lt_lt_prog_compiler_static
18142
18143# Does compiler simultaneously support -c and -o options?
18144compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18145
18146# Whether or not to add -lc for building shared libraries.
18147build_libtool_need_lc=$archive_cmds_need_lc
18148
18149# Whether or not to disallow shared libs when runtime libs are static.
18150allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18151
18152# Compiler flag to allow reflexive dlopens.
18153export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18154
18155# Compiler flag to generate shared objects directly from archives.
18156whole_archive_flag_spec=$lt_whole_archive_flag_spec
18157
18158# Whether the compiler copes with passing no objects directly.
18159compiler_needs_object=$lt_compiler_needs_object
18160
18161# Create an old-style archive from a shared archive.
18162old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18163
18164# Create a temporary old-style archive to link instead of a shared archive.
18165old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18166
18167# Commands used to build a shared archive.
18168archive_cmds=$lt_archive_cmds
18169archive_expsym_cmds=$lt_archive_expsym_cmds
18170
18171# Commands used to build a loadable module if different from building
18172# a shared archive.
18173module_cmds=$lt_module_cmds
18174module_expsym_cmds=$lt_module_expsym_cmds
18175
18176# Whether we are building with GNU ld or not.
18177with_gnu_ld=$lt_with_gnu_ld
18178
18179# Flag that allows shared libraries with undefined symbols to be built.
18180allow_undefined_flag=$lt_allow_undefined_flag
18181
18182# Flag that enforces no undefined symbols.
18183no_undefined_flag=$lt_no_undefined_flag
18184
18185# Flag to hardcode \$libdir into a binary during linking.
18186# This must work even if \$libdir does not exist
18187hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18188
18189# If ld is used when linking, flag to hardcode \$libdir into a binary
18190# during linking. This must work even if \$libdir does not exist.
18191hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18192
18193# Whether we need a single "-rpath" flag with a separated argument.
18194hardcode_libdir_separator=$lt_hardcode_libdir_separator
18195
18196# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18197# DIR into the resulting binary.
18198hardcode_direct=$hardcode_direct
18199
18200# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18201# DIR into the resulting binary and the resulting library dependency is
18202# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18203# library is relocated.
18204hardcode_direct_absolute=$hardcode_direct_absolute
18205
18206# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18207# into the resulting binary.
18208hardcode_minus_L=$hardcode_minus_L
18209
18210# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18211# into the resulting binary.
18212hardcode_shlibpath_var=$hardcode_shlibpath_var
18213
18214# Set to "yes" if building a shared library automatically hardcodes DIR
18215# into the library and all subsequent libraries and executables linked
18216# against it.
18217hardcode_automatic=$hardcode_automatic
18218
18219# Set to yes if linker adds runtime paths of dependent libraries
18220# to runtime path list.
18221inherit_rpath=$inherit_rpath
18222
18223# Whether libtool must link a program against all its dependency libraries.
18224link_all_deplibs=$link_all_deplibs
18225
18226# Fix the shell variable \$srcfile for the compiler.
18227fix_srcfile_path=$lt_fix_srcfile_path
18228
18229# Set to "yes" if exported symbols are required.
18230always_export_symbols=$always_export_symbols
18231
18232# The commands to list exported symbols.
18233export_symbols_cmds=$lt_export_symbols_cmds
18234
18235# Symbols that should not be listed in the preloaded symbols.
18236exclude_expsyms=$lt_exclude_expsyms
18237
18238# Symbols that must always be exported.
18239include_expsyms=$lt_include_expsyms
18240
18241# Commands necessary for linking programs (against libraries) with templates.
18242prelink_cmds=$lt_prelink_cmds
18243
18244# Specify filename containing input files.
18245file_list_spec=$lt_file_list_spec
18246
18247# How to hardcode a shared library path into an executable.
18248hardcode_action=$hardcode_action
18249
18250# ### END LIBTOOL CONFIG
18251
18252_LT_EOF
18253
18254 case $host_os in
18255 aix3*)
18256 cat <<\_LT_EOF >> "$cfgfile"
18257# AIX sometimes has problems with the GCC collect2 program. For some
18258# reason, if we set the COLLECT_NAMES environment variable, the problems
18259# vanish in a puff of smoke.
18260if test "X${COLLECT_NAMES+set}" != Xset; then
18261 COLLECT_NAMES=
18262 export COLLECT_NAMES
18263fi
18264_LT_EOF
18265 ;;
18266 esac
18267
18268
18269ltmain="$ac_aux_dir/ltmain.sh"
18270
18271
18272 # We use sed instead of cat because bash on DJGPP gets confused if
18273 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18274 # text mode, it properly converts lines to CR/LF. This bash problem
18275 # is reportedly fixed, but why not run on old versions too?
18276 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18277 || (rm -f "$cfgfile"; exit 1)
18278
18279 case $xsi_shell in
18280 yes)
18281 cat << \_LT_EOF >> "$cfgfile"
718a6fd8 18282
d7040cdb
SE
18283# func_dirname file append nondir_replacement
18284# Compute the dirname of FILE. If nonempty, add APPEND to the result,
18285# otherwise set result to NONDIR_REPLACEMENT.
18286func_dirname ()
18287{
18288 case ${1} in
18289 */*) func_dirname_result="${1%/*}${2}" ;;
18290 * ) func_dirname_result="${3}" ;;
18291 esac
18292}
18293
18294# func_basename file
18295func_basename ()
18296{
18297 func_basename_result="${1##*/}"
18298}
18299
718a6fd8
SE
18300# func_dirname_and_basename file append nondir_replacement
18301# perform func_basename and func_dirname in a single function
18302# call:
18303# dirname: Compute the dirname of FILE. If nonempty,
18304# add APPEND to the result, otherwise set result
18305# to NONDIR_REPLACEMENT.
18306# value returned in "$func_dirname_result"
18307# basename: Compute filename of FILE.
18308# value retuned in "$func_basename_result"
18309# Implementation must be kept synchronized with func_dirname
18310# and func_basename. For efficiency, we do not delegate to
18311# those functions but instead duplicate the functionality here.
18312func_dirname_and_basename ()
18313{
18314 case ${1} in
18315 */*) func_dirname_result="${1%/*}${2}" ;;
18316 * ) func_dirname_result="${3}" ;;
18317 esac
18318 func_basename_result="${1##*/}"
18319}
18320
d7040cdb
SE
18321# func_stripname prefix suffix name
18322# strip PREFIX and SUFFIX off of NAME.
18323# PREFIX and SUFFIX must not contain globbing or regex special
18324# characters, hashes, percent signs, but SUFFIX may contain a leading
18325# dot (in which case that matches only a dot).
18326func_stripname ()
18327{
18328 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18329 # positional parameters, so assign one to ordinary parameter first.
18330 func_stripname_result=${3}
18331 func_stripname_result=${func_stripname_result#"${1}"}
18332 func_stripname_result=${func_stripname_result%"${2}"}
18333}
18334
18335# func_opt_split
18336func_opt_split ()
18337{
18338 func_opt_split_opt=${1%%=*}
18339 func_opt_split_arg=${1#*=}
18340}
18341
18342# func_lo2o object
18343func_lo2o ()
18344{
18345 case ${1} in
18346 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18347 *) func_lo2o_result=${1} ;;
18348 esac
18349}
718a6fd8
SE
18350
18351# func_xform libobj-or-source
18352func_xform ()
18353{
18354 func_xform_result=${1%.*}.lo
18355}
18356
18357# func_arith arithmetic-term...
18358func_arith ()
18359{
18360 func_arith_result=$(( $* ))
18361}
18362
18363# func_len string
18364# STRING may not start with a hyphen.
18365func_len ()
18366{
18367 func_len_result=${#1}
18368}
18369
d7040cdb
SE
18370_LT_EOF
18371 ;;
18372 *) # Bourne compatible functions.
18373 cat << \_LT_EOF >> "$cfgfile"
718a6fd8 18374
d7040cdb
SE
18375# func_dirname file append nondir_replacement
18376# Compute the dirname of FILE. If nonempty, add APPEND to the result,
18377# otherwise set result to NONDIR_REPLACEMENT.
18378func_dirname ()
18379{
18380 # Extract subdirectory from the argument.
3725885a 18381 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
d7040cdb
SE
18382 if test "X$func_dirname_result" = "X${1}"; then
18383 func_dirname_result="${3}"
18384 else
18385 func_dirname_result="$func_dirname_result${2}"
18386 fi
18387}
18388
18389# func_basename file
18390func_basename ()
18391{
3725885a 18392 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
d7040cdb
SE
18393}
18394
718a6fd8 18395
d7040cdb
SE
18396# func_stripname prefix suffix name
18397# strip PREFIX and SUFFIX off of NAME.
18398# PREFIX and SUFFIX must not contain globbing or regex special
18399# characters, hashes, percent signs, but SUFFIX may contain a leading
18400# dot (in which case that matches only a dot).
18401# func_strip_suffix prefix name
18402func_stripname ()
18403{
18404 case ${2} in
3725885a
RW
18405 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
18406 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
d7040cdb
SE
18407 esac
18408}
18409
18410# sed scripts:
18411my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18412my_sed_long_arg='1s/^-[^=]*=//'
18413
18414# func_opt_split
18415func_opt_split ()
18416{
3725885a
RW
18417 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
18418 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
d7040cdb
SE
18419}
18420
18421# func_lo2o object
18422func_lo2o ()
18423{
3725885a 18424 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
d7040cdb 18425}
718a6fd8
SE
18426
18427# func_xform libobj-or-source
18428func_xform ()
18429{
3725885a 18430 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
718a6fd8
SE
18431}
18432
18433# func_arith arithmetic-term...
18434func_arith ()
18435{
18436 func_arith_result=`expr "$@"`
18437}
18438
18439# func_len string
18440# STRING may not start with a hyphen.
18441func_len ()
18442{
18443 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18444}
18445
d7040cdb
SE
18446_LT_EOF
18447esac
18448
18449case $lt_shell_append in
18450 yes)
18451 cat << \_LT_EOF >> "$cfgfile"
18452
18453# func_append var value
18454# Append VALUE to the end of shell variable VAR.
18455func_append ()
18456{
18457 eval "$1+=\$2"
18458}
18459_LT_EOF
18460 ;;
18461 *)
18462 cat << \_LT_EOF >> "$cfgfile"
18463
18464# func_append var value
18465# Append VALUE to the end of shell variable VAR.
18466func_append ()
18467{
18468 eval "$1=\$$1\$2"
18469}
718a6fd8 18470
d7040cdb
SE
18471_LT_EOF
18472 ;;
18473 esac
18474
18475
18476 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18477 || (rm -f "$cfgfile"; exit 1)
18478
18479 mv -f "$cfgfile" "$ofile" ||
18480 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18481 chmod +x "$ofile"
18482
f5385ebf 18483 ;;
81ecdfbb 18484 "default-1":C)
20e95c23
DJ
18485 for ac_file in $CONFIG_FILES; do
18486 # Support "outfile[:infile[:infile...]]"
18487 case "$ac_file" in
18488 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18489 esac
18490 # PO directories have a Makefile.in generated from Makefile.in.in.
18491 case "$ac_file" in */Makefile.in)
18492 # Adjust a relative srcdir.
18493 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
3cac54d2 18494 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
20e95c23
DJ
18495 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
18496 # In autoconf-2.13 it is called $ac_given_srcdir.
18497 # In autoconf-2.50 it is called $srcdir.
18498 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
18499 case "$ac_given_srcdir" in
18500 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
18501 /*) top_srcdir="$ac_given_srcdir" ;;
18502 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
18503 esac
18504 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
18505 rm -f "$ac_dir/POTFILES"
18506 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
18507 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
18508 POMAKEFILEDEPS="POTFILES.in"
18509 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
18510 # on $ac_dir but don't depend on user-specified configuration
18511 # parameters.
18512 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
18513 # The LINGUAS file contains the set of available languages.
18514 if test -n "$OBSOLETE_ALL_LINGUAS"; then
37a42ee9 18515 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
18516 fi
18517 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
18518 # Hide the ALL_LINGUAS assigment from automake.
18519 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
18520 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
18521 else
37a42ee9 18522 # The set of available languages was given in configure.ac.
20e95c23
DJ
18523 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
18524 fi
18525 case "$ac_given_srcdir" in
18526 .) srcdirpre= ;;
18527 *) srcdirpre='$(srcdir)/' ;;
18528 esac
18529 POFILES=
18530 GMOFILES=
18531 UPDATEPOFILES=
18532 DUMMYPOFILES=
18533 for lang in $ALL_LINGUAS; do
18534 POFILES="$POFILES $srcdirpre$lang.po"
18535 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
18536 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
18537 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
18538 done
18539 # CATALOGS depends on both $ac_dir and the user's LINGUAS
18540 # environment variable.
18541 INST_LINGUAS=
18542 if test -n "$ALL_LINGUAS"; then
18543 for presentlang in $ALL_LINGUAS; do
18544 useit=no
18545 if test "%UNSET%" != "$LINGUAS"; then
18546 desiredlanguages="$LINGUAS"
18547 else
18548 desiredlanguages="$ALL_LINGUAS"
18549 fi
18550 for desiredlang in $desiredlanguages; do
18551 # Use the presentlang catalog if desiredlang is
18552 # a. equal to presentlang, or
18553 # b. a variant of presentlang (because in this case,
18554 # presentlang can be used as a fallback for messages
18555 # which are not translated in the desiredlang catalog).
18556 case "$desiredlang" in
18557 "$presentlang"*) useit=yes;;
18558 esac
18559 done
18560 if test $useit = yes; then
18561 INST_LINGUAS="$INST_LINGUAS $presentlang"
18562 fi
18563 done
18564 fi
18565 CATALOGS=
18566 if test -n "$INST_LINGUAS"; then
18567 for lang in $INST_LINGUAS; do
18568 CATALOGS="$CATALOGS $lang.gmo"
18569 done
18570 fi
18571 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
18572 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"
18573 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
18574 if test -f "$f"; then
18575 case "$f" in
18576 *.orig | *.bak | *~) ;;
18577 *) cat "$f" >> "$ac_dir/Makefile" ;;
18578 esac
18579 fi
18580 done
18581 fi
18582 ;;
18583 esac
18584 done ;;
81ecdfbb 18585 "bfd_stdint.h":C)
f3b4f6d0
PB
18586if test "$GCC" = yes; then
18587 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
18588else
18589 echo "/* generated for $CC */" > tmp-stdint.h
18590fi
d5efd9fc 18591
f3b4f6d0
PB
18592sed 's/^ *//' >> tmp-stdint.h <<EOF
18593
18594 #ifndef GCC_GENERATED_STDINT_H
18595 #define GCC_GENERATED_STDINT_H 1
18596
18597 #include <sys/types.h>
18598EOF
18599
18600if test "$acx_cv_header_stdint" != stdint.h; then
18601 echo "#include <stddef.h>" >> tmp-stdint.h
18602fi
18603if test "$acx_cv_header_stdint" != stddef.h; then
18604 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
18605fi
18606
18607sed 's/^ *//' >> tmp-stdint.h <<EOF
18608 /* glibc uses these symbols as guards to prevent redefinitions. */
18609 #ifdef __int8_t_defined
18610 #define _INT8_T
18611 #define _INT16_T
18612 #define _INT32_T
18613 #endif
18614 #ifdef __uint32_t_defined
18615 #define _UINT32_T
18616 #endif
18617
18618EOF
18619
18620# ----------------- done header, emit basic int types -------------
18621if test "$acx_cv_header_stdint" = stddef.h; then
18622 sed 's/^ *//' >> tmp-stdint.h <<EOF
18623
18624 #ifndef _UINT8_T
18625 #define _UINT8_T
18626 #ifndef __uint8_t_defined
18627 #define __uint8_t_defined
a009f2e7 18628 #ifndef uint8_t
f3b4f6d0
PB
18629 typedef unsigned $acx_cv_type_int8_t uint8_t;
18630 #endif
18631 #endif
a009f2e7 18632 #endif
f3b4f6d0
PB
18633
18634 #ifndef _UINT16_T
18635 #define _UINT16_T
18636 #ifndef __uint16_t_defined
18637 #define __uint16_t_defined
a009f2e7 18638 #ifndef uint16_t
f3b4f6d0
PB
18639 typedef unsigned $acx_cv_type_int16_t uint16_t;
18640 #endif
18641 #endif
a009f2e7 18642 #endif
f3b4f6d0
PB
18643
18644 #ifndef _UINT32_T
18645 #define _UINT32_T
18646 #ifndef __uint32_t_defined
18647 #define __uint32_t_defined
a009f2e7 18648 #ifndef uint32_t
f3b4f6d0
PB
18649 typedef unsigned $acx_cv_type_int32_t uint32_t;
18650 #endif
18651 #endif
a009f2e7 18652 #endif
f3b4f6d0
PB
18653
18654 #ifndef _INT8_T
18655 #define _INT8_T
18656 #ifndef __int8_t_defined
18657 #define __int8_t_defined
a009f2e7 18658 #ifndef int8_t
f3b4f6d0
PB
18659 typedef $acx_cv_type_int8_t int8_t;
18660 #endif
18661 #endif
a009f2e7 18662 #endif
f3b4f6d0
PB
18663
18664 #ifndef _INT16_T
18665 #define _INT16_T
18666 #ifndef __int16_t_defined
18667 #define __int16_t_defined
a009f2e7 18668 #ifndef int16_t
f3b4f6d0
PB
18669 typedef $acx_cv_type_int16_t int16_t;
18670 #endif
18671 #endif
a009f2e7 18672 #endif
f3b4f6d0
PB
18673
18674 #ifndef _INT32_T
18675 #define _INT32_T
18676 #ifndef __int32_t_defined
18677 #define __int32_t_defined
a009f2e7 18678 #ifndef int32_t
f3b4f6d0
PB
18679 typedef $acx_cv_type_int32_t int32_t;
18680 #endif
18681 #endif
a009f2e7 18682 #endif
f3b4f6d0
PB
18683EOF
18684elif test "$ac_cv_type_u_int32_t" = yes; then
18685 sed 's/^ *//' >> tmp-stdint.h <<EOF
18686
18687 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
18688 #ifndef _INT8_T
18689 #define _INT8_T
18690 #endif
18691 #ifndef _INT16_T
18692 #define _INT16_T
18693 #endif
18694 #ifndef _INT32_T
18695 #define _INT32_T
18696 #endif
18697
18698 #ifndef _UINT8_T
18699 #define _UINT8_T
18700 #ifndef __uint8_t_defined
18701 #define __uint8_t_defined
a009f2e7 18702 #ifndef uint8_t
f3b4f6d0
PB
18703 typedef u_int8_t uint8_t;
18704 #endif
18705 #endif
a009f2e7 18706 #endif
f3b4f6d0
PB
18707
18708 #ifndef _UINT16_T
18709 #define _UINT16_T
18710 #ifndef __uint16_t_defined
18711 #define __uint16_t_defined
a009f2e7 18712 #ifndef uint16_t
f3b4f6d0
PB
18713 typedef u_int16_t uint16_t;
18714 #endif
18715 #endif
a009f2e7 18716 #endif
f3b4f6d0
PB
18717
18718 #ifndef _UINT32_T
18719 #define _UINT32_T
18720 #ifndef __uint32_t_defined
18721 #define __uint32_t_defined
a009f2e7 18722 #ifndef uint32_t
f3b4f6d0
PB
18723 typedef u_int32_t uint32_t;
18724 #endif
18725 #endif
a009f2e7 18726 #endif
d5efd9fc 18727EOF
f3b4f6d0
PB
18728else
18729 sed 's/^ *//' >> tmp-stdint.h <<EOF
18730
18731 /* Some systems have guard macros to prevent redefinitions, define them. */
18732 #ifndef _INT8_T
18733 #define _INT8_T
18734 #endif
18735 #ifndef _INT16_T
18736 #define _INT16_T
18737 #endif
18738 #ifndef _INT32_T
18739 #define _INT32_T
18740 #endif
18741 #ifndef _UINT8_T
18742 #define _UINT8_T
18743 #endif
18744 #ifndef _UINT16_T
18745 #define _UINT16_T
18746 #endif
18747 #ifndef _UINT32_T
18748 #define _UINT32_T
18749 #endif
18750EOF
18751fi
18752
18753# ------------- done basic int types, emit int64_t types ------------
18754if test "$ac_cv_type_uint64_t" = yes; then
18755 sed 's/^ *//' >> tmp-stdint.h <<EOF
d5efd9fc 18756
f3b4f6d0
PB
18757 /* system headers have good uint64_t and int64_t */
18758 #ifndef _INT64_T
18759 #define _INT64_T
18760 #endif
18761 #ifndef _UINT64_T
18762 #define _UINT64_T
18763 #endif
18764EOF
18765elif test "$ac_cv_type_u_int64_t" = yes; then
18766 sed 's/^ *//' >> tmp-stdint.h <<EOF
18767
18768 /* system headers have an u_int64_t (and int64_t) */
18769 #ifndef _INT64_T
18770 #define _INT64_T
18771 #endif
18772 #ifndef _UINT64_T
18773 #define _UINT64_T
18774 #ifndef __uint64_t_defined
18775 #define __uint64_t_defined
a009f2e7 18776 #ifndef uint64_t
f3b4f6d0
PB
18777 typedef u_int64_t uint64_t;
18778 #endif
18779 #endif
a009f2e7 18780 #endif
f3b4f6d0
PB
18781EOF
18782elif test -n "$acx_cv_type_int64_t"; then
18783 sed 's/^ *//' >> tmp-stdint.h <<EOF
18784
18785 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
18786 #ifndef _INT64_T
18787 #define _INT64_T
a009f2e7 18788 #ifndef int64_t
f3b4f6d0
PB
18789 typedef $acx_cv_type_int64_t int64_t;
18790 #endif
a009f2e7 18791 #endif
f3b4f6d0
PB
18792 #ifndef _UINT64_T
18793 #define _UINT64_T
18794 #ifndef __uint64_t_defined
18795 #define __uint64_t_defined
a009f2e7 18796 #ifndef uint64_t
f3b4f6d0
PB
18797 typedef unsigned $acx_cv_type_int64_t uint64_t;
18798 #endif
18799 #endif
a009f2e7 18800 #endif
f3b4f6d0
PB
18801EOF
18802else
18803 sed 's/^ *//' >> tmp-stdint.h <<EOF
18804
18805 /* some common heuristics for int64_t, using compiler-specific tests */
18806 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
18807 #ifndef _INT64_T
18808 #define _INT64_T
18809 #ifndef __int64_t_defined
a009f2e7 18810 #ifndef int64_t
f3b4f6d0
PB
18811 typedef long long int64_t;
18812 #endif
18813 #endif
a009f2e7 18814 #endif
f3b4f6d0
PB
18815 #ifndef _UINT64_T
18816 #define _UINT64_T
a009f2e7 18817 #ifndef uint64_t
f3b4f6d0
PB
18818 typedef unsigned long long uint64_t;
18819 #endif
a009f2e7 18820 #endif
f3b4f6d0
PB
18821
18822 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
18823 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
18824 does not implement __extension__. But that compiler doesn't define
18825 __GNUC_MINOR__. */
18826 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
18827 # define __extension__
18828 # endif
18829
18830 # ifndef _INT64_T
18831 # define _INT64_T
a009f2e7 18832 # ifndef int64_t
f3b4f6d0
PB
18833 __extension__ typedef long long int64_t;
18834 # endif
a009f2e7 18835 # endif
f3b4f6d0
PB
18836 # ifndef _UINT64_T
18837 # define _UINT64_T
a009f2e7 18838 # ifndef uint64_t
f3b4f6d0
PB
18839 __extension__ typedef unsigned long long uint64_t;
18840 # endif
a009f2e7 18841 # endif
f3b4f6d0
PB
18842
18843 #elif !defined __STRICT_ANSI__
18844 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
18845
18846 # ifndef _INT64_T
18847 # define _INT64_T
a009f2e7 18848 # ifndef int64_t
f3b4f6d0
PB
18849 typedef __int64 int64_t;
18850 # endif
a009f2e7 18851 # endif
f3b4f6d0
PB
18852 # ifndef _UINT64_T
18853 # define _UINT64_T
a009f2e7 18854 # ifndef uint64_t
f3b4f6d0
PB
18855 typedef unsigned __int64 uint64_t;
18856 # endif
a009f2e7 18857 # endif
f3b4f6d0
PB
18858 # endif /* compiler */
18859
18860 #endif /* ANSI version */
18861EOF
18862fi
18863
18864# ------------- done int64_t types, emit intptr types ------------
18865if test "$ac_cv_type_uintptr_t" != yes; then
18866 sed 's/^ *//' >> tmp-stdint.h <<EOF
18867
18868 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
18869 #ifndef __uintptr_t_defined
a009f2e7 18870 #ifndef uintptr_t
f3b4f6d0
PB
18871 typedef u$acx_cv_type_intptr_t uintptr_t;
18872 #endif
a009f2e7 18873 #endif
f3b4f6d0 18874 #ifndef __intptr_t_defined
a009f2e7 18875 #ifndef intptr_t
f3b4f6d0
PB
18876 typedef $acx_cv_type_intptr_t intptr_t;
18877 #endif
a009f2e7 18878 #endif
f3b4f6d0
PB
18879EOF
18880fi
18881
18882# ------------- done intptr types, emit int_least types ------------
d5efd9fc 18883if test "$ac_cv_type_int_least32_t" != yes; then
f3b4f6d0 18884 sed 's/^ *//' >> tmp-stdint.h <<EOF
d5efd9fc
AM
18885
18886 /* Define int_least types */
18887 typedef int8_t int_least8_t;
18888 typedef int16_t int_least16_t;
18889 typedef int32_t int_least32_t;
f3b4f6d0 18890 #ifdef _INT64_T
d5efd9fc 18891 typedef int64_t int_least64_t;
f3b4f6d0 18892 #endif
d5efd9fc
AM
18893
18894 typedef uint8_t uint_least8_t;
18895 typedef uint16_t uint_least16_t;
18896 typedef uint32_t uint_least32_t;
f3b4f6d0 18897 #ifdef _UINT64_T
d5efd9fc 18898 typedef uint64_t uint_least64_t;
f3b4f6d0 18899 #endif
d5efd9fc
AM
18900EOF
18901fi
18902
f3b4f6d0 18903# ------------- done intptr types, emit int_fast types ------------
d5efd9fc 18904if test "$ac_cv_type_int_fast32_t" != yes; then
f3b4f6d0 18905 sed 's/^ *//' >> tmp-stdint.h <<EOF
d5efd9fc
AM
18906
18907 /* Define int_fast types. short is often slow */
18908 typedef int8_t int_fast8_t;
18909 typedef int int_fast16_t;
18910 typedef int32_t int_fast32_t;
f3b4f6d0 18911 #ifdef _INT64_T
d5efd9fc 18912 typedef int64_t int_fast64_t;
f3b4f6d0 18913 #endif
d5efd9fc
AM
18914
18915 typedef uint8_t uint_fast8_t;
18916 typedef unsigned int uint_fast16_t;
18917 typedef uint32_t uint_fast32_t;
f3b4f6d0 18918 #ifdef _UINT64_T
d5efd9fc 18919 typedef uint64_t uint_fast64_t;
f3b4f6d0
PB
18920 #endif
18921EOF
18922fi
18923
18924if test "$ac_cv_type_uintmax_t" != yes; then
18925 sed 's/^ *//' >> tmp-stdint.h <<EOF
18926
18927 /* Define intmax based on what we found */
a009f2e7 18928 #ifndef intmax_t
f3b4f6d0
PB
18929 #ifdef _INT64_T
18930 typedef int64_t intmax_t;
18931 #else
18932 typedef long intmax_t;
18933 #endif
a009f2e7
RW
18934 #endif
18935 #ifndef uintmax_t
f3b4f6d0
PB
18936 #ifdef _UINT64_T
18937 typedef uint64_t uintmax_t;
18938 #else
18939 typedef unsigned long uintmax_t;
18940 #endif
a009f2e7 18941 #endif
d5efd9fc
AM
18942EOF
18943fi
18944
f3b4f6d0
PB
18945sed 's/^ *//' >> tmp-stdint.h <<EOF
18946
18947 #endif /* GCC_GENERATED_STDINT_H */
18948EOF
d5efd9fc 18949
f3b4f6d0
PB
18950if test -r bfd_stdint.h && cmp -s tmp-stdint.h bfd_stdint.h; then
18951 rm -f tmp-stdint.h
d5efd9fc 18952else
f3b4f6d0 18953 mv -f tmp-stdint.h bfd_stdint.h
d5efd9fc
AM
18954fi
18955
18956 ;;
81ecdfbb 18957 "default":C)
20e95c23
DJ
18958case "$srcdir" in
18959 .) srcdirpre= ;;
18960 *) srcdirpre='$(srcdir)/' ;;
18961esac
18962POFILES=
18963GMOFILES=
18964for lang in dummy $OBSOLETE_ALL_LINGUAS; do
18965 if test $lang != dummy; then
18966 POFILES="$POFILES $srcdirpre$lang.po"
18967 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
18968 fi
18969done
18970sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' \
18971 -e '/BLD-POTFILES =/r po/BLD-POTFILES' \
18972 -e "s,@POFILES@,$POFILES," \
18973 -e "s,@GMOFILES@,$GMOFILES," \
18974 po/Makefile.in > po/Makefile ;;
81ecdfbb 18975
5464f5a1 18976 esac
81ecdfbb 18977done # for ac_tag
5464f5a1 18978
5464f5a1 18979
81ecdfbb 18980as_fn_exit 0
5464f5a1 18981_ACEOF
5464f5a1
NN
18982ac_clean_files=$ac_clean_files_save
18983
81ecdfbb
RW
18984test $ac_write_fail = 0 ||
18985 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
18986
5464f5a1
NN
18987
18988# configure is writing to config.log, and then calls config.status.
18989# config.status does its own redirection, appending to config.log.
18990# Unfortunately, on DOS this fails, as config.log is still kept open
18991# by configure, so config.status won't be able to write to it; its
18992# output is simply discarded. So we exec the FD to /dev/null,
18993# effectively closing config.log, so it can be properly (re)opened and
18994# appended to by config.status. When coming back to configure, we
18995# need to make the FD available again.
18996if test "$no_create" != yes; then
18997 ac_cs_success=:
18998 ac_config_status_args=
18999 test "$silent" = yes &&
19000 ac_config_status_args="$ac_config_status_args --quiet"
19001 exec 5>/dev/null
19002 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19003 exec 5>>config.log
19004 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19005 # would make configure fail if this is the last instruction.
81ecdfbb
RW
19006 $ac_cs_success || as_fn_exit $?
19007fi
19008if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19010$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
5464f5a1 19011fi
252b5132 19012
This page took 2.806026 seconds and 4 git commands to generate.