Do not create $(bfdlibdir) and $(bfdincludedir) if !INSTALL_LIBBFD.
[deliverable/binutils-gdb.git] / bfd / configure
CommitLineData
252b5132 1#! /bin/sh
252b5132 2# Guess values for system-dependent variables and create Makefiles.
81ecdfbb
RW
3# Generated by GNU Autoconf 2.64.
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
172test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev/null; then :
174 as_have_required=yes
175else
176 as_have_required=no
177fi
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179
180else
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182as_found=false
183for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
5464f5a1 184do
81ecdfbb
RW
185 IFS=$as_save_IFS
186 test -z "$as_dir" && as_dir=.
187 as_found=:
188 case $as_dir in #(
189 /*)
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 break 2
198fi
199fi
200 done;;
201 esac
202 as_found=false
203done
204$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
207fi; }
208IFS=$as_save_IFS
209
210
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
215 BASH_ENV=/dev/null
216 ENV=/dev/null
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218 export CONFIG_SHELL
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
220fi
221
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
5464f5a1 228 else
81ecdfbb
RW
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230$0: including any error possibly output before this
231$0: message. Then install a modern shell, or manually run
232$0: the script under such a shell if you do have one."
5464f5a1 233 fi
81ecdfbb
RW
234 exit 1
235fi
236fi
237fi
238SHELL=${CONFIG_SHELL-/bin/sh}
239export SHELL
240# Unset more variables known to interfere with behavior of common tools.
241CLICOLOR_FORCE= GREP_OPTIONS=
242unset CLICOLOR_FORCE GREP_OPTIONS
243
244## --------------------- ##
245## M4sh Shell Functions. ##
246## --------------------- ##
247# as_fn_unset VAR
248# ---------------
249# Portably unset VAR.
250as_fn_unset ()
251{
252 { eval $1=; unset $1;}
253}
254as_unset=as_fn_unset
255
256# as_fn_set_status STATUS
257# -----------------------
258# Set $? to STATUS, without forking.
259as_fn_set_status ()
260{
261 return $1
262} # as_fn_set_status
263
264# as_fn_exit STATUS
265# -----------------
266# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267as_fn_exit ()
268{
269 set +e
270 as_fn_set_status $1
271 exit $1
272} # as_fn_exit
273
274# as_fn_mkdir_p
275# -------------
276# Create "$as_dir" as a directory, including parents if necessary.
277as_fn_mkdir_p ()
278{
279
280 case $as_dir in #(
281 -*) as_dir=./$as_dir;;
282 esac
283 test -d "$as_dir" || eval $as_mkdir_p || {
284 as_dirs=
285 while :; do
286 case $as_dir in #(
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288 *) as_qdir=$as_dir;;
289 esac
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296$as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298 s//\1/
299 q
300 }
301 /^X\(\/\/\)[^/].*/{
302 s//\1/
303 q
304 }
305 /^X\(\/\/\)$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\).*/{
310 s//\1/
311 q
312 }
313 s/.*/./; q'`
314 test -d "$as_dir" && break
315 done
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
318
319
320} # as_fn_mkdir_p
321# as_fn_append VAR VALUE
322# ----------------------
323# Append the text in VALUE to the end of the definition contained in VAR. Take
324# advantage of any shell optimizations that allow amortized linear growth over
325# repeated appends, instead of the typical quadratic growth present in naive
326# implementations.
327if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
329 {
330 eval $1+=\$2
331 }'
332else
333 as_fn_append ()
334 {
335 eval $1=\$$1\$2
336 }
337fi # as_fn_append
338
339# as_fn_arith ARG...
340# ------------------
341# Perform arithmetic evaluation on the ARGs, and store the result in the
342# global $as_val. Take advantage of shells that can avoid forks. The arguments
343# must be portable across $(()) and expr.
344if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345 eval 'as_fn_arith ()
346 {
347 as_val=$(( $* ))
348 }'
349else
350 as_fn_arith ()
351 {
352 as_val=`expr "$@" || test $? -eq 1`
353 }
354fi # as_fn_arith
355
5464f5a1 356
81ecdfbb
RW
357# as_fn_error ERROR [LINENO LOG_FD]
358# ---------------------------------
359# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361# script with status $?, using 1 if that was 0.
362as_fn_error ()
363{
364 as_status=$?; test $as_status -eq 0 && as_status=1
365 if test "$3"; then
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
368 fi
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
371} # as_fn_error
372
373if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
5464f5a1
NN
375 as_expr=expr
376else
377 as_expr=false
378fi
379
81ecdfbb 380if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5464f5a1
NN
381 as_basename=basename
382else
383 as_basename=false
384fi
385
81ecdfbb
RW
386if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387 as_dirname=dirname
388else
389 as_dirname=false
390fi
5464f5a1 391
81ecdfbb 392as_me=`$as_basename -- "$0" ||
5464f5a1
NN
393$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396$as_echo X/"$0" |
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
398 s//\1/
399 q
400 }
401 /^X\/\(\/\/\)$/{
402 s//\1/
403 q
404 }
405 /^X\/\(\/\).*/{
406 s//\1/
407 q
408 }
409 s/.*/./; q'`
5464f5a1 410
5464f5a1
NN
411# Avoid depending upon Character Ranges.
412as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415as_cr_digits='0123456789'
416as_cr_alnum=$as_cr_Letters$as_cr_digits
417
5464f5a1 418
81ecdfbb
RW
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
424 sed -n '
425 p
426 /[$]LINENO/=
427 ' <$as_myself |
5464f5a1 428 sed '
81ecdfbb
RW
429 s/[$]LINENO.*/&-/
430 t lineno
431 b
432 :lineno
5464f5a1 433 N
81ecdfbb
RW
434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
5464f5a1 436 t loop
81ecdfbb 437 s/-\n.*//
5464f5a1 438 ' >$as_me.lineno &&
81ecdfbb
RW
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
5464f5a1
NN
441
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
81ecdfbb
RW
444 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno"
5464f5a1
NN
446 # Exit status is that of the last command.
447 exit
448}
449
81ecdfbb
RW
450ECHO_C= ECHO_N= ECHO_T=
451case `echo -n x` in #(((((
452-n*)
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
455 xy) ECHO_C='\c';;
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
457 ECHO_T=' ';;
458 esac;;
459*)
460 ECHO_N='-n';;
5464f5a1
NN
461esac
462
81ecdfbb
RW
463rm -f conf$$ conf$$.exe conf$$.file
464if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
5464f5a1 466else
81ecdfbb
RW
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
5464f5a1 469fi
81ecdfbb
RW
470if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
5464f5a1 472 as_ln_s='ln -s'
81ecdfbb
RW
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478 as_ln_s='cp -p'
479 elif ln conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s=ln
481 else
482 as_ln_s='cp -p'
5464f5a1 483 fi
5464f5a1
NN
484else
485 as_ln_s='cp -p'
486fi
81ecdfbb
RW
487rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488rmdir conf$$.dir 2>/dev/null
5464f5a1
NN
489
490if mkdir -p . 2>/dev/null; then
81ecdfbb 491 as_mkdir_p='mkdir -p "$as_dir"'
5464f5a1
NN
492else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
495fi
496
81ecdfbb
RW
497if test -x / >/dev/null 2>&1; then
498 as_test_x='test -x'
499else
500 if ls -dL / >/dev/null 2>&1; then
501 as_ls_L_option=L
502 else
503 as_ls_L_option=
504 fi
505 as_test_x='
506 eval sh -c '\''
507 if test -d "$1"; then
508 test -d "$1/.";
509 else
510 case $1 in #(
511 -*)set "./$1";;
512 esac;
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
515 '\'' sh
516 '
517fi
518as_executable_p=$as_test_x
5464f5a1
NN
519
520# Sed expression to map a string onto a valid CPP name.
521as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
522
523# Sed expression to map a string onto a valid variable name.
524as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
525
526
d7040cdb
SE
527
528# Check that we are running under the correct shell.
529SHELL=${CONFIG_SHELL-/bin/sh}
530
531case X$lt_ECHO in
532X*--fallback-echo)
533 # Remove one level of quotation (which was required for Make).
534 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
535 ;;
536esac
537
538ECHO=${lt_ECHO-echo}
539if test "X$1" = X--no-reexec; then
540 # Discard the --no-reexec flag, and continue.
541 shift
542elif test "X$1" = X--fallback-echo; then
543 # Avoid inline document here, it may be left over
544 :
545elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
546 # Yippee, $ECHO works!
547 :
548else
549 # Restart under the correct shell.
550 exec $SHELL "$0" --no-reexec ${1+"$@"}
551fi
552
553if test "X$1" = X--fallback-echo; then
554 # used as fallback echo
555 shift
556 cat <<_LT_EOF
557$*
558_LT_EOF
559 exit 0
560fi
561
562# The HP-UX ksh and POSIX shell print the target directory to stdout
563# if CDPATH is set.
564(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
565
566if test -z "$lt_ECHO"; then
567 if test "X${echo_test_string+set}" != Xset; then
568 # find a string as large as possible, as long as the shell can cope with it
569 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
570 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
571 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
572 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
573 then
574 break
575 fi
576 done
577 fi
578
579 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
580 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
581 test "X$echo_testing_string" = "X$echo_test_string"; then
582 :
583 else
584 # The Solaris, AIX, and Digital Unix default echo programs unquote
585 # backslashes. This makes it impossible to quote backslashes using
586 # echo "$something" | sed 's/\\/\\\\/g'
587 #
588 # So, first we look for a working echo in the user's PATH.
589
590 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
591 for dir in $PATH /usr/ucb; do
592 IFS="$lt_save_ifs"
593 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
594 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
595 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
596 test "X$echo_testing_string" = "X$echo_test_string"; then
597 ECHO="$dir/echo"
598 break
599 fi
600 done
601 IFS="$lt_save_ifs"
602
603 if test "X$ECHO" = Xecho; then
604 # We didn't find a better echo, so look for alternatives.
605 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
606 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
607 test "X$echo_testing_string" = "X$echo_test_string"; then
608 # This shell has a builtin print -r that does the trick.
609 ECHO='print -r'
610 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
611 test "X$CONFIG_SHELL" != X/bin/ksh; then
612 # If we have ksh, try running configure again with it.
613 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
614 export ORIGINAL_CONFIG_SHELL
615 CONFIG_SHELL=/bin/ksh
616 export CONFIG_SHELL
617 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
618 else
619 # Try using printf.
620 ECHO='printf %s\n'
621 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
622 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
623 test "X$echo_testing_string" = "X$echo_test_string"; then
624 # Cool, printf works
625 :
626 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
627 test "X$echo_testing_string" = 'X\t' &&
628 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
629 test "X$echo_testing_string" = "X$echo_test_string"; then
630 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
631 export CONFIG_SHELL
632 SHELL="$CONFIG_SHELL"
633 export SHELL
634 ECHO="$CONFIG_SHELL $0 --fallback-echo"
635 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
636 test "X$echo_testing_string" = 'X\t' &&
637 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
638 test "X$echo_testing_string" = "X$echo_test_string"; then
639 ECHO="$CONFIG_SHELL $0 --fallback-echo"
640 else
641 # maybe with a smaller string...
642 prev=:
643
644 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
645 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
646 then
647 break
648 fi
649 prev="$cmd"
650 done
651
652 if test "$prev" != 'sed 50q "$0"'; then
653 echo_test_string=`eval $prev`
654 export echo_test_string
655 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
656 else
657 # Oops. We lost completely, so just stick with echo.
658 ECHO=echo
659 fi
660 fi
661 fi
662 fi
663 fi
664fi
665
666# Copy echo and quote the copy suitably for passing to libtool from
667# the Makefile, instead of quoting the original, which is used later.
668lt_ECHO=$ECHO
669if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
670 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
671fi
672
673
674
675
81ecdfbb
RW
676exec 7<&0 </dev/null 6>&1
677
5464f5a1
NN
678# Name of the host.
679# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
680# so uname gets run too.
681ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
252b5132 682
5464f5a1
NN
683#
684# Initializations.
685#
252b5132 686ac_default_prefix=/usr/local
81ecdfbb 687ac_clean_files=
5464f5a1 688ac_config_libobj_dir=.
81ecdfbb 689LIBOBJS=
5464f5a1
NN
690cross_compiling=no
691subdirs=
692MFLAGS=
693MAKEFLAGS=
5464f5a1
NN
694
695# Identity of this package.
696PACKAGE_NAME=
697PACKAGE_TARNAME=
698PACKAGE_VERSION=
699PACKAGE_STRING=
700PACKAGE_BUGREPORT=
81ecdfbb 701PACKAGE_URL=
5464f5a1
NN
702
703ac_unique_file="libbfd.c"
704# Factoring default headers for most tests.
705ac_includes_default="\
706#include <stdio.h>
81ecdfbb 707#ifdef HAVE_SYS_TYPES_H
5464f5a1
NN
708# include <sys/types.h>
709#endif
81ecdfbb 710#ifdef HAVE_SYS_STAT_H
5464f5a1
NN
711# include <sys/stat.h>
712#endif
81ecdfbb 713#ifdef STDC_HEADERS
5464f5a1
NN
714# include <stdlib.h>
715# include <stddef.h>
716#else
81ecdfbb 717# ifdef HAVE_STDLIB_H
5464f5a1
NN
718# include <stdlib.h>
719# endif
720#endif
81ecdfbb
RW
721#ifdef HAVE_STRING_H
722# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
5464f5a1
NN
723# include <memory.h>
724# endif
725# include <string.h>
726#endif
81ecdfbb 727#ifdef HAVE_STRINGS_H
5464f5a1
NN
728# include <strings.h>
729#endif
81ecdfbb 730#ifdef HAVE_INTTYPES_H
5464f5a1 731# include <inttypes.h>
5464f5a1 732#endif
81ecdfbb
RW
733#ifdef HAVE_STDINT_H
734# include <stdint.h>
735#endif
736#ifdef HAVE_UNISTD_H
5464f5a1
NN
737# include <unistd.h>
738#endif"
739
81ecdfbb
RW
740ac_subst_vars='am__EXEEXT_FALSE
741am__EXEEXT_TRUE
742LTLIBOBJS
743LIBOBJS
744tdefaults
745bfd_ufile_ptr
746bfd_file_ptr
747supports_plugins
748bfd_default_target_size
749bfd_machines
750bfd_backends
751all_backends
752bfd64_libs
753wordsize
754TDEFINES
755SHARED_LIBADD
756SHARED_LDFLAGS
757LIBM
758COREFLAG
759COREFILE
760EXEEXT_FOR_BUILD
761CC_FOR_BUILD
762BFD_HOSTPTR_T
763BFD_HOST_U_64_BIT
764BFD_HOST_64_BIT
765BFD_HOST_64_BIT_DEFINED
766BFD_HOST_64BIT_LONG_LONG
767BFD_HOST_64BIT_LONG
768HDEFINES
769MSGMERGE
770MSGFMT
771MKINSTALLDIRS
772CATOBJEXT
773GENCAT
774INSTOBJEXT
775DATADIRNAME
776CATALOGS
777POSUB
778GMSGFMT
779XGETTEXT
780INCINTL
781LIBINTL_DEP
782LIBINTL
783USE_NLS
784bfdincludedir
785bfdlibdir
786target_noncanonical
787host_noncanonical
788INSTALL_LIBBFD_FALSE
789INSTALL_LIBBFD_TRUE
790GENINSRC_NEVER_FALSE
791GENINSRC_NEVER_TRUE
792MAINT
793MAINTAINER_MODE_FALSE
794MAINTAINER_MODE_TRUE
795NO_WERROR
796WARN_CFLAGS
797REPORT_BUGS_TEXI
798REPORT_BUGS_TO
799PKGVERSION
800DEBUGDIR
801PLUGINS_FALSE
802PLUGINS_TRUE
803OTOOL64
804OTOOL
805LIPO
806NMEDIT
807DSYMUTIL
808lt_ECHO
809OBJDUMP
810LN_S
811NM
812ac_ct_DUMPBIN
813DUMPBIN
814LD
815FGREP
816SED
817LIBTOOL
818EGREP
819GREP
820CPP
821RANLIB
822AR
823am__fastdepCC_FALSE
824am__fastdepCC_TRUE
825CCDEPMODE
826AMDEPBACKSLASH
827AMDEP_FALSE
828AMDEP_TRUE
829am__quote
830am__include
831DEPDIR
832am__untar
833am__tar
834AMTAR
835am__leading_dot
836SET_MAKE
837AWK
838mkdir_p
839MKDIR_P
840INSTALL_STRIP_PROGRAM
841STRIP
842install_sh
843MAKEINFO
844AUTOHEADER
845AUTOMAKE
846AUTOCONF
847ACLOCAL
848VERSION
849PACKAGE
850CYGPATH_W
851am__isrc
852INSTALL_DATA
853INSTALL_SCRIPT
854INSTALL_PROGRAM
855OBJEXT
856EXEEXT
857ac_ct_CC
858CPPFLAGS
859LDFLAGS
860CFLAGS
861CC
862target_os
863target_vendor
864target_cpu
865target
866host_os
867host_vendor
868host_cpu
869host
870build_os
871build_vendor
872build_cpu
873build
874target_alias
875host_alias
876build_alias
877LIBS
878ECHO_T
879ECHO_N
880ECHO_C
881DEFS
882mandir
883localedir
884libdir
885psdir
886pdfdir
887dvidir
888htmldir
889infodir
890docdir
891oldincludedir
892includedir
893localstatedir
894sharedstatedir
895sysconfdir
896datadir
897datarootdir
898libexecdir
899sbindir
900bindir
901program_transform_name
902prefix
903exec_prefix
904PACKAGE_URL
905PACKAGE_BUGREPORT
906PACKAGE_STRING
907PACKAGE_VERSION
908PACKAGE_TARNAME
909PACKAGE_NAME
910PATH_SEPARATOR
911SHELL'
5464f5a1 912ac_subst_files=''
81ecdfbb
RW
913ac_user_opts='
914enable_option_checking
915enable_dependency_tracking
916enable_shared
917enable_static
918with_pic
919enable_fast_install
920with_gnu_ld
921enable_libtool_lock
922enable_plugins
923enable_largefile
924enable_64_bit_bfd
925enable_targets
926with_mmap
927enable_secureplt
928with_separate_debug_dir
929enable_elf_stt_common
930with_pkgversion
931with_bugurl
932enable_werror
933enable_build_warnings
934enable_maintainer_mode
935enable_install_libbfd
936enable_nls
937'
938 ac_precious_vars='build_alias
939host_alias
940target_alias
941CC
942CFLAGS
943LDFLAGS
944LIBS
945CPPFLAGS
946CPP'
947
252b5132
RH
948
949# Initialize some variables set by options.
5464f5a1
NN
950ac_init_help=
951ac_init_version=false
81ecdfbb
RW
952ac_unrecognized_opts=
953ac_unrecognized_sep=
252b5132
RH
954# The variables have the same names as the options, with
955# dashes changed to underlines.
5464f5a1 956cache_file=/dev/null
252b5132 957exec_prefix=NONE
252b5132 958no_create=
252b5132
RH
959no_recursion=
960prefix=NONE
961program_prefix=NONE
962program_suffix=NONE
963program_transform_name=s,x,x,
964silent=
965site=
966srcdir=
252b5132
RH
967verbose=
968x_includes=NONE
969x_libraries=NONE
5464f5a1
NN
970
971# Installation directory options.
972# These are left unexpanded so users can "make install exec_prefix=/foo"
973# and all the variables that are supposed to be based on exec_prefix
974# by default will actually change.
975# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 976# (The list follows the same order as the GNU Coding Standards.)
252b5132
RH
977bindir='${exec_prefix}/bin'
978sbindir='${exec_prefix}/sbin'
979libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
980datarootdir='${prefix}/share'
981datadir='${datarootdir}'
252b5132
RH
982sysconfdir='${prefix}/etc'
983sharedstatedir='${prefix}/com'
984localstatedir='${prefix}/var'
252b5132
RH
985includedir='${prefix}/include'
986oldincludedir='/usr/include'
81ecdfbb
RW
987docdir='${datarootdir}/doc/${PACKAGE}'
988infodir='${datarootdir}/info'
989htmldir='${docdir}'
990dvidir='${docdir}'
991pdfdir='${docdir}'
992psdir='${docdir}'
993libdir='${exec_prefix}/lib'
994localedir='${datarootdir}/locale'
995mandir='${datarootdir}/man'
252b5132 996
252b5132 997ac_prev=
81ecdfbb 998ac_dashdash=
252b5132
RH
999for ac_option
1000do
252b5132
RH
1001 # If the previous option needs an argument, assign it.
1002 if test -n "$ac_prev"; then
81ecdfbb 1003 eval $ac_prev=\$ac_option
252b5132
RH
1004 ac_prev=
1005 continue
1006 fi
1007
81ecdfbb
RW
1008 case $ac_option in
1009 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1010 *) ac_optarg=yes ;;
1011 esac
252b5132
RH
1012
1013 # Accept the important Cygnus configure options, so we can diagnose typos.
1014
81ecdfbb
RW
1015 case $ac_dashdash$ac_option in
1016 --)
1017 ac_dashdash=yes ;;
252b5132
RH
1018
1019 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1020 ac_prev=bindir ;;
1021 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
5464f5a1 1022 bindir=$ac_optarg ;;
252b5132
RH
1023
1024 -build | --build | --buil | --bui | --bu)
5464f5a1 1025 ac_prev=build_alias ;;
252b5132 1026 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
5464f5a1 1027 build_alias=$ac_optarg ;;
252b5132
RH
1028
1029 -cache-file | --cache-file | --cache-fil | --cache-fi \
1030 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1031 ac_prev=cache_file ;;
1032 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1033 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
5464f5a1
NN
1034 cache_file=$ac_optarg ;;
1035
1036 --config-cache | -C)
1037 cache_file=config.cache ;;
252b5132 1038
81ecdfbb 1039 -datadir | --datadir | --datadi | --datad)
252b5132 1040 ac_prev=datadir ;;
81ecdfbb 1041 -datadir=* | --datadir=* | --datadi=* | --datad=*)
5464f5a1 1042 datadir=$ac_optarg ;;
252b5132 1043
81ecdfbb
RW
1044 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1045 | --dataroo | --dataro | --datar)
1046 ac_prev=datarootdir ;;
1047 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1048 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1049 datarootdir=$ac_optarg ;;
1050
252b5132 1051 -disable-* | --disable-*)
81ecdfbb 1052 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
252b5132 1053 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1054 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1055 as_fn_error "invalid feature name: $ac_useropt"
1056 ac_useropt_orig=$ac_useropt
1057 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1058 case $ac_user_opts in
1059 *"
1060"enable_$ac_useropt"
1061"*) ;;
1062 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1063 ac_unrecognized_sep=', ';;
1064 esac
1065 eval enable_$ac_useropt=no ;;
1066
1067 -docdir | --docdir | --docdi | --doc | --do)
1068 ac_prev=docdir ;;
1069 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1070 docdir=$ac_optarg ;;
1071
1072 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1073 ac_prev=dvidir ;;
1074 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1075 dvidir=$ac_optarg ;;
252b5132
RH
1076
1077 -enable-* | --enable-*)
81ecdfbb 1078 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
252b5132 1079 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1080 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1081 as_fn_error "invalid feature name: $ac_useropt"
1082 ac_useropt_orig=$ac_useropt
1083 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1084 case $ac_user_opts in
1085 *"
1086"enable_$ac_useropt"
1087"*) ;;
1088 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1089 ac_unrecognized_sep=', ';;
252b5132 1090 esac
81ecdfbb 1091 eval enable_$ac_useropt=\$ac_optarg ;;
252b5132
RH
1092
1093 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1094 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1095 | --exec | --exe | --ex)
1096 ac_prev=exec_prefix ;;
1097 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1098 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1099 | --exec=* | --exe=* | --ex=*)
5464f5a1 1100 exec_prefix=$ac_optarg ;;
252b5132
RH
1101
1102 -gas | --gas | --ga | --g)
1103 # Obsolete; use --with-gas.
1104 with_gas=yes ;;
1105
5464f5a1
NN
1106 -help | --help | --hel | --he | -h)
1107 ac_init_help=long ;;
1108 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1109 ac_init_help=recursive ;;
1110 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1111 ac_init_help=short ;;
252b5132
RH
1112
1113 -host | --host | --hos | --ho)
5464f5a1 1114 ac_prev=host_alias ;;
252b5132 1115 -host=* | --host=* | --hos=* | --ho=*)
5464f5a1 1116 host_alias=$ac_optarg ;;
252b5132 1117
81ecdfbb
RW
1118 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1119 ac_prev=htmldir ;;
1120 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1121 | --ht=*)
1122 htmldir=$ac_optarg ;;
1123
252b5132
RH
1124 -includedir | --includedir | --includedi | --included | --include \
1125 | --includ | --inclu | --incl | --inc)
1126 ac_prev=includedir ;;
1127 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1128 | --includ=* | --inclu=* | --incl=* | --inc=*)
5464f5a1 1129 includedir=$ac_optarg ;;
252b5132
RH
1130
1131 -infodir | --infodir | --infodi | --infod | --info | --inf)
1132 ac_prev=infodir ;;
1133 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
5464f5a1 1134 infodir=$ac_optarg ;;
252b5132
RH
1135
1136 -libdir | --libdir | --libdi | --libd)
1137 ac_prev=libdir ;;
1138 -libdir=* | --libdir=* | --libdi=* | --libd=*)
5464f5a1 1139 libdir=$ac_optarg ;;
252b5132
RH
1140
1141 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1142 | --libexe | --libex | --libe)
1143 ac_prev=libexecdir ;;
1144 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1145 | --libexe=* | --libex=* | --libe=*)
5464f5a1 1146 libexecdir=$ac_optarg ;;
252b5132 1147
81ecdfbb
RW
1148 -localedir | --localedir | --localedi | --localed | --locale)
1149 ac_prev=localedir ;;
1150 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1151 localedir=$ac_optarg ;;
1152
252b5132 1153 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 1154 | --localstate | --localstat | --localsta | --localst | --locals)
252b5132
RH
1155 ac_prev=localstatedir ;;
1156 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 1157 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
5464f5a1 1158 localstatedir=$ac_optarg ;;
252b5132
RH
1159
1160 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1161 ac_prev=mandir ;;
1162 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
5464f5a1 1163 mandir=$ac_optarg ;;
252b5132
RH
1164
1165 -nfp | --nfp | --nf)
1166 # Obsolete; use --without-fp.
1167 with_fp=no ;;
1168
1169 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
5464f5a1 1170 | --no-cr | --no-c | -n)
252b5132
RH
1171 no_create=yes ;;
1172
1173 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1174 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1175 no_recursion=yes ;;
1176
1177 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1178 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1179 | --oldin | --oldi | --old | --ol | --o)
1180 ac_prev=oldincludedir ;;
1181 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1182 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1183 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
5464f5a1 1184 oldincludedir=$ac_optarg ;;
252b5132
RH
1185
1186 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1187 ac_prev=prefix ;;
1188 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
5464f5a1 1189 prefix=$ac_optarg ;;
252b5132
RH
1190
1191 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1192 | --program-pre | --program-pr | --program-p)
1193 ac_prev=program_prefix ;;
1194 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1195 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
5464f5a1 1196 program_prefix=$ac_optarg ;;
252b5132
RH
1197
1198 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1199 | --program-suf | --program-su | --program-s)
1200 ac_prev=program_suffix ;;
1201 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1202 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
5464f5a1 1203 program_suffix=$ac_optarg ;;
252b5132
RH
1204
1205 -program-transform-name | --program-transform-name \
1206 | --program-transform-nam | --program-transform-na \
1207 | --program-transform-n | --program-transform- \
1208 | --program-transform | --program-transfor \
1209 | --program-transfo | --program-transf \
1210 | --program-trans | --program-tran \
1211 | --progr-tra | --program-tr | --program-t)
1212 ac_prev=program_transform_name ;;
1213 -program-transform-name=* | --program-transform-name=* \
1214 | --program-transform-nam=* | --program-transform-na=* \
1215 | --program-transform-n=* | --program-transform-=* \
1216 | --program-transform=* | --program-transfor=* \
1217 | --program-transfo=* | --program-transf=* \
1218 | --program-trans=* | --program-tran=* \
1219 | --progr-tra=* | --program-tr=* | --program-t=*)
5464f5a1 1220 program_transform_name=$ac_optarg ;;
252b5132 1221
81ecdfbb
RW
1222 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1223 ac_prev=pdfdir ;;
1224 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1225 pdfdir=$ac_optarg ;;
1226
1227 -psdir | --psdir | --psdi | --psd | --ps)
1228 ac_prev=psdir ;;
1229 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1230 psdir=$ac_optarg ;;
1231
252b5132
RH
1232 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1233 | -silent | --silent | --silen | --sile | --sil)
1234 silent=yes ;;
1235
1236 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1237 ac_prev=sbindir ;;
1238 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1239 | --sbi=* | --sb=*)
5464f5a1 1240 sbindir=$ac_optarg ;;
252b5132
RH
1241
1242 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1243 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1244 | --sharedst | --shareds | --shared | --share | --shar \
1245 | --sha | --sh)
1246 ac_prev=sharedstatedir ;;
1247 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1248 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1249 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1250 | --sha=* | --sh=*)
5464f5a1 1251 sharedstatedir=$ac_optarg ;;
252b5132
RH
1252
1253 -site | --site | --sit)
1254 ac_prev=site ;;
1255 -site=* | --site=* | --sit=*)
5464f5a1 1256 site=$ac_optarg ;;
6be7c12c 1257
252b5132
RH
1258 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1259 ac_prev=srcdir ;;
1260 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
5464f5a1 1261 srcdir=$ac_optarg ;;
252b5132
RH
1262
1263 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1264 | --syscon | --sysco | --sysc | --sys | --sy)
1265 ac_prev=sysconfdir ;;
1266 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1267 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
5464f5a1 1268 sysconfdir=$ac_optarg ;;
252b5132
RH
1269
1270 -target | --target | --targe | --targ | --tar | --ta | --t)
5464f5a1 1271 ac_prev=target_alias ;;
252b5132 1272 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
5464f5a1 1273 target_alias=$ac_optarg ;;
252b5132
RH
1274
1275 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1276 verbose=yes ;;
1277
5464f5a1
NN
1278 -version | --version | --versio | --versi | --vers | -V)
1279 ac_init_version=: ;;
252b5132
RH
1280
1281 -with-* | --with-*)
81ecdfbb 1282 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
252b5132 1283 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1284 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1285 as_fn_error "invalid package name: $ac_useropt"
1286 ac_useropt_orig=$ac_useropt
1287 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1288 case $ac_user_opts in
1289 *"
1290"with_$ac_useropt"
1291"*) ;;
1292 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1293 ac_unrecognized_sep=', ';;
252b5132 1294 esac
81ecdfbb 1295 eval with_$ac_useropt=\$ac_optarg ;;
252b5132
RH
1296
1297 -without-* | --without-*)
81ecdfbb 1298 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
252b5132 1299 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1300 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1301 as_fn_error "invalid package name: $ac_useropt"
1302 ac_useropt_orig=$ac_useropt
1303 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1304 case $ac_user_opts in
1305 *"
1306"with_$ac_useropt"
1307"*) ;;
1308 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1309 ac_unrecognized_sep=', ';;
1310 esac
1311 eval with_$ac_useropt=no ;;
252b5132
RH
1312
1313 --x)
1314 # Obsolete; use --with-x.
1315 with_x=yes ;;
1316
1317 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1318 | --x-incl | --x-inc | --x-in | --x-i)
1319 ac_prev=x_includes ;;
1320 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1321 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
5464f5a1 1322 x_includes=$ac_optarg ;;
252b5132
RH
1323
1324 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1325 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1326 ac_prev=x_libraries ;;
1327 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1328 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
5464f5a1 1329 x_libraries=$ac_optarg ;;
252b5132 1330
81ecdfbb
RW
1331 -*) as_fn_error "unrecognized option: \`$ac_option'
1332Try \`$0 --help' for more information."
252b5132
RH
1333 ;;
1334
5464f5a1
NN
1335 *=*)
1336 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1337 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1338 case $ac_envvar in #(
1339 '' | [0-9]* | *[!_$as_cr_alnum]* )
1340 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1341 esac
1342 eval $ac_envvar=\$ac_optarg
5464f5a1
NN
1343 export $ac_envvar ;;
1344
252b5132 1345 *)
5464f5a1 1346 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1347 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
5464f5a1 1348 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1349 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
5464f5a1 1350 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
252b5132
RH
1351 ;;
1352
1353 esac
1354done
1355
1356if test -n "$ac_prev"; then
5464f5a1 1357 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
81ecdfbb 1358 as_fn_error "missing argument to $ac_option"
252b5132 1359fi
252b5132 1360
81ecdfbb
RW
1361if test -n "$ac_unrecognized_opts"; then
1362 case $enable_option_checking in
1363 no) ;;
1364 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1365 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
5464f5a1 1366 esac
81ecdfbb 1367fi
6be7c12c 1368
81ecdfbb
RW
1369# Check all directory arguments for consistency.
1370for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1371 datadir sysconfdir sharedstatedir localstatedir includedir \
1372 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1373 libdir localedir mandir
252b5132 1374do
81ecdfbb
RW
1375 eval ac_val=\$$ac_var
1376 # Remove trailing slashes.
5464f5a1 1377 case $ac_val in
81ecdfbb
RW
1378 */ )
1379 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1380 eval $ac_var=\$ac_val;;
252b5132 1381 esac
81ecdfbb
RW
1382 # Be sure to have absolute directory names.
1383 case $ac_val in
1384 [\\/$]* | ?:[\\/]* ) continue;;
1385 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1386 esac
1387 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
252b5132
RH
1388done
1389
5464f5a1
NN
1390# There might be people who depend on the old broken behavior: `$host'
1391# used to hold the argument of --host etc.
1392# FIXME: To remove some day.
1393build=$build_alias
1394host=$host_alias
1395target=$target_alias
1396
1397# FIXME: To remove some day.
1398if test "x$host_alias" != x; then
1399 if test "x$build_alias" = x; then
1400 cross_compiling=maybe
81ecdfbb 1401 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
5464f5a1
NN
1402 If a cross compiler is detected then cross compile mode will be used." >&2
1403 elif test "x$build_alias" != "x$host_alias"; then
1404 cross_compiling=yes
1405 fi
1406fi
252b5132 1407
5464f5a1
NN
1408ac_tool_prefix=
1409test -n "$host_alias" && ac_tool_prefix=$host_alias-
1410
1411test "$silent" = yes && exec 6>/dev/null
252b5132 1412
252b5132 1413
81ecdfbb
RW
1414ac_pwd=`pwd` && test -n "$ac_pwd" &&
1415ac_ls_di=`ls -di .` &&
1416ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1417 as_fn_error "working directory cannot be determined"
1418test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1419 as_fn_error "pwd does not report name of working directory"
1420
1421
252b5132
RH
1422# Find the source files, if location was not specified.
1423if test -z "$srcdir"; then
1424 ac_srcdir_defaulted=yes
81ecdfbb
RW
1425 # Try the directory containing this script, then the parent directory.
1426 ac_confdir=`$as_dirname -- "$as_myself" ||
1427$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1428 X"$as_myself" : 'X\(//\)[^/]' \| \
1429 X"$as_myself" : 'X\(//\)$' \| \
1430 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1431$as_echo X"$as_myself" |
1432 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1433 s//\1/
1434 q
1435 }
1436 /^X\(\/\/\)[^/].*/{
1437 s//\1/
1438 q
1439 }
1440 /^X\(\/\/\)$/{
1441 s//\1/
1442 q
1443 }
1444 /^X\(\/\).*/{
1445 s//\1/
1446 q
1447 }
1448 s/.*/./; q'`
252b5132 1449 srcdir=$ac_confdir
81ecdfbb 1450 if test ! -r "$srcdir/$ac_unique_file"; then
252b5132
RH
1451 srcdir=..
1452 fi
1453else
1454 ac_srcdir_defaulted=no
1455fi
81ecdfbb
RW
1456if test ! -r "$srcdir/$ac_unique_file"; then
1457 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1458 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1459fi
1460ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1461ac_abs_confdir=`(
1462 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1463 pwd)`
1464# When building in place, set srcdir=.
1465if test "$ac_abs_confdir" = "$ac_pwd"; then
1466 srcdir=.
1467fi
1468# Remove unnecessary trailing slashes from srcdir.
1469# Double slashes in file names in object file debugging info
1470# mess up M-x gdb in Emacs.
1471case $srcdir in
1472*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1473esac
1474for ac_var in $ac_precious_vars; do
1475 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1476 eval ac_env_${ac_var}_value=\$${ac_var}
1477 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1478 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1479done
b3baf5d0 1480
5464f5a1
NN
1481#
1482# Report the --help message.
1483#
1484if test "$ac_init_help" = "long"; then
1485 # Omit some internal or obsolete options to make the list less imposing.
1486 # This message is too long to be a string in the A/UX 3.1 sh.
1487 cat <<_ACEOF
1488\`configure' configures this package to adapt to many kinds of systems.
252b5132 1489
5464f5a1 1490Usage: $0 [OPTION]... [VAR=VALUE]...
252b5132 1491
5464f5a1
NN
1492To assign environment variables (e.g., CC, CFLAGS...), specify them as
1493VAR=VALUE. See below for descriptions of some of the useful variables.
6be7c12c 1494
5464f5a1 1495Defaults for the options are specified in brackets.
6be7c12c 1496
5464f5a1
NN
1497Configuration:
1498 -h, --help display this help and exit
1499 --help=short display options specific to this package
1500 --help=recursive display the short help of all the included packages
1501 -V, --version display version information and exit
1502 -q, --quiet, --silent do not print \`checking...' messages
1503 --cache-file=FILE cache test results in FILE [disabled]
1504 -C, --config-cache alias for \`--cache-file=config.cache'
1505 -n, --no-create do not create output files
1506 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1507
5464f5a1
NN
1508Installation directories:
1509 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1510 [$ac_default_prefix]
5464f5a1 1511 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1512 [PREFIX]
6be7c12c 1513
5464f5a1
NN
1514By default, \`make install' will install all the files in
1515\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1516an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1517for instance \`--prefix=\$HOME'.
6be7c12c 1518
5464f5a1 1519For better control, use the options below.
6be7c12c 1520
5464f5a1 1521Fine tuning of the installation directories:
81ecdfbb
RW
1522 --bindir=DIR user executables [EPREFIX/bin]
1523 --sbindir=DIR system admin executables [EPREFIX/sbin]
1524 --libexecdir=DIR program executables [EPREFIX/libexec]
1525 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1526 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1527 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1528 --libdir=DIR object code libraries [EPREFIX/lib]
1529 --includedir=DIR C header files [PREFIX/include]
1530 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1531 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1532 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1533 --infodir=DIR info documentation [DATAROOTDIR/info]
1534 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1535 --mandir=DIR man documentation [DATAROOTDIR/man]
1536 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1537 --htmldir=DIR html documentation [DOCDIR]
1538 --dvidir=DIR dvi documentation [DOCDIR]
1539 --pdfdir=DIR pdf documentation [DOCDIR]
1540 --psdir=DIR ps documentation [DOCDIR]
5464f5a1 1541_ACEOF
6be7c12c 1542
5464f5a1 1543 cat <<\_ACEOF
6be7c12c 1544
5464f5a1
NN
1545Program names:
1546 --program-prefix=PREFIX prepend PREFIX to installed program names
1547 --program-suffix=SUFFIX append SUFFIX to installed program names
1548 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
252b5132 1549
5464f5a1
NN
1550System types:
1551 --build=BUILD configure for building on BUILD [guessed]
1552 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1553 --target=TARGET configure for building compilers for TARGET [HOST]
1554_ACEOF
252b5132 1555fi
252b5132 1556
5464f5a1 1557if test -n "$ac_init_help"; then
6be7c12c 1558
5464f5a1 1559 cat <<\_ACEOF
252b5132 1560
5464f5a1 1561Optional Features:
81ecdfbb 1562 --disable-option-checking ignore unrecognized --enable/--with options
5464f5a1
NN
1563 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1564 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
f5385ebf
AM
1565 --disable-dependency-tracking speeds up one-time build
1566 --enable-dependency-tracking do not reject slow dependency extractors
81ecdfbb
RW
1567 --enable-shared[=PKGS] build shared libraries [default=no]
1568 --enable-static[=PKGS] build static libraries [default=yes]
d7040cdb
SE
1569 --enable-fast-install[=PKGS]
1570 optimize for fast installation [default=yes]
5464f5a1 1571 --disable-libtool-lock avoid locking (might break parallel builds)
5691d22d 1572 --enable-plugins Enable support for plugins (defaults no)
ce3c775b 1573 --disable-largefile omit support for large files
5464f5a1
NN
1574 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
1575 --enable-targets alternative target configurations
6ec7057a 1576 --enable-secureplt Default to creating read-only plt entries
504b7d20 1577 --enable-elf-stt-common Allow the generation of ELF symbols with the STT_COMMON type
241a6c40
AM
1578 --enable-werror treat compile warnings as errors
1579 --enable-build-warnings enable build-time compiler warnings
f5385ebf
AM
1580 --enable-maintainer-mode enable make rules and dependencies not useful
1581 (and sometimes confusing) to the casual installer
5464f5a1
NN
1582 --enable-install-libbfd controls installation of libbfd and related headers
1583 --disable-nls do not use Native Language Support
1584
1585Optional Packages:
1586 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1587 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
d7040cdb
SE
1588 --with-pic try to use only PIC/non-PIC objects [default=use
1589 both]
1590 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
5464f5a1 1591 --with-mmap try using mmap for BFD input files if available
0d4a1476
AS
1592 --with-separate-debug-dir=DIR
1593 Look for global separate debug info in DIR
1594 [default=LIBDIR/debug]
a1ac8190
JM
1595 --with-pkgversion=PKG Use PKG in the version string in place of "GNU
1596 Binutils"
c428fa83 1597 --with-bugurl=URL Direct users to URL to report a bug
5464f5a1
NN
1598
1599Some influential environment variables:
1600 CC C compiler command
1601 CFLAGS C compiler flags
1602 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1603 nonstandard directory <lib dir>
81ecdfbb
RW
1604 LIBS libraries to pass to the linker, e.g. -l<library>
1605 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1606 you have headers in a nonstandard directory <include dir>
5464f5a1
NN
1607 CPP C preprocessor
1608
1609Use these variables to override the choices made by `configure' or to help
1610it to find libraries and programs with nonstandard names/locations.
1611
81ecdfbb 1612Report bugs to the package provider.
5464f5a1 1613_ACEOF
81ecdfbb 1614ac_status=$?
5464f5a1
NN
1615fi
1616
1617if test "$ac_init_help" = "recursive"; then
1618 # If there are subdirs, report their specific --help.
5464f5a1 1619 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1620 test -d "$ac_dir" ||
1621 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1622 continue
5464f5a1
NN
1623 ac_builddir=.
1624
81ecdfbb
RW
1625case "$ac_dir" in
1626.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1627*)
1628 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1629 # A ".." for each directory in $ac_dir_suffix.
1630 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1631 case $ac_top_builddir_sub in
1632 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1633 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1634 esac ;;
1635esac
1636ac_abs_top_builddir=$ac_pwd
1637ac_abs_builddir=$ac_pwd$ac_dir_suffix
1638# for backward compatibility:
1639ac_top_builddir=$ac_top_build_prefix
5464f5a1
NN
1640
1641case $srcdir in
81ecdfbb 1642 .) # We are building in place.
5464f5a1 1643 ac_srcdir=.
81ecdfbb
RW
1644 ac_top_srcdir=$ac_top_builddir_sub
1645 ac_abs_top_srcdir=$ac_pwd ;;
1646 [\\/]* | ?:[\\/]* ) # Absolute name.
5464f5a1 1647 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1648 ac_top_srcdir=$srcdir
1649 ac_abs_top_srcdir=$srcdir ;;
1650 *) # Relative name.
1651 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1652 ac_top_srcdir=$ac_top_build_prefix$srcdir
1653 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5464f5a1 1654esac
81ecdfbb
RW
1655ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1656
1657 cd "$ac_dir" || { ac_status=$?; continue; }
1658 # Check for guested configure.
1659 if test -f "$ac_srcdir/configure.gnu"; then
1660 echo &&
1661 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1662 elif test -f "$ac_srcdir/configure"; then
1663 echo &&
1664 $SHELL "$ac_srcdir/configure" --help=recursive
5464f5a1 1665 else
81ecdfbb
RW
1666 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1667 fi || ac_status=$?
1668 cd "$ac_pwd" || { ac_status=$?; break; }
5464f5a1 1669 done
6be7c12c
AO
1670fi
1671
81ecdfbb 1672test -n "$ac_init_help" && exit $ac_status
5464f5a1
NN
1673if $ac_init_version; then
1674 cat <<\_ACEOF
81ecdfbb
RW
1675configure
1676generated by GNU Autoconf 2.64
6be7c12c 1677
81ecdfbb 1678Copyright (C) 2009 Free Software Foundation, Inc.
5464f5a1
NN
1679This configure script is free software; the Free Software Foundation
1680gives unlimited permission to copy, distribute and modify it.
1681_ACEOF
81ecdfbb 1682 exit
5464f5a1 1683fi
6be7c12c 1684
81ecdfbb
RW
1685## ------------------------ ##
1686## Autoconf initialization. ##
1687## ------------------------ ##
6be7c12c 1688
81ecdfbb
RW
1689# ac_fn_c_try_compile LINENO
1690# --------------------------
1691# Try to compile conftest.$ac_ext, and return whether this succeeded.
1692ac_fn_c_try_compile ()
5464f5a1 1693{
81ecdfbb
RW
1694 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1695 rm -f conftest.$ac_objext
1696 if { { ac_try="$ac_compile"
1697case "(($ac_try" in
1698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1699 *) ac_try_echo=$ac_try;;
1700esac
1701eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1702$as_echo "$ac_try_echo"; } >&5
1703 (eval "$ac_compile") 2>conftest.err
1704 ac_status=$?
1705 if test -s conftest.err; then
1706 grep -v '^ *+' conftest.err >conftest.er1
1707 cat conftest.er1 >&5
1708 mv -f conftest.er1 conftest.err
1709 fi
1710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1711 test $ac_status = 0; } && {
1712 test -z "$ac_c_werror_flag" ||
1713 test ! -s conftest.err
1714 } && test -s conftest.$ac_objext; then :
1715 ac_retval=0
1716else
1717 $as_echo "$as_me: failed program was:" >&5
1718sed 's/^/| /' conftest.$ac_ext >&5
5464f5a1 1719
81ecdfbb
RW
1720 ac_retval=1
1721fi
1722 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1723 return $ac_retval
5464f5a1 1724
81ecdfbb 1725} # ac_fn_c_try_compile
5464f5a1 1726
81ecdfbb
RW
1727# ac_fn_c_try_link LINENO
1728# -----------------------
1729# Try to link conftest.$ac_ext, and return whether this succeeded.
1730ac_fn_c_try_link ()
1731{
1732 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1733 rm -f conftest.$ac_objext conftest$ac_exeext
1734 if { { ac_try="$ac_link"
1735case "(($ac_try" in
1736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1737 *) ac_try_echo=$ac_try;;
1738esac
1739eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1740$as_echo "$ac_try_echo"; } >&5
1741 (eval "$ac_link") 2>conftest.err
1742 ac_status=$?
1743 if test -s conftest.err; then
1744 grep -v '^ *+' conftest.err >conftest.er1
1745 cat conftest.er1 >&5
1746 mv -f conftest.er1 conftest.err
1747 fi
1748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1749 test $ac_status = 0; } && {
1750 test -z "$ac_c_werror_flag" ||
1751 test ! -s conftest.err
1752 } && test -s conftest$ac_exeext && {
1753 test "$cross_compiling" = yes ||
1754 $as_test_x conftest$ac_exeext
1755 }; then :
1756 ac_retval=0
1757else
1758 $as_echo "$as_me: failed program was:" >&5
1759sed 's/^/| /' conftest.$ac_ext >&5
5464f5a1 1760
81ecdfbb
RW
1761 ac_retval=1
1762fi
1763 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1764 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1765 # interfere with the next link command; also delete a directory that is
1766 # left behind by Apple's compiler. We do this before executing the actions.
1767 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1768 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1769 return $ac_retval
6be7c12c 1770
81ecdfbb 1771} # ac_fn_c_try_link
66e25bab 1772
81ecdfbb
RW
1773# ac_fn_c_try_cpp LINENO
1774# ----------------------
1775# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1776ac_fn_c_try_cpp ()
1777{
1778 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1779 if { { ac_try="$ac_cpp conftest.$ac_ext"
1780case "(($ac_try" in
1781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1782 *) ac_try_echo=$ac_try;;
1783esac
1784eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1785$as_echo "$ac_try_echo"; } >&5
1786 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1787 ac_status=$?
1788 if test -s conftest.err; then
1789 grep -v '^ *+' conftest.err >conftest.er1
1790 cat conftest.er1 >&5
1791 mv -f conftest.er1 conftest.err
1792 fi
1793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1794 test $ac_status = 0; } >/dev/null && {
1795 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1796 test ! -s conftest.err
1797 }; then :
1798 ac_retval=0
1799else
1800 $as_echo "$as_me: failed program was:" >&5
1801sed 's/^/| /' conftest.$ac_ext >&5
b3baf5d0 1802
81ecdfbb
RW
1803 ac_retval=1
1804fi
1805 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1806 return $ac_retval
6be7c12c 1807
81ecdfbb 1808} # ac_fn_c_try_cpp
252b5132 1809
81ecdfbb
RW
1810# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1811# -------------------------------------------------------
1812# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1813# the include files in INCLUDES and setting the cache variable VAR
1814# accordingly.
1815ac_fn_c_check_header_mongrel ()
1816{
1817 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1818 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1820$as_echo_n "checking for $2... " >&6; }
1821if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1822 $as_echo_n "(cached) " >&6
1823fi
1824eval ac_res=\$$3
1825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1826$as_echo "$ac_res" >&6; }
1827else
1828 # Is the header compilable?
1829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1830$as_echo_n "checking $2 usability... " >&6; }
1831cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1832/* end confdefs.h. */
1833$4
1834#include <$2>
5464f5a1 1835_ACEOF
81ecdfbb
RW
1836if ac_fn_c_try_compile "$LINENO"; then :
1837 ac_header_compiler=yes
1838else
1839 ac_header_compiler=no
1840fi
1841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1843$as_echo "$ac_header_compiler" >&6; }
c5d1701e 1844
81ecdfbb
RW
1845# Is the header present?
1846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1847$as_echo_n "checking $2 presence... " >&6; }
1848cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1849/* end confdefs.h. */
1850#include <$2>
1851_ACEOF
1852if ac_fn_c_try_cpp "$LINENO"; then :
1853 ac_header_preproc=yes
1854else
1855 ac_header_preproc=no
1856fi
1857rm -f conftest.err conftest.$ac_ext
1858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1859$as_echo "$ac_header_preproc" >&6; }
6be7c12c 1860
81ecdfbb
RW
1861# So? What about this header?
1862case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1863 yes:no: )
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1865$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1867$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1868 ;;
1869 no:yes:* )
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1871$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1873$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1875$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1877$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1879$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1880 ;;
1881esac
1882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1883$as_echo_n "checking for $2... " >&6; }
1884if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1885 $as_echo_n "(cached) " >&6
1886else
1887 eval "$3=\$ac_header_compiler"
1888fi
1889eval ac_res=\$$3
1890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1891$as_echo "$ac_res" >&6; }
1892fi
1893 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
5464f5a1 1894
81ecdfbb 1895} # ac_fn_c_check_header_mongrel
5464f5a1 1896
81ecdfbb
RW
1897# ac_fn_c_try_run LINENO
1898# ----------------------
1899# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1900# that executables *can* be run.
1901ac_fn_c_try_run ()
5464f5a1 1902{
81ecdfbb
RW
1903 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1904 if { { ac_try="$ac_link"
1905case "(($ac_try" in
1906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1907 *) ac_try_echo=$ac_try;;
1908esac
1909eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1910$as_echo "$ac_try_echo"; } >&5
1911 (eval "$ac_link") 2>&5
1912 ac_status=$?
1913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1914 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1915 { { case "(($ac_try" in
1916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1917 *) ac_try_echo=$ac_try;;
1918esac
1919eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1920$as_echo "$ac_try_echo"; } >&5
1921 (eval "$ac_try") 2>&5
1922 ac_status=$?
1923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1924 test $ac_status = 0; }; }; then :
1925 ac_retval=0
1926else
1927 $as_echo "$as_me: program exited with status $ac_status" >&5
1928 $as_echo "$as_me: failed program was:" >&5
1929sed 's/^/| /' conftest.$ac_ext >&5
5464f5a1 1930
81ecdfbb
RW
1931 ac_retval=$ac_status
1932fi
1933 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1934 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1935 return $ac_retval
5464f5a1 1936
81ecdfbb 1937} # ac_fn_c_try_run
5464f5a1 1938
81ecdfbb
RW
1939# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1940# -------------------------------------------------------
1941# Tests whether HEADER exists and can be compiled using the include files in
1942# INCLUDES, setting the cache variable VAR accordingly.
1943ac_fn_c_check_header_compile ()
1944{
1945 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1947$as_echo_n "checking for $2... " >&6; }
1948if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1949 $as_echo_n "(cached) " >&6
1950else
1951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1952/* end confdefs.h. */
1953$4
1954#include <$2>
1955_ACEOF
1956if ac_fn_c_try_compile "$LINENO"; then :
1957 eval "$3=yes"
1958else
1959 eval "$3=no"
1960fi
1961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1962fi
1963eval ac_res=\$$3
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1965$as_echo "$ac_res" >&6; }
1966 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
5464f5a1 1967
81ecdfbb 1968} # ac_fn_c_check_header_compile
5464f5a1 1969
81ecdfbb
RW
1970# ac_fn_c_check_func LINENO FUNC VAR
1971# ----------------------------------
1972# Tests whether FUNC exists, setting the cache variable VAR accordingly
1973ac_fn_c_check_func ()
1974{
1975 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1977$as_echo_n "checking for $2... " >&6; }
1978if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1979 $as_echo_n "(cached) " >&6
1980else
1981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1982/* end confdefs.h. */
1983/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1984 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1985#define $2 innocuous_$2
5464f5a1 1986
81ecdfbb
RW
1987/* System header to define __stub macros and hopefully few prototypes,
1988 which can conflict with char $2 (); below.
1989 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1990 <limits.h> exists even on freestanding compilers. */
5464f5a1 1991
81ecdfbb
RW
1992#ifdef __STDC__
1993# include <limits.h>
1994#else
1995# include <assert.h>
1996#endif
5464f5a1 1997
81ecdfbb 1998#undef $2
5464f5a1 1999
81ecdfbb
RW
2000/* Override any GCC internal prototype to avoid an error.
2001 Use char because int might match the return type of a GCC
2002 builtin and then its argument prototype would still apply. */
2003#ifdef __cplusplus
2004extern "C"
2005#endif
2006char $2 ();
2007/* The GNU C library defines this for functions which it implements
2008 to always fail with ENOSYS. Some functions are actually named
2009 something starting with __ and the normal name is an alias. */
2010#if defined __stub_$2 || defined __stub___$2
2011choke me
2012#endif
5464f5a1 2013
81ecdfbb
RW
2014int
2015main ()
2016{
2017return $2 ();
2018 ;
2019 return 0;
2020}
5464f5a1 2021_ACEOF
81ecdfbb
RW
2022if ac_fn_c_try_link "$LINENO"; then :
2023 eval "$3=yes"
2024else
2025 eval "$3=no"
2026fi
2027rm -f core conftest.err conftest.$ac_objext \
2028 conftest$ac_exeext conftest.$ac_ext
2029fi
2030eval ac_res=\$$3
2031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2032$as_echo "$ac_res" >&6; }
2033 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
5464f5a1 2034
81ecdfbb 2035} # ac_fn_c_check_func
5464f5a1 2036
81ecdfbb
RW
2037# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2038# --------------------------------------------
2039# Tries to find the compile-time value of EXPR in a program that includes
2040# INCLUDES, setting VAR accordingly. Returns whether the value could be
2041# computed
2042ac_fn_c_compute_int ()
2043{
2044 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2045 if test "$cross_compiling" = yes; then
2046 # Depending upon the size, compute the lo and hi bounds.
2047cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2048/* end confdefs.h. */
2049$4
2050int
2051main ()
2052{
2053static int test_array [1 - 2 * !(($2) >= 0)];
2054test_array [0] = 0
5464f5a1 2055
81ecdfbb
RW
2056 ;
2057 return 0;
2058}
5464f5a1 2059_ACEOF
81ecdfbb
RW
2060if ac_fn_c_try_compile "$LINENO"; then :
2061 ac_lo=0 ac_mid=0
2062 while :; do
2063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2064/* end confdefs.h. */
2065$4
2066int
2067main ()
2068{
2069static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2070test_array [0] = 0
5464f5a1 2071
81ecdfbb
RW
2072 ;
2073 return 0;
2074}
2075_ACEOF
2076if ac_fn_c_try_compile "$LINENO"; then :
2077 ac_hi=$ac_mid; break
5464f5a1 2078else
81ecdfbb
RW
2079 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2080 if test $ac_lo -le $ac_mid; then
2081 ac_lo= ac_hi=
2082 break
2083 fi
2084 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
5464f5a1 2085fi
81ecdfbb
RW
2086rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2087 done
2088else
2089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2090/* end confdefs.h. */
2091$4
2092int
2093main ()
2094{
2095static int test_array [1 - 2 * !(($2) < 0)];
2096test_array [0] = 0
5464f5a1 2097
81ecdfbb
RW
2098 ;
2099 return 0;
2100}
2101_ACEOF
2102if ac_fn_c_try_compile "$LINENO"; then :
2103 ac_hi=-1 ac_mid=-1
2104 while :; do
2105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2106/* end confdefs.h. */
2107$4
2108int
2109main ()
2110{
2111static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2112test_array [0] = 0
5464f5a1 2113
81ecdfbb
RW
2114 ;
2115 return 0;
2116}
2117_ACEOF
2118if ac_fn_c_try_compile "$LINENO"; then :
2119 ac_lo=$ac_mid; break
2120else
2121 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2122 if test $ac_mid -le $ac_hi; then
2123 ac_lo= ac_hi=
2124 break
2125 fi
2126 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2127fi
2128rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2129 done
2130else
2131 ac_lo= ac_hi=
2132fi
2133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2134fi
2135rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2136# Binary search between lo and hi bounds.
2137while test "x$ac_lo" != "x$ac_hi"; do
2138 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2140/* end confdefs.h. */
2141$4
2142int
2143main ()
2144{
2145static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2146test_array [0] = 0
5464f5a1 2147
81ecdfbb
RW
2148 ;
2149 return 0;
2150}
2151_ACEOF
2152if ac_fn_c_try_compile "$LINENO"; then :
2153 ac_hi=$ac_mid
2154else
2155 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2156fi
2157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2158done
2159case $ac_lo in #((
2160?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2161'') ac_retval=1 ;;
2162esac
2163 else
2164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2165/* end confdefs.h. */
2166$4
2167static long int longval () { return $2; }
2168static unsigned long int ulongval () { return $2; }
2169#include <stdio.h>
2170#include <stdlib.h>
2171int
2172main ()
2173{
5464f5a1 2174
81ecdfbb
RW
2175 FILE *f = fopen ("conftest.val", "w");
2176 if (! f)
2177 return 1;
2178 if (($2) < 0)
2179 {
2180 long int i = longval ();
2181 if (i != ($2))
2182 return 1;
2183 fprintf (f, "%ld", i);
2184 }
2185 else
2186 {
2187 unsigned long int i = ulongval ();
2188 if (i != ($2))
2189 return 1;
2190 fprintf (f, "%lu", i);
2191 }
2192 /* Do not output a trailing newline, as this causes \r\n confusion
2193 on some platforms. */
2194 return ferror (f) || fclose (f) != 0;
5464f5a1 2195
81ecdfbb
RW
2196 ;
2197 return 0;
2198}
2199_ACEOF
2200if ac_fn_c_try_run "$LINENO"; then :
2201 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2202else
2203 ac_retval=1
2204fi
2205rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2206 conftest.$ac_objext conftest.beam conftest.$ac_ext
2207rm -f conftest.val
7357c5b6 2208
81ecdfbb
RW
2209 fi
2210 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2211 return $ac_retval
7357c5b6 2212
81ecdfbb 2213} # ac_fn_c_compute_int
7357c5b6 2214
81ecdfbb
RW
2215# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2216# -------------------------------------------
2217# Tests whether TYPE exists after having included INCLUDES, setting cache
2218# variable VAR accordingly.
2219ac_fn_c_check_type ()
2220{
2221 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2223$as_echo_n "checking for $2... " >&6; }
2224if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2225 $as_echo_n "(cached) " >&6
2226else
2227 eval "$3=no"
2228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2229/* end confdefs.h. */
2230$4
2231int
2232main ()
2233{
2234if (sizeof ($2))
2235 return 0;
2236 ;
2237 return 0;
2238}
2239_ACEOF
2240if ac_fn_c_try_compile "$LINENO"; then :
2241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2242/* end confdefs.h. */
2243$4
2244int
2245main ()
2246{
2247if (sizeof (($2)))
2248 return 0;
2249 ;
2250 return 0;
2251}
2252_ACEOF
2253if ac_fn_c_try_compile "$LINENO"; then :
5464f5a1 2254
81ecdfbb
RW
2255else
2256 eval "$3=yes"
2257fi
2258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2259fi
2260rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2261fi
2262eval ac_res=\$$3
2263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2264$as_echo "$ac_res" >&6; }
2265 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
5464f5a1 2266
81ecdfbb 2267} # ac_fn_c_check_type
5464f5a1 2268
81ecdfbb
RW
2269# ac_fn_c_check_decl LINENO SYMBOL VAR
2270# ------------------------------------
2271# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2272ac_fn_c_check_decl ()
2273{
2274 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2276$as_echo_n "checking whether $2 is declared... " >&6; }
2277if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2278 $as_echo_n "(cached) " >&6
2279else
2280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2281/* end confdefs.h. */
2282$4
2283int
2284main ()
2285{
2286#ifndef $2
2287 (void) $2;
2288#endif
5464f5a1 2289
81ecdfbb
RW
2290 ;
2291 return 0;
2292}
2293_ACEOF
2294if ac_fn_c_try_compile "$LINENO"; then :
2295 eval "$3=yes"
2296else
2297 eval "$3=no"
5464f5a1 2298fi
81ecdfbb
RW
2299rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2300fi
2301eval ac_res=\$$3
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2303$as_echo "$ac_res" >&6; }
2304 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
5464f5a1 2305
81ecdfbb
RW
2306} # ac_fn_c_check_decl
2307cat >config.log <<_ACEOF
2308This file contains any messages produced by compilers while
2309running configure, to aid debugging if configure makes a mistake.
5464f5a1 2310
81ecdfbb
RW
2311It was created by $as_me, which was
2312generated by GNU Autoconf 2.64. Invocation command line was
5464f5a1 2313
81ecdfbb 2314 $ $0 $@
5464f5a1 2315
81ecdfbb
RW
2316_ACEOF
2317exec 5>>config.log
2318{
2319cat <<_ASUNAME
2320## --------- ##
2321## Platform. ##
2322## --------- ##
5464f5a1 2323
81ecdfbb
RW
2324hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2325uname -m = `(uname -m) 2>/dev/null || echo unknown`
2326uname -r = `(uname -r) 2>/dev/null || echo unknown`
2327uname -s = `(uname -s) 2>/dev/null || echo unknown`
2328uname -v = `(uname -v) 2>/dev/null || echo unknown`
5464f5a1 2329
81ecdfbb
RW
2330/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2331/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
5464f5a1 2332
81ecdfbb
RW
2333/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2334/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2335/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2336/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2337/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2338/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2339/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
5464f5a1 2340
81ecdfbb 2341_ASUNAME
5464f5a1 2342
5464f5a1
NN
2343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2344for as_dir in $PATH
2345do
2346 IFS=$as_save_IFS
2347 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2348 $as_echo "PATH: $as_dir"
2349 done
2350IFS=$as_save_IFS
5464f5a1 2351
81ecdfbb 2352} >&5
5464f5a1 2353
81ecdfbb 2354cat >&5 <<_ACEOF
5464f5a1 2355
5464f5a1 2356
81ecdfbb
RW
2357## ----------- ##
2358## Core tests. ##
2359## ----------- ##
5464f5a1 2360
81ecdfbb
RW
2361_ACEOF
2362
2363
2364# Keep a trace of the command line.
2365# Strip out --no-create and --no-recursion so they do not pile up.
2366# Strip out --silent because we don't want to record it for future runs.
2367# Also quote any args containing shell meta-characters.
2368# Make two passes to allow for proper duplicate-argument suppression.
2369ac_configure_args=
2370ac_configure_args0=
2371ac_configure_args1=
2372ac_must_keep_next=false
2373for ac_pass in 1 2
2374do
2375 for ac_arg
2376 do
2377 case $ac_arg in
2378 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2379 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2380 | -silent | --silent | --silen | --sile | --sil)
2381 continue ;;
2382 *\'*)
2383 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2384 esac
2385 case $ac_pass in
2386 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2387 2)
2388 as_fn_append ac_configure_args1 " '$ac_arg'"
2389 if test $ac_must_keep_next = true; then
2390 ac_must_keep_next=false # Got value, back to normal.
2391 else
2392 case $ac_arg in
2393 *=* | --config-cache | -C | -disable-* | --disable-* \
2394 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2395 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2396 | -with-* | --with-* | -without-* | --without-* | --x)
2397 case "$ac_configure_args0 " in
2398 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2399 esac
2400 ;;
2401 -* ) ac_must_keep_next=true ;;
2402 esac
2403 fi
2404 as_fn_append ac_configure_args " '$ac_arg'"
2405 ;;
2406 esac
2407 done
2408done
2409{ ac_configure_args0=; unset ac_configure_args0;}
2410{ ac_configure_args1=; unset ac_configure_args1;}
2411
2412# When interrupted or exit'd, cleanup temporary files, and complete
2413# config.log. We remove comments because anyway the quotes in there
2414# would cause problems or look ugly.
2415# WARNING: Use '\'' to represent an apostrophe within the trap.
2416# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2417trap 'exit_status=$?
2418 # Save into config.log some information that might help in debugging.
2419 {
2420 echo
2421
2422 cat <<\_ASBOX
2423## ---------------- ##
2424## Cache variables. ##
2425## ---------------- ##
2426_ASBOX
2427 echo
2428 # The following way of writing the cache mishandles newlines in values,
2429(
2430 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2431 eval ac_val=\$$ac_var
2432 case $ac_val in #(
2433 *${as_nl}*)
2434 case $ac_var in #(
2435 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2436$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2437 esac
2438 case $ac_var in #(
2439 _ | IFS | as_nl) ;; #(
2440 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2441 *) { eval $ac_var=; unset $ac_var;} ;;
2442 esac ;;
2443 esac
2444 done
2445 (set) 2>&1 |
2446 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2447 *${as_nl}ac_space=\ *)
2448 sed -n \
2449 "s/'\''/'\''\\\\'\'''\''/g;
2450 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2451 ;; #(
2452 *)
2453 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2454 ;;
2455 esac |
2456 sort
2457)
2458 echo
2459
2460 cat <<\_ASBOX
2461## ----------------- ##
2462## Output variables. ##
2463## ----------------- ##
2464_ASBOX
2465 echo
2466 for ac_var in $ac_subst_vars
2467 do
2468 eval ac_val=\$$ac_var
2469 case $ac_val in
2470 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2471 esac
2472 $as_echo "$ac_var='\''$ac_val'\''"
2473 done | sort
2474 echo
2475
2476 if test -n "$ac_subst_files"; then
2477 cat <<\_ASBOX
2478## ------------------- ##
2479## File substitutions. ##
2480## ------------------- ##
2481_ASBOX
2482 echo
2483 for ac_var in $ac_subst_files
2484 do
2485 eval ac_val=\$$ac_var
2486 case $ac_val in
2487 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2488 esac
2489 $as_echo "$ac_var='\''$ac_val'\''"
2490 done | sort
2491 echo
2492 fi
2493
2494 if test -s confdefs.h; then
2495 cat <<\_ASBOX
2496## ----------- ##
2497## confdefs.h. ##
2498## ----------- ##
2499_ASBOX
2500 echo
2501 cat confdefs.h
2502 echo
2503 fi
2504 test "$ac_signal" != 0 &&
2505 $as_echo "$as_me: caught signal $ac_signal"
2506 $as_echo "$as_me: exit $exit_status"
2507 } >&5
2508 rm -f core *.core core.conftest.* &&
2509 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2510 exit $exit_status
2511' 0
2512for ac_signal in 1 2 13 15; do
2513 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2514done
2515ac_signal=0
2516
2517# confdefs.h avoids OS command line length limits that DEFS can exceed.
2518rm -f -r conftest* confdefs.h
2519
2520$as_echo "/* confdefs.h */" > confdefs.h
2521
2522# Predefined preprocessor variables.
2523
2524cat >>confdefs.h <<_ACEOF
2525#define PACKAGE_NAME "$PACKAGE_NAME"
2526_ACEOF
2527
2528cat >>confdefs.h <<_ACEOF
2529#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2530_ACEOF
2531
2532cat >>confdefs.h <<_ACEOF
2533#define PACKAGE_VERSION "$PACKAGE_VERSION"
2534_ACEOF
2535
2536cat >>confdefs.h <<_ACEOF
2537#define PACKAGE_STRING "$PACKAGE_STRING"
2538_ACEOF
2539
2540cat >>confdefs.h <<_ACEOF
2541#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2542_ACEOF
2543
2544cat >>confdefs.h <<_ACEOF
2545#define PACKAGE_URL "$PACKAGE_URL"
2546_ACEOF
2547
2548
2549# Let the site file select an alternate cache file if it wants to.
2550# Prefer an explicitly selected file to automatically selected ones.
2551ac_site_file1=NONE
2552ac_site_file2=NONE
2553if test -n "$CONFIG_SITE"; then
2554 ac_site_file1=$CONFIG_SITE
2555elif test "x$prefix" != xNONE; then
2556 ac_site_file1=$prefix/share/config.site
2557 ac_site_file2=$prefix/etc/config.site
2558else
2559 ac_site_file1=$ac_default_prefix/share/config.site
2560 ac_site_file2=$ac_default_prefix/etc/config.site
2561fi
2562for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2563do
2564 test "x$ac_site_file" = xNONE && continue
2565 if test -r "$ac_site_file"; then
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2567$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2568 sed 's/^/| /' "$ac_site_file" >&5
2569 . "$ac_site_file"
2570 fi
2571done
2572
2573if test -r "$cache_file"; then
2574 # Some versions of bash will fail to source /dev/null (special
2575 # files actually), so we avoid doing that.
2576 if test -f "$cache_file"; then
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2578$as_echo "$as_me: loading cache $cache_file" >&6;}
2579 case $cache_file in
2580 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2581 *) . "./$cache_file";;
2582 esac
2583 fi
2584else
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2586$as_echo "$as_me: creating cache $cache_file" >&6;}
2587 >$cache_file
2588fi
2589
2590# Check that the precious variables saved in the cache have kept the same
2591# value.
2592ac_cache_corrupted=false
2593for ac_var in $ac_precious_vars; do
2594 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2595 eval ac_new_set=\$ac_env_${ac_var}_set
2596 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2597 eval ac_new_val=\$ac_env_${ac_var}_value
2598 case $ac_old_set,$ac_new_set in
2599 set,)
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2601$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2602 ac_cache_corrupted=: ;;
2603 ,set)
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2605$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2606 ac_cache_corrupted=: ;;
2607 ,);;
2608 *)
2609 if test "x$ac_old_val" != "x$ac_new_val"; then
2610 # differences in whitespace do not lead to failure.
2611 ac_old_val_w=`echo x $ac_old_val`
2612 ac_new_val_w=`echo x $ac_new_val`
2613 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2615$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2616 ac_cache_corrupted=:
2617 else
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2619$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2620 eval $ac_var=\$ac_old_val
2621 fi
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2623$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2625$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2626 fi;;
2627 esac
2628 # Pass precious variables to config.status.
2629 if test "$ac_new_set" = set; then
2630 case $ac_new_val in
2631 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2632 *) ac_arg=$ac_var=$ac_new_val ;;
2633 esac
2634 case " $ac_configure_args " in
2635 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2636 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2637 esac
5464f5a1
NN
2638 fi
2639done
81ecdfbb
RW
2640if $ac_cache_corrupted; then
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2642$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2644$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2645 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2646fi
2647## -------------------- ##
2648## Main body of script. ##
2649## -------------------- ##
2650
2651ac_ext=c
2652ac_cpp='$CPP $CPPFLAGS'
2653ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2654ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2655ac_compiler_gnu=$ac_cv_c_compiler_gnu
2656
2657
2658
2659
2660
2661
2662
2663ac_aux_dir=
2664for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2665 for ac_t in install-sh install.sh shtool; do
2666 if test -f "$ac_dir/$ac_t"; then
2667 ac_aux_dir=$ac_dir
2668 ac_install_sh="$ac_aux_dir/$ac_t -c"
2669 break 2
2670 fi
2671 done
5464f5a1 2672done
81ecdfbb
RW
2673if test -z "$ac_aux_dir"; then
2674 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2675fi
2676
2677# These three variables are undocumented and unsupported,
2678# and are intended to be withdrawn in a future Autoconf release.
2679# They can cause serious problems if a builder's source tree is in a directory
2680# whose full name contains unusual characters.
2681ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2682ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2683ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2684
2685
2686# Make sure we can run config.sub.
2687$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2688 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2689
2690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2691$as_echo_n "checking build system type... " >&6; }
2692if test "${ac_cv_build+set}" = set; then :
2693 $as_echo_n "(cached) " >&6
2694else
2695 ac_build_alias=$build_alias
2696test "x$ac_build_alias" = x &&
2697 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2698test "x$ac_build_alias" = x &&
2699 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2700ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2701 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2702
2703fi
2704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2705$as_echo "$ac_cv_build" >&6; }
2706case $ac_cv_build in
2707*-*-*) ;;
2708*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2709esac
2710build=$ac_cv_build
2711ac_save_IFS=$IFS; IFS='-'
2712set x $ac_cv_build
2713shift
2714build_cpu=$1
2715build_vendor=$2
2716shift; shift
2717# Remember, the first character of IFS is used to create $*,
2718# except with old shells:
2719build_os=$*
2720IFS=$ac_save_IFS
2721case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5464f5a1 2722
81ecdfbb
RW
2723
2724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2725$as_echo_n "checking host system type... " >&6; }
2726if test "${ac_cv_host+set}" = set; then :
2727 $as_echo_n "(cached) " >&6
2728else
2729 if test "x$host_alias" = x; then
2730 ac_cv_host=$ac_cv_build
2731else
2732 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2733 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5464f5a1 2734fi
81ecdfbb 2735
5464f5a1 2736fi
81ecdfbb
RW
2737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2738$as_echo "$ac_cv_host" >&6; }
2739case $ac_cv_host in
2740*-*-*) ;;
2741*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2742esac
2743host=$ac_cv_host
2744ac_save_IFS=$IFS; IFS='-'
2745set x $ac_cv_host
2746shift
2747host_cpu=$1
2748host_vendor=$2
2749shift; shift
2750# Remember, the first character of IFS is used to create $*,
2751# except with old shells:
2752host_os=$*
2753IFS=$ac_save_IFS
2754case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2755
2756
2757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2758$as_echo_n "checking target system type... " >&6; }
2759if test "${ac_cv_target+set}" = set; then :
2760 $as_echo_n "(cached) " >&6
5464f5a1 2761else
81ecdfbb
RW
2762 if test "x$target_alias" = x; then
2763 ac_cv_target=$ac_cv_host
2764else
2765 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2766 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
5464f5a1
NN
2767fi
2768
2769fi
81ecdfbb
RW
2770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2771$as_echo "$ac_cv_target" >&6; }
2772case $ac_cv_target in
2773*-*-*) ;;
2774*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2775esac
2776target=$ac_cv_target
2777ac_save_IFS=$IFS; IFS='-'
2778set x $ac_cv_target
2779shift
2780target_cpu=$1
2781target_vendor=$2
2782shift; shift
2783# Remember, the first character of IFS is used to create $*,
2784# except with old shells:
2785target_os=$*
2786IFS=$ac_save_IFS
2787case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2788
2789
2790# The aliases save the names the user supplied, while $host etc.
2791# will get canonicalized.
2792test -n "$target_alias" &&
2793 test "$program_prefix$program_suffix$program_transform_name" = \
2794 NONENONEs,x,x, &&
2795 program_prefix=${target_alias}-
2796ac_ext=c
2797ac_cpp='$CPP $CPPFLAGS'
2798ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2799ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2800ac_compiler_gnu=$ac_cv_c_compiler_gnu
2801if test -n "$ac_tool_prefix"; then
2802 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2803set dummy ${ac_tool_prefix}gcc; ac_word=$2
2804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2805$as_echo_n "checking for $ac_word... " >&6; }
2806if test "${ac_cv_prog_CC+set}" = set; then :
2807 $as_echo_n "(cached) " >&6
5464f5a1 2808else
81ecdfbb
RW
2809 if test -n "$CC"; then
2810 ac_cv_prog_CC="$CC" # Let the user override the test.
5464f5a1
NN
2811else
2812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2813for as_dir in $PATH
2814do
2815 IFS=$as_save_IFS
2816 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2817 for ac_exec_ext in '' $ac_executable_extensions; do
2818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2819 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5464f5a1
NN
2821 break 2
2822 fi
2823done
81ecdfbb
RW
2824 done
2825IFS=$as_save_IFS
5464f5a1
NN
2826
2827fi
2828fi
81ecdfbb
RW
2829CC=$ac_cv_prog_CC
2830if test -n "$CC"; then
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2832$as_echo "$CC" >&6; }
5464f5a1 2833else
81ecdfbb
RW
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2835$as_echo "no" >&6; }
5464f5a1
NN
2836fi
2837
81ecdfbb
RW
2838
2839fi
2840if test -z "$ac_cv_prog_CC"; then
2841 ac_ct_CC=$CC
2842 # Extract the first word of "gcc", so it can be a program name with args.
2843set dummy gcc; ac_word=$2
2844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2845$as_echo_n "checking for $ac_word... " >&6; }
2846if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2847 $as_echo_n "(cached) " >&6
2848else
2849 if test -n "$ac_ct_CC"; then
2850 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2851else
2852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2853for as_dir in $PATH
2854do
2855 IFS=$as_save_IFS
2856 test -z "$as_dir" && as_dir=.
2857 for ac_exec_ext in '' $ac_executable_extensions; do
2858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2859 ac_cv_prog_ac_ct_CC="gcc"
2860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2861 break 2
2862 fi
2863done
2864 done
2865IFS=$as_save_IFS
2866
2867fi
2868fi
2869ac_ct_CC=$ac_cv_prog_ac_ct_CC
2870if test -n "$ac_ct_CC"; then
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2872$as_echo "$ac_ct_CC" >&6; }
2873else
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2875$as_echo "no" >&6; }
2876fi
2877
2878 if test "x$ac_ct_CC" = x; then
2879 CC=""
2880 else
2881 case $cross_compiling:$ac_tool_warned in
2882yes:)
2883{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2884$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2885ac_tool_warned=yes ;;
2886esac
2887 CC=$ac_ct_CC
2888 fi
2889else
2890 CC="$ac_cv_prog_CC"
2891fi
2892
2893if test -z "$CC"; then
2894 if test -n "$ac_tool_prefix"; then
2895 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2896set dummy ${ac_tool_prefix}cc; ac_word=$2
2897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2898$as_echo_n "checking for $ac_word... " >&6; }
2899if test "${ac_cv_prog_CC+set}" = set; then :
2900 $as_echo_n "(cached) " >&6
2901else
2902 if test -n "$CC"; then
2903 ac_cv_prog_CC="$CC" # Let the user override the test.
2904else
2905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2906for as_dir in $PATH
2907do
2908 IFS=$as_save_IFS
2909 test -z "$as_dir" && as_dir=.
2910 for ac_exec_ext in '' $ac_executable_extensions; do
2911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2912 ac_cv_prog_CC="${ac_tool_prefix}cc"
2913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2914 break 2
2915 fi
2916done
2917 done
2918IFS=$as_save_IFS
2919
5464f5a1 2920fi
81ecdfbb
RW
2921fi
2922CC=$ac_cv_prog_CC
2923if test -n "$CC"; then
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2925$as_echo "$CC" >&6; }
2926else
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2928$as_echo "no" >&6; }
2929fi
2930
5464f5a1 2931
81ecdfbb 2932 fi
5464f5a1
NN
2933fi
2934if test -z "$CC"; then
2935 # Extract the first word of "cc", so it can be a program name with args.
2936set dummy cc; ac_word=$2
81ecdfbb
RW
2937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2938$as_echo_n "checking for $ac_word... " >&6; }
2939if test "${ac_cv_prog_CC+set}" = set; then :
2940 $as_echo_n "(cached) " >&6
5464f5a1
NN
2941else
2942 if test -n "$CC"; then
2943 ac_cv_prog_CC="$CC" # Let the user override the test.
2944else
2945 ac_prog_rejected=no
2946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2947for as_dir in $PATH
2948do
2949 IFS=$as_save_IFS
2950 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2951 for ac_exec_ext in '' $ac_executable_extensions; do
2952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5464f5a1
NN
2953 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2954 ac_prog_rejected=yes
2955 continue
2956 fi
2957 ac_cv_prog_CC="cc"
81ecdfbb 2958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5464f5a1
NN
2959 break 2
2960 fi
2961done
81ecdfbb
RW
2962 done
2963IFS=$as_save_IFS
5464f5a1
NN
2964
2965if test $ac_prog_rejected = yes; then
2966 # We found a bogon in the path, so make sure we never use it.
2967 set dummy $ac_cv_prog_CC
2968 shift
2969 if test $# != 0; then
2970 # We chose a different compiler from the bogus one.
2971 # However, it has the same basename, so the bogon will be chosen
2972 # first if we set CC to just the basename; use the full file name.
2973 shift
2974 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2975 fi
2976fi
2977fi
2978fi
2979CC=$ac_cv_prog_CC
2980if test -n "$CC"; then
81ecdfbb
RW
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2982$as_echo "$CC" >&6; }
5464f5a1 2983else
81ecdfbb
RW
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2985$as_echo "no" >&6; }
5464f5a1
NN
2986fi
2987
81ecdfbb 2988
5464f5a1
NN
2989fi
2990if test -z "$CC"; then
2991 if test -n "$ac_tool_prefix"; then
81ecdfbb 2992 for ac_prog in cl.exe
5464f5a1
NN
2993 do
2994 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2995set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
2996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2997$as_echo_n "checking for $ac_word... " >&6; }
2998if test "${ac_cv_prog_CC+set}" = set; then :
2999 $as_echo_n "(cached) " >&6
5464f5a1
NN
3000else
3001 if test -n "$CC"; then
3002 ac_cv_prog_CC="$CC" # Let the user override the test.
3003else
3004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3005for as_dir in $PATH
3006do
3007 IFS=$as_save_IFS
3008 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3009 for ac_exec_ext in '' $ac_executable_extensions; do
3010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5464f5a1 3011 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 3012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5464f5a1
NN
3013 break 2
3014 fi
3015done
81ecdfbb
RW
3016 done
3017IFS=$as_save_IFS
5464f5a1
NN
3018
3019fi
3020fi
3021CC=$ac_cv_prog_CC
3022if test -n "$CC"; then
81ecdfbb
RW
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3024$as_echo "$CC" >&6; }
5464f5a1 3025else
81ecdfbb
RW
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3027$as_echo "no" >&6; }
5464f5a1
NN
3028fi
3029
81ecdfbb 3030
5464f5a1
NN
3031 test -n "$CC" && break
3032 done
3033fi
3034if test -z "$CC"; then
3035 ac_ct_CC=$CC
81ecdfbb 3036 for ac_prog in cl.exe
5464f5a1
NN
3037do
3038 # Extract the first word of "$ac_prog", so it can be a program name with args.
3039set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
3040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3041$as_echo_n "checking for $ac_word... " >&6; }
3042if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3043 $as_echo_n "(cached) " >&6
5464f5a1
NN
3044else
3045 if test -n "$ac_ct_CC"; then
3046 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3047else
3048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3049for as_dir in $PATH
3050do
3051 IFS=$as_save_IFS
3052 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3053 for ac_exec_ext in '' $ac_executable_extensions; do
3054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5464f5a1 3055 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 3056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5464f5a1
NN
3057 break 2
3058 fi
3059done
81ecdfbb
RW
3060 done
3061IFS=$as_save_IFS
5464f5a1
NN
3062
3063fi
3064fi
3065ac_ct_CC=$ac_cv_prog_ac_ct_CC
3066if test -n "$ac_ct_CC"; then
81ecdfbb
RW
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3068$as_echo "$ac_ct_CC" >&6; }
5464f5a1 3069else
81ecdfbb
RW
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3071$as_echo "no" >&6; }
5464f5a1
NN
3072fi
3073
81ecdfbb 3074
5464f5a1
NN
3075 test -n "$ac_ct_CC" && break
3076done
3077
81ecdfbb
RW
3078 if test "x$ac_ct_CC" = x; then
3079 CC=""
3080 else
3081 case $cross_compiling:$ac_tool_warned in
3082yes:)
3083{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3084$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3085ac_tool_warned=yes ;;
3086esac
3087 CC=$ac_ct_CC
3088 fi
5464f5a1
NN
3089fi
3090
3091fi
3092
3093
81ecdfbb
RW
3094test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3095$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3096as_fn_error "no acceptable C compiler found in \$PATH
3097See \`config.log' for more details." "$LINENO" 5; }
5464f5a1
NN
3098
3099# Provide some information about the compiler.
81ecdfbb
RW
3100$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3101set X $ac_compile
3102ac_compiler=$2
3103for ac_option in --version -v -V -qversion; do
3104 { { ac_try="$ac_compiler $ac_option >&5"
3105case "(($ac_try" in
3106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3107 *) ac_try_echo=$ac_try;;
3108esac
3109eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3110$as_echo "$ac_try_echo"; } >&5
3111 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5464f5a1 3112 ac_status=$?
81ecdfbb
RW
3113 if test -s conftest.err; then
3114 sed '10a\
3115... rest of stderr output deleted ...
3116 10q' conftest.err >conftest.er1
3117 cat conftest.er1 >&5
3118 rm -f conftest.er1 conftest.err
3119 fi
3120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3121 test $ac_status = 0; }
3122done
5464f5a1 3123
81ecdfbb 3124cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5464f5a1
NN
3125/* end confdefs.h. */
3126
3127int
3128main ()
3129{
3130
3131 ;
3132 return 0;
3133}
3134_ACEOF
3135ac_clean_files_save=$ac_clean_files
81ecdfbb 3136ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
5464f5a1
NN
3137# Try to create an executable without -o first, disregard a.out.
3138# It will help us diagnose broken compilers, and finding out an intuition
3139# of exeext.
81ecdfbb
RW
3140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3141$as_echo_n "checking for C compiler default output file name... " >&6; }
3142ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3143
3144# The possible output files:
3145ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3146
3147ac_rmfiles=
3148for ac_file in $ac_files
3149do
3150 case $ac_file in
3151 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3152 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3153 esac
3154done
3155rm -f $ac_rmfiles
3156
3157if { { ac_try="$ac_link_default"
3158case "(($ac_try" in
3159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3160 *) ac_try_echo=$ac_try;;
3161esac
3162eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3163$as_echo "$ac_try_echo"; } >&5
3164 (eval "$ac_link_default") 2>&5
3165 ac_status=$?
3166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3167 test $ac_status = 0; }; then :
3168 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3169# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3170# in a Makefile. We should not override ac_cv_exeext if it was cached,
3171# so that the user can short-circuit this test for compilers unknown to
3172# Autoconf.
3173for ac_file in $ac_files ''
5464f5a1
NN
3174do
3175 test -f "$ac_file" || continue
3176 case $ac_file in
81ecdfbb 3177 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5464f5a1
NN
3178 ;;
3179 [ab].out )
3180 # We found the default executable, but exeext='' is most
3181 # certainly right.
3182 break;;
3183 *.* )
81ecdfbb
RW
3184 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3185 then :; else
3186 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3187 fi
3188 # We set ac_cv_exeext here because the later test for it is not
3189 # safe: cross compilers may not add the suffix if given an `-o'
3190 # argument, so we may need to know it at that point already.
3191 # Even if this section looks crufty: it has the advantage of
3192 # actually working.
5464f5a1
NN
3193 break;;
3194 * )
3195 break;;
3196 esac
3197done
81ecdfbb
RW
3198test "$ac_cv_exeext" = no && ac_cv_exeext=
3199
5464f5a1 3200else
81ecdfbb
RW
3201 ac_file=''
3202fi
3203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3204$as_echo "$ac_file" >&6; }
3205if test -z "$ac_file"; then :
3206 $as_echo "$as_me: failed program was:" >&5
5464f5a1
NN
3207sed 's/^/| /' conftest.$ac_ext >&5
3208
81ecdfbb
RW
3209{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3210$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3211{ as_fn_set_status 77
3212as_fn_error "C compiler cannot create executables
3213See \`config.log' for more details." "$LINENO" 5; }; }
5464f5a1 3214fi
5464f5a1 3215ac_exeext=$ac_cv_exeext
5464f5a1 3216
81ecdfbb 3217# Check that the compiler produces executables we can run. If not, either
5464f5a1 3218# the compiler is broken, or we cross compile.
81ecdfbb
RW
3219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3220$as_echo_n "checking whether the C compiler works... " >&6; }
5464f5a1
NN
3221# If not cross compiling, check that we can run a simple program.
3222if test "$cross_compiling" != yes; then
3223 if { ac_try='./$ac_file'
81ecdfbb
RW
3224 { { case "(($ac_try" in
3225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3226 *) ac_try_echo=$ac_try;;
3227esac
3228eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3229$as_echo "$ac_try_echo"; } >&5
3230 (eval "$ac_try") 2>&5
5464f5a1 3231 ac_status=$?
81ecdfbb
RW
3232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3233 test $ac_status = 0; }; }; then
5464f5a1
NN
3234 cross_compiling=no
3235 else
3236 if test "$cross_compiling" = maybe; then
3237 cross_compiling=yes
3238 else
81ecdfbb
RW
3239 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3240$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3241as_fn_error "cannot run C compiled programs.
5464f5a1 3242If you meant to cross compile, use \`--host'.
81ecdfbb 3243See \`config.log' for more details." "$LINENO" 5; }
5464f5a1
NN
3244 fi
3245 fi
3246fi
81ecdfbb
RW
3247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3248$as_echo "yes" >&6; }
5464f5a1 3249
81ecdfbb 3250rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
5464f5a1 3251ac_clean_files=$ac_clean_files_save
81ecdfbb 3252# Check that the compiler produces executables we can run. If not, either
5464f5a1 3253# the compiler is broken, or we cross compile.
81ecdfbb
RW
3254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3255$as_echo_n "checking whether we are cross compiling... " >&6; }
3256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3257$as_echo "$cross_compiling" >&6; }
3258
3259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3260$as_echo_n "checking for suffix of executables... " >&6; }
3261if { { ac_try="$ac_link"
3262case "(($ac_try" in
3263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3264 *) ac_try_echo=$ac_try;;
3265esac
3266eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3267$as_echo "$ac_try_echo"; } >&5
3268 (eval "$ac_link") 2>&5
5464f5a1 3269 ac_status=$?
81ecdfbb
RW
3270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3271 test $ac_status = 0; }; then :
5464f5a1
NN
3272 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3273# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3274# work properly (i.e., refer to `conftest.exe'), while it won't with
3275# `rm'.
3276for ac_file in conftest.exe conftest conftest.*; do
3277 test -f "$ac_file" || continue
3278 case $ac_file in
81ecdfbb 3279 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5464f5a1 3280 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5464f5a1
NN
3281 break;;
3282 * ) break;;
3283 esac
3284done
3285else
81ecdfbb
RW
3286 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3287$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3288as_fn_error "cannot compute suffix of executables: cannot compile and link
3289See \`config.log' for more details." "$LINENO" 5; }
5464f5a1 3290fi
5464f5a1 3291rm -f conftest$ac_cv_exeext
81ecdfbb
RW
3292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3293$as_echo "$ac_cv_exeext" >&6; }
5464f5a1
NN
3294
3295rm -f conftest.$ac_ext
3296EXEEXT=$ac_cv_exeext
3297ac_exeext=$EXEEXT
81ecdfbb
RW
3298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3299$as_echo_n "checking for suffix of object files... " >&6; }
3300if test "${ac_cv_objext+set}" = set; then :
3301 $as_echo_n "(cached) " >&6
5464f5a1 3302else
81ecdfbb 3303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5464f5a1
NN
3304/* end confdefs.h. */
3305
3306int
3307main ()
3308{
3309
3310 ;
3311 return 0;
3312}
3313_ACEOF
3314rm -f conftest.o conftest.obj
81ecdfbb
RW
3315if { { ac_try="$ac_compile"
3316case "(($ac_try" in
3317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3318 *) ac_try_echo=$ac_try;;
3319esac
3320eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3321$as_echo "$ac_try_echo"; } >&5
3322 (eval "$ac_compile") 2>&5
3323 ac_status=$?
3324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3325 test $ac_status = 0; }; then :
3326 for ac_file in conftest.o conftest.obj conftest.*; do
3327 test -f "$ac_file" || continue;
5464f5a1 3328 case $ac_file in
81ecdfbb 3329 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5464f5a1
NN
3330 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3331 break;;
3332 esac
3333done
3334else
81ecdfbb 3335 $as_echo "$as_me: failed program was:" >&5
5464f5a1
NN
3336sed 's/^/| /' conftest.$ac_ext >&5
3337
81ecdfbb
RW
3338{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3339$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3340as_fn_error "cannot compute suffix of object files: cannot compile
3341See \`config.log' for more details." "$LINENO" 5; }
5464f5a1 3342fi
5464f5a1
NN
3343rm -f conftest.$ac_cv_objext conftest.$ac_ext
3344fi
81ecdfbb
RW
3345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3346$as_echo "$ac_cv_objext" >&6; }
5464f5a1
NN
3347OBJEXT=$ac_cv_objext
3348ac_objext=$OBJEXT
81ecdfbb
RW
3349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3350$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3351if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3352 $as_echo_n "(cached) " >&6
5464f5a1 3353else
81ecdfbb 3354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5464f5a1
NN
3355/* end confdefs.h. */
3356
3357int
3358main ()
3359{
3360#ifndef __GNUC__
3361 choke me
3362#endif
3363
3364 ;
3365 return 0;
3366}
3367_ACEOF
81ecdfbb 3368if ac_fn_c_try_compile "$LINENO"; then :
5464f5a1
NN
3369 ac_compiler_gnu=yes
3370else
81ecdfbb 3371 ac_compiler_gnu=no
5464f5a1 3372fi
81ecdfbb 3373rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5464f5a1
NN
3374ac_cv_c_compiler_gnu=$ac_compiler_gnu
3375
3376fi
81ecdfbb
RW
3377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3378$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3379if test $ac_compiler_gnu = yes; then
3380 GCC=yes
3381else
3382 GCC=
3383fi
5464f5a1
NN
3384ac_test_CFLAGS=${CFLAGS+set}
3385ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
3386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3387$as_echo_n "checking whether $CC accepts -g... " >&6; }
3388if test "${ac_cv_prog_cc_g+set}" = set; then :
3389 $as_echo_n "(cached) " >&6
3390else
3391 ac_save_c_werror_flag=$ac_c_werror_flag
3392 ac_c_werror_flag=yes
3393 ac_cv_prog_cc_g=no
3394 CFLAGS="-g"
3395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5464f5a1
NN
3396/* end confdefs.h. */
3397
3398int
3399main ()
3400{
3401
3402 ;
3403 return 0;
3404}
3405_ACEOF
81ecdfbb 3406if ac_fn_c_try_compile "$LINENO"; then :
5464f5a1
NN
3407 ac_cv_prog_cc_g=yes
3408else
81ecdfbb
RW
3409 CFLAGS=""
3410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3411/* end confdefs.h. */
5464f5a1 3412
81ecdfbb
RW
3413int
3414main ()
3415{
3416
3417 ;
3418 return 0;
3419}
3420_ACEOF
3421if ac_fn_c_try_compile "$LINENO"; then :
3422
3423else
3424 ac_c_werror_flag=$ac_save_c_werror_flag
3425 CFLAGS="-g"
3426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3427/* end confdefs.h. */
3428
3429int
3430main ()
3431{
3432
3433 ;
3434 return 0;
3435}
3436_ACEOF
3437if ac_fn_c_try_compile "$LINENO"; then :
3438 ac_cv_prog_cc_g=yes
3439fi
3440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5464f5a1 3441fi
81ecdfbb 3442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5464f5a1 3443fi
81ecdfbb
RW
3444rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3445 ac_c_werror_flag=$ac_save_c_werror_flag
3446fi
3447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3448$as_echo "$ac_cv_prog_cc_g" >&6; }
5464f5a1
NN
3449if test "$ac_test_CFLAGS" = set; then
3450 CFLAGS=$ac_save_CFLAGS
3451elif test $ac_cv_prog_cc_g = yes; then
3452 if test "$GCC" = yes; then
3453 CFLAGS="-g -O2"
3454 else
3455 CFLAGS="-g"
3456 fi
3457else
3458 if test "$GCC" = yes; then
3459 CFLAGS="-O2"
3460 else
3461 CFLAGS=
3462 fi
3463fi
81ecdfbb
RW
3464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3465$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3466if test "${ac_cv_prog_cc_c89+set}" = set; then :
3467 $as_echo_n "(cached) " >&6
5464f5a1 3468else
81ecdfbb 3469 ac_cv_prog_cc_c89=no
5464f5a1 3470ac_save_CC=$CC
81ecdfbb 3471cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5464f5a1
NN
3472/* end confdefs.h. */
3473#include <stdarg.h>
3474#include <stdio.h>
3475#include <sys/types.h>
3476#include <sys/stat.h>
3477/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3478struct buf { int x; };
3479FILE * (*rcsopen) (struct buf *, struct stat *, int);
3480static char *e (p, i)
3481 char **p;
3482 int i;
3483{
3484 return p[i];
3485}
3486static char *f (char * (*g) (char **, int), char **p, ...)
3487{
3488 char *s;
3489 va_list v;
3490 va_start (v,p);
3491 s = g (p, va_arg (v,int));
3492 va_end (v);
3493 return s;
3494}
3495
3496/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3497 function prototypes and stuff, but not '\xHH' hex character constants.
3498 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 3499 as 'x'. The following induces an error, until -std is added to get
5464f5a1
NN
3500 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3501 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 3502 that's true only with -std. */
5464f5a1
NN
3503int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3504
81ecdfbb
RW
3505/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3506 inside strings and character constants. */
3507#define FOO(x) 'x'
3508int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3509
5464f5a1
NN
3510int test (int i, double x);
3511struct s1 {int (*f) (int a);};
3512struct s2 {int (*f) (double a);};
3513int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3514int argc;
3515char **argv;
3516int
3517main ()
3518{
3519return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3520 ;
3521 return 0;
3522}
3523_ACEOF
81ecdfbb
RW
3524for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3525 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5464f5a1
NN
3526do
3527 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
3528 if ac_fn_c_try_compile "$LINENO"; then :
3529 ac_cv_prog_cc_c89=$ac_arg
5464f5a1 3530fi
81ecdfbb
RW
3531rm -f core conftest.err conftest.$ac_objext
3532 test "x$ac_cv_prog_cc_c89" != "xno" && break
5464f5a1 3533done
81ecdfbb 3534rm -f conftest.$ac_ext
5464f5a1
NN
3535CC=$ac_save_CC
3536
3537fi
81ecdfbb
RW
3538# AC_CACHE_VAL
3539case "x$ac_cv_prog_cc_c89" in
3540 x)
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3542$as_echo "none needed" >&6; } ;;
3543 xno)
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3545$as_echo "unsupported" >&6; } ;;
5464f5a1 3546 *)
81ecdfbb
RW
3547 CC="$CC $ac_cv_prog_cc_c89"
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3549$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5464f5a1 3550esac
81ecdfbb 3551if test "x$ac_cv_prog_cc_c89" != xno; then :
5464f5a1
NN
3552
3553fi
5464f5a1 3554
5464f5a1
NN
3555ac_ext=c
3556ac_cpp='$CPP $CPPFLAGS'
3557ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3558ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3559ac_compiler_gnu=$ac_cv_c_compiler_gnu
3560
3561
81ecdfbb
RW
3562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3563$as_echo_n "checking for library containing strerror... " >&6; }
3564if test "${ac_cv_search_strerror+set}" = set; then :
3565 $as_echo_n "(cached) " >&6
5464f5a1 3566else
f5385ebf 3567 ac_func_search_save_LIBS=$LIBS
81ecdfbb 3568cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5464f5a1
NN
3569/* end confdefs.h. */
3570
81ecdfbb
RW
3571/* Override any GCC internal prototype to avoid an error.
3572 Use char because int might match the return type of a GCC
3573 builtin and then its argument prototype would still apply. */
5464f5a1
NN
3574#ifdef __cplusplus
3575extern "C"
3576#endif
5464f5a1
NN
3577char strerror ();
3578int
3579main ()
3580{
81ecdfbb 3581return strerror ();
5464f5a1
NN
3582 ;
3583 return 0;
3584}
3585_ACEOF
81ecdfbb
RW
3586for ac_lib in '' cposix; do
3587 if test -z "$ac_lib"; then
3588 ac_res="none required"
3589 else
3590 ac_res=-l$ac_lib
f5385ebf 3591 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
81ecdfbb
RW
3592 fi
3593 if ac_fn_c_try_link "$LINENO"; then :
3594 ac_cv_search_strerror=$ac_res
3595fi
3596rm -f core conftest.err conftest.$ac_objext \
3597 conftest$ac_exeext
3598 if test "${ac_cv_search_strerror+set}" = set; then :
3599 break
3600fi
3601done
3602if test "${ac_cv_search_strerror+set}" = set; then :
f5385ebf 3603
f5385ebf 3604else
81ecdfbb 3605 ac_cv_search_strerror=no
5464f5a1 3606fi
81ecdfbb 3607rm conftest.$ac_ext
f5385ebf
AM
3608LIBS=$ac_func_search_save_LIBS
3609fi
81ecdfbb
RW
3610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3611$as_echo "$ac_cv_search_strerror" >&6; }
3612ac_res=$ac_cv_search_strerror
3613if test "$ac_res" != no; then :
3614 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5464f5a1 3615
f5385ebf 3616fi
5464f5a1
NN
3617
3618
81ecdfbb
RW
3619am__api_version='1.11'
3620
5464f5a1
NN
3621# Find a good install program. We prefer a C program (faster),
3622# so one script is as good as another. But avoid the broken or
3623# incompatible versions:
3624# SysV /etc/install, /usr/sbin/install
3625# SunOS /usr/etc/install
3626# IRIX /sbin/install
3627# AIX /bin/install
3628# AmigaOS /C/install, which installs bootblocks on floppy discs
252b5132
RH
3629# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3630# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3631# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5464f5a1 3632# OS/2's system install, which has a completely different semantic
252b5132 3633# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 3634# Reject install programs that cannot install multiple files.
81ecdfbb
RW
3635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3636$as_echo_n "checking for a BSD-compatible install... " >&6; }
252b5132 3637if test -z "$INSTALL"; then
81ecdfbb
RW
3638if test "${ac_cv_path_install+set}" = set; then :
3639 $as_echo_n "(cached) " >&6
252b5132 3640else
5464f5a1
NN
3641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3642for as_dir in $PATH
3643do
3644 IFS=$as_save_IFS
3645 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3646 # Account for people who put trailing slashes in PATH elements.
3647case $as_dir/ in #((
3648 ./ | .// | /[cC]/* | \
5464f5a1 3649 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
81ecdfbb 3650 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5464f5a1
NN
3651 /usr/ucb/* ) ;;
3652 *)
3653 # OSF1 and SCO ODT 3.0 have their own names for install.
3654 # Don't use installbsd from OSF since it installs stuff as root
3655 # by default.
3656 for ac_prog in ginstall scoinst install; do
3657 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb 3658 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
252b5132 3659 if test $ac_prog = install &&
5464f5a1 3660 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
252b5132
RH
3661 # AIX install. It has an incompatible calling convention.
3662 :
5464f5a1
NN
3663 elif test $ac_prog = install &&
3664 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3665 # program-specific install script used by HP pwplus--don't use.
3666 :
252b5132 3667 else
58c85be7
RW
3668 rm -rf conftest.one conftest.two conftest.dir
3669 echo one > conftest.one
3670 echo two > conftest.two
3671 mkdir conftest.dir
3672 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3673 test -s conftest.one && test -s conftest.two &&
3674 test -s conftest.dir/conftest.one &&
3675 test -s conftest.dir/conftest.two
3676 then
3677 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3678 break 3
3679 fi
252b5132
RH
3680 fi
3681 fi
3682 done
5464f5a1
NN
3683 done
3684 ;;
3685esac
81ecdfbb
RW
3686
3687 done
3688IFS=$as_save_IFS
5464f5a1 3689
58c85be7 3690rm -rf conftest.one conftest.two conftest.dir
252b5132
RH
3691
3692fi
3693 if test "${ac_cv_path_install+set}" = set; then
5464f5a1 3694 INSTALL=$ac_cv_path_install
252b5132 3695 else
58c85be7
RW
3696 # As a last resort, use the slow shell script. Don't cache a
3697 # value for INSTALL within a source directory, because that will
252b5132 3698 # break other packages using the cache if that directory is
58c85be7 3699 # removed, or if the value is a relative name.
5464f5a1 3700 INSTALL=$ac_install_sh
252b5132
RH
3701 fi
3702fi
81ecdfbb
RW
3703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3704$as_echo "$INSTALL" >&6; }
252b5132
RH
3705
3706# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3707# It thinks the first close brace ends the variable substitution.
3708test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3709
5464f5a1 3710test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
3711
3712test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3713
81ecdfbb
RW
3714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3715$as_echo_n "checking whether build environment is sane... " >&6; }
252b5132
RH
3716# Just in case
3717sleep 1
f5385ebf 3718echo timestamp > conftest.file
81ecdfbb
RW
3719# Reject unsafe characters in $srcdir or the absolute working directory
3720# name. Accept space and tab only in the latter.
3721am_lf='
3722'
3723case `pwd` in
3724 *[\\\"\#\$\&\'\`$am_lf]*)
3725 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3726esac
3727case $srcdir in
3728 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3729 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3730esac
3731
252b5132
RH
3732# Do `set' in a subshell so we don't clobber the current shell's
3733# arguments. Must try -L first in case configure is actually a
3734# symlink; some systems play weird games with the mod time of symlinks
3735# (eg FreeBSD returns the mod time of the symlink's containing
3736# directory).
3737if (
81ecdfbb 3738 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
252b5132
RH
3739 if test "$*" = "X"; then
3740 # -L didn't work.
81ecdfbb 3741 set X `ls -t "$srcdir/configure" conftest.file`
252b5132 3742 fi
f5385ebf
AM
3743 rm -f conftest.file
3744 if test "$*" != "X $srcdir/configure conftest.file" \
3745 && test "$*" != "X conftest.file $srcdir/configure"; then
252b5132
RH
3746
3747 # If neither matched, then we have a broken ls. This can happen
3748 # if, for instance, CONFIG_SHELL is bash and it inherits a
3749 # broken ls alias from the environment. This has actually
3750 # happened. Such a system could not be considered "sane".
81ecdfbb
RW
3751 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3752alias in your environment" "$LINENO" 5
252b5132
RH
3753 fi
3754
f5385ebf 3755 test "$2" = conftest.file
252b5132
RH
3756 )
3757then
3758 # Ok.
3759 :
3760else
81ecdfbb
RW
3761 as_fn_error "newly created file is older than distributed files!
3762Check your system clock" "$LINENO" 5
252b5132 3763fi
81ecdfbb
RW
3764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3765$as_echo "yes" >&6; }
252b5132 3766test "$program_prefix" != NONE &&
81ecdfbb 3767 program_transform_name="s&^&$program_prefix&;$program_transform_name"
252b5132
RH
3768# Use a double $ so make ignores it.
3769test "$program_suffix" != NONE &&
81ecdfbb
RW
3770 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3771# Double any \ or $.
5464f5a1 3772# By default was `s,x,x', remove it if useless.
81ecdfbb
RW
3773ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3774program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
5464f5a1 3775
f5385ebf
AM
3776# expand $ac_aux_dir to an absolute path
3777am_aux_dir=`cd $ac_aux_dir && pwd`
3778
81ecdfbb
RW
3779if test x"${MISSING+set}" != xset; then
3780 case $am_aux_dir in
3781 *\ * | *\ *)
3782 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3783 *)
3784 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3785 esac
3786fi
f5385ebf
AM
3787# Use eval to expand $SHELL
3788if eval "$MISSING --run true"; then
3789 am_missing_run="$MISSING --run "
3790else
3791 am_missing_run=
81ecdfbb
RW
3792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3793$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3794fi
3795
3796if test x"${install_sh}" != xset; then
3797 case $am_aux_dir in
3798 *\ * | *\ *)
3799 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3800 *)
3801 install_sh="\${SHELL} $am_aux_dir/install-sh"
3802 esac
3803fi
3804
3805# Installed binaries are usually stripped using `strip' when the user
3806# run `make install-strip'. However `strip' might not be the right
3807# tool to use in cross-compilation environments, therefore Automake
3808# will honor the `STRIP' environment variable to overrule this program.
3809if test "$cross_compiling" != no; then
3810 if test -n "$ac_tool_prefix"; then
3811 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3812set dummy ${ac_tool_prefix}strip; ac_word=$2
3813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3814$as_echo_n "checking for $ac_word... " >&6; }
3815if test "${ac_cv_prog_STRIP+set}" = set; then :
3816 $as_echo_n "(cached) " >&6
3817else
3818 if test -n "$STRIP"; then
3819 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3820else
3821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3822for as_dir in $PATH
3823do
3824 IFS=$as_save_IFS
3825 test -z "$as_dir" && as_dir=.
3826 for ac_exec_ext in '' $ac_executable_extensions; do
3827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3828 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3830 break 2
3831 fi
3832done
3833 done
3834IFS=$as_save_IFS
3835
3836fi
3837fi
3838STRIP=$ac_cv_prog_STRIP
3839if test -n "$STRIP"; then
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3841$as_echo "$STRIP" >&6; }
3842else
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3844$as_echo "no" >&6; }
3845fi
3846
3847
3848fi
3849if test -z "$ac_cv_prog_STRIP"; then
3850 ac_ct_STRIP=$STRIP
3851 # Extract the first word of "strip", so it can be a program name with args.
3852set dummy strip; ac_word=$2
3853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3854$as_echo_n "checking for $ac_word... " >&6; }
3855if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3856 $as_echo_n "(cached) " >&6
3857else
3858 if test -n "$ac_ct_STRIP"; then
3859 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3860else
3861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3862for as_dir in $PATH
3863do
3864 IFS=$as_save_IFS
3865 test -z "$as_dir" && as_dir=.
3866 for ac_exec_ext in '' $ac_executable_extensions; do
3867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3868 ac_cv_prog_ac_ct_STRIP="strip"
3869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3870 break 2
3871 fi
3872done
3873 done
3874IFS=$as_save_IFS
3875
3876fi
3877fi
3878ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3879if test -n "$ac_ct_STRIP"; then
3880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3881$as_echo "$ac_ct_STRIP" >&6; }
3882else
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3884$as_echo "no" >&6; }
3885fi
3886
3887 if test "x$ac_ct_STRIP" = x; then
3888 STRIP=":"
3889 else
3890 case $cross_compiling:$ac_tool_warned in
3891yes:)
3892{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3893$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3894ac_tool_warned=yes ;;
3895esac
3896 STRIP=$ac_ct_STRIP
3897 fi
3898else
3899 STRIP="$ac_cv_prog_STRIP"
3900fi
3901
3902fi
3903INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3904
3905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3906$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3907if test -z "$MKDIR_P"; then
3908 if test "${ac_cv_path_mkdir+set}" = set; then :
3909 $as_echo_n "(cached) " >&6
3910else
3911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3912for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3913do
3914 IFS=$as_save_IFS
3915 test -z "$as_dir" && as_dir=.
3916 for ac_prog in mkdir gmkdir; do
3917 for ac_exec_ext in '' $ac_executable_extensions; do
3918 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3919 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3920 'mkdir (GNU coreutils) '* | \
3921 'mkdir (coreutils) '* | \
3922 'mkdir (fileutils) '4.1*)
3923 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3924 break 3;;
3925 esac
3926 done
3927 done
f5385ebf 3928 done
81ecdfbb
RW
3929IFS=$as_save_IFS
3930
3931fi
3932
3933 if test "${ac_cv_path_mkdir+set}" = set; then
3934 MKDIR_P="$ac_cv_path_mkdir -p"
f5385ebf 3935 else
81ecdfbb
RW
3936 # As a last resort, use the slow shell script. Don't cache a
3937 # value for MKDIR_P within a source directory, because that will
3938 # break other packages using the cache if that directory is
3939 # removed, or if the value is a relative name.
3940 test -d ./--version && rmdir ./--version
3941 MKDIR_P="$ac_install_sh -d"
f5385ebf
AM
3942 fi
3943fi
81ecdfbb
RW
3944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3945$as_echo "$MKDIR_P" >&6; }
3946
3947mkdir_p="$MKDIR_P"
3948case $mkdir_p in
3949 [\\/$]* | ?:[\\/]*) ;;
3950 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3951esac
f5385ebf
AM
3952
3953for ac_prog in gawk mawk nawk awk
3954do
3955 # Extract the first word of "$ac_prog", so it can be a program name with args.
3956set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
3957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3958$as_echo_n "checking for $ac_word... " >&6; }
3959if test "${ac_cv_prog_AWK+set}" = set; then :
3960 $as_echo_n "(cached) " >&6
f5385ebf
AM
3961else
3962 if test -n "$AWK"; then
3963 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3964else
3965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3966for as_dir in $PATH
3967do
3968 IFS=$as_save_IFS
3969 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3970 for ac_exec_ext in '' $ac_executable_extensions; do
3971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
f5385ebf 3972 ac_cv_prog_AWK="$ac_prog"
81ecdfbb 3973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
f5385ebf
AM
3974 break 2
3975 fi
3976done
81ecdfbb
RW
3977 done
3978IFS=$as_save_IFS
f5385ebf
AM
3979
3980fi
3981fi
3982AWK=$ac_cv_prog_AWK
3983if test -n "$AWK"; then
81ecdfbb
RW
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3985$as_echo "$AWK" >&6; }
f5385ebf 3986else
81ecdfbb
RW
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3988$as_echo "no" >&6; }
f5385ebf
AM
3989fi
3990
81ecdfbb 3991
f5385ebf
AM
3992 test -n "$AWK" && break
3993done
3994
81ecdfbb
RW
3995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3996$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3997set x ${MAKE-make}
3998ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3999if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4000 $as_echo_n "(cached) " >&6
5464f5a1
NN
4001else
4002 cat >conftest.make <<\_ACEOF
81ecdfbb 4003SHELL = /bin/sh
252b5132 4004all:
81ecdfbb 4005 @echo '@@@%%%=$(MAKE)=@@@%%%'
5464f5a1 4006_ACEOF
252b5132 4007# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
81ecdfbb
RW
4008case `${MAKE-make} -f conftest.make 2>/dev/null` in
4009 *@@@%%%=?*=@@@%%%*)
4010 eval ac_cv_prog_make_${ac_make}_set=yes;;
4011 *)
4012 eval ac_cv_prog_make_${ac_make}_set=no;;
4013esac
5464f5a1 4014rm -f conftest.make
252b5132 4015fi
81ecdfbb
RW
4016if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4018$as_echo "yes" >&6; }
252b5132
RH
4019 SET_MAKE=
4020else
81ecdfbb
RW
4021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4022$as_echo "no" >&6; }
252b5132
RH
4023 SET_MAKE="MAKE=${MAKE-make}"
4024fi
4025
f5385ebf
AM
4026rm -rf .tst 2>/dev/null
4027mkdir .tst 2>/dev/null
4028if test -d .tst; then
4029 am__leading_dot=.
4030else
4031 am__leading_dot=_
4032fi
4033rmdir .tst 2>/dev/null
4034
4035DEPDIR="${am__leading_dot}deps"
4036
81ecdfbb 4037ac_config_commands="$ac_config_commands depfiles"
f5385ebf
AM
4038
4039
4040am_make=${MAKE-make}
4041cat > confinc << 'END'
4042am__doit:
81ecdfbb 4043 @echo this is the am__doit target
f5385ebf
AM
4044.PHONY: am__doit
4045END
4046# If we don't find an include directive, just comment out the code.
81ecdfbb
RW
4047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4048$as_echo_n "checking for style of include used by $am_make... " >&6; }
f5385ebf
AM
4049am__include="#"
4050am__quote=
4051_am_result=none
4052# First try GNU make style include.
4053echo "include confinc" > confmf
81ecdfbb
RW
4054# Ignore all kinds of additional output from `make'.
4055case `$am_make -s -f confmf 2> /dev/null` in #(
4056*the\ am__doit\ target*)
4057 am__include=include
4058 am__quote=
4059 _am_result=GNU
4060 ;;
4061esac
f5385ebf
AM
4062# Now try BSD make style include.
4063if test "$am__include" = "#"; then
4064 echo '.include "confinc"' > confmf
81ecdfbb
RW
4065 case `$am_make -s -f confmf 2> /dev/null` in #(
4066 *the\ am__doit\ target*)
4067 am__include=.include
4068 am__quote="\""
4069 _am_result=BSD
4070 ;;
4071 esac
f5385ebf
AM
4072fi
4073
4074
81ecdfbb
RW
4075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4076$as_echo "$_am_result" >&6; }
f5385ebf
AM
4077rm -f confinc confmf
4078
81ecdfbb
RW
4079# Check whether --enable-dependency-tracking was given.
4080if test "${enable_dependency_tracking+set}" = set; then :
4081 enableval=$enable_dependency_tracking;
4082fi
f5385ebf 4083
f5385ebf
AM
4084if test "x$enable_dependency_tracking" != xno; then
4085 am_depcomp="$ac_aux_dir/depcomp"
4086 AMDEPBACKSLASH='\'
4087fi
81ecdfbb 4088 if test "x$enable_dependency_tracking" != xno; then
f5385ebf
AM
4089 AMDEP_TRUE=
4090 AMDEP_FALSE='#'
4091else
4092 AMDEP_TRUE='#'
4093 AMDEP_FALSE=
4094fi
6be7c12c 4095
252b5132 4096
81ecdfbb
RW
4097if test "`cd $srcdir && pwd`" != "`pwd`"; then
4098 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4099 # is not polluted with repeated "-I."
4100 am__isrc=' -I$(srcdir)'
4101 # test to see if srcdir already configured
4102 if test -f $srcdir/config.status; then
4103 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4104 fi
252b5132 4105fi
5464f5a1 4106
f5385ebf
AM
4107# test whether we have cygpath
4108if test -z "$CYGPATH_W"; then
4109 if (cygpath --version) >/dev/null 2>/dev/null; then
4110 CYGPATH_W='cygpath -w'
4111 else
4112 CYGPATH_W=echo
4113 fi
4114fi
4115
4116
4117# Define the identity of the package.
4118 PACKAGE=bfd
ae5a3597 4119 VERSION=2.19.51
f5385ebf
AM
4120
4121
5464f5a1 4122cat >>confdefs.h <<_ACEOF
252b5132 4123#define PACKAGE "$PACKAGE"
5464f5a1 4124_ACEOF
252b5132 4125
5464f5a1
NN
4126
4127cat >>confdefs.h <<_ACEOF
252b5132 4128#define VERSION "$VERSION"
5464f5a1 4129_ACEOF
252b5132 4130
f5385ebf
AM
4131# Some tools Automake needs.
4132
4133ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4134
4135
4136AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4137
4138
4139AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4140
4141
4142AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4143
4144
4145MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
6be7c12c 4146
f5385ebf
AM
4147# We need awk for the "check" target. The system "awk" is bad on
4148# some platforms.
4149# Always define AMTAR for backward compatibility.
4150
4151AMTAR=${AMTAR-"${am_missing_run}tar"}
4152
4153am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4154
252b5132 4155
f5385ebf
AM
4156
4157
4158depcc="$CC" am_compiler_list=
4159
81ecdfbb
RW
4160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4161$as_echo_n "checking dependency style of $depcc... " >&6; }
4162if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4163 $as_echo_n "(cached) " >&6
252b5132 4164else
f5385ebf
AM
4165 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4166 # We make a subdir and do the tests there. Otherwise we can end up
4167 # making bogus files that we don't know about and never remove. For
4168 # instance it was reported that on HP-UX the gcc test will end up
4169 # making a dummy file named `D' -- because `-MD' means `put the output
4170 # in D'.
4171 mkdir conftest.dir
4172 # Copy depcomp to subdir because otherwise we won't find it if we're
4173 # using a relative directory.
4174 cp "$am_depcomp" conftest.dir
4175 cd conftest.dir
4176 # We will build objects and dependencies in a subdirectory because
4177 # it helps to detect inapplicable dependency modes. For instance
4178 # both Tru64's cc and ICC support -MD to output dependencies as a
4179 # side effect of compilation, but ICC will put the dependencies in
4180 # the current directory while Tru64 will put them in the object
4181 # directory.
4182 mkdir sub
4183
4184 am_cv_CC_dependencies_compiler_type=none
4185 if test "$am_compiler_list" = ""; then
4186 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4187 fi
81ecdfbb
RW
4188 am__universal=false
4189 case " $depcc " in #(
4190 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4191 esac
4192
f5385ebf
AM
4193 for depmode in $am_compiler_list; do
4194 # Setup a source with many dependencies, because some compilers
4195 # like to wrap large dependency lists on column 80 (with \), and
4196 # we should not choose a depcomp mode which is confused by this.
4197 #
4198 # We need to recreate these files for each test, as the compiler may
4199 # overwrite some of them when testing with obscure command lines.
4200 # This happens at least with the AIX C compiler.
4201 : > sub/conftest.c
4202 for i in 1 2 3 4 5 6; do
4203 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4204 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4205 # Solaris 8's {/usr,}/bin/sh.
4206 touch sub/conftst$i.h
4207 done
4208 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4209
81ecdfbb
RW
4210 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4211 # mode. It turns out that the SunPro C++ compiler does not properly
4212 # handle `-M -o', and we need to detect this. Also, some Intel
4213 # versions had trouble with output in subdirs
4214 am__obj=sub/conftest.${OBJEXT-o}
4215 am__minus_obj="-o $am__obj"
f5385ebf 4216 case $depmode in
81ecdfbb
RW
4217 gcc)
4218 # This depmode causes a compiler race in universal mode.
4219 test "$am__universal" = false || continue
4220 ;;
f5385ebf
AM
4221 nosideeffect)
4222 # after this tag, mechanisms are not by side-effect, so they'll
4223 # only be used when explicitly requested
4224 if test "x$enable_dependency_tracking" = xyes; then
4225 continue
4226 else
4227 break
4228 fi
4229 ;;
81ecdfbb
RW
4230 msvisualcpp | msvcmsys)
4231 # This compiler won't grok `-c -o', but also, the minuso test has
4232 # not run yet. These depmodes are late enough in the game, and
4233 # so weak that their functioning should not be impacted.
4234 am__obj=conftest.${OBJEXT-o}
4235 am__minus_obj=
4236 ;;
f5385ebf
AM
4237 none) break ;;
4238 esac
f5385ebf 4239 if depmode=$depmode \
81ecdfbb 4240 source=sub/conftest.c object=$am__obj \
f5385ebf 4241 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
81ecdfbb 4242 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
f5385ebf 4243 >/dev/null 2>conftest.err &&
81ecdfbb 4244 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
f5385ebf 4245 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
81ecdfbb 4246 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
f5385ebf
AM
4247 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4248 # icc doesn't choke on unknown options, it will just issue warnings
4249 # or remarks (even with -Werror). So we grep stderr for any message
4250 # that says an option was ignored or not supported.
4251 # When given -MP, icc 7.0 and 7.1 complain thusly:
4252 # icc: Command line warning: ignoring option '-M'; no argument required
4253 # The diagnosis changed in icc 8.0:
4254 # icc: Command line remark: option '-MP' not supported
4255 if (grep 'ignoring option' conftest.err ||
4256 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4257 am_cv_CC_dependencies_compiler_type=$depmode
4258 break
4259 fi
4260 fi
4261 done
4262
4263 cd ..
4264 rm -rf conftest.dir
4265else
4266 am_cv_CC_dependencies_compiler_type=none
4267fi
4268
252b5132 4269fi
81ecdfbb
RW
4270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4271$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
f5385ebf 4272CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
252b5132 4273
81ecdfbb 4274 if
f5385ebf
AM
4275 test "x$enable_dependency_tracking" != xno \
4276 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4277 am__fastdepCC_TRUE=
4278 am__fastdepCC_FALSE='#'
252b5132 4279else
f5385ebf
AM
4280 am__fastdepCC_TRUE='#'
4281 am__fastdepCC_FALSE=
252b5132
RH
4282fi
4283
6be7c12c 4284
e43d48cc 4285
f5385ebf 4286
5464f5a1
NN
4287if test -n "$ac_tool_prefix"; then
4288 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
252b5132 4289set dummy ${ac_tool_prefix}ar; ac_word=$2
81ecdfbb
RW
4290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4291$as_echo_n "checking for $ac_word... " >&6; }
4292if test "${ac_cv_prog_AR+set}" = set; then :
4293 $as_echo_n "(cached) " >&6
252b5132
RH
4294else
4295 if test -n "$AR"; then
4296 ac_cv_prog_AR="$AR" # Let the user override the test.
4297else
5464f5a1
NN
4298as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4299for as_dir in $PATH
4300do
4301 IFS=$as_save_IFS
4302 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4303 for ac_exec_ext in '' $ac_executable_extensions; do
4304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5464f5a1 4305 ac_cv_prog_AR="${ac_tool_prefix}ar"
81ecdfbb 4306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5464f5a1
NN
4307 break 2
4308 fi
4309done
81ecdfbb
RW
4310 done
4311IFS=$as_save_IFS
5464f5a1 4312
252b5132
RH
4313fi
4314fi
5464f5a1 4315AR=$ac_cv_prog_AR
252b5132 4316if test -n "$AR"; then
81ecdfbb
RW
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4318$as_echo "$AR" >&6; }
252b5132 4319else
81ecdfbb
RW
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4321$as_echo "no" >&6; }
5464f5a1
NN
4322fi
4323
81ecdfbb 4324
252b5132 4325fi
5464f5a1
NN
4326if test -z "$ac_cv_prog_AR"; then
4327 ac_ct_AR=$AR
4328 # Extract the first word of "ar", so it can be a program name with args.
4329set dummy ar; ac_word=$2
81ecdfbb
RW
4330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4331$as_echo_n "checking for $ac_word... " >&6; }
4332if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4333 $as_echo_n "(cached) " >&6
5464f5a1
NN
4334else
4335 if test -n "$ac_ct_AR"; then
4336 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4337else
4338as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4339for as_dir in $PATH
4340do
4341 IFS=$as_save_IFS
4342 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4343 for ac_exec_ext in '' $ac_executable_extensions; do
4344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5464f5a1 4345 ac_cv_prog_ac_ct_AR="ar"
81ecdfbb 4346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5464f5a1
NN
4347 break 2
4348 fi
4349done
81ecdfbb
RW
4350 done
4351IFS=$as_save_IFS
252b5132 4352
5464f5a1
NN
4353fi
4354fi
4355ac_ct_AR=$ac_cv_prog_ac_ct_AR
4356if test -n "$ac_ct_AR"; then
81ecdfbb
RW
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4358$as_echo "$ac_ct_AR" >&6; }
5464f5a1 4359else
81ecdfbb
RW
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4361$as_echo "no" >&6; }
5464f5a1 4362fi
252b5132 4363
81ecdfbb
RW
4364 if test "x$ac_ct_AR" = x; then
4365 AR=""
4366 else
4367 case $cross_compiling:$ac_tool_warned in
4368yes:)
4369{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4370$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4371ac_tool_warned=yes ;;
4372esac
4373 AR=$ac_ct_AR
4374 fi
5464f5a1
NN
4375else
4376 AR="$ac_cv_prog_AR"
4377fi
6be7c12c 4378
5464f5a1
NN
4379if test -n "$ac_tool_prefix"; then
4380 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
252b5132 4381set dummy ${ac_tool_prefix}ranlib; ac_word=$2
81ecdfbb
RW
4382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4383$as_echo_n "checking for $ac_word... " >&6; }
4384if test "${ac_cv_prog_RANLIB+set}" = set; then :
4385 $as_echo_n "(cached) " >&6
252b5132
RH
4386else
4387 if test -n "$RANLIB"; then
4388 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4389else
5464f5a1
NN
4390as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4391for as_dir in $PATH
4392do
4393 IFS=$as_save_IFS
4394 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4395 for ac_exec_ext in '' $ac_executable_extensions; do
4396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5464f5a1 4397 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
81ecdfbb 4398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5464f5a1
NN
4399 break 2
4400 fi
4401done
81ecdfbb
RW
4402 done
4403IFS=$as_save_IFS
5464f5a1 4404
252b5132
RH
4405fi
4406fi
5464f5a1 4407RANLIB=$ac_cv_prog_RANLIB
252b5132 4408if test -n "$RANLIB"; then
81ecdfbb
RW
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4410$as_echo "$RANLIB" >&6; }
252b5132 4411else
81ecdfbb
RW
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4413$as_echo "no" >&6; }
252b5132
RH
4414fi
4415
81ecdfbb 4416
5464f5a1 4417fi
252b5132 4418if test -z "$ac_cv_prog_RANLIB"; then
5464f5a1 4419 ac_ct_RANLIB=$RANLIB
252b5132
RH
4420 # Extract the first word of "ranlib", so it can be a program name with args.
4421set dummy ranlib; ac_word=$2
81ecdfbb
RW
4422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4423$as_echo_n "checking for $ac_word... " >&6; }
4424if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4425 $as_echo_n "(cached) " >&6
6be7c12c 4426else
5464f5a1
NN
4427 if test -n "$ac_ct_RANLIB"; then
4428 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6be7c12c 4429else
5464f5a1
NN
4430as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4431for as_dir in $PATH
4432do
4433 IFS=$as_save_IFS
4434 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4435 for ac_exec_ext in '' $ac_executable_extensions; do
4436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5464f5a1 4437 ac_cv_prog_ac_ct_RANLIB="ranlib"
81ecdfbb 4438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5464f5a1
NN
4439 break 2
4440 fi
4441done
81ecdfbb
RW
4442 done
4443IFS=$as_save_IFS
5464f5a1 4444
252b5132
RH
4445fi
4446fi
5464f5a1
NN
4447ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4448if test -n "$ac_ct_RANLIB"; then
81ecdfbb
RW
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4450$as_echo "$ac_ct_RANLIB" >&6; }
252b5132 4451else
81ecdfbb
RW
4452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4453$as_echo "no" >&6; }
252b5132
RH
4454fi
4455
81ecdfbb
RW
4456 if test "x$ac_ct_RANLIB" = x; then
4457 RANLIB=":"
4458 else
4459 case $cross_compiling:$ac_tool_warned in
4460yes:)
4461{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4462$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4463ac_tool_warned=yes ;;
4464esac
4465 RANLIB=$ac_ct_RANLIB
4466 fi
252b5132 4467else
5464f5a1 4468 RANLIB="$ac_cv_prog_RANLIB"
6be7c12c
AO
4469fi
4470
252b5132 4471
81ecdfbb
RW
4472# Check whether --enable-shared was given.
4473if test "${enable_shared+set}" = set; then :
4474 enableval=$enable_shared; p=${PACKAGE-default}
d7040cdb
SE
4475 case $enableval in
4476 yes) enable_shared=yes ;;
4477 no) enable_shared=no ;;
4478 *)
4479 enable_shared=no
4480 # Look at the argument we got. We use all the common list separators.
4481 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4482 for pkg in $enableval; do
4483 IFS="$lt_save_ifs"
4484 if test "X$pkg" = "X$p"; then
4485 enable_shared=yes
4486 fi
4487 done
4488 IFS="$lt_save_ifs"
4489 ;;
4490 esac
252b5132
RH
4491else
4492 enable_shared=no
81ecdfbb
RW
4493fi
4494
252b5132 4495
d7040cdb
SE
4496
4497
4498
4499
4500
4501
4502
4503
cfbc9945
SE
4504ac_ext=c
4505ac_cpp='$CPP $CPPFLAGS'
4506ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4507ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4508ac_compiler_gnu=$ac_cv_c_compiler_gnu
4509if test -n "$ac_tool_prefix"; then
4510 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4511set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
4512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4513$as_echo_n "checking for $ac_word... " >&6; }
4514if test "${ac_cv_prog_CC+set}" = set; then :
4515 $as_echo_n "(cached) " >&6
252b5132 4516else
cfbc9945
SE
4517 if test -n "$CC"; then
4518 ac_cv_prog_CC="$CC" # Let the user override the test.
b2ef150d 4519else
cfbc9945
SE
4520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4521for as_dir in $PATH
4522do
4523 IFS=$as_save_IFS
4524 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4525 for ac_exec_ext in '' $ac_executable_extensions; do
4526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cfbc9945 4527 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 4528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cfbc9945
SE
4529 break 2
4530 fi
4531done
81ecdfbb
RW
4532 done
4533IFS=$as_save_IFS
c5d1701e 4534
cfbc9945
SE
4535fi
4536fi
4537CC=$ac_cv_prog_CC
4538if test -n "$CC"; then
81ecdfbb
RW
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4540$as_echo "$CC" >&6; }
252b5132 4541else
81ecdfbb
RW
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4543$as_echo "no" >&6; }
252b5132 4544fi
cfbc9945 4545
81ecdfbb 4546
cfbc9945
SE
4547fi
4548if test -z "$ac_cv_prog_CC"; then
4549 ac_ct_CC=$CC
4550 # Extract the first word of "gcc", so it can be a program name with args.
4551set dummy gcc; ac_word=$2
81ecdfbb
RW
4552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4553$as_echo_n "checking for $ac_word... " >&6; }
4554if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4555 $as_echo_n "(cached) " >&6
252b5132 4556else
cfbc9945
SE
4557 if test -n "$ac_ct_CC"; then
4558 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
252b5132 4559else
cfbc9945
SE
4560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4561for as_dir in $PATH
4562do
4563 IFS=$as_save_IFS
4564 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4565 for ac_exec_ext in '' $ac_executable_extensions; do
4566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cfbc9945 4567 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 4568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cfbc9945
SE
4569 break 2
4570 fi
4571done
81ecdfbb
RW
4572 done
4573IFS=$as_save_IFS
cfbc9945 4574
252b5132
RH
4575fi
4576fi
cfbc9945
SE
4577ac_ct_CC=$ac_cv_prog_ac_ct_CC
4578if test -n "$ac_ct_CC"; then
81ecdfbb
RW
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4580$as_echo "$ac_ct_CC" >&6; }
252b5132 4581else
81ecdfbb
RW
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4583$as_echo "no" >&6; }
252b5132 4584fi
cfbc9945 4585
81ecdfbb
RW
4586 if test "x$ac_ct_CC" = x; then
4587 CC=""
4588 else
4589 case $cross_compiling:$ac_tool_warned in
4590yes:)
4591{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4592$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4593ac_tool_warned=yes ;;
4594esac
4595 CC=$ac_ct_CC
4596 fi
cfbc9945
SE
4597else
4598 CC="$ac_cv_prog_CC"
4599fi
4600
4601if test -z "$CC"; then
81ecdfbb
RW
4602 if test -n "$ac_tool_prefix"; then
4603 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
cfbc9945 4604set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
4605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4606$as_echo_n "checking for $ac_word... " >&6; }
4607if test "${ac_cv_prog_CC+set}" = set; then :
4608 $as_echo_n "(cached) " >&6
252b5132 4609else
cfbc9945
SE
4610 if test -n "$CC"; then
4611 ac_cv_prog_CC="$CC" # Let the user override the test.
252b5132 4612else
cfbc9945
SE
4613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4614for as_dir in $PATH
4615do
4616 IFS=$as_save_IFS
4617 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4618 for ac_exec_ext in '' $ac_executable_extensions; do
4619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cfbc9945 4620 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 4621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cfbc9945
SE
4622 break 2
4623 fi
4624done
81ecdfbb
RW
4625 done
4626IFS=$as_save_IFS
cfbc9945 4627
252b5132
RH
4628fi
4629fi
cfbc9945
SE
4630CC=$ac_cv_prog_CC
4631if test -n "$CC"; then
81ecdfbb
RW
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4633$as_echo "$CC" >&6; }
ac48eca1 4634else
81ecdfbb
RW
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4636$as_echo "no" >&6; }
ac48eca1 4637fi
ac48eca1 4638
81ecdfbb
RW
4639
4640 fi
cfbc9945 4641fi
81ecdfbb 4642if test -z "$CC"; then
cfbc9945
SE
4643 # Extract the first word of "cc", so it can be a program name with args.
4644set dummy cc; ac_word=$2
81ecdfbb
RW
4645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4646$as_echo_n "checking for $ac_word... " >&6; }
4647if test "${ac_cv_prog_CC+set}" = set; then :
4648 $as_echo_n "(cached) " >&6
252b5132 4649else
81ecdfbb
RW
4650 if test -n "$CC"; then
4651 ac_cv_prog_CC="$CC" # Let the user override the test.
252b5132 4652else
81ecdfbb 4653 ac_prog_rejected=no
cfbc9945
SE
4654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4655for as_dir in $PATH
4656do
4657 IFS=$as_save_IFS
4658 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4659 for ac_exec_ext in '' $ac_executable_extensions; do
4660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cfbc9945
SE
4661 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4662 ac_prog_rejected=yes
4663 continue
4664 fi
4665 ac_cv_prog_CC="cc"
81ecdfbb 4666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cfbc9945
SE
4667 break 2
4668 fi
4669done
81ecdfbb
RW
4670 done
4671IFS=$as_save_IFS
cfbc9945
SE
4672
4673if test $ac_prog_rejected = yes; then
4674 # We found a bogon in the path, so make sure we never use it.
4675 set dummy $ac_cv_prog_CC
4676 shift
4677 if test $# != 0; then
4678 # We chose a different compiler from the bogus one.
4679 # However, it has the same basename, so the bogon will be chosen
4680 # first if we set CC to just the basename; use the full file name.
4681 shift
4682 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4683 fi
4684fi
4685fi
4686fi
4687CC=$ac_cv_prog_CC
4688if test -n "$CC"; then
81ecdfbb
RW
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4690$as_echo "$CC" >&6; }
cfbc9945 4691else
81ecdfbb
RW
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4693$as_echo "no" >&6; }
252b5132
RH
4694fi
4695
81ecdfbb 4696
cfbc9945
SE
4697fi
4698if test -z "$CC"; then
4699 if test -n "$ac_tool_prefix"; then
81ecdfbb 4700 for ac_prog in cl.exe
cfbc9945
SE
4701 do
4702 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4703set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
4704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4705$as_echo_n "checking for $ac_word... " >&6; }
4706if test "${ac_cv_prog_CC+set}" = set; then :
4707 $as_echo_n "(cached) " >&6
ac48eca1 4708else
cfbc9945
SE
4709 if test -n "$CC"; then
4710 ac_cv_prog_CC="$CC" # Let the user override the test.
4711else
4712as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4713for as_dir in $PATH
4714do
4715 IFS=$as_save_IFS
4716 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4717 for ac_exec_ext in '' $ac_executable_extensions; do
4718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cfbc9945 4719 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 4720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cfbc9945
SE
4721 break 2
4722 fi
4723done
81ecdfbb
RW
4724 done
4725IFS=$as_save_IFS
ac48eca1 4726
cfbc9945
SE
4727fi
4728fi
4729CC=$ac_cv_prog_CC
4730if test -n "$CC"; then
81ecdfbb
RW
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4732$as_echo "$CC" >&6; }
cfbc9945 4733else
81ecdfbb
RW
4734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4735$as_echo "no" >&6; }
cfbc9945 4736fi
ac48eca1 4737
81ecdfbb 4738
cfbc9945
SE
4739 test -n "$CC" && break
4740 done
4741fi
4742if test -z "$CC"; then
4743 ac_ct_CC=$CC
81ecdfbb 4744 for ac_prog in cl.exe
cfbc9945
SE
4745do
4746 # Extract the first word of "$ac_prog", so it can be a program name with args.
4747set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
4748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4749$as_echo_n "checking for $ac_word... " >&6; }
4750if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4751 $as_echo_n "(cached) " >&6
cfbc9945
SE
4752else
4753 if test -n "$ac_ct_CC"; then
4754 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4755else
4756as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4757for as_dir in $PATH
4758do
4759 IFS=$as_save_IFS
4760 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4761 for ac_exec_ext in '' $ac_executable_extensions; do
4762 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cfbc9945 4763 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 4764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cfbc9945
SE
4765 break 2
4766 fi
4767done
81ecdfbb
RW
4768 done
4769IFS=$as_save_IFS
ac48eca1 4770
cfbc9945
SE
4771fi
4772fi
4773ac_ct_CC=$ac_cv_prog_ac_ct_CC
4774if test -n "$ac_ct_CC"; then
81ecdfbb
RW
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4776$as_echo "$ac_ct_CC" >&6; }
cfbc9945 4777else
81ecdfbb
RW
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4779$as_echo "no" >&6; }
cfbc9945 4780fi
ac48eca1 4781
81ecdfbb 4782
cfbc9945
SE
4783 test -n "$ac_ct_CC" && break
4784done
ac48eca1 4785
81ecdfbb
RW
4786 if test "x$ac_ct_CC" = x; then
4787 CC=""
4788 else
4789 case $cross_compiling:$ac_tool_warned in
4790yes:)
4791{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4792$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4793ac_tool_warned=yes ;;
4794esac
4795 CC=$ac_ct_CC
4796 fi
cfbc9945 4797fi
55c80943 4798
cfbc9945 4799fi
ac48eca1 4800
ac48eca1 4801
81ecdfbb
RW
4802test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4803$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4804as_fn_error "no acceptable C compiler found in \$PATH
4805See \`config.log' for more details." "$LINENO" 5; }
ac48eca1 4806
cfbc9945 4807# Provide some information about the compiler.
81ecdfbb
RW
4808$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4809set X $ac_compile
4810ac_compiler=$2
4811for ac_option in --version -v -V -qversion; do
4812 { { ac_try="$ac_compiler $ac_option >&5"
4813case "(($ac_try" in
4814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4815 *) ac_try_echo=$ac_try;;
4816esac
4817eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4818$as_echo "$ac_try_echo"; } >&5
4819 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cfbc9945 4820 ac_status=$?
81ecdfbb
RW
4821 if test -s conftest.err; then
4822 sed '10a\
4823... rest of stderr output deleted ...
4824 10q' conftest.err >conftest.er1
4825 cat conftest.er1 >&5
4826 rm -f conftest.er1 conftest.err
4827 fi
4828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4829 test $ac_status = 0; }
4830done
ac48eca1 4831
81ecdfbb
RW
4832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4833$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4834if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4835 $as_echo_n "(cached) " >&6
ac48eca1 4836else
81ecdfbb 4837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cfbc9945 4838/* end confdefs.h. */
ac48eca1 4839
cfbc9945
SE
4840int
4841main ()
4842{
4843#ifndef __GNUC__
4844 choke me
4845#endif
5464f5a1 4846
cfbc9945
SE
4847 ;
4848 return 0;
4849}
4850_ACEOF
81ecdfbb 4851if ac_fn_c_try_compile "$LINENO"; then :
cfbc9945 4852 ac_compiler_gnu=yes
ac48eca1 4853else
81ecdfbb 4854 ac_compiler_gnu=no
ac48eca1 4855fi
81ecdfbb 4856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cfbc9945 4857ac_cv_c_compiler_gnu=$ac_compiler_gnu
ac48eca1 4858
5464f5a1 4859fi
81ecdfbb
RW
4860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4861$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4862if test $ac_compiler_gnu = yes; then
4863 GCC=yes
4864else
4865 GCC=
4866fi
cfbc9945
SE
4867ac_test_CFLAGS=${CFLAGS+set}
4868ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
4869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4870$as_echo_n "checking whether $CC accepts -g... " >&6; }
4871if test "${ac_cv_prog_cc_g+set}" = set; then :
4872 $as_echo_n "(cached) " >&6
4873else
4874 ac_save_c_werror_flag=$ac_c_werror_flag
4875 ac_c_werror_flag=yes
4876 ac_cv_prog_cc_g=no
4877 CFLAGS="-g"
4878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cfbc9945
SE
4879/* end confdefs.h. */
4880
4881int
4882main ()
4883{
4884
4885 ;
4886 return 0;
4887}
4888_ACEOF
81ecdfbb 4889if ac_fn_c_try_compile "$LINENO"; then :
cfbc9945 4890 ac_cv_prog_cc_g=yes
6be7c12c 4891else
81ecdfbb
RW
4892 CFLAGS=""
4893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4894/* end confdefs.h. */
4895
4896int
4897main ()
4898{
4899
4900 ;
4901 return 0;
4902}
4903_ACEOF
4904if ac_fn_c_try_compile "$LINENO"; then :
4905
4906else
4907 ac_c_werror_flag=$ac_save_c_werror_flag
4908 CFLAGS="-g"
4909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4910/* end confdefs.h. */
4911
4912int
4913main ()
4914{
5464f5a1 4915
81ecdfbb
RW
4916 ;
4917 return 0;
4918}
4919_ACEOF
4920if ac_fn_c_try_compile "$LINENO"; then :
4921 ac_cv_prog_cc_g=yes
4922fi
4923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ac48eca1 4924fi
81ecdfbb 4925rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ac48eca1 4926fi
81ecdfbb
RW
4927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4928 ac_c_werror_flag=$ac_save_c_werror_flag
4929fi
4930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4931$as_echo "$ac_cv_prog_cc_g" >&6; }
cfbc9945
SE
4932if test "$ac_test_CFLAGS" = set; then
4933 CFLAGS=$ac_save_CFLAGS
4934elif test $ac_cv_prog_cc_g = yes; then
4935 if test "$GCC" = yes; then
4936 CFLAGS="-g -O2"
4937 else
4938 CFLAGS="-g"
4939 fi
ac48eca1 4940else
cfbc9945
SE
4941 if test "$GCC" = yes; then
4942 CFLAGS="-O2"
4943 else
4944 CFLAGS=
4945 fi
ac48eca1 4946fi
81ecdfbb
RW
4947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4948$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4949if test "${ac_cv_prog_cc_c89+set}" = set; then :
4950 $as_echo_n "(cached) " >&6
ac48eca1 4951else
81ecdfbb 4952 ac_cv_prog_cc_c89=no
cfbc9945 4953ac_save_CC=$CC
81ecdfbb 4954cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cfbc9945
SE
4955/* end confdefs.h. */
4956#include <stdarg.h>
4957#include <stdio.h>
4958#include <sys/types.h>
4959#include <sys/stat.h>
4960/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4961struct buf { int x; };
4962FILE * (*rcsopen) (struct buf *, struct stat *, int);
4963static char *e (p, i)
4964 char **p;
4965 int i;
4966{
4967 return p[i];
4968}
4969static char *f (char * (*g) (char **, int), char **p, ...)
4970{
4971 char *s;
4972 va_list v;
4973 va_start (v,p);
4974 s = g (p, va_arg (v,int));
4975 va_end (v);
4976 return s;
4977}
5464f5a1 4978
cfbc9945
SE
4979/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4980 function prototypes and stuff, but not '\xHH' hex character constants.
4981 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 4982 as 'x'. The following induces an error, until -std is added to get
cfbc9945
SE
4983 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4984 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 4985 that's true only with -std. */
cfbc9945
SE
4986int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4987
81ecdfbb
RW
4988/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4989 inside strings and character constants. */
4990#define FOO(x) 'x'
4991int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4992
cfbc9945
SE
4993int test (int i, double x);
4994struct s1 {int (*f) (int a);};
4995struct s2 {int (*f) (double a);};
4996int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4997int argc;
4998char **argv;
4999int
5000main ()
5001{
5002return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5003 ;
5004 return 0;
5005}
5006_ACEOF
81ecdfbb
RW
5007for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5008 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
cfbc9945
SE
5009do
5010 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
5011 if ac_fn_c_try_compile "$LINENO"; then :
5012 ac_cv_prog_cc_c89=$ac_arg
5464f5a1 5013fi
81ecdfbb
RW
5014rm -f core conftest.err conftest.$ac_objext
5015 test "x$ac_cv_prog_cc_c89" != "xno" && break
5464f5a1 5016done
81ecdfbb 5017rm -f conftest.$ac_ext
cfbc9945 5018CC=$ac_save_CC
5464f5a1 5019
ac48eca1 5020fi
81ecdfbb
RW
5021# AC_CACHE_VAL
5022case "x$ac_cv_prog_cc_c89" in
5023 x)
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5025$as_echo "none needed" >&6; } ;;
5026 xno)
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5028$as_echo "unsupported" >&6; } ;;
cfbc9945 5029 *)
81ecdfbb
RW
5030 CC="$CC $ac_cv_prog_cc_c89"
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5032$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
cfbc9945 5033esac
81ecdfbb 5034if test "x$ac_cv_prog_cc_c89" != xno; then :
6be7c12c 5035
6ec7057a 5036fi
cfbc9945 5037
cfbc9945
SE
5038ac_ext=c
5039ac_cpp='$CPP $CPPFLAGS'
5040ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5041ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5042ac_compiler_gnu=$ac_cv_c_compiler_gnu
92f01d61 5043
7357c5b6
AM
5044ac_ext=c
5045ac_cpp='$CPP $CPPFLAGS'
5046ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5047ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5048ac_compiler_gnu=$ac_cv_c_compiler_gnu
81ecdfbb
RW
5049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5050$as_echo_n "checking how to run the C preprocessor... " >&6; }
7357c5b6
AM
5051# On Suns, sometimes $CPP names a directory.
5052if test -n "$CPP" && test -d "$CPP"; then
5053 CPP=
5054fi
5055if test -z "$CPP"; then
81ecdfbb
RW
5056 if test "${ac_cv_prog_CPP+set}" = set; then :
5057 $as_echo_n "(cached) " >&6
7357c5b6
AM
5058else
5059 # Double quotes because CPP needs to be expanded
5060 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5061 do
5062 ac_preproc_ok=false
5063for ac_c_preproc_warn_flag in '' yes
5064do
5065 # Use a header file that comes with gcc, so configuring glibc
5066 # with a fresh cross-compiler works.
5067 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5068 # <limits.h> exists even on freestanding compilers.
5069 # On the NeXT, cc -E runs the code through the compiler's parser,
5070 # not just through cpp. "Syntax error" is here to catch this case.
81ecdfbb 5071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
5072/* end confdefs.h. */
5073#ifdef __STDC__
5074# include <limits.h>
5075#else
5076# include <assert.h>
5077#endif
5078 Syntax error
5079_ACEOF
81ecdfbb 5080if ac_fn_c_try_cpp "$LINENO"; then :
cfbc9945 5081
81ecdfbb 5082else
7357c5b6
AM
5083 # Broken: fails on valid input.
5084continue
5085fi
5086rm -f conftest.err conftest.$ac_ext
d7040cdb 5087
81ecdfbb 5088 # OK, works on sane cases. Now check whether nonexistent headers
7357c5b6 5089 # can be detected and how.
81ecdfbb 5090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
5091/* end confdefs.h. */
5092#include <ac_nonexistent.h>
5093_ACEOF
81ecdfbb 5094if ac_fn_c_try_cpp "$LINENO"; then :
7357c5b6
AM
5095 # Broken: success on invalid input.
5096continue
5097else
7357c5b6
AM
5098 # Passes both tests.
5099ac_preproc_ok=:
5100break
5101fi
5102rm -f conftest.err conftest.$ac_ext
d7040cdb 5103
7357c5b6
AM
5104done
5105# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5106rm -f conftest.err conftest.$ac_ext
81ecdfbb 5107if $ac_preproc_ok; then :
7357c5b6
AM
5108 break
5109fi
d7040cdb 5110
7357c5b6
AM
5111 done
5112 ac_cv_prog_CPP=$CPP
d7040cdb 5113
7357c5b6
AM
5114fi
5115 CPP=$ac_cv_prog_CPP
5116else
5117 ac_cv_prog_CPP=$CPP
5118fi
81ecdfbb
RW
5119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5120$as_echo "$CPP" >&6; }
7357c5b6
AM
5121ac_preproc_ok=false
5122for ac_c_preproc_warn_flag in '' yes
5123do
5124 # Use a header file that comes with gcc, so configuring glibc
5125 # with a fresh cross-compiler works.
5126 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5127 # <limits.h> exists even on freestanding compilers.
5128 # On the NeXT, cc -E runs the code through the compiler's parser,
5129 # not just through cpp. "Syntax error" is here to catch this case.
81ecdfbb 5130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
5131/* end confdefs.h. */
5132#ifdef __STDC__
5133# include <limits.h>
5134#else
5135# include <assert.h>
5136#endif
5137 Syntax error
5138_ACEOF
81ecdfbb 5139if ac_fn_c_try_cpp "$LINENO"; then :
d7040cdb 5140
81ecdfbb 5141else
7357c5b6
AM
5142 # Broken: fails on valid input.
5143continue
5144fi
5145rm -f conftest.err conftest.$ac_ext
d7040cdb 5146
81ecdfbb 5147 # OK, works on sane cases. Now check whether nonexistent headers
7357c5b6 5148 # can be detected and how.
81ecdfbb 5149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
5150/* end confdefs.h. */
5151#include <ac_nonexistent.h>
5152_ACEOF
81ecdfbb 5153if ac_fn_c_try_cpp "$LINENO"; then :
7357c5b6
AM
5154 # Broken: success on invalid input.
5155continue
5156else
7357c5b6
AM
5157 # Passes both tests.
5158ac_preproc_ok=:
5159break
5160fi
5161rm -f conftest.err conftest.$ac_ext
d7040cdb 5162
7357c5b6
AM
5163done
5164# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5165rm -f conftest.err conftest.$ac_ext
81ecdfbb
RW
5166if $ac_preproc_ok; then :
5167
7357c5b6 5168else
81ecdfbb
RW
5169 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5170$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5171as_fn_error "C preprocessor \"$CPP\" fails sanity check
5172See \`config.log' for more details." "$LINENO" 5; }
7357c5b6 5173fi
d7040cdb 5174
7357c5b6
AM
5175ac_ext=c
5176ac_cpp='$CPP $CPPFLAGS'
5177ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5178ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5179ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 5180
d7040cdb 5181
81ecdfbb
RW
5182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5183$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5184if test "${ac_cv_path_GREP+set}" = set; then :
5185 $as_echo_n "(cached) " >&6
5186else
5187 if test -z "$GREP"; then
5188 ac_path_GREP_found=false
5189 # Loop through the user's path and test for each of PROGNAME-LIST
5190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5191for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5192do
5193 IFS=$as_save_IFS
5194 test -z "$as_dir" && as_dir=.
5195 for ac_prog in grep ggrep; do
5196 for ac_exec_ext in '' $ac_executable_extensions; do
5197 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5198 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5199# Check for GNU ac_path_GREP and select it if it is found.
5200 # Check for GNU $ac_path_GREP
5201case `"$ac_path_GREP" --version 2>&1` in
5202*GNU*)
5203 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5204*)
5205 ac_count=0
5206 $as_echo_n 0123456789 >"conftest.in"
5207 while :
5208 do
5209 cat "conftest.in" "conftest.in" >"conftest.tmp"
5210 mv "conftest.tmp" "conftest.in"
5211 cp "conftest.in" "conftest.nl"
5212 $as_echo 'GREP' >> "conftest.nl"
5213 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5214 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5215 as_fn_arith $ac_count + 1 && ac_count=$as_val
5216 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5217 # Best one so far, save it but keep looking for a better one
5218 ac_cv_path_GREP="$ac_path_GREP"
5219 ac_path_GREP_max=$ac_count
5220 fi
5221 # 10*(2^10) chars as input seems more than enough
5222 test $ac_count -gt 10 && break
5223 done
5224 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5225esac
5226
5227 $ac_path_GREP_found && break 3
5228 done
5229 done
5230 done
5231IFS=$as_save_IFS
5232 if test -z "$ac_cv_path_GREP"; then
5233 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5234 fi
5235else
5236 ac_cv_path_GREP=$GREP
5237fi
5238
5239fi
5240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5241$as_echo "$ac_cv_path_GREP" >&6; }
5242 GREP="$ac_cv_path_GREP"
5243
5244
5245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5246$as_echo_n "checking for egrep... " >&6; }
5247if test "${ac_cv_path_EGREP+set}" = set; then :
5248 $as_echo_n "(cached) " >&6
7357c5b6 5249else
81ecdfbb
RW
5250 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5251 then ac_cv_path_EGREP="$GREP -E"
5252 else
5253 if test -z "$EGREP"; then
5254 ac_path_EGREP_found=false
5255 # Loop through the user's path and test for each of PROGNAME-LIST
5256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5257for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5258do
5259 IFS=$as_save_IFS
5260 test -z "$as_dir" && as_dir=.
5261 for ac_prog in egrep; do
5262 for ac_exec_ext in '' $ac_executable_extensions; do
5263 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5264 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5265# Check for GNU ac_path_EGREP and select it if it is found.
5266 # Check for GNU $ac_path_EGREP
5267case `"$ac_path_EGREP" --version 2>&1` in
5268*GNU*)
5269 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5270*)
5271 ac_count=0
5272 $as_echo_n 0123456789 >"conftest.in"
5273 while :
5274 do
5275 cat "conftest.in" "conftest.in" >"conftest.tmp"
5276 mv "conftest.tmp" "conftest.in"
5277 cp "conftest.in" "conftest.nl"
5278 $as_echo 'EGREP' >> "conftest.nl"
5279 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5280 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5281 as_fn_arith $ac_count + 1 && ac_count=$as_val
5282 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5283 # Best one so far, save it but keep looking for a better one
5284 ac_cv_path_EGREP="$ac_path_EGREP"
5285 ac_path_EGREP_max=$ac_count
7357c5b6 5286 fi
81ecdfbb
RW
5287 # 10*(2^10) chars as input seems more than enough
5288 test $ac_count -gt 10 && break
5289 done
5290 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5291esac
5292
5293 $ac_path_EGREP_found && break 3
5294 done
5295 done
5296 done
5297IFS=$as_save_IFS
5298 if test -z "$ac_cv_path_EGREP"; then
5299 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5300 fi
5301else
5302 ac_cv_path_EGREP=$EGREP
5303fi
5304
5305 fi
7357c5b6 5306fi
81ecdfbb
RW
5307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5308$as_echo "$ac_cv_path_EGREP" >&6; }
5309 EGREP="$ac_cv_path_EGREP"
d7040cdb
SE
5310
5311
81ecdfbb
RW
5312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5313$as_echo_n "checking for ANSI C header files... " >&6; }
5314if test "${ac_cv_header_stdc+set}" = set; then :
5315 $as_echo_n "(cached) " >&6
7357c5b6 5316else
81ecdfbb 5317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
5318/* end confdefs.h. */
5319#include <stdlib.h>
5320#include <stdarg.h>
5321#include <string.h>
5322#include <float.h>
d7040cdb 5323
7357c5b6
AM
5324int
5325main ()
5326{
d7040cdb 5327
7357c5b6
AM
5328 ;
5329 return 0;
5330}
5331_ACEOF
81ecdfbb 5332if ac_fn_c_try_compile "$LINENO"; then :
7357c5b6 5333 ac_cv_header_stdc=yes
c428fa83 5334else
81ecdfbb 5335 ac_cv_header_stdc=no
7357c5b6 5336fi
81ecdfbb 5337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d7040cdb 5338
7357c5b6
AM
5339if test $ac_cv_header_stdc = yes; then
5340 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
81ecdfbb 5341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
5342/* end confdefs.h. */
5343#include <string.h>
d7040cdb 5344
7357c5b6
AM
5345_ACEOF
5346if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb
RW
5347 $EGREP "memchr" >/dev/null 2>&1; then :
5348
7357c5b6
AM
5349else
5350 ac_cv_header_stdc=no
5351fi
5352rm -f conftest*
d7040cdb 5353
7357c5b6 5354fi
d7040cdb 5355
7357c5b6
AM
5356if test $ac_cv_header_stdc = yes; then
5357 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
81ecdfbb 5358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
5359/* end confdefs.h. */
5360#include <stdlib.h>
d7040cdb 5361
7357c5b6
AM
5362_ACEOF
5363if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb
RW
5364 $EGREP "free" >/dev/null 2>&1; then :
5365
7357c5b6
AM
5366else
5367 ac_cv_header_stdc=no
5368fi
5369rm -f conftest*
d7040cdb 5370
7357c5b6 5371fi
d7040cdb 5372
7357c5b6
AM
5373if test $ac_cv_header_stdc = yes; then
5374 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
81ecdfbb 5375 if test "$cross_compiling" = yes; then :
7357c5b6
AM
5376 :
5377else
81ecdfbb 5378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
5379/* end confdefs.h. */
5380#include <ctype.h>
81ecdfbb 5381#include <stdlib.h>
7357c5b6
AM
5382#if ((' ' & 0x0FF) == 0x020)
5383# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5384# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5385#else
5386# define ISLOWER(c) \
5387 (('a' <= (c) && (c) <= 'i') \
5388 || ('j' <= (c) && (c) <= 'r') \
5389 || ('s' <= (c) && (c) <= 'z'))
5390# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5391#endif
d7040cdb 5392
7357c5b6
AM
5393#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5394int
5395main ()
5396{
5397 int i;
5398 for (i = 0; i < 256; i++)
5399 if (XOR (islower (i), ISLOWER (i))
5400 || toupper (i) != TOUPPER (i))
81ecdfbb
RW
5401 return 2;
5402 return 0;
7357c5b6
AM
5403}
5404_ACEOF
81ecdfbb 5405if ac_fn_c_try_run "$LINENO"; then :
d7040cdb 5406
81ecdfbb
RW
5407else
5408 ac_cv_header_stdc=no
7357c5b6 5409fi
81ecdfbb
RW
5410rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5411 conftest.$ac_objext conftest.beam conftest.$ac_ext
7357c5b6 5412fi
81ecdfbb 5413
7357c5b6
AM
5414fi
5415fi
81ecdfbb
RW
5416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5417$as_echo "$ac_cv_header_stdc" >&6; }
7357c5b6 5418if test $ac_cv_header_stdc = yes; then
d7040cdb 5419
81ecdfbb 5420$as_echo "#define STDC_HEADERS 1" >>confdefs.h
d7040cdb 5421
7357c5b6 5422fi
d7040cdb 5423
7357c5b6 5424# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7357c5b6
AM
5425for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5426 inttypes.h stdint.h unistd.h
81ecdfbb
RW
5427do :
5428 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5429ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5430"
5431eval as_val=\$$as_ac_Header
5432 if test "x$as_val" = x""yes; then :
7357c5b6 5433 cat >>confdefs.h <<_ACEOF
81ecdfbb 5434#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7357c5b6 5435_ACEOF
d7040cdb 5436
7357c5b6
AM
5437fi
5438
5439done
5440
5441
5442
81ecdfbb
RW
5443 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5444if test "x$ac_cv_header_minix_config_h" = x""yes; then :
7357c5b6
AM
5445 MINIX=yes
5446else
5447 MINIX=
5448fi
d7040cdb
SE
5449
5450
7357c5b6 5451 if test "$MINIX" = yes; then
d7040cdb 5452
81ecdfbb 5453$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
d7040cdb
SE
5454
5455
81ecdfbb 5456$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
d7040cdb
SE
5457
5458
81ecdfbb 5459$as_echo "#define _MINIX 1" >>confdefs.h
d7040cdb 5460
7357c5b6 5461 fi
d7040cdb
SE
5462
5463
81ecdfbb
RW
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5465$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5466if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5467 $as_echo_n "(cached) " >&6
d053aef8 5468else
81ecdfbb 5469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d053aef8 5470/* end confdefs.h. */
ce3c775b
NC
5471
5472# define __EXTENSIONS__ 1
5473 $ac_includes_default
d053aef8
JK
5474int
5475main ()
5476{
5477
5478 ;
5479 return 0;
5480}
5481_ACEOF
81ecdfbb 5482if ac_fn_c_try_compile "$LINENO"; then :
ce3c775b 5483 ac_cv_safe_to_define___extensions__=yes
d053aef8 5484else
81ecdfbb 5485 ac_cv_safe_to_define___extensions__=no
d053aef8 5486fi
81ecdfbb 5487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ce3c775b 5488fi
81ecdfbb
RW
5489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5490$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
ce3c775b 5491 test $ac_cv_safe_to_define___extensions__ = yes &&
81ecdfbb 5492 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
d053aef8 5493
81ecdfbb 5494 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
d053aef8 5495
81ecdfbb
RW
5496 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5497
5498 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5499
5500 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
d053aef8 5501
ce3c775b 5502
d053aef8 5503
d053aef8 5504
d7040cdb 5505
718a6fd8
SE
5506case `pwd` in
5507 *\ * | *\ *)
81ecdfbb
RW
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5509$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
718a6fd8 5510esac
d7040cdb
SE
5511
5512
7357c5b6 5513
718a6fd8
SE
5514macro_version='2.2.6'
5515macro_revision='1.3012'
7357c5b6
AM
5516
5517
5518
5519
5520
5521
7357c5b6
AM
5522
5523
5524
5525
5526
5527
5528
718a6fd8 5529ltmain="$ac_aux_dir/ltmain.sh"
7357c5b6 5530
81ecdfbb
RW
5531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5532$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5533if test "${ac_cv_path_SED+set}" = set; then :
5534 $as_echo_n "(cached) " >&6
7357c5b6 5535else
81ecdfbb
RW
5536 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5537 for ac_i in 1 2 3 4 5 6 7; do
5538 ac_script="$ac_script$as_nl$ac_script"
5539 done
5540 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5541 { ac_script=; unset ac_script;}
5542 if test -z "$SED"; then
5543 ac_path_SED_found=false
5544 # Loop through the user's path and test for each of PROGNAME-LIST
5545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7357c5b6
AM
5546for as_dir in $PATH
5547do
5548 IFS=$as_save_IFS
5549 test -z "$as_dir" && as_dir=.
81ecdfbb 5550 for ac_prog in sed gsed; do
7357c5b6 5551 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb
RW
5552 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5553 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5554# Check for GNU ac_path_SED and select it if it is found.
5555 # Check for GNU $ac_path_SED
5556case `"$ac_path_SED" --version 2>&1` in
5557*GNU*)
5558 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5559*)
5560 ac_count=0
5561 $as_echo_n 0123456789 >"conftest.in"
5562 while :
5563 do
5564 cat "conftest.in" "conftest.in" >"conftest.tmp"
5565 mv "conftest.tmp" "conftest.in"
5566 cp "conftest.in" "conftest.nl"
5567 $as_echo '' >> "conftest.nl"
5568 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5569 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5570 as_fn_arith $ac_count + 1 && ac_count=$as_val
5571 if test $ac_count -gt ${ac_path_SED_max-0}; then
5572 # Best one so far, save it but keep looking for a better one
5573 ac_cv_path_SED="$ac_path_SED"
5574 ac_path_SED_max=$ac_count
5575 fi
5576 # 10*(2^10) chars as input seems more than enough
5577 test $ac_count -gt 10 && break
5578 done
5579 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5580esac
5581
5582 $ac_path_SED_found && break 3
7357c5b6
AM
5583 done
5584 done
81ecdfbb 5585 done
7357c5b6 5586IFS=$as_save_IFS
81ecdfbb
RW
5587 if test -z "$ac_cv_path_SED"; then
5588 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
7357c5b6 5589 fi
81ecdfbb
RW
5590else
5591 ac_cv_path_SED=$SED
7357c5b6
AM
5592fi
5593
81ecdfbb
RW
5594fi
5595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5596$as_echo "$ac_cv_path_SED" >&6; }
5597 SED="$ac_cv_path_SED"
5598 rm -f conftest.sed
7357c5b6
AM
5599
5600test -z "$SED" && SED=sed
5601Xsed="$SED -e 1s/^X//"
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
81ecdfbb
RW
5613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5614$as_echo_n "checking for fgrep... " >&6; }
5615if test "${ac_cv_path_FGREP+set}" = set; then :
5616 $as_echo_n "(cached) " >&6
7357c5b6 5617else
81ecdfbb
RW
5618 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5619 then ac_cv_path_FGREP="$GREP -F"
5620 else
5621 if test -z "$FGREP"; then
5622 ac_path_FGREP_found=false
5623 # Loop through the user's path and test for each of PROGNAME-LIST
5624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5625for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5626do
5627 IFS=$as_save_IFS
5628 test -z "$as_dir" && as_dir=.
5629 for ac_prog in fgrep; do
5630 for ac_exec_ext in '' $ac_executable_extensions; do
5631 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5632 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5633# Check for GNU ac_path_FGREP and select it if it is found.
5634 # Check for GNU $ac_path_FGREP
5635case `"$ac_path_FGREP" --version 2>&1` in
5636*GNU*)
5637 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5638*)
5639 ac_count=0
5640 $as_echo_n 0123456789 >"conftest.in"
5641 while :
5642 do
5643 cat "conftest.in" "conftest.in" >"conftest.tmp"
5644 mv "conftest.tmp" "conftest.in"
5645 cp "conftest.in" "conftest.nl"
5646 $as_echo 'FGREP' >> "conftest.nl"
5647 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5648 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5649 as_fn_arith $ac_count + 1 && ac_count=$as_val
5650 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5651 # Best one so far, save it but keep looking for a better one
5652 ac_cv_path_FGREP="$ac_path_FGREP"
5653 ac_path_FGREP_max=$ac_count
7357c5b6 5654 fi
81ecdfbb
RW
5655 # 10*(2^10) chars as input seems more than enough
5656 test $ac_count -gt 10 && break
5657 done
5658 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5659esac
5660
5661 $ac_path_FGREP_found && break 3
5662 done
5663 done
5664 done
5665IFS=$as_save_IFS
5666 if test -z "$ac_cv_path_FGREP"; then
5667 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5668 fi
5669else
5670 ac_cv_path_FGREP=$FGREP
7357c5b6 5671fi
81ecdfbb
RW
5672
5673 fi
5674fi
5675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5676$as_echo "$ac_cv_path_FGREP" >&6; }
5677 FGREP="$ac_cv_path_FGREP"
7357c5b6
AM
5678
5679
5680test -z "$GREP" && GREP=grep
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
81ecdfbb
RW
5700# Check whether --with-gnu-ld was given.
5701if test "${with_gnu_ld+set}" = set; then :
5702 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7357c5b6
AM
5703else
5704 with_gnu_ld=no
81ecdfbb
RW
5705fi
5706
7357c5b6
AM
5707ac_prog=ld
5708if test "$GCC" = yes; then
5709 # Check if gcc -print-prog-name=ld gives a path.
81ecdfbb
RW
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5711$as_echo_n "checking for ld used by $CC... " >&6; }
7357c5b6
AM
5712 case $host in
5713 *-*-mingw*)
5714 # gcc leaves a trailing carriage return which upsets mingw
5715 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5716 *)
5717 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5718 esac
5719 case $ac_prog in
5720 # Accept absolute paths.
5721 [\\/]* | ?:[\\/]*)
5722 re_direlt='/[^/][^/]*/\.\./'
5723 # Canonicalize the pathname of ld
5724 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5725 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
d7040cdb 5726 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
cfbc9945
SE
5727 done
5728 test -z "$LD" && LD="$ac_prog"
5729 ;;
5bd8253d 5730 "")
cfbc9945
SE
5731 # If it fails, then pretend we aren't using GCC.
5732 ac_prog=ld
5bd8253d
L
5733 ;;
5734 *)
cfbc9945
SE
5735 # If it is relative, then search for the first ld in PATH.
5736 with_gnu_ld=unknown
5bd8253d 5737 ;;
cfbc9945
SE
5738 esac
5739elif test "$with_gnu_ld" = yes; then
81ecdfbb
RW
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5741$as_echo_n "checking for GNU ld... " >&6; }
cfbc9945 5742else
81ecdfbb
RW
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5744$as_echo_n "checking for non-GNU ld... " >&6; }
cfbc9945 5745fi
81ecdfbb
RW
5746if test "${lt_cv_path_LD+set}" = set; then :
5747 $as_echo_n "(cached) " >&6
cfbc9945
SE
5748else
5749 if test -z "$LD"; then
d7040cdb 5750 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
cfbc9945 5751 for ac_dir in $PATH; do
d7040cdb 5752 IFS="$lt_save_ifs"
cfbc9945
SE
5753 test -z "$ac_dir" && ac_dir=.
5754 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5755 lt_cv_path_LD="$ac_dir/$ac_prog"
5756 # Check to see if the program is GNU ld. I'd rather use --version,
d7040cdb 5757 # but apparently some variants of GNU ld only accept -v.
cfbc9945 5758 # Break only if it was the GNU/non-GNU ld that we prefer.
d7040cdb
SE
5759 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5760 *GNU* | *'with BFD'*)
cfbc9945 5761 test "$with_gnu_ld" != no && break
d7040cdb
SE
5762 ;;
5763 *)
cfbc9945 5764 test "$with_gnu_ld" != yes && break
d7040cdb
SE
5765 ;;
5766 esac
cfbc9945
SE
5767 fi
5768 done
d7040cdb 5769 IFS="$lt_save_ifs"
cfbc9945
SE
5770else
5771 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9e9b66a9 5772fi
1ad12f97
NC
5773fi
5774
cfbc9945
SE
5775LD="$lt_cv_path_LD"
5776if test -n "$LD"; then
81ecdfbb
RW
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5778$as_echo "$LD" >&6; }
cfbc9945 5779else
81ecdfbb
RW
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5781$as_echo "no" >&6; }
cfbc9945 5782fi
81ecdfbb
RW
5783test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5785$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5786if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5787 $as_echo_n "(cached) " >&6
cfbc9945 5788else
d7040cdb
SE
5789 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5790case `$LD -v 2>&1 </dev/null` in
5791*GNU* | *'with BFD'*)
cfbc9945 5792 lt_cv_prog_gnu_ld=yes
d7040cdb
SE
5793 ;;
5794*)
cfbc9945 5795 lt_cv_prog_gnu_ld=no
d7040cdb
SE
5796 ;;
5797esac
49c96104 5798fi
81ecdfbb
RW
5799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5800$as_echo "$lt_cv_prog_gnu_ld" >&6; }
cfbc9945 5801with_gnu_ld=$lt_cv_prog_gnu_ld
49c96104 5802
9e9b66a9 5803
cfbc9945 5804
d7040cdb
SE
5805
5806
5807
5808
5809
5810
81ecdfbb
RW
5811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5812$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5813if test "${lt_cv_path_NM+set}" = set; then :
5814 $as_echo_n "(cached) " >&6
cfbc9945
SE
5815else
5816 if test -n "$NM"; then
5817 # Let the user override the test.
5818 lt_cv_path_NM="$NM"
5819else
d7040cdb
SE
5820 lt_nm_to_check="${ac_tool_prefix}nm"
5821 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5822 lt_nm_to_check="$lt_nm_to_check nm"
5823 fi
5824 for lt_tmp_nm in $lt_nm_to_check; do
5825 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5826 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5827 IFS="$lt_save_ifs"
5828 test -z "$ac_dir" && ac_dir=.
5829 tmp_nm="$ac_dir/$lt_tmp_nm"
5830 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5831 # Check to see if the nm accepts a BSD-compat flag.
5832 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5833 # nm: unknown option "B" ignored
5834 # Tru64's nm complains that /dev/null is an invalid object file
5835 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5836 */dev/null* | *'Invalid file or object type'*)
5837 lt_cv_path_NM="$tmp_nm -B"
5838 break
5839 ;;
5840 *)
5841 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5842 */dev/null*)
5843 lt_cv_path_NM="$tmp_nm -p"
5844 break
5845 ;;
5846 *)
5847 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5848 continue # so that we can try to find one that supports BSD flags
5849 ;;
5850 esac
5851 ;;
5852 esac
cfbc9945 5853 fi
d7040cdb
SE
5854 done
5855 IFS="$lt_save_ifs"
cfbc9945 5856 done
d7040cdb 5857 : ${lt_cv_path_NM=no}
cfbc9945 5858fi
a2d91340 5859fi
81ecdfbb
RW
5860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5861$as_echo "$lt_cv_path_NM" >&6; }
d7040cdb
SE
5862if test "$lt_cv_path_NM" != "no"; then
5863 NM="$lt_cv_path_NM"
cfbc9945 5864else
d7040cdb
SE
5865 # Didn't find any BSD compatible name lister, look for dumpbin.
5866 if test -n "$ac_tool_prefix"; then
5867 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5868 do
5869 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5870set dummy $ac_tool_prefix$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_DUMPBIN+set}" = set; then :
5874 $as_echo_n "(cached) " >&6
252b5132 5875else
d7040cdb
SE
5876 if test -n "$DUMPBIN"; then
5877 ac_cv_prog_DUMPBIN="$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_DUMPBIN="$ac_tool_prefix$ac_prog"
81ecdfbb 5887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
5888 break 2
5889 fi
5890done
81ecdfbb
RW
5891 done
5892IFS=$as_save_IFS
5464f5a1 5893
d7040cdb
SE
5894fi
5895fi
5896DUMPBIN=$ac_cv_prog_DUMPBIN
5897if test -n "$DUMPBIN"; then
81ecdfbb
RW
5898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5899$as_echo "$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 "$DUMPBIN" && break
5907 done
5908fi
5909if test -z "$DUMPBIN"; then
5910 ac_ct_DUMPBIN=$DUMPBIN
5911 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5912do
5913 # Extract the first word of "$ac_prog", so it can be a program name with args.
5914set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
5915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5916$as_echo_n "checking for $ac_word... " >&6; }
5917if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5918 $as_echo_n "(cached) " >&6
d7040cdb
SE
5919else
5920 if test -n "$ac_ct_DUMPBIN"; then
5921 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5922else
5923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5924for as_dir in $PATH
5925do
5926 IFS=$as_save_IFS
5927 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5928 for ac_exec_ext in '' $ac_executable_extensions; do
5929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 5930 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
81ecdfbb 5931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb 5932 break 2
cfbc9945 5933 fi
d7040cdb 5934done
81ecdfbb
RW
5935 done
5936IFS=$as_save_IFS
d5fbea21 5937
d7040cdb
SE
5938fi
5939fi
5940ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5941if test -n "$ac_ct_DUMPBIN"; then
81ecdfbb
RW
5942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5943$as_echo "$ac_ct_DUMPBIN" >&6; }
d7040cdb 5944else
81ecdfbb
RW
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5946$as_echo "no" >&6; }
d7040cdb 5947fi
d5fbea21 5948
81ecdfbb 5949
d7040cdb
SE
5950 test -n "$ac_ct_DUMPBIN" && break
5951done
24443139 5952
81ecdfbb
RW
5953 if test "x$ac_ct_DUMPBIN" = x; then
5954 DUMPBIN=":"
5955 else
5956 case $cross_compiling:$ac_tool_warned in
5957yes:)
5958{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5959$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5960ac_tool_warned=yes ;;
5961esac
5962 DUMPBIN=$ac_ct_DUMPBIN
5963 fi
d7040cdb 5964fi
24443139 5965
24443139 5966
d7040cdb
SE
5967 if test "$DUMPBIN" != ":"; then
5968 NM="$DUMPBIN"
cfbc9945 5969 fi
d7040cdb
SE
5970fi
5971test -z "$NM" && NM=nm
a703a6ea 5972
f5385ebf 5973
cfbc9945 5974
24443139
AS
5975
5976
5977
81ecdfbb
RW
5978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5979$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5980if test "${lt_cv_nm_interface+set}" = set; then :
5981 $as_echo_n "(cached) " >&6
d7040cdb
SE
5982else
5983 lt_cv_nm_interface="BSD nm"
5984 echo "int some_variable = 0;" > conftest.$ac_ext
81ecdfbb 5985 (eval echo "\"\$as_me:5985: $ac_compile\"" >&5)
d7040cdb
SE
5986 (eval "$ac_compile" 2>conftest.err)
5987 cat conftest.err >&5
81ecdfbb 5988 (eval echo "\"\$as_me:5988: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
d7040cdb
SE
5989 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5990 cat conftest.err >&5
81ecdfbb 5991 (eval echo "\"\$as_me:5991: output\"" >&5)
d7040cdb
SE
5992 cat conftest.out >&5
5993 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5994 lt_cv_nm_interface="MS dumpbin"
5995 fi
5996 rm -f conftest*
cfbc9945 5997fi
81ecdfbb
RW
5998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5999$as_echo "$lt_cv_nm_interface" >&6; }
a703a6ea 6000
81ecdfbb
RW
6001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6002$as_echo_n "checking whether ln -s works... " >&6; }
d7040cdb
SE
6003LN_S=$as_ln_s
6004if test "$LN_S" = "ln -s"; then
81ecdfbb
RW
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6006$as_echo "yes" >&6; }
d7040cdb 6007else
81ecdfbb
RW
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6009$as_echo "no, using $LN_S" >&6; }
d7040cdb 6010fi
252b5132 6011
cfbc9945 6012# find the maximum length of command line arguments
81ecdfbb
RW
6013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6014$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6015if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6016 $as_echo_n "(cached) " >&6
cfbc9945
SE
6017else
6018 i=0
6019 teststring="ABCD"
5464f5a1 6020
cfbc9945
SE
6021 case $build_os in
6022 msdosdjgpp*)
6023 # On DJGPP, this test can blow up pretty badly due to problems in libc
6024 # (any single argument exceeding 2000 bytes causes a buffer overrun
6025 # during glob expansion). Even if it were fixed, the result of this
6026 # check would be larger than it should be.
6027 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6028 ;;
5464f5a1 6029
d7040cdb
SE
6030 gnu*)
6031 # Under GNU Hurd, this test is not required because there is
6032 # no limit to the length of command line arguments.
6033 # Libtool will interpret -1 as no limit whatsoever
6034 lt_cv_sys_max_cmd_len=-1;
6035 ;;
6036
718a6fd8 6037 cygwin* | mingw* | cegcc*)
cfbc9945
SE
6038 # On Win9x/ME, this test blows up -- it succeeds, but takes
6039 # about 5 minutes as the teststring grows exponentially.
6040 # Worse, since 9x/ME are not pre-emptively multitasking,
6041 # you end up with a "frozen" computer, even though with patience
6042 # the test eventually succeeds (with a max line length of 256k).
6043 # Instead, let's just punt: use the minimum linelength reported by
6044 # all of the supported platforms: 8192 (on NT/2K/XP).
6045 lt_cv_sys_max_cmd_len=8192;
6046 ;;
5464f5a1 6047
cfbc9945
SE
6048 amigaos*)
6049 # On AmigaOS with pdksh, this test takes hours, literally.
6050 # So we just punt and use a minimum line length of 8192.
6051 lt_cv_sys_max_cmd_len=8192;
6052 ;;
5464f5a1 6053
cfbc9945
SE
6054 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6055 # This has been around since 386BSD, at least. Likely further.
6056 if test -x /sbin/sysctl; then
6057 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6058 elif test -x /usr/sbin/sysctl; then
6059 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6060 else
d7040cdb 6061 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
cfbc9945
SE
6062 fi
6063 # And add a safety zone
6064 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6065 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6066 ;;
d7040cdb
SE
6067
6068 interix*)
6069 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6070 lt_cv_sys_max_cmd_len=196608
6071 ;;
6072
6073 osf*)
6074 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6075 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6076 # nice to cause kernel panics so lets avoid the loop below.
6077 # First set a reasonable default.
6078 lt_cv_sys_max_cmd_len=16384
6079 #
6080 if test -x /sbin/sysconfig; then
6081 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6082 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6083 esac
6084 fi
6085 ;;
6086 sco3.2v5*)
6087 lt_cv_sys_max_cmd_len=102400
6088 ;;
6089 sysv5* | sco5v6* | sysv4.2uw2*)
6090 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6091 if test -n "$kargmax"; then
6092 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6093 else
6094 lt_cv_sys_max_cmd_len=32768
6095 fi
6096 ;;
6097 *)
718a6fd8
SE
6098 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6099 if test -n "$lt_cv_sys_max_cmd_len"; then
79887925
L
6100 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6101 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6102 else
6103 # Make teststring a little bigger before we do anything with it.
6104 # a 1K string should be a reasonable start.
6105 for i in 1 2 3 4 5 6 7 8 ; do
6106 teststring=$teststring$teststring
6107 done
6108 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6109 # If test is not a shell built-in, we'll probably end up computing a
6110 # maximum length that is only half of the actual maximum length, but
6111 # we can't tell.
6112 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6113 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6114 test $i != 17 # 1/2 MB should be enough
6115 do
6116 i=`expr $i + 1`
6117 teststring=$teststring$teststring
6118 done
6119 # Only check the string length outside the loop.
6120 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6121 teststring=
6122 # Add a significant safety factor because C++ compilers can tack on
6123 # massive amounts of additional arguments before passing them to the
6124 # linker. It appears as though 1/2 is a usable value.
6125 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6126 fi
d7040cdb 6127 ;;
cfbc9945 6128 esac
5464f5a1 6129
252b5132 6130fi
cfbc9945 6131
d7040cdb 6132if test -n $lt_cv_sys_max_cmd_len ; then
81ecdfbb
RW
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6134$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5464f5a1 6135else
81ecdfbb
RW
6136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6137$as_echo "none" >&6; }
5464f5a1 6138fi
d7040cdb 6139max_cmd_len=$lt_cv_sys_max_cmd_len
252b5132 6140
cfbc9945 6141
252b5132 6142
cfbc9945 6143
cfbc9945 6144
d7040cdb 6145
d7040cdb
SE
6146: ${CP="cp -f"}
6147: ${MV="mv -f"}
6148: ${RM="rm -f"}
6149
81ecdfbb
RW
6150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6151$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
d7040cdb
SE
6152# Try some XSI features
6153xsi_shell=no
6154( _lt_dummy="a/b/c"
6155 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
718a6fd8
SE
6156 = c,a/b,, \
6157 && eval 'test $(( 1 + 1 )) -eq 2 \
6158 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
d7040cdb 6159 && xsi_shell=yes
81ecdfbb
RW
6160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6161$as_echo "$xsi_shell" >&6; }
d7040cdb
SE
6162
6163
81ecdfbb
RW
6164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6165$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
d7040cdb
SE
6166lt_shell_append=no
6167( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6168 >/dev/null 2>&1 \
6169 && lt_shell_append=yes
81ecdfbb
RW
6170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6171$as_echo "$lt_shell_append" >&6; }
d7040cdb
SE
6172
6173
6174if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6175 lt_unset=unset
5464f5a1 6176else
d7040cdb 6177 lt_unset=false
5464f5a1 6178fi
252b5132 6179
d7040cdb
SE
6180
6181
6182
6183
6184# test EBCDIC or ASCII
6185case `echo X|tr X '\101'` in
6186 A) # ASCII based system
6187 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6188 lt_SP2NL='tr \040 \012'
6189 lt_NL2SP='tr \015\012 \040\040'
6190 ;;
6191 *) # EBCDIC based system
6192 lt_SP2NL='tr \100 \n'
6193 lt_NL2SP='tr \r\n \100\100'
6194 ;;
6195esac
6196
6197
6198
6199
6200
6201
6202
6203
6204
81ecdfbb
RW
6205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6206$as_echo_n "checking for $LD option to reload object files... " >&6; }
6207if test "${lt_cv_ld_reload_flag+set}" = set; then :
6208 $as_echo_n "(cached) " >&6
5464f5a1 6209else
d7040cdb
SE
6210 lt_cv_ld_reload_flag='-r'
6211fi
81ecdfbb
RW
6212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6213$as_echo "$lt_cv_ld_reload_flag" >&6; }
d7040cdb
SE
6214reload_flag=$lt_cv_ld_reload_flag
6215case $reload_flag in
6216"" | " "*) ;;
6217*) reload_flag=" $reload_flag" ;;
6218esac
6219reload_cmds='$LD$reload_flag -o $output$reload_objs'
6220case $host_os in
6221 darwin*)
6222 if test "$GCC" = yes; then
6223 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6224 else
6225 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6226 fi
6227 ;;
6228esac
6229
6230
6231
6232
6233
6234
6235
6236
6237
718a6fd8
SE
6238if test -n "$ac_tool_prefix"; then
6239 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6240set dummy ${ac_tool_prefix}objdump; ac_word=$2
81ecdfbb
RW
6241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6242$as_echo_n "checking for $ac_word... " >&6; }
6243if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6244 $as_echo_n "(cached) " >&6
718a6fd8
SE
6245else
6246 if test -n "$OBJDUMP"; then
6247 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6248else
6249as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6250for as_dir in $PATH
6251do
6252 IFS=$as_save_IFS
6253 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6254 for ac_exec_ext in '' $ac_executable_extensions; do
6255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 6256 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
81ecdfbb 6257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
6258 break 2
6259 fi
6260done
81ecdfbb
RW
6261 done
6262IFS=$as_save_IFS
718a6fd8
SE
6263
6264fi
6265fi
6266OBJDUMP=$ac_cv_prog_OBJDUMP
6267if test -n "$OBJDUMP"; then
81ecdfbb
RW
6268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6269$as_echo "$OBJDUMP" >&6; }
718a6fd8 6270else
81ecdfbb
RW
6271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6272$as_echo "no" >&6; }
718a6fd8
SE
6273fi
6274
81ecdfbb 6275
718a6fd8
SE
6276fi
6277if test -z "$ac_cv_prog_OBJDUMP"; then
6278 ac_ct_OBJDUMP=$OBJDUMP
6279 # Extract the first word of "objdump", so it can be a program name with args.
6280set dummy objdump; ac_word=$2
81ecdfbb
RW
6281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6282$as_echo_n "checking for $ac_word... " >&6; }
6283if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6284 $as_echo_n "(cached) " >&6
718a6fd8
SE
6285else
6286 if test -n "$ac_ct_OBJDUMP"; then
6287 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6288else
6289as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6290for as_dir in $PATH
6291do
6292 IFS=$as_save_IFS
6293 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6294 for ac_exec_ext in '' $ac_executable_extensions; do
6295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 6296 ac_cv_prog_ac_ct_OBJDUMP="objdump"
81ecdfbb 6297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
6298 break 2
6299 fi
6300done
81ecdfbb
RW
6301 done
6302IFS=$as_save_IFS
718a6fd8 6303
718a6fd8
SE
6304fi
6305fi
6306ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6307if test -n "$ac_ct_OBJDUMP"; then
81ecdfbb
RW
6308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6309$as_echo "$ac_ct_OBJDUMP" >&6; }
718a6fd8 6310else
81ecdfbb
RW
6311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6312$as_echo "no" >&6; }
718a6fd8
SE
6313fi
6314
81ecdfbb
RW
6315 if test "x$ac_ct_OBJDUMP" = x; then
6316 OBJDUMP="false"
6317 else
6318 case $cross_compiling:$ac_tool_warned in
6319yes:)
6320{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6321$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6322ac_tool_warned=yes ;;
6323esac
6324 OBJDUMP=$ac_ct_OBJDUMP
6325 fi
718a6fd8
SE
6326else
6327 OBJDUMP="$ac_cv_prog_OBJDUMP"
6328fi
6329
6330test -z "$OBJDUMP" && OBJDUMP=objdump
6331
6332
6333
6334
6335
6336
6337
6338
d7040cdb 6339
81ecdfbb
RW
6340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6341$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6342if test "${lt_cv_deplibs_check_method+set}" = set; then :
6343 $as_echo_n "(cached) " >&6
d7040cdb
SE
6344else
6345 lt_cv_file_magic_cmd='$MAGIC_CMD'
6346lt_cv_file_magic_test_file=
6347lt_cv_deplibs_check_method='unknown'
6348# Need to set the preceding variable on all platforms that support
6349# interlibrary dependencies.
6350# 'none' -- dependencies not supported.
6351# `unknown' -- same as none, but documents that we really don't know.
6352# 'pass_all' -- all dependencies passed with no checks.
6353# 'test_compile' -- check by making test program.
6354# 'file_magic [[regex]]' -- check by looking for files in library path
6355# which responds to the $file_magic_cmd with a given extended regex.
6356# If you have `file' or equivalent on your system and you're not sure
6357# whether `pass_all' will *always* work, you probably want this one.
6358
6359case $host_os in
e81819a5 6360aix[4-9]*)
d7040cdb
SE
6361 lt_cv_deplibs_check_method=pass_all
6362 ;;
6363
6364beos*)
6365 lt_cv_deplibs_check_method=pass_all
6366 ;;
6367
6368bsdi[45]*)
6369 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6370 lt_cv_file_magic_cmd='/usr/bin/file -L'
6371 lt_cv_file_magic_test_file=/shlib/libc.so
6372 ;;
6373
6374cygwin*)
6375 # func_win32_libid is a shell function defined in ltmain.sh
6376 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6377 lt_cv_file_magic_cmd='func_win32_libid'
6378 ;;
6379
6380mingw* | pw32*)
6381 # Base MSYS/MinGW do not provide the 'file' command needed by
6382 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6383 # unless we find 'file', for example because we are cross-compiling.
6384 if ( file / ) >/dev/null 2>&1; then
6385 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6386 lt_cv_file_magic_cmd='func_win32_libid'
6387 else
6388 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6389 lt_cv_file_magic_cmd='$OBJDUMP -f'
6390 fi
6391 ;;
6392
718a6fd8
SE
6393cegcc)
6394 # use the weaker test based on 'objdump'. See mingw*.
6395 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6396 lt_cv_file_magic_cmd='$OBJDUMP -f'
6397 ;;
6398
d7040cdb
SE
6399darwin* | rhapsody*)
6400 lt_cv_deplibs_check_method=pass_all
cfbc9945 6401 ;;
d7040cdb
SE
6402
6403freebsd* | dragonfly*)
6404 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6405 case $host_cpu in
6406 i*86 )
6407 # Not sure whether the presence of OpenBSD here was a mistake.
6408 # Let's accept both of them until this is cleared up.
6409 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6410 lt_cv_file_magic_cmd=/usr/bin/file
6411 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6412 ;;
6413 esac
6414 else
6415 lt_cv_deplibs_check_method=pass_all
6416 fi
6417 ;;
6418
6419gnu*)
6420 lt_cv_deplibs_check_method=pass_all
cfbc9945 6421 ;;
d7040cdb
SE
6422
6423hpux10.20* | hpux11*)
6424 lt_cv_file_magic_cmd=/usr/bin/file
6425 case $host_cpu in
6426 ia64*)
6427 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6428 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6429 ;;
6430 hppa*64*)
6431 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
6432 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6433 ;;
cfbc9945 6434 *)
d7040cdb
SE
6435 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6436 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6437 ;;
6438 esac
6439 ;;
6be7c12c 6440
d7040cdb
SE
6441interix[3-9]*)
6442 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6443 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6444 ;;
cfbc9945 6445
d7040cdb
SE
6446irix5* | irix6* | nonstopux*)
6447 case $LD in
6448 *-32|*"-32 ") libmagic=32-bit;;
6449 *-n32|*"-n32 ") libmagic=N32;;
6450 *-64|*"-64 ") libmagic=64-bit;;
6451 *) libmagic=never-match;;
6452 esac
6453 lt_cv_deplibs_check_method=pass_all
cfbc9945 6454 ;;
cfbc9945 6455
d7040cdb 6456# This must be Linux ELF.
58e24671 6457linux* | k*bsd*-gnu | kopensolaris*-gnu)
d7040cdb
SE
6458 lt_cv_deplibs_check_method=pass_all
6459 ;;
5464f5a1 6460
d7040cdb
SE
6461netbsd*)
6462 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6463 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
cfbc9945 6464 else
d7040cdb 6465 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
cfbc9945 6466 fi
d7040cdb
SE
6467 ;;
6468
6469newos6*)
6470 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6471 lt_cv_file_magic_cmd=/usr/bin/file
6472 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6473 ;;
6474
6475*nto* | *qnx*)
6476 lt_cv_deplibs_check_method=pass_all
6477 ;;
cfbc9945 6478
d7040cdb
SE
6479openbsd*)
6480 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6481 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6482 else
6483 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
cfbc9945
SE
6484 fi
6485 ;;
d7040cdb
SE
6486
6487osf3* | osf4* | osf5*)
6488 lt_cv_deplibs_check_method=pass_all
6489 ;;
6490
6491rdos*)
6492 lt_cv_deplibs_check_method=pass_all
6493 ;;
6494
6495solaris*)
6496 lt_cv_deplibs_check_method=pass_all
6497 ;;
6498
6499sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6500 lt_cv_deplibs_check_method=pass_all
6501 ;;
6502
6503sysv4 | sysv4.3*)
6504 case $host_vendor in
6505 motorola)
6506 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]'
6507 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6508 ;;
6509 ncr)
6510 lt_cv_deplibs_check_method=pass_all
6511 ;;
6512 sequent)
6513 lt_cv_file_magic_cmd='/bin/file'
6514 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6515 ;;
6516 sni)
6517 lt_cv_file_magic_cmd='/bin/file'
6518 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6519 lt_cv_file_magic_test_file=/lib/libc.so
6520 ;;
6521 siemens)
6522 lt_cv_deplibs_check_method=pass_all
6523 ;;
6524 pc)
6525 lt_cv_deplibs_check_method=pass_all
6526 ;;
6527 esac
6528 ;;
6529
6530tpf*)
6531 lt_cv_deplibs_check_method=pass_all
6532 ;;
cfbc9945
SE
6533esac
6534
d7040cdb 6535fi
81ecdfbb
RW
6536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6537$as_echo "$lt_cv_deplibs_check_method" >&6; }
d7040cdb
SE
6538file_magic_cmd=$lt_cv_file_magic_cmd
6539deplibs_check_method=$lt_cv_deplibs_check_method
6540test -z "$deplibs_check_method" && deplibs_check_method=unknown
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
cfbc9945 6553if test -n "$ac_tool_prefix"; then
d7040cdb
SE
6554 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6555set dummy ${ac_tool_prefix}ar; ac_word=$2
81ecdfbb
RW
6556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6557$as_echo_n "checking for $ac_word... " >&6; }
6558if test "${ac_cv_prog_AR+set}" = set; then :
6559 $as_echo_n "(cached) " >&6
5464f5a1 6560else
d7040cdb
SE
6561 if test -n "$AR"; then
6562 ac_cv_prog_AR="$AR" # Let the user override the test.
5464f5a1
NN
6563else
6564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6565for as_dir in $PATH
6566do
6567 IFS=$as_save_IFS
6568 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6569 for ac_exec_ext in '' $ac_executable_extensions; do
6570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 6571 ac_cv_prog_AR="${ac_tool_prefix}ar"
81ecdfbb 6572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5464f5a1
NN
6573 break 2
6574 fi
6575done
81ecdfbb
RW
6576 done
6577IFS=$as_save_IFS
5464f5a1
NN
6578
6579fi
6580fi
d7040cdb
SE
6581AR=$ac_cv_prog_AR
6582if test -n "$AR"; then
81ecdfbb
RW
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6584$as_echo "$AR" >&6; }
5464f5a1 6585else
81ecdfbb
RW
6586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6587$as_echo "no" >&6; }
5464f5a1
NN
6588fi
6589
81ecdfbb 6590
5464f5a1 6591fi
d7040cdb
SE
6592if test -z "$ac_cv_prog_AR"; then
6593 ac_ct_AR=$AR
6594 # Extract the first word of "ar", so it can be a program name with args.
6595set dummy ar; ac_word=$2
81ecdfbb
RW
6596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6597$as_echo_n "checking for $ac_word... " >&6; }
6598if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6599 $as_echo_n "(cached) " >&6
252b5132 6600else
d7040cdb
SE
6601 if test -n "$ac_ct_AR"; then
6602 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
252b5132 6603else
5464f5a1
NN
6604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6605for as_dir in $PATH
6606do
6607 IFS=$as_save_IFS
6608 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6609 for ac_exec_ext in '' $ac_executable_extensions; do
6610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 6611 ac_cv_prog_ac_ct_AR="ar"
81ecdfbb 6612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5464f5a1
NN
6613 break 2
6614 fi
6615done
81ecdfbb
RW
6616 done
6617IFS=$as_save_IFS
5464f5a1 6618
5464f5a1
NN
6619fi
6620fi
d7040cdb
SE
6621ac_ct_AR=$ac_cv_prog_ac_ct_AR
6622if test -n "$ac_ct_AR"; then
81ecdfbb
RW
6623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6624$as_echo "$ac_ct_AR" >&6; }
d7040cdb 6625else
81ecdfbb
RW
6626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6627$as_echo "no" >&6; }
5464f5a1
NN
6628fi
6629
81ecdfbb
RW
6630 if test "x$ac_ct_AR" = x; then
6631 AR="false"
6632 else
6633 case $cross_compiling:$ac_tool_warned in
6634yes:)
6635{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6636$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6637ac_tool_warned=yes ;;
6638esac
6639 AR=$ac_ct_AR
6640 fi
cfbc9945 6641else
d7040cdb 6642 AR="$ac_cv_prog_AR"
5464f5a1 6643fi
cfbc9945 6644
d7040cdb
SE
6645test -z "$AR" && AR=ar
6646test -z "$AR_FLAGS" && AR_FLAGS=cru
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
cfbc9945
SE
6658if test -n "$ac_tool_prefix"; then
6659 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6660set dummy ${ac_tool_prefix}strip; ac_word=$2
81ecdfbb
RW
6661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6662$as_echo_n "checking for $ac_word... " >&6; }
6663if test "${ac_cv_prog_STRIP+set}" = set; then :
6664 $as_echo_n "(cached) " >&6
5464f5a1 6665else
cfbc9945
SE
6666 if test -n "$STRIP"; then
6667 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5464f5a1
NN
6668else
6669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6670for as_dir in $PATH
6671do
6672 IFS=$as_save_IFS
6673 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6674 for ac_exec_ext in '' $ac_executable_extensions; do
6675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cfbc9945 6676 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
81ecdfbb 6677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5464f5a1
NN
6678 break 2
6679 fi
6680done
81ecdfbb
RW
6681 done
6682IFS=$as_save_IFS
5464f5a1
NN
6683
6684fi
6685fi
cfbc9945
SE
6686STRIP=$ac_cv_prog_STRIP
6687if test -n "$STRIP"; then
81ecdfbb
RW
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6689$as_echo "$STRIP" >&6; }
5464f5a1 6690else
81ecdfbb
RW
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6692$as_echo "no" >&6; }
5464f5a1
NN
6693fi
6694
81ecdfbb 6695
252b5132 6696fi
cfbc9945
SE
6697if test -z "$ac_cv_prog_STRIP"; then
6698 ac_ct_STRIP=$STRIP
6699 # Extract the first word of "strip", so it can be a program name with args.
6700set dummy strip; ac_word=$2
81ecdfbb
RW
6701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6702$as_echo_n "checking for $ac_word... " >&6; }
6703if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6704 $as_echo_n "(cached) " >&6
5464f5a1 6705else
cfbc9945
SE
6706 if test -n "$ac_ct_STRIP"; then
6707 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5464f5a1
NN
6708else
6709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6710for as_dir in $PATH
6711do
6712 IFS=$as_save_IFS
6713 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6714 for ac_exec_ext in '' $ac_executable_extensions; do
6715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cfbc9945 6716 ac_cv_prog_ac_ct_STRIP="strip"
81ecdfbb 6717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5464f5a1
NN
6718 break 2
6719 fi
6720done
81ecdfbb
RW
6721 done
6722IFS=$as_save_IFS
5464f5a1
NN
6723
6724fi
6725fi
cfbc9945
SE
6726ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6727if test -n "$ac_ct_STRIP"; then
81ecdfbb
RW
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6729$as_echo "$ac_ct_STRIP" >&6; }
5464f5a1 6730else
81ecdfbb
RW
6731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6732$as_echo "no" >&6; }
5464f5a1
NN
6733fi
6734
81ecdfbb
RW
6735 if test "x$ac_ct_STRIP" = x; then
6736 STRIP=":"
6737 else
6738 case $cross_compiling:$ac_tool_warned in
6739yes:)
6740{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6741$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6742ac_tool_warned=yes ;;
6743esac
6744 STRIP=$ac_ct_STRIP
6745 fi
cfbc9945
SE
6746else
6747 STRIP="$ac_cv_prog_STRIP"
5464f5a1
NN
6748fi
6749
d7040cdb 6750test -z "$STRIP" && STRIP=:
5464f5a1 6751
cfbc9945
SE
6752
6753
cfbc9945 6754
cfbc9945
SE
6755
6756
d7040cdb
SE
6757if test -n "$ac_tool_prefix"; then
6758 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6759set dummy ${ac_tool_prefix}ranlib; ac_word=$2
81ecdfbb
RW
6760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6761$as_echo_n "checking for $ac_word... " >&6; }
6762if test "${ac_cv_prog_RANLIB+set}" = set; then :
6763 $as_echo_n "(cached) " >&6
cfbc9945 6764else
d7040cdb
SE
6765 if test -n "$RANLIB"; then
6766 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6767else
6768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6769for as_dir in $PATH
6770do
6771 IFS=$as_save_IFS
6772 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6773 for ac_exec_ext in '' $ac_executable_extensions; do
6774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 6775 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
81ecdfbb 6776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb 6777 break 2
cfbc9945 6778 fi
d7040cdb 6779done
81ecdfbb
RW
6780 done
6781IFS=$as_save_IFS
cfbc9945 6782
d7040cdb
SE
6783fi
6784fi
6785RANLIB=$ac_cv_prog_RANLIB
6786if test -n "$RANLIB"; then
81ecdfbb
RW
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6788$as_echo "$RANLIB" >&6; }
d7040cdb 6789else
81ecdfbb
RW
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6791$as_echo "no" >&6; }
d7040cdb 6792fi
cfbc9945 6793
81ecdfbb 6794
d7040cdb
SE
6795fi
6796if test -z "$ac_cv_prog_RANLIB"; then
6797 ac_ct_RANLIB=$RANLIB
6798 # Extract the first word of "ranlib", so it can be a program name with args.
6799set dummy ranlib; ac_word=$2
81ecdfbb
RW
6800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6801$as_echo_n "checking for $ac_word... " >&6; }
6802if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6803 $as_echo_n "(cached) " >&6
d7040cdb
SE
6804else
6805 if test -n "$ac_ct_RANLIB"; then
6806 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6807else
6808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6809for as_dir in $PATH
6810do
6811 IFS=$as_save_IFS
6812 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6813 for ac_exec_ext in '' $ac_executable_extensions; do
6814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 6815 ac_cv_prog_ac_ct_RANLIB="ranlib"
81ecdfbb 6816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb 6817 break 2
cfbc9945 6818 fi
d7040cdb 6819done
81ecdfbb
RW
6820 done
6821IFS=$as_save_IFS
cfbc9945 6822
d7040cdb
SE
6823fi
6824fi
6825ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6826if test -n "$ac_ct_RANLIB"; then
81ecdfbb
RW
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6828$as_echo "$ac_ct_RANLIB" >&6; }
cfbc9945 6829else
81ecdfbb
RW
6830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6831$as_echo "no" >&6; }
d7040cdb 6832fi
5464f5a1 6833
81ecdfbb
RW
6834 if test "x$ac_ct_RANLIB" = x; then
6835 RANLIB=":"
6836 else
6837 case $cross_compiling:$ac_tool_warned in
6838yes:)
6839{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6840$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6841ac_tool_warned=yes ;;
6842esac
6843 RANLIB=$ac_ct_RANLIB
6844 fi
d7040cdb
SE
6845else
6846 RANLIB="$ac_cv_prog_RANLIB"
6847fi
5464f5a1 6848
d7040cdb 6849test -z "$RANLIB" && RANLIB=:
5464f5a1 6850
5464f5a1 6851
5464f5a1 6852
cfbc9945 6853
cfbc9945 6854
d7040cdb
SE
6855
6856# Determine commands to create old-style static archives.
718a6fd8 6857old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
d7040cdb
SE
6858old_postinstall_cmds='chmod 644 $oldlib'
6859old_postuninstall_cmds=
6860
6861if test -n "$RANLIB"; then
6862 case $host_os in
6863 openbsd*)
6864 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6865 ;;
6866 *)
6867 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6868 ;;
6869 esac
6870 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
cfbc9945 6871fi
cfbc9945
SE
6872
6873
cfbc9945
SE
6874
6875
cfbc9945 6876
cfbc9945 6877
cfbc9945 6878
cfbc9945 6879
cfbc9945
SE
6880
6881
cfbc9945 6882
cfbc9945 6883
cfbc9945
SE
6884
6885
6886
6887
6888
6889
6890
5464f5a1 6891
5464f5a1 6892
cfbc9945
SE
6893
6894
6895
5464f5a1 6896
5464f5a1 6897
cfbc9945
SE
6898
6899
6900
5464f5a1 6901
cfbc9945
SE
6902
6903
6904
6905
d7040cdb
SE
6906# If no C compiler was specified, use CC.
6907LTCC=${LTCC-"$CC"}
cfbc9945 6908
d7040cdb
SE
6909# If no C compiler flags were specified, use CFLAGS.
6910LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
cfbc9945 6911
d7040cdb
SE
6912# Allow CC to be a program name with arguments.
6913compiler=$CC
cfbc9945 6914
cfbc9945 6915
d7040cdb 6916# Check for command to grab the raw symbol name followed by C symbol from nm.
81ecdfbb
RW
6917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6918$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6919if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6920 $as_echo_n "(cached) " >&6
d7040cdb 6921else
5464f5a1 6922
d7040cdb
SE
6923# These are sane defaults that work on at least a few old systems.
6924# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5464f5a1 6925
d7040cdb
SE
6926# Character class describing NM global symbol codes.
6927symcode='[BCDEGRST]'
6928
6929# Regexp to match symbols that can be accessed directly from C.
6930sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6931
6932# Define system-specific variables.
6933case $host_os in
6934aix*)
6935 symcode='[BCDT]'
6936 ;;
718a6fd8 6937cygwin* | mingw* | pw32* | cegcc*)
d7040cdb
SE
6938 symcode='[ABCDGISTW]'
6939 ;;
6940hpux*)
6941 if test "$host_cpu" = ia64; then
6942 symcode='[ABCDEGRST]'
6943 fi
6944 ;;
6945irix* | nonstopux*)
6946 symcode='[BCDEGRST]'
6947 ;;
6948osf*)
6949 symcode='[BCDEGQRST]'
6950 ;;
6951solaris*)
6952 symcode='[BDRT]'
6953 ;;
6954sco3.2v5*)
6955 symcode='[DT]'
6956 ;;
6957sysv4.2uw2*)
6958 symcode='[DT]'
6959 ;;
6960sysv5* | sco5v6* | unixware* | OpenUNIX*)
6961 symcode='[ABDT]'
6962 ;;
6963sysv4)
6964 symcode='[DFNSTU]'
6965 ;;
cfbc9945 6966esac
5464f5a1 6967
d7040cdb
SE
6968# If we're using GNU nm, then use its standard symbol codes.
6969case `$NM -V 2>&1` in
6970*GNU* | *'with BFD'*)
6971 symcode='[ABCDGIRSTW]' ;;
6972esac
5464f5a1 6973
d7040cdb
SE
6974# Transform an extracted symbol line into a proper C declaration.
6975# Some systems (esp. on ia64) link data and code symbols differently,
6976# so use this general approach.
6977lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5464f5a1 6978
d7040cdb
SE
6979# Transform an extracted symbol line into symbol name and symbol address
6980lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
718a6fd8 6981lt_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 6982
d7040cdb
SE
6983# Handle CRLF in mingw tool chain
6984opt_cr=
6985case $build_os in
6986mingw*)
6987 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6988 ;;
6989esac
5464f5a1 6990
d7040cdb
SE
6991# Try without a prefix underscore, then with it.
6992for ac_symprfx in "" "_"; do
6993
6994 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6995 symxfrm="\\1 $ac_symprfx\\2 \\2"
6996
6997 # Write the raw and C identifiers.
6998 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6999 # Fake it for dumpbin and say T for any non-static function
7000 # and D for any global variable.
7001 # Also find C++ and __fastcall symbols from MSVC++,
7002 # which start with @ or ?.
7003 lt_cv_sys_global_symbol_pipe="$AWK '"\
7004" {last_section=section; section=\$ 3};"\
7005" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7006" \$ 0!~/External *\|/{next};"\
7007" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7008" {if(hide[section]) next};"\
7009" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7010" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7011" s[1]~/^[@?]/{print s[1], s[1]; next};"\
7012" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7013" ' prfx=^$ac_symprfx"
7014 else
7015 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7016 fi
cfbc9945 7017
d7040cdb
SE
7018 # Check to see that the pipe works correctly.
7019 pipe_works=no
cfbc9945 7020
d7040cdb
SE
7021 rm -f conftest*
7022 cat > conftest.$ac_ext <<_LT_EOF
7023#ifdef __cplusplus
7024extern "C" {
7025#endif
7026char nm_test_var;
7027void nm_test_func(void);
7028void nm_test_func(void){}
7029#ifdef __cplusplus
7030}
7031#endif
7032int main(){nm_test_var='a';nm_test_func();return(0);}
7033_LT_EOF
cfbc9945 7034
81ecdfbb 7035 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
d7040cdb
SE
7036 (eval $ac_compile) 2>&5
7037 ac_status=$?
81ecdfbb
RW
7038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7039 test $ac_status = 0; }; then
d7040cdb
SE
7040 # Now try to grab the symbols.
7041 nlist=conftest.nm
81ecdfbb 7042 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
d7040cdb
SE
7043 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7044 ac_status=$?
81ecdfbb
RW
7045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7046 test $ac_status = 0; } && test -s "$nlist"; then
d7040cdb
SE
7047 # Try sorting and uniquifying the output.
7048 if sort "$nlist" | uniq > "$nlist"T; then
7049 mv -f "$nlist"T "$nlist"
7050 else
7051 rm -f "$nlist"T
7052 fi
cfbc9945 7053
d7040cdb
SE
7054 # Make sure that we snagged all the symbols we need.
7055 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7056 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7057 cat <<_LT_EOF > conftest.$ac_ext
7058#ifdef __cplusplus
7059extern "C" {
7060#endif
cfbc9945 7061
d7040cdb
SE
7062_LT_EOF
7063 # Now generate the symbol file.
7064 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5464f5a1 7065
d7040cdb 7066 cat <<_LT_EOF >> conftest.$ac_ext
cfbc9945 7067
d7040cdb
SE
7068/* The mapping between symbol names and symbols. */
7069const struct {
7070 const char *name;
7071 void *address;
7072}
7073lt__PROGRAM__LTX_preloaded_symbols[] =
7074{
7075 { "@PROGRAM@", (void *) 0 },
7076_LT_EOF
7077 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7078 cat <<\_LT_EOF >> conftest.$ac_ext
7079 {0, (void *) 0}
7080};
7081
7082/* This works around a problem in FreeBSD linker */
7083#ifdef FREEBSD_WORKAROUND
7084static const void *lt_preloaded_setup() {
7085 return lt__PROGRAM__LTX_preloaded_symbols;
7086}
7087#endif
cfbc9945 7088
d7040cdb
SE
7089#ifdef __cplusplus
7090}
7091#endif
7092_LT_EOF
7093 # Now try linking the two files.
7094 mv conftest.$ac_objext conftstm.$ac_objext
7095 lt_save_LIBS="$LIBS"
7096 lt_save_CFLAGS="$CFLAGS"
7097 LIBS="conftstm.$ac_objext"
7098 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
81ecdfbb 7099 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
d7040cdb
SE
7100 (eval $ac_link) 2>&5
7101 ac_status=$?
81ecdfbb
RW
7102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7103 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
d7040cdb
SE
7104 pipe_works=yes
7105 fi
7106 LIBS="$lt_save_LIBS"
7107 CFLAGS="$lt_save_CFLAGS"
7108 else
7109 echo "cannot find nm_test_func in $nlist" >&5
7110 fi
7111 else
7112 echo "cannot find nm_test_var in $nlist" >&5
7113 fi
7114 else
7115 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7116 fi
7117 else
7118 echo "$progname: failed program was:" >&5
7119 cat conftest.$ac_ext >&5
7120 fi
718a6fd8 7121 rm -rf conftest* conftst*
cfbc9945 7122
d7040cdb
SE
7123 # Do not use the global_symbol_pipe unless it works.
7124 if test "$pipe_works" = yes; then
7125 break
7126 else
7127 lt_cv_sys_global_symbol_pipe=
7128 fi
7129done
cfbc9945 7130
252b5132 7131fi
5464f5a1 7132
d7040cdb
SE
7133if test -z "$lt_cv_sys_global_symbol_pipe"; then
7134 lt_cv_sys_global_symbol_to_cdecl=
7135fi
7136if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
81ecdfbb
RW
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7138$as_echo "failed" >&6; }
b3baf5d0 7139else
81ecdfbb
RW
7140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7141$as_echo "ok" >&6; }
d7040cdb 7142fi
5464f5a1 7143
cfbc9945 7144
b3baf5d0 7145
cfbc9945
SE
7146
7147
7148
7149
5464f5a1 7150
4a2a2686
HPN
7151
7152
7153
cfbc9945
SE
7154
7155
cfbc9945 7156
cfbc9945 7157
718a6fd8
SE
7158
7159
7160
7161
7162
9d7cbccd 7163
20e95c23 7164
81ecdfbb
RW
7165# Check whether --enable-libtool-lock was given.
7166if test "${enable_libtool_lock+set}" = set; then :
7167 enableval=$enable_libtool_lock;
7168fi
20e95c23 7169
d7040cdb 7170test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
20e95c23 7171
d7040cdb
SE
7172# Some flags need to be propagated to the compiler or linker for good
7173# libtool support.
7174case $host in
7175ia64-*-hpux*)
7176 # Find out which ABI we are using.
7177 echo 'int i;' > conftest.$ac_ext
81ecdfbb 7178 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
d7040cdb
SE
7179 (eval $ac_compile) 2>&5
7180 ac_status=$?
81ecdfbb
RW
7181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7182 test $ac_status = 0; }; then
d7040cdb
SE
7183 case `/usr/bin/file conftest.$ac_objext` in
7184 *ELF-32*)
7185 HPUX_IA64_MODE="32"
7186 ;;
7187 *ELF-64*)
7188 HPUX_IA64_MODE="64"
7189 ;;
20e95c23 7190 esac
d7040cdb
SE
7191 fi
7192 rm -rf conftest*
7193 ;;
7194*-*-irix6*)
7195 # Find out which ABI we are using.
81ecdfbb
RW
7196 echo '#line 7196 "configure"' > conftest.$ac_ext
7197 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
d7040cdb
SE
7198 (eval $ac_compile) 2>&5
7199 ac_status=$?
81ecdfbb
RW
7200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7201 test $ac_status = 0; }; then
d7040cdb
SE
7202 if test "$lt_cv_prog_gnu_ld" = yes; then
7203 case `/usr/bin/file conftest.$ac_objext` in
7204 *32-bit*)
7205 LD="${LD-ld} -melf32bsmip"
7206 ;;
7207 *N32*)
7208 LD="${LD-ld} -melf32bmipn32"
7209 ;;
7210 *64-bit*)
7211 LD="${LD-ld} -melf64bmip"
7212 ;;
7213 esac
20e95c23 7214 else
d7040cdb
SE
7215 case `/usr/bin/file conftest.$ac_objext` in
7216 *32-bit*)
7217 LD="${LD-ld} -32"
7218 ;;
7219 *N32*)
7220 LD="${LD-ld} -n32"
7221 ;;
7222 *64-bit*)
7223 LD="${LD-ld} -64"
7224 ;;
20e95c23
DJ
7225 esac
7226 fi
d7040cdb
SE
7227 fi
7228 rm -rf conftest*
7229 ;;
20e95c23 7230
d7040cdb
SE
7231x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7232s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7233 # Find out which ABI we are using.
7234 echo 'int i;' > conftest.$ac_ext
81ecdfbb 7235 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
d7040cdb
SE
7236 (eval $ac_compile) 2>&5
7237 ac_status=$?
81ecdfbb
RW
7238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7239 test $ac_status = 0; }; then
d7040cdb
SE
7240 case `/usr/bin/file conftest.o` in
7241 *32-bit*)
7242 case $host in
7243 x86_64-*kfreebsd*-gnu)
7244 LD="${LD-ld} -m elf_i386_fbsd"
7245 ;;
7246 x86_64-*linux*)
7247 LD="${LD-ld} -m elf_i386"
7248 ;;
7249 ppc64-*linux*|powerpc64-*linux*)
7250 LD="${LD-ld} -m elf32ppclinux"
7251 ;;
7252 s390x-*linux*)
7253 LD="${LD-ld} -m elf_s390"
7254 ;;
7255 sparc64-*linux*)
7256 LD="${LD-ld} -m elf32_sparc"
7257 ;;
7258 esac
7259 ;;
7260 *64-bit*)
7261 case $host in
7262 x86_64-*kfreebsd*-gnu)
7263 LD="${LD-ld} -m elf_x86_64_fbsd"
7264 ;;
7265 x86_64-*linux*)
7266 LD="${LD-ld} -m elf_x86_64"
7267 ;;
7268 ppc*-*linux*|powerpc*-*linux*)
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; }
718a6fd8
SE
7908 case $host_os in
7909 rhapsody* | darwin1.[012])
7910 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7911 darwin1.*)
7912 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7913 darwin*) # darwin 5.x on
7914 # if running on 10.5 or later, the deployment target defaults
7915 # to the OS version, if on x86, and 10.4, the deployment
7916 # target defaults to 10.4. Don't you love it?
7917 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7918 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7919 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7920 10.[012]*)
7921 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7922 10.*)
7923 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7924 esac
7925 ;;
7926 esac
7927 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7928 _lt_dar_single_mod='$single_module'
7929 fi
7930 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7931 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7932 else
7933 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7934 fi
7935 if test "$DSYMUTIL" != ":"; then
7936 _lt_dsymutil='~$DSYMUTIL $lib || :'
7937 else
7938 _lt_dsymutil=
7939 fi
7940 ;;
7941 esac
7942
d7040cdb 7943for ac_header in dlfcn.h
81ecdfbb
RW
7944do :
7945 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7946"
7947if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
d7040cdb 7948 cat >>confdefs.h <<_ACEOF
81ecdfbb 7949#define HAVE_DLFCN_H 1
d7040cdb
SE
7950_ACEOF
7951
7952fi
7953
7954done
7955
7956
7957
718a6fd8 7958# Set options
ce3c775b 7959enable_dlopen=yes
718a6fd8
SE
7960
7961
7962
718a6fd8
SE
7963
7964 enable_win32_dll=no
7965
7966
7967
81ecdfbb
RW
7968 # Check whether --enable-static was given.
7969if test "${enable_static+set}" = set; then :
7970 enableval=$enable_static; p=${PACKAGE-default}
718a6fd8
SE
7971 case $enableval in
7972 yes) enable_static=yes ;;
7973 no) enable_static=no ;;
7974 *)
7975 enable_static=no
7976 # Look at the argument we got. We use all the common list separators.
7977 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7978 for pkg in $enableval; do
7979 IFS="$lt_save_ifs"
7980 if test "X$pkg" = "X$p"; then
7981 enable_static=yes
7982 fi
7983 done
7984 IFS="$lt_save_ifs"
7985 ;;
7986 esac
7987else
7988 enable_static=yes
81ecdfbb 7989fi
718a6fd8
SE
7990
7991
7992
7993
7994
7995
7996
7997
7998
81ecdfbb
RW
7999
8000# Check whether --with-pic was given.
8001if test "${with_pic+set}" = set; then :
8002 withval=$with_pic; pic_mode="$withval"
718a6fd8
SE
8003else
8004 pic_mode=default
81ecdfbb
RW
8005fi
8006
718a6fd8
SE
8007
8008test -z "$pic_mode" && pic_mode=default
8009
8010
8011
8012
8013
8014
8015
81ecdfbb
RW
8016 # Check whether --enable-fast-install was given.
8017if test "${enable_fast_install+set}" = set; then :
8018 enableval=$enable_fast_install; p=${PACKAGE-default}
718a6fd8
SE
8019 case $enableval in
8020 yes) enable_fast_install=yes ;;
8021 no) enable_fast_install=no ;;
8022 *)
8023 enable_fast_install=no
8024 # Look at the argument we got. We use all the common list separators.
8025 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8026 for pkg in $enableval; do
8027 IFS="$lt_save_ifs"
8028 if test "X$pkg" = "X$p"; then
8029 enable_fast_install=yes
8030 fi
8031 done
8032 IFS="$lt_save_ifs"
8033 ;;
8034 esac
8035else
8036 enable_fast_install=yes
81ecdfbb
RW
8037fi
8038
718a6fd8
SE
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
d7040cdb
SE
8049# This can be used to rebuild libtool when needed
8050LIBTOOL_DEPS="$ltmain"
8051
8052# Always use our own libtool.
8053LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079test -z "$LN_S" && LN_S="ln -s"
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094if test -n "${ZSH_VERSION+set}" ; then
8095 setopt NO_GLOB_SUBST
8096fi
8097
81ecdfbb
RW
8098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8099$as_echo_n "checking for objdir... " >&6; }
8100if test "${lt_cv_objdir+set}" = set; then :
8101 $as_echo_n "(cached) " >&6
d7040cdb
SE
8102else
8103 rm -f .libs 2>/dev/null
8104mkdir .libs 2>/dev/null
8105if test -d .libs; then
8106 lt_cv_objdir=.libs
8107else
8108 # MS-DOS does not allow filenames that begin with a dot.
8109 lt_cv_objdir=_libs
8110fi
8111rmdir .libs 2>/dev/null
8112fi
81ecdfbb
RW
8113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8114$as_echo "$lt_cv_objdir" >&6; }
d7040cdb
SE
8115objdir=$lt_cv_objdir
8116
8117
8118
8119
8120
8121cat >>confdefs.h <<_ACEOF
8122#define LT_OBJDIR "$lt_cv_objdir/"
8123_ACEOF
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141case $host_os in
8142aix3*)
8143 # AIX sometimes has problems with the GCC collect2 program. For some
8144 # reason, if we set the COLLECT_NAMES environment variable, the problems
8145 # vanish in a puff of smoke.
8146 if test "X${COLLECT_NAMES+set}" != Xset; then
8147 COLLECT_NAMES=
8148 export COLLECT_NAMES
8149 fi
8150 ;;
8151esac
8152
8153# Sed substitution that helps us do robust quoting. It backslashifies
8154# metacharacters that are still active within double-quoted strings.
8155sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8156
8157# Same as above, but do not quote variable references.
8158double_quote_subst='s/\(["`\\]\)/\\\1/g'
8159
8160# Sed substitution to delay expansion of an escaped shell variable in a
8161# double_quote_subst'ed string.
8162delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8163
8164# Sed substitution to delay expansion of an escaped single quote.
8165delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8166
8167# Sed substitution to avoid accidental globbing in evaled expressions
8168no_glob_subst='s/\*/\\\*/g'
8169
8170# Global variables:
8171ofile=libtool
8172can_build_shared=yes
8173
8174# All known linkers require a `.a' archive for static linking (except MSVC,
8175# which needs '.lib').
8176libext=a
8177
8178with_gnu_ld="$lt_cv_prog_gnu_ld"
8179
8180old_CC="$CC"
8181old_CFLAGS="$CFLAGS"
8182
8183# Set sane defaults for various variables
8184test -z "$CC" && CC=cc
8185test -z "$LTCC" && LTCC=$CC
8186test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8187test -z "$LD" && LD=ld
8188test -z "$ac_objext" && ac_objext=o
8189
8190for cc_temp in $compiler""; do
8191 case $cc_temp in
8192 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8193 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8194 \-*) ;;
8195 *) break;;
8196 esac
8197done
8198cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8199
8200
8201# Only perform the check for file, if the check method requires it
8202test -z "$MAGIC_CMD" && MAGIC_CMD=file
8203case $deplibs_check_method in
8204file_magic*)
8205 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
81ecdfbb
RW
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8207$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8208if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8209 $as_echo_n "(cached) " >&6
d7040cdb
SE
8210else
8211 case $MAGIC_CMD in
8212[\\/*] | ?:[\\/]*)
8213 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8214 ;;
8215*)
8216 lt_save_MAGIC_CMD="$MAGIC_CMD"
8217 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8218 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8219 for ac_dir in $ac_dummy; do
8220 IFS="$lt_save_ifs"
8221 test -z "$ac_dir" && ac_dir=.
8222 if test -f $ac_dir/${ac_tool_prefix}file; then
8223 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8224 if test -n "$file_magic_test_file"; then
8225 case $deplibs_check_method in
8226 "file_magic "*)
8227 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8228 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8229 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8230 $EGREP "$file_magic_regex" > /dev/null; then
8231 :
8232 else
8233 cat <<_LT_EOF 1>&2
8234
8235*** Warning: the command libtool uses to detect shared libraries,
8236*** $file_magic_cmd, produces output that libtool cannot recognize.
8237*** The result is that libtool may fail to recognize shared libraries
8238*** as such. This will affect the creation of libtool libraries that
8239*** depend on shared libraries, but programs linked with such libtool
8240*** libraries will work regardless of this problem. Nevertheless, you
8241*** may want to report the problem to your system manager and/or to
8242*** bug-libtool@gnu.org
8243
8244_LT_EOF
8245 fi ;;
8246 esac
8247 fi
8248 break
8249 fi
8250 done
8251 IFS="$lt_save_ifs"
8252 MAGIC_CMD="$lt_save_MAGIC_CMD"
8253 ;;
8254esac
8255fi
8256
8257MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8258if test -n "$MAGIC_CMD"; then
81ecdfbb
RW
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8260$as_echo "$MAGIC_CMD" >&6; }
d7040cdb 8261else
81ecdfbb
RW
8262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8263$as_echo "no" >&6; }
d7040cdb
SE
8264fi
8265
8266
8267
8268
8269
8270if test -z "$lt_cv_path_MAGIC_CMD"; then
8271 if test -n "$ac_tool_prefix"; then
81ecdfbb
RW
8272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8273$as_echo_n "checking for file... " >&6; }
8274if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8275 $as_echo_n "(cached) " >&6
d7040cdb
SE
8276else
8277 case $MAGIC_CMD in
8278[\\/*] | ?:[\\/]*)
8279 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8280 ;;
8281*)
8282 lt_save_MAGIC_CMD="$MAGIC_CMD"
8283 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8284 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8285 for ac_dir in $ac_dummy; do
8286 IFS="$lt_save_ifs"
8287 test -z "$ac_dir" && ac_dir=.
8288 if test -f $ac_dir/file; then
8289 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8290 if test -n "$file_magic_test_file"; then
8291 case $deplibs_check_method in
8292 "file_magic "*)
8293 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8294 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8295 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8296 $EGREP "$file_magic_regex" > /dev/null; then
8297 :
8298 else
8299 cat <<_LT_EOF 1>&2
8300
8301*** Warning: the command libtool uses to detect shared libraries,
8302*** $file_magic_cmd, produces output that libtool cannot recognize.
8303*** The result is that libtool may fail to recognize shared libraries
8304*** as such. This will affect the creation of libtool libraries that
8305*** depend on shared libraries, but programs linked with such libtool
8306*** libraries will work regardless of this problem. Nevertheless, you
8307*** may want to report the problem to your system manager and/or to
8308*** bug-libtool@gnu.org
8309
8310_LT_EOF
8311 fi ;;
8312 esac
8313 fi
8314 break
8315 fi
8316 done
8317 IFS="$lt_save_ifs"
8318 MAGIC_CMD="$lt_save_MAGIC_CMD"
8319 ;;
8320esac
8321fi
8322
8323MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8324if test -n "$MAGIC_CMD"; then
81ecdfbb
RW
8325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8326$as_echo "$MAGIC_CMD" >&6; }
d7040cdb 8327else
81ecdfbb
RW
8328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8329$as_echo "no" >&6; }
d7040cdb
SE
8330fi
8331
8332
8333 else
8334 MAGIC_CMD=:
8335 fi
8336fi
8337
8338 fi
8339 ;;
8340esac
8341
8342# Use C for the default configuration in the libtool script
8343
8344lt_save_CC="$CC"
8345ac_ext=c
8346ac_cpp='$CPP $CPPFLAGS'
8347ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8348ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8349ac_compiler_gnu=$ac_cv_c_compiler_gnu
8350
8351
8352# Source file extension for C test sources.
8353ac_ext=c
8354
8355# Object file extension for compiled C test sources.
8356objext=o
8357objext=$objext
8358
8359# Code to be used in simple compile tests
8360lt_simple_compile_test_code="int some_variable = 0;"
8361
8362# Code to be used in simple link tests
8363lt_simple_link_test_code='int main(){return(0);}'
8364
8365
8366
8367
8368
8369
8370
8371# If no C compiler was specified, use CC.
8372LTCC=${LTCC-"$CC"}
8373
8374# If no C compiler flags were specified, use CFLAGS.
8375LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8376
8377# Allow CC to be a program name with arguments.
8378compiler=$CC
8379
8380# Save the default compiler, since it gets overwritten when the other
8381# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8382compiler_DEFAULT=$CC
8383
8384# save warnings/boilerplate of simple test code
8385ac_outfile=conftest.$ac_objext
8386echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8387eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8388_lt_compiler_boilerplate=`cat conftest.err`
8389$RM conftest*
8390
8391ac_outfile=conftest.$ac_objext
8392echo "$lt_simple_link_test_code" >conftest.$ac_ext
8393eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8394_lt_linker_boilerplate=`cat conftest.err`
718a6fd8 8395$RM -r conftest*
d7040cdb
SE
8396
8397
8398## CAVEAT EMPTOR:
8399## There is no encapsulation within the following macros, do not change
8400## the running order or otherwise move them around unless you know exactly
8401## what you are doing...
8402if test -n "$compiler"; then
8403
8404lt_prog_compiler_no_builtin_flag=
8405
8406if test "$GCC" = yes; then
8407 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8408
81ecdfbb
RW
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8410$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8411if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8412 $as_echo_n "(cached) " >&6
d7040cdb
SE
8413else
8414 lt_cv_prog_compiler_rtti_exceptions=no
8415 ac_outfile=conftest.$ac_objext
8416 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8417 lt_compiler_flag="-fno-rtti -fno-exceptions"
8418 # Insert the option either (1) after the last *FLAGS variable, or
8419 # (2) before a word containing "conftest.", or (3) at the end.
8420 # Note that $ac_compile itself does not contain backslashes and begins
8421 # with a dollar sign (not a hyphen), so the echo should work correctly.
8422 # The option is referenced via a variable to avoid confusing sed.
8423 lt_compile=`echo "$ac_compile" | $SED \
8424 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8425 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8426 -e 's:$: $lt_compiler_flag:'`
81ecdfbb 8427 (eval echo "\"\$as_me:8427: $lt_compile\"" >&5)
d7040cdb
SE
8428 (eval "$lt_compile" 2>conftest.err)
8429 ac_status=$?
8430 cat conftest.err >&5
81ecdfbb 8431 echo "$as_me:8431: \$? = $ac_status" >&5
d7040cdb
SE
8432 if (exit $ac_status) && test -s "$ac_outfile"; then
8433 # The compiler can only warn and ignore the option if not recognized
8434 # So say no if there are warnings other than the usual output.
8435 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8436 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8437 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8438 lt_cv_prog_compiler_rtti_exceptions=yes
8439 fi
8440 fi
8441 $RM conftest*
8442
8443fi
81ecdfbb
RW
8444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8445$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
d7040cdb
SE
8446
8447if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8448 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8449else
8450 :
8451fi
8452
8453fi
8454
8455
8456
8457
8458
8459
8460 lt_prog_compiler_wl=
8461lt_prog_compiler_pic=
8462lt_prog_compiler_static=
8463
81ecdfbb
RW
8464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8465$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
d7040cdb
SE
8466
8467 if test "$GCC" = yes; then
8468 lt_prog_compiler_wl='-Wl,'
8469 lt_prog_compiler_static='-static'
8470
8471 case $host_os in
8472 aix*)
8473 # All AIX code is PIC.
8474 if test "$host_cpu" = ia64; then
8475 # AIX 5 now supports IA64 processor
8476 lt_prog_compiler_static='-Bstatic'
8477 fi
8478 ;;
8479
8480 amigaos*)
718a6fd8
SE
8481 case $host_cpu in
8482 powerpc)
8483 # see comment about AmigaOS4 .so support
8484 lt_prog_compiler_pic='-fPIC'
8485 ;;
8486 m68k)
8487 # FIXME: we need at least 68020 code to build shared libraries, but
8488 # adding the `-m68020' flag to GCC prevents building anything better,
8489 # like `-m68040'.
8490 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8491 ;;
8492 esac
d7040cdb
SE
8493 ;;
8494
8495 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8496 # PIC is the default for these OSes.
8497 ;;
8498
718a6fd8 8499 mingw* | cygwin* | pw32* | os2* | cegcc*)
d7040cdb
SE
8500 # This hack is so that the source file can tell whether it is being
8501 # built for inclusion in a dll (and should export symbols for example).
8502 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8503 # (--disable-auto-import) libraries
8504 lt_prog_compiler_pic='-DDLL_EXPORT'
8505 ;;
8506
8507 darwin* | rhapsody*)
8508 # PIC is the default on this platform
8509 # Common symbols not allowed in MH_DYLIB files
8510 lt_prog_compiler_pic='-fno-common'
8511 ;;
8512
8513 hpux*)
718a6fd8
SE
8514 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8515 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8516 # sets the default TLS model and affects inlining.
d7040cdb 8517 case $host_cpu in
718a6fd8 8518 hppa*64*)
d7040cdb
SE
8519 # +Z the default
8520 ;;
8521 *)
8522 lt_prog_compiler_pic='-fPIC'
8523 ;;
8524 esac
8525 ;;
8526
8527 interix[3-9]*)
8528 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8529 # Instead, we relocate shared libraries at runtime.
8530 ;;
8531
8532 msdosdjgpp*)
8533 # Just because we use GCC doesn't mean we suddenly get shared libraries
8534 # on systems that don't support them.
8535 lt_prog_compiler_can_build_shared=no
8536 enable_shared=no
8537 ;;
8538
8539 *nto* | *qnx*)
8540 # QNX uses GNU C++, but need to define -shared option too, otherwise
8541 # it will coredump.
8542 lt_prog_compiler_pic='-fPIC -shared'
8543 ;;
8544
8545 sysv4*MP*)
8546 if test -d /usr/nec; then
8547 lt_prog_compiler_pic=-Kconform_pic
8548 fi
8549 ;;
8550
8551 *)
8552 lt_prog_compiler_pic='-fPIC'
8553 ;;
8554 esac
8555 else
8556 # PORTME Check for flag to pass linker flags through the system compiler.
8557 case $host_os in
8558 aix*)
8559 lt_prog_compiler_wl='-Wl,'
8560 if test "$host_cpu" = ia64; then
8561 # AIX 5 now supports IA64 processor
8562 lt_prog_compiler_static='-Bstatic'
8563 else
8564 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8565 fi
8566 ;;
d7040cdb 8567
718a6fd8 8568 mingw* | cygwin* | pw32* | os2* | cegcc*)
d7040cdb
SE
8569 # This hack is so that the source file can tell whether it is being
8570 # built for inclusion in a dll (and should export symbols for example).
8571 lt_prog_compiler_pic='-DDLL_EXPORT'
8572 ;;
8573
8574 hpux9* | hpux10* | hpux11*)
8575 lt_prog_compiler_wl='-Wl,'
8576 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8577 # not for PA HP-UX.
8578 case $host_cpu in
8579 hppa*64*|ia64*)
8580 # +Z the default
8581 ;;
8582 *)
8583 lt_prog_compiler_pic='+Z'
8584 ;;
8585 esac
8586 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8587 lt_prog_compiler_static='${wl}-a ${wl}archive'
8588 ;;
8589
8590 irix5* | irix6* | nonstopux*)
8591 lt_prog_compiler_wl='-Wl,'
8592 # PIC (with -KPIC) is the default.
8593 lt_prog_compiler_static='-non_shared'
8594 ;;
8595
58e24671 8596 linux* | k*bsd*-gnu | kopensolaris*-gnu)
d7040cdb 8597 case $cc_basename in
718a6fd8
SE
8598 # old Intel for x86_64 which still supported -KPIC.
8599 ecc*)
d7040cdb
SE
8600 lt_prog_compiler_wl='-Wl,'
8601 lt_prog_compiler_pic='-KPIC'
8602 lt_prog_compiler_static='-static'
8603 ;;
718a6fd8
SE
8604 # icc used to be incompatible with GCC.
8605 # ICC 10 doesn't accept -KPIC any more.
8606 icc* | ifort*)
8607 lt_prog_compiler_wl='-Wl,'
8608 lt_prog_compiler_pic='-fPIC'
8609 lt_prog_compiler_static='-static'
8610 ;;
8611 # Lahey Fortran 8.1.
8612 lf95*)
8613 lt_prog_compiler_wl='-Wl,'
8614 lt_prog_compiler_pic='--shared'
8615 lt_prog_compiler_static='--static'
8616 ;;
d7040cdb
SE
8617 pgcc* | pgf77* | pgf90* | pgf95*)
8618 # Portland Group compilers (*not* the Pentium gcc compiler,
8619 # which looks to be a dead project)
8620 lt_prog_compiler_wl='-Wl,'
8621 lt_prog_compiler_pic='-fpic'
8622 lt_prog_compiler_static='-Bstatic'
8623 ;;
8624 ccc*)
8625 lt_prog_compiler_wl='-Wl,'
8626 # All Alpha code is PIC.
8627 lt_prog_compiler_static='-non_shared'
8628 ;;
718a6fd8
SE
8629 xl*)
8630 # IBM XL C 8.0/Fortran 10.1 on PPC
8631 lt_prog_compiler_wl='-Wl,'
8632 lt_prog_compiler_pic='-qpic'
8633 lt_prog_compiler_static='-qstaticlink'
8634 ;;
d7040cdb
SE
8635 *)
8636 case `$CC -V 2>&1 | sed 5q` in
8637 *Sun\ C*)
8638 # Sun C 5.9
8639 lt_prog_compiler_pic='-KPIC'
8640 lt_prog_compiler_static='-Bstatic'
8641 lt_prog_compiler_wl='-Wl,'
8642 ;;
8643 *Sun\ F*)
8644 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8645 lt_prog_compiler_pic='-KPIC'
8646 lt_prog_compiler_static='-Bstatic'
8647 lt_prog_compiler_wl=''
8648 ;;
8649 esac
8650 ;;
8651 esac
8652 ;;
8653
8654 newsos6)
8655 lt_prog_compiler_pic='-KPIC'
8656 lt_prog_compiler_static='-Bstatic'
8657 ;;
8658
8659 *nto* | *qnx*)
8660 # QNX uses GNU C++, but need to define -shared option too, otherwise
8661 # it will coredump.
8662 lt_prog_compiler_pic='-fPIC -shared'
8663 ;;
8664
8665 osf3* | osf4* | osf5*)
8666 lt_prog_compiler_wl='-Wl,'
8667 # All OSF/1 code is PIC.
8668 lt_prog_compiler_static='-non_shared'
8669 ;;
8670
8671 rdos*)
8672 lt_prog_compiler_static='-non_shared'
8673 ;;
8674
8675 solaris*)
8676 lt_prog_compiler_pic='-KPIC'
8677 lt_prog_compiler_static='-Bstatic'
8678 case $cc_basename in
8679 f77* | f90* | f95*)
8680 lt_prog_compiler_wl='-Qoption ld ';;
8681 *)
8682 lt_prog_compiler_wl='-Wl,';;
8683 esac
8684 ;;
8685
8686 sunos4*)
8687 lt_prog_compiler_wl='-Qoption ld '
8688 lt_prog_compiler_pic='-PIC'
8689 lt_prog_compiler_static='-Bstatic'
8690 ;;
8691
8692 sysv4 | sysv4.2uw2* | sysv4.3*)
8693 lt_prog_compiler_wl='-Wl,'
8694 lt_prog_compiler_pic='-KPIC'
8695 lt_prog_compiler_static='-Bstatic'
8696 ;;
8697
8698 sysv4*MP*)
8699 if test -d /usr/nec ;then
8700 lt_prog_compiler_pic='-Kconform_pic'
8701 lt_prog_compiler_static='-Bstatic'
8702 fi
8703 ;;
8704
8705 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8706 lt_prog_compiler_wl='-Wl,'
8707 lt_prog_compiler_pic='-KPIC'
8708 lt_prog_compiler_static='-Bstatic'
8709 ;;
8710
8711 unicos*)
8712 lt_prog_compiler_wl='-Wl,'
8713 lt_prog_compiler_can_build_shared=no
8714 ;;
8715
8716 uts4*)
8717 lt_prog_compiler_pic='-pic'
8718 lt_prog_compiler_static='-Bstatic'
8719 ;;
8720
8721 *)
8722 lt_prog_compiler_can_build_shared=no
8723 ;;
8724 esac
8725 fi
8726
8727case $host_os in
8728 # For platforms which do not support PIC, -DPIC is meaningless:
8729 *djgpp*)
8730 lt_prog_compiler_pic=
8731 ;;
8732 *)
8733 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8734 ;;
8735esac
81ecdfbb
RW
8736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8737$as_echo "$lt_prog_compiler_pic" >&6; }
d7040cdb
SE
8738
8739
8740
8741
8742
8743
8744#
8745# Check to make sure the PIC flag actually works.
8746#
8747if test -n "$lt_prog_compiler_pic"; then
81ecdfbb
RW
8748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8749$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8750if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8751 $as_echo_n "(cached) " >&6
d7040cdb 8752else
718a6fd8 8753 lt_cv_prog_compiler_pic_works=no
d7040cdb
SE
8754 ac_outfile=conftest.$ac_objext
8755 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8756 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8757 # Insert the option either (1) after the last *FLAGS variable, or
8758 # (2) before a word containing "conftest.", or (3) at the end.
8759 # Note that $ac_compile itself does not contain backslashes and begins
8760 # with a dollar sign (not a hyphen), so the echo should work correctly.
8761 # The option is referenced via a variable to avoid confusing sed.
8762 lt_compile=`echo "$ac_compile" | $SED \
8763 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8764 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8765 -e 's:$: $lt_compiler_flag:'`
81ecdfbb 8766 (eval echo "\"\$as_me:8766: $lt_compile\"" >&5)
d7040cdb
SE
8767 (eval "$lt_compile" 2>conftest.err)
8768 ac_status=$?
8769 cat conftest.err >&5
81ecdfbb 8770 echo "$as_me:8770: \$? = $ac_status" >&5
d7040cdb
SE
8771 if (exit $ac_status) && test -s "$ac_outfile"; then
8772 # The compiler can only warn and ignore the option if not recognized
8773 # So say no if there are warnings other than the usual output.
8774 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8775 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8776 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
718a6fd8 8777 lt_cv_prog_compiler_pic_works=yes
d7040cdb
SE
8778 fi
8779 fi
8780 $RM conftest*
8781
8782fi
81ecdfbb
RW
8783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8784$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
d7040cdb 8785
718a6fd8 8786if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
d7040cdb
SE
8787 case $lt_prog_compiler_pic in
8788 "" | " "*) ;;
8789 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8790 esac
8791else
8792 lt_prog_compiler_pic=
8793 lt_prog_compiler_can_build_shared=no
8794fi
8795
8796fi
8797
8798
8799
8800
8801
8802
8803#
8804# Check to make sure the static flag actually works.
8805#
8806wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
81ecdfbb
RW
8807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8808$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8809if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8810 $as_echo_n "(cached) " >&6
d7040cdb 8811else
718a6fd8 8812 lt_cv_prog_compiler_static_works=no
d7040cdb
SE
8813 save_LDFLAGS="$LDFLAGS"
8814 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8815 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8816 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8817 # The linker can only warn and ignore the option if not recognized
8818 # So say no if there are warnings
8819 if test -s conftest.err; then
8820 # Append any errors to the config.log.
8821 cat conftest.err 1>&5
8822 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8823 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8824 if diff conftest.exp conftest.er2 >/dev/null; then
718a6fd8 8825 lt_cv_prog_compiler_static_works=yes
d7040cdb
SE
8826 fi
8827 else
718a6fd8 8828 lt_cv_prog_compiler_static_works=yes
d7040cdb
SE
8829 fi
8830 fi
718a6fd8 8831 $RM -r conftest*
d7040cdb
SE
8832 LDFLAGS="$save_LDFLAGS"
8833
8834fi
81ecdfbb
RW
8835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8836$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
d7040cdb 8837
718a6fd8 8838if test x"$lt_cv_prog_compiler_static_works" = xyes; then
d7040cdb
SE
8839 :
8840else
8841 lt_prog_compiler_static=
8842fi
8843
8844
8845
8846
8847
8848
8849
81ecdfbb
RW
8850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8851$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8852if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8853 $as_echo_n "(cached) " >&6
d7040cdb
SE
8854else
8855 lt_cv_prog_compiler_c_o=no
8856 $RM -r conftest 2>/dev/null
8857 mkdir conftest
8858 cd conftest
8859 mkdir out
8860 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8861
8862 lt_compiler_flag="-o out/conftest2.$ac_objext"
8863 # Insert the option either (1) after the last *FLAGS variable, or
8864 # (2) before a word containing "conftest.", or (3) at the end.
8865 # Note that $ac_compile itself does not contain backslashes and begins
8866 # with a dollar sign (not a hyphen), so the echo should work correctly.
8867 lt_compile=`echo "$ac_compile" | $SED \
8868 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8869 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8870 -e 's:$: $lt_compiler_flag:'`
81ecdfbb 8871 (eval echo "\"\$as_me:8871: $lt_compile\"" >&5)
d7040cdb
SE
8872 (eval "$lt_compile" 2>out/conftest.err)
8873 ac_status=$?
8874 cat out/conftest.err >&5
81ecdfbb 8875 echo "$as_me:8875: \$? = $ac_status" >&5
d7040cdb
SE
8876 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8877 then
8878 # The compiler can only warn and ignore the option if not recognized
8879 # So say no if there are warnings
8880 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8881 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8882 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8883 lt_cv_prog_compiler_c_o=yes
8884 fi
8885 fi
8886 chmod u+w . 2>&5
8887 $RM conftest*
8888 # SGI C++ compiler will create directory out/ii_files/ for
8889 # template instantiation
8890 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8891 $RM out/* && rmdir out
8892 cd ..
8893 $RM -r conftest
8894 $RM conftest*
8895
8896fi
81ecdfbb
RW
8897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8898$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
d7040cdb
SE
8899
8900
8901
8902
8903
8904
81ecdfbb
RW
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8906$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8907if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8908 $as_echo_n "(cached) " >&6
d7040cdb
SE
8909else
8910 lt_cv_prog_compiler_c_o=no
8911 $RM -r conftest 2>/dev/null
8912 mkdir conftest
8913 cd conftest
8914 mkdir out
8915 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8916
8917 lt_compiler_flag="-o out/conftest2.$ac_objext"
8918 # Insert the option either (1) after the last *FLAGS variable, or
8919 # (2) before a word containing "conftest.", or (3) at the end.
8920 # Note that $ac_compile itself does not contain backslashes and begins
8921 # with a dollar sign (not a hyphen), so the echo should work correctly.
8922 lt_compile=`echo "$ac_compile" | $SED \
8923 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8924 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8925 -e 's:$: $lt_compiler_flag:'`
81ecdfbb 8926 (eval echo "\"\$as_me:8926: $lt_compile\"" >&5)
d7040cdb
SE
8927 (eval "$lt_compile" 2>out/conftest.err)
8928 ac_status=$?
8929 cat out/conftest.err >&5
81ecdfbb 8930 echo "$as_me:8930: \$? = $ac_status" >&5
d7040cdb
SE
8931 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8932 then
8933 # The compiler can only warn and ignore the option if not recognized
8934 # So say no if there are warnings
8935 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8936 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8937 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8938 lt_cv_prog_compiler_c_o=yes
8939 fi
8940 fi
8941 chmod u+w . 2>&5
8942 $RM conftest*
8943 # SGI C++ compiler will create directory out/ii_files/ for
8944 # template instantiation
8945 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8946 $RM out/* && rmdir out
8947 cd ..
8948 $RM -r conftest
8949 $RM conftest*
8950
8951fi
81ecdfbb
RW
8952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8953$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
d7040cdb
SE
8954
8955
8956
8957
8958hard_links="nottested"
8959if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8960 # do not overwrite the value of need_locks provided by the user
81ecdfbb
RW
8961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8962$as_echo_n "checking if we can lock with hard links... " >&6; }
d7040cdb
SE
8963 hard_links=yes
8964 $RM conftest*
8965 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8966 touch conftest.a
8967 ln conftest.a conftest.b 2>&5 || hard_links=no
8968 ln conftest.a conftest.b 2>/dev/null && hard_links=no
81ecdfbb
RW
8969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8970$as_echo "$hard_links" >&6; }
d7040cdb 8971 if test "$hard_links" = no; then
81ecdfbb
RW
8972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8973$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
d7040cdb
SE
8974 need_locks=warn
8975 fi
8976else
8977 need_locks=no
8978fi
8979
8980
8981
8982
8983
8984
81ecdfbb
RW
8985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8986$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
d7040cdb
SE
8987
8988 runpath_var=
8989 allow_undefined_flag=
8990 always_export_symbols=no
8991 archive_cmds=
8992 archive_expsym_cmds=
8993 compiler_needs_object=no
8994 enable_shared_with_static_runtimes=no
8995 export_dynamic_flag_spec=
8996 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8997 hardcode_automatic=no
8998 hardcode_direct=no
8999 hardcode_direct_absolute=no
9000 hardcode_libdir_flag_spec=
9001 hardcode_libdir_flag_spec_ld=
9002 hardcode_libdir_separator=
9003 hardcode_minus_L=no
9004 hardcode_shlibpath_var=unsupported
9005 inherit_rpath=no
9006 link_all_deplibs=unknown
9007 module_cmds=
9008 module_expsym_cmds=
9009 old_archive_from_new_cmds=
9010 old_archive_from_expsyms_cmds=
9011 thread_safe_flag_spec=
9012 whole_archive_flag_spec=
9013 # include_expsyms should be a list of space-separated symbols to be *always*
9014 # included in the symbol list
9015 include_expsyms=
9016 # exclude_expsyms can be an extended regexp of symbols to exclude
9017 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9018 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9019 # as well as any symbol that contains `d'.
718a6fd8 9020 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
d7040cdb
SE
9021 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9022 # platforms (ab)use it in PIC code, but their linkers get confused if
9023 # the symbol is explicitly referenced. Since portable code cannot
9024 # rely on this symbol name, it's probably fine to never include it in
9025 # preloaded symbol tables.
718a6fd8 9026 # Exclude shared library initialization/finalization symbols.
d7040cdb
SE
9027 extract_expsyms_cmds=
9028
9029 case $host_os in
718a6fd8 9030 cygwin* | mingw* | pw32* | cegcc*)
d7040cdb
SE
9031 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9032 # When not using gcc, we currently assume that we are using
9033 # Microsoft Visual C++.
9034 if test "$GCC" != yes; then
9035 with_gnu_ld=no
9036 fi
9037 ;;
9038 interix*)
9039 # we just hope/assume this is gcc and not c89 (= MSVC++)
9040 with_gnu_ld=yes
9041 ;;
9042 openbsd*)
9043 with_gnu_ld=no
9044 ;;
9045 esac
9046
9047 ld_shlibs=yes
9048 if test "$with_gnu_ld" = yes; then
9049 # If archive_cmds runs LD, not CC, wlarc should be empty
9050 wlarc='${wl}'
9051
9052 # Set some defaults for GNU ld with shared library support. These
9053 # are reset later if shared libraries are not supported. Putting them
9054 # here allows them to be overridden if necessary.
9055 runpath_var=LD_RUN_PATH
9056 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9057 export_dynamic_flag_spec='${wl}--export-dynamic'
9058 # ancient GNU ld didn't support --whole-archive et. al.
9059 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9060 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9061 else
9062 whole_archive_flag_spec=
9063 fi
9064 supports_anon_versioning=no
9065 case `$LD -v 2>&1` in
9066 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9067 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9068 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9069 *\ 2.11.*) ;; # other 2.11 versions
9070 *) supports_anon_versioning=yes ;;
9071 esac
9072
9073 # See if GNU ld supports shared libraries.
9074 case $host_os in
e81819a5 9075 aix[3-9]*)
d7040cdb
SE
9076 # On AIX/PPC, the GNU linker is very broken
9077 if test "$host_cpu" != ia64; then
9078 ld_shlibs=no
9079 cat <<_LT_EOF 1>&2
9080
9081*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9082*** to be unable to reliably create shared libraries on AIX.
9083*** Therefore, libtool is disabling shared libraries support. If you
9084*** really care for shared libraries, you may want to modify your PATH
9085*** so that a non-GNU linker is found, and then restart.
9086
9087_LT_EOF
9088 fi
9089 ;;
9090
9091 amigaos*)
718a6fd8
SE
9092 case $host_cpu in
9093 powerpc)
9094 # see comment about AmigaOS4 .so support
9095 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9096 archive_expsym_cmds=''
9097 ;;
9098 m68k)
9099 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)'
9100 hardcode_libdir_flag_spec='-L$libdir'
9101 hardcode_minus_L=yes
9102 ;;
9103 esac
d7040cdb
SE
9104 ;;
9105
9106 beos*)
9107 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9108 allow_undefined_flag=unsupported
9109 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9110 # support --undefined. This deserves some investigation. FIXME
9111 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9112 else
9113 ld_shlibs=no
9114 fi
9115 ;;
9116
718a6fd8 9117 cygwin* | mingw* | pw32* | cegcc*)
d7040cdb
SE
9118 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9119 # as there is no search path for DLLs.
9120 hardcode_libdir_flag_spec='-L$libdir'
9121 allow_undefined_flag=unsupported
9122 always_export_symbols=no
9123 enable_shared_with_static_runtimes=yes
9124 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9125
9126 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9127 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9128 # If the export-symbols file already is a .def file (1st line
9129 # is EXPORTS), use it as is; otherwise, prepend...
9130 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9131 cp $export_symbols $output_objdir/$soname.def;
9132 else
9133 echo EXPORTS > $output_objdir/$soname.def;
9134 cat $export_symbols >> $output_objdir/$soname.def;
9135 fi~
9136 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9137 else
9138 ld_shlibs=no
9139 fi
9140 ;;
9141
9142 interix[3-9]*)
9143 hardcode_direct=no
9144 hardcode_shlibpath_var=no
9145 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9146 export_dynamic_flag_spec='${wl}-E'
9147 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9148 # Instead, shared libraries are loaded at an image base (0x10000000 by
9149 # default) and relocated if they conflict, which is a slow very memory
9150 # consuming and fragmenting process. To avoid this, we pick a random,
9151 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9152 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9153 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9154 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'
9155 ;;
9156
58e24671 9157 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
d7040cdb
SE
9158 tmp_diet=no
9159 if test "$host_os" = linux-dietlibc; then
9160 case $cc_basename in
9161 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9162 esac
9163 fi
9164 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9165 && test "$tmp_diet" = no
9166 then
9167 tmp_addflag=
718a6fd8 9168 tmp_sharedflag='-shared'
d7040cdb
SE
9169 case $cc_basename,$host_cpu in
9170 pgcc*) # Portland Group C compiler
9171 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9172 tmp_addflag=' $pic_flag'
9173 ;;
9174 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9175 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9176 tmp_addflag=' $pic_flag -Mnomain' ;;
9177 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9178 tmp_addflag=' -i_dynamic' ;;
9179 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9180 tmp_addflag=' -i_dynamic -nofor_main' ;;
9181 ifc* | ifort*) # Intel Fortran compiler
9182 tmp_addflag=' -nofor_main' ;;
718a6fd8
SE
9183 lf95*) # Lahey Fortran 8.1
9184 whole_archive_flag_spec=
9185 tmp_sharedflag='--shared' ;;
9186 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9187 tmp_sharedflag='-qmkshrobj'
9188 tmp_addflag= ;;
d7040cdb
SE
9189 esac
9190 case `$CC -V 2>&1 | sed 5q` in
9191 *Sun\ C*) # Sun C 5.9
9192 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9193 compiler_needs_object=yes
9194 tmp_sharedflag='-G' ;;
9195 *Sun\ F*) # Sun Fortran 8.3
9196 tmp_sharedflag='-G' ;;
d7040cdb
SE
9197 esac
9198 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9199
9200 if test "x$supports_anon_versioning" = xyes; then
9201 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9202 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9203 echo "local: *; };" >> $output_objdir/$libname.ver~
9204 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9205 fi
718a6fd8
SE
9206
9207 case $cc_basename in
9208 xlf*)
9209 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9210 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9211 hardcode_libdir_flag_spec=
9212 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9213 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9214 if test "x$supports_anon_versioning" = xyes; then
9215 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9216 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9217 echo "local: *; };" >> $output_objdir/$libname.ver~
9218 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9219 fi
9220 ;;
9221 esac
d7040cdb
SE
9222 else
9223 ld_shlibs=no
9224 fi
9225 ;;
9226
9227 netbsd*)
9228 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9229 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9230 wlarc=
9231 else
9232 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9233 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9234 fi
9235 ;;
9236
9237 solaris*)
9238 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9239 ld_shlibs=no
9240 cat <<_LT_EOF 1>&2
9241
9242*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9243*** create shared libraries on Solaris systems. Therefore, libtool
9244*** is disabling shared libraries support. We urge you to upgrade GNU
9245*** binutils to release 2.9.1 or newer. Another option is to modify
9246*** your PATH or compiler configuration so that the native linker is
9247*** used, and then restart.
9248
9249_LT_EOF
9250 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9251 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9252 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9253 else
9254 ld_shlibs=no
9255 fi
9256 ;;
9257
9258 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9259 case `$LD -v 2>&1` in
9260 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9261 ld_shlibs=no
9262 cat <<_LT_EOF 1>&2
9263
9264*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9265*** reliably create shared libraries on SCO systems. Therefore, libtool
9266*** is disabling shared libraries support. We urge you to upgrade GNU
9267*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9268*** your PATH or compiler configuration so that the native linker is
9269*** used, and then restart.
9270
9271_LT_EOF
9272 ;;
9273 *)
9274 # For security reasons, it is highly recommended that you always
9275 # use absolute paths for naming shared libraries, and exclude the
9276 # DT_RUNPATH tag from executables and libraries. But doing so
9277 # requires that you compile everything twice, which is a pain.
9278 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9279 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9280 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9281 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9282 else
9283 ld_shlibs=no
9284 fi
9285 ;;
9286 esac
9287 ;;
9288
9289 sunos4*)
9290 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9291 wlarc=
9292 hardcode_direct=yes
9293 hardcode_shlibpath_var=no
9294 ;;
9295
9296 *)
9297 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9298 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9299 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9300 else
9301 ld_shlibs=no
9302 fi
9303 ;;
9304 esac
9305
9306 if test "$ld_shlibs" = no; then
9307 runpath_var=
9308 hardcode_libdir_flag_spec=
9309 export_dynamic_flag_spec=
9310 whole_archive_flag_spec=
9311 fi
9312 else
9313 # PORTME fill in a description of your system's linker (not GNU ld)
9314 case $host_os in
9315 aix3*)
9316 allow_undefined_flag=unsupported
9317 always_export_symbols=yes
9318 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'
9319 # Note: this linker hardcodes the directories in LIBPATH if there
9320 # are no directories specified by -L.
9321 hardcode_minus_L=yes
9322 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9323 # Neither direct hardcoding nor static linking is supported with a
9324 # broken collect2.
9325 hardcode_direct=unsupported
9326 fi
9327 ;;
9328
e81819a5 9329 aix[4-9]*)
d7040cdb
SE
9330 if test "$host_cpu" = ia64; then
9331 # On IA64, the linker does run time linking by default, so we don't
9332 # have to do anything special.
9333 aix_use_runtimelinking=no
9334 exp_sym_flag='-Bexport'
9335 no_entry_flag=""
9336 else
9337 # If we're using GNU nm, then we don't want the "-C" option.
9338 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9339 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9340 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9341 else
9342 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9343 fi
9344 aix_use_runtimelinking=no
9345
9346 # Test if we are trying to use run time linking or normal
9347 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9348 # need to do runtime linking.
e81819a5 9349 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
d7040cdb
SE
9350 for ld_flag in $LDFLAGS; do
9351 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9352 aix_use_runtimelinking=yes
9353 break
9354 fi
9355 done
9356 ;;
9357 esac
9358
9359 exp_sym_flag='-bexport'
9360 no_entry_flag='-bnoentry'
9361 fi
9362
9363 # When large executables or shared objects are built, AIX ld can
9364 # have problems creating the table of contents. If linking a library
9365 # or program results in "error TOC overflow" add -mminimal-toc to
9366 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9367 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9368
9369 archive_cmds=''
9370 hardcode_direct=yes
9371 hardcode_direct_absolute=yes
9372 hardcode_libdir_separator=':'
9373 link_all_deplibs=yes
9374 file_list_spec='${wl}-f,'
9375
9376 if test "$GCC" = yes; then
9377 case $host_os in aix4.[012]|aix4.[012].*)
9378 # We only want to do this on AIX 4.2 and lower, the check
9379 # below for broken collect2 doesn't work under 4.3+
9380 collect2name=`${CC} -print-prog-name=collect2`
9381 if test -f "$collect2name" &&
9382 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9383 then
9384 # We have reworked collect2
9385 :
9386 else
9387 # We have old collect2
9388 hardcode_direct=unsupported
9389 # It fails to find uninstalled libraries when the uninstalled
9390 # path is not listed in the libpath. Setting hardcode_minus_L
9391 # to unsupported forces relinking
9392 hardcode_minus_L=yes
9393 hardcode_libdir_flag_spec='-L$libdir'
9394 hardcode_libdir_separator=
9395 fi
9396 ;;
9397 esac
9398 shared_flag='-shared'
9399 if test "$aix_use_runtimelinking" = yes; then
9400 shared_flag="$shared_flag "'${wl}-G'
9401 fi
9402 else
9403 # not using gcc
9404 if test "$host_cpu" = ia64; then
9405 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9406 # chokes on -Wl,-G. The following line is correct:
9407 shared_flag='-G'
9408 else
9409 if test "$aix_use_runtimelinking" = yes; then
9410 shared_flag='${wl}-G'
9411 else
9412 shared_flag='${wl}-bM:SRE'
9413 fi
9414 fi
9415 fi
9416
718a6fd8 9417 export_dynamic_flag_spec='${wl}-bexpall'
d7040cdb
SE
9418 # It seems that -bexpall does not export symbols beginning with
9419 # underscore (_), so it is better to generate a list of symbols to export.
9420 always_export_symbols=yes
9421 if test "$aix_use_runtimelinking" = yes; then
9422 # Warning - without using the other runtime loading flags (-brtl),
9423 # -berok will link without error, but may produce a broken library.
9424 allow_undefined_flag='-berok'
9425 # Determine the default libpath from the value encoded in an
9426 # empty executable.
81ecdfbb 9427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
9428/* end confdefs.h. */
9429
9430int
9431main ()
9432{
9433
9434 ;
9435 return 0;
9436}
9437_ACEOF
81ecdfbb 9438if ac_fn_c_try_link "$LINENO"; then :
d7040cdb
SE
9439
9440lt_aix_libpath_sed='
9441 /Import File Strings/,/^$/ {
9442 /^0/ {
9443 s/^0 *\(.*\)$/\1/
9444 p
9445 }
9446 }'
9447aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9448# Check for a 64-bit object if we didn't find anything.
9449if test -z "$aix_libpath"; then
9450 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9451fi
d7040cdb 9452fi
81ecdfbb
RW
9453rm -f core conftest.err conftest.$ac_objext \
9454 conftest$ac_exeext conftest.$ac_ext
d7040cdb
SE
9455if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9456
9457 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9458 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9459 else
9460 if test "$host_cpu" = ia64; then
9461 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9462 allow_undefined_flag="-z nodefs"
9463 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"
9464 else
9465 # Determine the default libpath from the value encoded in an
9466 # empty executable.
81ecdfbb 9467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
9468/* end confdefs.h. */
9469
9470int
9471main ()
9472{
9473
9474 ;
9475 return 0;
9476}
9477_ACEOF
81ecdfbb 9478if ac_fn_c_try_link "$LINENO"; then :
d7040cdb
SE
9479
9480lt_aix_libpath_sed='
9481 /Import File Strings/,/^$/ {
9482 /^0/ {
9483 s/^0 *\(.*\)$/\1/
9484 p
9485 }
9486 }'
9487aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9488# Check for a 64-bit object if we didn't find anything.
9489if test -z "$aix_libpath"; then
9490 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9491fi
d7040cdb 9492fi
81ecdfbb
RW
9493rm -f core conftest.err conftest.$ac_objext \
9494 conftest$ac_exeext conftest.$ac_ext
d7040cdb
SE
9495if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9496
9497 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9498 # Warning - without using the other run time loading flags,
9499 # -berok will link without error, but may produce a broken library.
9500 no_undefined_flag=' ${wl}-bernotok'
9501 allow_undefined_flag=' ${wl}-berok'
9502 # Exported symbols can be pulled into shared objects from archives
9503 whole_archive_flag_spec='$convenience'
9504 archive_cmds_need_lc=yes
9505 # This is similar to how AIX traditionally builds its shared libraries.
9506 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'
9507 fi
9508 fi
9509 ;;
9510
9511 amigaos*)
718a6fd8
SE
9512 case $host_cpu in
9513 powerpc)
9514 # see comment about AmigaOS4 .so support
9515 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9516 archive_expsym_cmds=''
9517 ;;
9518 m68k)
9519 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)'
9520 hardcode_libdir_flag_spec='-L$libdir'
9521 hardcode_minus_L=yes
9522 ;;
9523 esac
d7040cdb
SE
9524 ;;
9525
9526 bsdi[45]*)
9527 export_dynamic_flag_spec=-rdynamic
9528 ;;
9529
718a6fd8 9530 cygwin* | mingw* | pw32* | cegcc*)
d7040cdb
SE
9531 # When not using gcc, we currently assume that we are using
9532 # Microsoft Visual C++.
9533 # hardcode_libdir_flag_spec is actually meaningless, as there is
9534 # no search path for DLLs.
9535 hardcode_libdir_flag_spec=' '
9536 allow_undefined_flag=unsupported
9537 # Tell ltmain to make .lib files, not .a files.
9538 libext=lib
9539 # Tell ltmain to make .dll files, not .so files.
9540 shrext_cmds=".dll"
9541 # FIXME: Setting linknames here is a bad hack.
9542 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9543 # The linker will automatically build a .lib file if we build a DLL.
9544 old_archive_from_new_cmds='true'
9545 # FIXME: Should let the user specify the lib program.
9546 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9547 fix_srcfile_path='`cygpath -w "$srcfile"`'
9548 enable_shared_with_static_runtimes=yes
9549 ;;
9550
9551 darwin* | rhapsody*)
d7040cdb 9552
718a6fd8
SE
9553
9554 archive_cmds_need_lc=no
9555 hardcode_direct=no
9556 hardcode_automatic=yes
9557 hardcode_shlibpath_var=unsupported
9558 whole_archive_flag_spec=''
9559 link_all_deplibs=yes
9560 allow_undefined_flag="$_lt_dar_allow_undefined"
9561 case $cc_basename in
9562 ifort*) _lt_dar_can_shared=yes ;;
9563 *) _lt_dar_can_shared=$GCC ;;
9564 esac
9565 if test "$_lt_dar_can_shared" = "yes"; then
9566 output_verbose_link_cmd=echo
9567 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9568 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9569 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}"
9570 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}"
9571
9572 else
9573 ld_shlibs=no
9574 fi
9575
d7040cdb
SE
9576 ;;
9577
9578 dgux*)
9579 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9580 hardcode_libdir_flag_spec='-L$libdir'
9581 hardcode_shlibpath_var=no
9582 ;;
9583
9584 freebsd1*)
9585 ld_shlibs=no
9586 ;;
9587
9588 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9589 # support. Future versions do this automatically, but an explicit c++rt0.o
9590 # does not break anything, and helps significantly (at the cost of a little
9591 # extra space).
9592 freebsd2.2*)
9593 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9594 hardcode_libdir_flag_spec='-R$libdir'
9595 hardcode_direct=yes
9596 hardcode_shlibpath_var=no
9597 ;;
9598
9599 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9600 freebsd2*)
9601 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9602 hardcode_direct=yes
9603 hardcode_minus_L=yes
9604 hardcode_shlibpath_var=no
9605 ;;
9606
9607 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9608 freebsd* | dragonfly*)
9609 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9610 hardcode_libdir_flag_spec='-R$libdir'
9611 hardcode_direct=yes
9612 hardcode_shlibpath_var=no
9613 ;;
9614
9615 hpux9*)
9616 if test "$GCC" = yes; then
9617 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'
9618 else
9619 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'
9620 fi
9621 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9622 hardcode_libdir_separator=:
9623 hardcode_direct=yes
9624
9625 # hardcode_minus_L: Not really in the search PATH,
9626 # but as the default location of the library.
9627 hardcode_minus_L=yes
9628 export_dynamic_flag_spec='${wl}-E'
9629 ;;
9630
9631 hpux10*)
9632 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9633 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9634 else
9635 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9636 fi
9637 if test "$with_gnu_ld" = no; then
9638 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9639 hardcode_libdir_flag_spec_ld='+b $libdir'
9640 hardcode_libdir_separator=:
9641 hardcode_direct=yes
9642 hardcode_direct_absolute=yes
9643 export_dynamic_flag_spec='${wl}-E'
9644 # hardcode_minus_L: Not really in the search PATH,
9645 # but as the default location of the library.
9646 hardcode_minus_L=yes
9647 fi
9648 ;;
9649
9650 hpux11*)
9651 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9652 case $host_cpu in
9653 hppa*64*)
9654 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9655 ;;
9656 ia64*)
718a6fd8 9657 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
d7040cdb
SE
9658 ;;
9659 *)
9660 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9661 ;;
9662 esac
9663 else
9664 case $host_cpu in
9665 hppa*64*)
9666 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9667 ;;
9668 ia64*)
9669 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9670 ;;
9671 *)
9672 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9673 ;;
9674 esac
9675 fi
9676 if test "$with_gnu_ld" = no; then
9677 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9678 hardcode_libdir_separator=:
9679
9680 case $host_cpu in
9681 hppa*64*|ia64*)
9682 hardcode_direct=no
9683 hardcode_shlibpath_var=no
9684 ;;
9685 *)
9686 hardcode_direct=yes
9687 hardcode_direct_absolute=yes
9688 export_dynamic_flag_spec='${wl}-E'
9689
9690 # hardcode_minus_L: Not really in the search PATH,
9691 # but as the default location of the library.
9692 hardcode_minus_L=yes
9693 ;;
9694 esac
9695 fi
9696 ;;
9697
9698 irix5* | irix6* | nonstopux*)
9699 if test "$GCC" = yes; then
9700 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9701 # Try to use the -exported_symbol ld option, if it does not
9702 # work, assume that -exports_file does not work either and
9703 # implicitly export all symbols.
9704 save_LDFLAGS="$LDFLAGS"
9705 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
81ecdfbb
RW
9706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9707/* end confdefs.h. */
d7040cdb
SE
9708int foo(void) {}
9709_ACEOF
81ecdfbb 9710if ac_fn_c_try_link "$LINENO"; then :
d7040cdb
SE
9711 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9712
d7040cdb 9713fi
81ecdfbb
RW
9714rm -f core conftest.err conftest.$ac_objext \
9715 conftest$ac_exeext conftest.$ac_ext
d7040cdb
SE
9716 LDFLAGS="$save_LDFLAGS"
9717 else
9718 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9719 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9720 fi
9721 archive_cmds_need_lc='no'
9722 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9723 hardcode_libdir_separator=:
9724 inherit_rpath=yes
9725 link_all_deplibs=yes
9726 ;;
9727
9728 netbsd*)
9729 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9730 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9731 else
9732 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9733 fi
9734 hardcode_libdir_flag_spec='-R$libdir'
9735 hardcode_direct=yes
9736 hardcode_shlibpath_var=no
9737 ;;
9738
9739 newsos6)
9740 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9741 hardcode_direct=yes
9742 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9743 hardcode_libdir_separator=:
9744 hardcode_shlibpath_var=no
9745 ;;
9746
9747 *nto* | *qnx*)
9748 ;;
9749
9750 openbsd*)
718a6fd8
SE
9751 if test -f /usr/libexec/ld.so; then
9752 hardcode_direct=yes
9753 hardcode_shlibpath_var=no
9754 hardcode_direct_absolute=yes
9755 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
d7040cdb 9756 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
718a6fd8 9757 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
d7040cdb 9758 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
718a6fd8
SE
9759 export_dynamic_flag_spec='${wl}-E'
9760 else
9761 case $host_os in
9762 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9763 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9764 hardcode_libdir_flag_spec='-R$libdir'
9765 ;;
9766 *)
9767 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9768 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9769 ;;
9770 esac
9771 fi
9772 else
9773 ld_shlibs=no
d7040cdb
SE
9774 fi
9775 ;;
9776
9777 os2*)
9778 hardcode_libdir_flag_spec='-L$libdir'
9779 hardcode_minus_L=yes
9780 allow_undefined_flag=unsupported
9781 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'
9782 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9783 ;;
9784
9785 osf3*)
9786 if test "$GCC" = yes; then
9787 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9788 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9789 else
9790 allow_undefined_flag=' -expect_unresolved \*'
9791 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9792 fi
9793 archive_cmds_need_lc='no'
9794 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9795 hardcode_libdir_separator=:
9796 ;;
9797
9798 osf4* | osf5*) # as osf3* with the addition of -msym flag
9799 if test "$GCC" = yes; then
9800 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9801 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9802 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9803 else
9804 allow_undefined_flag=' -expect_unresolved \*'
9805 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9806 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~
9807 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9808
9809 # Both c and cxx compiler support -rpath directly
9810 hardcode_libdir_flag_spec='-rpath $libdir'
9811 fi
9812 archive_cmds_need_lc='no'
9813 hardcode_libdir_separator=:
9814 ;;
9815
9816 solaris*)
9817 no_undefined_flag=' -z defs'
9818 if test "$GCC" = yes; then
9819 wlarc='${wl}'
9820 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9821 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9822 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9823 else
9824 case `$CC -V 2>&1` in
9825 *"Compilers 5.0"*)
9826 wlarc=''
9827 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9828 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9829 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9830 ;;
9831 *)
9832 wlarc='${wl}'
9833 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9834 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9835 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9836 ;;
9837 esac
9838 fi
9839 hardcode_libdir_flag_spec='-R$libdir'
9840 hardcode_shlibpath_var=no
9841 case $host_os in
9842 solaris2.[0-5] | solaris2.[0-5].*) ;;
9843 *)
9844 # The compiler driver will combine and reorder linker options,
9845 # but understands `-z linker_flag'. GCC discards it without `$wl',
9846 # but is careful enough not to reorder.
9847 # Supported since Solaris 2.6 (maybe 2.5.1?)
9848 if test "$GCC" = yes; then
9849 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9850 else
9851 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9852 fi
9853 ;;
9854 esac
9855 link_all_deplibs=yes
9856 ;;
9857
9858 sunos4*)
9859 if test "x$host_vendor" = xsequent; then
9860 # Use $CC to link under sequent, because it throws in some extra .o
9861 # files that make .init and .fini sections work.
9862 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9863 else
9864 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9865 fi
9866 hardcode_libdir_flag_spec='-L$libdir'
9867 hardcode_direct=yes
9868 hardcode_minus_L=yes
9869 hardcode_shlibpath_var=no
9870 ;;
9871
9872 sysv4)
9873 case $host_vendor in
9874 sni)
9875 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9876 hardcode_direct=yes # is this really true???
9877 ;;
9878 siemens)
9879 ## LD is ld it makes a PLAMLIB
9880 ## CC just makes a GrossModule.
9881 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9882 reload_cmds='$CC -r -o $output$reload_objs'
9883 hardcode_direct=no
9884 ;;
9885 motorola)
9886 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9887 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9888 ;;
9889 esac
9890 runpath_var='LD_RUN_PATH'
9891 hardcode_shlibpath_var=no
9892 ;;
9893
9894 sysv4.3*)
9895 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9896 hardcode_shlibpath_var=no
9897 export_dynamic_flag_spec='-Bexport'
9898 ;;
9899
9900 sysv4*MP*)
9901 if test -d /usr/nec; then
9902 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9903 hardcode_shlibpath_var=no
9904 runpath_var=LD_RUN_PATH
9905 hardcode_runpath_var=yes
9906 ld_shlibs=yes
9907 fi
9908 ;;
9909
9910 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9911 no_undefined_flag='${wl}-z,text'
9912 archive_cmds_need_lc=no
9913 hardcode_shlibpath_var=no
9914 runpath_var='LD_RUN_PATH'
9915
9916 if test "$GCC" = yes; then
9917 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9918 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9919 else
9920 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9921 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9922 fi
9923 ;;
9924
9925 sysv5* | sco3.2v5* | sco5v6*)
9926 # Note: We can NOT use -z defs as we might desire, because we do not
9927 # link with -lc, and that would cause any symbols used from libc to
9928 # always be unresolved, which means just about no library would
9929 # ever link correctly. If we're not using GNU ld we use -z text
9930 # though, which does catch some bad symbols but isn't as heavy-handed
9931 # as -z defs.
9932 no_undefined_flag='${wl}-z,text'
9933 allow_undefined_flag='${wl}-z,nodefs'
9934 archive_cmds_need_lc=no
9935 hardcode_shlibpath_var=no
9936 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9937 hardcode_libdir_separator=':'
9938 link_all_deplibs=yes
9939 export_dynamic_flag_spec='${wl}-Bexport'
9940 runpath_var='LD_RUN_PATH'
9941
9942 if test "$GCC" = yes; then
9943 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9944 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9945 else
9946 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9947 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9948 fi
9949 ;;
9950
9951 uts4*)
9952 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9953 hardcode_libdir_flag_spec='-L$libdir'
9954 hardcode_shlibpath_var=no
9955 ;;
9956
9957 *)
9958 ld_shlibs=no
9959 ;;
9960 esac
9961
9962 if test x$host_vendor = xsni; then
9963 case $host in
9964 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9965 export_dynamic_flag_spec='${wl}-Blargedynsym'
9966 ;;
9967 esac
9968 fi
9969 fi
9970
81ecdfbb
RW
9971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9972$as_echo "$ld_shlibs" >&6; }
d7040cdb
SE
9973test "$ld_shlibs" = no && can_build_shared=no
9974
9975with_gnu_ld=$with_gnu_ld
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991#
9992# Do we need to explicitly link libc?
9993#
9994case "x$archive_cmds_need_lc" in
9995x|xyes)
9996 # Assume -lc should be added
9997 archive_cmds_need_lc=yes
9998
9999 if test "$enable_shared" = yes && test "$GCC" = yes; then
10000 case $archive_cmds in
10001 *'~'*)
10002 # FIXME: we may have to deal with multi-command sequences.
10003 ;;
10004 '$CC '*)
10005 # Test whether the compiler implicitly links with -lc since on some
10006 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10007 # to ld, don't add -lc before -lgcc.
81ecdfbb
RW
10008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10009$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10010if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10011 $as_echo_n "(cached) " >&6
39144654
RW
10012else
10013 $RM conftest*
10014 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 10015
81ecdfbb 10016 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
d7040cdb
SE
10017 (eval $ac_compile) 2>&5
10018 ac_status=$?
81ecdfbb
RW
10019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10020 test $ac_status = 0; } 2>conftest.err; then
39144654
RW
10021 soname=conftest
10022 lib=conftest
10023 libobjs=conftest.$ac_objext
10024 deplibs=
10025 wl=$lt_prog_compiler_wl
10026 pic_flag=$lt_prog_compiler_pic
10027 compiler_flags=-v
10028 linker_flags=-v
10029 verstring=
10030 output_objdir=.
10031 libname=conftest
10032 lt_save_allow_undefined_flag=$allow_undefined_flag
10033 allow_undefined_flag=
81ecdfbb 10034 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
d7040cdb
SE
10035 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10036 ac_status=$?
81ecdfbb
RW
10037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10038 test $ac_status = 0; }
39144654
RW
10039 then
10040 lt_cv_archive_cmds_need_lc=no
10041 else
10042 lt_cv_archive_cmds_need_lc=yes
10043 fi
10044 allow_undefined_flag=$lt_save_allow_undefined_flag
10045 else
10046 cat conftest.err 1>&5
10047 fi
10048 $RM conftest*
10049
10050fi
81ecdfbb
RW
10051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10052$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
39144654 10053 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
d7040cdb
SE
10054 ;;
10055 esac
10056 fi
10057 ;;
10058esac
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
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
81ecdfbb
RW
10216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10217$as_echo_n "checking dynamic linker characteristics... " >&6; }
718a6fd8
SE
10218
10219if test "$GCC" = yes; then
d7040cdb
SE
10220 case $host_os in
10221 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10222 *) lt_awk_arg="/^libraries:/" ;;
10223 esac
10224 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10225 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10226 # if the path contains ";" then we assume it to be the separator
10227 # otherwise default to the standard path separator (i.e. ":") - it is
10228 # assumed that no part of a normal pathname contains ";" but that should
10229 # okay in the real world where ";" in dirpaths is itself problematic.
10230 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10231 else
10232 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10233 fi
10234 # Ok, now we have the path, separated by spaces, we can step through it
10235 # and add multilib dir if necessary.
10236 lt_tmp_lt_search_path_spec=
10237 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10238 for lt_sys_path in $lt_search_path_spec; do
10239 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10240 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10241 else
10242 test -d "$lt_sys_path" && \
10243 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10244 fi
10245 done
10246 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10247BEGIN {RS=" "; FS="/|\n";} {
10248 lt_foo="";
10249 lt_count=0;
10250 for (lt_i = NF; lt_i > 0; lt_i--) {
10251 if ($lt_i != "" && $lt_i != ".") {
10252 if ($lt_i == "..") {
10253 lt_count++;
10254 } else {
10255 if (lt_count == 0) {
10256 lt_foo="/" $lt_i lt_foo;
10257 } else {
10258 lt_count--;
10259 }
10260 }
10261 }
10262 }
10263 if (lt_foo != "") { lt_freq[lt_foo]++; }
10264 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10265}'`
10266 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10267else
10268 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10269fi
10270library_names_spec=
10271libname_spec='lib$name'
10272soname_spec=
10273shrext_cmds=".so"
10274postinstall_cmds=
10275postuninstall_cmds=
10276finish_cmds=
10277finish_eval=
10278shlibpath_var=
10279shlibpath_overrides_runpath=unknown
10280version_type=none
10281dynamic_linker="$host_os ld.so"
10282sys_lib_dlsearch_path_spec="/lib /usr/lib"
10283need_lib_prefix=unknown
10284hardcode_into_libs=no
10285
10286# when you set need_version to no, make sure it does not cause -set_version
10287# flags to be left without arguments
10288need_version=unknown
10289
10290case $host_os in
10291aix3*)
10292 version_type=linux
10293 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10294 shlibpath_var=LIBPATH
10295
10296 # AIX 3 has no versioning support, so we append a major version to the name.
10297 soname_spec='${libname}${release}${shared_ext}$major'
10298 ;;
10299
e81819a5 10300aix[4-9]*)
d7040cdb
SE
10301 version_type=linux
10302 need_lib_prefix=no
10303 need_version=no
10304 hardcode_into_libs=yes
10305 if test "$host_cpu" = ia64; then
10306 # AIX 5 supports IA64
10307 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10308 shlibpath_var=LD_LIBRARY_PATH
10309 else
10310 # With GCC up to 2.95.x, collect2 would create an import file
10311 # for dependence libraries. The import file would start with
10312 # the line `#! .'. This would cause the generated library to
10313 # depend on `.', always an invalid library. This was fixed in
10314 # development snapshots of GCC prior to 3.0.
10315 case $host_os in
10316 aix4 | aix4.[01] | aix4.[01].*)
10317 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10318 echo ' yes '
10319 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10320 :
10321 else
10322 can_build_shared=no
10323 fi
10324 ;;
10325 esac
10326 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10327 # soname into executable. Probably we can add versioning support to
10328 # collect2, so additional links can be useful in future.
10329 if test "$aix_use_runtimelinking" = yes; then
10330 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10331 # instead of lib<name>.a to let people know that these are not
10332 # typical AIX shared libraries.
10333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10334 else
10335 # We preserve .a as extension for shared libraries through AIX4.2
10336 # and later when we are not doing run time linking.
10337 library_names_spec='${libname}${release}.a $libname.a'
10338 soname_spec='${libname}${release}${shared_ext}$major'
10339 fi
10340 shlibpath_var=LIBPATH
10341 fi
10342 ;;
10343
10344amigaos*)
718a6fd8
SE
10345 case $host_cpu in
10346 powerpc)
10347 # Since July 2007 AmigaOS4 officially supports .so libraries.
10348 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10350 ;;
10351 m68k)
d7040cdb
SE
10352 library_names_spec='$libname.ixlibrary $libname.a'
10353 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10354 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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
10355 ;;
10356 esac
d7040cdb
SE
10357 ;;
10358
10359beos*)
10360 library_names_spec='${libname}${shared_ext}'
10361 dynamic_linker="$host_os ld.so"
10362 shlibpath_var=LIBRARY_PATH
10363 ;;
10364
10365bsdi[45]*)
10366 version_type=linux
10367 need_version=no
10368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10369 soname_spec='${libname}${release}${shared_ext}$major'
10370 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10371 shlibpath_var=LD_LIBRARY_PATH
10372 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10373 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10374 # the default ld.so.conf also contains /usr/contrib/lib and
10375 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10376 # libtool to hard-code these into programs
10377 ;;
10378
718a6fd8 10379cygwin* | mingw* | pw32* | cegcc*)
d7040cdb
SE
10380 version_type=windows
10381 shrext_cmds=".dll"
10382 need_version=no
10383 need_lib_prefix=no
10384
718a6fd8
SE
10385 case $GCC,$host_os in
10386 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
d7040cdb
SE
10387 library_names_spec='$libname.dll.a'
10388 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10389 postinstall_cmds='base_file=`basename \${file}`~
10390 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10391 dldir=$destdir/`dirname \$dlpath`~
10392 test -d \$dldir || mkdir -p \$dldir~
10393 $install_prog $dir/$dlname \$dldir/$dlname~
10394 chmod a+x \$dldir/$dlname~
10395 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10396 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10397 fi'
10398 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10399 dlpath=$dir/\$dldll~
10400 $RM \$dlpath'
10401 shlibpath_overrides_runpath=yes
10402
10403 case $host_os in
10404 cygwin*)
10405 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10406 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10407 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10408 ;;
718a6fd8 10409 mingw* | cegcc*)
d7040cdb
SE
10410 # MinGW DLLs use traditional 'lib' prefix
10411 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10412 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10413 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10414 # It is most probably a Windows format PATH printed by
10415 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10416 # path with ; separators, and with drive letters. We can handle the
10417 # drive letters (cygwin fileutils understands them), so leave them,
10418 # especially as we might pass files found there to a mingw objdump,
10419 # which wouldn't understand a cygwinified path. Ahh.
10420 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10421 else
10422 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10423 fi
10424 ;;
10425 pw32*)
10426 # pw32 DLLs use 'pw' prefix rather than 'lib'
10427 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10428 ;;
10429 esac
10430 ;;
10431
10432 *)
10433 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10434 ;;
10435 esac
10436 dynamic_linker='Win32 ld.exe'
10437 # FIXME: first we should search . and the directory the executable is in
10438 shlibpath_var=PATH
10439 ;;
10440
10441darwin* | rhapsody*)
10442 dynamic_linker="$host_os dyld"
10443 version_type=darwin
10444 need_lib_prefix=no
10445 need_version=no
10446 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10447 soname_spec='${libname}${release}${major}$shared_ext'
10448 shlibpath_overrides_runpath=yes
10449 shlibpath_var=DYLD_LIBRARY_PATH
10450 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10451
10452 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10453 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10454 ;;
10455
10456dgux*)
10457 version_type=linux
10458 need_lib_prefix=no
10459 need_version=no
10460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10461 soname_spec='${libname}${release}${shared_ext}$major'
10462 shlibpath_var=LD_LIBRARY_PATH
10463 ;;
10464
10465freebsd1*)
10466 dynamic_linker=no
10467 ;;
10468
10469freebsd* | dragonfly*)
10470 # DragonFly does not have aout. When/if they implement a new
10471 # versioning mechanism, adjust this.
10472 if test -x /usr/bin/objformat; then
10473 objformat=`/usr/bin/objformat`
10474 else
10475 case $host_os in
10476 freebsd[123]*) objformat=aout ;;
10477 *) objformat=elf ;;
10478 esac
10479 fi
10480 version_type=freebsd-$objformat
10481 case $version_type in
10482 freebsd-elf*)
10483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10484 need_version=no
10485 need_lib_prefix=no
10486 ;;
10487 freebsd-*)
10488 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10489 need_version=yes
10490 ;;
10491 esac
10492 shlibpath_var=LD_LIBRARY_PATH
10493 case $host_os in
10494 freebsd2*)
10495 shlibpath_overrides_runpath=yes
10496 ;;
10497 freebsd3.[01]* | freebsdelf3.[01]*)
10498 shlibpath_overrides_runpath=yes
10499 hardcode_into_libs=yes
10500 ;;
10501 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10502 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10503 shlibpath_overrides_runpath=no
10504 hardcode_into_libs=yes
10505 ;;
10506 *) # from 4.6 on, and DragonFly
10507 shlibpath_overrides_runpath=yes
10508 hardcode_into_libs=yes
10509 ;;
10510 esac
10511 ;;
10512
10513gnu*)
10514 version_type=linux
10515 need_lib_prefix=no
10516 need_version=no
10517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10518 soname_spec='${libname}${release}${shared_ext}$major'
10519 shlibpath_var=LD_LIBRARY_PATH
10520 hardcode_into_libs=yes
10521 ;;
10522
10523hpux9* | hpux10* | hpux11*)
10524 # Give a soname corresponding to the major version so that dld.sl refuses to
10525 # link against other versions.
10526 version_type=sunos
10527 need_lib_prefix=no
10528 need_version=no
10529 case $host_cpu in
10530 ia64*)
10531 shrext_cmds='.so'
10532 hardcode_into_libs=yes
10533 dynamic_linker="$host_os dld.so"
10534 shlibpath_var=LD_LIBRARY_PATH
10535 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10537 soname_spec='${libname}${release}${shared_ext}$major'
10538 if test "X$HPUX_IA64_MODE" = X32; then
10539 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10540 else
10541 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10542 fi
10543 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10544 ;;
10545 hppa*64*)
10546 shrext_cmds='.sl'
10547 hardcode_into_libs=yes
10548 dynamic_linker="$host_os dld.sl"
10549 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10550 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10552 soname_spec='${libname}${release}${shared_ext}$major'
10553 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10554 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10555 ;;
10556 *)
10557 shrext_cmds='.sl'
10558 dynamic_linker="$host_os dld.sl"
10559 shlibpath_var=SHLIB_PATH
10560 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10562 soname_spec='${libname}${release}${shared_ext}$major'
10563 ;;
10564 esac
10565 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10566 postinstall_cmds='chmod 555 $lib'
10567 ;;
10568
10569interix[3-9]*)
10570 version_type=linux
10571 need_lib_prefix=no
10572 need_version=no
10573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10574 soname_spec='${libname}${release}${shared_ext}$major'
10575 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10576 shlibpath_var=LD_LIBRARY_PATH
10577 shlibpath_overrides_runpath=no
10578 hardcode_into_libs=yes
10579 ;;
10580
10581irix5* | irix6* | nonstopux*)
10582 case $host_os in
10583 nonstopux*) version_type=nonstopux ;;
10584 *)
10585 if test "$lt_cv_prog_gnu_ld" = yes; then
10586 version_type=linux
10587 else
10588 version_type=irix
10589 fi ;;
10590 esac
10591 need_lib_prefix=no
10592 need_version=no
10593 soname_spec='${libname}${release}${shared_ext}$major'
10594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10595 case $host_os in
10596 irix5* | nonstopux*)
10597 libsuff= shlibsuff=
10598 ;;
10599 *)
10600 case $LD in # libtool.m4 will add one of these switches to LD
10601 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10602 libsuff= shlibsuff= libmagic=32-bit;;
10603 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10604 libsuff=32 shlibsuff=N32 libmagic=N32;;
10605 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10606 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10607 *) libsuff= shlibsuff= libmagic=never-match;;
10608 esac
10609 ;;
10610 esac
10611 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10612 shlibpath_overrides_runpath=no
10613 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10614 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10615 hardcode_into_libs=yes
10616 ;;
10617
10618# No shared lib support for Linux oldld, aout, or coff.
10619linux*oldld* | linux*aout* | linux*coff*)
10620 dynamic_linker=no
10621 ;;
10622
10623# This must be Linux ELF.
58e24671 10624linux* | k*bsd*-gnu | kopensolaris*-gnu)
d7040cdb
SE
10625 version_type=linux
10626 need_lib_prefix=no
10627 need_version=no
10628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10629 soname_spec='${libname}${release}${shared_ext}$major'
10630 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10631 shlibpath_var=LD_LIBRARY_PATH
10632 shlibpath_overrides_runpath=no
39144654 10633
d7040cdb 10634 # Some binutils ld are patched to set DT_RUNPATH
81ecdfbb
RW
10635 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10636 $as_echo_n "(cached) " >&6
39144654
RW
10637else
10638 lt_cv_shlibpath_overrides_runpath=no
10639 save_LDFLAGS=$LDFLAGS
10640 save_libdir=$libdir
10641 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10642 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
81ecdfbb 10643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
10644/* end confdefs.h. */
10645
10646int
10647main ()
10648{
10649
10650 ;
10651 return 0;
10652}
10653_ACEOF
81ecdfbb
RW
10654if ac_fn_c_try_link "$LINENO"; then :
10655 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
39144654 10656 lt_cv_shlibpath_overrides_runpath=yes
d7040cdb 10657fi
d7040cdb 10658fi
81ecdfbb
RW
10659rm -f core conftest.err conftest.$ac_objext \
10660 conftest$ac_exeext conftest.$ac_ext
39144654
RW
10661 LDFLAGS=$save_LDFLAGS
10662 libdir=$save_libdir
10663
10664fi
10665
10666 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
d7040cdb
SE
10667
10668 # This implies no fast_install, which is unacceptable.
10669 # Some rework will be needed to allow for fast_install
10670 # before this can be enabled.
10671 hardcode_into_libs=yes
10672
10673 # Append ld.so.conf contents to the search path
10674 if test -f /etc/ld.so.conf; then
718a6fd8 10675 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;/^$/d' | tr '\n' ' '`
d7040cdb
SE
10676 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10677 fi
10678
10679 # We used to test for /lib/ld.so.1 and disable shared libraries on
10680 # powerpc, because MkLinux only supported shared libraries with the
10681 # GNU dynamic linker. Since this was broken with cross compilers,
10682 # most powerpc-linux boxes support dynamic linking these days and
10683 # people can always --disable-shared, the test was removed, and we
10684 # assume the GNU/Linux dynamic linker is in use.
10685 dynamic_linker='GNU/Linux ld.so'
10686 ;;
10687
10688netbsd*)
10689 version_type=sunos
10690 need_lib_prefix=no
10691 need_version=no
10692 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10694 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10695 dynamic_linker='NetBSD (a.out) ld.so'
10696 else
10697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10698 soname_spec='${libname}${release}${shared_ext}$major'
10699 dynamic_linker='NetBSD ld.elf_so'
10700 fi
10701 shlibpath_var=LD_LIBRARY_PATH
10702 shlibpath_overrides_runpath=yes
10703 hardcode_into_libs=yes
10704 ;;
10705
10706newsos6)
10707 version_type=linux
10708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10709 shlibpath_var=LD_LIBRARY_PATH
10710 shlibpath_overrides_runpath=yes
10711 ;;
10712
10713*nto* | *qnx*)
10714 version_type=qnx
10715 need_lib_prefix=no
10716 need_version=no
10717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10718 soname_spec='${libname}${release}${shared_ext}$major'
10719 shlibpath_var=LD_LIBRARY_PATH
10720 shlibpath_overrides_runpath=no
10721 hardcode_into_libs=yes
10722 dynamic_linker='ldqnx.so'
10723 ;;
10724
10725openbsd*)
10726 version_type=sunos
10727 sys_lib_dlsearch_path_spec="/usr/lib"
10728 need_lib_prefix=no
10729 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10730 case $host_os in
10731 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10732 *) need_version=no ;;
10733 esac
10734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10735 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10736 shlibpath_var=LD_LIBRARY_PATH
10737 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10738 case $host_os in
10739 openbsd2.[89] | openbsd2.[89].*)
10740 shlibpath_overrides_runpath=no
10741 ;;
10742 *)
10743 shlibpath_overrides_runpath=yes
10744 ;;
10745 esac
10746 else
10747 shlibpath_overrides_runpath=yes
10748 fi
10749 ;;
10750
10751os2*)
10752 libname_spec='$name'
10753 shrext_cmds=".dll"
10754 need_lib_prefix=no
10755 library_names_spec='$libname${shared_ext} $libname.a'
10756 dynamic_linker='OS/2 ld.exe'
10757 shlibpath_var=LIBPATH
10758 ;;
10759
10760osf3* | osf4* | osf5*)
10761 version_type=osf
10762 need_lib_prefix=no
10763 need_version=no
10764 soname_spec='${libname}${release}${shared_ext}$major'
10765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10766 shlibpath_var=LD_LIBRARY_PATH
10767 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10768 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10769 ;;
10770
10771rdos*)
10772 dynamic_linker=no
10773 ;;
10774
10775solaris*)
10776 version_type=linux
10777 need_lib_prefix=no
10778 need_version=no
10779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10780 soname_spec='${libname}${release}${shared_ext}$major'
10781 shlibpath_var=LD_LIBRARY_PATH
10782 shlibpath_overrides_runpath=yes
10783 hardcode_into_libs=yes
10784 # ldd complains unless libraries are executable
10785 postinstall_cmds='chmod +x $lib'
10786 ;;
10787
10788sunos4*)
10789 version_type=sunos
10790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10791 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10792 shlibpath_var=LD_LIBRARY_PATH
10793 shlibpath_overrides_runpath=yes
10794 if test "$with_gnu_ld" = yes; then
10795 need_lib_prefix=no
10796 fi
10797 need_version=yes
10798 ;;
10799
10800sysv4 | sysv4.3*)
10801 version_type=linux
10802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10803 soname_spec='${libname}${release}${shared_ext}$major'
10804 shlibpath_var=LD_LIBRARY_PATH
10805 case $host_vendor in
10806 sni)
10807 shlibpath_overrides_runpath=no
10808 need_lib_prefix=no
10809 runpath_var=LD_RUN_PATH
10810 ;;
10811 siemens)
10812 need_lib_prefix=no
10813 ;;
10814 motorola)
10815 need_lib_prefix=no
10816 need_version=no
10817 shlibpath_overrides_runpath=no
10818 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10819 ;;
10820 esac
10821 ;;
10822
10823sysv4*MP*)
10824 if test -d /usr/nec ;then
10825 version_type=linux
10826 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10827 soname_spec='$libname${shared_ext}.$major'
10828 shlibpath_var=LD_LIBRARY_PATH
10829 fi
10830 ;;
10831
10832sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10833 version_type=freebsd-elf
10834 need_lib_prefix=no
10835 need_version=no
10836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10837 soname_spec='${libname}${release}${shared_ext}$major'
10838 shlibpath_var=LD_LIBRARY_PATH
10839 shlibpath_overrides_runpath=yes
10840 hardcode_into_libs=yes
10841 if test "$with_gnu_ld" = yes; then
10842 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10843 else
10844 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10845 case $host_os in
10846 sco3.2v5*)
10847 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10848 ;;
10849 esac
10850 fi
10851 sys_lib_dlsearch_path_spec='/usr/lib'
10852 ;;
10853
10854tpf*)
10855 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10856 version_type=linux
10857 need_lib_prefix=no
10858 need_version=no
718a6fd8 10859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
d7040cdb
SE
10860 shlibpath_var=LD_LIBRARY_PATH
10861 shlibpath_overrides_runpath=no
10862 hardcode_into_libs=yes
10863 ;;
10864
10865uts4*)
10866 version_type=linux
10867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10868 soname_spec='${libname}${release}${shared_ext}$major'
10869 shlibpath_var=LD_LIBRARY_PATH
10870 ;;
10871
10872*)
10873 dynamic_linker=no
10874 ;;
10875esac
81ecdfbb
RW
10876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10877$as_echo "$dynamic_linker" >&6; }
d7040cdb
SE
10878test "$dynamic_linker" = no && can_build_shared=no
10879
10880variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10881if test "$GCC" = yes; then
10882 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10883fi
10884
718a6fd8
SE
10885if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10886 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10887fi
10888if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10889 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10890fi
10891
d7040cdb
SE
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
81ecdfbb
RW
10978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10979$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
d7040cdb
SE
10980hardcode_action=
10981if test -n "$hardcode_libdir_flag_spec" ||
10982 test -n "$runpath_var" ||
10983 test "X$hardcode_automatic" = "Xyes" ; then
10984
10985 # We can hardcode non-existent directories.
10986 if test "$hardcode_direct" != no &&
10987 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10988 # have to relink, otherwise we might link with an installed library
10989 # when we should be linking with a yet-to-be-installed one
10990 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10991 test "$hardcode_minus_L" != no; then
10992 # Linking always hardcodes the temporary library directory.
10993 hardcode_action=relink
10994 else
10995 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10996 hardcode_action=immediate
10997 fi
10998else
10999 # We cannot hardcode anything, or else we can only hardcode existing
11000 # directories.
11001 hardcode_action=unsupported
11002fi
81ecdfbb
RW
11003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11004$as_echo "$hardcode_action" >&6; }
d7040cdb
SE
11005
11006if test "$hardcode_action" = relink ||
11007 test "$inherit_rpath" = yes; then
11008 # Fast installation is not supported
11009 enable_fast_install=no
11010elif test "$shlibpath_overrides_runpath" = yes ||
11011 test "$enable_shared" = no; then
11012 # Fast installation is not necessary
11013 enable_fast_install=needless
11014fi
11015
11016
11017
11018
11019
11020
11021 if test "x$enable_dlopen" != xyes; then
11022 enable_dlopen=unknown
11023 enable_dlopen_self=unknown
11024 enable_dlopen_self_static=unknown
11025else
11026 lt_cv_dlopen=no
11027 lt_cv_dlopen_libs=
11028
11029 case $host_os in
11030 beos*)
11031 lt_cv_dlopen="load_add_on"
11032 lt_cv_dlopen_libs=
11033 lt_cv_dlopen_self=yes
11034 ;;
11035
718a6fd8 11036 mingw* | pw32* | cegcc*)
d7040cdb
SE
11037 lt_cv_dlopen="LoadLibrary"
11038 lt_cv_dlopen_libs=
11039 ;;
11040
11041 cygwin*)
11042 lt_cv_dlopen="dlopen"
11043 lt_cv_dlopen_libs=
11044 ;;
11045
11046 darwin*)
11047 # if libdl is installed we need to link against it
81ecdfbb
RW
11048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11049$as_echo_n "checking for dlopen in -ldl... " >&6; }
11050if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11051 $as_echo_n "(cached) " >&6
d7040cdb
SE
11052else
11053 ac_check_lib_save_LIBS=$LIBS
11054LIBS="-ldl $LIBS"
81ecdfbb 11055cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
11056/* end confdefs.h. */
11057
81ecdfbb
RW
11058/* Override any GCC internal prototype to avoid an error.
11059 Use char because int might match the return type of a GCC
11060 builtin and then its argument prototype would still apply. */
d7040cdb
SE
11061#ifdef __cplusplus
11062extern "C"
11063#endif
d7040cdb
SE
11064char dlopen ();
11065int
11066main ()
11067{
81ecdfbb 11068return dlopen ();
d7040cdb
SE
11069 ;
11070 return 0;
11071}
11072_ACEOF
81ecdfbb 11073if ac_fn_c_try_link "$LINENO"; then :
d7040cdb
SE
11074 ac_cv_lib_dl_dlopen=yes
11075else
81ecdfbb 11076 ac_cv_lib_dl_dlopen=no
d7040cdb 11077fi
81ecdfbb
RW
11078rm -f core conftest.err conftest.$ac_objext \
11079 conftest$ac_exeext conftest.$ac_ext
d7040cdb
SE
11080LIBS=$ac_check_lib_save_LIBS
11081fi
81ecdfbb
RW
11082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11083$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11084if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
d7040cdb
SE
11085 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11086else
11087
11088 lt_cv_dlopen="dyld"
11089 lt_cv_dlopen_libs=
11090 lt_cv_dlopen_self=yes
11091
11092fi
11093
11094 ;;
11095
11096 *)
81ecdfbb
RW
11097 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11098if test "x$ac_cv_func_shl_load" = x""yes; then :
d7040cdb
SE
11099 lt_cv_dlopen="shl_load"
11100else
81ecdfbb
RW
11101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11102$as_echo_n "checking for shl_load in -ldld... " >&6; }
11103if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11104 $as_echo_n "(cached) " >&6
d7040cdb
SE
11105else
11106 ac_check_lib_save_LIBS=$LIBS
11107LIBS="-ldld $LIBS"
81ecdfbb 11108cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
11109/* end confdefs.h. */
11110
81ecdfbb
RW
11111/* Override any GCC internal prototype to avoid an error.
11112 Use char because int might match the return type of a GCC
11113 builtin and then its argument prototype would still apply. */
d7040cdb
SE
11114#ifdef __cplusplus
11115extern "C"
11116#endif
d7040cdb
SE
11117char shl_load ();
11118int
11119main ()
11120{
81ecdfbb 11121return shl_load ();
d7040cdb
SE
11122 ;
11123 return 0;
11124}
11125_ACEOF
81ecdfbb 11126if ac_fn_c_try_link "$LINENO"; then :
d7040cdb
SE
11127 ac_cv_lib_dld_shl_load=yes
11128else
81ecdfbb 11129 ac_cv_lib_dld_shl_load=no
d7040cdb 11130fi
81ecdfbb
RW
11131rm -f core conftest.err conftest.$ac_objext \
11132 conftest$ac_exeext conftest.$ac_ext
d7040cdb
SE
11133LIBS=$ac_check_lib_save_LIBS
11134fi
81ecdfbb
RW
11135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11136$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11137if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
718a6fd8 11138 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
d7040cdb 11139else
81ecdfbb
RW
11140 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11141if test "x$ac_cv_func_dlopen" = x""yes; then :
d7040cdb
SE
11142 lt_cv_dlopen="dlopen"
11143else
81ecdfbb
RW
11144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11145$as_echo_n "checking for dlopen in -ldl... " >&6; }
11146if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11147 $as_echo_n "(cached) " >&6
d7040cdb
SE
11148else
11149 ac_check_lib_save_LIBS=$LIBS
11150LIBS="-ldl $LIBS"
81ecdfbb 11151cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
11152/* end confdefs.h. */
11153
81ecdfbb
RW
11154/* Override any GCC internal prototype to avoid an error.
11155 Use char because int might match the return type of a GCC
11156 builtin and then its argument prototype would still apply. */
d7040cdb
SE
11157#ifdef __cplusplus
11158extern "C"
11159#endif
d7040cdb
SE
11160char dlopen ();
11161int
11162main ()
11163{
81ecdfbb 11164return dlopen ();
d7040cdb
SE
11165 ;
11166 return 0;
11167}
11168_ACEOF
81ecdfbb 11169if ac_fn_c_try_link "$LINENO"; then :
d7040cdb
SE
11170 ac_cv_lib_dl_dlopen=yes
11171else
81ecdfbb 11172 ac_cv_lib_dl_dlopen=no
d7040cdb 11173fi
81ecdfbb
RW
11174rm -f core conftest.err conftest.$ac_objext \
11175 conftest$ac_exeext conftest.$ac_ext
d7040cdb
SE
11176LIBS=$ac_check_lib_save_LIBS
11177fi
81ecdfbb
RW
11178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11179$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11180if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
d7040cdb
SE
11181 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11182else
81ecdfbb
RW
11183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11184$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11185if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11186 $as_echo_n "(cached) " >&6
d7040cdb
SE
11187else
11188 ac_check_lib_save_LIBS=$LIBS
11189LIBS="-lsvld $LIBS"
81ecdfbb 11190cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
11191/* end confdefs.h. */
11192
81ecdfbb
RW
11193/* Override any GCC internal prototype to avoid an error.
11194 Use char because int might match the return type of a GCC
11195 builtin and then its argument prototype would still apply. */
d7040cdb
SE
11196#ifdef __cplusplus
11197extern "C"
11198#endif
d7040cdb
SE
11199char dlopen ();
11200int
11201main ()
11202{
81ecdfbb 11203return dlopen ();
d7040cdb
SE
11204 ;
11205 return 0;
11206}
11207_ACEOF
81ecdfbb 11208if ac_fn_c_try_link "$LINENO"; then :
d7040cdb
SE
11209 ac_cv_lib_svld_dlopen=yes
11210else
81ecdfbb 11211 ac_cv_lib_svld_dlopen=no
d7040cdb 11212fi
81ecdfbb
RW
11213rm -f core conftest.err conftest.$ac_objext \
11214 conftest$ac_exeext conftest.$ac_ext
d7040cdb
SE
11215LIBS=$ac_check_lib_save_LIBS
11216fi
81ecdfbb
RW
11217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11218$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11219if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
d7040cdb
SE
11220 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11221else
81ecdfbb
RW
11222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11223$as_echo_n "checking for dld_link in -ldld... " >&6; }
11224if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11225 $as_echo_n "(cached) " >&6
d7040cdb
SE
11226else
11227 ac_check_lib_save_LIBS=$LIBS
11228LIBS="-ldld $LIBS"
81ecdfbb 11229cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
11230/* end confdefs.h. */
11231
81ecdfbb
RW
11232/* Override any GCC internal prototype to avoid an error.
11233 Use char because int might match the return type of a GCC
11234 builtin and then its argument prototype would still apply. */
d7040cdb
SE
11235#ifdef __cplusplus
11236extern "C"
11237#endif
d7040cdb
SE
11238char dld_link ();
11239int
11240main ()
11241{
81ecdfbb 11242return dld_link ();
d7040cdb
SE
11243 ;
11244 return 0;
11245}
11246_ACEOF
81ecdfbb 11247if ac_fn_c_try_link "$LINENO"; then :
d7040cdb
SE
11248 ac_cv_lib_dld_dld_link=yes
11249else
81ecdfbb 11250 ac_cv_lib_dld_dld_link=no
d7040cdb 11251fi
81ecdfbb
RW
11252rm -f core conftest.err conftest.$ac_objext \
11253 conftest$ac_exeext conftest.$ac_ext
d7040cdb
SE
11254LIBS=$ac_check_lib_save_LIBS
11255fi
81ecdfbb
RW
11256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11257$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11258if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
718a6fd8 11259 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
d7040cdb
SE
11260fi
11261
11262
11263fi
11264
11265
11266fi
11267
11268
11269fi
11270
11271
11272fi
11273
11274
11275fi
11276
11277 ;;
11278 esac
11279
11280 if test "x$lt_cv_dlopen" != xno; then
11281 enable_dlopen=yes
20e95c23 11282 else
d7040cdb 11283 enable_dlopen=no
252b5132 11284 fi
5464f5a1 11285
d7040cdb
SE
11286 case $lt_cv_dlopen in
11287 dlopen)
11288 save_CPPFLAGS="$CPPFLAGS"
11289 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11290
11291 save_LDFLAGS="$LDFLAGS"
11292 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11293
11294 save_LIBS="$LIBS"
11295 LIBS="$lt_cv_dlopen_libs $LIBS"
11296
81ecdfbb
RW
11297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11298$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11299if test "${lt_cv_dlopen_self+set}" = set; then :
11300 $as_echo_n "(cached) " >&6
20e95c23 11301else
d7040cdb
SE
11302 if test "$cross_compiling" = yes; then :
11303 lt_cv_dlopen_self=cross
11304else
11305 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11306 lt_status=$lt_dlunknown
11307 cat > conftest.$ac_ext <<_LT_EOF
81ecdfbb 11308#line 11308 "configure"
d7040cdb
SE
11309#include "confdefs.h"
11310
11311#if HAVE_DLFCN_H
11312#include <dlfcn.h>
11313#endif
11314
11315#include <stdio.h>
11316
11317#ifdef RTLD_GLOBAL
11318# define LT_DLGLOBAL RTLD_GLOBAL
11319#else
11320# ifdef DL_GLOBAL
11321# define LT_DLGLOBAL DL_GLOBAL
11322# else
11323# define LT_DLGLOBAL 0
11324# endif
11325#endif
11326
11327/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11328 find out it does not work in some platform. */
11329#ifndef LT_DLLAZY_OR_NOW
11330# ifdef RTLD_LAZY
11331# define LT_DLLAZY_OR_NOW RTLD_LAZY
11332# else
11333# ifdef DL_LAZY
11334# define LT_DLLAZY_OR_NOW DL_LAZY
11335# else
11336# ifdef RTLD_NOW
11337# define LT_DLLAZY_OR_NOW RTLD_NOW
11338# else
11339# ifdef DL_NOW
11340# define LT_DLLAZY_OR_NOW DL_NOW
11341# else
11342# define LT_DLLAZY_OR_NOW 0
11343# endif
11344# endif
11345# endif
11346# endif
11347#endif
11348
d7040cdb
SE
11349void fnord() { int i=42;}
11350int main ()
11351{
11352 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11353 int status = $lt_dlunknown;
11354
11355 if (self)
11356 {
11357 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11358 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11359 /* dlclose (self); */
11360 }
11361 else
11362 puts (dlerror ());
11363
718a6fd8 11364 return status;
d7040cdb
SE
11365}
11366_LT_EOF
81ecdfbb 11367 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
d7040cdb
SE
11368 (eval $ac_link) 2>&5
11369 ac_status=$?
81ecdfbb
RW
11370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11371 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
d7040cdb
SE
11372 (./conftest; exit; ) >&5 2>/dev/null
11373 lt_status=$?
11374 case x$lt_status in
11375 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11376 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11377 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11378 esac
11379 else :
11380 # compilation failed
11381 lt_cv_dlopen_self=no
11382 fi
252b5132 11383fi
d7040cdb 11384rm -fr conftest*
20e95c23 11385
d7040cdb
SE
11386
11387fi
81ecdfbb
RW
11388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11389$as_echo "$lt_cv_dlopen_self" >&6; }
d7040cdb
SE
11390
11391 if test "x$lt_cv_dlopen_self" = xyes; then
11392 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
81ecdfbb
RW
11393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11394$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11395if test "${lt_cv_dlopen_self_static+set}" = set; then :
11396 $as_echo_n "(cached) " >&6
20e95c23 11397else
d7040cdb
SE
11398 if test "$cross_compiling" = yes; then :
11399 lt_cv_dlopen_self_static=cross
11400else
11401 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11402 lt_status=$lt_dlunknown
11403 cat > conftest.$ac_ext <<_LT_EOF
81ecdfbb 11404#line 11404 "configure"
d7040cdb
SE
11405#include "confdefs.h"
11406
11407#if HAVE_DLFCN_H
11408#include <dlfcn.h>
11409#endif
11410
11411#include <stdio.h>
11412
11413#ifdef RTLD_GLOBAL
11414# define LT_DLGLOBAL RTLD_GLOBAL
11415#else
11416# ifdef DL_GLOBAL
11417# define LT_DLGLOBAL DL_GLOBAL
11418# else
11419# define LT_DLGLOBAL 0
11420# endif
11421#endif
11422
11423/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11424 find out it does not work in some platform. */
11425#ifndef LT_DLLAZY_OR_NOW
11426# ifdef RTLD_LAZY
11427# define LT_DLLAZY_OR_NOW RTLD_LAZY
11428# else
11429# ifdef DL_LAZY
11430# define LT_DLLAZY_OR_NOW DL_LAZY
11431# else
11432# ifdef RTLD_NOW
11433# define LT_DLLAZY_OR_NOW RTLD_NOW
11434# else
11435# ifdef DL_NOW
11436# define LT_DLLAZY_OR_NOW DL_NOW
11437# else
11438# define LT_DLLAZY_OR_NOW 0
11439# endif
11440# endif
11441# endif
11442# endif
11443#endif
11444
d7040cdb
SE
11445void fnord() { int i=42;}
11446int main ()
11447{
11448 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11449 int status = $lt_dlunknown;
11450
11451 if (self)
11452 {
11453 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11454 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11455 /* dlclose (self); */
11456 }
11457 else
11458 puts (dlerror ());
11459
718a6fd8 11460 return status;
d7040cdb
SE
11461}
11462_LT_EOF
81ecdfbb 11463 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
d7040cdb
SE
11464 (eval $ac_link) 2>&5
11465 ac_status=$?
81ecdfbb
RW
11466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11467 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
d7040cdb
SE
11468 (./conftest; exit; ) >&5 2>/dev/null
11469 lt_status=$?
11470 case x$lt_status in
11471 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11472 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11473 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11474 esac
11475 else :
11476 # compilation failed
11477 lt_cv_dlopen_self_static=no
11478 fi
11479fi
11480rm -fr conftest*
11481
11482
11483fi
81ecdfbb
RW
11484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11485$as_echo "$lt_cv_dlopen_self_static" >&6; }
d7040cdb
SE
11486 fi
11487
11488 CPPFLAGS="$save_CPPFLAGS"
11489 LDFLAGS="$save_LDFLAGS"
11490 LIBS="$save_LIBS"
11491 ;;
11492 esac
11493
11494 case $lt_cv_dlopen_self in
11495 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11496 *) enable_dlopen_self=unknown ;;
11497 esac
11498
11499 case $lt_cv_dlopen_self_static in
11500 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11501 *) enable_dlopen_self_static=unknown ;;
11502 esac
11503fi
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521striplib=
11522old_striplib=
81ecdfbb
RW
11523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11524$as_echo_n "checking whether stripping libraries is possible... " >&6; }
d7040cdb
SE
11525if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11526 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11527 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
81ecdfbb
RW
11528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11529$as_echo "yes" >&6; }
d7040cdb
SE
11530else
11531# FIXME - insert some real tests, host_os isn't really good enough
11532 case $host_os in
11533 darwin*)
11534 if test -n "$STRIP" ; then
11535 striplib="$STRIP -x"
11536 old_striplib="$STRIP -S"
81ecdfbb
RW
11537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11538$as_echo "yes" >&6; }
d7040cdb 11539 else
81ecdfbb
RW
11540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11541$as_echo "no" >&6; }
d7040cdb 11542 fi
20e95c23
DJ
11543 ;;
11544 *)
81ecdfbb
RW
11545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11546$as_echo "no" >&6; }
d7040cdb
SE
11547 ;;
11548 esac
11549fi
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562 # Report which library types will actually be built
81ecdfbb
RW
11563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11564$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11566$as_echo "$can_build_shared" >&6; }
d7040cdb 11567
81ecdfbb
RW
11568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11569$as_echo_n "checking whether to build shared libraries... " >&6; }
d7040cdb
SE
11570 test "$can_build_shared" = "no" && enable_shared=no
11571
11572 # On AIX, shared libraries and static libraries use the same namespace, and
11573 # are all built from PIC.
11574 case $host_os in
11575 aix3*)
11576 test "$enable_shared" = yes && enable_static=no
11577 if test -n "$RANLIB"; then
11578 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11579 postinstall_cmds='$RANLIB $lib'
11580 fi
11581 ;;
11582
e81819a5 11583 aix[4-9]*)
d7040cdb
SE
11584 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11585 test "$enable_shared" = yes && enable_static=no
11586 fi
20e95c23 11587 ;;
d7040cdb 11588 esac
81ecdfbb
RW
11589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11590$as_echo "$enable_shared" >&6; }
d7040cdb 11591
81ecdfbb
RW
11592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11593$as_echo_n "checking whether to build static libraries... " >&6; }
d7040cdb
SE
11594 # Make sure either enable_shared or enable_static is yes.
11595 test "$enable_shared" = yes || enable_static=yes
81ecdfbb
RW
11596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11597$as_echo "$enable_static" >&6; }
d7040cdb
SE
11598
11599
11600
11601
11602fi
11603ac_ext=c
11604ac_cpp='$CPP $CPPFLAGS'
11605ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11606ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11607ac_compiler_gnu=$ac_cv_c_compiler_gnu
11608
11609CC="$lt_save_CC"
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
81ecdfbb 11623 ac_config_commands="$ac_config_commands libtool"
ce3c775b
NC
11624
11625
11626
11627
11628# Only expand once:
11629
11630
11631
5691d22d 11632
81ecdfbb
RW
11633# Check whether --enable-plugins was given.
11634if test "${enable_plugins+set}" = set; then :
11635 enableval=$enable_plugins; case "${enableval}" in
ce3c775b
NC
11636 yes | "") plugins=yes ;;
11637 no) plugins=no ;;
11638 *) plugins=yes ;;
11639 esac
11640else
11641 plugins=no
81ecdfbb 11642fi
ce3c775b
NC
11643
11644
5691d22d 11645
81ecdfbb 11646 if test "$plugins" = "yes"; then
ce3c775b
NC
11647 PLUGINS_TRUE=
11648 PLUGINS_FALSE='#'
11649else
11650 PLUGINS_TRUE='#'
11651 PLUGINS_FALSE=
11652fi
11653
11654
11655if test "$plugins" = "yes"; then
11656 if test "$enable_dlopen" != "yes" ; then
81ecdfbb
RW
11657 as_fn_error "
11658 Building BFD with plugin support requires a host that supports -ldl." "$LINENO" 5
ce3c775b
NC
11659 fi
11660 enable_targets="$enable_targets plugin"
11661fi
11662
11663case "${target}" in
11664 sparc-*-solaris*|i[3-7]86-*-solaris*)
11665 # On native 32bit sparc and ia32 solaris, large-file and procfs support
11666 # are mutually exclusive; and without procfs support, the elf module
11667 # cannot provide certain routines such as elfcore_write_prpsinfo
11668 # or elfcore_write_prstatus. So unless the user explicitly requested
11669 # large-file support through the --enable-largefile switch, disable
11670 # large-file support in favor of procfs support.
11671 if test "${target}" = "${host}" -a "$enable_largefile" != 'yes'; then
11672 if test "$plugins" = "no"; then
11673 enable_largefile="no"
11674 fi
11675 fi
11676 ;;
11677esac
11678
81ecdfbb
RW
11679# Check whether --enable-largefile was given.
11680if test "${enable_largefile+set}" = set; then :
11681 enableval=$enable_largefile;
11682fi
ce3c775b 11683
ce3c775b
NC
11684if test "$enable_largefile" != no; then
11685
81ecdfbb
RW
11686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
11687$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
11688if test "${ac_cv_sys_largefile_CC+set}" = set; then :
11689 $as_echo_n "(cached) " >&6
ce3c775b
NC
11690else
11691 ac_cv_sys_largefile_CC=no
11692 if test "$GCC" != yes; then
11693 ac_save_CC=$CC
11694 while :; do
81ecdfbb
RW
11695 # IRIX 6.2 and later do not support large files by default,
11696 # so use the C compiler's -n32 option if that helps.
11697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce3c775b
NC
11698/* end confdefs.h. */
11699#include <sys/types.h>
11700 /* Check that off_t can represent 2**63 - 1 correctly.
11701 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11702 since some C++ compilers masquerading as C compilers
11703 incorrectly reject 9223372036854775807. */
11704#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11705 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11706 && LARGE_OFF_T % 2147483647 == 1)
11707 ? 1 : -1];
11708int
11709main ()
11710{
11711
11712 ;
11713 return 0;
11714}
11715_ACEOF
81ecdfbb 11716 if ac_fn_c_try_compile "$LINENO"; then :
ce3c775b 11717 break
ce3c775b 11718fi
81ecdfbb
RW
11719rm -f core conftest.err conftest.$ac_objext
11720 CC="$CC -n32"
11721 if ac_fn_c_try_compile "$LINENO"; then :
ce3c775b 11722 ac_cv_sys_largefile_CC=' -n32'; break
ce3c775b 11723fi
81ecdfbb 11724rm -f core conftest.err conftest.$ac_objext
ce3c775b
NC
11725 break
11726 done
11727 CC=$ac_save_CC
11728 rm -f conftest.$ac_ext
11729 fi
11730fi
81ecdfbb
RW
11731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
11732$as_echo "$ac_cv_sys_largefile_CC" >&6; }
ce3c775b
NC
11733 if test "$ac_cv_sys_largefile_CC" != no; then
11734 CC=$CC$ac_cv_sys_largefile_CC
11735 fi
11736
81ecdfbb
RW
11737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
11738$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
11739if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
11740 $as_echo_n "(cached) " >&6
ce3c775b
NC
11741else
11742 while :; do
81ecdfbb 11743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce3c775b
NC
11744/* end confdefs.h. */
11745#include <sys/types.h>
11746 /* Check that off_t can represent 2**63 - 1 correctly.
11747 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11748 since some C++ compilers masquerading as C compilers
11749 incorrectly reject 9223372036854775807. */
11750#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11751 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11752 && LARGE_OFF_T % 2147483647 == 1)
11753 ? 1 : -1];
11754int
11755main ()
11756{
11757
11758 ;
11759 return 0;
11760}
11761_ACEOF
81ecdfbb
RW
11762if ac_fn_c_try_compile "$LINENO"; then :
11763 ac_cv_sys_file_offset_bits=no; break
ce3c775b 11764fi
81ecdfbb
RW
11765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce3c775b
NC
11767/* end confdefs.h. */
11768#define _FILE_OFFSET_BITS 64
11769#include <sys/types.h>
11770 /* Check that off_t can represent 2**63 - 1 correctly.
11771 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11772 since some C++ compilers masquerading as C compilers
11773 incorrectly reject 9223372036854775807. */
11774#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11775 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11776 && LARGE_OFF_T % 2147483647 == 1)
11777 ? 1 : -1];
11778int
11779main ()
11780{
11781
11782 ;
11783 return 0;
11784}
11785_ACEOF
81ecdfbb 11786if ac_fn_c_try_compile "$LINENO"; then :
ce3c775b 11787 ac_cv_sys_file_offset_bits=64; break
ce3c775b 11788fi
81ecdfbb
RW
11789rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11790 ac_cv_sys_file_offset_bits=unknown
ce3c775b
NC
11791 break
11792done
11793fi
81ecdfbb
RW
11794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
11795$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
11796case $ac_cv_sys_file_offset_bits in #(
11797 no | unknown) ;;
11798 *)
ce3c775b
NC
11799cat >>confdefs.h <<_ACEOF
11800#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
11801_ACEOF
81ecdfbb
RW
11802;;
11803esac
11804rm -rf conftest*
11805 if test $ac_cv_sys_file_offset_bits = unknown; then
11806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
11807$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
11808if test "${ac_cv_sys_large_files+set}" = set; then :
11809 $as_echo_n "(cached) " >&6
ce3c775b
NC
11810else
11811 while :; do
81ecdfbb 11812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce3c775b
NC
11813/* end confdefs.h. */
11814#include <sys/types.h>
11815 /* Check that off_t can represent 2**63 - 1 correctly.
11816 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11817 since some C++ compilers masquerading as C compilers
11818 incorrectly reject 9223372036854775807. */
11819#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11820 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11821 && LARGE_OFF_T % 2147483647 == 1)
11822 ? 1 : -1];
11823int
11824main ()
11825{
11826
11827 ;
11828 return 0;
11829}
11830_ACEOF
81ecdfbb
RW
11831if ac_fn_c_try_compile "$LINENO"; then :
11832 ac_cv_sys_large_files=no; break
ce3c775b 11833fi
81ecdfbb
RW
11834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce3c775b
NC
11836/* end confdefs.h. */
11837#define _LARGE_FILES 1
11838#include <sys/types.h>
11839 /* Check that off_t can represent 2**63 - 1 correctly.
11840 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11841 since some C++ compilers masquerading as C compilers
11842 incorrectly reject 9223372036854775807. */
11843#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11844 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11845 && LARGE_OFF_T % 2147483647 == 1)
11846 ? 1 : -1];
11847int
11848main ()
11849{
d7040cdb 11850
ce3c775b
NC
11851 ;
11852 return 0;
11853}
11854_ACEOF
81ecdfbb 11855if ac_fn_c_try_compile "$LINENO"; then :
ce3c775b 11856 ac_cv_sys_large_files=1; break
ce3c775b 11857fi
81ecdfbb
RW
11858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11859 ac_cv_sys_large_files=unknown
ce3c775b
NC
11860 break
11861done
11862fi
81ecdfbb
RW
11863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
11864$as_echo "$ac_cv_sys_large_files" >&6; }
11865case $ac_cv_sys_large_files in #(
11866 no | unknown) ;;
11867 *)
ce3c775b
NC
11868cat >>confdefs.h <<_ACEOF
11869#define _LARGE_FILES $ac_cv_sys_large_files
11870_ACEOF
81ecdfbb
RW
11871;;
11872esac
11873rm -rf conftest*
11874 fi
ce3c775b 11875fi
d7040cdb
SE
11876
11877
81ecdfbb
RW
11878# Check whether --enable-64-bit-bfd was given.
11879if test "${enable_64_bit_bfd+set}" = set; then :
11880 enableval=$enable_64_bit_bfd; case "${enableval}" in
d7040cdb
SE
11881 yes) want64=true ;;
11882 no) want64=false ;;
81ecdfbb 11883 *) as_fn_error "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
d7040cdb
SE
11884esac
11885else
11886 want64=false
81ecdfbb
RW
11887fi
11888
11889# Check whether --enable-targets was given.
11890if test "${enable_targets+set}" = set; then :
11891 enableval=$enable_targets; case "${enableval}" in
11892 yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5
d7040cdb
SE
11893 ;;
11894 no) enable_targets= ;;
11895 *) enable_targets=$enableval ;;
11896esac
81ecdfbb 11897fi
504b7d20 11898
81ecdfbb
RW
11899
11900# Check whether --with-mmap was given.
11901if test "${with_mmap+set}" = set; then :
11902 withval=$with_mmap; case "${withval}" in
d7040cdb
SE
11903 yes) want_mmap=true ;;
11904 no) want_mmap=false ;;
81ecdfbb 11905 *) as_fn_error "bad value ${withval} for BFD with-mmap option" "$LINENO" 5 ;;
20e95c23 11906esac
252b5132 11907else
d7040cdb 11908 want_mmap=false
81ecdfbb
RW
11909fi
11910
11911# Check whether --enable-secureplt was given.
11912if test "${enable_secureplt+set}" = set; then :
11913 enableval=$enable_secureplt; case "${enableval}" in
d7040cdb
SE
11914 yes) use_secureplt=true ;;
11915 no) use_secureplt=false ;;
81ecdfbb 11916 *) as_fn_error "bad value ${enableval} for secureplt option" "$LINENO" 5 ;;
d7040cdb 11917esac
252b5132 11918else
d7040cdb 11919 use_secureplt=false
81ecdfbb
RW
11920fi
11921if test $use_secureplt = true; then
d7040cdb 11922
81ecdfbb 11923$as_echo "#define USE_SECUREPLT 1" >>confdefs.h
5464f5a1 11924
252b5132 11925fi
20e95c23 11926
0d4a1476
AS
11927DEBUGDIR=${libdir}/debug
11928
81ecdfbb
RW
11929# Check whether --with-separate-debug-dir was given.
11930if test "${with_separate_debug_dir+set}" = set; then :
11931 withval=$with_separate_debug_dir; DEBUGDIR="${withval}"
11932fi
11933
0d4a1476
AS
11934
11935
504b7d20
NC
11936# Check to see if we should allow the generation of
11937# symbols with the ELF standard's STT_COMMON type.
81ecdfbb
RW
11938# Check whether --enable-elf-stt-common was given.
11939if test "${enable_elf_stt_common+set}" = set; then :
11940 enableval=$enable_elf_stt_common; case "${enableval}" in
504b7d20
NC
11941 yes) want_elf_stt_common=true ;;
11942 no) want_elf_stt_common=false ;;
81ecdfbb 11943 *) as_fn_error "bad value ${enableval} for ELF STT_COMMON option" "$LINENO" 5 ;;
504b7d20
NC
11944 esac
11945else
11946 # We have to choose a default behaviour. For native builds we could
8bc9c892
NC
11947# test whether the loader supports the STT_COMMON type, but that would
11948# mean that built binaries could not be exported to older systems where
11949# the loader does not support it. So by default we always choose to
11950# disable this feature.
504b7d20 11951 want_elf_stt_common=false
81ecdfbb
RW
11952fi
11953if test $want_elf_stt_common = true; then
504b7d20 11954
81ecdfbb 11955$as_echo "#define USE_STT_COMMON 1" >>confdefs.h
504b7d20
NC
11956
11957fi
11958
11959
d7040cdb 11960
81ecdfbb
RW
11961# Check whether --with-pkgversion was given.
11962if test "${with_pkgversion+set}" = set; then :
11963 withval=$with_pkgversion; case "$withval" in
11964 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
d7040cdb
SE
11965 no) PKGVERSION= ;;
11966 *) PKGVERSION="($withval) " ;;
11967 esac
252b5132 11968else
d7040cdb 11969 PKGVERSION="(GNU Binutils) "
252b5132 11970
81ecdfbb
RW
11971fi
11972
20e95c23
DJ
11973
11974
5464f5a1 11975
20e95c23 11976
81ecdfbb
RW
11977# Check whether --with-bugurl was given.
11978if test "${with_bugurl+set}" = set; then :
11979 withval=$with_bugurl; case "$withval" in
11980 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
d7040cdb
SE
11981 no) BUGURL=
11982 ;;
11983 *) BUGURL="$withval"
11984 ;;
11985 esac
252b5132 11986else
d7040cdb
SE
11987 BUGURL="http://www.sourceware.org/bugzilla/"
11988
81ecdfbb
RW
11989fi
11990
d7040cdb
SE
11991 case ${BUGURL} in
11992 "")
11993 REPORT_BUGS_TO=
11994 REPORT_BUGS_TEXI=
20e95c23
DJ
11995 ;;
11996 *)
d7040cdb
SE
11997 REPORT_BUGS_TO="<$BUGURL>"
11998 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
20e95c23 11999 ;;
d7040cdb
SE
12000 esac;
12001
12002
12003
12004
12005
12006GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
12007
81ecdfbb
RW
12008# Check whether --enable-werror was given.
12009if test "${enable_werror+set}" = set; then :
12010 enableval=$enable_werror; case "${enableval}" in
d7040cdb
SE
12011 yes | y) ERROR_ON_WARNING="yes" ;;
12012 no | n) ERROR_ON_WARNING="no" ;;
81ecdfbb 12013 *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
d7040cdb 12014 esac
81ecdfbb
RW
12015fi
12016
d7040cdb 12017
bb8541b9
L
12018# Enable -Wno-format by default when using gcc on mingw
12019case "${host}" in
12020 *-*-mingw32*)
12021 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
12022 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
12023 fi
12024 ;;
12025 *) ;;
12026esac
12027
d7040cdb
SE
12028# Enable -Werror by default when using gcc
12029if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
12030 ERROR_ON_WARNING=yes
12031fi
12032
12033NO_WERROR=
12034if test "${ERROR_ON_WARNING}" = yes ; then
12035 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
12036 NO_WERROR="-Wno-error"
12037fi
12038
12039if test "${GCC}" = yes ; then
12040 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
12041fi
12042
81ecdfbb
RW
12043# Check whether --enable-build-warnings was given.
12044if test "${enable_build_warnings+set}" = set; then :
12045 enableval=$enable_build_warnings; case "${enableval}" in
d7040cdb
SE
12046 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
12047 no) if test "${GCC}" = yes ; then
12048 WARN_CFLAGS="-w"
12049 fi;;
12050 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
12051 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
12052 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
12053 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
12054 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
20e95c23 12055esac
81ecdfbb
RW
12056fi
12057
d7040cdb
SE
12058
12059if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
12060 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
20e95c23 12061fi
d7040cdb
SE
12062
12063
12064
12065
12066
81ecdfbb 12067ac_config_headers="$ac_config_headers config.h:config.in"
d7040cdb
SE
12068
12069
12070if test -z "$target" ; then
81ecdfbb 12071 as_fn_error "Unrecognized target system type; please check config.sub." "$LINENO" 5
20e95c23
DJ
12072fi
12073
81ecdfbb
RW
12074
12075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
12076$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
12077 # Check whether --enable-maintainer-mode was given.
12078if test "${enable_maintainer_mode+set}" = set; then :
12079 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
d7040cdb
SE
12080else
12081 USE_MAINTAINER_MODE=no
81ecdfbb 12082fi
20e95c23 12083
81ecdfbb
RW
12084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
12085$as_echo "$USE_MAINTAINER_MODE" >&6; }
12086 if test $USE_MAINTAINER_MODE = yes; then
d7040cdb
SE
12087 MAINTAINER_MODE_TRUE=
12088 MAINTAINER_MODE_FALSE='#'
12089else
12090 MAINTAINER_MODE_TRUE='#'
12091 MAINTAINER_MODE_FALSE=
6be7c12c 12092fi
5464f5a1 12093
d7040cdb
SE
12094 MAINT=$MAINTAINER_MODE_TRUE
12095
12096
81ecdfbb 12097 if false; then
d7040cdb
SE
12098 GENINSRC_NEVER_TRUE=
12099 GENINSRC_NEVER_FALSE='#'
20e95c23 12100else
d7040cdb
SE
12101 GENINSRC_NEVER_TRUE='#'
12102 GENINSRC_NEVER_FALSE=
5464f5a1 12103fi
5464f5a1 12104
d7040cdb
SE
12105 case ${build_alias} in
12106 "") build_noncanonical=${build} ;;
12107 *) build_noncanonical=${build_alias} ;;
20e95c23 12108esac
d7040cdb
SE
12109
12110 case ${host_alias} in
12111 "") host_noncanonical=${build_noncanonical} ;;
12112 *) host_noncanonical=${host_alias} ;;
12113esac
12114
12115 case ${target_alias} in
12116 "") target_noncanonical=${host_noncanonical} ;;
12117 *) target_noncanonical=${target_alias} ;;
12118esac
12119
81ecdfbb
RW
12120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install libbfd" >&5
12121$as_echo_n "checking whether to install libbfd... " >&6; }
12122 # Check whether --enable-install-libbfd was given.
12123if test "${enable_install_libbfd+set}" = set; then :
12124 enableval=$enable_install_libbfd; install_libbfd_p=$enableval
252b5132 12125else
d7040cdb
SE
12126 if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
12127 install_libbfd_p=yes
12128 else
12129 install_libbfd_p=no
12130 fi
81ecdfbb 12131fi
d7040cdb 12132
81ecdfbb
RW
12133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $install_libbfd_p" >&5
12134$as_echo "$install_libbfd_p" >&6; }
12135 if test $install_libbfd_p = yes; then
d7040cdb
SE
12136 INSTALL_LIBBFD_TRUE=
12137 INSTALL_LIBBFD_FALSE='#'
12138else
12139 INSTALL_LIBBFD_TRUE='#'
12140 INSTALL_LIBBFD_FALSE=
5464f5a1 12141fi
5464f5a1 12142
d7040cdb 12143 # Need _noncanonical variables for this.
5464f5a1 12144
5464f5a1 12145
d7040cdb
SE
12146
12147
12148 # libbfd.a is a host library containing target dependent code
12149 bfdlibdir='$(libdir)'
12150 bfdincludedir='$(includedir)'
12151 if test "${host}" != "${target}"; then
12152 bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
12153 bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
20e95c23 12154 fi
6be7c12c 12155
5464f5a1 12156
5464f5a1
NN
12157
12158
5464f5a1 12159
ac48eca1 12160
573e8a1c
RW
12161
12162
d7040cdb
SE
12163host64=false
12164target64=false
12165bfd_default_target_size=32
252b5132 12166
d7040cdb 12167# host stuff:
20e95c23 12168
ec68b083 12169ALL_LINGUAS="fr tr ja es sv da zh_CN ro rw vi fi id ru"
d7040cdb
SE
12170# If we haven't got the data from the intl directory,
12171# assume NLS is disabled.
12172USE_NLS=no
12173LIBINTL=
12174LIBINTL_DEP=
12175INCINTL=
12176XGETTEXT=
12177GMSGFMT=
12178POSUB=
12179
12180if test -f ../intl/config.intl; then
12181 . ../intl/config.intl
252b5132 12182fi
81ecdfbb
RW
12183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12184$as_echo_n "checking whether NLS is requested... " >&6; }
d7040cdb 12185if test x"$USE_NLS" != xyes; then
81ecdfbb
RW
12186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12187$as_echo "no" >&6; }
d7040cdb 12188else
81ecdfbb
RW
12189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12190$as_echo "yes" >&6; }
5464f5a1 12191
81ecdfbb 12192$as_echo "#define ENABLE_NLS 1" >>confdefs.h
252b5132 12193
6be7c12c 12194
81ecdfbb
RW
12195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
12196$as_echo_n "checking for catalogs to be installed... " >&6; }
d7040cdb
SE
12197 # Look for .po and .gmo files in the source directory.
12198 CATALOGS=
12199 XLINGUAS=
12200 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12201 # If there aren't any .gmo files the shell will give us the
12202 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12203 # weeded out.
12204 case "$cat" in *\**)
12205 continue;;
12206 esac
12207 # The quadruple backslash is collapsed to a double backslash
12208 # by the backticks, then collapsed again by the double quotes,
12209 # leaving us with one backslash in the sed expression (right
12210 # before the dot that mustn't act as a wildcard).
12211 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
12212 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
12213 # The user is allowed to set LINGUAS to a list of languages to
12214 # install catalogs for. If it's empty that means "all of them."
12215 if test "x$LINGUAS" = x; then
12216 CATALOGS="$CATALOGS $cat"
12217 XLINGUAS="$XLINGUAS $lang"
12218 else
12219 case "$LINGUAS" in *$lang*)
12220 CATALOGS="$CATALOGS $cat"
12221 XLINGUAS="$XLINGUAS $lang"
12222 ;;
12223 esac
12224 fi
12225 done
12226 LINGUAS="$XLINGUAS"
81ecdfbb
RW
12227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
12228$as_echo "$LINGUAS" >&6; }
d7040cdb 12229
252b5132 12230
d7040cdb 12231 DATADIRNAME=share
252b5132 12232
d7040cdb 12233 INSTOBJEXT=.mo
5464f5a1 12234
d7040cdb 12235 GENCAT=gencat
20e95c23 12236
d7040cdb 12237 CATOBJEXT=.gmo
5464f5a1 12238
20e95c23 12239fi
5464f5a1 12240
d7040cdb
SE
12241 MKINSTALLDIRS=
12242 if test -n "$ac_aux_dir"; then
12243 case "$ac_aux_dir" in
12244 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
12245 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
12246 esac
12247 fi
12248 if test -z "$MKINSTALLDIRS"; then
12249 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5464f5a1 12250 fi
5464f5a1 12251
5464f5a1 12252
d7040cdb 12253
81ecdfbb
RW
12254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12255$as_echo_n "checking whether NLS is requested... " >&6; }
12256 # Check whether --enable-nls was given.
12257if test "${enable_nls+set}" = set; then :
12258 enableval=$enable_nls; USE_NLS=$enableval
252b5132 12259else
d7040cdb 12260 USE_NLS=yes
81ecdfbb
RW
12261fi
12262
12263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
12264$as_echo "$USE_NLS" >&6; }
5464f5a1 12265
252b5132 12266
5464f5a1 12267
252b5132 12268
d7040cdb
SE
12269
12270
12271# Prepare PATH_SEPARATOR.
12272# The user is always right.
12273if test "${PATH_SEPARATOR+set}" != set; then
12274 echo "#! /bin/sh" >conf$$.sh
12275 echo "exit 0" >>conf$$.sh
12276 chmod +x conf$$.sh
12277 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12278 PATH_SEPARATOR=';'
20e95c23 12279 else
d7040cdb 12280 PATH_SEPARATOR=:
20e95c23 12281 fi
d7040cdb
SE
12282 rm -f conf$$.sh
12283fi
12284
12285# Find out how to test for executable files. Don't use a zero-byte file,
12286# as systems may use methods other than mode bits to determine executability.
12287cat >conf$$.file <<_ASEOF
12288#! /bin/sh
12289exit 0
12290_ASEOF
12291chmod +x conf$$.file
12292if test -x conf$$.file >/dev/null 2>&1; then
12293 ac_executable_p="test -x"
20e95c23 12294else
d7040cdb 12295 ac_executable_p="test -f"
20e95c23 12296fi
d7040cdb 12297rm -f conf$$.file
5464f5a1 12298
d7040cdb
SE
12299# Extract the first word of "msgfmt", so it can be a program name with args.
12300set dummy msgfmt; ac_word=$2
81ecdfbb
RW
12301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12302$as_echo_n "checking for $ac_word... " >&6; }
12303if test "${ac_cv_path_MSGFMT+set}" = set; then :
12304 $as_echo_n "(cached) " >&6
d7040cdb
SE
12305else
12306 case "$MSGFMT" in
12307 [\\/]* | ?:[\\/]*)
12308 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12309 ;;
12310 *)
12311 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12312 for ac_dir in $PATH; do
12313 IFS="$ac_save_IFS"
12314 test -z "$ac_dir" && ac_dir=.
12315 for ac_exec_ext in '' $ac_executable_extensions; do
12316 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12317 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
12318 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12319 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
12320 break 2
12321 fi
12322 fi
12323 done
12324 done
12325 IFS="$ac_save_IFS"
12326 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
12327 ;;
12328esac
5464f5a1 12329fi
d7040cdb
SE
12330MSGFMT="$ac_cv_path_MSGFMT"
12331if test "$MSGFMT" != ":"; then
81ecdfbb
RW
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
12333$as_echo "$MSGFMT" >&6; }
20e95c23 12334else
81ecdfbb
RW
12335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12336$as_echo "no" >&6; }
252b5132 12337fi
d7040cdb
SE
12338
12339 # Extract the first word of "gmsgfmt", so it can be a program name with args.
12340set dummy gmsgfmt; ac_word=$2
81ecdfbb
RW
12341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12342$as_echo_n "checking for $ac_word... " >&6; }
12343if test "${ac_cv_path_GMSGFMT+set}" = set; then :
12344 $as_echo_n "(cached) " >&6
252b5132 12345else
d7040cdb
SE
12346 case $GMSGFMT in
12347 [\\/]* | ?:[\\/]*)
12348 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12349 ;;
12350 *)
12351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12352for as_dir in $PATH
12353do
12354 IFS=$as_save_IFS
12355 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12356 for ac_exec_ext in '' $ac_executable_extensions; do
12357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 12358 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
12360 break 2
12361 fi
12362done
81ecdfbb
RW
12363 done
12364IFS=$as_save_IFS
5464f5a1 12365
d7040cdb
SE
12366 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12367 ;;
12368esac
252b5132 12369fi
d7040cdb 12370GMSGFMT=$ac_cv_path_GMSGFMT
d7040cdb 12371if test -n "$GMSGFMT"; then
81ecdfbb
RW
12372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
12373$as_echo "$GMSGFMT" >&6; }
252b5132 12374else
81ecdfbb
RW
12375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12376$as_echo "no" >&6; }
252b5132
RH
12377fi
12378
20e95c23
DJ
12379
12380
81ecdfbb 12381
d7040cdb
SE
12382# Prepare PATH_SEPARATOR.
12383# The user is always right.
12384if test "${PATH_SEPARATOR+set}" != set; then
12385 echo "#! /bin/sh" >conf$$.sh
12386 echo "exit 0" >>conf$$.sh
12387 chmod +x conf$$.sh
12388 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12389 PATH_SEPARATOR=';'
12390 else
12391 PATH_SEPARATOR=:
12392 fi
12393 rm -f conf$$.sh
252b5132 12394fi
20e95c23 12395
d7040cdb
SE
12396# Find out how to test for executable files. Don't use a zero-byte file,
12397# as systems may use methods other than mode bits to determine executability.
12398cat >conf$$.file <<_ASEOF
12399#! /bin/sh
12400exit 0
12401_ASEOF
12402chmod +x conf$$.file
12403if test -x conf$$.file >/dev/null 2>&1; then
12404 ac_executable_p="test -x"
12405else
12406 ac_executable_p="test -f"
12407fi
12408rm -f conf$$.file
252b5132 12409
d7040cdb
SE
12410# Extract the first word of "xgettext", so it can be a program name with args.
12411set dummy xgettext; ac_word=$2
81ecdfbb
RW
12412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12413$as_echo_n "checking for $ac_word... " >&6; }
12414if test "${ac_cv_path_XGETTEXT+set}" = set; then :
12415 $as_echo_n "(cached) " >&6
20e95c23 12416else
d7040cdb
SE
12417 case "$XGETTEXT" in
12418 [\\/]* | ?:[\\/]*)
12419 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12420 ;;
12421 *)
12422 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12423 for ac_dir in $PATH; do
12424 IFS="$ac_save_IFS"
12425 test -z "$ac_dir" && ac_dir=.
12426 for ac_exec_ext in '' $ac_executable_extensions; do
12427 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12428 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12429 (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
12430 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
12431 break 2
12432 fi
12433 fi
12434 done
12435 done
12436 IFS="$ac_save_IFS"
12437 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12438 ;;
12439esac
12440fi
12441XGETTEXT="$ac_cv_path_XGETTEXT"
12442if test "$XGETTEXT" != ":"; then
81ecdfbb
RW
12443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
12444$as_echo "$XGETTEXT" >&6; }
252b5132 12445else
81ecdfbb
RW
12446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12447$as_echo "no" >&6; }
252b5132
RH
12448fi
12449
d7040cdb 12450 rm -f messages.po
5464f5a1 12451
252b5132 12452
d7040cdb
SE
12453# Prepare PATH_SEPARATOR.
12454# The user is always right.
12455if test "${PATH_SEPARATOR+set}" != set; then
12456 echo "#! /bin/sh" >conf$$.sh
12457 echo "exit 0" >>conf$$.sh
12458 chmod +x conf$$.sh
12459 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12460 PATH_SEPARATOR=';'
12461 else
12462 PATH_SEPARATOR=:
12463 fi
12464 rm -f conf$$.sh
252b5132
RH
12465fi
12466
d7040cdb
SE
12467# Find out how to test for executable files. Don't use a zero-byte file,
12468# as systems may use methods other than mode bits to determine executability.
12469cat >conf$$.file <<_ASEOF
12470#! /bin/sh
12471exit 0
12472_ASEOF
12473chmod +x conf$$.file
12474if test -x conf$$.file >/dev/null 2>&1; then
12475 ac_executable_p="test -x"
5464f5a1 12476else
d7040cdb 12477 ac_executable_p="test -f"
20e95c23 12478fi
d7040cdb 12479rm -f conf$$.file
5464f5a1 12480
d7040cdb
SE
12481# Extract the first word of "msgmerge", so it can be a program name with args.
12482set dummy msgmerge; ac_word=$2
81ecdfbb
RW
12483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12484$as_echo_n "checking for $ac_word... " >&6; }
12485if test "${ac_cv_path_MSGMERGE+set}" = set; then :
12486 $as_echo_n "(cached) " >&6
d7040cdb
SE
12487else
12488 case "$MSGMERGE" in
12489 [\\/]* | ?:[\\/]*)
12490 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12491 ;;
12492 *)
12493 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12494 for ac_dir in $PATH; do
12495 IFS="$ac_save_IFS"
12496 test -z "$ac_dir" && ac_dir=.
12497 for ac_exec_ext in '' $ac_executable_extensions; do
12498 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12499 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
12500 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
12501 break 2
12502 fi
12503 fi
12504 done
12505 done
12506 IFS="$ac_save_IFS"
12507 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12508 ;;
12509esac
5464f5a1 12510fi
d7040cdb
SE
12511MSGMERGE="$ac_cv_path_MSGMERGE"
12512if test "$MSGMERGE" != ":"; then
81ecdfbb
RW
12513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
12514$as_echo "$MSGMERGE" >&6; }
20e95c23 12515else
81ecdfbb
RW
12516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12517$as_echo "no" >&6; }
d7040cdb 12518fi
20e95c23 12519
5464f5a1 12520
d7040cdb
SE
12521 if test "$GMSGFMT" != ":"; then
12522 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
12523 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12524 : ;
12525 else
12526 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
81ecdfbb
RW
12527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
12528$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
d7040cdb
SE
12529 GMSGFMT=":"
12530 fi
12531 fi
252b5132 12532
d7040cdb
SE
12533 if test "$XGETTEXT" != ":"; then
12534 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12535 (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
12536 : ;
12537 else
81ecdfbb
RW
12538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
12539$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
d7040cdb
SE
12540 XGETTEXT=":"
12541 fi
12542 rm -f messages.po
12543 fi
6be7c12c 12544
81ecdfbb 12545 ac_config_commands="$ac_config_commands default-1"
5464f5a1 12546
252b5132 12547
5464f5a1 12548
d7040cdb
SE
12549# Permit host specific settings.
12550. ${srcdir}/configure.host
12551
12552
252b5132 12553
252b5132 12554
d7040cdb 12555BFD_HOST_64BIT_LONG=0
d2df793a 12556BFD_HOST_64BIT_LONG_LONG=0
d7040cdb
SE
12557BFD_HOST_64_BIT_DEFINED=0
12558BFD_HOST_64_BIT=
12559BFD_HOST_U_64_BIT=
d2df793a 12560BFD_HOSTPTR_T="unsigned long"
6be7c12c 12561
81ecdfbb
RW
12562# The cast to long int works around a bug in the HP C Compiler
12563# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12564# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12565# This bug is HP SR number 8606223364.
12566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12567$as_echo_n "checking size of long long... " >&6; }
12568if test "${ac_cv_sizeof_long_long+set}" = set; then :
12569 $as_echo_n "(cached) " >&6
6726e1ea 12570else
81ecdfbb
RW
12571 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
12572
12573else
12574 if test "$ac_cv_type_long_long" = yes; then
12575 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12576$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12577{ as_fn_set_status 77
12578as_fn_error "cannot compute sizeof (long long)
12579See \`config.log' for more details." "$LINENO" 5; }; }
12580 else
12581 ac_cv_sizeof_long_long=0
12582 fi
12583fi
12584
12585fi
12586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
12587$as_echo "$ac_cv_sizeof_long_long" >&6; }
12588
12589
12590
12591cat >>confdefs.h <<_ACEOF
12592#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5464f5a1 12593_ACEOF
81ecdfbb
RW
12594
12595
12596# The cast to long int works around a bug in the HP C Compiler
12597# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12598# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12599# This bug is HP SR number 8606223364.
12600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
12601$as_echo_n "checking size of void *... " >&6; }
12602if test "${ac_cv_sizeof_void_p+set}" = set; then :
12603 $as_echo_n "(cached) " >&6
6726e1ea 12604else
81ecdfbb 12605 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5464f5a1 12606
81ecdfbb
RW
12607else
12608 if test "$ac_cv_type_void_p" = yes; then
12609 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12610$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12611{ as_fn_set_status 77
12612as_fn_error "cannot compute sizeof (void *)
12613See \`config.log' for more details." "$LINENO" 5; }; }
12614 else
12615 ac_cv_sizeof_void_p=0
12616 fi
6726e1ea 12617fi
81ecdfbb 12618
6726e1ea 12619fi
81ecdfbb
RW
12620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
12621$as_echo "$ac_cv_sizeof_void_p" >&6; }
6726e1ea 12622
6726e1ea 12623
2ba49b59 12624
81ecdfbb
RW
12625cat >>confdefs.h <<_ACEOF
12626#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5464f5a1 12627_ACEOF
81ecdfbb
RW
12628
12629
12630# The cast to long int works around a bug in the HP C Compiler
12631# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12632# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12633# This bug is HP SR number 8606223364.
12634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12635$as_echo_n "checking size of long... " >&6; }
12636if test "${ac_cv_sizeof_long+set}" = set; then :
12637 $as_echo_n "(cached) " >&6
6726e1ea 12638else
81ecdfbb 12639 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5464f5a1 12640
252b5132 12641else
81ecdfbb
RW
12642 if test "$ac_cv_type_long" = yes; then
12643 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12644$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12645{ as_fn_set_status 77
12646as_fn_error "cannot compute sizeof (long)
12647See \`config.log' for more details." "$LINENO" 5; }; }
12648 else
12649 ac_cv_sizeof_long=0
12650 fi
12651fi
5464f5a1 12652
81ecdfbb
RW
12653fi
12654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12655$as_echo "$ac_cv_sizeof_long" >&6; }
2ba49b59 12656
81ecdfbb
RW
12657
12658
12659cat >>confdefs.h <<_ACEOF
12660#define SIZEOF_LONG $ac_cv_sizeof_long
5464f5a1 12661_ACEOF
2ba49b59 12662
2ba49b59 12663
81ecdfbb
RW
12664
12665if test "x${ac_cv_sizeof_void_p}" = "x8"; then
12666 host64=true
252b5132 12667fi
5464f5a1 12668
81ecdfbb
RW
12669if test "x${ac_cv_sizeof_long}" = "x8"; then
12670 BFD_HOST_64BIT_LONG=1
12671 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long"
12672 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long"
12673elif test "x${ac_cv_sizeof_long_long}" = "x8"; then
12674 BFD_HOST_64BIT_LONG_LONG=1
12675 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long"
12676 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long"
12677 if test "x${ac_cv_sizeof_void_p}" = "x8"; then
12678 BFD_HOSTPTR_T="unsigned long long"
12679 fi
252b5132 12680fi
81ecdfbb
RW
12681
12682if test -n "${HOST_64BIT_TYPE}" -a -n "${HOST_U_64BIT_TYPE}"; then
12683 BFD_HOST_64_BIT_DEFINED=1
12684 BFD_HOST_64_BIT="${HOST_64BIT_TYPE}"
12685 BFD_HOST_U_64_BIT="${HOST_U_64BIT_TYPE}"
2ba49b59 12686fi
5464f5a1 12687
5464f5a1 12688
2ba49b59 12689
2ba49b59 12690
5464f5a1 12691
81ecdfbb
RW
12692
12693
12694
12695# Put a plausible default for CC_FOR_BUILD in Makefile.
12696if test -z "$CC_FOR_BUILD"; then
12697 if test "x$cross_compiling" = "xno"; then
12698 CC_FOR_BUILD='$(CC)'
12699 else
12700 CC_FOR_BUILD=gcc
12701 fi
2ba49b59 12702fi
81ecdfbb
RW
12703
12704# Also set EXEEXT_FOR_BUILD.
12705if test "x$cross_compiling" = "xno"; then
12706 EXEEXT_FOR_BUILD='$(EXEEXT)'
12707else
12708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build system executable suffix" >&5
12709$as_echo_n "checking for build system executable suffix... " >&6; }
12710if test "${bfd_cv_build_exeext+set}" = set; then :
12711 $as_echo_n "(cached) " >&6
6be7c12c 12712else
81ecdfbb
RW
12713 rm -f conftest*
12714 echo 'int main () { return 0; }' > conftest.c
12715 bfd_cv_build_exeext=
12716 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
12717 for file in conftest.*; do
12718 case $file in
12719 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
12720 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
12721 esac
12722 done
12723 rm -f conftest*
12724 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
5464f5a1 12725fi
81ecdfbb
RW
12726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_build_exeext" >&5
12727$as_echo "$bfd_cv_build_exeext" >&6; }
12728 EXEEXT_FOR_BUILD=""
12729 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
5464f5a1 12730fi
5464f5a1 12731
5464f5a1 12732
81ecdfbb
RW
12733for ac_header in alloca.h stddef.h string.h strings.h stdlib.h time.h unistd.h
12734do :
12735 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12736ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12737eval as_val=\$$as_ac_Header
12738 if test "x$as_val" = x""yes; then :
12739 cat >>confdefs.h <<_ACEOF
12740#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
d2df793a 12741_ACEOF
d2df793a 12742
d2df793a 12743fi
d2df793a 12744
81ecdfbb 12745done
d2df793a 12746
81ecdfbb
RW
12747for ac_header in fcntl.h sys/file.h sys/time.h sys/stat.h
12748do :
12749 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12750ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12751eval as_val=\$$as_ac_Header
12752 if test "x$as_val" = x""yes; then :
12753 cat >>confdefs.h <<_ACEOF
12754#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
d2df793a 12755_ACEOF
d2df793a 12756
d2df793a 12757fi
d2df793a 12758
81ecdfbb 12759done
d2df793a 12760
d2df793a 12761
d2df793a 12762
81ecdfbb
RW
12763inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
12764
12765acx_cv_header_stdint=stddef.h
12766acx_cv_header_stdint_kind="(already complete)"
12767for i in stdint.h $inttype_headers; do
12768 unset ac_cv_type_uintptr_t
12769 unset ac_cv_type_uintmax_t
12770 unset ac_cv_type_int_least32_t
12771 unset ac_cv_type_int_fast32_t
12772 unset ac_cv_type_uint64_t
12773 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
12774 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
12775#include <$i>
12776"
12777if test "x$ac_cv_type_uintmax_t" = x""yes; then :
12778 acx_cv_header_stdint=$i
d2df793a 12779else
81ecdfbb
RW
12780 continue
12781fi
12782
12783 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
12784#include <$i>
12785"
12786if test "x$ac_cv_type_uintptr_t" = x""yes; then :
d2df793a 12787
81ecdfbb
RW
12788else
12789 acx_cv_header_stdint_kind="(mostly complete)"
d2df793a 12790fi
81ecdfbb
RW
12791
12792 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
12793#include <$i>
12794"
12795if test "x$ac_cv_type_int_least32_t" = x""yes; then :
12796
12797else
12798 acx_cv_header_stdint_kind="(mostly complete)"
d2df793a 12799fi
d2df793a 12800
81ecdfbb
RW
12801 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
12802#include <$i>
12803"
12804if test "x$ac_cv_type_int_fast32_t" = x""yes; then :
12805
d2df793a 12806else
81ecdfbb
RW
12807 acx_cv_header_stdint_kind="(mostly complete)"
12808fi
12809
12810 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
12811#include <$i>
12812"
12813if test "x$ac_cv_type_uint64_t" = x""yes; then :
d2df793a 12814
81ecdfbb
RW
12815else
12816 acx_cv_header_stdint_kind="(lacks uint64_t)"
d2df793a 12817fi
81ecdfbb
RW
12818
12819 break
d2df793a 12820done
81ecdfbb
RW
12821if test "$acx_cv_header_stdint" = stddef.h; then
12822 acx_cv_header_stdint_kind="(lacks uintmax_t)"
12823 for i in stdint.h $inttype_headers; do
12824 unset ac_cv_type_uintptr_t
12825 unset ac_cv_type_uint32_t
12826 unset ac_cv_type_uint64_t
12827 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
12828 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
12829#include <$i>
12830"
12831if test "x$ac_cv_type_uint32_t" = x""yes; then :
12832 acx_cv_header_stdint=$i
d2df793a 12833else
81ecdfbb
RW
12834 continue
12835fi
d2df793a 12836
81ecdfbb
RW
12837 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
12838#include <$i>
12839"
12840if test "x$ac_cv_type_uint64_t" = x""yes; then :
d2df793a 12841
81ecdfbb
RW
12842fi
12843
12844 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
12845#include <$i>
12846"
12847if test "x$ac_cv_type_uintptr_t" = x""yes; then :
12848
12849fi
12850
12851 break
12852 done
12853fi
12854if test "$acx_cv_header_stdint" = stddef.h; then
12855 acx_cv_header_stdint_kind="(u_intXX_t style)"
12856 for i in sys/types.h $inttype_headers; do
12857 unset ac_cv_type_u_int32_t
12858 unset ac_cv_type_u_int64_t
12859 $as_echo_n "looking for u_intXX_t types in $i, " >&6
12860 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
12861#include <$i>
12862"
12863if test "x$ac_cv_type_u_int32_t" = x""yes; then :
12864 acx_cv_header_stdint=$i
d2df793a 12865else
81ecdfbb
RW
12866 continue
12867fi
12868
12869 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
12870#include <$i>
12871"
12872if test "x$ac_cv_type_u_int64_t" = x""yes; then :
d2df793a 12873
d2df793a 12874fi
81ecdfbb
RW
12875
12876 break
12877 done
d2df793a 12878fi
81ecdfbb
RW
12879if test "$acx_cv_header_stdint" = stddef.h; then
12880 acx_cv_header_stdint_kind="(using manual detection)"
d2df793a 12881fi
81ecdfbb
RW
12882
12883test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
12884test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
12885test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
12886test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
12887test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
12888
12889# ----------------- Summarize what we found so far
12890
12891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in bfd_stdint.h" >&5
12892$as_echo_n "checking what to include in bfd_stdint.h... " >&6; }
12893
12894case `$as_basename -- bfd_stdint.h ||
12895$as_expr X/bfd_stdint.h : '.*/\([^/][^/]*\)/*$' \| \
12896 Xbfd_stdint.h : 'X\(//\)$' \| \
12897 Xbfd_stdint.h : 'X\(/\)' \| . 2>/dev/null ||
12898$as_echo X/bfd_stdint.h |
12899 sed '/^.*\/\([^/][^/]*\)\/*$/{
12900 s//\1/
12901 q
12902 }
12903 /^X\/\(\/\/\)$/{
12904 s//\1/
12905 q
12906 }
12907 /^X\/\(\/\).*/{
12908 s//\1/
12909 q
12910 }
12911 s/.*/./; q'` in
12912 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
12913$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
12914 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
12915$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
12916 *) ;;
12917esac
12918
12919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
12920$as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
12921
12922# ----------------- done included file, check C basic types --------
12923
12924# Lacking an uintptr_t? Test size of void *
12925case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
12926 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
12927# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12928# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12929# This bug is HP SR number 8606223364.
12930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
12931$as_echo_n "checking size of void *... " >&6; }
12932if test "${ac_cv_sizeof_void_p+set}" = set; then :
12933 $as_echo_n "(cached) " >&6
12934else
12935 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
12936
d2df793a 12937else
81ecdfbb
RW
12938 if test "$ac_cv_type_void_p" = yes; then
12939 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12940$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12941{ as_fn_set_status 77
12942as_fn_error "cannot compute sizeof (void *)
12943See \`config.log' for more details." "$LINENO" 5; }; }
12944 else
12945 ac_cv_sizeof_void_p=0
12946 fi
d2df793a 12947fi
81ecdfbb 12948
d2df793a 12949fi
81ecdfbb
RW
12950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
12951$as_echo "$ac_cv_sizeof_void_p" >&6; }
12952
12953
12954
d2df793a
NC
12955cat >>confdefs.h <<_ACEOF
12956#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
12957_ACEOF
12958
81ecdfbb
RW
12959 ;;
12960esac
d2df793a 12961
81ecdfbb
RW
12962# Lacking an uint64_t? Test size of long
12963case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
12964 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
12965# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12966# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12967# This bug is HP SR number 8606223364.
12968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12969$as_echo_n "checking size of long... " >&6; }
12970if test "${ac_cv_sizeof_long+set}" = set; then :
12971 $as_echo_n "(cached) " >&6
252b5132 12972else
81ecdfbb 12973 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5464f5a1 12974
81ecdfbb
RW
12975else
12976 if test "$ac_cv_type_long" = yes; then
12977 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12978$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12979{ as_fn_set_status 77
12980as_fn_error "cannot compute sizeof (long)
12981See \`config.log' for more details." "$LINENO" 5; }; }
12982 else
12983 ac_cv_sizeof_long=0
12984 fi
252b5132 12985fi
81ecdfbb 12986
252b5132 12987fi
81ecdfbb
RW
12988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12989$as_echo "$ac_cv_sizeof_long" >&6; }
5464f5a1 12990
2ba49b59 12991
2ba49b59 12992
81ecdfbb
RW
12993cat >>confdefs.h <<_ACEOF
12994#define SIZEOF_LONG $ac_cv_sizeof_long
5464f5a1 12995_ACEOF
81ecdfbb
RW
12996
12997 ;;
12998esac
12999
13000if test $acx_cv_header_stdint = stddef.h; then
13001 # Lacking a good header? Test size of everything and deduce all types.
13002 # The cast to long int works around a bug in the HP C Compiler
13003# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13004# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13005# This bug is HP SR number 8606223364.
13006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
13007$as_echo_n "checking size of int... " >&6; }
13008if test "${ac_cv_sizeof_int+set}" = set; then :
13009 $as_echo_n "(cached) " >&6
5464f5a1 13010else
81ecdfbb 13011 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5464f5a1 13012
2ba49b59 13013else
81ecdfbb
RW
13014 if test "$ac_cv_type_int" = yes; then
13015 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13016$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13017{ as_fn_set_status 77
13018as_fn_error "cannot compute sizeof (int)
13019See \`config.log' for more details." "$LINENO" 5; }; }
13020 else
13021 ac_cv_sizeof_int=0
13022 fi
13023fi
2ba49b59 13024
81ecdfbb
RW
13025fi
13026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
13027$as_echo "$ac_cv_sizeof_int" >&6; }
2ba49b59 13028
2ba49b59 13029
81ecdfbb
RW
13030
13031cat >>confdefs.h <<_ACEOF
13032#define SIZEOF_INT $ac_cv_sizeof_int
5464f5a1 13033_ACEOF
5464f5a1 13034
81ecdfbb
RW
13035
13036 # The cast to long int works around a bug in the HP C Compiler
13037# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13038# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13039# This bug is HP SR number 8606223364.
13040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
13041$as_echo_n "checking size of short... " >&6; }
13042if test "${ac_cv_sizeof_short+set}" = set; then :
13043 $as_echo_n "(cached) " >&6
2ba49b59 13044else
81ecdfbb 13045 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
2ba49b59 13046
81ecdfbb
RW
13047else
13048 if test "$ac_cv_type_short" = yes; then
13049 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13050$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13051{ as_fn_set_status 77
13052as_fn_error "cannot compute sizeof (short)
13053See \`config.log' for more details." "$LINENO" 5; }; }
13054 else
13055 ac_cv_sizeof_short=0
13056 fi
2ba49b59 13057fi
81ecdfbb 13058
2ba49b59 13059fi
81ecdfbb
RW
13060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
13061$as_echo "$ac_cv_sizeof_short" >&6; }
13062
13063
13064
13065cat >>confdefs.h <<_ACEOF
13066#define SIZEOF_SHORT $ac_cv_sizeof_short
5464f5a1 13067_ACEOF
2ba49b59 13068
2ba49b59 13069
81ecdfbb
RW
13070 # The cast to long int works around a bug in the HP C Compiler
13071# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13072# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13073# This bug is HP SR number 8606223364.
13074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
13075$as_echo_n "checking size of char... " >&6; }
13076if test "${ac_cv_sizeof_char+set}" = set; then :
13077 $as_echo_n "(cached) " >&6
2e0fbf77 13078else
81ecdfbb 13079 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
2e0fbf77 13080
2ba49b59 13081else
81ecdfbb
RW
13082 if test "$ac_cv_type_char" = yes; then
13083 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13084$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13085{ as_fn_set_status 77
13086as_fn_error "cannot compute sizeof (char)
13087See \`config.log' for more details." "$LINENO" 5; }; }
13088 else
13089 ac_cv_sizeof_char=0
13090 fi
2ba49b59 13091fi
81ecdfbb 13092
2ba49b59 13093fi
81ecdfbb
RW
13094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
13095$as_echo "$ac_cv_sizeof_char" >&6; }
13096
13097
13098
2ba49b59 13099cat >>confdefs.h <<_ACEOF
81ecdfbb 13100#define SIZEOF_CHAR $ac_cv_sizeof_char
2ba49b59
KC
13101_ACEOF
13102
13103
d2df793a 13104
81ecdfbb
RW
13105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
13106$as_echo_n "checking for type equivalent to int8_t... " >&6; }
13107 case "$ac_cv_sizeof_char" in
13108 1) acx_cv_type_int8_t=char ;;
13109 *) { as_fn_set_status please report a bug
13110as_fn_error "no 8-bit type" "$LINENO" 5; }
13111 esac
13112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
13113$as_echo "$acx_cv_type_int8_t" >&6; }
bce5e5c9 13114
81ecdfbb
RW
13115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
13116$as_echo_n "checking for type equivalent to int16_t... " >&6; }
13117 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
13118 2:*) acx_cv_type_int16_t=int ;;
13119 *:2) acx_cv_type_int16_t=short ;;
13120 *) { as_fn_set_status please report a bug
13121as_fn_error "no 16-bit type" "$LINENO" 5; }
13122 esac
13123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
13124$as_echo "$acx_cv_type_int16_t" >&6; }
2ba49b59 13125
81ecdfbb
RW
13126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
13127$as_echo_n "checking for type equivalent to int32_t... " >&6; }
13128 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
13129 4:*) acx_cv_type_int32_t=int ;;
13130 *:4) acx_cv_type_int32_t=long ;;
13131 *) { as_fn_set_status please report a bug
13132as_fn_error "no 32-bit type" "$LINENO" 5; }
13133 esac
13134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
13135$as_echo "$acx_cv_type_int32_t" >&6; }
2ba49b59
KC
13136fi
13137
81ecdfbb 13138# These tests are here to make the output prettier
2ba49b59 13139
81ecdfbb
RW
13140if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
13141 case "$ac_cv_sizeof_long" in
13142 8) acx_cv_type_int64_t=long ;;
13143 esac
13144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
13145$as_echo_n "checking for type equivalent to int64_t... " >&6; }
13146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
13147$as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
13148fi
2ba49b59 13149
81ecdfbb 13150# Now we can use the above types
2ba49b59 13151
81ecdfbb
RW
13152if test "$ac_cv_type_uintptr_t" != yes; then
13153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
13154$as_echo_n "checking for type equivalent to intptr_t... " >&6; }
13155 case $ac_cv_sizeof_void_p in
13156 2) acx_cv_type_intptr_t=int16_t ;;
13157 4) acx_cv_type_intptr_t=int32_t ;;
13158 8) acx_cv_type_intptr_t=int64_t ;;
13159 *) { as_fn_set_status please report a bug
13160as_fn_error "no equivalent for intptr_t" "$LINENO" 5; }
13161 esac
13162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
13163$as_echo "$acx_cv_type_intptr_t" >&6; }
13164fi
2ba49b59 13165
81ecdfbb
RW
13166# ----------------- done all checks, emit header -------------
13167ac_config_commands="$ac_config_commands bfd_stdint.h"
2ba49b59
KC
13168
13169
d2df793a 13170
81ecdfbb
RW
13171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
13172$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
13173if test "${ac_cv_header_time+set}" = set; then :
13174 $as_echo_n "(cached) " >&6
2ba49b59 13175else
81ecdfbb
RW
13176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13177/* end confdefs.h. */
13178#include <sys/types.h>
13179#include <sys/time.h>
13180#include <time.h>
13181
13182int
13183main ()
13184{
13185if ((struct tm *) 0)
13186return 0;
13187 ;
13188 return 0;
13189}
13190_ACEOF
13191if ac_fn_c_try_compile "$LINENO"; then :
13192 ac_cv_header_time=yes
2ba49b59 13193else
81ecdfbb 13194 ac_cv_header_time=no
2ba49b59 13195fi
81ecdfbb 13196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2ba49b59 13197fi
81ecdfbb
RW
13198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
13199$as_echo "$ac_cv_header_time" >&6; }
13200if test $ac_cv_header_time = yes; then
2ba49b59 13201
81ecdfbb 13202$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
2ba49b59 13203
2ba49b59 13204fi
81ecdfbb
RW
13205
13206ac_header_dirent=no
13207for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13208 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
13210$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
13211if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
13212 $as_echo_n "(cached) " >&6
2ba49b59 13213else
81ecdfbb 13214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2ba49b59 13215/* end confdefs.h. */
81ecdfbb
RW
13216#include <sys/types.h>
13217#include <$ac_hdr>
13218
13219int
13220main ()
13221{
13222if ((DIR *) 0)
13223return 0;
13224 ;
13225 return 0;
13226}
2ba49b59 13227_ACEOF
81ecdfbb
RW
13228if ac_fn_c_try_compile "$LINENO"; then :
13229 eval "$as_ac_Header=yes"
2ba49b59 13230else
81ecdfbb
RW
13231 eval "$as_ac_Header=no"
13232fi
13233rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13234fi
13235eval ac_res=\$$as_ac_Header
13236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13237$as_echo "$ac_res" >&6; }
13238eval as_val=\$$as_ac_Header
13239 if test "x$as_val" = x""yes; then :
13240 cat >>confdefs.h <<_ACEOF
13241#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13242_ACEOF
2ba49b59 13243
81ecdfbb 13244ac_header_dirent=$ac_hdr; break
2ba49b59 13245fi
2ba49b59 13246
81ecdfbb
RW
13247done
13248# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13249if test $ac_header_dirent = dirent.h; then
13250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
13251$as_echo_n "checking for library containing opendir... " >&6; }
13252if test "${ac_cv_search_opendir+set}" = set; then :
13253 $as_echo_n "(cached) " >&6
13254else
13255 ac_func_search_save_LIBS=$LIBS
13256cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2ba49b59 13257/* end confdefs.h. */
81ecdfbb
RW
13258
13259/* Override any GCC internal prototype to avoid an error.
13260 Use char because int might match the return type of a GCC
13261 builtin and then its argument prototype would still apply. */
13262#ifdef __cplusplus
13263extern "C"
13264#endif
13265char opendir ();
13266int
13267main ()
13268{
13269return opendir ();
13270 ;
13271 return 0;
13272}
2ba49b59 13273_ACEOF
81ecdfbb
RW
13274for ac_lib in '' dir; do
13275 if test -z "$ac_lib"; then
13276 ac_res="none required"
2ba49b59 13277 else
81ecdfbb
RW
13278 ac_res=-l$ac_lib
13279 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2ba49b59 13280 fi
81ecdfbb
RW
13281 if ac_fn_c_try_link "$LINENO"; then :
13282 ac_cv_search_opendir=$ac_res
2ba49b59 13283fi
81ecdfbb
RW
13284rm -f core conftest.err conftest.$ac_objext \
13285 conftest$ac_exeext
13286 if test "${ac_cv_search_opendir+set}" = set; then :
13287 break
2ba49b59 13288fi
81ecdfbb
RW
13289done
13290if test "${ac_cv_search_opendir+set}" = set; then :
2ba49b59 13291
2ba49b59 13292else
81ecdfbb 13293 ac_cv_search_opendir=no
2ba49b59 13294fi
81ecdfbb
RW
13295rm conftest.$ac_ext
13296LIBS=$ac_func_search_save_LIBS
2ba49b59 13297fi
81ecdfbb
RW
13298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
13299$as_echo "$ac_cv_search_opendir" >&6; }
13300ac_res=$ac_cv_search_opendir
13301if test "$ac_res" != no; then :
13302 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
2ba49b59
KC
13303
13304fi
13305
81ecdfbb
RW
13306else
13307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
13308$as_echo_n "checking for library containing opendir... " >&6; }
13309if test "${ac_cv_search_opendir+set}" = set; then :
13310 $as_echo_n "(cached) " >&6
13311else
13312 ac_func_search_save_LIBS=$LIBS
13313cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13314/* end confdefs.h. */
2ba49b59 13315
81ecdfbb
RW
13316/* Override any GCC internal prototype to avoid an error.
13317 Use char because int might match the return type of a GCC
13318 builtin and then its argument prototype would still apply. */
13319#ifdef __cplusplus
13320extern "C"
13321#endif
13322char opendir ();
13323int
13324main ()
13325{
13326return opendir ();
13327 ;
13328 return 0;
13329}
13330_ACEOF
13331for ac_lib in '' x; do
13332 if test -z "$ac_lib"; then
13333 ac_res="none required"
13334 else
13335 ac_res=-l$ac_lib
13336 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13337 fi
13338 if ac_fn_c_try_link "$LINENO"; then :
13339 ac_cv_search_opendir=$ac_res
13340fi
13341rm -f core conftest.err conftest.$ac_objext \
13342 conftest$ac_exeext
13343 if test "${ac_cv_search_opendir+set}" = set; then :
13344 break
13345fi
13346done
13347if test "${ac_cv_search_opendir+set}" = set; then :
2ba49b59 13348
81ecdfbb
RW
13349else
13350 ac_cv_search_opendir=no
13351fi
13352rm conftest.$ac_ext
13353LIBS=$ac_func_search_save_LIBS
13354fi
13355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
13356$as_echo "$ac_cv_search_opendir" >&6; }
13357ac_res=$ac_cv_search_opendir
13358if test "$ac_res" != no; then :
13359 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
2ba49b59 13360
81ecdfbb 13361fi
efde2f2c 13362
2ba49b59 13363fi
81ecdfbb
RW
13364
13365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
13366$as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
13367if test "${gcc_cv_header_string+set}" = set; then :
13368 $as_echo_n "(cached) " >&6
2ba49b59 13369else
81ecdfbb 13370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2ba49b59 13371/* end confdefs.h. */
81ecdfbb
RW
13372#include <string.h>
13373#include <strings.h>
13374int
13375main ()
13376{
13377
13378 ;
13379 return 0;
13380}
2ba49b59 13381_ACEOF
81ecdfbb
RW
13382if ac_fn_c_try_compile "$LINENO"; then :
13383 gcc_cv_header_string=yes
2ba49b59 13384else
81ecdfbb
RW
13385 gcc_cv_header_string=no
13386fi
13387rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13388fi
13389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
13390$as_echo "$gcc_cv_header_string" >&6; }
13391if test $gcc_cv_header_string = yes; then
13392
13393$as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
2ba49b59 13394
2ba49b59 13395fi
2ba49b59 13396
81ecdfbb
RW
13397for ac_func in fcntl getpagesize setitimer sysconf fdopen getuid getgid fileno
13398do :
13399 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13400ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13401eval as_val=\$$as_ac_var
13402 if test "x$as_val" = x""yes; then :
13403 cat >>confdefs.h <<_ACEOF
13404#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
2ba49b59 13405_ACEOF
81ecdfbb
RW
13406
13407fi
13408done
13409
13410for ac_func in strtoull
13411do :
13412 ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
13413if test "x$ac_cv_func_strtoull" = x""yes; then :
13414 cat >>confdefs.h <<_ACEOF
13415#define HAVE_STRTOULL 1
2ba49b59 13416_ACEOF
81ecdfbb
RW
13417
13418fi
13419done
13420
13421
13422ac_fn_c_check_decl "$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default"
13423if test "x$ac_cv_have_decl_basename" = x""yes; then :
13424 ac_have_decl=1
2ba49b59 13425else
81ecdfbb 13426 ac_have_decl=0
2ba49b59 13427fi
81ecdfbb
RW
13428
13429cat >>confdefs.h <<_ACEOF
13430#define HAVE_DECL_BASENAME $ac_have_decl
13431_ACEOF
13432
13433ac_fn_c_check_decl "$LINENO" "ftello" "ac_cv_have_decl_ftello" "$ac_includes_default"
13434if test "x$ac_cv_have_decl_ftello" = x""yes; then :
13435 ac_have_decl=1
2ba49b59 13436else
81ecdfbb
RW
13437 ac_have_decl=0
13438fi
2ba49b59 13439
81ecdfbb
RW
13440cat >>confdefs.h <<_ACEOF
13441#define HAVE_DECL_FTELLO $ac_have_decl
13442_ACEOF
13443
13444ac_fn_c_check_decl "$LINENO" "ftello64" "ac_cv_have_decl_ftello64" "$ac_includes_default"
13445if test "x$ac_cv_have_decl_ftello64" = x""yes; then :
13446 ac_have_decl=1
13447else
13448 ac_have_decl=0
2ba49b59 13449fi
2ba49b59 13450
81ecdfbb
RW
13451cat >>confdefs.h <<_ACEOF
13452#define HAVE_DECL_FTELLO64 $ac_have_decl
13453_ACEOF
13454
13455ac_fn_c_check_decl "$LINENO" "fseeko" "ac_cv_have_decl_fseeko" "$ac_includes_default"
13456if test "x$ac_cv_have_decl_fseeko" = x""yes; then :
13457 ac_have_decl=1
2ba49b59 13458else
81ecdfbb 13459 ac_have_decl=0
2ba49b59 13460fi
2ba49b59 13461
81ecdfbb
RW
13462cat >>confdefs.h <<_ACEOF
13463#define HAVE_DECL_FSEEKO $ac_have_decl
13464_ACEOF
13465
13466ac_fn_c_check_decl "$LINENO" "fseeko64" "ac_cv_have_decl_fseeko64" "$ac_includes_default"
13467if test "x$ac_cv_have_decl_fseeko64" = x""yes; then :
13468 ac_have_decl=1
13469else
13470 ac_have_decl=0
2ba49b59 13471fi
81ecdfbb
RW
13472
13473cat >>confdefs.h <<_ACEOF
13474#define HAVE_DECL_FSEEKO64 $ac_have_decl
2ba49b59
KC
13475_ACEOF
13476
81ecdfbb
RW
13477
13478
13479case "${host}" in
13480*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
13481
13482$as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
13483 ;;
13484esac
13485
13486ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
13487if test "x$ac_cv_have_decl_ffs" = x""yes; then :
13488 ac_have_decl=1
13489else
13490 ac_have_decl=0
2ba49b59
KC
13491fi
13492
81ecdfbb
RW
13493cat >>confdefs.h <<_ACEOF
13494#define HAVE_DECL_FFS $ac_have_decl
13495_ACEOF
2ba49b59 13496
81ecdfbb
RW
13497ac_fn_c_check_decl "$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
13498if test "x$ac_cv_have_decl_free" = x""yes; then :
13499 ac_have_decl=1
13500else
13501 ac_have_decl=0
13502fi
d5efd9fc 13503
81ecdfbb
RW
13504cat >>confdefs.h <<_ACEOF
13505#define HAVE_DECL_FREE $ac_have_decl
13506_ACEOF
d5efd9fc 13507
81ecdfbb
RW
13508ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
13509if test "x$ac_cv_have_decl_getenv" = x""yes; then :
13510 ac_have_decl=1
13511else
13512 ac_have_decl=0
13513fi
d5efd9fc 13514
81ecdfbb
RW
13515cat >>confdefs.h <<_ACEOF
13516#define HAVE_DECL_GETENV $ac_have_decl
d5efd9fc 13517_ACEOF
d5efd9fc 13518
81ecdfbb
RW
13519ac_fn_c_check_decl "$LINENO" "malloc" "ac_cv_have_decl_malloc" "$ac_includes_default"
13520if test "x$ac_cv_have_decl_malloc" = x""yes; then :
13521 ac_have_decl=1
13522else
13523 ac_have_decl=0
13524fi
13525
13526cat >>confdefs.h <<_ACEOF
13527#define HAVE_DECL_MALLOC $ac_have_decl
d5efd9fc 13528_ACEOF
81ecdfbb
RW
13529
13530ac_fn_c_check_decl "$LINENO" "realloc" "ac_cv_have_decl_realloc" "$ac_includes_default"
13531if test "x$ac_cv_have_decl_realloc" = x""yes; then :
13532 ac_have_decl=1
d5efd9fc 13533else
81ecdfbb
RW
13534 ac_have_decl=0
13535fi
13536
13537cat >>confdefs.h <<_ACEOF
13538#define HAVE_DECL_REALLOC $ac_have_decl
13539_ACEOF
d5efd9fc 13540
81ecdfbb
RW
13541ac_fn_c_check_decl "$LINENO" "stpcpy" "ac_cv_have_decl_stpcpy" "$ac_includes_default"
13542if test "x$ac_cv_have_decl_stpcpy" = x""yes; then :
13543 ac_have_decl=1
13544else
13545 ac_have_decl=0
d5efd9fc 13546fi
81ecdfbb
RW
13547
13548cat >>confdefs.h <<_ACEOF
13549#define HAVE_DECL_STPCPY $ac_have_decl
13550_ACEOF
13551
13552ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
13553if test "x$ac_cv_have_decl_strstr" = x""yes; then :
13554 ac_have_decl=1
13555else
13556 ac_have_decl=0
d5efd9fc 13557fi
81ecdfbb
RW
13558
13559cat >>confdefs.h <<_ACEOF
13560#define HAVE_DECL_STRSTR $ac_have_decl
13561_ACEOF
13562
13563ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
13564if test "x$ac_cv_have_decl_snprintf" = x""yes; then :
13565 ac_have_decl=1
d5efd9fc 13566else
81ecdfbb 13567 ac_have_decl=0
d5efd9fc
AM
13568fi
13569
81ecdfbb
RW
13570cat >>confdefs.h <<_ACEOF
13571#define HAVE_DECL_SNPRINTF $ac_have_decl
13572_ACEOF
13573
13574ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
13575if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
13576 ac_have_decl=1
d5efd9fc 13577else
81ecdfbb
RW
13578 ac_have_decl=0
13579fi
13580
13581cat >>confdefs.h <<_ACEOF
13582#define HAVE_DECL_VSNPRINTF $ac_have_decl
d5efd9fc 13583_ACEOF
81ecdfbb
RW
13584
13585
13586# Support for VMS timestamps via cross compile
13587
13588if test "$ac_cv_header_time_h" = yes; then
13589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tm.tm_gmtoff in time.h" >&5
13590$as_echo_n "checking for struct tm.tm_gmtoff in time.h... " >&6; }
13591 if test "${bfd_cv_have_time_type_member_tm_gmtoff+set}" = set; then :
13592 $as_echo_n "(cached) " >&6
13593else
13594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d5efd9fc 13595/* end confdefs.h. */
d5efd9fc 13596
81ecdfbb
RW
13597#define _BSD_SOURCE 1
13598#include <time.h>
d5efd9fc
AM
13599int
13600main ()
13601{
81ecdfbb 13602struct tm avar; void* aref = (void*) &avar.tm_gmtoff
d5efd9fc
AM
13603 ;
13604 return 0;
13605}
13606_ACEOF
81ecdfbb
RW
13607if ac_fn_c_try_compile "$LINENO"; then :
13608 bfd_cv_have_time_type_member_tm_gmtoff=yes
d5efd9fc 13609else
81ecdfbb 13610 bfd_cv_have_time_type_member_tm_gmtoff=no
d5efd9fc 13611
d5efd9fc 13612fi
81ecdfbb 13613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d5efd9fc 13614fi
81ecdfbb
RW
13615
13616 if test $bfd_cv_have_time_type_member_tm_gmtoff = yes; then
13617
13618$as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
13619
13620 fi
13621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_time_type_member_tm_gmtoff" >&5
13622$as_echo "$bfd_cv_have_time_type_member_tm_gmtoff" >&6; }
13623
d5efd9fc
AM
13624fi
13625
81ecdfbb
RW
13626if test "$ac_cv_header_sys_stat_h" = yes; then
13627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat.st_mtim.tv_sec in sys/stat.h" >&5
13628$as_echo_n "checking for struct stat.st_mtim.tv_sec in sys/stat.h... " >&6; }
13629 if test "${bfd_cv_have_sys_stat_type_member_st_mtim_tv_sec+set}" = set; then :
13630 $as_echo_n "(cached) " >&6
d5efd9fc 13631else
81ecdfbb 13632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d5efd9fc 13633/* end confdefs.h. */
d5efd9fc 13634
81ecdfbb
RW
13635#define _BSD_SOURCE 1
13636#include <sys/stat.h>
d5efd9fc
AM
13637int
13638main ()
13639{
81ecdfbb 13640struct stat avar; void* aref = (void*) &avar.st_mtim.tv_sec
d5efd9fc
AM
13641 ;
13642 return 0;
13643}
13644_ACEOF
81ecdfbb
RW
13645if ac_fn_c_try_compile "$LINENO"; then :
13646 bfd_cv_have_sys_stat_type_member_st_mtim_tv_sec=yes
d5efd9fc 13647else
81ecdfbb 13648 bfd_cv_have_sys_stat_type_member_st_mtim_tv_sec=no
d5efd9fc 13649
d5efd9fc 13650fi
81ecdfbb 13651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d5efd9fc
AM
13652fi
13653
81ecdfbb
RW
13654 if test $bfd_cv_have_sys_stat_type_member_st_mtim_tv_sec = yes; then
13655
13656$as_echo "#define HAVE_ST_MTIM_TV_SEC 1" >>confdefs.h
13657
13658 fi
13659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_stat_type_member_st_mtim_tv_sec" >&5
13660$as_echo "$bfd_cv_have_sys_stat_type_member_st_mtim_tv_sec" >&6; }
13661
13662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat.st_mtim.tv_nsec in sys/stat.h" >&5
13663$as_echo_n "checking for struct stat.st_mtim.tv_nsec in sys/stat.h... " >&6; }
13664 if test "${bfd_cv_have_sys_stat_type_member_st_mtim_tv_nsec+set}" = set; then :
13665 $as_echo_n "(cached) " >&6
d5efd9fc 13666else
81ecdfbb 13667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d5efd9fc 13668/* end confdefs.h. */
d5efd9fc 13669
81ecdfbb
RW
13670#define _BSD_SOURCE 1
13671#include <sys/stat.h>
d5efd9fc
AM
13672int
13673main ()
13674{
81ecdfbb 13675struct stat avar; void* aref = (void*) &avar.st_mtim.tv_nsec
d5efd9fc
AM
13676 ;
13677 return 0;
13678}
13679_ACEOF
81ecdfbb
RW
13680if ac_fn_c_try_compile "$LINENO"; then :
13681 bfd_cv_have_sys_stat_type_member_st_mtim_tv_nsec=yes
d5efd9fc 13682else
81ecdfbb 13683 bfd_cv_have_sys_stat_type_member_st_mtim_tv_nsec=no
d5efd9fc 13684
d5efd9fc 13685fi
81ecdfbb 13686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d5efd9fc 13687fi
81ecdfbb
RW
13688
13689 if test $bfd_cv_have_sys_stat_type_member_st_mtim_tv_nsec = yes; then
13690
13691$as_echo "#define HAVE_ST_MTIM_TV_NSEC 1" >>confdefs.h
13692
13693 fi
13694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_stat_type_member_st_mtim_tv_nsec" >&5
13695$as_echo "$bfd_cv_have_sys_stat_type_member_st_mtim_tv_nsec" >&6; }
13696
d5efd9fc
AM
13697fi
13698
81ecdfbb
RW
13699# Link in zlib if we can. This allows us to read compressed debug sections.
13700# This is used only by compress.c.
13701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5
13702$as_echo_n "checking for library containing zlibVersion... " >&6; }
13703if test "${ac_cv_search_zlibVersion+set}" = set; then :
13704 $as_echo_n "(cached) " >&6
d5efd9fc 13705else
81ecdfbb
RW
13706 ac_func_search_save_LIBS=$LIBS
13707cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d5efd9fc 13708/* end confdefs.h. */
d5efd9fc 13709
81ecdfbb
RW
13710/* Override any GCC internal prototype to avoid an error.
13711 Use char because int might match the return type of a GCC
13712 builtin and then its argument prototype would still apply. */
13713#ifdef __cplusplus
13714extern "C"
13715#endif
13716char zlibVersion ();
d5efd9fc
AM
13717int
13718main ()
13719{
81ecdfbb 13720return zlibVersion ();
d5efd9fc
AM
13721 ;
13722 return 0;
13723}
13724_ACEOF
81ecdfbb
RW
13725for ac_lib in '' z; do
13726 if test -z "$ac_lib"; then
13727 ac_res="none required"
13728 else
13729 ac_res=-l$ac_lib
13730 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13731 fi
13732 if ac_fn_c_try_link "$LINENO"; then :
13733 ac_cv_search_zlibVersion=$ac_res
d5efd9fc 13734fi
81ecdfbb
RW
13735rm -f core conftest.err conftest.$ac_objext \
13736 conftest$ac_exeext
13737 if test "${ac_cv_search_zlibVersion+set}" = set; then :
13738 break
d5efd9fc 13739fi
81ecdfbb
RW
13740done
13741if test "${ac_cv_search_zlibVersion+set}" = set; then :
13742
d5efd9fc 13743else
81ecdfbb
RW
13744 ac_cv_search_zlibVersion=no
13745fi
13746rm conftest.$ac_ext
13747LIBS=$ac_func_search_save_LIBS
13748fi
13749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5
13750$as_echo "$ac_cv_search_zlibVersion" >&6; }
13751ac_res=$ac_cv_search_zlibVersion
13752if test "$ac_res" != no; then :
13753 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13754 for ac_header in zlib.h
13755do :
13756 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
13757if test "x$ac_cv_header_zlib_h" = x""yes; then :
13758 cat >>confdefs.h <<_ACEOF
13759#define HAVE_ZLIB_H 1
13760_ACEOF
13761
d5efd9fc
AM
13762fi
13763
d5efd9fc 13764done
d5efd9fc 13765
d5efd9fc
AM
13766fi
13767
d5efd9fc 13768
81ecdfbb
RW
13769# If we are configured native, pick a core file support file.
13770COREFILE=
13771COREFLAG=
13772TRAD_HEADER=
13773if test "${target}" = "${host}"; then
13774 case "${host}" in
13775 alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
13776 COREFILE=''
13777 ;;
13778 alpha*-*-linux-*)
13779 COREFILE=trad-core.lo
13780 TRAD_HEADER='"hosts/alphalinux.h"'
13781 ;;
13782 alpha*-*-netbsd* | alpha*-*-openbsd*)
13783 COREFILE=netbsd-core.lo
13784 ;;
13785 alpha*-*-*) COREFILE=osf-core.lo ;;
13786 arm-*-freebsd* | arm-*-kfreebsd*-gnu)
13787 COREFILE='' ;;
13788 arm-*-netbsd* | arm-*-openbsd*)
13789 COREFILE=netbsd-core.lo
13790 ;;
13791 arm-*-riscix) COREFILE=trad-core.lo ;;
13792 hppa*-*-hpux*) COREFILE=hpux-core.lo ;;
13793 hppa*-*-hiux*) COREFILE=hpux-core.lo ;;
13794 hppa*-*-mpeix*) COREFILE=hpux-core.lo ;;
13795 hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo"
13796 COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
13797 hppa*-*-netbsd* | hppa*-*-openbsd*)
13798 COREFILE=netbsd-core.lo
13799 ;;
d5efd9fc 13800
81ecdfbb
RW
13801 i370-*-*)
13802 COREFILE=trad-core.lo
13803 TRAD_HEADER='"hosts/i370linux.h"'
13804 ;;
d5efd9fc 13805
81ecdfbb
RW
13806 i[3-7]86-sequent-bsd*)
13807 COREFILE=trad-core.lo
13808 TRAD_HEADER='"hosts/symmetry.h"'
13809 ;;
13810 i[3-7]86-sequent-sysv4*) ;;
13811 i[3-7]86-sequent-sysv*)
13812 COREFILE=trad-core.lo
13813 TRAD_HEADER='"hosts/symmetry.h"'
13814 ;;
13815 i[3-7]86-*-bsdi)
13816 COREFILE=
13817 ;;
13818 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*)
13819 COREFILE=trad-core.lo
13820 TRAD_HEADER='"hosts/i386bsd.h"'
13821 ;;
13822 i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu | i[3-7]86-*-dragonfly*)
13823 COREFILE=''
13824 TRAD_HEADER='"hosts/i386bsd.h"'
13825 ;;
13826 i[3-7]86-*-netbsd* | i[3-7]86-*-knetbsd*-gnu | i[3-7]86-*-openbsd*)
13827 COREFILE=netbsd-core.lo
13828 ;;
13829 i[3-7]86-esix-sysv3*)
13830 COREFILE=trad-core.lo
13831 TRAD_HEADER='"hosts/esix.h"'
13832 ;;
13833 i[3-7]86-*-sco3.2v5*)
13834 COREFILE=sco5-core.lo
13835 ;;
13836 i[3-7]86-*-sco* | i[3-7]86-*-isc*)
13837 COREFILE=trad-core.lo
13838 TRAD_HEADER='"hosts/i386sco.h"'
13839 ;;
13840 i[3-7]86-*-mach3*)
13841 COREFILE=trad-core.lo
13842 TRAD_HEADER='"hosts/i386mach3.h"'
13843 ;;
13844 i[3-7]86-*-linux-*)
13845 COREFILE=trad-core.lo
13846 TRAD_HEADER='"hosts/i386linux.h"'
13847 ;;
13848 i[3-7]86-*-isc*) COREFILE=trad-core.lo ;;
13849 i[3-7]86-*-aix*) COREFILE=aix386-core.lo ;;
13850 i860-*-mach3* | i860-*-osf1*)
13851 COREFILE=trad-core.lo
13852 TRAD_HEADER='"hosts/i860mach3.h"'
13853 ;;
13854 mips-*-netbsd* | mips*-*-openbsd*)
13855 COREFILE=netbsd-core.lo
13856 ;;
13857 mips-dec-*)
13858 COREFILE=trad-core.lo
13859 TRAD_HEADER='"hosts/decstation.h"'
13860 ;;
13861 mips-sgi-irix4*) COREFILE=irix-core.lo ;;
13862 mips-sgi-irix5*) COREFILE=irix-core.lo ;;
13863 mips-sgi-irix6*) COREFILE=irix-core.lo ;;
13864 mips-*-sysv4*) ;;
13865 mips-*-sysv* | mips-*-riscos*)
13866 COREFILE=trad-core.lo
13867 TRAD_HEADER='"hosts/riscos.h"'
13868 ;;
13869 mips-sony-bsd*)
13870 COREFILE=trad-core.lo
13871 TRAD_HEADER='"hosts/news-mips.h"'
13872 ;;
13873 m68*-bull*-sysv*)
13874 COREFILE=trad-core.lo
13875 TRAD_HEADER='"hosts/dpx2.h"'
13876 ;;
13877 m68*-hp-hpux*) COREFILE=hpux-core.lo ;;
13878 m68*-hp-bsd*)
13879 COREFILE=trad-core.lo
13880 TRAD_HEADER='"hosts/hp300bsd.h"'
13881 ;;
13882 m68*-*-linux-*)
13883 COREFILE=trad-core.lo
13884 TRAD_HEADER='"hosts/m68klinux.h"'
13885 ;;
13886 m68*-motorola-sysv*)
13887 COREFILE=trad-core.lo
13888 TRAD_HEADER='"hosts/delta68.h"'
13889 ;;
13890 m68*-sony-*)
13891 COREFILE=trad-core.lo
13892 TRAD_HEADER='"hosts/news.h"'
13893 ;;
13894 m68*-*-netbsd* | m68*-*-openbsd*)
13895 COREFILE=netbsd-core.lo
13896 ;;
13897 m68*-apple-aux*)
13898 COREFILE=trad-core.lo
13899 TRAD_HEADER='"hosts/m68kaux.h"'
13900 ;;
13901 m88*-*-sysv4*)
13902 ;;
13903 m88*-motorola-sysv*)
13904 COREFILE=ptrace-core.lo
13905 ;;
13906 m88*-*-mach3*)
13907 COREFILE=trad-core.lo
13908 TRAD_HEADER='"hosts/m88kmach3.h"'
13909 ;;
13910 m88*-*-openbsd*)
13911 COREFILE=netbsd-core.lo
13912 ;;
13913 ns32k-pc532-mach)
13914 COREFILE=trad-core.lo
13915 TRAD_HEADER='"hosts/pc532mach.h"'
13916 ;;
13917 ns32k-*-netbsd* | ns32k-*-openbsd*)
13918 COREFILE=netbsd-core.lo
13919 ;;
13920 rs6000-*-lynx*)
13921 COREFILE=lynx-core.lo
13922 ;;
13923 rs6000-*-aix[5-9].* | powerpc-*-aix[5-9].*)
13924 COREFILE=rs6000-core.lo
13925 COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE"
13926 ;;
13927 rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*)
13928 COREFILE=rs6000-core.lo
13929 COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
13930 # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE
13931 # have c_impl as a member of struct core_dumpx
13932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c_impl in struct core_dumpx" >&5
13933$as_echo_n "checking for c_impl in struct core_dumpx... " >&6; }
13934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d5efd9fc 13935/* end confdefs.h. */
81ecdfbb 13936#include <core.h>
d5efd9fc
AM
13937int
13938main ()
13939{
81ecdfbb 13940struct core_dumpx c; c.c_impl = 0;
d5efd9fc
AM
13941 ;
13942 return 0;
13943}
13944_ACEOF
81ecdfbb 13945if ac_fn_c_try_compile "$LINENO"; then :
d5efd9fc 13946
81ecdfbb 13947$as_echo "#define HAVE_ST_C_IMPL 1" >>confdefs.h
d5efd9fc 13948
81ecdfbb
RW
13949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13950$as_echo "yes" >&6; }
d5efd9fc 13951else
81ecdfbb
RW
13952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13953$as_echo "no" >&6; }
d5efd9fc 13954fi
81ecdfbb
RW
13955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13956 ;;
13957 rs6000-*-aix4*) COREFILE=rs6000-core.lo ;;
13958 rs6000-*-*) COREFILE=rs6000-core.lo ;;
13959 powerpc-*-aix4*) COREFILE=rs6000-core.lo ;;
13960 powerpc-*-aix*) COREFILE=rs6000-core.lo ;;
13961 powerpc-*-beos*) ;;
13962 powerpc-*-freebsd* | powerpc-*-kfreebsd*-gnu)
13963 COREFILE='' ;;
13964 powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;;
13965 powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;;
13966 s390*-*-*) COREFILE=trad-core.lo ;;
13967 sh*-*-netbsd* | sh*-*-openbsd*)
13968 COREFILE=netbsd-core.lo
13969 ;;
13970 sparc-*-netbsd* | sparc*-*-openbsd*)
13971 COREFILE=netbsd-core.lo
13972 ;;
13973 tahoe-*-*)
13974 COREFILE=trad-core.lo
13975 TRAD_HEADER='"hosts/tahoe.h"'
13976 ;;
13977 vax-*-netbsd* | vax-*-openbsd*)
13978 COREFILE=netbsd-core.lo
13979 ;;
13980 vax-*-ultrix2*)
13981 COREFILE=trad-core.lo
13982 TRAD_HEADER='"hosts/vaxult2.h"'
13983 ;;
13984 vax-*-ultrix*)
13985 COREFILE=trad-core.lo
13986 TRAD_HEADER='"hosts/vaxult2.h"'
13987 ;;
13988 vax-*-linux-*)
13989 COREFILE=trad-core.lo
13990 TRAD_HEADER='"hosts/vaxlinux.h"'
13991 ;;
13992 vax-*-*)
13993 COREFILE=trad-core.lo
13994 TRAD_HEADER='"hosts/vaxbsd.h"'
13995 ;;
13996 x86_64-*-netbsd* | x86_64-*-openbsd*)
13997 COREFILE=netbsd-core.lo
13998 ;;
13999 esac
14000
14001 case "$COREFILE" in
14002 aix386-core.lo) COREFLAG=-DAIX386_CORE ;;
14003 hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;;
14004 hpux-core.lo) COREFLAG=-DHPUX_CORE ;;
14005 irix-core.lo) COREFLAG=-DIRIX_CORE ;;
14006 lynx-core.lo) COREFLAG=-DLYNX_CORE ;;
14007 netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;;
14008 osf-core.lo) COREFLAG=-DOSF_CORE ;;
14009 ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;;
14010 rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;;
14011 sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;;
14012 trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;;
14013 esac
14014
14015 # ELF corefile support has several flavors, but all of
14016 # them use something called <sys/procfs.h>
14017 for ac_header in sys/procfs.h
14018do :
14019 ac_fn_c_check_header_mongrel "$LINENO" "sys/procfs.h" "ac_cv_header_sys_procfs_h" "$ac_includes_default"
14020if test "x$ac_cv_header_sys_procfs_h" = x""yes; then :
14021 cat >>confdefs.h <<_ACEOF
14022#define HAVE_SYS_PROCFS_H 1
14023_ACEOF
14024
d5efd9fc
AM
14025fi
14026
81ecdfbb
RW
14027done
14028
14029 if test "$ac_cv_header_sys_procfs_h" = yes; then
14030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prstatus_t in sys/procfs.h" >&5
14031$as_echo_n "checking for prstatus_t in sys/procfs.h... " >&6; }
14032 if test "${bfd_cv_have_sys_procfs_type_prstatus_t+set}" = set; then :
14033 $as_echo_n "(cached) " >&6
d5efd9fc 14034else
81ecdfbb 14035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d5efd9fc 14036/* end confdefs.h. */
d5efd9fc 14037
81ecdfbb
RW
14038#define _SYSCALL32
14039#include <sys/procfs.h>
d5efd9fc
AM
14040int
14041main ()
14042{
81ecdfbb 14043prstatus_t avar
d5efd9fc
AM
14044 ;
14045 return 0;
14046}
14047_ACEOF
81ecdfbb
RW
14048if ac_fn_c_try_compile "$LINENO"; then :
14049 bfd_cv_have_sys_procfs_type_prstatus_t=yes
d5efd9fc 14050else
81ecdfbb 14051 bfd_cv_have_sys_procfs_type_prstatus_t=no
d5efd9fc 14052
d5efd9fc 14053fi
81ecdfbb 14054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d5efd9fc
AM
14055fi
14056
81ecdfbb 14057 if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
d5efd9fc 14058
81ecdfbb 14059$as_echo "#define HAVE_PRSTATUS_T 1" >>confdefs.h
d5efd9fc 14060
81ecdfbb
RW
14061 fi
14062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prstatus_t" >&5
14063$as_echo "$bfd_cv_have_sys_procfs_type_prstatus_t" >&6; }
d5efd9fc 14064
81ecdfbb
RW
14065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prstatus32_t in sys/procfs.h" >&5
14066$as_echo_n "checking for prstatus32_t in sys/procfs.h... " >&6; }
14067 if test "${bfd_cv_have_sys_procfs_type_prstatus32_t+set}" = set; then :
14068 $as_echo_n "(cached) " >&6
d5efd9fc 14069else
81ecdfbb 14070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d5efd9fc 14071/* end confdefs.h. */
81ecdfbb
RW
14072
14073#define _SYSCALL32
14074#include <sys/procfs.h>
d5efd9fc
AM
14075int
14076main ()
14077{
81ecdfbb 14078prstatus32_t avar
d5efd9fc
AM
14079 ;
14080 return 0;
14081}
14082_ACEOF
81ecdfbb
RW
14083if ac_fn_c_try_compile "$LINENO"; then :
14084 bfd_cv_have_sys_procfs_type_prstatus32_t=yes
d5efd9fc 14085else
81ecdfbb 14086 bfd_cv_have_sys_procfs_type_prstatus32_t=no
d5efd9fc 14087
d5efd9fc 14088fi
81ecdfbb 14089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d5efd9fc 14090fi
d5efd9fc 14091
81ecdfbb
RW
14092 if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then
14093
14094$as_echo "#define HAVE_PRSTATUS32_T 1" >>confdefs.h
14095
14096 fi
14097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prstatus32_t" >&5
14098$as_echo "$bfd_cv_have_sys_procfs_type_prstatus32_t" >&6; }
14099
14100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prstatus_t.pr_who in sys/procfs.h" >&5
14101$as_echo_n "checking for prstatus_t.pr_who in sys/procfs.h... " >&6; }
14102 if test "${bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who+set}" = set; then :
14103 $as_echo_n "(cached) " >&6
d5efd9fc 14104else
81ecdfbb 14105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d5efd9fc 14106/* end confdefs.h. */
81ecdfbb
RW
14107
14108#define _SYSCALL32
14109#include <sys/procfs.h>
d5efd9fc
AM
14110int
14111main ()
14112{
81ecdfbb 14113prstatus_t avar; void* aref = (void*) &avar.pr_who
d5efd9fc
AM
14114 ;
14115 return 0;
14116}
14117_ACEOF
81ecdfbb
RW
14118if ac_fn_c_try_compile "$LINENO"; then :
14119 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes
14120else
14121 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no
14122
14123fi
14124rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14125fi
14126
14127 if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then
14128
14129$as_echo "#define HAVE_PRSTATUS_T_PR_WHO 1" >>confdefs.h
14130
14131 fi
14132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&5
14133$as_echo "$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&6; }
14134
14135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prstatus32_t.pr_who in sys/procfs.h" >&5
14136$as_echo_n "checking for prstatus32_t.pr_who in sys/procfs.h... " >&6; }
14137 if test "${bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who+set}" = set; then :
14138 $as_echo_n "(cached) " >&6
14139else
14140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d5efd9fc 14141/* end confdefs.h. */
81ecdfbb
RW
14142
14143#define _SYSCALL32
14144#include <sys/procfs.h>
d5efd9fc
AM
14145int
14146main ()
14147{
81ecdfbb 14148prstatus32_t avar; void* aref = (void*) &avar.pr_who
d5efd9fc
AM
14149 ;
14150 return 0;
14151}
14152_ACEOF
81ecdfbb
RW
14153if ac_fn_c_try_compile "$LINENO"; then :
14154 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes
d5efd9fc 14155else
81ecdfbb 14156 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no
d5efd9fc 14157
d5efd9fc 14158fi
81ecdfbb
RW
14159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14160fi
d5efd9fc 14161
81ecdfbb
RW
14162 if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then
14163
14164$as_echo "#define HAVE_PRSTATUS32_T_PR_WHO 1" >>confdefs.h
14165
14166 fi
14167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&5
14168$as_echo "$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&6; }
14169
14170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pstatus_t in sys/procfs.h" >&5
14171$as_echo_n "checking for pstatus_t in sys/procfs.h... " >&6; }
14172 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then :
14173 $as_echo_n "(cached) " >&6
14174else
14175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d5efd9fc 14176/* end confdefs.h. */
81ecdfbb
RW
14177
14178#define _SYSCALL32
14179#include <sys/procfs.h>
d5efd9fc
AM
14180int
14181main ()
14182{
81ecdfbb 14183pstatus_t avar
d5efd9fc
AM
14184 ;
14185 return 0;
14186}
14187_ACEOF
81ecdfbb
RW
14188if ac_fn_c_try_compile "$LINENO"; then :
14189 bfd_cv_have_sys_procfs_type_pstatus_t=yes
14190else
14191 bfd_cv_have_sys_procfs_type_pstatus_t=no
14192
14193fi
14194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14195fi
14196
14197 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
14198
14199$as_echo "#define HAVE_PSTATUS_T 1" >>confdefs.h
14200
14201 fi
14202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
14203$as_echo "$bfd_cv_have_sys_procfs_type_pstatus_t" >&6; }
14204
14205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pxstatus_t in sys/procfs.h" >&5
14206$as_echo_n "checking for pxstatus_t in sys/procfs.h... " >&6; }
14207 if test "${bfd_cv_have_sys_procfs_type_pxstatus_t+set}" = set; then :
14208 $as_echo_n "(cached) " >&6
14209else
14210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d5efd9fc 14211/* end confdefs.h. */
81ecdfbb
RW
14212
14213#define _SYSCALL32
14214#include <sys/procfs.h>
d5efd9fc
AM
14215int
14216main ()
14217{
81ecdfbb 14218pxstatus_t avar
d5efd9fc
AM
14219 ;
14220 return 0;
14221}
14222_ACEOF
81ecdfbb
RW
14223if ac_fn_c_try_compile "$LINENO"; then :
14224 bfd_cv_have_sys_procfs_type_pxstatus_t=yes
d5efd9fc 14225else
81ecdfbb 14226 bfd_cv_have_sys_procfs_type_pxstatus_t=no
d5efd9fc 14227
d5efd9fc 14228fi
81ecdfbb 14229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d5efd9fc 14230fi
81ecdfbb
RW
14231
14232 if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then
14233
14234$as_echo "#define HAVE_PXSTATUS_T 1" >>confdefs.h
14235
14236 fi
14237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pxstatus_t" >&5
14238$as_echo "$bfd_cv_have_sys_procfs_type_pxstatus_t" >&6; }
14239
14240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pstatus32_t in sys/procfs.h" >&5
14241$as_echo_n "checking for pstatus32_t in sys/procfs.h... " >&6; }
14242 if test "${bfd_cv_have_sys_procfs_type_pstatus32_t+set}" = set; then :
14243 $as_echo_n "(cached) " >&6
14244else
14245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d5efd9fc 14246/* end confdefs.h. */
81ecdfbb
RW
14247
14248#define _SYSCALL32
14249#include <sys/procfs.h>
d5efd9fc
AM
14250int
14251main ()
14252{
81ecdfbb 14253pstatus32_t avar
d5efd9fc
AM
14254 ;
14255 return 0;
14256}
14257_ACEOF
81ecdfbb
RW
14258if ac_fn_c_try_compile "$LINENO"; then :
14259 bfd_cv_have_sys_procfs_type_pstatus32_t=yes
d5efd9fc 14260else
81ecdfbb 14261 bfd_cv_have_sys_procfs_type_pstatus32_t=no
d5efd9fc 14262
d5efd9fc 14263fi
81ecdfbb
RW
14264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14265fi
14266
14267 if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then
14268
14269$as_echo "#define HAVE_PSTATUS32_T 1" >>confdefs.h
14270
14271 fi
14272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pstatus32_t" >&5
14273$as_echo "$bfd_cv_have_sys_procfs_type_pstatus32_t" >&6; }
14274
14275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prpsinfo_t in sys/procfs.h" >&5
14276$as_echo_n "checking for prpsinfo_t in sys/procfs.h... " >&6; }
14277 if test "${bfd_cv_have_sys_procfs_type_prpsinfo_t+set}" = set; then :
14278 $as_echo_n "(cached) " >&6
14279else
14280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d5efd9fc 14281/* end confdefs.h. */
81ecdfbb
RW
14282
14283#define _SYSCALL32
14284#include <sys/procfs.h>
d5efd9fc
AM
14285int
14286main ()
14287{
81ecdfbb 14288prpsinfo_t avar
d5efd9fc
AM
14289 ;
14290 return 0;
14291}
14292_ACEOF
81ecdfbb
RW
14293if ac_fn_c_try_compile "$LINENO"; then :
14294 bfd_cv_have_sys_procfs_type_prpsinfo_t=yes
d5efd9fc 14295else
81ecdfbb 14296 bfd_cv_have_sys_procfs_type_prpsinfo_t=no
d5efd9fc 14297
d5efd9fc 14298fi
81ecdfbb 14299rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d5efd9fc 14300fi
d5efd9fc 14301
81ecdfbb 14302 if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
d5efd9fc 14303
81ecdfbb
RW
14304$as_echo "#define HAVE_PRPSINFO_T 1" >>confdefs.h
14305
14306 fi
14307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prpsinfo_t" >&5
14308$as_echo "$bfd_cv_have_sys_procfs_type_prpsinfo_t" >&6; }
14309
14310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prpsinfo32_t in sys/procfs.h" >&5
14311$as_echo_n "checking for prpsinfo32_t in sys/procfs.h... " >&6; }
14312 if test "${bfd_cv_have_sys_procfs_type_prpsinfo32_t+set}" = set; then :
14313 $as_echo_n "(cached) " >&6
d5efd9fc 14314else
81ecdfbb 14315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d5efd9fc 14316/* end confdefs.h. */
81ecdfbb
RW
14317
14318#define _SYSCALL32
14319#include <sys/procfs.h>
d5efd9fc
AM
14320int
14321main ()
14322{
81ecdfbb 14323prpsinfo32_t avar
d5efd9fc
AM
14324 ;
14325 return 0;
14326}
14327_ACEOF
81ecdfbb
RW
14328if ac_fn_c_try_compile "$LINENO"; then :
14329 bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes
d5efd9fc 14330else
81ecdfbb 14331 bfd_cv_have_sys_procfs_type_prpsinfo32_t=no
d5efd9fc 14332
d5efd9fc 14333fi
81ecdfbb 14334rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d5efd9fc 14335fi
d5efd9fc 14336
81ecdfbb
RW
14337 if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then
14338
14339$as_echo "#define HAVE_PRPSINFO32_T 1" >>confdefs.h
14340
14341 fi
14342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&5
14343$as_echo "$bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&6; }
14344
14345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psinfo_t in sys/procfs.h" >&5
14346$as_echo_n "checking for psinfo_t in sys/procfs.h... " >&6; }
14347 if test "${bfd_cv_have_sys_procfs_type_psinfo_t+set}" = set; then :
14348 $as_echo_n "(cached) " >&6
d5efd9fc 14349else
81ecdfbb 14350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d5efd9fc 14351/* end confdefs.h. */
d5efd9fc 14352
81ecdfbb
RW
14353#define _SYSCALL32
14354#include <sys/procfs.h>
d5efd9fc
AM
14355int
14356main ()
14357{
81ecdfbb 14358psinfo_t avar
d5efd9fc
AM
14359 ;
14360 return 0;
14361}
14362_ACEOF
81ecdfbb
RW
14363if ac_fn_c_try_compile "$LINENO"; then :
14364 bfd_cv_have_sys_procfs_type_psinfo_t=yes
d5efd9fc 14365else
81ecdfbb 14366 bfd_cv_have_sys_procfs_type_psinfo_t=no
d5efd9fc 14367
d5efd9fc 14368fi
81ecdfbb
RW
14369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14370fi
d5efd9fc 14371
81ecdfbb
RW
14372 if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
14373
14374$as_echo "#define HAVE_PSINFO_T 1" >>confdefs.h
14375
14376 fi
14377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psinfo_t" >&5
14378$as_echo "$bfd_cv_have_sys_procfs_type_psinfo_t" >&6; }
14379
14380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psinfo32_t in sys/procfs.h" >&5
14381$as_echo_n "checking for psinfo32_t in sys/procfs.h... " >&6; }
14382 if test "${bfd_cv_have_sys_procfs_type_psinfo32_t+set}" = set; then :
14383 $as_echo_n "(cached) " >&6
14384else
14385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d5efd9fc 14386/* end confdefs.h. */
81ecdfbb
RW
14387
14388#define _SYSCALL32
14389#include <sys/procfs.h>
d5efd9fc
AM
14390int
14391main ()
14392{
81ecdfbb 14393psinfo32_t avar
d5efd9fc
AM
14394 ;
14395 return 0;
14396}
14397_ACEOF
81ecdfbb
RW
14398if ac_fn_c_try_compile "$LINENO"; then :
14399 bfd_cv_have_sys_procfs_type_psinfo32_t=yes
14400else
14401 bfd_cv_have_sys_procfs_type_psinfo32_t=no
14402
14403fi
14404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14405fi
14406
14407 if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then
14408
14409$as_echo "#define HAVE_PSINFO32_T 1" >>confdefs.h
14410
14411 fi
14412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psinfo32_t" >&5
14413$as_echo "$bfd_cv_have_sys_procfs_type_psinfo32_t" >&6; }
14414
14415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpstatus_t in sys/procfs.h" >&5
14416$as_echo_n "checking for lwpstatus_t in sys/procfs.h... " >&6; }
14417 if test "${bfd_cv_have_sys_procfs_type_lwpstatus_t+set}" = set; then :
14418 $as_echo_n "(cached) " >&6
14419else
14420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d5efd9fc 14421/* end confdefs.h. */
81ecdfbb
RW
14422
14423#define _SYSCALL32
14424#include <sys/procfs.h>
d5efd9fc
AM
14425int
14426main ()
14427{
81ecdfbb 14428lwpstatus_t avar
d5efd9fc
AM
14429 ;
14430 return 0;
14431}
14432_ACEOF
81ecdfbb
RW
14433if ac_fn_c_try_compile "$LINENO"; then :
14434 bfd_cv_have_sys_procfs_type_lwpstatus_t=yes
d5efd9fc 14435else
81ecdfbb 14436 bfd_cv_have_sys_procfs_type_lwpstatus_t=no
d5efd9fc 14437
d5efd9fc 14438fi
81ecdfbb 14439rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d5efd9fc 14440fi
81ecdfbb
RW
14441
14442 if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
14443
14444$as_echo "#define HAVE_LWPSTATUS_T 1" >>confdefs.h
14445
14446 fi
14447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpstatus_t" >&5
14448$as_echo "$bfd_cv_have_sys_procfs_type_lwpstatus_t" >&6; }
14449
14450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpxstatus_t in sys/procfs.h" >&5
14451$as_echo_n "checking for lwpxstatus_t in sys/procfs.h... " >&6; }
14452 if test "${bfd_cv_have_sys_procfs_type_lwpxstatus_t+set}" = set; then :
14453 $as_echo_n "(cached) " >&6
14454else
14455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d5efd9fc 14456/* end confdefs.h. */
81ecdfbb
RW
14457
14458#define _SYSCALL32
14459#include <sys/procfs.h>
d5efd9fc
AM
14460int
14461main ()
14462{
81ecdfbb 14463lwpxstatus_t avar
d5efd9fc
AM
14464 ;
14465 return 0;
14466}
14467_ACEOF
81ecdfbb
RW
14468if ac_fn_c_try_compile "$LINENO"; then :
14469 bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes
d5efd9fc 14470else
81ecdfbb 14471 bfd_cv_have_sys_procfs_type_lwpxstatus_t=no
d5efd9fc 14472
d5efd9fc 14473fi
81ecdfbb
RW
14474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14475fi
14476
14477 if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then
14478
14479$as_echo "#define HAVE_LWPXSTATUS_T 1" >>confdefs.h
14480
14481 fi
14482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&5
14483$as_echo "$bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&6; }
14484
14485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
14486$as_echo_n "checking for lwpstatus_t.pr_context in sys/procfs.h... " >&6; }
14487 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context+set}" = set; then :
14488 $as_echo_n "(cached) " >&6
d5efd9fc 14489else
81ecdfbb 14490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d5efd9fc 14491/* end confdefs.h. */
81ecdfbb
RW
14492
14493#define _SYSCALL32
14494#include <sys/procfs.h>
d5efd9fc
AM
14495int
14496main ()
14497{
81ecdfbb 14498lwpstatus_t avar; void* aref = (void*) &avar.pr_context
d5efd9fc
AM
14499 ;
14500 return 0;
14501}
14502_ACEOF
81ecdfbb
RW
14503if ac_fn_c_try_compile "$LINENO"; then :
14504 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes
d5efd9fc 14505else
81ecdfbb 14506 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no
d5efd9fc 14507
d5efd9fc 14508fi
81ecdfbb 14509rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d5efd9fc 14510fi
d5efd9fc 14511
81ecdfbb 14512 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
d5efd9fc 14513
81ecdfbb
RW
14514$as_echo "#define HAVE_LWPSTATUS_T_PR_CONTEXT 1" >>confdefs.h
14515
14516 fi
14517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&5
14518$as_echo "$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&6; }
14519
14520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
14521$as_echo_n "checking for lwpstatus_t.pr_reg in sys/procfs.h... " >&6; }
14522 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg+set}" = set; then :
14523 $as_echo_n "(cached) " >&6
d5efd9fc 14524else
81ecdfbb 14525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d5efd9fc 14526/* end confdefs.h. */
81ecdfbb
RW
14527
14528#define _SYSCALL32
14529#include <sys/procfs.h>
d5efd9fc
AM
14530int
14531main ()
14532{
81ecdfbb 14533lwpstatus_t avar; void* aref = (void*) &avar.pr_reg
d5efd9fc
AM
14534 ;
14535 return 0;
14536}
14537_ACEOF
81ecdfbb
RW
14538if ac_fn_c_try_compile "$LINENO"; then :
14539 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes
d5efd9fc 14540else
81ecdfbb 14541 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no
d5efd9fc 14542
d5efd9fc 14543fi
81ecdfbb 14544rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d5efd9fc 14545fi
d5efd9fc 14546
81ecdfbb
RW
14547 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
14548
14549$as_echo "#define HAVE_LWPSTATUS_T_PR_REG 1" >>confdefs.h
14550
14551 fi
14552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&5
14553$as_echo "$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&6; }
14554
14555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for win32_pstatus_t in sys/procfs.h" >&5
14556$as_echo_n "checking for win32_pstatus_t in sys/procfs.h... " >&6; }
14557 if test "${bfd_cv_have_sys_procfs_type_win32_pstatus_t+set}" = set; then :
14558 $as_echo_n "(cached) " >&6
d5efd9fc 14559else
81ecdfbb 14560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d5efd9fc 14561/* end confdefs.h. */
81ecdfbb
RW
14562
14563#define _SYSCALL32
14564#include <sys/procfs.h>
d5efd9fc
AM
14565int
14566main ()
14567{
81ecdfbb 14568win32_pstatus_t avar
d5efd9fc
AM
14569 ;
14570 return 0;
14571}
14572_ACEOF
81ecdfbb
RW
14573if ac_fn_c_try_compile "$LINENO"; then :
14574 bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes
d5efd9fc 14575else
81ecdfbb 14576 bfd_cv_have_sys_procfs_type_win32_pstatus_t=no
d5efd9fc 14577
d5efd9fc 14578fi
81ecdfbb
RW
14579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14580fi
d5efd9fc 14581
81ecdfbb 14582 if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then
d5efd9fc 14583
81ecdfbb 14584$as_echo "#define HAVE_WIN32_PSTATUS_T 1" >>confdefs.h
d5efd9fc 14585
81ecdfbb
RW
14586 fi
14587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&5
14588$as_echo "$bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&6; }
d5efd9fc 14589
81ecdfbb 14590 fi
d5efd9fc 14591fi
d5efd9fc 14592
d5efd9fc 14593
81ecdfbb 14594if test -n "$TRAD_HEADER"; then
d5efd9fc 14595
81ecdfbb
RW
14596cat >>confdefs.h <<_ACEOF
14597#define TRAD_HEADER $TRAD_HEADER
d5efd9fc 14598_ACEOF
d5efd9fc 14599
81ecdfbb 14600fi
d5efd9fc 14601
81ecdfbb
RW
14602# Check if linker supports --as-needed and --no-as-needed options
14603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
14604$as_echo_n "checking linker --as-needed support... " >&6; }
14605if test "${bfd_cv_ld_as_needed+set}" = set; then :
14606 $as_echo_n "(cached) " >&6
d5efd9fc 14607else
81ecdfbb
RW
14608 bfd_cv_ld_as_needed=no
14609 if $LD --help 2>/dev/null | grep as-needed > /dev/null; then
14610 bfd_cv_ld_as_needed=yes
14611 fi
d5efd9fc 14612
d5efd9fc 14613fi
81ecdfbb
RW
14614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_ld_as_needed" >&5
14615$as_echo "$bfd_cv_ld_as_needed" >&6; }
d5efd9fc 14616
81ecdfbb
RW
14617LIBM=
14618case $host in
14619*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
14620 # These system don't have libm, or don't need it
14621 ;;
14622*-ncr-sysv4.3*)
14623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
14624$as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
14625if test "${ac_cv_lib_mw__mwvalidcheckl+set}" = set; then :
14626 $as_echo_n "(cached) " >&6
d5efd9fc 14627else
81ecdfbb
RW
14628 ac_check_lib_save_LIBS=$LIBS
14629LIBS="-lmw $LIBS"
14630cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d5efd9fc 14631/* end confdefs.h. */
81ecdfbb
RW
14632
14633/* Override any GCC internal prototype to avoid an error.
14634 Use char because int might match the return type of a GCC
14635 builtin and then its argument prototype would still apply. */
14636#ifdef __cplusplus
14637extern "C"
14638#endif
14639char _mwvalidcheckl ();
d5efd9fc
AM
14640int
14641main ()
14642{
81ecdfbb 14643return _mwvalidcheckl ();
d5efd9fc
AM
14644 ;
14645 return 0;
14646}
14647_ACEOF
81ecdfbb
RW
14648if ac_fn_c_try_link "$LINENO"; then :
14649 ac_cv_lib_mw__mwvalidcheckl=yes
d5efd9fc 14650else
81ecdfbb
RW
14651 ac_cv_lib_mw__mwvalidcheckl=no
14652fi
14653rm -f core conftest.err conftest.$ac_objext \
14654 conftest$ac_exeext conftest.$ac_ext
14655LIBS=$ac_check_lib_save_LIBS
d5efd9fc 14656fi
81ecdfbb
RW
14657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
14658$as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
14659if test "x$ac_cv_lib_mw__mwvalidcheckl" = x""yes; then :
14660 LIBM="-lmw"
d5efd9fc 14661fi
d5efd9fc 14662
81ecdfbb
RW
14663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
14664$as_echo_n "checking for cos in -lm... " >&6; }
14665if test "${ac_cv_lib_m_cos+set}" = set; then :
14666 $as_echo_n "(cached) " >&6
d5efd9fc 14667else
81ecdfbb
RW
14668 ac_check_lib_save_LIBS=$LIBS
14669LIBS="-lm $LIBS"
14670cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d5efd9fc 14671/* end confdefs.h. */
d5efd9fc 14672
81ecdfbb
RW
14673/* Override any GCC internal prototype to avoid an error.
14674 Use char because int might match the return type of a GCC
14675 builtin and then its argument prototype would still apply. */
14676#ifdef __cplusplus
14677extern "C"
14678#endif
14679char cos ();
d5efd9fc
AM
14680int
14681main ()
14682{
81ecdfbb 14683return cos ();
d5efd9fc
AM
14684 ;
14685 return 0;
14686}
14687_ACEOF
81ecdfbb
RW
14688if ac_fn_c_try_link "$LINENO"; then :
14689 ac_cv_lib_m_cos=yes
d5efd9fc 14690else
81ecdfbb
RW
14691 ac_cv_lib_m_cos=no
14692fi
14693rm -f core conftest.err conftest.$ac_objext \
14694 conftest$ac_exeext conftest.$ac_ext
14695LIBS=$ac_check_lib_save_LIBS
14696fi
14697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
14698$as_echo "$ac_cv_lib_m_cos" >&6; }
14699if test "x$ac_cv_lib_m_cos" = x""yes; then :
14700 LIBM="$LIBM -lm"
d5efd9fc 14701fi
d5efd9fc 14702
81ecdfbb
RW
14703 ;;
14704*)
14705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
14706$as_echo_n "checking for cos in -lm... " >&6; }
14707if test "${ac_cv_lib_m_cos+set}" = set; then :
14708 $as_echo_n "(cached) " >&6
14709else
14710 ac_check_lib_save_LIBS=$LIBS
14711LIBS="-lm $LIBS"
14712cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d5efd9fc 14713/* end confdefs.h. */
d5efd9fc 14714
81ecdfbb
RW
14715/* Override any GCC internal prototype to avoid an error.
14716 Use char because int might match the return type of a GCC
14717 builtin and then its argument prototype would still apply. */
14718#ifdef __cplusplus
14719extern "C"
14720#endif
14721char cos ();
d5efd9fc
AM
14722int
14723main ()
14724{
81ecdfbb 14725return cos ();
d5efd9fc
AM
14726 ;
14727 return 0;
14728}
14729_ACEOF
81ecdfbb
RW
14730if ac_fn_c_try_link "$LINENO"; then :
14731 ac_cv_lib_m_cos=yes
d5efd9fc 14732else
81ecdfbb 14733 ac_cv_lib_m_cos=no
d5efd9fc 14734fi
81ecdfbb
RW
14735rm -f core conftest.err conftest.$ac_objext \
14736 conftest$ac_exeext conftest.$ac_ext
14737LIBS=$ac_check_lib_save_LIBS
d5efd9fc 14738fi
81ecdfbb
RW
14739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
14740$as_echo "$ac_cv_lib_m_cos" >&6; }
14741if test "x$ac_cv_lib_m_cos" = x""yes; then :
14742 LIBM="-lm"
d5efd9fc 14743fi
d5efd9fc 14744
81ecdfbb 14745 ;;
d5efd9fc 14746esac
d5efd9fc 14747
d5efd9fc 14748
d5efd9fc 14749
81ecdfbb
RW
14750# When building a shared libbfd, link against the pic version of libiberty
14751# so that apps that use libbfd won't need libiberty just to satisfy any
14752# libbfd references.
14753# We can't do that if a pic libiberty is unavailable since including non-pic
14754# code would insert text relocations into libbfd.
14755SHARED_LIBADD=
14756SHARED_LDFLAGS=
14757if test "$enable_shared" = "yes"; then
14758 x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'`
14759 if test -n "$x"; then
14760 SHARED_LIBADD="-L`pwd`/../libiberty/pic -liberty"
14761 fi
d5efd9fc 14762
81ecdfbb
RW
14763# More hacks to build DLLs on Windows.
14764 case "${host}" in
14765 *-*-cygwin*)
14766 SHARED_LDFLAGS="-no-undefined"
14767 SHARED_LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
14768 ;;
14769 esac
d5efd9fc 14770
81ecdfbb
RW
14771 if test -n "$SHARED_LIBADD"; then
14772 if test -n "$LIBM"; then
14773 if test x"$bfd_cv_ld_as_needed" = xyes; then
14774 # Link against libm only when needed. Put -lc, -lm inside -Wl
14775 # to stop libtool reordering these options.
14776 SHARED_LIBADD="$SHARED_LIBADD -Wl,-lc,--as-needed,`echo $LIBM | sed 's/ /,/g'`,--no-as-needed"
14777 else
14778 SHARED_LIBADD="$SHARED_LIBADD $LIBM"
14779 fi
14780 fi
14781 fi
d5efd9fc 14782fi
d5efd9fc 14783
d5efd9fc 14784
d5efd9fc 14785
81ecdfbb 14786# target stuff:
d5efd9fc 14787
81ecdfbb
RW
14788# Canonicalize the secondary target names.
14789if test -n "$enable_targets" ; then
14790 for targ in `echo $enable_targets | sed 's/,/ /g'`
14791 do
14792 result=`$ac_config_sub $targ 2>/dev/null`
14793 if test -n "$result" ; then
14794 canon_targets="$canon_targets $result"
14795 else
14796 # Allow targets that config.sub doesn't recognize, like "all".
14797 canon_targets="$canon_targets $targ"
14798 fi
14799 done
d5efd9fc 14800fi
d5efd9fc 14801
81ecdfbb
RW
14802all_targets=false
14803defvec=
14804selvecs=
14805assocvecs=
14806selarchs=
14807TDEFINES=
14808for targ in $target $canon_targets
14809do
14810 if test "x$targ" = "xall"; then
14811 all_targets=true
14812 assocvecs="$assocvecs $targ_defvec $targ_selvecs"
14813 else
14814 . $srcdir/config.bfd
14815 if test "x$targ" = "x$target"; then
14816 defvec=$targ_defvec
14817 fi
14818 selvecs="$selvecs $targ_defvec $targ_selvecs"
14819 selarchs="$selarchs $targ_archs"
14820 TDEFINES="$TDEFINES $targ_cflags"
14821 fi
14822done
d5efd9fc 14823
d5efd9fc 14824
81ecdfbb
RW
14825# This processing still needs to be done if we're to decide properly whether
14826# 64-bit support needs to be compiled in. Currently, it will be included if
14827# the default or any other explicitly requested target requires it; it
14828# will not be included on a 32-bit host if no 64-bit target is requested, and
14829# no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
14830# used.
d5efd9fc 14831
81ecdfbb
RW
14832# uniq the default and selected vectors in all the configured targets.
14833f=""
14834for i in $selvecs ; do
14835 case " $f " in
14836 *" $i "*) ;;
14837 *) f="$f $i" ;;
14838 esac
14839done
14840selvecs="$f"
d5efd9fc 14841
d5efd9fc 14842
81ecdfbb
RW
14843# uniq the associated vectors in all the configured targets.
14844f=""
14845for i in $assocvecs ; do
14846 case " $f " in
14847 *" $i "*) ;;
14848 *) f="$f $i" ;;
14849 esac
d5efd9fc 14850done
81ecdfbb 14851assocvecs="$f"
2ba49b59 14852
2ba49b59 14853
81ecdfbb
RW
14854# uniq the architectures in all the configured targets.
14855f=""
14856for i in $selarchs ; do
14857 case " $f " in
14858 *" $i "*) ;;
14859 *) f="$f $i" ;;
14860 esac
2ba49b59 14861done
81ecdfbb 14862selarchs="$f"
2ba49b59 14863
81ecdfbb
RW
14864# Target backend .o files.
14865tb=
2ba49b59 14866
81ecdfbb
RW
14867elf="elf.lo elflink.lo elf-attrs.lo elf-strtab.lo
14868 elf-eh-frame.lo dwarf1.lo"
2ba49b59 14869
81ecdfbb 14870for vec in $selvecs
49c97a80 14871do
81ecdfbb
RW
14872 target_size=32
14873 case "$vec" in
14874 # This list is alphabetized to make it easy to compare
14875 # with the two vector lists in targets.c. For the same reason,
14876 # use one entry per line, even though this leads to long lines.
14877 a_out_adobe_vec) tb="$tb aout-adobe.lo aout32.lo" ;;
14878 aix5coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
14879 aout0_big_vec) tb="$tb aout0.lo aout32.lo" ;;
14880 aout_arm_big_vec) tb="$tb aout-arm.lo aout32.lo" ;;
14881 aout_arm_little_vec) tb="$tb aout-arm.lo aout32.lo" ;;
14882 apollocoff_vec) tb="$tb coff-apollo.lo" ;;
14883 arm_epoc_pe_big_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
14884 arm_epoc_pe_little_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
14885 arm_epoc_pei_big_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
14886 arm_epoc_pei_little_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
14887 arm_wince_pe_big_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo cofflink.lo " ;;
14888 arm_wince_pe_little_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo cofflink.lo " ;;
14889 arm_wince_pei_big_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo cofflink.lo " ;;
14890 arm_wince_pei_little_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo cofflink.lo " ;;
14891 armcoff_big_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
14892 armcoff_little_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
14893 armnetbsd_vec) tb="$tb armnetbsd.lo aout32.lo" ;;
14894 armpe_big_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
14895 armpe_little_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
14896 armpei_big_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
14897 armpei_little_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
14898 b_out_vec_big_host) tb="$tb bout.lo aout32.lo" ;;
14899 b_out_vec_little_host) tb="$tb bout.lo aout32.lo" ;;
14900 bfd_pei_ia64_vec) tb="$tb pei-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
14901 bfd_elf32_am33lin_vec) tb="$tb elf32-am33lin.lo elf32.lo $elf" ;;
14902 bfd_elf32_avr_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;;
14903 bfd_elf32_bfin_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
14904 bfd_elf32_bfinfdpic_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
14905 bfd_elf32_big_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
14906 bfd_elf32_bigarc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
14907 bfd_elf32_bigarm_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
14908 bfd_elf32_bigarm_symbian_vec)
14909 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
14910 bfd_elf32_bigarm_vxworks_vec)
14911 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
14912 bfd_elf32_bigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
14913 bfd_elf32_bigmips_vxworks_vec)
14914 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
14915 bfd_elf32_cr16_vec) tb="$tb elf32-cr16.lo elf32.lo $elf" ;;
14916 bfd_elf32_cr16c_vec) tb="$tb elf32-cr16c.lo elf32.lo $elf" ;;
14917 bfd_elf32_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
14918 bfd_elf32_crx_vec) tb="$tb elf32-crx.lo elf32.lo $elf" ;;
14919 bfd_elf32_d10v_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
14920 bfd_elf32_d30v_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;;
14921 bfd_elf32_dlx_big_vec) tb="$tb elf32-dlx.lo elf32.lo $elf" ;;
14922 bfd_elf32_fr30_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;;
14923 bfd_elf32_frv_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
14924 bfd_elf32_frvfdpic_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
14925 bfd_elf32_moxie_vec) tb="$tb elf32-moxie.lo elf32.lo $elf" ;;
14926 bfd_elf32_h8300_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
14927 bfd_elf32_hppa_linux_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
14928 bfd_elf32_hppa_nbsd_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
14929 bfd_elf32_hppa_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
14930 bfd_elf32_i370_vec) tb="$tb elf32-i370.lo elf32.lo $elf" ;;
14931 bfd_elf32_i386_dragonfly_vec)
14932 tb="$tb elf32-i386.lo elf-ifunc.lo elf-vxworks.lo elf32.lo $elf" ;;
14933 bfd_elf32_i386_freebsd_vec) tb="$tb elf32-i386.lo elf-ifunc.lo elf-vxworks.lo elf32.lo $elf" ;;
14934 bfd_elf32_i386_vxworks_vec) tb="$tb elf32-i386.lo elf-ifunc.lo elf-vxworks.lo elf32.lo $elf" ;;
14935 bfd_elf32_i386_vec) tb="$tb elf32-i386.lo elf-ifunc.lo elf-vxworks.lo elf32.lo $elf" ;;
14936 bfd_elf32_i860_little_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
14937 bfd_elf32_i860_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
14938 bfd_elf32_i960_vec) tb="$tb elf32-i960.lo elf32.lo $elf" ;;
14939 bfd_elf32_ia64_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf" ;;
14940 bfd_elf32_ia64_hpux_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf";;
14941 bfd_elf32_ip2k_vec) tb="$tb elf32-ip2k.lo elf32.lo $elf" ;;
14942 bfd_elf32_iq2000_vec) tb="$tb elf32-iq2000.lo elf32.lo $elf" ;;
14943 bfd_elf32_lm32_vec) tb="$tb elf32-lm32.lo elf32.lo $elf" ;;
14944 bfd_elf32_lm32fdpic_vec) tb="$tb elf32-lm32.lo elf32.lo $elf" ;;
14945 bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
14946 bfd_elf32_littlearc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
14947 bfd_elf32_littlearm_symbian_vec)
14948 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
14949 bfd_elf32_littlearm_vxworks_vec)
14950 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
14951 bfd_elf32_littlearm_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
14952 bfd_elf32_littlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
14953 bfd_elf32_littlemips_vxworks_vec)
14954 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
14955 bfd_elf32_m32c_vec) tb="$tb elf32-m32c.lo elf32.lo $elf" ;;
14956 bfd_elf32_m32r_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
14957 bfd_elf32_m32rle_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
14958 bfd_elf32_m32rlin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
14959 bfd_elf32_m32rlelin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
14960 bfd_elf32_m68hc11_vec) tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
14961 bfd_elf32_m68hc12_vec) tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
14962 bfd_elf32_m68k_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
14963 bfd_elf32_m88k_vec) tb="$tb elf32-m88k.lo elf32.lo $elf" ;;
14964 bfd_elf32_mcore_big_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
14965 bfd_elf32_mcore_little_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
14966 bfd_elf32_mep_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;;
14967 bfd_elf32_mep_little_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;;
14968 bfd_elf32_microblaze_vec) tb="$tb elf32-microblaze.lo elf32.lo $elf" ;;
14969 bfd_elf32_mn10200_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;;
14970 bfd_elf32_mn10300_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;;
14971 bfd_elf32_mt_vec) tb="$tb elf32-mt.lo elf32.lo $elf" ;;
14972 bfd_elf32_msp430_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
14973 bfd_elf32_nbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
14974 bfd_elf32_nlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
14975 bfd_elf32_ntradbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
14976 bfd_elf32_ntradlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
14977 bfd_elf32_openrisc_vec) tb="$tb elf32-openrisc.lo elf32.lo $elf" ;;
14978 bfd_elf32_or32_big_vec) tb="$tb elf32-or32.lo elf32.lo $elf" ;;
14979 bfd_elf32_pj_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
14980 bfd_elf32_pjl_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
14981 bfd_elf32_powerpc_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
14982 bfd_elf32_powerpcle_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
14983 bfd_elf32_powerpc_vxworks_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
14984 bfd_elf32_s390_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;;
14985 bfd_elf32_bigscore_vec) tb="$tb elf32-score.lo elf32-score7.lo elf32.lo $elf"; want64=true; target_size=64;;
14986 bfd_elf32_littlescore_vec) tb="$tb elf32-score.lo elf32-score7.lo elf32.lo $elf"; want64=true; target_size=64;;
14987 # FIXME: We include cofflink.lo not because it's needed for
14988 # bfd_elf32_sh64[l]_vec, but because we include bfd_elf32_sh[l]_vec
14989 # which needs it but does not list it. Should be fixed in right place.
14990 bfd_elf32_sh64_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
14991 bfd_elf32_sh64l_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
14992 bfd_elf32_sh64lin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
14993 bfd_elf32_sh64blin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
14994 bfd_elf32_sh64lnbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" ;;
14995 bfd_elf32_sh64nbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" ;;
14996 bfd_elf32_sh_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
14997 bfd_elf32_shblin_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
14998 bfd_elf32_shl_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
14999 bfd_elf32_shl_symbian_vec) tb="$tb elf32-sh-symbian.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
15000 bfd_elf32_shlin_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
15001 bfd_elf32_shlnbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
15002 bfd_elf32_shlvxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
15003 bfd_elf32_shnbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
15004 bfd_elf32_shvxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
15005 bfd_elf32_sparc_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
15006 bfd_elf32_sparc_vxworks_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
15007 bfd_elf32_spu_vec) tb="$tb elf32-spu.lo elf32.lo $elf" ;;
15008 bfd_elf32_tradbigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
15009 bfd_elf32_tradlittlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
15010 bfd_elf32_us_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
15011 bfd_elf32_v850_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
15012 bfd_elf32_vax_vec) tb="$tb elf32-vax.lo elf32.lo $elf" ;;
15013 bfd_elf32_xstormy16_vec) tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;;
15014 bfd_elf32_xc16x_vec) tb="$tb elf32-xc16x.lo elf32.lo $elf" ;;
15015 bfd_elf32_xtensa_le_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
15016 bfd_elf32_xtensa_be_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
15017 bfd_elf64_alpha_freebsd_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
15018 bfd_elf64_alpha_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
15019 bfd_elf64_big_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
15020 bfd_elf64_bigmips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
15021 bfd_elf64_hppa_linux_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
15022 bfd_elf64_hppa_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
15023 bfd_elf64_ia64_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
15024 bfd_elf64_ia64_hpux_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
15025 bfd_elf64_ia64_little_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
15026 bfd_elf64_ia64_vms_vec) tb="$tb elf64-ia64.lo elf64.lo $elf vmsutil.lo"; target_size=64 ;;
15027 bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
15028 bfd_elf64_littlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
15029 bfd_elf64_mmix_vec) tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;;
15030 bfd_elf64_powerpc_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
15031 bfd_elf64_powerpcle_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
15032 bfd_elf64_s390_vec) tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;;
15033 bfd_elf64_sh64_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
15034 bfd_elf64_sh64l_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
15035 bfd_elf64_sh64lin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
15036 bfd_elf64_sh64blin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
15037 bfd_elf64_sh64lnbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
15038 bfd_elf64_sh64nbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
15039 bfd_elf64_sparc_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
15040 bfd_elf64_sparc_freebsd_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
15041 bfd_elf64_tradbigmips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
15042 bfd_elf64_tradlittlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
15043 bfd_elf64_x86_64_freebsd_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
15044 bfd_elf64_x86_64_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
15045 bfd_elf64_l1om_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
15046 bfd_elf64_l1om_freebsd_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
15047 bfd_mmo_vec) tb="$tb mmo.lo" target_size=64 ;;
15048 bfd_powerpc_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
15049 bfd_powerpc_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
15050 bfd_powerpcle_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
15051 bfd_powerpcle_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
15052 cris_aout_vec) tb="$tb aout-cris.lo" ;;
15053 demo_64_vec) tb="$tb demo64.lo aout64.lo"; target_size=64 ;;
15054 ecoff_big_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
15055 ecoff_biglittle_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
15056 ecoff_little_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
15057 ecoffalpha_little_vec) tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo"; target_size=64 ;;
15058 go32coff_vec) tb="$tb coff-go32.lo cofflink.lo" ;;
15059 go32stubbedcoff_vec) tb="$tb coff-stgo32.lo cofflink.lo" ;;
15060 h8300coff_vec) tb="$tb coff-h8300.lo reloc16.lo" ;;
15061 h8500coff_vec) tb="$tb coff-h8500.lo reloc16.lo" ;;
15062 host_aout_vec) tb="$tb host-aout.lo aout32.lo" ;;
15063 hp300bsd_vec) tb="$tb hp300bsd.lo aout32.lo" ;;
15064 hp300hpux_vec) tb="$tb hp300hpux.lo aout32.lo" ;;
15065 i386aout_vec) tb="$tb i386aout.lo aout32.lo" ;;
15066 i386bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;;
15067 i386coff_vec) tb="$tb coff-i386.lo cofflink.lo" ;;
15068 x86_64coff_vec) tb="$tb coff-x86_64.lo cofflink.lo"; target_size=64 ;;
15069 i386dynix_vec) tb="$tb i386dynix.lo aout32.lo" ;;
15070 i386freebsd_vec) tb="$tb i386freebsd.lo aout32.lo" ;;
15071 i386linux_vec) tb="$tb i386linux.lo aout32.lo" ;;
15072 i386lynx_aout_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
15073 i386lynx_coff_vec) tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
15074 i386mach3_vec) tb="$tb i386mach3.lo aout32.lo" ;;
15075 i386msdos_vec) tb="$tb i386msdos.lo" ;;
15076 i386netbsd_vec) tb="$tb i386netbsd.lo aout32.lo" ;;
15077 i386os9k_vec) tb="$tb i386os9k.lo aout32.lo" ;;
15078 i386pe_vec) tb="$tb pe-i386.lo peigen.lo cofflink.lo" ;;
15079 i386pei_vec) tb="$tb pei-i386.lo peigen.lo cofflink.lo" ;;
15080 x86_64pe_vec) tb="$tb pe-x86_64.lo pex64igen.lo cofflink.lo"; target_size=64 ;;
15081 x86_64pei_vec) tb="$tb pei-x86_64.lo pex64igen.lo cofflink.lo"; target_size=64 ;;
15082 i860coff_vec) tb="$tb coff-i860.lo cofflink.lo" ;;
15083 icoff_big_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
15084 icoff_little_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
15085 ieee_vec) tb="$tb ieee.lo" ;;
15086 m68k4knetbsd_vec) tb="$tb m68k4knetbsd.lo aout32.lo" ;;
15087 m68kaux_coff_vec) tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
15088 m68kcoff_vec) tb="$tb coff-m68k.lo cofflink.lo" ;;
15089 m68kcoffun_vec) tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
15090 m68klinux_vec) tb="$tb m68klinux.lo aout32.lo" ;;
15091 m68knetbsd_vec) tb="$tb m68knetbsd.lo aout32.lo" ;;
15092 m68ksysvcoff_vec) tb="$tb coff-svm68k.lo cofflink.lo" ;;
15093 m88kbcs_vec) tb="$tb coff-m88k.lo" ;;
15094 m88kmach3_vec) tb="$tb m88kmach3.lo aout32.lo" ;;
15095 m88kopenbsd_vec) tb="$tb m88kopenbsd.lo aout32.lo" ;;
15096 maxqcoff_vec) tb="$tb coff-maxq.lo" ;;
15097 mach_o_be_vec) tb="$tb mach-o.lo" ;;
15098 mach_o_le_vec) tb="$tb mach-o.lo" ;;
15099 mach_o_fat_vec) tb="$tb mach-o.lo" ;;
15100 mach_o_i386_vec) tb="$tb mach-o-i386.lo" ;;
15101 mcore_pe_big_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
15102 mcore_pe_little_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
15103 mcore_pei_big_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
15104 mcore_pei_little_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
15105 mipslpe_vec) tb="$tb pe-mips.lo peigen.lo cofflink.lo" ;;
15106 mipslpei_vec) tb="$tb pei-mips.lo peigen.lo cofflink.lo" ;;
15107 newsos3_vec) tb="$tb newsos3.lo aout32.lo" ;;
15108 nlm32_alpha_vec) tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"; target_size=64 ;;
15109 nlm32_i386_vec) tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
15110 nlm32_powerpc_vec) tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
15111 nlm32_sparc_vec) tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
15112 or32coff_big_vec) tb="$tb coff-or32.lo cofflink.lo" ;;
15113 pc532machaout_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
15114 pc532netbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
15115 pef_vec) tb="$tb pef.lo" ;;
15116 pef_xlib_vec) tb="$tb pef.lo" ;;
15117 pdp11_aout_vec) tb="$tb pdp11.lo" ;;
15118 plugin_vec) tb="$tb plugin.lo" ;;
15119 pmac_xcoff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
15120 ppcboot_vec) tb="$tb ppcboot.lo" ;;
15121 riscix_vec) tb="$tb aout32.lo riscix.lo" ;;
15122 rs6000coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
15123 rs6000coff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
15124 shcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
15125 shcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
15126 shlcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
15127 shlcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
15128 shlpe_vec) tb="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
15129 shlpei_vec) tb="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
15130 som_vec) tb="$tb som.lo" ;;
15131 sparccoff_vec) tb="$tb coff-sparc.lo" ;;
15132 sparcle_aout_vec) tb="$tb aout-sparcle.lo aout32.lo" ;;
15133 sparclinux_vec) tb="$tb sparclinux.lo aout32.lo" ;;
15134 sparclynx_aout_vec) tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
15135 sparclynx_coff_vec) tb="$tb cf-sparclynx.lo lynx-core.lo" ;;
15136 sparcnetbsd_vec) tb="$tb sparcnetbsd.lo aout32.lo" ;;
15137 sunos_big_vec) tb="$tb sunos.lo aout32.lo" ;;
15138 sym_vec) tb="$tb xsym.lo" ;;
15139 tic30_aout_vec) tb="$tb aout-tic30.lo" ;;
15140 tic30_coff_vec) tb="$tb coff-tic30.lo" ;;
15141 tic4x_coff0_vec) tb="$tb coff-tic4x.lo" ;;
15142 tic4x_coff0_beh_vec) tb="$tb coff-tic4x.lo" ;;
15143 tic4x_coff1_vec) tb="$tb coff-tic4x.lo" ;;
15144 tic4x_coff1_beh_vec) tb="$tb coff-tic4x.lo" ;;
15145 tic4x_coff2_vec) tb="$tb coff-tic4x.lo" ;;
15146 tic4x_coff2_beh_vec) tb="$tb coff-tic4x.lo" ;;
15147 tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo" ;;
15148 tic54x_coff0_vec) tb="$tb coff-tic54x.lo" ;;
15149 tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo" ;;
15150 tic54x_coff1_vec) tb="$tb coff-tic54x.lo" ;;
15151 tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo" ;;
15152 tic54x_coff2_vec) tb="$tb coff-tic54x.lo" ;;
15153 tic80coff_vec) tb="$tb coff-tic80.lo cofflink.lo" ;;
15154 vaxnetbsd_vec) tb="$tb vaxnetbsd.lo aout32.lo" ;;
15155 vax1knetbsd_vec) tb="$tb vax1knetbsd.lo aout32.lo" ;;
15156 vaxbsd_vec) tb="$tb vaxbsd.lo aout32.lo" ;;
15157 versados_vec) tb="$tb versados.lo" ;;
15158 vms_alpha_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"; target_size=64 ;;
15159 vms_vax_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;;
15160 w65_vec) tb="$tb coff-w65.lo reloc16.lo" ;;
15161 we32kcoff_vec) tb="$tb coff-we32k.lo" ;;
15162 z80coff_vec) tb="$tb coff-z80.lo reloc16.lo" ;;
15163 z8kcoff_vec) tb="$tb coff-z8k.lo reloc16.lo cofflink.lo" ;;
2ba49b59 15164
81ecdfbb
RW
15165 # These appear out of order in targets.c
15166 srec_vec) tb="$tb srec.lo" ;;
15167 symbolsrec_vec) tb="$tb srec.lo" ;;
15168 tekhex_vec) tb="$tb tekhex.lo" ;;
15169 cisco_core_big_vec) tb="$tb cisco-core.lo" ;;
15170 cisco_core_little_vec) tb="$tb cisco-core.lo" ;;
5464f5a1 15171
81ecdfbb
RW
15172 "") ;;
15173 *) as_fn_error "*** unknown target vector $vec" "$LINENO" 5 ;;
15174 esac
1012372a 15175
81ecdfbb
RW
15176 if test ${target_size} = 64; then
15177 target64=true
15178 fi
15179 if test x"${vec}" = x"${defvec}"; then
15180 bfd_default_target_size=${target_size}
15181 fi
15182done
2ba49b59 15183
81ecdfbb
RW
15184# Target architecture .o files.
15185# A couple of CPUs use shorter file names to avoid problems on DOS
15186# filesystems.
15187ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
5464f5a1 15188
81ecdfbb
RW
15189# Weed out duplicate .o files.
15190f=""
15191for i in $tb ; do
15192 case " $f " in
15193 *" $i "*) ;;
15194 *) f="$f $i" ;;
15195 esac
1012372a 15196done
81ecdfbb 15197tb="$f"
1012372a 15198
81ecdfbb
RW
15199f=""
15200for i in $ta ; do
15201 case " $f " in
15202 *" $i "*) ;;
15203 *) f="$f $i" ;;
15204 esac
15205done
15206ta="$f"
2ba49b59 15207
81ecdfbb
RW
15208bfd_backends="$tb"
15209bfd_machines="$ta"
1012372a 15210
81ecdfbb
RW
15211if test x${all_targets} = xtrue ; then
15212 bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
15213 bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
15214 selvecs=
15215 havevecs=
15216 selarchs=
15217 test -n "$assocvecs" &&
15218 assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
15219else # all_targets is true
15220 # Only set these if they will be nonempty, for the clever echo.
15221 havevecs=
15222 assocvecs=
15223 test -n "$selvecs" &&
15224 havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
15225 test -n "$selvecs" &&
15226 selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
15227 test -n "$selarchs" &&
15228 selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
15229fi # all_targets is true
15230
15231case ${host64}-${target64}-${want64} in
15232 *true*)
15233 wordsize=64
15234 bfd64_libs='$(BFD64_LIBS)'
15235 all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
15236 if test $BFD_HOST_64_BIT_DEFINED = 0; then
15237 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You have requested a 64 bit BFD configuration, but" >&5
15238$as_echo "$as_me: WARNING: You have requested a 64 bit BFD configuration, but" >&2;}
15239 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: your compiler may not have a 64 bit integral type" >&5
15240$as_echo "$as_me: WARNING: your compiler may not have a 64 bit integral type" >&2;}
15241 fi
15242 if test -n "$GCC" ; then
15243 bad_64bit_gcc=no;
15244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc version with buggy 64-bit support" >&5
15245$as_echo_n "checking for gcc version with buggy 64-bit support... " >&6; }
15246 # Add more tests for gcc versions with non-working 64-bit support here.
15247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15248/* end confdefs.h. */
15249:__GNUC__:__GNUC_MINOR__:__i386__:
15250_ACEOF
15251if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15252 $EGREP ": 2 : 91 : 1 :" >/dev/null 2>&1; then :
15253 bad_64bit_gcc=yes;
15254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes: egcs-1.1.2 on ix86 spotted" >&5
15255$as_echo "yes: egcs-1.1.2 on ix86 spotted" >&6; }
2ba49b59 15256else
81ecdfbb
RW
15257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15258$as_echo "no" >&6; }
2ba49b59 15259fi
81ecdfbb 15260rm -f conftest*
1012372a 15261
81ecdfbb
RW
15262 if test $bad_64bit_gcc = yes ; then
15263 as_fn_error "A newer version of gcc is needed for the requested 64-bit BFD configuration" "$LINENO" 5
15264 fi
15265 fi
15266 ;;
15267 false-false-false)
15268 wordsize=32
15269 all_backends='$(BFD32_BACKENDS)'
15270 ;;
15271esac
1012372a
AC
15272
15273
15274
15275
252b5132 15276
6be7c12c 15277
5464f5a1
NN
15278
15279
81ecdfbb
RW
15280if test "$plugins" = "yes"; then
15281 supports_plugins=1
5464f5a1 15282else
81ecdfbb 15283 supports_plugins=0
5464f5a1 15284fi
5464f5a1 15285
81ecdfbb
RW
15286
15287# Determine the host dependant file_ptr a.k.a. off_t type. In order
15288# prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and
15289# fseeko, long. This assumes that sizeof off_t is .ge. sizeof long.
15290# Hopefully a reasonable assumption since fseeko et.al. should be
15291# upward compatible.
15292for ac_func in ftello ftello64 fseeko fseeko64 fopen64
15293do :
15294 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15295ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15296eval as_val=\$$as_ac_var
15297 if test "x$as_val" = x""yes; then :
15298 cat >>confdefs.h <<_ACEOF
15299#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5464f5a1 15300_ACEOF
5464f5a1 15301
252b5132 15302fi
81ecdfbb 15303done
5464f5a1 15304
81ecdfbb
RW
15305if test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then
15306 # The cast to long int works around a bug in the HP C Compiler
15307# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15308# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15309# This bug is HP SR number 8606223364.
15310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
15311$as_echo_n "checking size of off_t... " >&6; }
15312if test "${ac_cv_sizeof_off_t+set}" = set; then :
15313 $as_echo_n "(cached) " >&6
6be7c12c 15314else
81ecdfbb 15315 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
5464f5a1 15316
81ecdfbb
RW
15317else
15318 if test "$ac_cv_type_off_t" = yes; then
15319 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15320$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15321{ as_fn_set_status 77
15322as_fn_error "cannot compute sizeof (off_t)
15323See \`config.log' for more details." "$LINENO" 5; }; }
15324 else
15325 ac_cv_sizeof_off_t=0
15326 fi
5464f5a1 15327fi
5464f5a1 15328
252b5132 15329fi
81ecdfbb
RW
15330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
15331$as_echo "$ac_cv_sizeof_off_t" >&6; }
5464f5a1 15332
252b5132 15333
5464f5a1 15334
81ecdfbb
RW
15335cat >>confdefs.h <<_ACEOF
15336#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
5464f5a1 15337_ACEOF
5464f5a1 15338
5464f5a1 15339
81ecdfbb
RW
15340fi
15341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking file_ptr type" >&5
15342$as_echo_n "checking file_ptr type... " >&6; }
15343bfd_file_ptr="long"
15344bfd_ufile_ptr="unsigned long"
15345if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \
15346 -o x"${ac_cv_sizeof_off_t}" = x8; then
15347 bfd_file_ptr=BFD_HOST_64_BIT
15348 bfd_ufile_ptr=BFD_HOST_U_64_BIT
15349fi
15350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_file_ptr" >&5
15351$as_echo "$bfd_file_ptr" >&6; }
15352
6be7c12c 15353
252b5132 15354
252b5132 15355
81ecdfbb
RW
15356tdefaults=""
15357test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
15358test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
15359test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'"
15360test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
15361test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
15362
15363
15364for ac_header in stdlib.h unistd.h
15365do :
15366 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15367ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15368eval as_val=\$$as_ac_Header
15369 if test "x$as_val" = x""yes; then :
15370 cat >>confdefs.h <<_ACEOF
15371#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5464f5a1 15372_ACEOF
5464f5a1 15373
5464f5a1 15374fi
81ecdfbb
RW
15375
15376done
15377
15378for ac_func in getpagesize
15379do :
15380 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
15381if test "x$ac_cv_func_getpagesize" = x""yes; then :
5464f5a1 15382 cat >>confdefs.h <<_ACEOF
81ecdfbb 15383#define HAVE_GETPAGESIZE 1
5464f5a1 15384_ACEOF
252b5132 15385
252b5132
RH
15386fi
15387done
15388
81ecdfbb
RW
15389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
15390$as_echo_n "checking for working mmap... " >&6; }
15391if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
15392 $as_echo_n "(cached) " >&6
252b5132 15393else
81ecdfbb 15394 if test "$cross_compiling" = yes; then :
252b5132
RH
15395 ac_cv_func_mmap_fixed_mapped=no
15396else
81ecdfbb 15397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5464f5a1
NN
15398/* end confdefs.h. */
15399$ac_includes_default
15400/* malloc might have been renamed as rpl_malloc. */
15401#undef malloc
6be7c12c 15402
252b5132
RH
15403/* Thanks to Mike Haertel and Jim Avera for this test.
15404 Here is a matrix of mmap possibilities:
15405 mmap private not fixed
15406 mmap private fixed at somewhere currently unmapped
15407 mmap private fixed at somewhere already mapped
15408 mmap shared not fixed
15409 mmap shared fixed at somewhere currently unmapped
15410 mmap shared fixed at somewhere already mapped
15411 For private mappings, we should verify that changes cannot be read()
15412 back from the file, nor mmap's back from the file at a different
15413 address. (There have been systems where private was not correctly
15414 implemented like the infamous i386 svr4.0, and systems where the
5464f5a1 15415 VM page cache was not coherent with the file system buffer cache
252b5132
RH
15416 like early versions of FreeBSD and possibly contemporary NetBSD.)
15417 For shared mappings, we should conversely verify that changes get
5464f5a1 15418 propagated back to all the places they're supposed to be.
252b5132
RH
15419
15420 Grep wants private fixed already mapped.
15421 The main things grep needs to know about mmap are:
15422 * does it exist and is it safe to write into the mmap'd area
15423 * how to use it (BSD variants) */
5464f5a1 15424
252b5132
RH
15425#include <fcntl.h>
15426#include <sys/mman.h>
15427
81ecdfbb 15428#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
5464f5a1
NN
15429char *malloc ();
15430#endif
6be7c12c 15431
5464f5a1 15432/* This mess was copied from the GNU getpagesize.h. */
81ecdfbb 15433#ifndef HAVE_GETPAGESIZE
252b5132 15434/* Assume that all systems that can run configure have sys/param.h. */
81ecdfbb 15435# ifndef HAVE_SYS_PARAM_H
252b5132
RH
15436# define HAVE_SYS_PARAM_H 1
15437# endif
15438
15439# ifdef _SC_PAGESIZE
15440# define getpagesize() sysconf(_SC_PAGESIZE)
15441# else /* no _SC_PAGESIZE */
81ecdfbb 15442# ifdef HAVE_SYS_PARAM_H
252b5132
RH
15443# include <sys/param.h>
15444# ifdef EXEC_PAGESIZE
15445# define getpagesize() EXEC_PAGESIZE
15446# else /* no EXEC_PAGESIZE */
15447# ifdef NBPG
15448# define getpagesize() NBPG * CLSIZE
15449# ifndef CLSIZE
15450# define CLSIZE 1
15451# endif /* no CLSIZE */
15452# else /* no NBPG */
15453# ifdef NBPC
15454# define getpagesize() NBPC
15455# else /* no NBPC */
15456# ifdef PAGESIZE
15457# define getpagesize() PAGESIZE
15458# endif /* PAGESIZE */
15459# endif /* no NBPC */
15460# endif /* no NBPG */
15461# endif /* no EXEC_PAGESIZE */
15462# else /* no HAVE_SYS_PARAM_H */
15463# define getpagesize() 8192 /* punt totally */
15464# endif /* no HAVE_SYS_PARAM_H */
15465# endif /* no _SC_PAGESIZE */
15466
5464f5a1
NN
15467#endif /* no HAVE_GETPAGESIZE */
15468
15469int
15470main ()
15471{
15472 char *data, *data2, *data3;
15473 int i, pagesize;
15474 int fd;
15475
15476 pagesize = getpagesize ();
15477
15478 /* First, make a file with some known garbage in it. */
15479 data = (char *) malloc (pagesize);
15480 if (!data)
81ecdfbb 15481 return 1;
5464f5a1
NN
15482 for (i = 0; i < pagesize; ++i)
15483 *(data + i) = rand ();
15484 umask (0);
15485 fd = creat ("conftest.mmap", 0600);
15486 if (fd < 0)
81ecdfbb 15487 return 1;
5464f5a1 15488 if (write (fd, data, pagesize) != pagesize)
81ecdfbb 15489 return 1;
5464f5a1
NN
15490 close (fd);
15491
15492 /* Next, try to mmap the file at a fixed address which already has
15493 something else allocated at it. If we can, also make sure that
15494 we see the same garbage. */
15495 fd = open ("conftest.mmap", O_RDWR);
15496 if (fd < 0)
81ecdfbb 15497 return 1;
5464f5a1
NN
15498 data2 = (char *) malloc (2 * pagesize);
15499 if (!data2)
81ecdfbb
RW
15500 return 1;
15501 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
5464f5a1
NN
15502 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
15503 MAP_PRIVATE | MAP_FIXED, fd, 0L))
81ecdfbb 15504 return 1;
5464f5a1
NN
15505 for (i = 0; i < pagesize; ++i)
15506 if (*(data + i) != *(data2 + i))
81ecdfbb 15507 return 1;
5464f5a1
NN
15508
15509 /* Finally, make sure that changes to the mapped area do not
15510 percolate back to the file as seen by read(). (This is a bug on
15511 some variants of i386 svr4.0.) */
15512 for (i = 0; i < pagesize; ++i)
15513 *(data2 + i) = *(data2 + i) + 1;
15514 data3 = (char *) malloc (pagesize);
15515 if (!data3)
81ecdfbb 15516 return 1;
5464f5a1 15517 if (read (fd, data3, pagesize) != pagesize)
81ecdfbb 15518 return 1;
5464f5a1
NN
15519 for (i = 0; i < pagesize; ++i)
15520 if (*(data + i) != *(data3 + i))
81ecdfbb 15521 return 1;
5464f5a1 15522 close (fd);
81ecdfbb 15523 return 0;
5464f5a1
NN
15524}
15525_ACEOF
81ecdfbb 15526if ac_fn_c_try_run "$LINENO"; then :
5464f5a1
NN
15527 ac_cv_func_mmap_fixed_mapped=yes
15528else
81ecdfbb 15529 ac_cv_func_mmap_fixed_mapped=no
5464f5a1 15530fi
81ecdfbb
RW
15531rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15532 conftest.$ac_objext conftest.beam conftest.$ac_ext
5464f5a1 15533fi
81ecdfbb 15534
5464f5a1 15535fi
81ecdfbb
RW
15536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
15537$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
5464f5a1
NN
15538if test $ac_cv_func_mmap_fixed_mapped = yes; then
15539
81ecdfbb 15540$as_echo "#define HAVE_MMAP 1" >>confdefs.h
5464f5a1
NN
15541
15542fi
15543rm -f conftest.mmap
15544
5464f5a1 15545for ac_func in madvise mprotect
81ecdfbb
RW
15546do :
15547 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15548ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15549eval as_val=\$$as_ac_var
15550 if test "x$as_val" = x""yes; then :
5464f5a1 15551 cat >>confdefs.h <<_ACEOF
81ecdfbb 15552#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5464f5a1
NN
15553_ACEOF
15554
15555fi
15556done
15557
15558case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
15559 true+yes )
81ecdfbb 15560$as_echo "#define USE_MMAP 1" >>confdefs.h
5464f5a1
NN
15561 ;;
15562esac
15563
15564rm -f doc/config.status
81ecdfbb 15565ac_config_files="$ac_config_files Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in"
5464f5a1 15566
20e95c23 15567
81ecdfbb 15568ac_config_commands="$ac_config_commands default"
5464f5a1 15569
108a6f8e
CD
15570
15571
15572
15573
15574
31dd3154 15575
5464f5a1
NN
15576cat >confcache <<\_ACEOF
15577# This file is a shell script that caches the results of configure
15578# tests run on this system so they can be shared between configure
15579# scripts and configure runs, see configure's option --config-cache.
15580# It is not useful on other systems. If it contains results you don't
15581# want to keep, you may remove or edit it.
15582#
15583# config.status only pays attention to the cache file if you give it
15584# the --recheck option to rerun configure.
15585#
15586# `ac_cv_env_foo' variables (set or unset) will be overridden when
15587# loading this file, other *unset* `ac_cv_foo' will be assigned the
15588# following values.
15589
15590_ACEOF
15591
15592# The following way of writing the cache mishandles newlines in values,
15593# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 15594# So, we kill variables containing newlines.
5464f5a1
NN
15595# Ultrix sh set writes to stderr and can't be redirected directly,
15596# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
15597(
15598 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15599 eval ac_val=\$$ac_var
15600 case $ac_val in #(
15601 *${as_nl}*)
15602 case $ac_var in #(
15603 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15604$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15605 esac
15606 case $ac_var in #(
15607 _ | IFS | as_nl) ;; #(
15608 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15609 *) { eval $ac_var=; unset $ac_var;} ;;
15610 esac ;;
15611 esac
15612 done
15613
5464f5a1 15614 (set) 2>&1 |
81ecdfbb
RW
15615 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15616 *${as_nl}ac_space=\ *)
15617 # `set' does not quote correctly, so add quotes: double-quote
15618 # substitution turns \\\\ into \\, and sed turns \\ into \.
5464f5a1
NN
15619 sed -n \
15620 "s/'/'\\\\''/g;
15621 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 15622 ;; #(
5464f5a1
NN
15623 *)
15624 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 15625 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5464f5a1 15626 ;;
81ecdfbb
RW
15627 esac |
15628 sort
15629) |
5464f5a1 15630 sed '
81ecdfbb 15631 /^ac_cv_env_/b end
5464f5a1 15632 t clear
81ecdfbb 15633 :clear
5464f5a1
NN
15634 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15635 t end
81ecdfbb
RW
15636 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15637 :end' >>confcache
15638if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15639 if test -w "$cache_file"; then
15640 test "x$cache_file" != "x/dev/null" &&
15641 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15642$as_echo "$as_me: updating cache $cache_file" >&6;}
5464f5a1
NN
15643 cat confcache >$cache_file
15644 else
81ecdfbb
RW
15645 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15646$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5464f5a1
NN
15647 fi
15648fi
15649rm -f confcache
15650
15651test "x$prefix" = xNONE && prefix=$ac_default_prefix
15652# Let make expand exec_prefix.
15653test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15654
5464f5a1
NN
15655DEFS=-DHAVE_CONFIG_H
15656
15657ac_libobjs=
15658ac_ltlibobjs=
15659for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15660 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
15661 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15662 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15663 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15664 # will be set to the directory where LIBOBJS objects are built.
15665 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15666 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
5464f5a1
NN
15667done
15668LIBOBJS=$ac_libobjs
15669
15670LTLIBOBJS=$ac_ltlibobjs
15671
15672
f5385ebf 15673if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
81ecdfbb
RW
15674 as_fn_error "conditional \"AMDEP\" was never defined.
15675Usually this means the macro was only invoked conditionally." "$LINENO" 5
f5385ebf
AM
15676fi
15677if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
81ecdfbb
RW
15678 as_fn_error "conditional \"am__fastdepCC\" was never defined.
15679Usually this means the macro was only invoked conditionally." "$LINENO" 5
15680fi
15681 if test -n "$EXEEXT"; then
15682 am__EXEEXT_TRUE=
15683 am__EXEEXT_FALSE='#'
15684else
15685 am__EXEEXT_TRUE='#'
15686 am__EXEEXT_FALSE=
f5385ebf 15687fi
81ecdfbb 15688
ce3c775b 15689if test -z "${PLUGINS_TRUE}" && test -z "${PLUGINS_FALSE}"; then
81ecdfbb
RW
15690 as_fn_error "conditional \"PLUGINS\" was never defined.
15691Usually this means the macro was only invoked conditionally." "$LINENO" 5
ce3c775b 15692fi
f5385ebf 15693if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
81ecdfbb
RW
15694 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
15695Usually this means the macro was only invoked conditionally." "$LINENO" 5
f5385ebf 15696fi
d5fbea21 15697if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
81ecdfbb
RW
15698 as_fn_error "conditional \"GENINSRC_NEVER\" was never defined.
15699Usually this means the macro was only invoked conditionally." "$LINENO" 5
d5fbea21 15700fi
f5385ebf 15701if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then
81ecdfbb
RW
15702 as_fn_error "conditional \"INSTALL_LIBBFD\" was never defined.
15703Usually this means the macro was only invoked conditionally." "$LINENO" 5
f5385ebf 15704fi
5464f5a1
NN
15705
15706: ${CONFIG_STATUS=./config.status}
81ecdfbb 15707ac_write_fail=0
5464f5a1
NN
15708ac_clean_files_save=$ac_clean_files
15709ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
15710{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15711$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15712as_write_fail=0
15713cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5464f5a1
NN
15714#! $SHELL
15715# Generated by $as_me.
15716# Run this file to recreate the current configuration.
15717# Compiler output produced by configure, useful for debugging
15718# configure, is in config.log if it exists.
15719
15720debug=false
15721ac_cs_recheck=false
15722ac_cs_silent=false
5464f5a1 15723
81ecdfbb
RW
15724SHELL=\${CONFIG_SHELL-$SHELL}
15725export SHELL
15726_ASEOF
15727cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15728## -------------------- ##
15729## M4sh Initialization. ##
15730## -------------------- ##
5464f5a1 15731
81ecdfbb
RW
15732# Be more Bourne compatible
15733DUALCASE=1; export DUALCASE # for MKS sh
15734if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5464f5a1
NN
15735 emulate sh
15736 NULLCMD=:
81ecdfbb 15737 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5464f5a1
NN
15738 # is contrary to our usage. Disable this feature.
15739 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
15740 setopt NO_GLOB_SUBST
15741else
15742 case `(set -o) 2>/dev/null` in #(
15743 *posix*) :
15744 set -o posix ;; #(
15745 *) :
15746 ;;
15747esac
5464f5a1 15748fi
5464f5a1 15749
81ecdfbb
RW
15750
15751as_nl='
15752'
15753export as_nl
15754# Printing a long string crashes Solaris 7 /usr/bin/printf.
15755as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15756as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15757as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15758# Prefer a ksh shell builtin over an external printf program on Solaris,
15759# but without wasting forks for bash or zsh.
15760if test -z "$BASH_VERSION$ZSH_VERSION" \
15761 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15762 as_echo='print -r --'
15763 as_echo_n='print -rn --'
15764elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15765 as_echo='printf %s\n'
15766 as_echo_n='printf %s'
15767else
15768 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15769 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15770 as_echo_n='/usr/ucb/echo -n'
15771 else
15772 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15773 as_echo_n_body='eval
15774 arg=$1;
15775 case $arg in #(
15776 *"$as_nl"*)
15777 expr "X$arg" : "X\\(.*\\)$as_nl";
15778 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15779 esac;
15780 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15781 '
15782 export as_echo_n_body
15783 as_echo_n='sh -c $as_echo_n_body as_echo'
15784 fi
15785 export as_echo_body
15786 as_echo='sh -c $as_echo_body as_echo'
15787fi
15788
15789# The user is always right.
15790if test "${PATH_SEPARATOR+set}" != set; then
15791 PATH_SEPARATOR=:
15792 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15793 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15794 PATH_SEPARATOR=';'
15795 }
5464f5a1
NN
15796fi
15797
15798
81ecdfbb
RW
15799# IFS
15800# We need space, tab and new line, in precisely that order. Quoting is
15801# there to prevent editors from complaining about space-tab.
15802# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15803# splitting by setting IFS to empty value.)
15804IFS=" "" $as_nl"
15805
15806# Find who we are. Look in the path if we contain no directory separator.
15807case $0 in #((
15808 *[\\/]* ) as_myself=$0 ;;
15809 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15810for as_dir in $PATH
15811do
15812 IFS=$as_save_IFS
15813 test -z "$as_dir" && as_dir=.
15814 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15815 done
15816IFS=$as_save_IFS
15817
15818 ;;
15819esac
15820# We did not find ourselves, most probably we were run as `sh COMMAND'
15821# in which case we are not to be found in the path.
15822if test "x$as_myself" = x; then
15823 as_myself=$0
15824fi
15825if test ! -f "$as_myself"; then
15826 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15827 exit 1
15828fi
15829
15830# Unset variables that we do not need and which cause bugs (e.g. in
15831# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15832# suppresses any "Segmentation fault" message there. '((' could
15833# trigger a bug in pdksh 5.2.14.
15834for as_var in BASH_ENV ENV MAIL MAILPATH
15835do eval test x\${$as_var+set} = xset \
15836 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15837done
5464f5a1
NN
15838PS1='$ '
15839PS2='> '
15840PS4='+ '
15841
15842# NLS nuisances.
81ecdfbb
RW
15843LC_ALL=C
15844export LC_ALL
15845LANGUAGE=C
15846export LANGUAGE
15847
15848# CDPATH.
15849(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15850
15851
15852# as_fn_error ERROR [LINENO LOG_FD]
15853# ---------------------------------
15854# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15855# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15856# script with status $?, using 1 if that was 0.
15857as_fn_error ()
15858{
15859 as_status=$?; test $as_status -eq 0 && as_status=1
15860 if test "$3"; then
15861 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15862 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
5464f5a1 15863 fi
81ecdfbb
RW
15864 $as_echo "$as_me: error: $1" >&2
15865 as_fn_exit $as_status
15866} # as_fn_error
15867
15868
15869# as_fn_set_status STATUS
15870# -----------------------
15871# Set $? to STATUS, without forking.
15872as_fn_set_status ()
15873{
15874 return $1
15875} # as_fn_set_status
15876
15877# as_fn_exit STATUS
15878# -----------------
15879# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15880as_fn_exit ()
15881{
15882 set +e
15883 as_fn_set_status $1
15884 exit $1
15885} # as_fn_exit
15886
15887# as_fn_unset VAR
15888# ---------------
15889# Portably unset VAR.
15890as_fn_unset ()
15891{
15892 { eval $1=; unset $1;}
15893}
15894as_unset=as_fn_unset
15895# as_fn_append VAR VALUE
15896# ----------------------
15897# Append the text in VALUE to the end of the definition contained in VAR. Take
15898# advantage of any shell optimizations that allow amortized linear growth over
15899# repeated appends, instead of the typical quadratic growth present in naive
15900# implementations.
15901if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15902 eval 'as_fn_append ()
15903 {
15904 eval $1+=\$2
15905 }'
15906else
15907 as_fn_append ()
15908 {
15909 eval $1=\$$1\$2
15910 }
15911fi # as_fn_append
15912
15913# as_fn_arith ARG...
15914# ------------------
15915# Perform arithmetic evaluation on the ARGs, and store the result in the
15916# global $as_val. Take advantage of shells that can avoid forks. The arguments
15917# must be portable across $(()) and expr.
15918if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15919 eval 'as_fn_arith ()
15920 {
15921 as_val=$(( $* ))
15922 }'
15923else
15924 as_fn_arith ()
15925 {
15926 as_val=`expr "$@" || test $? -eq 1`
15927 }
15928fi # as_fn_arith
15929
5464f5a1 15930
81ecdfbb
RW
15931if expr a : '\(a\)' >/dev/null 2>&1 &&
15932 test "X`expr 00001 : '.*\(...\)'`" = X001; then
5464f5a1
NN
15933 as_expr=expr
15934else
15935 as_expr=false
15936fi
15937
81ecdfbb 15938if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5464f5a1
NN
15939 as_basename=basename
15940else
15941 as_basename=false
15942fi
252b5132 15943
81ecdfbb
RW
15944if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15945 as_dirname=dirname
15946else
15947 as_dirname=false
15948fi
6be7c12c 15949
81ecdfbb 15950as_me=`$as_basename -- "$0" ||
5464f5a1
NN
15951$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15952 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
15953 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15954$as_echo X/"$0" |
15955 sed '/^.*\/\([^/][^/]*\)\/*$/{
15956 s//\1/
15957 q
15958 }
15959 /^X\/\(\/\/\)$/{
15960 s//\1/
15961 q
15962 }
15963 /^X\/\(\/\).*/{
15964 s//\1/
15965 q
15966 }
15967 s/.*/./; q'`
5464f5a1 15968
5464f5a1
NN
15969# Avoid depending upon Character Ranges.
15970as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15971as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15972as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15973as_cr_digits='0123456789'
15974as_cr_alnum=$as_cr_Letters$as_cr_digits
15975
81ecdfbb
RW
15976ECHO_C= ECHO_N= ECHO_T=
15977case `echo -n x` in #(((((
15978-n*)
15979 case `echo 'xy\c'` in
15980 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15981 xy) ECHO_C='\c';;
15982 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15983 ECHO_T=' ';;
15984 esac;;
15985*)
15986 ECHO_N='-n';;
5464f5a1
NN
15987esac
15988
81ecdfbb
RW
15989rm -f conf$$ conf$$.exe conf$$.file
15990if test -d conf$$.dir; then
15991 rm -f conf$$.dir/conf$$.file
252b5132 15992else
81ecdfbb
RW
15993 rm -f conf$$.dir
15994 mkdir conf$$.dir 2>/dev/null
252b5132 15995fi
81ecdfbb
RW
15996if (echo >conf$$.file) 2>/dev/null; then
15997 if ln -s conf$$.file conf$$ 2>/dev/null; then
5464f5a1 15998 as_ln_s='ln -s'
81ecdfbb
RW
15999 # ... but there are two gotchas:
16000 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16001 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16002 # In both cases, we have to default to `cp -p'.
16003 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16004 as_ln_s='cp -p'
16005 elif ln conf$$.file conf$$ 2>/dev/null; then
16006 as_ln_s=ln
16007 else
16008 as_ln_s='cp -p'
5464f5a1 16009 fi
5464f5a1
NN
16010else
16011 as_ln_s='cp -p'
252b5132 16012fi
81ecdfbb
RW
16013rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16014rmdir conf$$.dir 2>/dev/null
16015
16016
16017# as_fn_mkdir_p
16018# -------------
16019# Create "$as_dir" as a directory, including parents if necessary.
16020as_fn_mkdir_p ()
16021{
16022
16023 case $as_dir in #(
16024 -*) as_dir=./$as_dir;;
16025 esac
16026 test -d "$as_dir" || eval $as_mkdir_p || {
16027 as_dirs=
16028 while :; do
16029 case $as_dir in #(
16030 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16031 *) as_qdir=$as_dir;;
16032 esac
16033 as_dirs="'$as_qdir' $as_dirs"
16034 as_dir=`$as_dirname -- "$as_dir" ||
16035$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16036 X"$as_dir" : 'X\(//\)[^/]' \| \
16037 X"$as_dir" : 'X\(//\)$' \| \
16038 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16039$as_echo X"$as_dir" |
16040 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16041 s//\1/
16042 q
16043 }
16044 /^X\(\/\/\)[^/].*/{
16045 s//\1/
16046 q
16047 }
16048 /^X\(\/\/\)$/{
16049 s//\1/
16050 q
16051 }
16052 /^X\(\/\).*/{
16053 s//\1/
16054 q
16055 }
16056 s/.*/./; q'`
16057 test -d "$as_dir" && break
16058 done
16059 test -z "$as_dirs" || eval "mkdir $as_dirs"
16060 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
16061
6be7c12c 16062
81ecdfbb 16063} # as_fn_mkdir_p
5464f5a1 16064if mkdir -p . 2>/dev/null; then
81ecdfbb 16065 as_mkdir_p='mkdir -p "$as_dir"'
5464f5a1
NN
16066else
16067 test -d ./-p && rmdir ./-p
16068 as_mkdir_p=false
252b5132 16069fi
81ecdfbb
RW
16070
16071if test -x / >/dev/null 2>&1; then
16072 as_test_x='test -x'
16073else
16074 if ls -dL / >/dev/null 2>&1; then
16075 as_ls_L_option=L
16076 else
16077 as_ls_L_option=
16078 fi
16079 as_test_x='
16080 eval sh -c '\''
16081 if test -d "$1"; then
16082 test -d "$1/.";
16083 else
16084 case $1 in #(
16085 -*)set "./$1";;
16086 esac;
16087 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16088 ???[sx]*):;;*)false;;esac;fi
16089 '\'' sh
16090 '
16091fi
16092as_executable_p=$as_test_x
252b5132 16093
5464f5a1
NN
16094# Sed expression to map a string onto a valid CPP name.
16095as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
252b5132 16096
5464f5a1
NN
16097# Sed expression to map a string onto a valid variable name.
16098as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6be7c12c 16099
252b5132 16100
5464f5a1 16101exec 6>&1
81ecdfbb
RW
16102## ----------------------------------- ##
16103## Main body of $CONFIG_STATUS script. ##
16104## ----------------------------------- ##
16105_ASEOF
16106test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
5464f5a1 16107
81ecdfbb
RW
16108cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16109# Save the log message, to keep $0 and so on meaningful, and to
5464f5a1 16110# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
16111# values after options handling.
16112ac_log="
5464f5a1 16113This file was extended by $as_me, which was
81ecdfbb 16114generated by GNU Autoconf 2.64. Invocation command line was
5464f5a1
NN
16115
16116 CONFIG_FILES = $CONFIG_FILES
16117 CONFIG_HEADERS = $CONFIG_HEADERS
16118 CONFIG_LINKS = $CONFIG_LINKS
16119 CONFIG_COMMANDS = $CONFIG_COMMANDS
16120 $ $0 $@
16121
81ecdfbb
RW
16122on `(hostname || uname -n) 2>/dev/null | sed 1q`
16123"
16124
5464f5a1
NN
16125_ACEOF
16126
81ecdfbb
RW
16127case $ac_config_files in *"
16128"*) set x $ac_config_files; shift; ac_config_files=$*;;
16129esac
5464f5a1 16130
81ecdfbb
RW
16131case $ac_config_headers in *"
16132"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16133esac
252b5132 16134
252b5132 16135
81ecdfbb
RW
16136cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16137# Files that config.status was made for.
16138config_files="$ac_config_files"
16139config_headers="$ac_config_headers"
16140config_commands="$ac_config_commands"
252b5132 16141
81ecdfbb 16142_ACEOF
5464f5a1 16143
81ecdfbb 16144cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5464f5a1 16145ac_cs_usage="\
81ecdfbb
RW
16146\`$as_me' instantiates files and other configuration actions
16147from templates according to the current configuration. Unless the files
16148and actions are specified as TAGs, all are instantiated by default.
5464f5a1 16149
81ecdfbb 16150Usage: $0 [OPTION]... [TAG]...
5464f5a1
NN
16151
16152 -h, --help print this help, then exit
81ecdfbb
RW
16153 -V, --version print version number and configuration settings, then exit
16154 -q, --quiet, --silent
16155 do not print progress messages
5464f5a1
NN
16156 -d, --debug don't remove temporary files
16157 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
16158 --file=FILE[:TEMPLATE]
16159 instantiate the configuration file FILE
16160 --header=FILE[:TEMPLATE]
16161 instantiate the configuration header FILE
5464f5a1
NN
16162
16163Configuration files:
16164$config_files
16165
16166Configuration headers:
16167$config_headers
16168
16169Configuration commands:
16170$config_commands
16171
81ecdfbb 16172Report bugs to the package provider."
5464f5a1 16173
81ecdfbb
RW
16174_ACEOF
16175cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5464f5a1
NN
16176ac_cs_version="\\
16177config.status
81ecdfbb
RW
16178configured by $0, generated by GNU Autoconf 2.64,
16179 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
5464f5a1 16180
81ecdfbb 16181Copyright (C) 2009 Free Software Foundation, Inc.
5464f5a1
NN
16182This config.status script is free software; the Free Software Foundation
16183gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
16184
16185ac_pwd='$ac_pwd'
16186srcdir='$srcdir'
16187INSTALL='$INSTALL'
16188MKDIR_P='$MKDIR_P'
16189AWK='$AWK'
16190test -n "\$AWK" || AWK=awk
5464f5a1
NN
16191_ACEOF
16192
81ecdfbb
RW
16193cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16194# The default lists apply if the user does not specify any file.
5464f5a1
NN
16195ac_need_defaults=:
16196while test $# != 0
16197do
16198 case $1 in
16199 --*=*)
81ecdfbb
RW
16200 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16201 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5464f5a1 16202 ac_shift=:
6be7c12c 16203 ;;
81ecdfbb 16204 *)
5464f5a1
NN
16205 ac_option=$1
16206 ac_optarg=$2
16207 ac_shift=shift
6be7c12c 16208 ;;
5464f5a1 16209 esac
252b5132 16210
5464f5a1
NN
16211 case $ac_option in
16212 # Handling of the options.
5464f5a1
NN
16213 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16214 ac_cs_recheck=: ;;
81ecdfbb
RW
16215 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16216 $as_echo "$ac_cs_version"; exit ;;
16217 --debug | --debu | --deb | --de | --d | -d )
5464f5a1
NN
16218 debug=: ;;
16219 --file | --fil | --fi | --f )
16220 $ac_shift
81ecdfbb
RW
16221 case $ac_optarg in
16222 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16223 esac
16224 as_fn_append CONFIG_FILES " '$ac_optarg'"
5464f5a1
NN
16225 ac_need_defaults=false;;
16226 --header | --heade | --head | --hea )
16227 $ac_shift
81ecdfbb
RW
16228 case $ac_optarg in
16229 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16230 esac
16231 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
5464f5a1 16232 ac_need_defaults=false;;
81ecdfbb
RW
16233 --he | --h)
16234 # Conflict between --help and --header
16235 as_fn_error "ambiguous option: \`$1'
16236Try \`$0 --help' for more information.";;
16237 --help | --hel | -h )
16238 $as_echo "$ac_cs_usage"; exit ;;
5464f5a1
NN
16239 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16240 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16241 ac_cs_silent=: ;;
6be7c12c 16242
5464f5a1 16243 # This is an error.
81ecdfbb
RW
16244 -*) as_fn_error "unrecognized option: \`$1'
16245Try \`$0 --help' for more information." ;;
252b5132 16246
81ecdfbb
RW
16247 *) as_fn_append ac_config_targets " $1"
16248 ac_need_defaults=false ;;
252b5132 16249
5464f5a1
NN
16250 esac
16251 shift
16252done
6be7c12c 16253
5464f5a1 16254ac_configure_extra_args=
252b5132 16255
5464f5a1
NN
16256if $ac_cs_silent; then
16257 exec 6>/dev/null
16258 ac_configure_extra_args="$ac_configure_extra_args --silent"
16259fi
6be7c12c 16260
5464f5a1 16261_ACEOF
81ecdfbb 16262cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5464f5a1 16263if \$ac_cs_recheck; then
81ecdfbb
RW
16264 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16265 shift
16266 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16267 CONFIG_SHELL='$SHELL'
16268 export CONFIG_SHELL
16269 exec "\$@"
5464f5a1
NN
16270fi
16271
16272_ACEOF
81ecdfbb
RW
16273cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16274exec 5>>config.log
16275{
16276 echo
16277 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16278## Running $as_me. ##
16279_ASBOX
16280 $as_echo "$ac_log"
16281} >&5
5464f5a1 16282
81ecdfbb
RW
16283_ACEOF
16284cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6be7c12c 16285#
81ecdfbb 16286# INIT-COMMANDS
6be7c12c 16287#
f5385ebf 16288AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
d7040cdb
SE
16289
16290
16291# The HP-UX ksh and POSIX shell print the target directory to stdout
16292# if CDPATH is set.
16293(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16294
16295sed_quote_subst='$sed_quote_subst'
16296double_quote_subst='$double_quote_subst'
16297delay_variable_subst='$delay_variable_subst'
16298enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
16299macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
16300macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
16301enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
16302pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
16303enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
16304host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
16305host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
16306host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
16307build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
16308build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
16309build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
16310SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
16311Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
16312GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
16313EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
16314FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
16315LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
16316NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
16317LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
16318max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
16319ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
16320exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
16321lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
16322lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
16323lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
16324reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
16325reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
718a6fd8 16326OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
d7040cdb
SE
16327deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
16328file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
16329AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
16330AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16331STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
16332RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
16333old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16334old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16335old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16336CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
16337CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16338compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
16339GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
16340lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
16341lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
16342lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
718a6fd8 16343lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
d7040cdb
SE
16344objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
16345SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
16346ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
16347MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
16348lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
16349lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
16350lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
16351lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
16352lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
16353need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
718a6fd8
SE
16354DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
16355NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
16356LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
16357OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
16358OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
d7040cdb
SE
16359libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
16360shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16361extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16362archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
16363enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
16364export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16365whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16366compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
16367old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16368old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16369archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16370archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16371module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16372module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16373with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
16374allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16375no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16376hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16377hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
16378hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
16379hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
16380hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
16381hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
16382hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16383hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
16384inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
16385link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
16386fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
16387always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
16388export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16389exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
16390include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
16391prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16392file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
16393variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
16394need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
16395need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
16396version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
16397runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16398shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16399shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
16400libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
16401library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
16402soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
16403postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16404postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16405finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16406finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
16407hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
16408sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
16409sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
16410hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
16411enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
16412enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
16413enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
16414old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
16415striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
16416
16417LTCC='$LTCC'
16418LTCFLAGS='$LTCFLAGS'
16419compiler='$compiler_DEFAULT'
16420
16421# Quote evaled strings.
16422for var in SED \
16423GREP \
16424EGREP \
16425FGREP \
16426LD \
16427NM \
16428LN_S \
16429lt_SP2NL \
16430lt_NL2SP \
16431reload_flag \
718a6fd8 16432OBJDUMP \
d7040cdb
SE
16433deplibs_check_method \
16434file_magic_cmd \
16435AR \
16436AR_FLAGS \
16437STRIP \
16438RANLIB \
16439CC \
16440CFLAGS \
16441compiler \
16442lt_cv_sys_global_symbol_pipe \
16443lt_cv_sys_global_symbol_to_cdecl \
16444lt_cv_sys_global_symbol_to_c_name_address \
718a6fd8 16445lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
d7040cdb
SE
16446SHELL \
16447ECHO \
16448lt_prog_compiler_no_builtin_flag \
16449lt_prog_compiler_wl \
16450lt_prog_compiler_pic \
16451lt_prog_compiler_static \
16452lt_cv_prog_compiler_c_o \
16453need_locks \
718a6fd8
SE
16454DSYMUTIL \
16455NMEDIT \
16456LIPO \
16457OTOOL \
16458OTOOL64 \
d7040cdb
SE
16459shrext_cmds \
16460export_dynamic_flag_spec \
16461whole_archive_flag_spec \
16462compiler_needs_object \
16463with_gnu_ld \
16464allow_undefined_flag \
16465no_undefined_flag \
16466hardcode_libdir_flag_spec \
16467hardcode_libdir_flag_spec_ld \
16468hardcode_libdir_separator \
16469fix_srcfile_path \
16470exclude_expsyms \
16471include_expsyms \
16472file_list_spec \
16473variables_saved_for_relink \
16474libname_spec \
16475library_names_spec \
16476soname_spec \
16477finish_eval \
16478old_striplib \
16479striplib; do
16480 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
16481 *[\\\\\\\`\\"\\\$]*)
16482 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16483 ;;
16484 *)
16485 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16486 ;;
16487 esac
16488done
16489
16490# Double-quote double-evaled strings.
16491for var in reload_cmds \
16492old_postinstall_cmds \
16493old_postuninstall_cmds \
16494old_archive_cmds \
16495extract_expsyms_cmds \
16496old_archive_from_new_cmds \
16497old_archive_from_expsyms_cmds \
16498archive_cmds \
16499archive_expsym_cmds \
16500module_cmds \
16501module_expsym_cmds \
16502export_symbols_cmds \
16503prelink_cmds \
16504postinstall_cmds \
16505postuninstall_cmds \
16506finish_cmds \
16507sys_lib_search_path_spec \
16508sys_lib_dlsearch_path_spec; do
16509 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
16510 *[\\\\\\\`\\"\\\$]*)
16511 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16512 ;;
16513 *)
16514 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16515 ;;
16516 esac
16517done
16518
16519# Fix-up fallback echo if it was mangled by the above quoting rules.
16520case \$lt_ECHO in
16521*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
16522 ;;
16523esac
16524
16525ac_aux_dir='$ac_aux_dir'
16526xsi_shell='$xsi_shell'
16527lt_shell_append='$lt_shell_append'
16528
16529# See if we are running on zsh, and set the options which allow our
16530# commands through without removal of \ escapes INIT.
16531if test -n "\${ZSH_VERSION+set}" ; then
16532 setopt NO_GLOB_SUBST
16533fi
16534
16535
16536 PACKAGE='$PACKAGE'
16537 VERSION='$VERSION'
16538 TIMESTAMP='$TIMESTAMP'
16539 RM='$RM'
16540 ofile='$ofile'
16541
16542
16543
20e95c23
DJ
16544# Capture the value of obsolete ALL_LINGUAS because we need it to compute
16545 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
16546 # from automake.
16547 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
16548 # Capture the value of LINGUAS because we need it to compute CATALOGS.
16549 LINGUAS="${LINGUAS-%UNSET%}"
16550
5464f5a1 16551
d5efd9fc
AM
16552GCC="$GCC"
16553CC="$CC"
16554acx_cv_header_stdint="$acx_cv_header_stdint"
16555acx_cv_type_int8_t="$acx_cv_type_int8_t"
16556acx_cv_type_int16_t="$acx_cv_type_int16_t"
16557acx_cv_type_int32_t="$acx_cv_type_int32_t"
16558acx_cv_type_int64_t="$acx_cv_type_int64_t"
16559acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
16560ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
16561ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
16562ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
16563ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
16564ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
16565ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
16566ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
16567ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
16568
16569
5464f5a1
NN
16570
16571_ACEOF
16572
81ecdfbb 16573cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5464f5a1 16574
81ecdfbb 16575# Handling of arguments.
5464f5a1 16576for ac_config_target in $ac_config_targets
252b5132 16577do
81ecdfbb
RW
16578 case $ac_config_target in
16579 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16580 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16581 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
16582 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16583 "bfd_stdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS bfd_stdint.h" ;;
16584 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16585 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16586 "bfd-in3.h") CONFIG_FILES="$CONFIG_FILES bfd-in3.h:bfd-in2.h" ;;
16587 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
16588 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
16589
16590 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
252b5132
RH
16591 esac
16592done
16593
81ecdfbb 16594
5464f5a1
NN
16595# If the user did not use the arguments to specify the items to instantiate,
16596# then the envvar interface is used. Set only those that are not.
16597# We use the long form for the default assignment because of an extremely
16598# bizarre bug on SunOS 4.1.3.
16599if $ac_need_defaults; then
16600 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16601 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16602 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16603fi
16604
16605# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 16606# simply because there is no reason against having it here, and in addition,
5464f5a1 16607# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
16608# Hook for its removal unless debugging.
16609# Note that there is a small window in which the directory will not be cleaned:
16610# after its creation but before its name has been assigned to `$tmp'.
5464f5a1
NN
16611$debug ||
16612{
81ecdfbb
RW
16613 tmp=
16614 trap 'exit_status=$?
16615 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16616' 0
16617 trap 'as_fn_exit 1' 1 2 13 15
5464f5a1 16618}
5464f5a1 16619# Create a (secure) tmp directory for tmp files.
b3baf5d0 16620
5464f5a1 16621{
81ecdfbb 16622 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5464f5a1
NN
16623 test -n "$tmp" && test -d "$tmp"
16624} ||
16625{
81ecdfbb
RW
16626 tmp=./conf$$-$RANDOM
16627 (umask 077 && mkdir "$tmp")
16628} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
16629
16630# Set up the scripts for CONFIG_FILES section.
16631# No need to generate them if there are no CONFIG_FILES.
16632# This happens for instance with `./config.status config.h'.
16633if test -n "$CONFIG_FILES"; then
16634
16635
16636ac_cr=`echo X | tr X '\015'`
16637# On cygwin, bash can eat \r inside `` if the user requested igncr.
16638# But we know of no other shell where ac_cr would be empty at this
16639# point, so we can use a bashism as a fallback.
16640if test "x$ac_cr" = x; then
16641 eval ac_cr=\$\'\\r\'
16642fi
16643ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16644if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16645 ac_cs_awk_cr='\r'
16646else
16647 ac_cs_awk_cr=$ac_cr
16648fi
16649
16650echo 'BEGIN {' >"$tmp/subs1.awk" &&
16651_ACEOF
16652
16653
16654{
16655 echo "cat >conf$$subs.awk <<_ACEOF" &&
16656 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16657 echo "_ACEOF"
16658} >conf$$subs.sh ||
16659 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16660ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16661ac_delim='%!_!# '
16662for ac_last_try in false false false false false :; do
16663 . ./conf$$subs.sh ||
16664 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16665
16666 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16667 if test $ac_delim_n = $ac_delim_num; then
16668 break
16669 elif $ac_last_try; then
16670 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16671 else
16672 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16673 fi
16674done
16675rm -f conf$$subs.sh
16676
16677cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16678cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16679_ACEOF
16680sed -n '
16681h
16682s/^/S["/; s/!.*/"]=/
16683p
16684g
16685s/^[^!]*!//
16686:repl
16687t repl
16688s/'"$ac_delim"'$//
16689t delim
16690:nl
16691h
16692s/\(.\{148\}\).*/\1/
16693t more1
16694s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16695p
16696n
16697b repl
16698:more1
16699s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16700p
16701g
16702s/.\{148\}//
16703t nl
16704:delim
16705h
16706s/\(.\{148\}\).*/\1/
16707t more2
16708s/["\\]/\\&/g; s/^/"/; s/$/"/
16709p
16710b
16711:more2
16712s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16713p
16714g
16715s/.\{148\}//
16716t delim
16717' <conf$$subs.awk | sed '
16718/^[^""]/{
16719 N
16720 s/\n//
16721}
16722' >>$CONFIG_STATUS || ac_write_fail=1
16723rm -f conf$$subs.awk
16724cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16725_ACAWK
16726cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16727 for (key in S) S_is_set[key] = 1
16728 FS = "\a"
16729
16730}
5464f5a1 16731{
81ecdfbb
RW
16732 line = $ 0
16733 nfields = split(line, field, "@")
16734 substed = 0
16735 len = length(field[1])
16736 for (i = 2; i < nfields; i++) {
16737 key = field[i]
16738 keylen = length(key)
16739 if (S_is_set[key]) {
16740 value = S[key]
16741 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16742 len += length(value) + length(field[++i])
16743 substed = 1
16744 } else
16745 len += 1 + keylen
16746 }
16747
16748 print line
5464f5a1
NN
16749}
16750
81ecdfbb
RW
16751_ACAWK
16752_ACEOF
16753cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16754if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16755 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16756else
16757 cat
16758fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16759 || as_fn_error "could not setup config files machinery" "$LINENO" 5
5464f5a1
NN
16760_ACEOF
16761
81ecdfbb
RW
16762# VPATH may cause trouble with some makes, so we remove $(srcdir),
16763# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16764# trailing colons and then remove the whole line if VPATH becomes empty
16765# (actually we leave an empty line to preserve line numbers).
16766if test "x$srcdir" = x.; then
16767 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16768s/:*\$(srcdir):*/:/
16769s/:*\${srcdir}:*/:/
16770s/:*@srcdir@:*/:/
16771s/^\([^=]*=[ ]*\):*/\1/
16772s/:*$//
16773s/^[^=]*=[ ]*$//
16774}'
16775fi
b3baf5d0 16776
81ecdfbb
RW
16777cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16778fi # test -n "$CONFIG_FILES"
252b5132 16779
81ecdfbb
RW
16780# Set up the scripts for CONFIG_HEADERS section.
16781# No need to generate them if there are no CONFIG_HEADERS.
16782# This happens for instance with `./config.status Makefile'.
16783if test -n "$CONFIG_HEADERS"; then
16784cat >"$tmp/defines.awk" <<\_ACAWK ||
16785BEGIN {
5464f5a1
NN
16786_ACEOF
16787
81ecdfbb
RW
16788# Transform confdefs.h into an awk script `defines.awk', embedded as
16789# here-document in config.status, that substitutes the proper values into
16790# config.h.in to produce config.h.
16791
16792# Create a delimiter string that does not exist in confdefs.h, to ease
16793# handling of long lines.
16794ac_delim='%!_!# '
16795for ac_last_try in false false :; do
16796 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16797 if test -z "$ac_t"; then
16798 break
16799 elif $ac_last_try; then
16800 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
16801 else
16802 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
252b5132 16803 fi
81ecdfbb 16804done
6be7c12c 16805
81ecdfbb
RW
16806# For the awk script, D is an array of macro values keyed by name,
16807# likewise P contains macro parameters if any. Preserve backslash
16808# newline sequences.
16809
16810ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16811sed -n '
16812s/.\{148\}/&'"$ac_delim"'/g
16813t rset
16814:rset
16815s/^[ ]*#[ ]*define[ ][ ]*/ /
16816t def
16817d
16818:def
16819s/\\$//
16820t bsnl
16821s/["\\]/\\&/g
16822s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16823D["\1"]=" \3"/p
16824s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16825d
16826:bsnl
16827s/["\\]/\\&/g
16828s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16829D["\1"]=" \3\\\\\\n"\\/p
16830t cont
16831s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16832t cont
16833d
16834:cont
16835n
16836s/.\{148\}/&'"$ac_delim"'/g
16837t clear
16838:clear
16839s/\\$//
16840t bsnlc
16841s/["\\]/\\&/g; s/^/"/; s/$/"/p
16842d
16843:bsnlc
16844s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16845b cont
16846' <confdefs.h | sed '
16847s/'"$ac_delim"'/"\\\
16848"/g' >>$CONFIG_STATUS || ac_write_fail=1
16849
16850cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16851 for (key in D) D_is_set[key] = 1
16852 FS = "\a"
16853}
16854/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16855 line = \$ 0
16856 split(line, arg, " ")
16857 if (arg[1] == "#") {
16858 defundef = arg[2]
16859 mac1 = arg[3]
16860 } else {
16861 defundef = substr(arg[1], 2)
16862 mac1 = arg[2]
16863 }
16864 split(mac1, mac2, "(") #)
16865 macro = mac2[1]
16866 prefix = substr(line, 1, index(line, defundef) - 1)
16867 if (D_is_set[macro]) {
16868 # Preserve the white space surrounding the "#".
16869 print prefix "define", macro P[macro] D[macro]
16870 next
16871 } else {
16872 # Replace #undef with comments. This is necessary, for example,
16873 # in the case of _POSIX_SOURCE, which is predefined and required
16874 # on some systems where configure will not decide to define it.
16875 if (defundef == "undef") {
16876 print "/*", prefix defundef, macro, "*/"
16877 next
16878 }
16879 }
16880}
16881{ print }
16882_ACAWK
5464f5a1 16883_ACEOF
81ecdfbb
RW
16884cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16885 as_fn_error "could not setup config headers machinery" "$LINENO" 5
16886fi # test -n "$CONFIG_HEADERS"
16887
16888
16889eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16890shift
16891for ac_tag
16892do
16893 case $ac_tag in
16894 :[FHLC]) ac_mode=$ac_tag; continue;;
16895 esac
16896 case $ac_mode$ac_tag in
16897 :[FHL]*:*);;
16898 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
16899 :[FH]-) ac_tag=-:-;;
16900 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16901 esac
16902 ac_save_IFS=$IFS
16903 IFS=:
16904 set x $ac_tag
16905 IFS=$ac_save_IFS
16906 shift
16907 ac_file=$1
16908 shift
16909
16910 case $ac_mode in
16911 :L) ac_source=$1;;
16912 :[FH])
16913 ac_file_inputs=
16914 for ac_f
16915 do
16916 case $ac_f in
16917 -) ac_f="$tmp/stdin";;
16918 *) # Look for the file first in the build tree, then in the source tree
16919 # (if the path is not absolute). The absolute path cannot be DOS-style,
16920 # because $ac_f cannot contain `:'.
16921 test -f "$ac_f" ||
16922 case $ac_f in
16923 [\\/$]*) false;;
16924 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16925 esac ||
16926 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16927 esac
16928 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16929 as_fn_append ac_file_inputs " '$ac_f'"
16930 done
16931
16932 # Let's still pretend it is `configure' which instantiates (i.e., don't
16933 # use $as_me), people would be surprised to read:
16934 # /* config.h. Generated by config.status. */
16935 configure_input='Generated from '`
16936 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16937 `' by configure.'
16938 if test x"$ac_file" != x-; then
16939 configure_input="$ac_file. $configure_input"
16940 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16941$as_echo "$as_me: creating $ac_file" >&6;}
16942 fi
16943 # Neutralize special characters interpreted by sed in replacement strings.
16944 case $configure_input in #(
16945 *\&* | *\|* | *\\* )
16946 ac_sed_conf_input=`$as_echo "$configure_input" |
16947 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16948 *) ac_sed_conf_input=$configure_input;;
16949 esac
16950
16951 case $ac_tag in
16952 *:-:* | *:-) cat >"$tmp/stdin" \
16953 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
16954 esac
16955 ;;
252b5132
RH
16956 esac
16957
81ecdfbb 16958 ac_dir=`$as_dirname -- "$ac_file" ||
5464f5a1
NN
16959$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16960 X"$ac_file" : 'X\(//\)[^/]' \| \
16961 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
16962 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16963$as_echo X"$ac_file" |
16964 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16965 s//\1/
16966 q
16967 }
16968 /^X\(\/\/\)[^/].*/{
16969 s//\1/
16970 q
16971 }
16972 /^X\(\/\/\)$/{
16973 s//\1/
16974 q
16975 }
16976 /^X\(\/\).*/{
16977 s//\1/
16978 q
16979 }
16980 s/.*/./; q'`
16981 as_dir="$ac_dir"; as_fn_mkdir_p
5464f5a1
NN
16982 ac_builddir=.
16983
81ecdfbb
RW
16984case "$ac_dir" in
16985.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16986*)
16987 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16988 # A ".." for each directory in $ac_dir_suffix.
16989 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16990 case $ac_top_builddir_sub in
16991 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16992 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16993 esac ;;
16994esac
16995ac_abs_top_builddir=$ac_pwd
16996ac_abs_builddir=$ac_pwd$ac_dir_suffix
16997# for backward compatibility:
16998ac_top_builddir=$ac_top_build_prefix
252b5132 16999
5464f5a1 17000case $srcdir in
81ecdfbb 17001 .) # We are building in place.
5464f5a1 17002 ac_srcdir=.
81ecdfbb
RW
17003 ac_top_srcdir=$ac_top_builddir_sub
17004 ac_abs_top_srcdir=$ac_pwd ;;
17005 [\\/]* | ?:[\\/]* ) # Absolute name.
5464f5a1 17006 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
17007 ac_top_srcdir=$srcdir
17008 ac_abs_top_srcdir=$srcdir ;;
17009 *) # Relative name.
17010 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17011 ac_top_srcdir=$ac_top_build_prefix$srcdir
17012 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5464f5a1 17013esac
81ecdfbb 17014ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
252b5132 17015
252b5132 17016
81ecdfbb
RW
17017 case $ac_mode in
17018 :F)
17019 #
17020 # CONFIG_FILE
17021 #
5464f5a1
NN
17022
17023 case $INSTALL in
17024 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb
RW
17025 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17026 esac
17027 ac_MKDIR_P=$MKDIR_P
17028 case $MKDIR_P in
17029 [\\/$]* | ?:[\\/]* ) ;;
17030 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
6be7c12c 17031 esac
81ecdfbb 17032_ACEOF
252b5132 17033
81ecdfbb
RW
17034cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17035# If the template does not know about datarootdir, expand it.
17036# FIXME: This hack should be removed a few years after 2.60.
17037ac_datarootdir_hack=; ac_datarootdir_seen=
17038ac_sed_dataroot='
17039/datarootdir/ {
17040 p
17041 q
17042}
17043/@datadir@/p
17044/@docdir@/p
17045/@infodir@/p
17046/@localedir@/p
17047/@mandir@/p'
17048case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17049*datarootdir*) ac_datarootdir_seen=yes;;
17050*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17052$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17053_ACEOF
17054cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17055 ac_datarootdir_hack='
17056 s&@datadir@&$datadir&g
17057 s&@docdir@&$docdir&g
17058 s&@infodir@&$infodir&g
17059 s&@localedir@&$localedir&g
17060 s&@mandir@&$mandir&g
17061 s&\\\${datarootdir}&$datarootdir&g' ;;
17062esac
5464f5a1 17063_ACEOF
81ecdfbb
RW
17064
17065# Neutralize VPATH when `$srcdir' = `.'.
17066# Shell code in configure.ac might set extrasub.
17067# FIXME: do we really want to maintain this feature?
17068cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17069ac_sed_extra="$ac_vpsub
5464f5a1
NN
17070$extrasub
17071_ACEOF
81ecdfbb 17072cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5464f5a1
NN
17073:t
17074/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
17075s|@configure_input@|$ac_sed_conf_input|;t t
17076s&@top_builddir@&$ac_top_builddir_sub&;t t
17077s&@top_build_prefix@&$ac_top_build_prefix&;t t
17078s&@srcdir@&$ac_srcdir&;t t
17079s&@abs_srcdir@&$ac_abs_srcdir&;t t
17080s&@top_srcdir@&$ac_top_srcdir&;t t
17081s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17082s&@builddir@&$ac_builddir&;t t
17083s&@abs_builddir@&$ac_abs_builddir&;t t
17084s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17085s&@INSTALL@&$ac_INSTALL&;t t
17086s&@MKDIR_P@&$ac_MKDIR_P&;t t
17087$ac_datarootdir_hack
17088"
17089eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17090 || as_fn_error "could not create $ac_file" "$LINENO" 5
17091
17092test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17093 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17094 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17096which seems to be undefined. Please make sure it is defined." >&5
17097$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17098which seems to be undefined. Please make sure it is defined." >&2;}
17099
17100 rm -f "$tmp/stdin"
5464f5a1 17101 case $ac_file in
81ecdfbb
RW
17102 -) cat "$tmp/out" && rm -f "$tmp/out";;
17103 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17104 esac \
17105 || as_fn_error "could not create $ac_file" "$LINENO" 5
17106 ;;
17107 :H)
17108 #
17109 # CONFIG_HEADER
17110 #
5464f5a1 17111 if test x"$ac_file" != x-; then
81ecdfbb
RW
17112 {
17113 $as_echo "/* $configure_input */" \
17114 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17115 } >"$tmp/config.h" \
17116 || as_fn_error "could not create $ac_file" "$LINENO" 5
17117 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17118 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17119$as_echo "$as_me: $ac_file is unchanged" >&6;}
5464f5a1 17120 else
81ecdfbb
RW
17121 rm -f "$ac_file"
17122 mv "$tmp/config.h" "$ac_file" \
17123 || as_fn_error "could not create $ac_file" "$LINENO" 5
252b5132 17124 fi
5464f5a1 17125 else
81ecdfbb
RW
17126 $as_echo "/* $configure_input */" \
17127 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17128 || as_fn_error "could not create -" "$LINENO" 5
252b5132 17129 fi
81ecdfbb
RW
17130# Compute "$ac_file"'s index in $config_headers.
17131_am_arg="$ac_file"
f5385ebf
AM
17132_am_stamp_count=1
17133for _am_header in $config_headers :; do
17134 case $_am_header in
81ecdfbb 17135 $_am_arg | $_am_arg:* )
f5385ebf
AM
17136 break ;;
17137 * )
17138 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17139 esac
17140done
81ecdfbb
RW
17141echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17142$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17143 X"$_am_arg" : 'X\(//\)[^/]' \| \
17144 X"$_am_arg" : 'X\(//\)$' \| \
17145 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17146$as_echo X"$_am_arg" |
17147 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17148 s//\1/
17149 q
17150 }
17151 /^X\(\/\/\)[^/].*/{
17152 s//\1/
17153 q
17154 }
17155 /^X\(\/\/\)$/{
17156 s//\1/
17157 q
17158 }
17159 /^X\(\/\).*/{
17160 s//\1/
17161 q
17162 }
17163 s/.*/./; q'`/stamp-h$_am_stamp_count
17164 ;;
5464f5a1 17165
81ecdfbb
RW
17166 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17167$as_echo "$as_me: executing $ac_file commands" >&6;}
17168 ;;
17169 esac
5464f5a1
NN
17170
17171
81ecdfbb
RW
17172 case $ac_file$ac_mode in
17173 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17174 # Autoconf 2.62 quotes --file arguments for eval, but not when files
17175 # are listed without --file. Let's play safe and only enable the eval
17176 # if we detect the quoting.
17177 case $CONFIG_FILES in
17178 *\'*) eval set x "$CONFIG_FILES" ;;
17179 *) set x $CONFIG_FILES ;;
17180 esac
17181 shift
17182 for mf
17183 do
17184 # Strip MF so we end up with the name of the file.
17185 mf=`echo "$mf" | sed -e 's/:.*$//'`
17186 # Check whether this is an Automake generated Makefile or not.
17187 # We used to match only the files named `Makefile.in', but
17188 # some people rename them; so instead we look at the file content.
17189 # Grep'ing the first line is not enough: some people post-process
17190 # each Makefile.in and add a new line on top of each file to say so.
17191 # Grep'ing the whole file is not good either: AIX grep has a line
17192 # limit of 2048, but all sed's we know have understand at least 4000.
17193 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17194 dirpart=`$as_dirname -- "$mf" ||
f5385ebf
AM
17195$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17196 X"$mf" : 'X\(//\)[^/]' \| \
17197 X"$mf" : 'X\(//\)$' \| \
81ecdfbb
RW
17198 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17199$as_echo X"$mf" |
17200 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17201 s//\1/
17202 q
17203 }
17204 /^X\(\/\/\)[^/].*/{
17205 s//\1/
17206 q
17207 }
17208 /^X\(\/\/\)$/{
17209 s//\1/
17210 q
17211 }
17212 /^X\(\/\).*/{
17213 s//\1/
17214 q
17215 }
17216 s/.*/./; q'`
17217 else
17218 continue
17219 fi
17220 # Extract the definition of DEPDIR, am__include, and am__quote
17221 # from the Makefile without running `make'.
17222 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17223 test -z "$DEPDIR" && continue
17224 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17225 test -z "am__include" && continue
17226 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17227 # When using ansi2knr, U may be empty or an underscore; expand it
17228 U=`sed -n 's/^U = //p' < "$mf"`
17229 # Find all dependency output files, they are included files with
17230 # $(DEPDIR) in their names. We invoke sed twice because it is the
17231 # simplest approach to changing $(DEPDIR) to its actual value in the
17232 # expansion.
17233 for file in `sed -n "
17234 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17235 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17236 # Make sure the directory exists.
17237 test -f "$dirpart/$file" && continue
17238 fdir=`$as_dirname -- "$file" ||
f5385ebf
AM
17239$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17240 X"$file" : 'X\(//\)[^/]' \| \
17241 X"$file" : 'X\(//\)$' \| \
81ecdfbb
RW
17242 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17243$as_echo X"$file" |
17244 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17245 s//\1/
17246 q
17247 }
17248 /^X\(\/\/\)[^/].*/{
17249 s//\1/
17250 q
17251 }
17252 /^X\(\/\/\)$/{
17253 s//\1/
17254 q
17255 }
17256 /^X\(\/\).*/{
17257 s//\1/
17258 q
17259 }
17260 s/.*/./; q'`
17261 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17262 # echo "creating $dirpart/$file"
17263 echo '# dummy' > "$dirpart/$file"
f5385ebf 17264 done
f5385ebf 17265 done
81ecdfbb 17266}
d7040cdb 17267 ;;
81ecdfbb 17268 "libtool":C)
d7040cdb
SE
17269
17270 # See if we are running on zsh, and set the options which allow our
17271 # commands through without removal of \ escapes.
17272 if test -n "${ZSH_VERSION+set}" ; then
17273 setopt NO_GLOB_SUBST
17274 fi
17275
17276 cfgfile="${ofile}T"
17277 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17278 $RM "$cfgfile"
17279
17280 cat <<_LT_EOF >> "$cfgfile"
17281#! $SHELL
17282
17283# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
718a6fd8 17284# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
d7040cdb
SE
17285# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17286# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17287#
718a6fd8
SE
17288# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17289# 2006, 2007, 2008 Free Software Foundation, Inc.
17290# Written by Gordon Matzigkeit, 1996
d7040cdb 17291#
718a6fd8 17292# This file is part of GNU Libtool.
d7040cdb 17293#
718a6fd8
SE
17294# GNU Libtool is free software; you can redistribute it and/or
17295# modify it under the terms of the GNU General Public License as
17296# published by the Free Software Foundation; either version 2 of
17297# the License, or (at your option) any later version.
d7040cdb 17298#
718a6fd8
SE
17299# As a special exception to the GNU General Public License,
17300# if you distribute this file as part of a program or library that
17301# is built using GNU Libtool, you may include this file under the
17302# same distribution terms that you use for the rest of that program.
d7040cdb 17303#
718a6fd8
SE
17304# GNU Libtool is distributed in the hope that it will be useful,
17305# but WITHOUT ANY WARRANTY; without even the implied warranty of
17306# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17307# GNU General Public License for more details.
d7040cdb 17308#
718a6fd8
SE
17309# You should have received a copy of the GNU General Public License
17310# along with GNU Libtool; see the file COPYING. If not, a copy
17311# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17312# obtained by writing to the Free Software Foundation, Inc.,
17313# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
d7040cdb
SE
17314
17315
17316# The names of the tagged configurations supported by this script.
17317available_tags=""
17318
17319# ### BEGIN LIBTOOL CONFIG
17320
17321# Whether or not to build shared libraries.
17322build_libtool_libs=$enable_shared
17323
17324# Which release of libtool.m4 was used?
17325macro_version=$macro_version
17326macro_revision=$macro_revision
17327
17328# Whether or not to build static libraries.
17329build_old_libs=$enable_static
17330
17331# What type of objects to build.
17332pic_mode=$pic_mode
17333
17334# Whether or not to optimize for fast installation.
17335fast_install=$enable_fast_install
17336
17337# The host system.
17338host_alias=$host_alias
17339host=$host
17340host_os=$host_os
17341
17342# The build system.
17343build_alias=$build_alias
17344build=$build
17345build_os=$build_os
17346
17347# A sed program that does not truncate output.
17348SED=$lt_SED
17349
17350# Sed that helps us avoid accidentally triggering echo(1) options like -n.
17351Xsed="\$SED -e 1s/^X//"
17352
17353# A grep program that handles long lines.
17354GREP=$lt_GREP
17355
17356# An ERE matcher.
17357EGREP=$lt_EGREP
17358
17359# A literal string matcher.
17360FGREP=$lt_FGREP
17361
17362# A BSD- or MS-compatible name lister.
17363NM=$lt_NM
17364
17365# Whether we need soft or hard links.
17366LN_S=$lt_LN_S
17367
17368# What is the maximum length of a command?
17369max_cmd_len=$max_cmd_len
17370
17371# Object file suffix (normally "o").
17372objext=$ac_objext
17373
17374# Executable file suffix (normally "").
17375exeext=$exeext
17376
17377# whether the shell understands "unset".
17378lt_unset=$lt_unset
17379
17380# turn spaces into newlines.
17381SP2NL=$lt_lt_SP2NL
17382
17383# turn newlines into spaces.
17384NL2SP=$lt_lt_NL2SP
17385
17386# How to create reloadable object files.
17387reload_flag=$lt_reload_flag
17388reload_cmds=$lt_reload_cmds
17389
718a6fd8
SE
17390# An object symbol dumper.
17391OBJDUMP=$lt_OBJDUMP
17392
d7040cdb
SE
17393# Method to check whether dependent libraries are shared objects.
17394deplibs_check_method=$lt_deplibs_check_method
17395
17396# Command to use when deplibs_check_method == "file_magic".
17397file_magic_cmd=$lt_file_magic_cmd
17398
17399# The archiver.
17400AR=$lt_AR
17401AR_FLAGS=$lt_AR_FLAGS
17402
17403# A symbol stripping program.
17404STRIP=$lt_STRIP
17405
17406# Commands used to install an old-style archive.
17407RANLIB=$lt_RANLIB
17408old_postinstall_cmds=$lt_old_postinstall_cmds
17409old_postuninstall_cmds=$lt_old_postuninstall_cmds
17410
17411# A C compiler.
17412LTCC=$lt_CC
17413
17414# LTCC compiler flags.
17415LTCFLAGS=$lt_CFLAGS
17416
17417# Take the output of nm and produce a listing of raw symbols and C names.
17418global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17419
17420# Transform the output of nm in a proper C declaration.
17421global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17422
17423# Transform the output of nm in a C name address pair.
17424global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17425
718a6fd8
SE
17426# Transform the output of nm in a C name address pair when lib prefix is needed.
17427global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17428
d7040cdb
SE
17429# The name of the directory that contains temporary libtool files.
17430objdir=$objdir
17431
17432# Shell to use when invoking shell scripts.
17433SHELL=$lt_SHELL
17434
17435# An echo program that does not interpret backslashes.
17436ECHO=$lt_ECHO
17437
17438# Used to examine libraries when file_magic_cmd begins with "file".
17439MAGIC_CMD=$MAGIC_CMD
17440
17441# Must we lock files when doing compilation?
17442need_locks=$lt_need_locks
17443
718a6fd8
SE
17444# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17445DSYMUTIL=$lt_DSYMUTIL
17446
17447# Tool to change global to local symbols on Mac OS X.
17448NMEDIT=$lt_NMEDIT
17449
17450# Tool to manipulate fat objects and archives on Mac OS X.
17451LIPO=$lt_LIPO
17452
17453# ldd/readelf like tool for Mach-O binaries on Mac OS X.
17454OTOOL=$lt_OTOOL
17455
17456# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17457OTOOL64=$lt_OTOOL64
17458
d7040cdb
SE
17459# Old archive suffix (normally "a").
17460libext=$libext
17461
17462# Shared library suffix (normally ".so").
17463shrext_cmds=$lt_shrext_cmds
17464
17465# The commands to extract the exported symbol list from a shared archive.
17466extract_expsyms_cmds=$lt_extract_expsyms_cmds
17467
17468# Variables whose values should be saved in libtool wrapper scripts and
17469# restored at link time.
17470variables_saved_for_relink=$lt_variables_saved_for_relink
17471
17472# Do we need the "lib" prefix for modules?
17473need_lib_prefix=$need_lib_prefix
17474
17475# Do we need a version for libraries?
17476need_version=$need_version
17477
17478# Library versioning type.
17479version_type=$version_type
17480
17481# Shared library runtime path variable.
17482runpath_var=$runpath_var
17483
17484# Shared library path variable.
17485shlibpath_var=$shlibpath_var
17486
17487# Is shlibpath searched before the hard-coded library search path?
17488shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17489
17490# Format of library name prefix.
17491libname_spec=$lt_libname_spec
17492
17493# List of archive names. First name is the real one, the rest are links.
17494# The last name is the one that the linker finds with -lNAME
17495library_names_spec=$lt_library_names_spec
17496
17497# The coded name of the library, if different from the real name.
17498soname_spec=$lt_soname_spec
17499
17500# Command to use after installation of a shared archive.
17501postinstall_cmds=$lt_postinstall_cmds
17502
17503# Command to use after uninstallation of a shared archive.
17504postuninstall_cmds=$lt_postuninstall_cmds
17505
17506# Commands used to finish a libtool library installation in a directory.
17507finish_cmds=$lt_finish_cmds
17508
17509# As "finish_cmds", except a single script fragment to be evaled but
17510# not shown.
17511finish_eval=$lt_finish_eval
17512
17513# Whether we should hardcode library paths into libraries.
17514hardcode_into_libs=$hardcode_into_libs
17515
17516# Compile-time system search path for libraries.
17517sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17518
17519# Run-time system search path for libraries.
17520sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17521
17522# Whether dlopen is supported.
17523dlopen_support=$enable_dlopen
17524
17525# Whether dlopen of programs is supported.
17526dlopen_self=$enable_dlopen_self
17527
17528# Whether dlopen of statically linked programs is supported.
17529dlopen_self_static=$enable_dlopen_self_static
17530
17531# Commands to strip libraries.
17532old_striplib=$lt_old_striplib
17533striplib=$lt_striplib
17534
17535
17536# The linker used to build libraries.
17537LD=$lt_LD
17538
17539# Commands used to build an old-style archive.
17540old_archive_cmds=$lt_old_archive_cmds
17541
17542# A language specific compiler.
17543CC=$lt_compiler
17544
17545# Is the compiler the GNU compiler?
17546with_gcc=$GCC
17547
17548# Compiler flag to turn off builtin functions.
17549no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17550
17551# How to pass a linker flag through the compiler.
17552wl=$lt_lt_prog_compiler_wl
17553
17554# Additional compiler flags for building library objects.
17555pic_flag=$lt_lt_prog_compiler_pic
17556
17557# Compiler flag to prevent dynamic linking.
17558link_static_flag=$lt_lt_prog_compiler_static
17559
17560# Does compiler simultaneously support -c and -o options?
17561compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17562
17563# Whether or not to add -lc for building shared libraries.
17564build_libtool_need_lc=$archive_cmds_need_lc
17565
17566# Whether or not to disallow shared libs when runtime libs are static.
17567allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17568
17569# Compiler flag to allow reflexive dlopens.
17570export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17571
17572# Compiler flag to generate shared objects directly from archives.
17573whole_archive_flag_spec=$lt_whole_archive_flag_spec
17574
17575# Whether the compiler copes with passing no objects directly.
17576compiler_needs_object=$lt_compiler_needs_object
17577
17578# Create an old-style archive from a shared archive.
17579old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17580
17581# Create a temporary old-style archive to link instead of a shared archive.
17582old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17583
17584# Commands used to build a shared archive.
17585archive_cmds=$lt_archive_cmds
17586archive_expsym_cmds=$lt_archive_expsym_cmds
17587
17588# Commands used to build a loadable module if different from building
17589# a shared archive.
17590module_cmds=$lt_module_cmds
17591module_expsym_cmds=$lt_module_expsym_cmds
17592
17593# Whether we are building with GNU ld or not.
17594with_gnu_ld=$lt_with_gnu_ld
17595
17596# Flag that allows shared libraries with undefined symbols to be built.
17597allow_undefined_flag=$lt_allow_undefined_flag
17598
17599# Flag that enforces no undefined symbols.
17600no_undefined_flag=$lt_no_undefined_flag
17601
17602# Flag to hardcode \$libdir into a binary during linking.
17603# This must work even if \$libdir does not exist
17604hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17605
17606# If ld is used when linking, flag to hardcode \$libdir into a binary
17607# during linking. This must work even if \$libdir does not exist.
17608hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17609
17610# Whether we need a single "-rpath" flag with a separated argument.
17611hardcode_libdir_separator=$lt_hardcode_libdir_separator
17612
17613# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17614# DIR into the resulting binary.
17615hardcode_direct=$hardcode_direct
17616
17617# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17618# DIR into the resulting binary and the resulting library dependency is
17619# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17620# library is relocated.
17621hardcode_direct_absolute=$hardcode_direct_absolute
17622
17623# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17624# into the resulting binary.
17625hardcode_minus_L=$hardcode_minus_L
17626
17627# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17628# into the resulting binary.
17629hardcode_shlibpath_var=$hardcode_shlibpath_var
17630
17631# Set to "yes" if building a shared library automatically hardcodes DIR
17632# into the library and all subsequent libraries and executables linked
17633# against it.
17634hardcode_automatic=$hardcode_automatic
17635
17636# Set to yes if linker adds runtime paths of dependent libraries
17637# to runtime path list.
17638inherit_rpath=$inherit_rpath
17639
17640# Whether libtool must link a program against all its dependency libraries.
17641link_all_deplibs=$link_all_deplibs
17642
17643# Fix the shell variable \$srcfile for the compiler.
17644fix_srcfile_path=$lt_fix_srcfile_path
17645
17646# Set to "yes" if exported symbols are required.
17647always_export_symbols=$always_export_symbols
17648
17649# The commands to list exported symbols.
17650export_symbols_cmds=$lt_export_symbols_cmds
17651
17652# Symbols that should not be listed in the preloaded symbols.
17653exclude_expsyms=$lt_exclude_expsyms
17654
17655# Symbols that must always be exported.
17656include_expsyms=$lt_include_expsyms
17657
17658# Commands necessary for linking programs (against libraries) with templates.
17659prelink_cmds=$lt_prelink_cmds
17660
17661# Specify filename containing input files.
17662file_list_spec=$lt_file_list_spec
17663
17664# How to hardcode a shared library path into an executable.
17665hardcode_action=$hardcode_action
17666
17667# ### END LIBTOOL CONFIG
17668
17669_LT_EOF
17670
17671 case $host_os in
17672 aix3*)
17673 cat <<\_LT_EOF >> "$cfgfile"
17674# AIX sometimes has problems with the GCC collect2 program. For some
17675# reason, if we set the COLLECT_NAMES environment variable, the problems
17676# vanish in a puff of smoke.
17677if test "X${COLLECT_NAMES+set}" != Xset; then
17678 COLLECT_NAMES=
17679 export COLLECT_NAMES
17680fi
17681_LT_EOF
17682 ;;
17683 esac
17684
17685
17686ltmain="$ac_aux_dir/ltmain.sh"
17687
17688
17689 # We use sed instead of cat because bash on DJGPP gets confused if
17690 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17691 # text mode, it properly converts lines to CR/LF. This bash problem
17692 # is reportedly fixed, but why not run on old versions too?
17693 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17694 || (rm -f "$cfgfile"; exit 1)
17695
17696 case $xsi_shell in
17697 yes)
17698 cat << \_LT_EOF >> "$cfgfile"
718a6fd8 17699
d7040cdb
SE
17700# func_dirname file append nondir_replacement
17701# Compute the dirname of FILE. If nonempty, add APPEND to the result,
17702# otherwise set result to NONDIR_REPLACEMENT.
17703func_dirname ()
17704{
17705 case ${1} in
17706 */*) func_dirname_result="${1%/*}${2}" ;;
17707 * ) func_dirname_result="${3}" ;;
17708 esac
17709}
17710
17711# func_basename file
17712func_basename ()
17713{
17714 func_basename_result="${1##*/}"
17715}
17716
718a6fd8
SE
17717# func_dirname_and_basename file append nondir_replacement
17718# perform func_basename and func_dirname in a single function
17719# call:
17720# dirname: Compute the dirname of FILE. If nonempty,
17721# add APPEND to the result, otherwise set result
17722# to NONDIR_REPLACEMENT.
17723# value returned in "$func_dirname_result"
17724# basename: Compute filename of FILE.
17725# value retuned in "$func_basename_result"
17726# Implementation must be kept synchronized with func_dirname
17727# and func_basename. For efficiency, we do not delegate to
17728# those functions but instead duplicate the functionality here.
17729func_dirname_and_basename ()
17730{
17731 case ${1} in
17732 */*) func_dirname_result="${1%/*}${2}" ;;
17733 * ) func_dirname_result="${3}" ;;
17734 esac
17735 func_basename_result="${1##*/}"
17736}
17737
d7040cdb
SE
17738# func_stripname prefix suffix name
17739# strip PREFIX and SUFFIX off of NAME.
17740# PREFIX and SUFFIX must not contain globbing or regex special
17741# characters, hashes, percent signs, but SUFFIX may contain a leading
17742# dot (in which case that matches only a dot).
17743func_stripname ()
17744{
17745 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17746 # positional parameters, so assign one to ordinary parameter first.
17747 func_stripname_result=${3}
17748 func_stripname_result=${func_stripname_result#"${1}"}
17749 func_stripname_result=${func_stripname_result%"${2}"}
17750}
17751
17752# func_opt_split
17753func_opt_split ()
17754{
17755 func_opt_split_opt=${1%%=*}
17756 func_opt_split_arg=${1#*=}
17757}
17758
17759# func_lo2o object
17760func_lo2o ()
17761{
17762 case ${1} in
17763 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17764 *) func_lo2o_result=${1} ;;
17765 esac
17766}
718a6fd8
SE
17767
17768# func_xform libobj-or-source
17769func_xform ()
17770{
17771 func_xform_result=${1%.*}.lo
17772}
17773
17774# func_arith arithmetic-term...
17775func_arith ()
17776{
17777 func_arith_result=$(( $* ))
17778}
17779
17780# func_len string
17781# STRING may not start with a hyphen.
17782func_len ()
17783{
17784 func_len_result=${#1}
17785}
17786
d7040cdb
SE
17787_LT_EOF
17788 ;;
17789 *) # Bourne compatible functions.
17790 cat << \_LT_EOF >> "$cfgfile"
718a6fd8 17791
d7040cdb
SE
17792# func_dirname file append nondir_replacement
17793# Compute the dirname of FILE. If nonempty, add APPEND to the result,
17794# otherwise set result to NONDIR_REPLACEMENT.
17795func_dirname ()
17796{
17797 # Extract subdirectory from the argument.
17798 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
17799 if test "X$func_dirname_result" = "X${1}"; then
17800 func_dirname_result="${3}"
17801 else
17802 func_dirname_result="$func_dirname_result${2}"
17803 fi
17804}
17805
17806# func_basename file
17807func_basename ()
17808{
17809 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
17810}
17811
718a6fd8 17812
d7040cdb
SE
17813# func_stripname prefix suffix name
17814# strip PREFIX and SUFFIX off of NAME.
17815# PREFIX and SUFFIX must not contain globbing or regex special
17816# characters, hashes, percent signs, but SUFFIX may contain a leading
17817# dot (in which case that matches only a dot).
17818# func_strip_suffix prefix name
17819func_stripname ()
17820{
17821 case ${2} in
17822 .*) func_stripname_result=`$ECHO "X${3}" \
17823 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
17824 *) func_stripname_result=`$ECHO "X${3}" \
17825 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
17826 esac
17827}
17828
17829# sed scripts:
17830my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17831my_sed_long_arg='1s/^-[^=]*=//'
17832
17833# func_opt_split
17834func_opt_split ()
17835{
17836 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
17837 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
17838}
17839
17840# func_lo2o object
17841func_lo2o ()
17842{
17843 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
17844}
718a6fd8
SE
17845
17846# func_xform libobj-or-source
17847func_xform ()
17848{
17849 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
17850}
17851
17852# func_arith arithmetic-term...
17853func_arith ()
17854{
17855 func_arith_result=`expr "$@"`
17856}
17857
17858# func_len string
17859# STRING may not start with a hyphen.
17860func_len ()
17861{
17862 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17863}
17864
d7040cdb
SE
17865_LT_EOF
17866esac
17867
17868case $lt_shell_append in
17869 yes)
17870 cat << \_LT_EOF >> "$cfgfile"
17871
17872# func_append var value
17873# Append VALUE to the end of shell variable VAR.
17874func_append ()
17875{
17876 eval "$1+=\$2"
17877}
17878_LT_EOF
17879 ;;
17880 *)
17881 cat << \_LT_EOF >> "$cfgfile"
17882
17883# func_append var value
17884# Append VALUE to the end of shell variable VAR.
17885func_append ()
17886{
17887 eval "$1=\$$1\$2"
17888}
718a6fd8 17889
d7040cdb
SE
17890_LT_EOF
17891 ;;
17892 esac
17893
17894
17895 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17896 || (rm -f "$cfgfile"; exit 1)
17897
17898 mv -f "$cfgfile" "$ofile" ||
17899 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17900 chmod +x "$ofile"
17901
f5385ebf 17902 ;;
81ecdfbb 17903 "default-1":C)
20e95c23
DJ
17904 for ac_file in $CONFIG_FILES; do
17905 # Support "outfile[:infile[:infile...]]"
17906 case "$ac_file" in
17907 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17908 esac
17909 # PO directories have a Makefile.in generated from Makefile.in.in.
17910 case "$ac_file" in */Makefile.in)
17911 # Adjust a relative srcdir.
17912 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
17913 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
17914 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
17915 # In autoconf-2.13 it is called $ac_given_srcdir.
17916 # In autoconf-2.50 it is called $srcdir.
17917 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
17918 case "$ac_given_srcdir" in
17919 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
17920 /*) top_srcdir="$ac_given_srcdir" ;;
17921 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
17922 esac
17923 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
17924 rm -f "$ac_dir/POTFILES"
17925 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
17926 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
17927 POMAKEFILEDEPS="POTFILES.in"
17928 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
17929 # on $ac_dir but don't depend on user-specified configuration
17930 # parameters.
17931 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
17932 # The LINGUAS file contains the set of available languages.
17933 if test -n "$OBSOLETE_ALL_LINGUAS"; then
17934 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
17935 fi
17936 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
17937 # Hide the ALL_LINGUAS assigment from automake.
17938 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
17939 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
17940 else
17941 # The set of available languages was given in configure.in.
17942 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
17943 fi
17944 case "$ac_given_srcdir" in
17945 .) srcdirpre= ;;
17946 *) srcdirpre='$(srcdir)/' ;;
17947 esac
17948 POFILES=
17949 GMOFILES=
17950 UPDATEPOFILES=
17951 DUMMYPOFILES=
17952 for lang in $ALL_LINGUAS; do
17953 POFILES="$POFILES $srcdirpre$lang.po"
17954 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
17955 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
17956 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
17957 done
17958 # CATALOGS depends on both $ac_dir and the user's LINGUAS
17959 # environment variable.
17960 INST_LINGUAS=
17961 if test -n "$ALL_LINGUAS"; then
17962 for presentlang in $ALL_LINGUAS; do
17963 useit=no
17964 if test "%UNSET%" != "$LINGUAS"; then
17965 desiredlanguages="$LINGUAS"
17966 else
17967 desiredlanguages="$ALL_LINGUAS"
17968 fi
17969 for desiredlang in $desiredlanguages; do
17970 # Use the presentlang catalog if desiredlang is
17971 # a. equal to presentlang, or
17972 # b. a variant of presentlang (because in this case,
17973 # presentlang can be used as a fallback for messages
17974 # which are not translated in the desiredlang catalog).
17975 case "$desiredlang" in
17976 "$presentlang"*) useit=yes;;
17977 esac
17978 done
17979 if test $useit = yes; then
17980 INST_LINGUAS="$INST_LINGUAS $presentlang"
17981 fi
17982 done
17983 fi
17984 CATALOGS=
17985 if test -n "$INST_LINGUAS"; then
17986 for lang in $INST_LINGUAS; do
17987 CATALOGS="$CATALOGS $lang.gmo"
17988 done
17989 fi
17990 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
17991 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"
17992 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
17993 if test -f "$f"; then
17994 case "$f" in
17995 *.orig | *.bak | *~) ;;
17996 *) cat "$f" >> "$ac_dir/Makefile" ;;
17997 esac
17998 fi
17999 done
18000 fi
18001 ;;
18002 esac
18003 done ;;
81ecdfbb 18004 "bfd_stdint.h":C)
d5efd9fc
AM
18005if test "$GCC" = yes; then
18006 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
18007else
18008 echo "/* generated for $CC */" > tmp-stdint.h
18009fi
18010
18011sed 's/^ *//' >> tmp-stdint.h <<EOF
18012
18013 #ifndef GCC_GENERATED_STDINT_H
18014 #define GCC_GENERATED_STDINT_H 1
18015
18016 #include <sys/types.h>
18017EOF
18018
18019if test "$acx_cv_header_stdint" != stdint.h; then
18020 echo "#include <stddef.h>" >> tmp-stdint.h
18021fi
18022if test "$acx_cv_header_stdint" != stddef.h; then
18023 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
18024fi
18025
18026sed 's/^ *//' >> tmp-stdint.h <<EOF
18027 /* glibc uses these symbols as guards to prevent redefinitions. */
18028 #ifdef __int8_t_defined
18029 #define _INT8_T
18030 #define _INT16_T
18031 #define _INT32_T
18032 #endif
18033 #ifdef __uint32_t_defined
18034 #define _UINT32_T
18035 #endif
18036
18037EOF
18038
18039# ----------------- done header, emit basic int types -------------
18040if test "$acx_cv_header_stdint" = stddef.h; then
18041 sed 's/^ *//' >> tmp-stdint.h <<EOF
18042
18043 #ifndef _UINT8_T
18044 #define _UINT8_T
18045 #ifndef __uint8_t_defined
18046 #define __uint8_t_defined
18047 typedef unsigned $acx_cv_type_int8_t uint8_t;
18048 #endif
18049 #endif
18050
18051 #ifndef _UINT16_T
18052 #define _UINT16_T
18053 #ifndef __uint16_t_defined
18054 #define __uint16_t_defined
18055 typedef unsigned $acx_cv_type_int16_t uint16_t;
18056 #endif
18057 #endif
18058
18059 #ifndef _UINT32_T
18060 #define _UINT32_T
18061 #ifndef __uint32_t_defined
18062 #define __uint32_t_defined
18063 typedef unsigned $acx_cv_type_int32_t uint32_t;
18064 #endif
18065 #endif
18066
18067 #ifndef _INT8_T
18068 #define _INT8_T
18069 #ifndef __int8_t_defined
18070 #define __int8_t_defined
18071 typedef $acx_cv_type_int8_t int8_t;
18072 #endif
18073 #endif
18074
18075 #ifndef _INT16_T
18076 #define _INT16_T
18077 #ifndef __int16_t_defined
18078 #define __int16_t_defined
18079 typedef $acx_cv_type_int16_t int16_t;
18080 #endif
18081 #endif
18082
18083 #ifndef _INT32_T
18084 #define _INT32_T
18085 #ifndef __int32_t_defined
18086 #define __int32_t_defined
18087 typedef $acx_cv_type_int32_t int32_t;
18088 #endif
18089 #endif
18090EOF
18091elif test "$ac_cv_type_u_int32_t" = yes; then
18092 sed 's/^ *//' >> tmp-stdint.h <<EOF
18093
18094 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
18095 #ifndef _INT8_T
18096 #define _INT8_T
18097 #endif
18098 #ifndef _INT16_T
18099 #define _INT16_T
18100 #endif
18101 #ifndef _INT32_T
18102 #define _INT32_T
18103 #endif
18104
18105 #ifndef _UINT8_T
18106 #define _UINT8_T
18107 #ifndef __uint8_t_defined
18108 #define __uint8_t_defined
18109 typedef u_int8_t uint8_t;
18110 #endif
18111 #endif
18112
18113 #ifndef _UINT16_T
18114 #define _UINT16_T
18115 #ifndef __uint16_t_defined
18116 #define __uint16_t_defined
18117 typedef u_int16_t uint16_t;
18118 #endif
18119 #endif
18120
18121 #ifndef _UINT32_T
18122 #define _UINT32_T
18123 #ifndef __uint32_t_defined
18124 #define __uint32_t_defined
18125 typedef u_int32_t uint32_t;
18126 #endif
18127 #endif
18128EOF
18129else
18130 sed 's/^ *//' >> tmp-stdint.h <<EOF
18131
18132 /* Some systems have guard macros to prevent redefinitions, define them. */
18133 #ifndef _INT8_T
18134 #define _INT8_T
18135 #endif
18136 #ifndef _INT16_T
18137 #define _INT16_T
18138 #endif
18139 #ifndef _INT32_T
18140 #define _INT32_T
18141 #endif
18142 #ifndef _UINT8_T
18143 #define _UINT8_T
18144 #endif
18145 #ifndef _UINT16_T
18146 #define _UINT16_T
18147 #endif
18148 #ifndef _UINT32_T
18149 #define _UINT32_T
18150 #endif
18151EOF
18152fi
18153
18154# ------------- done basic int types, emit int64_t types ------------
18155if test "$ac_cv_type_uint64_t" = yes; then
18156 sed 's/^ *//' >> tmp-stdint.h <<EOF
18157
18158 /* system headers have good uint64_t and int64_t */
18159 #ifndef _INT64_T
18160 #define _INT64_T
18161 #endif
18162 #ifndef _UINT64_T
18163 #define _UINT64_T
18164 #endif
18165EOF
18166elif test "$ac_cv_type_u_int64_t" = yes; then
18167 sed 's/^ *//' >> tmp-stdint.h <<EOF
18168
18169 /* system headers have an u_int64_t (and int64_t) */
18170 #ifndef _INT64_T
18171 #define _INT64_T
18172 #endif
18173 #ifndef _UINT64_T
18174 #define _UINT64_T
18175 #ifndef __uint64_t_defined
18176 #define __uint64_t_defined
18177 typedef u_int64_t uint64_t;
18178 #endif
18179 #endif
18180EOF
18181elif test -n "$acx_cv_type_int64_t"; then
18182 sed 's/^ *//' >> tmp-stdint.h <<EOF
18183
18184 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
18185 #ifndef _INT64_T
18186 #define _INT64_T
18187 typedef $acx_cv_type_int64_t int64_t;
18188 #endif
18189 #ifndef _UINT64_T
18190 #define _UINT64_T
18191 #ifndef __uint64_t_defined
18192 #define __uint64_t_defined
18193 typedef unsigned $acx_cv_type_int64_t uint64_t;
18194 #endif
18195 #endif
18196EOF
18197else
18198 sed 's/^ *//' >> tmp-stdint.h <<EOF
18199
18200 /* some common heuristics for int64_t, using compiler-specific tests */
18201 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
18202 #ifndef _INT64_T
18203 #define _INT64_T
18204 #ifndef __int64_t_defined
18205 typedef long long int64_t;
18206 #endif
18207 #endif
18208 #ifndef _UINT64_T
18209 #define _UINT64_T
18210 typedef unsigned long long uint64_t;
18211 #endif
18212
18213 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
18214 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
18215 does not implement __extension__. But that compiler doesn't define
18216 __GNUC_MINOR__. */
18217 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
18218 # define __extension__
18219 # endif
18220
18221 # ifndef _INT64_T
18222 # define _INT64_T
18223 __extension__ typedef long long int64_t;
18224 # endif
18225 # ifndef _UINT64_T
18226 # define _UINT64_T
18227 __extension__ typedef unsigned long long uint64_t;
18228 # endif
18229
18230 #elif !defined __STRICT_ANSI__
18231 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
18232
18233 # ifndef _INT64_T
18234 # define _INT64_T
18235 typedef __int64 int64_t;
18236 # endif
18237 # ifndef _UINT64_T
18238 # define _UINT64_T
18239 typedef unsigned __int64 uint64_t;
18240 # endif
18241 # endif /* compiler */
18242
18243 #endif /* ANSI version */
18244EOF
18245fi
18246
18247# ------------- done int64_t types, emit intptr types ------------
18248if test "$ac_cv_type_uintptr_t" != yes; then
18249 sed 's/^ *//' >> tmp-stdint.h <<EOF
18250
18251 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
18252 #ifndef __uintptr_t_defined
18253 typedef u$acx_cv_type_intptr_t uintptr_t;
18254 #endif
18255 #ifndef __intptr_t_defined
18256 typedef $acx_cv_type_intptr_t intptr_t;
18257 #endif
18258EOF
18259fi
18260
18261# ------------- done intptr types, emit int_least types ------------
18262if test "$ac_cv_type_int_least32_t" != yes; then
18263 sed 's/^ *//' >> tmp-stdint.h <<EOF
18264
18265 /* Define int_least types */
18266 typedef int8_t int_least8_t;
18267 typedef int16_t int_least16_t;
18268 typedef int32_t int_least32_t;
18269 #ifdef _INT64_T
18270 typedef int64_t int_least64_t;
18271 #endif
18272
18273 typedef uint8_t uint_least8_t;
18274 typedef uint16_t uint_least16_t;
18275 typedef uint32_t uint_least32_t;
18276 #ifdef _UINT64_T
18277 typedef uint64_t uint_least64_t;
18278 #endif
18279EOF
18280fi
18281
18282# ------------- done intptr types, emit int_fast types ------------
18283if test "$ac_cv_type_int_fast32_t" != yes; then
18284 sed 's/^ *//' >> tmp-stdint.h <<EOF
18285
18286 /* Define int_fast types. short is often slow */
18287 typedef int8_t int_fast8_t;
18288 typedef int int_fast16_t;
18289 typedef int32_t int_fast32_t;
18290 #ifdef _INT64_T
18291 typedef int64_t int_fast64_t;
18292 #endif
18293
18294 typedef uint8_t uint_fast8_t;
18295 typedef unsigned int uint_fast16_t;
18296 typedef uint32_t uint_fast32_t;
18297 #ifdef _UINT64_T
18298 typedef uint64_t uint_fast64_t;
18299 #endif
18300EOF
18301fi
18302
18303if test "$ac_cv_type_uintmax_t" != yes; then
18304 sed 's/^ *//' >> tmp-stdint.h <<EOF
18305
18306 /* Define intmax based on what we found */
18307 #ifdef _INT64_T
18308 typedef int64_t intmax_t;
18309 #else
18310 typedef long intmax_t;
18311 #endif
18312 #ifdef _UINT64_T
18313 typedef uint64_t uintmax_t;
18314 #else
18315 typedef unsigned long uintmax_t;
18316 #endif
18317EOF
18318fi
18319
18320sed 's/^ *//' >> tmp-stdint.h <<EOF
18321
18322 #endif /* GCC_GENERATED_STDINT_H */
18323EOF
18324
18325if test -r bfd_stdint.h && cmp -s tmp-stdint.h bfd_stdint.h; then
18326 rm -f tmp-stdint.h
18327else
18328 mv -f tmp-stdint.h bfd_stdint.h
18329fi
18330
18331 ;;
81ecdfbb 18332 "default":C)
20e95c23
DJ
18333case "$srcdir" in
18334 .) srcdirpre= ;;
18335 *) srcdirpre='$(srcdir)/' ;;
18336esac
18337POFILES=
18338GMOFILES=
18339for lang in dummy $OBSOLETE_ALL_LINGUAS; do
18340 if test $lang != dummy; then
18341 POFILES="$POFILES $srcdirpre$lang.po"
18342 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
18343 fi
18344done
18345sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' \
18346 -e '/BLD-POTFILES =/r po/BLD-POTFILES' \
18347 -e "s,@POFILES@,$POFILES," \
18348 -e "s,@GMOFILES@,$GMOFILES," \
18349 po/Makefile.in > po/Makefile ;;
81ecdfbb 18350
5464f5a1 18351 esac
81ecdfbb 18352done # for ac_tag
5464f5a1 18353
5464f5a1 18354
81ecdfbb 18355as_fn_exit 0
5464f5a1 18356_ACEOF
5464f5a1
NN
18357ac_clean_files=$ac_clean_files_save
18358
81ecdfbb
RW
18359test $ac_write_fail = 0 ||
18360 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
18361
5464f5a1
NN
18362
18363# configure is writing to config.log, and then calls config.status.
18364# config.status does its own redirection, appending to config.log.
18365# Unfortunately, on DOS this fails, as config.log is still kept open
18366# by configure, so config.status won't be able to write to it; its
18367# output is simply discarded. So we exec the FD to /dev/null,
18368# effectively closing config.log, so it can be properly (re)opened and
18369# appended to by config.status. When coming back to configure, we
18370# need to make the FD available again.
18371if test "$no_create" != yes; then
18372 ac_cs_success=:
18373 ac_config_status_args=
18374 test "$silent" = yes &&
18375 ac_config_status_args="$ac_config_status_args --quiet"
18376 exec 5>/dev/null
18377 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18378 exec 5>>config.log
18379 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18380 # would make configure fail if this is the last instruction.
81ecdfbb
RW
18381 $ac_cs_success || as_fn_exit $?
18382fi
18383if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18384 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18385$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
5464f5a1 18386fi
252b5132 18387
55c80943 18388
This page took 1.717474 seconds and 4 git commands to generate.