1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for bfd 2.35.50.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7#
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
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 :
18  emulate sh
19  NULLCMD=:
20  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21  # is contrary to our usage.  Disable this feature.
22  alias -g '${1+"$@"}'='"$@"'
23  setopt NO_GLOB_SUBST
24else
25  case `(set -o) 2>/dev/null` in #(
26  *posix*) :
27    set -o posix ;; #(
28  *) :
29     ;;
30esac
31fi
32
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  }
79fi
80
81
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.
90as_myself=
91case $0 in #((
92  *[\\/]* ) as_myself=$0 ;;
93  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96  IFS=$as_save_IFS
97  test -z "$as_dir" && as_dir=.
98    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99  done
100IFS=$as_save_IFS
101
102     ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107  as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111  exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there.  '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135# Use a proper internal environment variable to ensure we don't fall
136  # into an infinite loop, continuously re-executing ourselves.
137  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138    _as_can_reexec=no; export _as_can_reexec;
139    # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147  *v*x* | *x*v* ) as_opts=-vx ;;
148  *v* ) as_opts=-v ;;
149  *x* ) as_opts=-x ;;
150  * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157  fi
158  # We don't want this to propagate to other subprocesses.
159          { _as_can_reexec=; unset _as_can_reexec;}
160if test "x$CONFIG_SHELL" = x; then
161  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162  emulate sh
163  NULLCMD=:
164  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165  # is contrary to our usage.  Disable this feature.
166  alias -g '\${1+\"\$@\"}'='\"\$@\"'
167  setopt NO_GLOB_SUBST
168else
169  case \`(set -o) 2>/dev/null\` in #(
170  *posix*) :
171    set -o posix ;; #(
172  *) :
173     ;;
174esac
175fi
176"
177  as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191  exitcode=1; echo positional parameters were not saved.
192fi
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
195  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199test \$(( 1 + 1 )) = 2 || exit 1
200
201  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205    PATH=/empty FPATH=/empty; export PATH FPATH
206    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208  if (eval "$as_required") 2>/dev/null; then :
209  as_have_required=yes
210else
211  as_have_required=no
212fi
213  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215else
216  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217as_found=false
218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219do
220  IFS=$as_save_IFS
221  test -z "$as_dir" && as_dir=.
222  as_found=:
223  case $as_dir in #(
224	 /*)
225	   for as_base in sh bash ksh sh5; do
226	     # Try only shells that exist, to save several forks.
227	     as_shell=$as_dir/$as_base
228	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230  CONFIG_SHELL=$as_shell as_have_required=yes
231		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  break 2
233fi
234fi
235	   done;;
236       esac
237  as_found=false
238done
239$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241  CONFIG_SHELL=$SHELL as_have_required=yes
242fi; }
243IFS=$as_save_IFS
244
245
246      if test "x$CONFIG_SHELL" != x; then :
247  export CONFIG_SHELL
248             # We cannot yet assume a decent shell, so we have to provide a
249# neutralization value for shells without unset; and this also
250# works around shells that cannot unset nonexistent variables.
251# Preserve -v and -x to the replacement shell.
252BASH_ENV=/dev/null
253ENV=/dev/null
254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255case $- in # ((((
256  *v*x* | *x*v* ) as_opts=-vx ;;
257  *v* ) as_opts=-v ;;
258  *x* ) as_opts=-x ;;
259  * ) as_opts= ;;
260esac
261exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262# Admittedly, this is quite paranoid, since all the known shells bail
263# out after a failed `exec'.
264$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265exit 255
266fi
267
268    if test x$as_have_required = xno; then :
269  $as_echo "$0: This script requires a shell more modern than all"
270  $as_echo "$0: the shells that I found on your system."
271  if test x${ZSH_VERSION+set} = xset ; then
272    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274  else
275    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276$0: including any error possibly output before this
277$0: message. Then install a modern shell, or manually run
278$0: the script under such a shell if you do have one."
279  fi
280  exit 1
281fi
282fi
283fi
284SHELL=${CONFIG_SHELL-/bin/sh}
285export SHELL
286# Unset more variables known to interfere with behavior of common tools.
287CLICOLOR_FORCE= GREP_OPTIONS=
288unset CLICOLOR_FORCE GREP_OPTIONS
289
290## --------------------- ##
291## M4sh Shell Functions. ##
292## --------------------- ##
293# as_fn_unset VAR
294# ---------------
295# Portably unset VAR.
296as_fn_unset ()
297{
298  { eval $1=; unset $1;}
299}
300as_unset=as_fn_unset
301
302# as_fn_set_status STATUS
303# -----------------------
304# Set $? to STATUS, without forking.
305as_fn_set_status ()
306{
307  return $1
308} # as_fn_set_status
309
310# as_fn_exit STATUS
311# -----------------
312# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313as_fn_exit ()
314{
315  set +e
316  as_fn_set_status $1
317  exit $1
318} # as_fn_exit
319
320# as_fn_mkdir_p
321# -------------
322# Create "$as_dir" as a directory, including parents if necessary.
323as_fn_mkdir_p ()
324{
325
326  case $as_dir in #(
327  -*) as_dir=./$as_dir;;
328  esac
329  test -d "$as_dir" || eval $as_mkdir_p || {
330    as_dirs=
331    while :; do
332      case $as_dir in #(
333      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334      *) as_qdir=$as_dir;;
335      esac
336      as_dirs="'$as_qdir' $as_dirs"
337      as_dir=`$as_dirname -- "$as_dir" ||
338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339	 X"$as_dir" : 'X\(//\)[^/]' \| \
340	 X"$as_dir" : 'X\(//\)$' \| \
341	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342$as_echo X"$as_dir" |
343    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344	    s//\1/
345	    q
346	  }
347	  /^X\(\/\/\)[^/].*/{
348	    s//\1/
349	    q
350	  }
351	  /^X\(\/\/\)$/{
352	    s//\1/
353	    q
354	  }
355	  /^X\(\/\).*/{
356	    s//\1/
357	    q
358	  }
359	  s/.*/./; q'`
360      test -d "$as_dir" && break
361    done
362    test -z "$as_dirs" || eval "mkdir $as_dirs"
363  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366} # as_fn_mkdir_p
367
368# as_fn_executable_p FILE
369# -----------------------
370# Test if FILE is an executable regular file.
371as_fn_executable_p ()
372{
373  test -f "$1" && test -x "$1"
374} # as_fn_executable_p
375# as_fn_append VAR VALUE
376# ----------------------
377# Append the text in VALUE to the end of the definition contained in VAR. Take
378# advantage of any shell optimizations that allow amortized linear growth over
379# repeated appends, instead of the typical quadratic growth present in naive
380# implementations.
381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382  eval 'as_fn_append ()
383  {
384    eval $1+=\$2
385  }'
386else
387  as_fn_append ()
388  {
389    eval $1=\$$1\$2
390  }
391fi # as_fn_append
392
393# as_fn_arith ARG...
394# ------------------
395# Perform arithmetic evaluation on the ARGs, and store the result in the
396# global $as_val. Take advantage of shells that can avoid forks. The arguments
397# must be portable across $(()) and expr.
398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399  eval 'as_fn_arith ()
400  {
401    as_val=$(( $* ))
402  }'
403else
404  as_fn_arith ()
405  {
406    as_val=`expr "$@" || test $? -eq 1`
407  }
408fi # as_fn_arith
409
410
411# as_fn_error STATUS ERROR [LINENO LOG_FD]
412# ----------------------------------------
413# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415# script with STATUS, using 1 if that was 0.
416as_fn_error ()
417{
418  as_status=$1; test $as_status -eq 0 && as_status=1
419  if test "$4"; then
420    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422  fi
423  $as_echo "$as_me: error: $2" >&2
424  as_fn_exit $as_status
425} # as_fn_error
426
427if expr a : '\(a\)' >/dev/null 2>&1 &&
428   test "X`expr 00001 : '.*\(...\)'`" = X001; then
429  as_expr=expr
430else
431  as_expr=false
432fi
433
434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435  as_basename=basename
436else
437  as_basename=false
438fi
439
440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441  as_dirname=dirname
442else
443  as_dirname=false
444fi
445
446as_me=`$as_basename -- "$0" ||
447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448	 X"$0" : 'X\(//\)$' \| \
449	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450$as_echo X/"$0" |
451    sed '/^.*\/\([^/][^/]*\)\/*$/{
452	    s//\1/
453	    q
454	  }
455	  /^X\/\(\/\/\)$/{
456	    s//\1/
457	    q
458	  }
459	  /^X\/\(\/\).*/{
460	    s//\1/
461	    q
462	  }
463	  s/.*/./; q'`
464
465# Avoid depending upon Character Ranges.
466as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469as_cr_digits='0123456789'
470as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473  as_lineno_1=$LINENO as_lineno_1a=$LINENO
474  as_lineno_2=$LINENO as_lineno_2a=$LINENO
475  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477  as_me=bfd_$as_me # XXX don't overwrite our caller's configure.lineno
478  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
479  sed -n '
480    p
481    /[$]LINENO/=
482  ' <$as_myself |
483    sed '
484      s/[$]LINENO.*/&-/
485      t lineno
486      b
487      :lineno
488      N
489      :loop
490      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
491      t loop
492      s/-\n.*//
493    ' >$as_me.lineno &&
494  chmod +x "$as_me.lineno" ||
495    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
496
497  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
498  # already done that, so ensure we don't try to do so again and fall
499  # in an infinite loop.  This has already happened in practice.
500  _as_can_reexec=no; export _as_can_reexec
501  # Don't try to exec as it changes $[0], causing all sort of problems
502  # (the dirname of $[0] is not the place where we might find the
503  # original and so on.  Autoconf is especially sensitive to this).
504  . "./$as_me.lineno"
505  # Exit status is that of the last command.
506  exit
507}
508
509ECHO_C= ECHO_N= ECHO_T=
510case `echo -n x` in #(((((
511-n*)
512  case `echo 'xy\c'` in
513  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
514  xy)  ECHO_C='\c';;
515  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
516       ECHO_T='	';;
517  esac;;
518*)
519  ECHO_N='-n';;
520esac
521
522rm -f conf$$ conf$$.exe conf$$.file
523if test -d conf$$.dir; then
524  rm -f conf$$.dir/conf$$.file
525else
526  rm -f conf$$.dir
527  mkdir conf$$.dir 2>/dev/null
528fi
529if (echo >conf$$.file) 2>/dev/null; then
530  if ln -s conf$$.file conf$$ 2>/dev/null; then
531    as_ln_s='ln -s'
532    # ... but there are two gotchas:
533    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
534    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
535    # In both cases, we have to default to `cp -pR'.
536    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
537      as_ln_s='cp -pR'
538  elif ln conf$$.file conf$$ 2>/dev/null; then
539    as_ln_s=ln
540  else
541    as_ln_s='cp -pR'
542  fi
543else
544  as_ln_s='cp -pR'
545fi
546rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
547rmdir conf$$.dir 2>/dev/null
548
549if mkdir -p . 2>/dev/null; then
550  as_mkdir_p='mkdir -p "$as_dir"'
551else
552  test -d ./-p && rmdir ./-p
553  as_mkdir_p=false
554fi
555
556as_test_x='test -x'
557as_executable_p=as_fn_executable_p
558
559# Sed expression to map a string onto a valid CPP name.
560as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
561
562# Sed expression to map a string onto a valid variable name.
563as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
564
565SHELL=${CONFIG_SHELL-/bin/sh}
566
567
568test -n "$DJDIR" || exec 7<&0 </dev/null
569exec 6>&1
570
571# Name of the host.
572# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
573# so uname gets run too.
574ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
575
576#
577# Initializations.
578#
579ac_default_prefix=/usr/local
580ac_clean_files=
581ac_config_libobj_dir=.
582LIBOBJS=
583cross_compiling=no
584subdirs=
585MFLAGS=
586MAKEFLAGS=
587
588# Identity of this package.
589PACKAGE_NAME='bfd'
590PACKAGE_TARNAME='bfd'
591PACKAGE_VERSION='2.35.50'
592PACKAGE_STRING='bfd 2.35.50'
593PACKAGE_BUGREPORT=''
594PACKAGE_URL=''
595
596ac_unique_file="libbfd.c"
597# Factoring default headers for most tests.
598ac_includes_default="\
599#include <stdio.h>
600#ifdef HAVE_SYS_TYPES_H
601# include <sys/types.h>
602#endif
603#ifdef HAVE_SYS_STAT_H
604# include <sys/stat.h>
605#endif
606#ifdef STDC_HEADERS
607# include <stdlib.h>
608# include <stddef.h>
609#else
610# ifdef HAVE_STDLIB_H
611#  include <stdlib.h>
612# endif
613#endif
614#ifdef HAVE_STRING_H
615# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
616#  include <memory.h>
617# endif
618# include <string.h>
619#endif
620#ifdef HAVE_STRINGS_H
621# include <strings.h>
622#endif
623#ifdef HAVE_INTTYPES_H
624# include <inttypes.h>
625#endif
626#ifdef HAVE_STDINT_H
627# include <stdint.h>
628#endif
629#ifdef HAVE_UNISTD_H
630# include <unistd.h>
631#endif"
632
633ac_header_list=
634ac_subst_vars='am__EXEEXT_FALSE
635am__EXEEXT_TRUE
636LTLIBOBJS
637LIBOBJS
638bfd_ufile_ptr
639bfd_file_ptr
640lt_cv_dlopen_libs
641supports_plugins
642COREFLAG
643COREFILE
644havevecs
645tdefaults
646bfd_default_target_size
647bfd_machines
648bfd_backends
649all_backends
650bfd64_libs
651wordsize
652TDEFINES
653SHARED_LIBADD
654SHARED_LDFLAGS
655LIBM
656zlibinc
657zlibdir
658EXEEXT_FOR_BUILD
659CC_FOR_BUILD
660BFD_HOSTPTR_T
661BFD_HOST_U_64_BIT
662BFD_HOST_64_BIT
663BFD_HOST_64_BIT_DEFINED
664BFD_HOST_64BIT_LONG_LONG
665BFD_HOST_64BIT_LONG
666HDEFINES
667MSGMERGE
668MSGFMT
669MKINSTALLDIRS
670CATOBJEXT
671GENCAT
672INSTOBJEXT
673DATADIRNAME
674CATALOGS
675POSUB
676GMSGFMT
677XGETTEXT
678INCINTL
679LIBINTL_DEP
680LIBINTL
681USE_NLS
682bfdincludedir
683bfdlibdir
684target_noncanonical
685host_noncanonical
686INSTALL_LIBBFD_FALSE
687INSTALL_LIBBFD_TRUE
688GENINSRC_NEVER_FALSE
689GENINSRC_NEVER_TRUE
690MAINT
691MAINTAINER_MODE_FALSE
692MAINTAINER_MODE_TRUE
693WARN_WRITE_STRINGS
694NO_WERROR
695WARN_CFLAGS_FOR_BUILD
696WARN_CFLAGS
697REPORT_BUGS_TEXI
698REPORT_BUGS_TO
699PKGVERSION
700DEBUGDIR
701PLUGINS_FALSE
702PLUGINS_TRUE
703LARGEFILE_CPPFLAGS
704OTOOL64
705OTOOL
706LIPO
707NMEDIT
708DSYMUTIL
709OBJDUMP
710LN_S
711NM
712ac_ct_DUMPBIN
713DUMPBIN
714LD
715FGREP
716SED
717LIBTOOL
718EGREP
719GREP
720CPP
721RANLIB
722AR
723AM_BACKSLASH
724AM_DEFAULT_VERBOSITY
725AM_DEFAULT_V
726AM_V
727am__fastdepCC_FALSE
728am__fastdepCC_TRUE
729CCDEPMODE
730am__nodep
731AMDEPBACKSLASH
732AMDEP_FALSE
733AMDEP_TRUE
734am__quote
735am__include
736DEPDIR
737am__untar
738am__tar
739AMTAR
740am__leading_dot
741SET_MAKE
742AWK
743mkdir_p
744MKDIR_P
745INSTALL_STRIP_PROGRAM
746STRIP
747install_sh
748MAKEINFO
749AUTOHEADER
750AUTOMAKE
751AUTOCONF
752ACLOCAL
753VERSION
754PACKAGE
755CYGPATH_W
756am__isrc
757INSTALL_DATA
758INSTALL_SCRIPT
759INSTALL_PROGRAM
760OBJEXT
761EXEEXT
762ac_ct_CC
763CPPFLAGS
764LDFLAGS
765CFLAGS
766CC
767target_os
768target_vendor
769target_cpu
770target
771host_os
772host_vendor
773host_cpu
774host
775build_os
776build_vendor
777build_cpu
778build
779target_alias
780host_alias
781build_alias
782LIBS
783ECHO_T
784ECHO_N
785ECHO_C
786DEFS
787mandir
788localedir
789libdir
790psdir
791pdfdir
792dvidir
793htmldir
794infodir
795docdir
796oldincludedir
797includedir
798localstatedir
799sharedstatedir
800sysconfdir
801datadir
802datarootdir
803libexecdir
804sbindir
805bindir
806program_transform_name
807prefix
808exec_prefix
809PACKAGE_URL
810PACKAGE_BUGREPORT
811PACKAGE_STRING
812PACKAGE_VERSION
813PACKAGE_TARNAME
814PACKAGE_NAME
815PATH_SEPARATOR
816SHELL'
817ac_subst_files=''
818ac_user_opts='
819enable_option_checking
820enable_dependency_tracking
821enable_silent_rules
822enable_shared
823enable_static
824with_pic
825enable_fast_install
826with_gnu_ld
827enable_libtool_lock
828enable_plugins
829enable_largefile
830enable_64_bit_bfd
831enable_targets
832enable_64_bit_archive
833with_mmap
834enable_secureplt
835enable_separate_code
836enable_leading_mingw64_underscores
837with_separate_debug_dir
838with_pkgversion
839with_bugurl
840enable_werror
841enable_build_warnings
842enable_maintainer_mode
843enable_install_libbfd
844enable_nls
845with_system_zlib
846'
847      ac_precious_vars='build_alias
848host_alias
849target_alias
850CC
851CFLAGS
852LDFLAGS
853LIBS
854CPPFLAGS
855CPP'
856
857
858# Initialize some variables set by options.
859ac_init_help=
860ac_init_version=false
861ac_unrecognized_opts=
862ac_unrecognized_sep=
863# The variables have the same names as the options, with
864# dashes changed to underlines.
865cache_file=/dev/null
866exec_prefix=NONE
867no_create=
868no_recursion=
869prefix=NONE
870program_prefix=NONE
871program_suffix=NONE
872program_transform_name=s,x,x,
873silent=
874site=
875srcdir=
876verbose=
877x_includes=NONE
878x_libraries=NONE
879
880# Installation directory options.
881# These are left unexpanded so users can "make install exec_prefix=/foo"
882# and all the variables that are supposed to be based on exec_prefix
883# by default will actually change.
884# Use braces instead of parens because sh, perl, etc. also accept them.
885# (The list follows the same order as the GNU Coding Standards.)
886bindir='${exec_prefix}/bin'
887sbindir='${exec_prefix}/sbin'
888libexecdir='${exec_prefix}/libexec'
889datarootdir='${prefix}/share'
890datadir='${datarootdir}'
891sysconfdir='${prefix}/etc'
892sharedstatedir='${prefix}/com'
893localstatedir='${prefix}/var'
894includedir='${prefix}/include'
895oldincludedir='/usr/include'
896docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
897infodir='${datarootdir}/info'
898htmldir='${docdir}'
899dvidir='${docdir}'
900pdfdir='${docdir}'
901psdir='${docdir}'
902libdir='${exec_prefix}/lib'
903localedir='${datarootdir}/locale'
904mandir='${datarootdir}/man'
905
906ac_prev=
907ac_dashdash=
908for ac_option
909do
910  # If the previous option needs an argument, assign it.
911  if test -n "$ac_prev"; then
912    eval $ac_prev=\$ac_option
913    ac_prev=
914    continue
915  fi
916
917  case $ac_option in
918  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
919  *=)   ac_optarg= ;;
920  *)    ac_optarg=yes ;;
921  esac
922
923  # Accept the important Cygnus configure options, so we can diagnose typos.
924
925  case $ac_dashdash$ac_option in
926  --)
927    ac_dashdash=yes ;;
928
929  -bindir | --bindir | --bindi | --bind | --bin | --bi)
930    ac_prev=bindir ;;
931  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
932    bindir=$ac_optarg ;;
933
934  -build | --build | --buil | --bui | --bu)
935    ac_prev=build_alias ;;
936  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
937    build_alias=$ac_optarg ;;
938
939  -cache-file | --cache-file | --cache-fil | --cache-fi \
940  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
941    ac_prev=cache_file ;;
942  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
943  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
944    cache_file=$ac_optarg ;;
945
946  --config-cache | -C)
947    cache_file=config.cache ;;
948
949  -datadir | --datadir | --datadi | --datad)
950    ac_prev=datadir ;;
951  -datadir=* | --datadir=* | --datadi=* | --datad=*)
952    datadir=$ac_optarg ;;
953
954  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
955  | --dataroo | --dataro | --datar)
956    ac_prev=datarootdir ;;
957  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
958  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
959    datarootdir=$ac_optarg ;;
960
961  -disable-* | --disable-*)
962    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
963    # Reject names that are not valid shell variable names.
964    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
965      as_fn_error $? "invalid feature name: $ac_useropt"
966    ac_useropt_orig=$ac_useropt
967    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
968    case $ac_user_opts in
969      *"
970"enable_$ac_useropt"
971"*) ;;
972      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
973	 ac_unrecognized_sep=', ';;
974    esac
975    eval enable_$ac_useropt=no ;;
976
977  -docdir | --docdir | --docdi | --doc | --do)
978    ac_prev=docdir ;;
979  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
980    docdir=$ac_optarg ;;
981
982  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
983    ac_prev=dvidir ;;
984  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
985    dvidir=$ac_optarg ;;
986
987  -enable-* | --enable-*)
988    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
989    # Reject names that are not valid shell variable names.
990    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
991      as_fn_error $? "invalid feature name: $ac_useropt"
992    ac_useropt_orig=$ac_useropt
993    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
994    case $ac_user_opts in
995      *"
996"enable_$ac_useropt"
997"*) ;;
998      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
999	 ac_unrecognized_sep=', ';;
1000    esac
1001    eval enable_$ac_useropt=\$ac_optarg ;;
1002
1003  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1004  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1005  | --exec | --exe | --ex)
1006    ac_prev=exec_prefix ;;
1007  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1008  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1009  | --exec=* | --exe=* | --ex=*)
1010    exec_prefix=$ac_optarg ;;
1011
1012  -gas | --gas | --ga | --g)
1013    # Obsolete; use --with-gas.
1014    with_gas=yes ;;
1015
1016  -help | --help | --hel | --he | -h)
1017    ac_init_help=long ;;
1018  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1019    ac_init_help=recursive ;;
1020  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1021    ac_init_help=short ;;
1022
1023  -host | --host | --hos | --ho)
1024    ac_prev=host_alias ;;
1025  -host=* | --host=* | --hos=* | --ho=*)
1026    host_alias=$ac_optarg ;;
1027
1028  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1029    ac_prev=htmldir ;;
1030  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1031  | --ht=*)
1032    htmldir=$ac_optarg ;;
1033
1034  -includedir | --includedir | --includedi | --included | --include \
1035  | --includ | --inclu | --incl | --inc)
1036    ac_prev=includedir ;;
1037  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1038  | --includ=* | --inclu=* | --incl=* | --inc=*)
1039    includedir=$ac_optarg ;;
1040
1041  -infodir | --infodir | --infodi | --infod | --info | --inf)
1042    ac_prev=infodir ;;
1043  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1044    infodir=$ac_optarg ;;
1045
1046  -libdir | --libdir | --libdi | --libd)
1047    ac_prev=libdir ;;
1048  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1049    libdir=$ac_optarg ;;
1050
1051  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1052  | --libexe | --libex | --libe)
1053    ac_prev=libexecdir ;;
1054  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1055  | --libexe=* | --libex=* | --libe=*)
1056    libexecdir=$ac_optarg ;;
1057
1058  -localedir | --localedir | --localedi | --localed | --locale)
1059    ac_prev=localedir ;;
1060  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1061    localedir=$ac_optarg ;;
1062
1063  -localstatedir | --localstatedir | --localstatedi | --localstated \
1064  | --localstate | --localstat | --localsta | --localst | --locals)
1065    ac_prev=localstatedir ;;
1066  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1067  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1068    localstatedir=$ac_optarg ;;
1069
1070  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1071    ac_prev=mandir ;;
1072  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1073    mandir=$ac_optarg ;;
1074
1075  -nfp | --nfp | --nf)
1076    # Obsolete; use --without-fp.
1077    with_fp=no ;;
1078
1079  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1080  | --no-cr | --no-c | -n)
1081    no_create=yes ;;
1082
1083  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1084  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1085    no_recursion=yes ;;
1086
1087  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1088  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1089  | --oldin | --oldi | --old | --ol | --o)
1090    ac_prev=oldincludedir ;;
1091  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1092  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1093  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1094    oldincludedir=$ac_optarg ;;
1095
1096  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1097    ac_prev=prefix ;;
1098  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1099    prefix=$ac_optarg ;;
1100
1101  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1102  | --program-pre | --program-pr | --program-p)
1103    ac_prev=program_prefix ;;
1104  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1105  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1106    program_prefix=$ac_optarg ;;
1107
1108  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1109  | --program-suf | --program-su | --program-s)
1110    ac_prev=program_suffix ;;
1111  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1112  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1113    program_suffix=$ac_optarg ;;
1114
1115  -program-transform-name | --program-transform-name \
1116  | --program-transform-nam | --program-transform-na \
1117  | --program-transform-n | --program-transform- \
1118  | --program-transform | --program-transfor \
1119  | --program-transfo | --program-transf \
1120  | --program-trans | --program-tran \
1121  | --progr-tra | --program-tr | --program-t)
1122    ac_prev=program_transform_name ;;
1123  -program-transform-name=* | --program-transform-name=* \
1124  | --program-transform-nam=* | --program-transform-na=* \
1125  | --program-transform-n=* | --program-transform-=* \
1126  | --program-transform=* | --program-transfor=* \
1127  | --program-transfo=* | --program-transf=* \
1128  | --program-trans=* | --program-tran=* \
1129  | --progr-tra=* | --program-tr=* | --program-t=*)
1130    program_transform_name=$ac_optarg ;;
1131
1132  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1133    ac_prev=pdfdir ;;
1134  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1135    pdfdir=$ac_optarg ;;
1136
1137  -psdir | --psdir | --psdi | --psd | --ps)
1138    ac_prev=psdir ;;
1139  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1140    psdir=$ac_optarg ;;
1141
1142  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1143  | -silent | --silent | --silen | --sile | --sil)
1144    silent=yes ;;
1145
1146  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1147    ac_prev=sbindir ;;
1148  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1149  | --sbi=* | --sb=*)
1150    sbindir=$ac_optarg ;;
1151
1152  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1153  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1154  | --sharedst | --shareds | --shared | --share | --shar \
1155  | --sha | --sh)
1156    ac_prev=sharedstatedir ;;
1157  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1158  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1159  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1160  | --sha=* | --sh=*)
1161    sharedstatedir=$ac_optarg ;;
1162
1163  -site | --site | --sit)
1164    ac_prev=site ;;
1165  -site=* | --site=* | --sit=*)
1166    site=$ac_optarg ;;
1167
1168  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1169    ac_prev=srcdir ;;
1170  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1171    srcdir=$ac_optarg ;;
1172
1173  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1174  | --syscon | --sysco | --sysc | --sys | --sy)
1175    ac_prev=sysconfdir ;;
1176  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1177  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1178    sysconfdir=$ac_optarg ;;
1179
1180  -target | --target | --targe | --targ | --tar | --ta | --t)
1181    ac_prev=target_alias ;;
1182  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1183    target_alias=$ac_optarg ;;
1184
1185  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1186    verbose=yes ;;
1187
1188  -version | --version | --versio | --versi | --vers | -V)
1189    ac_init_version=: ;;
1190
1191  -with-* | --with-*)
1192    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1193    # Reject names that are not valid shell variable names.
1194    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1195      as_fn_error $? "invalid package name: $ac_useropt"
1196    ac_useropt_orig=$ac_useropt
1197    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1198    case $ac_user_opts in
1199      *"
1200"with_$ac_useropt"
1201"*) ;;
1202      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1203	 ac_unrecognized_sep=', ';;
1204    esac
1205    eval with_$ac_useropt=\$ac_optarg ;;
1206
1207  -without-* | --without-*)
1208    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1209    # Reject names that are not valid shell variable names.
1210    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1211      as_fn_error $? "invalid package name: $ac_useropt"
1212    ac_useropt_orig=$ac_useropt
1213    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1214    case $ac_user_opts in
1215      *"
1216"with_$ac_useropt"
1217"*) ;;
1218      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1219	 ac_unrecognized_sep=', ';;
1220    esac
1221    eval with_$ac_useropt=no ;;
1222
1223  --x)
1224    # Obsolete; use --with-x.
1225    with_x=yes ;;
1226
1227  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1228  | --x-incl | --x-inc | --x-in | --x-i)
1229    ac_prev=x_includes ;;
1230  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1231  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1232    x_includes=$ac_optarg ;;
1233
1234  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1235  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1236    ac_prev=x_libraries ;;
1237  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1238  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1239    x_libraries=$ac_optarg ;;
1240
1241  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1242Try \`$0 --help' for more information"
1243    ;;
1244
1245  *=*)
1246    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1247    # Reject names that are not valid shell variable names.
1248    case $ac_envvar in #(
1249      '' | [0-9]* | *[!_$as_cr_alnum]* )
1250      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1251    esac
1252    eval $ac_envvar=\$ac_optarg
1253    export $ac_envvar ;;
1254
1255  *)
1256    # FIXME: should be removed in autoconf 3.0.
1257    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1258    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1259      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1260    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1261    ;;
1262
1263  esac
1264done
1265
1266if test -n "$ac_prev"; then
1267  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1268  as_fn_error $? "missing argument to $ac_option"
1269fi
1270
1271if test -n "$ac_unrecognized_opts"; then
1272  case $enable_option_checking in
1273    no) ;;
1274    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1275    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1276  esac
1277fi
1278
1279# Check all directory arguments for consistency.
1280for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1281		datadir sysconfdir sharedstatedir localstatedir includedir \
1282		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1283		libdir localedir mandir
1284do
1285  eval ac_val=\$$ac_var
1286  # Remove trailing slashes.
1287  case $ac_val in
1288    */ )
1289      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1290      eval $ac_var=\$ac_val;;
1291  esac
1292  # Be sure to have absolute directory names.
1293  case $ac_val in
1294    [\\/$]* | ?:[\\/]* )  continue;;
1295    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1296  esac
1297  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1298done
1299
1300# There might be people who depend on the old broken behavior: `$host'
1301# used to hold the argument of --host etc.
1302# FIXME: To remove some day.
1303build=$build_alias
1304host=$host_alias
1305target=$target_alias
1306
1307# FIXME: To remove some day.
1308if test "x$host_alias" != x; then
1309  if test "x$build_alias" = x; then
1310    cross_compiling=maybe
1311  elif test "x$build_alias" != "x$host_alias"; then
1312    cross_compiling=yes
1313  fi
1314fi
1315
1316ac_tool_prefix=
1317test -n "$host_alias" && ac_tool_prefix=$host_alias-
1318
1319test "$silent" = yes && exec 6>/dev/null
1320
1321
1322ac_pwd=`pwd` && test -n "$ac_pwd" &&
1323ac_ls_di=`ls -di .` &&
1324ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1325  as_fn_error $? "working directory cannot be determined"
1326test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1327  as_fn_error $? "pwd does not report name of working directory"
1328
1329
1330# Find the source files, if location was not specified.
1331if test -z "$srcdir"; then
1332  ac_srcdir_defaulted=yes
1333  # Try the directory containing this script, then the parent directory.
1334  ac_confdir=`$as_dirname -- "$as_myself" ||
1335$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1336	 X"$as_myself" : 'X\(//\)[^/]' \| \
1337	 X"$as_myself" : 'X\(//\)$' \| \
1338	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1339$as_echo X"$as_myself" |
1340    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1341	    s//\1/
1342	    q
1343	  }
1344	  /^X\(\/\/\)[^/].*/{
1345	    s//\1/
1346	    q
1347	  }
1348	  /^X\(\/\/\)$/{
1349	    s//\1/
1350	    q
1351	  }
1352	  /^X\(\/\).*/{
1353	    s//\1/
1354	    q
1355	  }
1356	  s/.*/./; q'`
1357  srcdir=$ac_confdir
1358  if test ! -r "$srcdir/$ac_unique_file"; then
1359    srcdir=..
1360  fi
1361else
1362  ac_srcdir_defaulted=no
1363fi
1364if test ! -r "$srcdir/$ac_unique_file"; then
1365  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1366  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1367fi
1368ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1369ac_abs_confdir=`(
1370	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1371	pwd)`
1372# When building in place, set srcdir=.
1373if test "$ac_abs_confdir" = "$ac_pwd"; then
1374  srcdir=.
1375fi
1376# Remove unnecessary trailing slashes from srcdir.
1377# Double slashes in file names in object file debugging info
1378# mess up M-x gdb in Emacs.
1379case $srcdir in
1380*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1381esac
1382for ac_var in $ac_precious_vars; do
1383  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1384  eval ac_env_${ac_var}_value=\$${ac_var}
1385  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1386  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1387done
1388
1389#
1390# Report the --help message.
1391#
1392if test "$ac_init_help" = "long"; then
1393  # Omit some internal or obsolete options to make the list less imposing.
1394  # This message is too long to be a string in the A/UX 3.1 sh.
1395  cat <<_ACEOF
1396\`configure' configures bfd 2.35.50 to adapt to many kinds of systems.
1397
1398Usage: $0 [OPTION]... [VAR=VALUE]...
1399
1400To assign environment variables (e.g., CC, CFLAGS...), specify them as
1401VAR=VALUE.  See below for descriptions of some of the useful variables.
1402
1403Defaults for the options are specified in brackets.
1404
1405Configuration:
1406  -h, --help              display this help and exit
1407      --help=short        display options specific to this package
1408      --help=recursive    display the short help of all the included packages
1409  -V, --version           display version information and exit
1410  -q, --quiet, --silent   do not print \`checking ...' messages
1411      --cache-file=FILE   cache test results in FILE [disabled]
1412  -C, --config-cache      alias for \`--cache-file=config.cache'
1413  -n, --no-create         do not create output files
1414      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1415
1416Installation directories:
1417  --prefix=PREFIX         install architecture-independent files in PREFIX
1418                          [$ac_default_prefix]
1419  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1420                          [PREFIX]
1421
1422By default, \`make install' will install all the files in
1423\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1424an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1425for instance \`--prefix=\$HOME'.
1426
1427For better control, use the options below.
1428
1429Fine tuning of the installation directories:
1430  --bindir=DIR            user executables [EPREFIX/bin]
1431  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1432  --libexecdir=DIR        program executables [EPREFIX/libexec]
1433  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1434  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1435  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1436  --libdir=DIR            object code libraries [EPREFIX/lib]
1437  --includedir=DIR        C header files [PREFIX/include]
1438  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1439  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1440  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1441  --infodir=DIR           info documentation [DATAROOTDIR/info]
1442  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1443  --mandir=DIR            man documentation [DATAROOTDIR/man]
1444  --docdir=DIR            documentation root [DATAROOTDIR/doc/bfd]
1445  --htmldir=DIR           html documentation [DOCDIR]
1446  --dvidir=DIR            dvi documentation [DOCDIR]
1447  --pdfdir=DIR            pdf documentation [DOCDIR]
1448  --psdir=DIR             ps documentation [DOCDIR]
1449_ACEOF
1450
1451  cat <<\_ACEOF
1452
1453Program names:
1454  --program-prefix=PREFIX            prepend PREFIX to installed program names
1455  --program-suffix=SUFFIX            append SUFFIX to installed program names
1456  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1457
1458System types:
1459  --build=BUILD     configure for building on BUILD [guessed]
1460  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1461  --target=TARGET   configure for building compilers for TARGET [HOST]
1462_ACEOF
1463fi
1464
1465if test -n "$ac_init_help"; then
1466  case $ac_init_help in
1467     short | recursive ) echo "Configuration of bfd 2.35.50:";;
1468   esac
1469  cat <<\_ACEOF
1470
1471Optional Features:
1472  --disable-option-checking  ignore unrecognized --enable/--with options
1473  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1474  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1475  --enable-dependency-tracking
1476                          do not reject slow dependency extractors
1477  --disable-dependency-tracking
1478                          speeds up one-time build
1479  --enable-silent-rules   less verbose build output (undo: "make V=1")
1480  --disable-silent-rules  verbose build output (undo: "make V=0")
1481  --enable-shared[=PKGS]  build shared libraries [default=no]
1482  --enable-static[=PKGS]  build static libraries [default=yes]
1483  --enable-fast-install[=PKGS]
1484                          optimize for fast installation [default=yes]
1485  --disable-libtool-lock  avoid locking (might break parallel builds)
1486  --enable-plugins        Enable support for plugins
1487  --disable-largefile     omit support for large files
1488  --enable-64-bit-bfd     64-bit support (on hosts with narrower word sizes)
1489  --enable-targets        alternative target configurations
1490  --enable-64-bit-archive force 64-bit archives
1491  --enable-secureplt      Default to creating read-only plt entries
1492  --enable-separate-code  enable -z separate-code in ELF linker by default
1493  --enable-leading-mingw64-underscores
1494                          Enable leading underscores on 64 bit mingw targets
1495  --enable-werror         treat compile warnings as errors
1496  --enable-build-warnings enable build-time compiler warnings
1497  --enable-maintainer-mode
1498                          enable make rules and dependencies not useful (and
1499                          sometimes confusing) to the casual installer
1500  --enable-install-libbfd controls installation of libbfd and related headers
1501  --disable-nls           do not use Native Language Support
1502
1503Optional Packages:
1504  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1505  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1506  --with-pic              try to use only PIC/non-PIC objects [default=use
1507                          both]
1508  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1509  --with-mmap             try using mmap for BFD input files if available
1510  --with-separate-debug-dir=DIR
1511                          Look for global separate debug info in DIR
1512                          [[default=LIBDIR/debug]]
1513  --with-pkgversion=PKG   Use PKG in the version string in place of "GNU
1514                          Binutils"
1515  --with-bugurl=URL       Direct users to URL to report a bug
1516  --with-system-zlib      use installed libz
1517
1518Some influential environment variables:
1519  CC          C compiler command
1520  CFLAGS      C compiler flags
1521  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1522              nonstandard directory <lib dir>
1523  LIBS        libraries to pass to the linker, e.g. -l<library>
1524  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1525              you have headers in a nonstandard directory <include dir>
1526  CPP         C preprocessor
1527
1528Use these variables to override the choices made by `configure' or to help
1529it to find libraries and programs with nonstandard names/locations.
1530
1531Report bugs to the package provider.
1532_ACEOF
1533ac_status=$?
1534fi
1535
1536if test "$ac_init_help" = "recursive"; then
1537  # If there are subdirs, report their specific --help.
1538  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1539    test -d "$ac_dir" ||
1540      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1541      continue
1542    ac_builddir=.
1543
1544case "$ac_dir" in
1545.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1546*)
1547  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1548  # A ".." for each directory in $ac_dir_suffix.
1549  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1550  case $ac_top_builddir_sub in
1551  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1552  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1553  esac ;;
1554esac
1555ac_abs_top_builddir=$ac_pwd
1556ac_abs_builddir=$ac_pwd$ac_dir_suffix
1557# for backward compatibility:
1558ac_top_builddir=$ac_top_build_prefix
1559
1560case $srcdir in
1561  .)  # We are building in place.
1562    ac_srcdir=.
1563    ac_top_srcdir=$ac_top_builddir_sub
1564    ac_abs_top_srcdir=$ac_pwd ;;
1565  [\\/]* | ?:[\\/]* )  # Absolute name.
1566    ac_srcdir=$srcdir$ac_dir_suffix;
1567    ac_top_srcdir=$srcdir
1568    ac_abs_top_srcdir=$srcdir ;;
1569  *) # Relative name.
1570    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1571    ac_top_srcdir=$ac_top_build_prefix$srcdir
1572    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1573esac
1574ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1575
1576    cd "$ac_dir" || { ac_status=$?; continue; }
1577    # Check for guested configure.
1578    if test -f "$ac_srcdir/configure.gnu"; then
1579      echo &&
1580      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1581    elif test -f "$ac_srcdir/configure"; then
1582      echo &&
1583      $SHELL "$ac_srcdir/configure" --help=recursive
1584    else
1585      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1586    fi || ac_status=$?
1587    cd "$ac_pwd" || { ac_status=$?; break; }
1588  done
1589fi
1590
1591test -n "$ac_init_help" && exit $ac_status
1592if $ac_init_version; then
1593  cat <<\_ACEOF
1594bfd configure 2.35.50
1595generated by GNU Autoconf 2.69
1596
1597Copyright (C) 2012 Free Software Foundation, Inc.
1598This configure script is free software; the Free Software Foundation
1599gives unlimited permission to copy, distribute and modify it.
1600_ACEOF
1601  exit
1602fi
1603
1604## ------------------------ ##
1605## Autoconf initialization. ##
1606## ------------------------ ##
1607
1608# ac_fn_c_try_compile LINENO
1609# --------------------------
1610# Try to compile conftest.$ac_ext, and return whether this succeeded.
1611ac_fn_c_try_compile ()
1612{
1613  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1614  rm -f conftest.$ac_objext
1615  if { { ac_try="$ac_compile"
1616case "(($ac_try" in
1617  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1618  *) ac_try_echo=$ac_try;;
1619esac
1620eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1621$as_echo "$ac_try_echo"; } >&5
1622  (eval "$ac_compile") 2>conftest.err
1623  ac_status=$?
1624  if test -s conftest.err; then
1625    grep -v '^ *+' conftest.err >conftest.er1
1626    cat conftest.er1 >&5
1627    mv -f conftest.er1 conftest.err
1628  fi
1629  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1630  test $ac_status = 0; } && {
1631	 test -z "$ac_c_werror_flag" ||
1632	 test ! -s conftest.err
1633       } && test -s conftest.$ac_objext; then :
1634  ac_retval=0
1635else
1636  $as_echo "$as_me: failed program was:" >&5
1637sed 's/^/| /' conftest.$ac_ext >&5
1638
1639	ac_retval=1
1640fi
1641  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1642  as_fn_set_status $ac_retval
1643
1644} # ac_fn_c_try_compile
1645
1646# ac_fn_c_try_link LINENO
1647# -----------------------
1648# Try to link conftest.$ac_ext, and return whether this succeeded.
1649ac_fn_c_try_link ()
1650{
1651  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1652  rm -f conftest.$ac_objext conftest$ac_exeext
1653  if { { ac_try="$ac_link"
1654case "(($ac_try" in
1655  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1656  *) ac_try_echo=$ac_try;;
1657esac
1658eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1659$as_echo "$ac_try_echo"; } >&5
1660  (eval "$ac_link") 2>conftest.err
1661  ac_status=$?
1662  if test -s conftest.err; then
1663    grep -v '^ *+' conftest.err >conftest.er1
1664    cat conftest.er1 >&5
1665    mv -f conftest.er1 conftest.err
1666  fi
1667  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1668  test $ac_status = 0; } && {
1669	 test -z "$ac_c_werror_flag" ||
1670	 test ! -s conftest.err
1671       } && test -s conftest$ac_exeext && {
1672	 test "$cross_compiling" = yes ||
1673	 test -x conftest$ac_exeext
1674       }; then :
1675  ac_retval=0
1676else
1677  $as_echo "$as_me: failed program was:" >&5
1678sed 's/^/| /' conftest.$ac_ext >&5
1679
1680	ac_retval=1
1681fi
1682  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1683  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1684  # interfere with the next link command; also delete a directory that is
1685  # left behind by Apple's compiler.  We do this before executing the actions.
1686  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1687  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1688  as_fn_set_status $ac_retval
1689
1690} # ac_fn_c_try_link
1691
1692# ac_fn_c_try_cpp LINENO
1693# ----------------------
1694# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1695ac_fn_c_try_cpp ()
1696{
1697  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1698  if { { ac_try="$ac_cpp conftest.$ac_ext"
1699case "(($ac_try" in
1700  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1701  *) ac_try_echo=$ac_try;;
1702esac
1703eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1704$as_echo "$ac_try_echo"; } >&5
1705  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1706  ac_status=$?
1707  if test -s conftest.err; then
1708    grep -v '^ *+' conftest.err >conftest.er1
1709    cat conftest.er1 >&5
1710    mv -f conftest.er1 conftest.err
1711  fi
1712  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1713  test $ac_status = 0; } > conftest.i && {
1714	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1715	 test ! -s conftest.err
1716       }; then :
1717  ac_retval=0
1718else
1719  $as_echo "$as_me: failed program was:" >&5
1720sed 's/^/| /' conftest.$ac_ext >&5
1721
1722    ac_retval=1
1723fi
1724  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1725  as_fn_set_status $ac_retval
1726
1727} # ac_fn_c_try_cpp
1728
1729# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1730# -------------------------------------------------------
1731# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1732# the include files in INCLUDES and setting the cache variable VAR
1733# accordingly.
1734ac_fn_c_check_header_mongrel ()
1735{
1736  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1737  if eval \${$3+:} false; then :
1738  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1739$as_echo_n "checking for $2... " >&6; }
1740if eval \${$3+:} false; then :
1741  $as_echo_n "(cached) " >&6
1742fi
1743eval ac_res=\$$3
1744	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1745$as_echo "$ac_res" >&6; }
1746else
1747  # Is the header compilable?
1748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1749$as_echo_n "checking $2 usability... " >&6; }
1750cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1751/* end confdefs.h.  */
1752$4
1753#include <$2>
1754_ACEOF
1755if ac_fn_c_try_compile "$LINENO"; then :
1756  ac_header_compiler=yes
1757else
1758  ac_header_compiler=no
1759fi
1760rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1762$as_echo "$ac_header_compiler" >&6; }
1763
1764# Is the header present?
1765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1766$as_echo_n "checking $2 presence... " >&6; }
1767cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1768/* end confdefs.h.  */
1769#include <$2>
1770_ACEOF
1771if ac_fn_c_try_cpp "$LINENO"; then :
1772  ac_header_preproc=yes
1773else
1774  ac_header_preproc=no
1775fi
1776rm -f conftest.err conftest.i conftest.$ac_ext
1777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1778$as_echo "$ac_header_preproc" >&6; }
1779
1780# So?  What about this header?
1781case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1782  yes:no: )
1783    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1784$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1785    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1786$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1787    ;;
1788  no:yes:* )
1789    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1790$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1791    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1792$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1793    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1794$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1795    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1796$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1797    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1798$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1799    ;;
1800esac
1801  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1802$as_echo_n "checking for $2... " >&6; }
1803if eval \${$3+:} false; then :
1804  $as_echo_n "(cached) " >&6
1805else
1806  eval "$3=\$ac_header_compiler"
1807fi
1808eval ac_res=\$$3
1809	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1810$as_echo "$ac_res" >&6; }
1811fi
1812  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1813
1814} # ac_fn_c_check_header_mongrel
1815
1816# ac_fn_c_try_run LINENO
1817# ----------------------
1818# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1819# that executables *can* be run.
1820ac_fn_c_try_run ()
1821{
1822  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1823  if { { ac_try="$ac_link"
1824case "(($ac_try" in
1825  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1826  *) ac_try_echo=$ac_try;;
1827esac
1828eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1829$as_echo "$ac_try_echo"; } >&5
1830  (eval "$ac_link") 2>&5
1831  ac_status=$?
1832  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1833  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1834  { { case "(($ac_try" in
1835  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1836  *) ac_try_echo=$ac_try;;
1837esac
1838eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1839$as_echo "$ac_try_echo"; } >&5
1840  (eval "$ac_try") 2>&5
1841  ac_status=$?
1842  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1843  test $ac_status = 0; }; }; then :
1844  ac_retval=0
1845else
1846  $as_echo "$as_me: program exited with status $ac_status" >&5
1847       $as_echo "$as_me: failed program was:" >&5
1848sed 's/^/| /' conftest.$ac_ext >&5
1849
1850       ac_retval=$ac_status
1851fi
1852  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1853  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1854  as_fn_set_status $ac_retval
1855
1856} # ac_fn_c_try_run
1857
1858# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1859# -------------------------------------------------------
1860# Tests whether HEADER exists and can be compiled using the include files in
1861# INCLUDES, setting the cache variable VAR accordingly.
1862ac_fn_c_check_header_compile ()
1863{
1864  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1865  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1866$as_echo_n "checking for $2... " >&6; }
1867if eval \${$3+:} false; then :
1868  $as_echo_n "(cached) " >&6
1869else
1870  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1871/* end confdefs.h.  */
1872$4
1873#include <$2>
1874_ACEOF
1875if ac_fn_c_try_compile "$LINENO"; then :
1876  eval "$3=yes"
1877else
1878  eval "$3=no"
1879fi
1880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1881fi
1882eval ac_res=\$$3
1883	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1884$as_echo "$ac_res" >&6; }
1885  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1886
1887} # ac_fn_c_check_header_compile
1888
1889# ac_fn_c_check_func LINENO FUNC VAR
1890# ----------------------------------
1891# Tests whether FUNC exists, setting the cache variable VAR accordingly
1892ac_fn_c_check_func ()
1893{
1894  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1895  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1896$as_echo_n "checking for $2... " >&6; }
1897if eval \${$3+:} false; then :
1898  $as_echo_n "(cached) " >&6
1899else
1900  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1901/* end confdefs.h.  */
1902/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1903   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1904#define $2 innocuous_$2
1905
1906/* System header to define __stub macros and hopefully few prototypes,
1907    which can conflict with char $2 (); below.
1908    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1909    <limits.h> exists even on freestanding compilers.  */
1910
1911#ifdef __STDC__
1912# include <limits.h>
1913#else
1914# include <assert.h>
1915#endif
1916
1917#undef $2
1918
1919/* Override any GCC internal prototype to avoid an error.
1920   Use char because int might match the return type of a GCC
1921   builtin and then its argument prototype would still apply.  */
1922#ifdef __cplusplus
1923extern "C"
1924#endif
1925char $2 ();
1926/* The GNU C library defines this for functions which it implements
1927    to always fail with ENOSYS.  Some functions are actually named
1928    something starting with __ and the normal name is an alias.  */
1929#if defined __stub_$2 || defined __stub___$2
1930choke me
1931#endif
1932
1933int
1934main ()
1935{
1936return $2 ();
1937  ;
1938  return 0;
1939}
1940_ACEOF
1941if ac_fn_c_try_link "$LINENO"; then :
1942  eval "$3=yes"
1943else
1944  eval "$3=no"
1945fi
1946rm -f core conftest.err conftest.$ac_objext \
1947    conftest$ac_exeext conftest.$ac_ext
1948fi
1949eval ac_res=\$$3
1950	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1951$as_echo "$ac_res" >&6; }
1952  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1953
1954} # ac_fn_c_check_func
1955
1956# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1957# -------------------------------------------
1958# Tests whether TYPE exists after having included INCLUDES, setting cache
1959# variable VAR accordingly.
1960ac_fn_c_check_type ()
1961{
1962  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1963  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1964$as_echo_n "checking for $2... " >&6; }
1965if eval \${$3+:} false; then :
1966  $as_echo_n "(cached) " >&6
1967else
1968  eval "$3=no"
1969  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1970/* end confdefs.h.  */
1971$4
1972int
1973main ()
1974{
1975if (sizeof ($2))
1976	 return 0;
1977  ;
1978  return 0;
1979}
1980_ACEOF
1981if ac_fn_c_try_compile "$LINENO"; then :
1982  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1983/* end confdefs.h.  */
1984$4
1985int
1986main ()
1987{
1988if (sizeof (($2)))
1989	    return 0;
1990  ;
1991  return 0;
1992}
1993_ACEOF
1994if ac_fn_c_try_compile "$LINENO"; then :
1995
1996else
1997  eval "$3=yes"
1998fi
1999rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2000fi
2001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2002fi
2003eval ac_res=\$$3
2004	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2005$as_echo "$ac_res" >&6; }
2006  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2007
2008} # ac_fn_c_check_type
2009
2010# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2011# --------------------------------------------
2012# Tries to find the compile-time value of EXPR in a program that includes
2013# INCLUDES, setting VAR accordingly. Returns whether the value could be
2014# computed
2015ac_fn_c_compute_int ()
2016{
2017  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2018  if test "$cross_compiling" = yes; then
2019    # Depending upon the size, compute the lo and hi bounds.
2020cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2021/* end confdefs.h.  */
2022$4
2023int
2024main ()
2025{
2026static int test_array [1 - 2 * !(($2) >= 0)];
2027test_array [0] = 0;
2028return test_array [0];
2029
2030  ;
2031  return 0;
2032}
2033_ACEOF
2034if ac_fn_c_try_compile "$LINENO"; then :
2035  ac_lo=0 ac_mid=0
2036  while :; do
2037    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2038/* end confdefs.h.  */
2039$4
2040int
2041main ()
2042{
2043static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2044test_array [0] = 0;
2045return test_array [0];
2046
2047  ;
2048  return 0;
2049}
2050_ACEOF
2051if ac_fn_c_try_compile "$LINENO"; then :
2052  ac_hi=$ac_mid; break
2053else
2054  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2055			if test $ac_lo -le $ac_mid; then
2056			  ac_lo= ac_hi=
2057			  break
2058			fi
2059			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2060fi
2061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2062  done
2063else
2064  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2065/* end confdefs.h.  */
2066$4
2067int
2068main ()
2069{
2070static int test_array [1 - 2 * !(($2) < 0)];
2071test_array [0] = 0;
2072return test_array [0];
2073
2074  ;
2075  return 0;
2076}
2077_ACEOF
2078if ac_fn_c_try_compile "$LINENO"; then :
2079  ac_hi=-1 ac_mid=-1
2080  while :; do
2081    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2082/* end confdefs.h.  */
2083$4
2084int
2085main ()
2086{
2087static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2088test_array [0] = 0;
2089return test_array [0];
2090
2091  ;
2092  return 0;
2093}
2094_ACEOF
2095if ac_fn_c_try_compile "$LINENO"; then :
2096  ac_lo=$ac_mid; break
2097else
2098  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2099			if test $ac_mid -le $ac_hi; then
2100			  ac_lo= ac_hi=
2101			  break
2102			fi
2103			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2104fi
2105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2106  done
2107else
2108  ac_lo= ac_hi=
2109fi
2110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2111fi
2112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2113# Binary search between lo and hi bounds.
2114while test "x$ac_lo" != "x$ac_hi"; do
2115  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2116  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2117/* end confdefs.h.  */
2118$4
2119int
2120main ()
2121{
2122static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2123test_array [0] = 0;
2124return test_array [0];
2125
2126  ;
2127  return 0;
2128}
2129_ACEOF
2130if ac_fn_c_try_compile "$LINENO"; then :
2131  ac_hi=$ac_mid
2132else
2133  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2134fi
2135rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2136done
2137case $ac_lo in #((
2138?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2139'') ac_retval=1 ;;
2140esac
2141  else
2142    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2143/* end confdefs.h.  */
2144$4
2145static long int longval () { return $2; }
2146static unsigned long int ulongval () { return $2; }
2147#include <stdio.h>
2148#include <stdlib.h>
2149int
2150main ()
2151{
2152
2153  FILE *f = fopen ("conftest.val", "w");
2154  if (! f)
2155    return 1;
2156  if (($2) < 0)
2157    {
2158      long int i = longval ();
2159      if (i != ($2))
2160	return 1;
2161      fprintf (f, "%ld", i);
2162    }
2163  else
2164    {
2165      unsigned long int i = ulongval ();
2166      if (i != ($2))
2167	return 1;
2168      fprintf (f, "%lu", i);
2169    }
2170  /* Do not output a trailing newline, as this causes \r\n confusion
2171     on some platforms.  */
2172  return ferror (f) || fclose (f) != 0;
2173
2174  ;
2175  return 0;
2176}
2177_ACEOF
2178if ac_fn_c_try_run "$LINENO"; then :
2179  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2180else
2181  ac_retval=1
2182fi
2183rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2184  conftest.$ac_objext conftest.beam conftest.$ac_ext
2185rm -f conftest.val
2186
2187  fi
2188  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2189  as_fn_set_status $ac_retval
2190
2191} # ac_fn_c_compute_int
2192
2193# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2194# ---------------------------------------------
2195# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2196# accordingly.
2197ac_fn_c_check_decl ()
2198{
2199  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2200  as_decl_name=`echo $2|sed 's/ *(.*//'`
2201  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2202  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2203$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2204if eval \${$3+:} false; then :
2205  $as_echo_n "(cached) " >&6
2206else
2207  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2208/* end confdefs.h.  */
2209$4
2210int
2211main ()
2212{
2213#ifndef $as_decl_name
2214#ifdef __cplusplus
2215  (void) $as_decl_use;
2216#else
2217  (void) $as_decl_name;
2218#endif
2219#endif
2220
2221  ;
2222  return 0;
2223}
2224_ACEOF
2225if ac_fn_c_try_compile "$LINENO"; then :
2226  eval "$3=yes"
2227else
2228  eval "$3=no"
2229fi
2230rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2231fi
2232eval ac_res=\$$3
2233	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2234$as_echo "$ac_res" >&6; }
2235  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2236
2237} # ac_fn_c_check_decl
2238cat >config.log <<_ACEOF
2239This file contains any messages produced by compilers while
2240running configure, to aid debugging if configure makes a mistake.
2241
2242It was created by bfd $as_me 2.35.50, which was
2243generated by GNU Autoconf 2.69.  Invocation command line was
2244
2245  $ $0 $@
2246
2247_ACEOF
2248exec 5>>config.log
2249{
2250cat <<_ASUNAME
2251## --------- ##
2252## Platform. ##
2253## --------- ##
2254
2255hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2256uname -m = `(uname -m) 2>/dev/null || echo unknown`
2257uname -r = `(uname -r) 2>/dev/null || echo unknown`
2258uname -s = `(uname -s) 2>/dev/null || echo unknown`
2259uname -v = `(uname -v) 2>/dev/null || echo unknown`
2260
2261/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2262/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2263
2264/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2265/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2266/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2267/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2268/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2269/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2270/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2271
2272_ASUNAME
2273
2274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2275for as_dir in $PATH
2276do
2277  IFS=$as_save_IFS
2278  test -z "$as_dir" && as_dir=.
2279    $as_echo "PATH: $as_dir"
2280  done
2281IFS=$as_save_IFS
2282
2283} >&5
2284
2285cat >&5 <<_ACEOF
2286
2287
2288## ----------- ##
2289## Core tests. ##
2290## ----------- ##
2291
2292_ACEOF
2293
2294
2295# Keep a trace of the command line.
2296# Strip out --no-create and --no-recursion so they do not pile up.
2297# Strip out --silent because we don't want to record it for future runs.
2298# Also quote any args containing shell meta-characters.
2299# Make two passes to allow for proper duplicate-argument suppression.
2300ac_configure_args=
2301ac_configure_args0=
2302ac_configure_args1=
2303ac_must_keep_next=false
2304for ac_pass in 1 2
2305do
2306  for ac_arg
2307  do
2308    case $ac_arg in
2309    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2310    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2311    | -silent | --silent | --silen | --sile | --sil)
2312      continue ;;
2313    *\'*)
2314      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2315    esac
2316    case $ac_pass in
2317    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2318    2)
2319      as_fn_append ac_configure_args1 " '$ac_arg'"
2320      if test $ac_must_keep_next = true; then
2321	ac_must_keep_next=false # Got value, back to normal.
2322      else
2323	case $ac_arg in
2324	  *=* | --config-cache | -C | -disable-* | --disable-* \
2325	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2326	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2327	  | -with-* | --with-* | -without-* | --without-* | --x)
2328	    case "$ac_configure_args0 " in
2329	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2330	    esac
2331	    ;;
2332	  -* ) ac_must_keep_next=true ;;
2333	esac
2334      fi
2335      as_fn_append ac_configure_args " '$ac_arg'"
2336      ;;
2337    esac
2338  done
2339done
2340{ ac_configure_args0=; unset ac_configure_args0;}
2341{ ac_configure_args1=; unset ac_configure_args1;}
2342
2343# When interrupted or exit'd, cleanup temporary files, and complete
2344# config.log.  We remove comments because anyway the quotes in there
2345# would cause problems or look ugly.
2346# WARNING: Use '\'' to represent an apostrophe within the trap.
2347# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2348trap 'exit_status=$?
2349  # Save into config.log some information that might help in debugging.
2350  {
2351    echo
2352
2353    $as_echo "## ---------------- ##
2354## Cache variables. ##
2355## ---------------- ##"
2356    echo
2357    # The following way of writing the cache mishandles newlines in values,
2358(
2359  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2360    eval ac_val=\$$ac_var
2361    case $ac_val in #(
2362    *${as_nl}*)
2363      case $ac_var in #(
2364      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2365$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2366      esac
2367      case $ac_var in #(
2368      _ | IFS | as_nl) ;; #(
2369      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2370      *) { eval $ac_var=; unset $ac_var;} ;;
2371      esac ;;
2372    esac
2373  done
2374  (set) 2>&1 |
2375    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2376    *${as_nl}ac_space=\ *)
2377      sed -n \
2378	"s/'\''/'\''\\\\'\'''\''/g;
2379	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2380      ;; #(
2381    *)
2382      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2383      ;;
2384    esac |
2385    sort
2386)
2387    echo
2388
2389    $as_echo "## ----------------- ##
2390## Output variables. ##
2391## ----------------- ##"
2392    echo
2393    for ac_var in $ac_subst_vars
2394    do
2395      eval ac_val=\$$ac_var
2396      case $ac_val in
2397      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2398      esac
2399      $as_echo "$ac_var='\''$ac_val'\''"
2400    done | sort
2401    echo
2402
2403    if test -n "$ac_subst_files"; then
2404      $as_echo "## ------------------- ##
2405## File substitutions. ##
2406## ------------------- ##"
2407      echo
2408      for ac_var in $ac_subst_files
2409      do
2410	eval ac_val=\$$ac_var
2411	case $ac_val in
2412	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2413	esac
2414	$as_echo "$ac_var='\''$ac_val'\''"
2415      done | sort
2416      echo
2417    fi
2418
2419    if test -s confdefs.h; then
2420      $as_echo "## ----------- ##
2421## confdefs.h. ##
2422## ----------- ##"
2423      echo
2424      cat confdefs.h
2425      echo
2426    fi
2427    test "$ac_signal" != 0 &&
2428      $as_echo "$as_me: caught signal $ac_signal"
2429    $as_echo "$as_me: exit $exit_status"
2430  } >&5
2431  rm -f core *.core core.conftest.* &&
2432    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2433    exit $exit_status
2434' 0
2435for ac_signal in 1 2 13 15; do
2436  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2437done
2438ac_signal=0
2439
2440# confdefs.h avoids OS command line length limits that DEFS can exceed.
2441rm -f -r conftest* confdefs.h
2442
2443$as_echo "/* confdefs.h */" > confdefs.h
2444
2445# Predefined preprocessor variables.
2446
2447cat >>confdefs.h <<_ACEOF
2448#define PACKAGE_NAME "$PACKAGE_NAME"
2449_ACEOF
2450
2451cat >>confdefs.h <<_ACEOF
2452#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2453_ACEOF
2454
2455cat >>confdefs.h <<_ACEOF
2456#define PACKAGE_VERSION "$PACKAGE_VERSION"
2457_ACEOF
2458
2459cat >>confdefs.h <<_ACEOF
2460#define PACKAGE_STRING "$PACKAGE_STRING"
2461_ACEOF
2462
2463cat >>confdefs.h <<_ACEOF
2464#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2465_ACEOF
2466
2467cat >>confdefs.h <<_ACEOF
2468#define PACKAGE_URL "$PACKAGE_URL"
2469_ACEOF
2470
2471
2472# Let the site file select an alternate cache file if it wants to.
2473# Prefer an explicitly selected file to automatically selected ones.
2474ac_site_file1=NONE
2475ac_site_file2=NONE
2476if test -n "$CONFIG_SITE"; then
2477  # We do not want a PATH search for config.site.
2478  case $CONFIG_SITE in #((
2479    -*)  ac_site_file1=./$CONFIG_SITE;;
2480    */*) ac_site_file1=$CONFIG_SITE;;
2481    *)   ac_site_file1=./$CONFIG_SITE;;
2482  esac
2483elif test "x$prefix" != xNONE; then
2484  ac_site_file1=$prefix/share/config.site
2485  ac_site_file2=$prefix/etc/config.site
2486else
2487  ac_site_file1=$ac_default_prefix/share/config.site
2488  ac_site_file2=$ac_default_prefix/etc/config.site
2489fi
2490for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2491do
2492  test "x$ac_site_file" = xNONE && continue
2493  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2494    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2495$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2496    sed 's/^/| /' "$ac_site_file" >&5
2497    . "$ac_site_file" \
2498      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2499$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2500as_fn_error $? "failed to load site script $ac_site_file
2501See \`config.log' for more details" "$LINENO" 5; }
2502  fi
2503done
2504
2505if test -r "$cache_file"; then
2506  # Some versions of bash will fail to source /dev/null (special files
2507  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2508  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2509    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2510$as_echo "$as_me: loading cache $cache_file" >&6;}
2511    case $cache_file in
2512      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2513      *)                      . "./$cache_file";;
2514    esac
2515  fi
2516else
2517  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2518$as_echo "$as_me: creating cache $cache_file" >&6;}
2519  >$cache_file
2520fi
2521
2522as_fn_append ac_header_list " stdlib.h"
2523as_fn_append ac_header_list " unistd.h"
2524as_fn_append ac_header_list " sys/param.h"
2525# Check that the precious variables saved in the cache have kept the same
2526# value.
2527ac_cache_corrupted=false
2528for ac_var in $ac_precious_vars; do
2529  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2530  eval ac_new_set=\$ac_env_${ac_var}_set
2531  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2532  eval ac_new_val=\$ac_env_${ac_var}_value
2533  case $ac_old_set,$ac_new_set in
2534    set,)
2535      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2536$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2537      ac_cache_corrupted=: ;;
2538    ,set)
2539      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2540$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2541      ac_cache_corrupted=: ;;
2542    ,);;
2543    *)
2544      if test "x$ac_old_val" != "x$ac_new_val"; then
2545	# differences in whitespace do not lead to failure.
2546	ac_old_val_w=`echo x $ac_old_val`
2547	ac_new_val_w=`echo x $ac_new_val`
2548	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2549	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2550$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2551	  ac_cache_corrupted=:
2552	else
2553	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2554$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2555	  eval $ac_var=\$ac_old_val
2556	fi
2557	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2558$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2559	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2560$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2561      fi;;
2562  esac
2563  # Pass precious variables to config.status.
2564  if test "$ac_new_set" = set; then
2565    case $ac_new_val in
2566    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2567    *) ac_arg=$ac_var=$ac_new_val ;;
2568    esac
2569    case " $ac_configure_args " in
2570      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2571      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2572    esac
2573  fi
2574done
2575if $ac_cache_corrupted; then
2576  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2577$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2578  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2579$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2580  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2581fi
2582## -------------------- ##
2583## Main body of script. ##
2584## -------------------- ##
2585
2586ac_ext=c
2587ac_cpp='$CPP $CPPFLAGS'
2588ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2589ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2590ac_compiler_gnu=$ac_cv_c_compiler_gnu
2591
2592
2593
2594
2595
2596
2597
2598ac_aux_dir=
2599for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2600  if test -f "$ac_dir/install-sh"; then
2601    ac_aux_dir=$ac_dir
2602    ac_install_sh="$ac_aux_dir/install-sh -c"
2603    break
2604  elif test -f "$ac_dir/install.sh"; then
2605    ac_aux_dir=$ac_dir
2606    ac_install_sh="$ac_aux_dir/install.sh -c"
2607    break
2608  elif test -f "$ac_dir/shtool"; then
2609    ac_aux_dir=$ac_dir
2610    ac_install_sh="$ac_aux_dir/shtool install -c"
2611    break
2612  fi
2613done
2614if test -z "$ac_aux_dir"; then
2615  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2616fi
2617
2618# These three variables are undocumented and unsupported,
2619# and are intended to be withdrawn in a future Autoconf release.
2620# They can cause serious problems if a builder's source tree is in a directory
2621# whose full name contains unusual characters.
2622ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2623ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2624ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2625
2626
2627# Make sure we can run config.sub.
2628$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2629  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2630
2631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2632$as_echo_n "checking build system type... " >&6; }
2633if ${ac_cv_build+:} false; then :
2634  $as_echo_n "(cached) " >&6
2635else
2636  ac_build_alias=$build_alias
2637test "x$ac_build_alias" = x &&
2638  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2639test "x$ac_build_alias" = x &&
2640  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2641ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2642  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2643
2644fi
2645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2646$as_echo "$ac_cv_build" >&6; }
2647case $ac_cv_build in
2648*-*-*) ;;
2649*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2650esac
2651build=$ac_cv_build
2652ac_save_IFS=$IFS; IFS='-'
2653set x $ac_cv_build
2654shift
2655build_cpu=$1
2656build_vendor=$2
2657shift; shift
2658# Remember, the first character of IFS is used to create $*,
2659# except with old shells:
2660build_os=$*
2661IFS=$ac_save_IFS
2662case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2663
2664
2665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2666$as_echo_n "checking host system type... " >&6; }
2667if ${ac_cv_host+:} false; then :
2668  $as_echo_n "(cached) " >&6
2669else
2670  if test "x$host_alias" = x; then
2671  ac_cv_host=$ac_cv_build
2672else
2673  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2674    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2675fi
2676
2677fi
2678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2679$as_echo "$ac_cv_host" >&6; }
2680case $ac_cv_host in
2681*-*-*) ;;
2682*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2683esac
2684host=$ac_cv_host
2685ac_save_IFS=$IFS; IFS='-'
2686set x $ac_cv_host
2687shift
2688host_cpu=$1
2689host_vendor=$2
2690shift; shift
2691# Remember, the first character of IFS is used to create $*,
2692# except with old shells:
2693host_os=$*
2694IFS=$ac_save_IFS
2695case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2696
2697
2698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2699$as_echo_n "checking target system type... " >&6; }
2700if ${ac_cv_target+:} false; then :
2701  $as_echo_n "(cached) " >&6
2702else
2703  if test "x$target_alias" = x; then
2704  ac_cv_target=$ac_cv_host
2705else
2706  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2707    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2708fi
2709
2710fi
2711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2712$as_echo "$ac_cv_target" >&6; }
2713case $ac_cv_target in
2714*-*-*) ;;
2715*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2716esac
2717target=$ac_cv_target
2718ac_save_IFS=$IFS; IFS='-'
2719set x $ac_cv_target
2720shift
2721target_cpu=$1
2722target_vendor=$2
2723shift; shift
2724# Remember, the first character of IFS is used to create $*,
2725# except with old shells:
2726target_os=$*
2727IFS=$ac_save_IFS
2728case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2729
2730
2731# The aliases save the names the user supplied, while $host etc.
2732# will get canonicalized.
2733test -n "$target_alias" &&
2734  test "$program_prefix$program_suffix$program_transform_name" = \
2735    NONENONEs,x,x, &&
2736  program_prefix=${target_alias}-
2737# Expand $ac_aux_dir to an absolute path.
2738am_aux_dir=`cd "$ac_aux_dir" && pwd`
2739
2740ac_ext=c
2741ac_cpp='$CPP $CPPFLAGS'
2742ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2743ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2744ac_compiler_gnu=$ac_cv_c_compiler_gnu
2745if test -n "$ac_tool_prefix"; then
2746  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2747set dummy ${ac_tool_prefix}gcc; ac_word=$2
2748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2749$as_echo_n "checking for $ac_word... " >&6; }
2750if ${ac_cv_prog_CC+:} false; then :
2751  $as_echo_n "(cached) " >&6
2752else
2753  if test -n "$CC"; then
2754  ac_cv_prog_CC="$CC" # Let the user override the test.
2755else
2756as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2757for as_dir in $PATH
2758do
2759  IFS=$as_save_IFS
2760  test -z "$as_dir" && as_dir=.
2761    for ac_exec_ext in '' $ac_executable_extensions; do
2762  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2763    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2764    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2765    break 2
2766  fi
2767done
2768  done
2769IFS=$as_save_IFS
2770
2771fi
2772fi
2773CC=$ac_cv_prog_CC
2774if test -n "$CC"; then
2775  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2776$as_echo "$CC" >&6; }
2777else
2778  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2779$as_echo "no" >&6; }
2780fi
2781
2782
2783fi
2784if test -z "$ac_cv_prog_CC"; then
2785  ac_ct_CC=$CC
2786  # Extract the first word of "gcc", so it can be a program name with args.
2787set dummy gcc; ac_word=$2
2788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2789$as_echo_n "checking for $ac_word... " >&6; }
2790if ${ac_cv_prog_ac_ct_CC+:} false; then :
2791  $as_echo_n "(cached) " >&6
2792else
2793  if test -n "$ac_ct_CC"; then
2794  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2795else
2796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2797for as_dir in $PATH
2798do
2799  IFS=$as_save_IFS
2800  test -z "$as_dir" && as_dir=.
2801    for ac_exec_ext in '' $ac_executable_extensions; do
2802  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2803    ac_cv_prog_ac_ct_CC="gcc"
2804    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2805    break 2
2806  fi
2807done
2808  done
2809IFS=$as_save_IFS
2810
2811fi
2812fi
2813ac_ct_CC=$ac_cv_prog_ac_ct_CC
2814if test -n "$ac_ct_CC"; then
2815  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2816$as_echo "$ac_ct_CC" >&6; }
2817else
2818  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2819$as_echo "no" >&6; }
2820fi
2821
2822  if test "x$ac_ct_CC" = x; then
2823    CC=""
2824  else
2825    case $cross_compiling:$ac_tool_warned in
2826yes:)
2827{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2828$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2829ac_tool_warned=yes ;;
2830esac
2831    CC=$ac_ct_CC
2832  fi
2833else
2834  CC="$ac_cv_prog_CC"
2835fi
2836
2837if test -z "$CC"; then
2838          if test -n "$ac_tool_prefix"; then
2839    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2840set dummy ${ac_tool_prefix}cc; ac_word=$2
2841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2842$as_echo_n "checking for $ac_word... " >&6; }
2843if ${ac_cv_prog_CC+:} false; then :
2844  $as_echo_n "(cached) " >&6
2845else
2846  if test -n "$CC"; then
2847  ac_cv_prog_CC="$CC" # Let the user override the test.
2848else
2849as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2850for as_dir in $PATH
2851do
2852  IFS=$as_save_IFS
2853  test -z "$as_dir" && as_dir=.
2854    for ac_exec_ext in '' $ac_executable_extensions; do
2855  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2856    ac_cv_prog_CC="${ac_tool_prefix}cc"
2857    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2858    break 2
2859  fi
2860done
2861  done
2862IFS=$as_save_IFS
2863
2864fi
2865fi
2866CC=$ac_cv_prog_CC
2867if test -n "$CC"; then
2868  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2869$as_echo "$CC" >&6; }
2870else
2871  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2872$as_echo "no" >&6; }
2873fi
2874
2875
2876  fi
2877fi
2878if test -z "$CC"; then
2879  # Extract the first word of "cc", so it can be a program name with args.
2880set dummy cc; ac_word=$2
2881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2882$as_echo_n "checking for $ac_word... " >&6; }
2883if ${ac_cv_prog_CC+:} false; then :
2884  $as_echo_n "(cached) " >&6
2885else
2886  if test -n "$CC"; then
2887  ac_cv_prog_CC="$CC" # Let the user override the test.
2888else
2889  ac_prog_rejected=no
2890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2891for as_dir in $PATH
2892do
2893  IFS=$as_save_IFS
2894  test -z "$as_dir" && as_dir=.
2895    for ac_exec_ext in '' $ac_executable_extensions; do
2896  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2897    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2898       ac_prog_rejected=yes
2899       continue
2900     fi
2901    ac_cv_prog_CC="cc"
2902    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2903    break 2
2904  fi
2905done
2906  done
2907IFS=$as_save_IFS
2908
2909if test $ac_prog_rejected = yes; then
2910  # We found a bogon in the path, so make sure we never use it.
2911  set dummy $ac_cv_prog_CC
2912  shift
2913  if test $# != 0; then
2914    # We chose a different compiler from the bogus one.
2915    # However, it has the same basename, so the bogon will be chosen
2916    # first if we set CC to just the basename; use the full file name.
2917    shift
2918    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2919  fi
2920fi
2921fi
2922fi
2923CC=$ac_cv_prog_CC
2924if test -n "$CC"; then
2925  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2926$as_echo "$CC" >&6; }
2927else
2928  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2929$as_echo "no" >&6; }
2930fi
2931
2932
2933fi
2934if test -z "$CC"; then
2935  if test -n "$ac_tool_prefix"; then
2936  for ac_prog in cl.exe
2937  do
2938    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2939set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2941$as_echo_n "checking for $ac_word... " >&6; }
2942if ${ac_cv_prog_CC+:} false; then :
2943  $as_echo_n "(cached) " >&6
2944else
2945  if test -n "$CC"; then
2946  ac_cv_prog_CC="$CC" # Let the user override the test.
2947else
2948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2949for as_dir in $PATH
2950do
2951  IFS=$as_save_IFS
2952  test -z "$as_dir" && as_dir=.
2953    for ac_exec_ext in '' $ac_executable_extensions; do
2954  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2955    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2956    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2957    break 2
2958  fi
2959done
2960  done
2961IFS=$as_save_IFS
2962
2963fi
2964fi
2965CC=$ac_cv_prog_CC
2966if test -n "$CC"; then
2967  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2968$as_echo "$CC" >&6; }
2969else
2970  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2971$as_echo "no" >&6; }
2972fi
2973
2974
2975    test -n "$CC" && break
2976  done
2977fi
2978if test -z "$CC"; then
2979  ac_ct_CC=$CC
2980  for ac_prog in cl.exe
2981do
2982  # Extract the first word of "$ac_prog", so it can be a program name with args.
2983set dummy $ac_prog; ac_word=$2
2984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2985$as_echo_n "checking for $ac_word... " >&6; }
2986if ${ac_cv_prog_ac_ct_CC+:} false; then :
2987  $as_echo_n "(cached) " >&6
2988else
2989  if test -n "$ac_ct_CC"; then
2990  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2991else
2992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2993for as_dir in $PATH
2994do
2995  IFS=$as_save_IFS
2996  test -z "$as_dir" && as_dir=.
2997    for ac_exec_ext in '' $ac_executable_extensions; do
2998  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2999    ac_cv_prog_ac_ct_CC="$ac_prog"
3000    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3001    break 2
3002  fi
3003done
3004  done
3005IFS=$as_save_IFS
3006
3007fi
3008fi
3009ac_ct_CC=$ac_cv_prog_ac_ct_CC
3010if test -n "$ac_ct_CC"; then
3011  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3012$as_echo "$ac_ct_CC" >&6; }
3013else
3014  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3015$as_echo "no" >&6; }
3016fi
3017
3018
3019  test -n "$ac_ct_CC" && break
3020done
3021
3022  if test "x$ac_ct_CC" = x; then
3023    CC=""
3024  else
3025    case $cross_compiling:$ac_tool_warned in
3026yes:)
3027{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3028$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3029ac_tool_warned=yes ;;
3030esac
3031    CC=$ac_ct_CC
3032  fi
3033fi
3034
3035fi
3036
3037
3038test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3039$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3040as_fn_error $? "no acceptable C compiler found in \$PATH
3041See \`config.log' for more details" "$LINENO" 5; }
3042
3043# Provide some information about the compiler.
3044$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3045set X $ac_compile
3046ac_compiler=$2
3047for ac_option in --version -v -V -qversion; do
3048  { { ac_try="$ac_compiler $ac_option >&5"
3049case "(($ac_try" in
3050  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3051  *) ac_try_echo=$ac_try;;
3052esac
3053eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3054$as_echo "$ac_try_echo"; } >&5
3055  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3056  ac_status=$?
3057  if test -s conftest.err; then
3058    sed '10a\
3059... rest of stderr output deleted ...
3060         10q' conftest.err >conftest.er1
3061    cat conftest.er1 >&5
3062  fi
3063  rm -f conftest.er1 conftest.err
3064  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3065  test $ac_status = 0; }
3066done
3067
3068cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3069/* end confdefs.h.  */
3070
3071int
3072main ()
3073{
3074
3075  ;
3076  return 0;
3077}
3078_ACEOF
3079ac_clean_files_save=$ac_clean_files
3080ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3081# Try to create an executable without -o first, disregard a.out.
3082# It will help us diagnose broken compilers, and finding out an intuition
3083# of exeext.
3084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3085$as_echo_n "checking whether the C compiler works... " >&6; }
3086ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3087
3088# The possible output files:
3089ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3090
3091ac_rmfiles=
3092for ac_file in $ac_files
3093do
3094  case $ac_file in
3095    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3096    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3097  esac
3098done
3099rm -f $ac_rmfiles
3100
3101if { { ac_try="$ac_link_default"
3102case "(($ac_try" in
3103  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3104  *) ac_try_echo=$ac_try;;
3105esac
3106eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3107$as_echo "$ac_try_echo"; } >&5
3108  (eval "$ac_link_default") 2>&5
3109  ac_status=$?
3110  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3111  test $ac_status = 0; }; then :
3112  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3113# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3114# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3115# so that the user can short-circuit this test for compilers unknown to
3116# Autoconf.
3117for ac_file in $ac_files ''
3118do
3119  test -f "$ac_file" || continue
3120  case $ac_file in
3121    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3122	;;
3123    [ab].out )
3124	# We found the default executable, but exeext='' is most
3125	# certainly right.
3126	break;;
3127    *.* )
3128	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3129	then :; else
3130	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3131	fi
3132	# We set ac_cv_exeext here because the later test for it is not
3133	# safe: cross compilers may not add the suffix if given an `-o'
3134	# argument, so we may need to know it at that point already.
3135	# Even if this section looks crufty: it has the advantage of
3136	# actually working.
3137	break;;
3138    * )
3139	break;;
3140  esac
3141done
3142test "$ac_cv_exeext" = no && ac_cv_exeext=
3143
3144else
3145  ac_file=''
3146fi
3147if test -z "$ac_file"; then :
3148  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3149$as_echo "no" >&6; }
3150$as_echo "$as_me: failed program was:" >&5
3151sed 's/^/| /' conftest.$ac_ext >&5
3152
3153{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3154$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3155as_fn_error 77 "C compiler cannot create executables
3156See \`config.log' for more details" "$LINENO" 5; }
3157else
3158  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3159$as_echo "yes" >&6; }
3160fi
3161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3162$as_echo_n "checking for C compiler default output file name... " >&6; }
3163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3164$as_echo "$ac_file" >&6; }
3165ac_exeext=$ac_cv_exeext
3166
3167rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3168ac_clean_files=$ac_clean_files_save
3169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3170$as_echo_n "checking for suffix of executables... " >&6; }
3171if { { ac_try="$ac_link"
3172case "(($ac_try" in
3173  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3174  *) ac_try_echo=$ac_try;;
3175esac
3176eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3177$as_echo "$ac_try_echo"; } >&5
3178  (eval "$ac_link") 2>&5
3179  ac_status=$?
3180  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3181  test $ac_status = 0; }; then :
3182  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3183# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3184# work properly (i.e., refer to `conftest.exe'), while it won't with
3185# `rm'.
3186for ac_file in conftest.exe conftest conftest.*; do
3187  test -f "$ac_file" || continue
3188  case $ac_file in
3189    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3190    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3191	  break;;
3192    * ) break;;
3193  esac
3194done
3195else
3196  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3197$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3198as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3199See \`config.log' for more details" "$LINENO" 5; }
3200fi
3201rm -f conftest conftest$ac_cv_exeext
3202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3203$as_echo "$ac_cv_exeext" >&6; }
3204
3205rm -f conftest.$ac_ext
3206EXEEXT=$ac_cv_exeext
3207ac_exeext=$EXEEXT
3208cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3209/* end confdefs.h.  */
3210#include <stdio.h>
3211int
3212main ()
3213{
3214FILE *f = fopen ("conftest.out", "w");
3215 return ferror (f) || fclose (f) != 0;
3216
3217  ;
3218  return 0;
3219}
3220_ACEOF
3221ac_clean_files="$ac_clean_files conftest.out"
3222# Check that the compiler produces executables we can run.  If not, either
3223# the compiler is broken, or we cross compile.
3224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3225$as_echo_n "checking whether we are cross compiling... " >&6; }
3226if test "$cross_compiling" != yes; then
3227  { { ac_try="$ac_link"
3228case "(($ac_try" in
3229  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3230  *) ac_try_echo=$ac_try;;
3231esac
3232eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3233$as_echo "$ac_try_echo"; } >&5
3234  (eval "$ac_link") 2>&5
3235  ac_status=$?
3236  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3237  test $ac_status = 0; }
3238  if { ac_try='./conftest$ac_cv_exeext'
3239  { { case "(($ac_try" in
3240  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3241  *) ac_try_echo=$ac_try;;
3242esac
3243eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3244$as_echo "$ac_try_echo"; } >&5
3245  (eval "$ac_try") 2>&5
3246  ac_status=$?
3247  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3248  test $ac_status = 0; }; }; then
3249    cross_compiling=no
3250  else
3251    if test "$cross_compiling" = maybe; then
3252	cross_compiling=yes
3253    else
3254	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3255$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3256as_fn_error $? "cannot run C compiled programs.
3257If you meant to cross compile, use \`--host'.
3258See \`config.log' for more details" "$LINENO" 5; }
3259    fi
3260  fi
3261fi
3262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3263$as_echo "$cross_compiling" >&6; }
3264
3265rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3266ac_clean_files=$ac_clean_files_save
3267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3268$as_echo_n "checking for suffix of object files... " >&6; }
3269if ${ac_cv_objext+:} false; then :
3270  $as_echo_n "(cached) " >&6
3271else
3272  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3273/* end confdefs.h.  */
3274
3275int
3276main ()
3277{
3278
3279  ;
3280  return 0;
3281}
3282_ACEOF
3283rm -f conftest.o conftest.obj
3284if { { ac_try="$ac_compile"
3285case "(($ac_try" in
3286  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3287  *) ac_try_echo=$ac_try;;
3288esac
3289eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3290$as_echo "$ac_try_echo"; } >&5
3291  (eval "$ac_compile") 2>&5
3292  ac_status=$?
3293  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3294  test $ac_status = 0; }; then :
3295  for ac_file in conftest.o conftest.obj conftest.*; do
3296  test -f "$ac_file" || continue;
3297  case $ac_file in
3298    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3299    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3300       break;;
3301  esac
3302done
3303else
3304  $as_echo "$as_me: failed program was:" >&5
3305sed 's/^/| /' conftest.$ac_ext >&5
3306
3307{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3308$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3309as_fn_error $? "cannot compute suffix of object files: cannot compile
3310See \`config.log' for more details" "$LINENO" 5; }
3311fi
3312rm -f conftest.$ac_cv_objext conftest.$ac_ext
3313fi
3314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3315$as_echo "$ac_cv_objext" >&6; }
3316OBJEXT=$ac_cv_objext
3317ac_objext=$OBJEXT
3318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3319$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3320if ${ac_cv_c_compiler_gnu+:} false; then :
3321  $as_echo_n "(cached) " >&6
3322else
3323  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3324/* end confdefs.h.  */
3325
3326int
3327main ()
3328{
3329#ifndef __GNUC__
3330       choke me
3331#endif
3332
3333  ;
3334  return 0;
3335}
3336_ACEOF
3337if ac_fn_c_try_compile "$LINENO"; then :
3338  ac_compiler_gnu=yes
3339else
3340  ac_compiler_gnu=no
3341fi
3342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3343ac_cv_c_compiler_gnu=$ac_compiler_gnu
3344
3345fi
3346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3347$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3348if test $ac_compiler_gnu = yes; then
3349  GCC=yes
3350else
3351  GCC=
3352fi
3353ac_test_CFLAGS=${CFLAGS+set}
3354ac_save_CFLAGS=$CFLAGS
3355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3356$as_echo_n "checking whether $CC accepts -g... " >&6; }
3357if ${ac_cv_prog_cc_g+:} false; then :
3358  $as_echo_n "(cached) " >&6
3359else
3360  ac_save_c_werror_flag=$ac_c_werror_flag
3361   ac_c_werror_flag=yes
3362   ac_cv_prog_cc_g=no
3363   CFLAGS="-g"
3364   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3365/* end confdefs.h.  */
3366
3367int
3368main ()
3369{
3370
3371  ;
3372  return 0;
3373}
3374_ACEOF
3375if ac_fn_c_try_compile "$LINENO"; then :
3376  ac_cv_prog_cc_g=yes
3377else
3378  CFLAGS=""
3379      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3380/* end confdefs.h.  */
3381
3382int
3383main ()
3384{
3385
3386  ;
3387  return 0;
3388}
3389_ACEOF
3390if ac_fn_c_try_compile "$LINENO"; then :
3391
3392else
3393  ac_c_werror_flag=$ac_save_c_werror_flag
3394	 CFLAGS="-g"
3395	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3396/* end confdefs.h.  */
3397
3398int
3399main ()
3400{
3401
3402  ;
3403  return 0;
3404}
3405_ACEOF
3406if ac_fn_c_try_compile "$LINENO"; then :
3407  ac_cv_prog_cc_g=yes
3408fi
3409rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3410fi
3411rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3412fi
3413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3414   ac_c_werror_flag=$ac_save_c_werror_flag
3415fi
3416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3417$as_echo "$ac_cv_prog_cc_g" >&6; }
3418if test "$ac_test_CFLAGS" = set; then
3419  CFLAGS=$ac_save_CFLAGS
3420elif test $ac_cv_prog_cc_g = yes; then
3421  if test "$GCC" = yes; then
3422    CFLAGS="-g -O2"
3423  else
3424    CFLAGS="-g"
3425  fi
3426else
3427  if test "$GCC" = yes; then
3428    CFLAGS="-O2"
3429  else
3430    CFLAGS=
3431  fi
3432fi
3433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3434$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3435if ${ac_cv_prog_cc_c89+:} false; then :
3436  $as_echo_n "(cached) " >&6
3437else
3438  ac_cv_prog_cc_c89=no
3439ac_save_CC=$CC
3440cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3441/* end confdefs.h.  */
3442#include <stdarg.h>
3443#include <stdio.h>
3444struct stat;
3445/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3446struct buf { int x; };
3447FILE * (*rcsopen) (struct buf *, struct stat *, int);
3448static char *e (p, i)
3449     char **p;
3450     int i;
3451{
3452  return p[i];
3453}
3454static char *f (char * (*g) (char **, int), char **p, ...)
3455{
3456  char *s;
3457  va_list v;
3458  va_start (v,p);
3459  s = g (p, va_arg (v,int));
3460  va_end (v);
3461  return s;
3462}
3463
3464/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3465   function prototypes and stuff, but not '\xHH' hex character constants.
3466   These don't provoke an error unfortunately, instead are silently treated
3467   as 'x'.  The following induces an error, until -std is added to get
3468   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3469   array size at least.  It's necessary to write '\x00'==0 to get something
3470   that's true only with -std.  */
3471int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3472
3473/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3474   inside strings and character constants.  */
3475#define FOO(x) 'x'
3476int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3477
3478int test (int i, double x);
3479struct s1 {int (*f) (int a);};
3480struct s2 {int (*f) (double a);};
3481int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3482int argc;
3483char **argv;
3484int
3485main ()
3486{
3487return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3488  ;
3489  return 0;
3490}
3491_ACEOF
3492for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3493	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3494do
3495  CC="$ac_save_CC $ac_arg"
3496  if ac_fn_c_try_compile "$LINENO"; then :
3497  ac_cv_prog_cc_c89=$ac_arg
3498fi
3499rm -f core conftest.err conftest.$ac_objext
3500  test "x$ac_cv_prog_cc_c89" != "xno" && break
3501done
3502rm -f conftest.$ac_ext
3503CC=$ac_save_CC
3504
3505fi
3506# AC_CACHE_VAL
3507case "x$ac_cv_prog_cc_c89" in
3508  x)
3509    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3510$as_echo "none needed" >&6; } ;;
3511  xno)
3512    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3513$as_echo "unsupported" >&6; } ;;
3514  *)
3515    CC="$CC $ac_cv_prog_cc_c89"
3516    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3517$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3518esac
3519if test "x$ac_cv_prog_cc_c89" != xno; then :
3520
3521fi
3522
3523ac_ext=c
3524ac_cpp='$CPP $CPPFLAGS'
3525ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3526ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3527ac_compiler_gnu=$ac_cv_c_compiler_gnu
3528
3529ac_ext=c
3530ac_cpp='$CPP $CPPFLAGS'
3531ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3532ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3533ac_compiler_gnu=$ac_cv_c_compiler_gnu
3534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3535$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3536if ${am_cv_prog_cc_c_o+:} false; then :
3537  $as_echo_n "(cached) " >&6
3538else
3539  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3540/* end confdefs.h.  */
3541
3542int
3543main ()
3544{
3545
3546  ;
3547  return 0;
3548}
3549_ACEOF
3550  # Make sure it works both with $CC and with simple cc.
3551  # Following AC_PROG_CC_C_O, we do the test twice because some
3552  # compilers refuse to overwrite an existing .o file with -o,
3553  # though they will create one.
3554  am_cv_prog_cc_c_o=yes
3555  for am_i in 1 2; do
3556    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3557   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3558   ac_status=$?
3559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3560   (exit $ac_status); } \
3561         && test -f conftest2.$ac_objext; then
3562      : OK
3563    else
3564      am_cv_prog_cc_c_o=no
3565      break
3566    fi
3567  done
3568  rm -f core conftest*
3569  unset am_i
3570fi
3571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3572$as_echo "$am_cv_prog_cc_c_o" >&6; }
3573if test "$am_cv_prog_cc_c_o" != yes; then
3574   # Losing compiler, so override with the script.
3575   # FIXME: It is wrong to rewrite CC.
3576   # But if we don't then we get into trouble of one sort or another.
3577   # A longer-term fix would be to have automake use am__CC in this case,
3578   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3579   CC="$am_aux_dir/compile $CC"
3580fi
3581ac_ext=c
3582ac_cpp='$CPP $CPPFLAGS'
3583ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3584ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3585ac_compiler_gnu=$ac_cv_c_compiler_gnu
3586
3587
3588
3589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3590$as_echo_n "checking for library containing strerror... " >&6; }
3591if ${ac_cv_search_strerror+:} false; then :
3592  $as_echo_n "(cached) " >&6
3593else
3594  ac_func_search_save_LIBS=$LIBS
3595cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3596/* end confdefs.h.  */
3597
3598/* Override any GCC internal prototype to avoid an error.
3599   Use char because int might match the return type of a GCC
3600   builtin and then its argument prototype would still apply.  */
3601#ifdef __cplusplus
3602extern "C"
3603#endif
3604char strerror ();
3605int
3606main ()
3607{
3608return strerror ();
3609  ;
3610  return 0;
3611}
3612_ACEOF
3613for ac_lib in '' cposix; do
3614  if test -z "$ac_lib"; then
3615    ac_res="none required"
3616  else
3617    ac_res=-l$ac_lib
3618    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3619  fi
3620  if ac_fn_c_try_link "$LINENO"; then :
3621  ac_cv_search_strerror=$ac_res
3622fi
3623rm -f core conftest.err conftest.$ac_objext \
3624    conftest$ac_exeext
3625  if ${ac_cv_search_strerror+:} false; then :
3626  break
3627fi
3628done
3629if ${ac_cv_search_strerror+:} false; then :
3630
3631else
3632  ac_cv_search_strerror=no
3633fi
3634rm conftest.$ac_ext
3635LIBS=$ac_func_search_save_LIBS
3636fi
3637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3638$as_echo "$ac_cv_search_strerror" >&6; }
3639ac_res=$ac_cv_search_strerror
3640if test "$ac_res" != no; then :
3641  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3642
3643fi
3644
3645
3646am__api_version='1.15'
3647
3648# Find a good install program.  We prefer a C program (faster),
3649# so one script is as good as another.  But avoid the broken or
3650# incompatible versions:
3651# SysV /etc/install, /usr/sbin/install
3652# SunOS /usr/etc/install
3653# IRIX /sbin/install
3654# AIX /bin/install
3655# AmigaOS /C/install, which installs bootblocks on floppy discs
3656# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3657# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3658# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3659# OS/2's system install, which has a completely different semantic
3660# ./install, which can be erroneously created by make from ./install.sh.
3661# Reject install programs that cannot install multiple files.
3662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3663$as_echo_n "checking for a BSD-compatible install... " >&6; }
3664if test -z "$INSTALL"; then
3665if ${ac_cv_path_install+:} false; then :
3666  $as_echo_n "(cached) " >&6
3667else
3668  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3669for as_dir in $PATH
3670do
3671  IFS=$as_save_IFS
3672  test -z "$as_dir" && as_dir=.
3673    # Account for people who put trailing slashes in PATH elements.
3674case $as_dir/ in #((
3675  ./ | .// | /[cC]/* | \
3676  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3677  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3678  /usr/ucb/* ) ;;
3679  *)
3680    # OSF1 and SCO ODT 3.0 have their own names for install.
3681    # Don't use installbsd from OSF since it installs stuff as root
3682    # by default.
3683    for ac_prog in ginstall scoinst install; do
3684      for ac_exec_ext in '' $ac_executable_extensions; do
3685	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3686	  if test $ac_prog = install &&
3687	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3688	    # AIX install.  It has an incompatible calling convention.
3689	    :
3690	  elif test $ac_prog = install &&
3691	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3692	    # program-specific install script used by HP pwplus--don't use.
3693	    :
3694	  else
3695	    rm -rf conftest.one conftest.two conftest.dir
3696	    echo one > conftest.one
3697	    echo two > conftest.two
3698	    mkdir conftest.dir
3699	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3700	      test -s conftest.one && test -s conftest.two &&
3701	      test -s conftest.dir/conftest.one &&
3702	      test -s conftest.dir/conftest.two
3703	    then
3704	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3705	      break 3
3706	    fi
3707	  fi
3708	fi
3709      done
3710    done
3711    ;;
3712esac
3713
3714  done
3715IFS=$as_save_IFS
3716
3717rm -rf conftest.one conftest.two conftest.dir
3718
3719fi
3720  if test "${ac_cv_path_install+set}" = set; then
3721    INSTALL=$ac_cv_path_install
3722  else
3723    # As a last resort, use the slow shell script.  Don't cache a
3724    # value for INSTALL within a source directory, because that will
3725    # break other packages using the cache if that directory is
3726    # removed, or if the value is a relative name.
3727    INSTALL=$ac_install_sh
3728  fi
3729fi
3730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3731$as_echo "$INSTALL" >&6; }
3732
3733# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3734# It thinks the first close brace ends the variable substitution.
3735test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3736
3737test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3738
3739test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3740
3741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3742$as_echo_n "checking whether build environment is sane... " >&6; }
3743# Reject unsafe characters in $srcdir or the absolute working directory
3744# name.  Accept space and tab only in the latter.
3745am_lf='
3746'
3747case `pwd` in
3748  *[\\\"\#\$\&\'\`$am_lf]*)
3749    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3750esac
3751case $srcdir in
3752  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
3753    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3754esac
3755
3756# Do 'set' in a subshell so we don't clobber the current shell's
3757# arguments.  Must try -L first in case configure is actually a
3758# symlink; some systems play weird games with the mod time of symlinks
3759# (eg FreeBSD returns the mod time of the symlink's containing
3760# directory).
3761if (
3762   am_has_slept=no
3763   for am_try in 1 2; do
3764     echo "timestamp, slept: $am_has_slept" > conftest.file
3765     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3766     if test "$*" = "X"; then
3767	# -L didn't work.
3768	set X `ls -t "$srcdir/configure" conftest.file`
3769     fi
3770     if test "$*" != "X $srcdir/configure conftest.file" \
3771	&& test "$*" != "X conftest.file $srcdir/configure"; then
3772
3773	# If neither matched, then we have a broken ls.  This can happen
3774	# if, for instance, CONFIG_SHELL is bash and it inherits a
3775	# broken ls alias from the environment.  This has actually
3776	# happened.  Such a system could not be considered "sane".
3777	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3778  alias in your environment" "$LINENO" 5
3779     fi
3780     if test "$2" = conftest.file || test $am_try -eq 2; then
3781       break
3782     fi
3783     # Just in case.
3784     sleep 1
3785     am_has_slept=yes
3786   done
3787   test "$2" = conftest.file
3788   )
3789then
3790   # Ok.
3791   :
3792else
3793   as_fn_error $? "newly created file is older than distributed files!
3794Check your system clock" "$LINENO" 5
3795fi
3796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3797$as_echo "yes" >&6; }
3798# If we didn't sleep, we still need to ensure time stamps of config.status and
3799# generated files are strictly newer.
3800am_sleep_pid=
3801if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3802  ( sleep 1 ) &
3803  am_sleep_pid=$!
3804fi
3805
3806rm -f conftest.file
3807
3808test "$program_prefix" != NONE &&
3809  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3810# Use a double $ so make ignores it.
3811test "$program_suffix" != NONE &&
3812  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3813# Double any \ or $.
3814# By default was `s,x,x', remove it if useless.
3815ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3816program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3817
3818if test x"${MISSING+set}" != xset; then
3819  case $am_aux_dir in
3820  *\ * | *\	*)
3821    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3822  *)
3823    MISSING="\${SHELL} $am_aux_dir/missing" ;;
3824  esac
3825fi
3826# Use eval to expand $SHELL
3827if eval "$MISSING --is-lightweight"; then
3828  am_missing_run="$MISSING "
3829else
3830  am_missing_run=
3831  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3832$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3833fi
3834
3835if test x"${install_sh+set}" != xset; then
3836  case $am_aux_dir in
3837  *\ * | *\	*)
3838    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3839  *)
3840    install_sh="\${SHELL} $am_aux_dir/install-sh"
3841  esac
3842fi
3843
3844# Installed binaries are usually stripped using 'strip' when the user
3845# run "make install-strip".  However 'strip' might not be the right
3846# tool to use in cross-compilation environments, therefore Automake
3847# will honor the 'STRIP' environment variable to overrule this program.
3848if test "$cross_compiling" != no; then
3849  if test -n "$ac_tool_prefix"; then
3850  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3851set dummy ${ac_tool_prefix}strip; ac_word=$2
3852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3853$as_echo_n "checking for $ac_word... " >&6; }
3854if ${ac_cv_prog_STRIP+:} false; then :
3855  $as_echo_n "(cached) " >&6
3856else
3857  if test -n "$STRIP"; then
3858  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3859else
3860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3861for as_dir in $PATH
3862do
3863  IFS=$as_save_IFS
3864  test -z "$as_dir" && as_dir=.
3865    for ac_exec_ext in '' $ac_executable_extensions; do
3866  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3867    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3868    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3869    break 2
3870  fi
3871done
3872  done
3873IFS=$as_save_IFS
3874
3875fi
3876fi
3877STRIP=$ac_cv_prog_STRIP
3878if test -n "$STRIP"; then
3879  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3880$as_echo "$STRIP" >&6; }
3881else
3882  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3883$as_echo "no" >&6; }
3884fi
3885
3886
3887fi
3888if test -z "$ac_cv_prog_STRIP"; then
3889  ac_ct_STRIP=$STRIP
3890  # Extract the first word of "strip", so it can be a program name with args.
3891set dummy strip; ac_word=$2
3892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3893$as_echo_n "checking for $ac_word... " >&6; }
3894if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3895  $as_echo_n "(cached) " >&6
3896else
3897  if test -n "$ac_ct_STRIP"; then
3898  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3899else
3900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3901for as_dir in $PATH
3902do
3903  IFS=$as_save_IFS
3904  test -z "$as_dir" && as_dir=.
3905    for ac_exec_ext in '' $ac_executable_extensions; do
3906  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3907    ac_cv_prog_ac_ct_STRIP="strip"
3908    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3909    break 2
3910  fi
3911done
3912  done
3913IFS=$as_save_IFS
3914
3915fi
3916fi
3917ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3918if test -n "$ac_ct_STRIP"; then
3919  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3920$as_echo "$ac_ct_STRIP" >&6; }
3921else
3922  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3923$as_echo "no" >&6; }
3924fi
3925
3926  if test "x$ac_ct_STRIP" = x; then
3927    STRIP=":"
3928  else
3929    case $cross_compiling:$ac_tool_warned in
3930yes:)
3931{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3932$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3933ac_tool_warned=yes ;;
3934esac
3935    STRIP=$ac_ct_STRIP
3936  fi
3937else
3938  STRIP="$ac_cv_prog_STRIP"
3939fi
3940
3941fi
3942INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3943
3944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3945$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3946if test -z "$MKDIR_P"; then
3947  if ${ac_cv_path_mkdir+:} false; then :
3948  $as_echo_n "(cached) " >&6
3949else
3950  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3951for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3952do
3953  IFS=$as_save_IFS
3954  test -z "$as_dir" && as_dir=.
3955    for ac_prog in mkdir gmkdir; do
3956	 for ac_exec_ext in '' $ac_executable_extensions; do
3957	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3958	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3959	     'mkdir (GNU coreutils) '* | \
3960	     'mkdir (coreutils) '* | \
3961	     'mkdir (fileutils) '4.1*)
3962	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3963	       break 3;;
3964	   esac
3965	 done
3966       done
3967  done
3968IFS=$as_save_IFS
3969
3970fi
3971
3972  test -d ./--version && rmdir ./--version
3973  if test "${ac_cv_path_mkdir+set}" = set; then
3974    MKDIR_P="$ac_cv_path_mkdir -p"
3975  else
3976    # As a last resort, use the slow shell script.  Don't cache a
3977    # value for MKDIR_P within a source directory, because that will
3978    # break other packages using the cache if that directory is
3979    # removed, or if the value is a relative name.
3980    MKDIR_P="$ac_install_sh -d"
3981  fi
3982fi
3983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3984$as_echo "$MKDIR_P" >&6; }
3985
3986for ac_prog in gawk mawk nawk awk
3987do
3988  # Extract the first word of "$ac_prog", so it can be a program name with args.
3989set dummy $ac_prog; ac_word=$2
3990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3991$as_echo_n "checking for $ac_word... " >&6; }
3992if ${ac_cv_prog_AWK+:} false; then :
3993  $as_echo_n "(cached) " >&6
3994else
3995  if test -n "$AWK"; then
3996  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3997else
3998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3999for as_dir in $PATH
4000do
4001  IFS=$as_save_IFS
4002  test -z "$as_dir" && as_dir=.
4003    for ac_exec_ext in '' $ac_executable_extensions; do
4004  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4005    ac_cv_prog_AWK="$ac_prog"
4006    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4007    break 2
4008  fi
4009done
4010  done
4011IFS=$as_save_IFS
4012
4013fi
4014fi
4015AWK=$ac_cv_prog_AWK
4016if test -n "$AWK"; then
4017  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4018$as_echo "$AWK" >&6; }
4019else
4020  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4021$as_echo "no" >&6; }
4022fi
4023
4024
4025  test -n "$AWK" && break
4026done
4027
4028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4029$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4030set x ${MAKE-make}
4031ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4032if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4033  $as_echo_n "(cached) " >&6
4034else
4035  cat >conftest.make <<\_ACEOF
4036SHELL = /bin/sh
4037all:
4038	@echo '@@@%%%=$(MAKE)=@@@%%%'
4039_ACEOF
4040# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4041case `${MAKE-make} -f conftest.make 2>/dev/null` in
4042  *@@@%%%=?*=@@@%%%*)
4043    eval ac_cv_prog_make_${ac_make}_set=yes;;
4044  *)
4045    eval ac_cv_prog_make_${ac_make}_set=no;;
4046esac
4047rm -f conftest.make
4048fi
4049if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4050  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4051$as_echo "yes" >&6; }
4052  SET_MAKE=
4053else
4054  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4055$as_echo "no" >&6; }
4056  SET_MAKE="MAKE=${MAKE-make}"
4057fi
4058
4059rm -rf .tst 2>/dev/null
4060mkdir .tst 2>/dev/null
4061if test -d .tst; then
4062  am__leading_dot=.
4063else
4064  am__leading_dot=_
4065fi
4066rmdir .tst 2>/dev/null
4067
4068DEPDIR="${am__leading_dot}deps"
4069
4070ac_config_commands="$ac_config_commands depfiles"
4071
4072
4073am_make=${MAKE-make}
4074cat > confinc << 'END'
4075am__doit:
4076	@echo this is the am__doit target
4077.PHONY: am__doit
4078END
4079# If we don't find an include directive, just comment out the code.
4080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4081$as_echo_n "checking for style of include used by $am_make... " >&6; }
4082am__include="#"
4083am__quote=
4084_am_result=none
4085# First try GNU make style include.
4086echo "include confinc" > confmf
4087# Ignore all kinds of additional output from 'make'.
4088case `$am_make -s -f confmf 2> /dev/null` in #(
4089*the\ am__doit\ target*)
4090  am__include=include
4091  am__quote=
4092  _am_result=GNU
4093  ;;
4094esac
4095# Now try BSD make style include.
4096if test "$am__include" = "#"; then
4097   echo '.include "confinc"' > confmf
4098   case `$am_make -s -f confmf 2> /dev/null` in #(
4099   *the\ am__doit\ target*)
4100     am__include=.include
4101     am__quote="\""
4102     _am_result=BSD
4103     ;;
4104   esac
4105fi
4106
4107
4108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4109$as_echo "$_am_result" >&6; }
4110rm -f confinc confmf
4111
4112# Check whether --enable-dependency-tracking was given.
4113if test "${enable_dependency_tracking+set}" = set; then :
4114  enableval=$enable_dependency_tracking;
4115fi
4116
4117if test "x$enable_dependency_tracking" != xno; then
4118  am_depcomp="$ac_aux_dir/depcomp"
4119  AMDEPBACKSLASH='\'
4120  am__nodep='_no'
4121fi
4122 if test "x$enable_dependency_tracking" != xno; then
4123  AMDEP_TRUE=
4124  AMDEP_FALSE='#'
4125else
4126  AMDEP_TRUE='#'
4127  AMDEP_FALSE=
4128fi
4129
4130
4131# Check whether --enable-silent-rules was given.
4132if test "${enable_silent_rules+set}" = set; then :
4133  enableval=$enable_silent_rules;
4134fi
4135
4136case $enable_silent_rules in # (((
4137  yes) AM_DEFAULT_VERBOSITY=0;;
4138   no) AM_DEFAULT_VERBOSITY=1;;
4139    *) AM_DEFAULT_VERBOSITY=1;;
4140esac
4141am_make=${MAKE-make}
4142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4143$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4144if ${am_cv_make_support_nested_variables+:} false; then :
4145  $as_echo_n "(cached) " >&6
4146else
4147  if $as_echo 'TRUE=$(BAR$(V))
4148BAR0=false
4149BAR1=true
4150V=1
4151am__doit:
4152	@$(TRUE)
4153.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4154  am_cv_make_support_nested_variables=yes
4155else
4156  am_cv_make_support_nested_variables=no
4157fi
4158fi
4159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4160$as_echo "$am_cv_make_support_nested_variables" >&6; }
4161if test $am_cv_make_support_nested_variables = yes; then
4162    AM_V='$(V)'
4163  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4164else
4165  AM_V=$AM_DEFAULT_VERBOSITY
4166  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4167fi
4168AM_BACKSLASH='\'
4169
4170if test "`cd $srcdir && pwd`" != "`pwd`"; then
4171  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4172  # is not polluted with repeated "-I."
4173  am__isrc=' -I$(srcdir)'
4174  # test to see if srcdir already configured
4175  if test -f $srcdir/config.status; then
4176    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4177  fi
4178fi
4179
4180# test whether we have cygpath
4181if test -z "$CYGPATH_W"; then
4182  if (cygpath --version) >/dev/null 2>/dev/null; then
4183    CYGPATH_W='cygpath -w'
4184  else
4185    CYGPATH_W=echo
4186  fi
4187fi
4188
4189
4190# Define the identity of the package.
4191 PACKAGE='bfd'
4192 VERSION='2.35.50'
4193
4194
4195cat >>confdefs.h <<_ACEOF
4196#define PACKAGE "$PACKAGE"
4197_ACEOF
4198
4199
4200cat >>confdefs.h <<_ACEOF
4201#define VERSION "$VERSION"
4202_ACEOF
4203
4204# Some tools Automake needs.
4205
4206ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4207
4208
4209AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4210
4211
4212AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4213
4214
4215AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4216
4217
4218MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4219
4220# For better backward compatibility.  To be removed once Automake 1.9.x
4221# dies out for good.  For more background, see:
4222# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4223# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4224mkdir_p='$(MKDIR_P)'
4225
4226# We need awk for the "check" target (and possibly the TAP driver).  The
4227# system "awk" is bad on some platforms.
4228# Always define AMTAR for backward compatibility.  Yes, it's still used
4229# in the wild :-(  We should find a proper way to deprecate it ...
4230AMTAR='$${TAR-tar}'
4231
4232
4233# We'll loop over all known methods to create a tar archive until one works.
4234_am_tools='gnutar  pax cpio none'
4235
4236am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4237
4238
4239
4240
4241
4242depcc="$CC"   am_compiler_list=
4243
4244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4245$as_echo_n "checking dependency style of $depcc... " >&6; }
4246if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4247  $as_echo_n "(cached) " >&6
4248else
4249  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4250  # We make a subdir and do the tests there.  Otherwise we can end up
4251  # making bogus files that we don't know about and never remove.  For
4252  # instance it was reported that on HP-UX the gcc test will end up
4253  # making a dummy file named 'D' -- because '-MD' means "put the output
4254  # in D".
4255  rm -rf conftest.dir
4256  mkdir conftest.dir
4257  # Copy depcomp to subdir because otherwise we won't find it if we're
4258  # using a relative directory.
4259  cp "$am_depcomp" conftest.dir
4260  cd conftest.dir
4261  # We will build objects and dependencies in a subdirectory because
4262  # it helps to detect inapplicable dependency modes.  For instance
4263  # both Tru64's cc and ICC support -MD to output dependencies as a
4264  # side effect of compilation, but ICC will put the dependencies in
4265  # the current directory while Tru64 will put them in the object
4266  # directory.
4267  mkdir sub
4268
4269  am_cv_CC_dependencies_compiler_type=none
4270  if test "$am_compiler_list" = ""; then
4271     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4272  fi
4273  am__universal=false
4274  case " $depcc " in #(
4275     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4276     esac
4277
4278  for depmode in $am_compiler_list; do
4279    # Setup a source with many dependencies, because some compilers
4280    # like to wrap large dependency lists on column 80 (with \), and
4281    # we should not choose a depcomp mode which is confused by this.
4282    #
4283    # We need to recreate these files for each test, as the compiler may
4284    # overwrite some of them when testing with obscure command lines.
4285    # This happens at least with the AIX C compiler.
4286    : > sub/conftest.c
4287    for i in 1 2 3 4 5 6; do
4288      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4289      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4290      # Solaris 10 /bin/sh.
4291      echo '/* dummy */' > sub/conftst$i.h
4292    done
4293    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4294
4295    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4296    # mode.  It turns out that the SunPro C++ compiler does not properly
4297    # handle '-M -o', and we need to detect this.  Also, some Intel
4298    # versions had trouble with output in subdirs.
4299    am__obj=sub/conftest.${OBJEXT-o}
4300    am__minus_obj="-o $am__obj"
4301    case $depmode in
4302    gcc)
4303      # This depmode causes a compiler race in universal mode.
4304      test "$am__universal" = false || continue
4305      ;;
4306    nosideeffect)
4307      # After this tag, mechanisms are not by side-effect, so they'll
4308      # only be used when explicitly requested.
4309      if test "x$enable_dependency_tracking" = xyes; then
4310	continue
4311      else
4312	break
4313      fi
4314      ;;
4315    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4316      # This compiler won't grok '-c -o', but also, the minuso test has
4317      # not run yet.  These depmodes are late enough in the game, and
4318      # so weak that their functioning should not be impacted.
4319      am__obj=conftest.${OBJEXT-o}
4320      am__minus_obj=
4321      ;;
4322    none) break ;;
4323    esac
4324    if depmode=$depmode \
4325       source=sub/conftest.c object=$am__obj \
4326       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4327       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4328         >/dev/null 2>conftest.err &&
4329       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4330       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4331       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4332       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4333      # icc doesn't choke on unknown options, it will just issue warnings
4334      # or remarks (even with -Werror).  So we grep stderr for any message
4335      # that says an option was ignored or not supported.
4336      # When given -MP, icc 7.0 and 7.1 complain thusly:
4337      #   icc: Command line warning: ignoring option '-M'; no argument required
4338      # The diagnosis changed in icc 8.0:
4339      #   icc: Command line remark: option '-MP' not supported
4340      if (grep 'ignoring option' conftest.err ||
4341          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4342        am_cv_CC_dependencies_compiler_type=$depmode
4343        break
4344      fi
4345    fi
4346  done
4347
4348  cd ..
4349  rm -rf conftest.dir
4350else
4351  am_cv_CC_dependencies_compiler_type=none
4352fi
4353
4354fi
4355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4356$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4357CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4358
4359 if
4360  test "x$enable_dependency_tracking" != xno \
4361  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4362  am__fastdepCC_TRUE=
4363  am__fastdepCC_FALSE='#'
4364else
4365  am__fastdepCC_TRUE='#'
4366  am__fastdepCC_FALSE=
4367fi
4368
4369
4370
4371# POSIX will say in a future version that running "rm -f" with no argument
4372# is OK; and we want to be able to make that assumption in our Makefile
4373# recipes.  So use an aggressive probe to check that the usage we want is
4374# actually supported "in the wild" to an acceptable degree.
4375# See automake bug#10828.
4376# To make any issue more visible, cause the running configure to be aborted
4377# by default if the 'rm' program in use doesn't match our expectations; the
4378# user can still override this though.
4379if rm -f && rm -fr && rm -rf; then : OK; else
4380  cat >&2 <<'END'
4381Oops!
4382
4383Your 'rm' program seems unable to run without file operands specified
4384on the command line, even when the '-f' option is present.  This is contrary
4385to the behaviour of most rm programs out there, and not conforming with
4386the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4387
4388Please tell bug-automake@gnu.org about your system, including the value
4389of your $PATH and any error possibly output before this message.  This
4390can help us improve future automake versions.
4391
4392END
4393  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4394    echo 'Configuration will proceed anyway, since you have set the' >&2
4395    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4396    echo >&2
4397  else
4398    cat >&2 <<'END'
4399Aborting the configuration process, to ensure you take notice of the issue.
4400
4401You can download and install GNU coreutils to get an 'rm' implementation
4402that behaves properly: <http://www.gnu.org/software/coreutils/>.
4403
4404If you want to complete the configuration process using your problematic
4405'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4406to "yes", and re-run configure.
4407
4408END
4409    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4410  fi
4411fi
4412
4413
4414if test -n "$ac_tool_prefix"; then
4415  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4416set dummy ${ac_tool_prefix}ar; ac_word=$2
4417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4418$as_echo_n "checking for $ac_word... " >&6; }
4419if ${ac_cv_prog_AR+:} false; then :
4420  $as_echo_n "(cached) " >&6
4421else
4422  if test -n "$AR"; then
4423  ac_cv_prog_AR="$AR" # Let the user override the test.
4424else
4425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4426for as_dir in $PATH
4427do
4428  IFS=$as_save_IFS
4429  test -z "$as_dir" && as_dir=.
4430    for ac_exec_ext in '' $ac_executable_extensions; do
4431  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4432    ac_cv_prog_AR="${ac_tool_prefix}ar"
4433    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4434    break 2
4435  fi
4436done
4437  done
4438IFS=$as_save_IFS
4439
4440fi
4441fi
4442AR=$ac_cv_prog_AR
4443if test -n "$AR"; then
4444  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4445$as_echo "$AR" >&6; }
4446else
4447  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4448$as_echo "no" >&6; }
4449fi
4450
4451
4452fi
4453if test -z "$ac_cv_prog_AR"; then
4454  ac_ct_AR=$AR
4455  # Extract the first word of "ar", so it can be a program name with args.
4456set dummy ar; ac_word=$2
4457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4458$as_echo_n "checking for $ac_word... " >&6; }
4459if ${ac_cv_prog_ac_ct_AR+:} false; then :
4460  $as_echo_n "(cached) " >&6
4461else
4462  if test -n "$ac_ct_AR"; then
4463  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4464else
4465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4466for as_dir in $PATH
4467do
4468  IFS=$as_save_IFS
4469  test -z "$as_dir" && as_dir=.
4470    for ac_exec_ext in '' $ac_executable_extensions; do
4471  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4472    ac_cv_prog_ac_ct_AR="ar"
4473    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4474    break 2
4475  fi
4476done
4477  done
4478IFS=$as_save_IFS
4479
4480fi
4481fi
4482ac_ct_AR=$ac_cv_prog_ac_ct_AR
4483if test -n "$ac_ct_AR"; then
4484  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4485$as_echo "$ac_ct_AR" >&6; }
4486else
4487  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4488$as_echo "no" >&6; }
4489fi
4490
4491  if test "x$ac_ct_AR" = x; then
4492    AR=""
4493  else
4494    case $cross_compiling:$ac_tool_warned in
4495yes:)
4496{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4497$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4498ac_tool_warned=yes ;;
4499esac
4500    AR=$ac_ct_AR
4501  fi
4502else
4503  AR="$ac_cv_prog_AR"
4504fi
4505
4506if test -n "$ac_tool_prefix"; then
4507  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4508set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4510$as_echo_n "checking for $ac_word... " >&6; }
4511if ${ac_cv_prog_RANLIB+:} false; then :
4512  $as_echo_n "(cached) " >&6
4513else
4514  if test -n "$RANLIB"; then
4515  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4516else
4517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4518for as_dir in $PATH
4519do
4520  IFS=$as_save_IFS
4521  test -z "$as_dir" && as_dir=.
4522    for ac_exec_ext in '' $ac_executable_extensions; do
4523  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4524    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4525    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4526    break 2
4527  fi
4528done
4529  done
4530IFS=$as_save_IFS
4531
4532fi
4533fi
4534RANLIB=$ac_cv_prog_RANLIB
4535if test -n "$RANLIB"; then
4536  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4537$as_echo "$RANLIB" >&6; }
4538else
4539  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4540$as_echo "no" >&6; }
4541fi
4542
4543
4544fi
4545if test -z "$ac_cv_prog_RANLIB"; then
4546  ac_ct_RANLIB=$RANLIB
4547  # Extract the first word of "ranlib", so it can be a program name with args.
4548set dummy ranlib; ac_word=$2
4549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4550$as_echo_n "checking for $ac_word... " >&6; }
4551if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4552  $as_echo_n "(cached) " >&6
4553else
4554  if test -n "$ac_ct_RANLIB"; then
4555  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4556else
4557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4558for as_dir in $PATH
4559do
4560  IFS=$as_save_IFS
4561  test -z "$as_dir" && as_dir=.
4562    for ac_exec_ext in '' $ac_executable_extensions; do
4563  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4564    ac_cv_prog_ac_ct_RANLIB="ranlib"
4565    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4566    break 2
4567  fi
4568done
4569  done
4570IFS=$as_save_IFS
4571
4572fi
4573fi
4574ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4575if test -n "$ac_ct_RANLIB"; then
4576  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4577$as_echo "$ac_ct_RANLIB" >&6; }
4578else
4579  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4580$as_echo "no" >&6; }
4581fi
4582
4583  if test "x$ac_ct_RANLIB" = x; then
4584    RANLIB=":"
4585  else
4586    case $cross_compiling:$ac_tool_warned in
4587yes:)
4588{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4589$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4590ac_tool_warned=yes ;;
4591esac
4592    RANLIB=$ac_ct_RANLIB
4593  fi
4594else
4595  RANLIB="$ac_cv_prog_RANLIB"
4596fi
4597
4598
4599# Check whether --enable-shared was given.
4600if test "${enable_shared+set}" = set; then :
4601  enableval=$enable_shared; p=${PACKAGE-default}
4602    case $enableval in
4603    yes) enable_shared=yes ;;
4604    no) enable_shared=no ;;
4605    *)
4606      enable_shared=no
4607      # Look at the argument we got.  We use all the common list separators.
4608      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4609      for pkg in $enableval; do
4610	IFS="$lt_save_ifs"
4611	if test "X$pkg" = "X$p"; then
4612	  enable_shared=yes
4613	fi
4614      done
4615      IFS="$lt_save_ifs"
4616      ;;
4617    esac
4618else
4619  enable_shared=no
4620fi
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631ac_ext=c
4632ac_cpp='$CPP $CPPFLAGS'
4633ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4634ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4635ac_compiler_gnu=$ac_cv_c_compiler_gnu
4636if test -n "$ac_tool_prefix"; then
4637  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4638set dummy ${ac_tool_prefix}gcc; ac_word=$2
4639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4640$as_echo_n "checking for $ac_word... " >&6; }
4641if ${ac_cv_prog_CC+:} false; then :
4642  $as_echo_n "(cached) " >&6
4643else
4644  if test -n "$CC"; then
4645  ac_cv_prog_CC="$CC" # Let the user override the test.
4646else
4647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4648for as_dir in $PATH
4649do
4650  IFS=$as_save_IFS
4651  test -z "$as_dir" && as_dir=.
4652    for ac_exec_ext in '' $ac_executable_extensions; do
4653  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4654    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4655    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4656    break 2
4657  fi
4658done
4659  done
4660IFS=$as_save_IFS
4661
4662fi
4663fi
4664CC=$ac_cv_prog_CC
4665if test -n "$CC"; then
4666  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4667$as_echo "$CC" >&6; }
4668else
4669  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4670$as_echo "no" >&6; }
4671fi
4672
4673
4674fi
4675if test -z "$ac_cv_prog_CC"; then
4676  ac_ct_CC=$CC
4677  # Extract the first word of "gcc", so it can be a program name with args.
4678set dummy gcc; ac_word=$2
4679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4680$as_echo_n "checking for $ac_word... " >&6; }
4681if ${ac_cv_prog_ac_ct_CC+:} false; then :
4682  $as_echo_n "(cached) " >&6
4683else
4684  if test -n "$ac_ct_CC"; then
4685  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4686else
4687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4688for as_dir in $PATH
4689do
4690  IFS=$as_save_IFS
4691  test -z "$as_dir" && as_dir=.
4692    for ac_exec_ext in '' $ac_executable_extensions; do
4693  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4694    ac_cv_prog_ac_ct_CC="gcc"
4695    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4696    break 2
4697  fi
4698done
4699  done
4700IFS=$as_save_IFS
4701
4702fi
4703fi
4704ac_ct_CC=$ac_cv_prog_ac_ct_CC
4705if test -n "$ac_ct_CC"; then
4706  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4707$as_echo "$ac_ct_CC" >&6; }
4708else
4709  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4710$as_echo "no" >&6; }
4711fi
4712
4713  if test "x$ac_ct_CC" = x; then
4714    CC=""
4715  else
4716    case $cross_compiling:$ac_tool_warned in
4717yes:)
4718{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4719$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4720ac_tool_warned=yes ;;
4721esac
4722    CC=$ac_ct_CC
4723  fi
4724else
4725  CC="$ac_cv_prog_CC"
4726fi
4727
4728if test -z "$CC"; then
4729          if test -n "$ac_tool_prefix"; then
4730    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4731set dummy ${ac_tool_prefix}cc; ac_word=$2
4732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4733$as_echo_n "checking for $ac_word... " >&6; }
4734if ${ac_cv_prog_CC+:} false; then :
4735  $as_echo_n "(cached) " >&6
4736else
4737  if test -n "$CC"; then
4738  ac_cv_prog_CC="$CC" # Let the user override the test.
4739else
4740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4741for as_dir in $PATH
4742do
4743  IFS=$as_save_IFS
4744  test -z "$as_dir" && as_dir=.
4745    for ac_exec_ext in '' $ac_executable_extensions; do
4746  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4747    ac_cv_prog_CC="${ac_tool_prefix}cc"
4748    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4749    break 2
4750  fi
4751done
4752  done
4753IFS=$as_save_IFS
4754
4755fi
4756fi
4757CC=$ac_cv_prog_CC
4758if test -n "$CC"; then
4759  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4760$as_echo "$CC" >&6; }
4761else
4762  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4763$as_echo "no" >&6; }
4764fi
4765
4766
4767  fi
4768fi
4769if test -z "$CC"; then
4770  # Extract the first word of "cc", so it can be a program name with args.
4771set dummy cc; ac_word=$2
4772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4773$as_echo_n "checking for $ac_word... " >&6; }
4774if ${ac_cv_prog_CC+:} false; then :
4775  $as_echo_n "(cached) " >&6
4776else
4777  if test -n "$CC"; then
4778  ac_cv_prog_CC="$CC" # Let the user override the test.
4779else
4780  ac_prog_rejected=no
4781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4782for as_dir in $PATH
4783do
4784  IFS=$as_save_IFS
4785  test -z "$as_dir" && as_dir=.
4786    for ac_exec_ext in '' $ac_executable_extensions; do
4787  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4788    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4789       ac_prog_rejected=yes
4790       continue
4791     fi
4792    ac_cv_prog_CC="cc"
4793    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4794    break 2
4795  fi
4796done
4797  done
4798IFS=$as_save_IFS
4799
4800if test $ac_prog_rejected = yes; then
4801  # We found a bogon in the path, so make sure we never use it.
4802  set dummy $ac_cv_prog_CC
4803  shift
4804  if test $# != 0; then
4805    # We chose a different compiler from the bogus one.
4806    # However, it has the same basename, so the bogon will be chosen
4807    # first if we set CC to just the basename; use the full file name.
4808    shift
4809    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4810  fi
4811fi
4812fi
4813fi
4814CC=$ac_cv_prog_CC
4815if test -n "$CC"; then
4816  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4817$as_echo "$CC" >&6; }
4818else
4819  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4820$as_echo "no" >&6; }
4821fi
4822
4823
4824fi
4825if test -z "$CC"; then
4826  if test -n "$ac_tool_prefix"; then
4827  for ac_prog in cl.exe
4828  do
4829    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4830set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4832$as_echo_n "checking for $ac_word... " >&6; }
4833if ${ac_cv_prog_CC+:} false; then :
4834  $as_echo_n "(cached) " >&6
4835else
4836  if test -n "$CC"; then
4837  ac_cv_prog_CC="$CC" # Let the user override the test.
4838else
4839as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4840for as_dir in $PATH
4841do
4842  IFS=$as_save_IFS
4843  test -z "$as_dir" && as_dir=.
4844    for ac_exec_ext in '' $ac_executable_extensions; do
4845  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4846    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4847    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4848    break 2
4849  fi
4850done
4851  done
4852IFS=$as_save_IFS
4853
4854fi
4855fi
4856CC=$ac_cv_prog_CC
4857if test -n "$CC"; then
4858  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4859$as_echo "$CC" >&6; }
4860else
4861  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4862$as_echo "no" >&6; }
4863fi
4864
4865
4866    test -n "$CC" && break
4867  done
4868fi
4869if test -z "$CC"; then
4870  ac_ct_CC=$CC
4871  for ac_prog in cl.exe
4872do
4873  # Extract the first word of "$ac_prog", so it can be a program name with args.
4874set dummy $ac_prog; ac_word=$2
4875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4876$as_echo_n "checking for $ac_word... " >&6; }
4877if ${ac_cv_prog_ac_ct_CC+:} false; then :
4878  $as_echo_n "(cached) " >&6
4879else
4880  if test -n "$ac_ct_CC"; then
4881  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4882else
4883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4884for as_dir in $PATH
4885do
4886  IFS=$as_save_IFS
4887  test -z "$as_dir" && as_dir=.
4888    for ac_exec_ext in '' $ac_executable_extensions; do
4889  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4890    ac_cv_prog_ac_ct_CC="$ac_prog"
4891    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4892    break 2
4893  fi
4894done
4895  done
4896IFS=$as_save_IFS
4897
4898fi
4899fi
4900ac_ct_CC=$ac_cv_prog_ac_ct_CC
4901if test -n "$ac_ct_CC"; then
4902  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4903$as_echo "$ac_ct_CC" >&6; }
4904else
4905  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4906$as_echo "no" >&6; }
4907fi
4908
4909
4910  test -n "$ac_ct_CC" && break
4911done
4912
4913  if test "x$ac_ct_CC" = x; then
4914    CC=""
4915  else
4916    case $cross_compiling:$ac_tool_warned in
4917yes:)
4918{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4919$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4920ac_tool_warned=yes ;;
4921esac
4922    CC=$ac_ct_CC
4923  fi
4924fi
4925
4926fi
4927
4928
4929test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4930$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4931as_fn_error $? "no acceptable C compiler found in \$PATH
4932See \`config.log' for more details" "$LINENO" 5; }
4933
4934# Provide some information about the compiler.
4935$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4936set X $ac_compile
4937ac_compiler=$2
4938for ac_option in --version -v -V -qversion; do
4939  { { ac_try="$ac_compiler $ac_option >&5"
4940case "(($ac_try" in
4941  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4942  *) ac_try_echo=$ac_try;;
4943esac
4944eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4945$as_echo "$ac_try_echo"; } >&5
4946  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4947  ac_status=$?
4948  if test -s conftest.err; then
4949    sed '10a\
4950... rest of stderr output deleted ...
4951         10q' conftest.err >conftest.er1
4952    cat conftest.er1 >&5
4953  fi
4954  rm -f conftest.er1 conftest.err
4955  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4956  test $ac_status = 0; }
4957done
4958
4959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4960$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4961if ${ac_cv_c_compiler_gnu+:} false; then :
4962  $as_echo_n "(cached) " >&6
4963else
4964  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4965/* end confdefs.h.  */
4966
4967int
4968main ()
4969{
4970#ifndef __GNUC__
4971       choke me
4972#endif
4973
4974  ;
4975  return 0;
4976}
4977_ACEOF
4978if ac_fn_c_try_compile "$LINENO"; then :
4979  ac_compiler_gnu=yes
4980else
4981  ac_compiler_gnu=no
4982fi
4983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4984ac_cv_c_compiler_gnu=$ac_compiler_gnu
4985
4986fi
4987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4988$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4989if test $ac_compiler_gnu = yes; then
4990  GCC=yes
4991else
4992  GCC=
4993fi
4994ac_test_CFLAGS=${CFLAGS+set}
4995ac_save_CFLAGS=$CFLAGS
4996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4997$as_echo_n "checking whether $CC accepts -g... " >&6; }
4998if ${ac_cv_prog_cc_g+:} false; then :
4999  $as_echo_n "(cached) " >&6
5000else
5001  ac_save_c_werror_flag=$ac_c_werror_flag
5002   ac_c_werror_flag=yes
5003   ac_cv_prog_cc_g=no
5004   CFLAGS="-g"
5005   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5006/* end confdefs.h.  */
5007
5008int
5009main ()
5010{
5011
5012  ;
5013  return 0;
5014}
5015_ACEOF
5016if ac_fn_c_try_compile "$LINENO"; then :
5017  ac_cv_prog_cc_g=yes
5018else
5019  CFLAGS=""
5020      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5021/* end confdefs.h.  */
5022
5023int
5024main ()
5025{
5026
5027  ;
5028  return 0;
5029}
5030_ACEOF
5031if ac_fn_c_try_compile "$LINENO"; then :
5032
5033else
5034  ac_c_werror_flag=$ac_save_c_werror_flag
5035	 CFLAGS="-g"
5036	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5037/* end confdefs.h.  */
5038
5039int
5040main ()
5041{
5042
5043  ;
5044  return 0;
5045}
5046_ACEOF
5047if ac_fn_c_try_compile "$LINENO"; then :
5048  ac_cv_prog_cc_g=yes
5049fi
5050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5051fi
5052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5053fi
5054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5055   ac_c_werror_flag=$ac_save_c_werror_flag
5056fi
5057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5058$as_echo "$ac_cv_prog_cc_g" >&6; }
5059if test "$ac_test_CFLAGS" = set; then
5060  CFLAGS=$ac_save_CFLAGS
5061elif test $ac_cv_prog_cc_g = yes; then
5062  if test "$GCC" = yes; then
5063    CFLAGS="-g -O2"
5064  else
5065    CFLAGS="-g"
5066  fi
5067else
5068  if test "$GCC" = yes; then
5069    CFLAGS="-O2"
5070  else
5071    CFLAGS=
5072  fi
5073fi
5074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5075$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5076if ${ac_cv_prog_cc_c89+:} false; then :
5077  $as_echo_n "(cached) " >&6
5078else
5079  ac_cv_prog_cc_c89=no
5080ac_save_CC=$CC
5081cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5082/* end confdefs.h.  */
5083#include <stdarg.h>
5084#include <stdio.h>
5085struct stat;
5086/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5087struct buf { int x; };
5088FILE * (*rcsopen) (struct buf *, struct stat *, int);
5089static char *e (p, i)
5090     char **p;
5091     int i;
5092{
5093  return p[i];
5094}
5095static char *f (char * (*g) (char **, int), char **p, ...)
5096{
5097  char *s;
5098  va_list v;
5099  va_start (v,p);
5100  s = g (p, va_arg (v,int));
5101  va_end (v);
5102  return s;
5103}
5104
5105/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5106   function prototypes and stuff, but not '\xHH' hex character constants.
5107   These don't provoke an error unfortunately, instead are silently treated
5108   as 'x'.  The following induces an error, until -std is added to get
5109   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5110   array size at least.  It's necessary to write '\x00'==0 to get something
5111   that's true only with -std.  */
5112int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5113
5114/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5115   inside strings and character constants.  */
5116#define FOO(x) 'x'
5117int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5118
5119int test (int i, double x);
5120struct s1 {int (*f) (int a);};
5121struct s2 {int (*f) (double a);};
5122int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5123int argc;
5124char **argv;
5125int
5126main ()
5127{
5128return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5129  ;
5130  return 0;
5131}
5132_ACEOF
5133for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5134	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5135do
5136  CC="$ac_save_CC $ac_arg"
5137  if ac_fn_c_try_compile "$LINENO"; then :
5138  ac_cv_prog_cc_c89=$ac_arg
5139fi
5140rm -f core conftest.err conftest.$ac_objext
5141  test "x$ac_cv_prog_cc_c89" != "xno" && break
5142done
5143rm -f conftest.$ac_ext
5144CC=$ac_save_CC
5145
5146fi
5147# AC_CACHE_VAL
5148case "x$ac_cv_prog_cc_c89" in
5149  x)
5150    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5151$as_echo "none needed" >&6; } ;;
5152  xno)
5153    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5154$as_echo "unsupported" >&6; } ;;
5155  *)
5156    CC="$CC $ac_cv_prog_cc_c89"
5157    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5158$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5159esac
5160if test "x$ac_cv_prog_cc_c89" != xno; then :
5161
5162fi
5163
5164ac_ext=c
5165ac_cpp='$CPP $CPPFLAGS'
5166ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5167ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5168ac_compiler_gnu=$ac_cv_c_compiler_gnu
5169
5170ac_ext=c
5171ac_cpp='$CPP $CPPFLAGS'
5172ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5173ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5174ac_compiler_gnu=$ac_cv_c_compiler_gnu
5175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5176$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5177if ${am_cv_prog_cc_c_o+:} false; then :
5178  $as_echo_n "(cached) " >&6
5179else
5180  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5181/* end confdefs.h.  */
5182
5183int
5184main ()
5185{
5186
5187  ;
5188  return 0;
5189}
5190_ACEOF
5191  # Make sure it works both with $CC and with simple cc.
5192  # Following AC_PROG_CC_C_O, we do the test twice because some
5193  # compilers refuse to overwrite an existing .o file with -o,
5194  # though they will create one.
5195  am_cv_prog_cc_c_o=yes
5196  for am_i in 1 2; do
5197    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5198   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5199   ac_status=$?
5200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5201   (exit $ac_status); } \
5202         && test -f conftest2.$ac_objext; then
5203      : OK
5204    else
5205      am_cv_prog_cc_c_o=no
5206      break
5207    fi
5208  done
5209  rm -f core conftest*
5210  unset am_i
5211fi
5212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5213$as_echo "$am_cv_prog_cc_c_o" >&6; }
5214if test "$am_cv_prog_cc_c_o" != yes; then
5215   # Losing compiler, so override with the script.
5216   # FIXME: It is wrong to rewrite CC.
5217   # But if we don't then we get into trouble of one sort or another.
5218   # A longer-term fix would be to have automake use am__CC in this case,
5219   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5220   CC="$am_aux_dir/compile $CC"
5221fi
5222ac_ext=c
5223ac_cpp='$CPP $CPPFLAGS'
5224ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5225ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5226ac_compiler_gnu=$ac_cv_c_compiler_gnu
5227
5228
5229ac_ext=c
5230ac_cpp='$CPP $CPPFLAGS'
5231ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5232ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5233ac_compiler_gnu=$ac_cv_c_compiler_gnu
5234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5235$as_echo_n "checking how to run the C preprocessor... " >&6; }
5236# On Suns, sometimes $CPP names a directory.
5237if test -n "$CPP" && test -d "$CPP"; then
5238  CPP=
5239fi
5240if test -z "$CPP"; then
5241  if ${ac_cv_prog_CPP+:} false; then :
5242  $as_echo_n "(cached) " >&6
5243else
5244      # Double quotes because CPP needs to be expanded
5245    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5246    do
5247      ac_preproc_ok=false
5248for ac_c_preproc_warn_flag in '' yes
5249do
5250  # Use a header file that comes with gcc, so configuring glibc
5251  # with a fresh cross-compiler works.
5252  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5253  # <limits.h> exists even on freestanding compilers.
5254  # On the NeXT, cc -E runs the code through the compiler's parser,
5255  # not just through cpp. "Syntax error" is here to catch this case.
5256  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5257/* end confdefs.h.  */
5258#ifdef __STDC__
5259# include <limits.h>
5260#else
5261# include <assert.h>
5262#endif
5263		     Syntax error
5264_ACEOF
5265if ac_fn_c_try_cpp "$LINENO"; then :
5266
5267else
5268  # Broken: fails on valid input.
5269continue
5270fi
5271rm -f conftest.err conftest.i conftest.$ac_ext
5272
5273  # OK, works on sane cases.  Now check whether nonexistent headers
5274  # can be detected and how.
5275  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5276/* end confdefs.h.  */
5277#include <ac_nonexistent.h>
5278_ACEOF
5279if ac_fn_c_try_cpp "$LINENO"; then :
5280  # Broken: success on invalid input.
5281continue
5282else
5283  # Passes both tests.
5284ac_preproc_ok=:
5285break
5286fi
5287rm -f conftest.err conftest.i conftest.$ac_ext
5288
5289done
5290# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5291rm -f conftest.i conftest.err conftest.$ac_ext
5292if $ac_preproc_ok; then :
5293  break
5294fi
5295
5296    done
5297    ac_cv_prog_CPP=$CPP
5298
5299fi
5300  CPP=$ac_cv_prog_CPP
5301else
5302  ac_cv_prog_CPP=$CPP
5303fi
5304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5305$as_echo "$CPP" >&6; }
5306ac_preproc_ok=false
5307for ac_c_preproc_warn_flag in '' yes
5308do
5309  # Use a header file that comes with gcc, so configuring glibc
5310  # with a fresh cross-compiler works.
5311  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5312  # <limits.h> exists even on freestanding compilers.
5313  # On the NeXT, cc -E runs the code through the compiler's parser,
5314  # not just through cpp. "Syntax error" is here to catch this case.
5315  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5316/* end confdefs.h.  */
5317#ifdef __STDC__
5318# include <limits.h>
5319#else
5320# include <assert.h>
5321#endif
5322		     Syntax error
5323_ACEOF
5324if ac_fn_c_try_cpp "$LINENO"; then :
5325
5326else
5327  # Broken: fails on valid input.
5328continue
5329fi
5330rm -f conftest.err conftest.i conftest.$ac_ext
5331
5332  # OK, works on sane cases.  Now check whether nonexistent headers
5333  # can be detected and how.
5334  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5335/* end confdefs.h.  */
5336#include <ac_nonexistent.h>
5337_ACEOF
5338if ac_fn_c_try_cpp "$LINENO"; then :
5339  # Broken: success on invalid input.
5340continue
5341else
5342  # Passes both tests.
5343ac_preproc_ok=:
5344break
5345fi
5346rm -f conftest.err conftest.i conftest.$ac_ext
5347
5348done
5349# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5350rm -f conftest.i conftest.err conftest.$ac_ext
5351if $ac_preproc_ok; then :
5352
5353else
5354  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5355$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5356as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5357See \`config.log' for more details" "$LINENO" 5; }
5358fi
5359
5360ac_ext=c
5361ac_cpp='$CPP $CPPFLAGS'
5362ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5363ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5364ac_compiler_gnu=$ac_cv_c_compiler_gnu
5365
5366
5367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5368$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5369if ${ac_cv_path_GREP+:} false; then :
5370  $as_echo_n "(cached) " >&6
5371else
5372  if test -z "$GREP"; then
5373  ac_path_GREP_found=false
5374  # Loop through the user's path and test for each of PROGNAME-LIST
5375  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5376for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5377do
5378  IFS=$as_save_IFS
5379  test -z "$as_dir" && as_dir=.
5380    for ac_prog in grep ggrep; do
5381    for ac_exec_ext in '' $ac_executable_extensions; do
5382      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5383      as_fn_executable_p "$ac_path_GREP" || continue
5384# Check for GNU ac_path_GREP and select it if it is found.
5385  # Check for GNU $ac_path_GREP
5386case `"$ac_path_GREP" --version 2>&1` in
5387*GNU*)
5388  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5389*)
5390  ac_count=0
5391  $as_echo_n 0123456789 >"conftest.in"
5392  while :
5393  do
5394    cat "conftest.in" "conftest.in" >"conftest.tmp"
5395    mv "conftest.tmp" "conftest.in"
5396    cp "conftest.in" "conftest.nl"
5397    $as_echo 'GREP' >> "conftest.nl"
5398    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5399    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5400    as_fn_arith $ac_count + 1 && ac_count=$as_val
5401    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5402      # Best one so far, save it but keep looking for a better one
5403      ac_cv_path_GREP="$ac_path_GREP"
5404      ac_path_GREP_max=$ac_count
5405    fi
5406    # 10*(2^10) chars as input seems more than enough
5407    test $ac_count -gt 10 && break
5408  done
5409  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5410esac
5411
5412      $ac_path_GREP_found && break 3
5413    done
5414  done
5415  done
5416IFS=$as_save_IFS
5417  if test -z "$ac_cv_path_GREP"; then
5418    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5419  fi
5420else
5421  ac_cv_path_GREP=$GREP
5422fi
5423
5424fi
5425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5426$as_echo "$ac_cv_path_GREP" >&6; }
5427 GREP="$ac_cv_path_GREP"
5428
5429
5430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5431$as_echo_n "checking for egrep... " >&6; }
5432if ${ac_cv_path_EGREP+:} false; then :
5433  $as_echo_n "(cached) " >&6
5434else
5435  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5436   then ac_cv_path_EGREP="$GREP -E"
5437   else
5438     if test -z "$EGREP"; then
5439  ac_path_EGREP_found=false
5440  # Loop through the user's path and test for each of PROGNAME-LIST
5441  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5442for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5443do
5444  IFS=$as_save_IFS
5445  test -z "$as_dir" && as_dir=.
5446    for ac_prog in egrep; do
5447    for ac_exec_ext in '' $ac_executable_extensions; do
5448      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5449      as_fn_executable_p "$ac_path_EGREP" || continue
5450# Check for GNU ac_path_EGREP and select it if it is found.
5451  # Check for GNU $ac_path_EGREP
5452case `"$ac_path_EGREP" --version 2>&1` in
5453*GNU*)
5454  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5455*)
5456  ac_count=0
5457  $as_echo_n 0123456789 >"conftest.in"
5458  while :
5459  do
5460    cat "conftest.in" "conftest.in" >"conftest.tmp"
5461    mv "conftest.tmp" "conftest.in"
5462    cp "conftest.in" "conftest.nl"
5463    $as_echo 'EGREP' >> "conftest.nl"
5464    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5465    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5466    as_fn_arith $ac_count + 1 && ac_count=$as_val
5467    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5468      # Best one so far, save it but keep looking for a better one
5469      ac_cv_path_EGREP="$ac_path_EGREP"
5470      ac_path_EGREP_max=$ac_count
5471    fi
5472    # 10*(2^10) chars as input seems more than enough
5473    test $ac_count -gt 10 && break
5474  done
5475  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5476esac
5477
5478      $ac_path_EGREP_found && break 3
5479    done
5480  done
5481  done
5482IFS=$as_save_IFS
5483  if test -z "$ac_cv_path_EGREP"; then
5484    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5485  fi
5486else
5487  ac_cv_path_EGREP=$EGREP
5488fi
5489
5490   fi
5491fi
5492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5493$as_echo "$ac_cv_path_EGREP" >&6; }
5494 EGREP="$ac_cv_path_EGREP"
5495
5496
5497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5498$as_echo_n "checking for ANSI C header files... " >&6; }
5499if ${ac_cv_header_stdc+:} false; then :
5500  $as_echo_n "(cached) " >&6
5501else
5502  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5503/* end confdefs.h.  */
5504#include <stdlib.h>
5505#include <stdarg.h>
5506#include <string.h>
5507#include <float.h>
5508
5509int
5510main ()
5511{
5512
5513  ;
5514  return 0;
5515}
5516_ACEOF
5517if ac_fn_c_try_compile "$LINENO"; then :
5518  ac_cv_header_stdc=yes
5519else
5520  ac_cv_header_stdc=no
5521fi
5522rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5523
5524if test $ac_cv_header_stdc = yes; then
5525  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5526  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5527/* end confdefs.h.  */
5528#include <string.h>
5529
5530_ACEOF
5531if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5532  $EGREP "memchr" >/dev/null 2>&1; then :
5533
5534else
5535  ac_cv_header_stdc=no
5536fi
5537rm -f conftest*
5538
5539fi
5540
5541if test $ac_cv_header_stdc = yes; then
5542  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5543  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5544/* end confdefs.h.  */
5545#include <stdlib.h>
5546
5547_ACEOF
5548if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5549  $EGREP "free" >/dev/null 2>&1; then :
5550
5551else
5552  ac_cv_header_stdc=no
5553fi
5554rm -f conftest*
5555
5556fi
5557
5558if test $ac_cv_header_stdc = yes; then
5559  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5560  if test "$cross_compiling" = yes; then :
5561  :
5562else
5563  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5564/* end confdefs.h.  */
5565#include <ctype.h>
5566#include <stdlib.h>
5567#if ((' ' & 0x0FF) == 0x020)
5568# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5569# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5570#else
5571# define ISLOWER(c) \
5572		   (('a' <= (c) && (c) <= 'i') \
5573		     || ('j' <= (c) && (c) <= 'r') \
5574		     || ('s' <= (c) && (c) <= 'z'))
5575# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5576#endif
5577
5578#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5579int
5580main ()
5581{
5582  int i;
5583  for (i = 0; i < 256; i++)
5584    if (XOR (islower (i), ISLOWER (i))
5585	|| toupper (i) != TOUPPER (i))
5586      return 2;
5587  return 0;
5588}
5589_ACEOF
5590if ac_fn_c_try_run "$LINENO"; then :
5591
5592else
5593  ac_cv_header_stdc=no
5594fi
5595rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5596  conftest.$ac_objext conftest.beam conftest.$ac_ext
5597fi
5598
5599fi
5600fi
5601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5602$as_echo "$ac_cv_header_stdc" >&6; }
5603if test $ac_cv_header_stdc = yes; then
5604
5605$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5606
5607fi
5608
5609# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5610for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5611		  inttypes.h stdint.h unistd.h
5612do :
5613  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5614ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5615"
5616if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5617  cat >>confdefs.h <<_ACEOF
5618#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5619_ACEOF
5620
5621fi
5622
5623done
5624
5625
5626
5627  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5628if test "x$ac_cv_header_minix_config_h" = xyes; then :
5629  MINIX=yes
5630else
5631  MINIX=
5632fi
5633
5634
5635  if test "$MINIX" = yes; then
5636
5637$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5638
5639
5640$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5641
5642
5643$as_echo "#define _MINIX 1" >>confdefs.h
5644
5645  fi
5646
5647
5648  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5649$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5650if ${ac_cv_safe_to_define___extensions__+:} false; then :
5651  $as_echo_n "(cached) " >&6
5652else
5653  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5654/* end confdefs.h.  */
5655
5656#         define __EXTENSIONS__ 1
5657          $ac_includes_default
5658int
5659main ()
5660{
5661
5662  ;
5663  return 0;
5664}
5665_ACEOF
5666if ac_fn_c_try_compile "$LINENO"; then :
5667  ac_cv_safe_to_define___extensions__=yes
5668else
5669  ac_cv_safe_to_define___extensions__=no
5670fi
5671rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5672fi
5673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5674$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5675  test $ac_cv_safe_to_define___extensions__ = yes &&
5676    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5677
5678  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5679
5680  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5681
5682  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5683
5684  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5685
5686
5687
5688
5689
5690case `pwd` in
5691  *\ * | *\	*)
5692    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5693$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5694esac
5695
5696
5697
5698macro_version='2.2.7a'
5699macro_revision='1.3134'
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713ltmain="$ac_aux_dir/ltmain.sh"
5714
5715# Backslashify metacharacters that are still active within
5716# double-quoted strings.
5717sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5718
5719# Same as above, but do not quote variable references.
5720double_quote_subst='s/\(["`\\]\)/\\\1/g'
5721
5722# Sed substitution to delay expansion of an escaped shell variable in a
5723# double_quote_subst'ed string.
5724delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5725
5726# Sed substitution to delay expansion of an escaped single quote.
5727delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5728
5729# Sed substitution to avoid accidental globbing in evaled expressions
5730no_glob_subst='s/\*/\\\*/g'
5731
5732ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5733ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5734ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5735
5736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5737$as_echo_n "checking how to print strings... " >&6; }
5738# Test print first, because it will be a builtin if present.
5739if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5740   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5741  ECHO='print -r --'
5742elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5743  ECHO='printf %s\n'
5744else
5745  # Use this function as a fallback that always works.
5746  func_fallback_echo ()
5747  {
5748    eval 'cat <<_LTECHO_EOF
5749$1
5750_LTECHO_EOF'
5751  }
5752  ECHO='func_fallback_echo'
5753fi
5754
5755# func_echo_all arg...
5756# Invoke $ECHO with all args, space-separated.
5757func_echo_all ()
5758{
5759    $ECHO ""
5760}
5761
5762case "$ECHO" in
5763  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5764$as_echo "printf" >&6; } ;;
5765  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5766$as_echo "print -r" >&6; } ;;
5767  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5768$as_echo "cat" >&6; } ;;
5769esac
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5785$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5786if ${ac_cv_path_SED+:} false; then :
5787  $as_echo_n "(cached) " >&6
5788else
5789            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5790     for ac_i in 1 2 3 4 5 6 7; do
5791       ac_script="$ac_script$as_nl$ac_script"
5792     done
5793     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5794     { ac_script=; unset ac_script;}
5795     if test -z "$SED"; then
5796  ac_path_SED_found=false
5797  # Loop through the user's path and test for each of PROGNAME-LIST
5798  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5799for as_dir in $PATH
5800do
5801  IFS=$as_save_IFS
5802  test -z "$as_dir" && as_dir=.
5803    for ac_prog in sed gsed; do
5804    for ac_exec_ext in '' $ac_executable_extensions; do
5805      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5806      as_fn_executable_p "$ac_path_SED" || continue
5807# Check for GNU ac_path_SED and select it if it is found.
5808  # Check for GNU $ac_path_SED
5809case `"$ac_path_SED" --version 2>&1` in
5810*GNU*)
5811  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5812*)
5813  ac_count=0
5814  $as_echo_n 0123456789 >"conftest.in"
5815  while :
5816  do
5817    cat "conftest.in" "conftest.in" >"conftest.tmp"
5818    mv "conftest.tmp" "conftest.in"
5819    cp "conftest.in" "conftest.nl"
5820    $as_echo '' >> "conftest.nl"
5821    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5822    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5823    as_fn_arith $ac_count + 1 && ac_count=$as_val
5824    if test $ac_count -gt ${ac_path_SED_max-0}; then
5825      # Best one so far, save it but keep looking for a better one
5826      ac_cv_path_SED="$ac_path_SED"
5827      ac_path_SED_max=$ac_count
5828    fi
5829    # 10*(2^10) chars as input seems more than enough
5830    test $ac_count -gt 10 && break
5831  done
5832  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5833esac
5834
5835      $ac_path_SED_found && break 3
5836    done
5837  done
5838  done
5839IFS=$as_save_IFS
5840  if test -z "$ac_cv_path_SED"; then
5841    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5842  fi
5843else
5844  ac_cv_path_SED=$SED
5845fi
5846
5847fi
5848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5849$as_echo "$ac_cv_path_SED" >&6; }
5850 SED="$ac_cv_path_SED"
5851  rm -f conftest.sed
5852
5853test -z "$SED" && SED=sed
5854Xsed="$SED -e 1s/^X//"
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5867$as_echo_n "checking for fgrep... " >&6; }
5868if ${ac_cv_path_FGREP+:} false; then :
5869  $as_echo_n "(cached) " >&6
5870else
5871  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5872   then ac_cv_path_FGREP="$GREP -F"
5873   else
5874     if test -z "$FGREP"; then
5875  ac_path_FGREP_found=false
5876  # Loop through the user's path and test for each of PROGNAME-LIST
5877  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5878for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5879do
5880  IFS=$as_save_IFS
5881  test -z "$as_dir" && as_dir=.
5882    for ac_prog in fgrep; do
5883    for ac_exec_ext in '' $ac_executable_extensions; do
5884      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5885      as_fn_executable_p "$ac_path_FGREP" || continue
5886# Check for GNU ac_path_FGREP and select it if it is found.
5887  # Check for GNU $ac_path_FGREP
5888case `"$ac_path_FGREP" --version 2>&1` in
5889*GNU*)
5890  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5891*)
5892  ac_count=0
5893  $as_echo_n 0123456789 >"conftest.in"
5894  while :
5895  do
5896    cat "conftest.in" "conftest.in" >"conftest.tmp"
5897    mv "conftest.tmp" "conftest.in"
5898    cp "conftest.in" "conftest.nl"
5899    $as_echo 'FGREP' >> "conftest.nl"
5900    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5901    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5902    as_fn_arith $ac_count + 1 && ac_count=$as_val
5903    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5904      # Best one so far, save it but keep looking for a better one
5905      ac_cv_path_FGREP="$ac_path_FGREP"
5906      ac_path_FGREP_max=$ac_count
5907    fi
5908    # 10*(2^10) chars as input seems more than enough
5909    test $ac_count -gt 10 && break
5910  done
5911  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5912esac
5913
5914      $ac_path_FGREP_found && break 3
5915    done
5916  done
5917  done
5918IFS=$as_save_IFS
5919  if test -z "$ac_cv_path_FGREP"; then
5920    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5921  fi
5922else
5923  ac_cv_path_FGREP=$FGREP
5924fi
5925
5926   fi
5927fi
5928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5929$as_echo "$ac_cv_path_FGREP" >&6; }
5930 FGREP="$ac_cv_path_FGREP"
5931
5932
5933test -z "$GREP" && GREP=grep
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953# Check whether --with-gnu-ld was given.
5954if test "${with_gnu_ld+set}" = set; then :
5955  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5956else
5957  with_gnu_ld=no
5958fi
5959
5960ac_prog=ld
5961if test "$GCC" = yes; then
5962  # Check if gcc -print-prog-name=ld gives a path.
5963  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5964$as_echo_n "checking for ld used by $CC... " >&6; }
5965  case $host in
5966  *-*-mingw*)
5967    # gcc leaves a trailing carriage return which upsets mingw
5968    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5969  *)
5970    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5971  esac
5972  case $ac_prog in
5973    # Accept absolute paths.
5974    [\\/]* | ?:[\\/]*)
5975      re_direlt='/[^/][^/]*/\.\./'
5976      # Canonicalize the pathname of ld
5977      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5978      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5979	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5980      done
5981      test -z "$LD" && LD="$ac_prog"
5982      ;;
5983  "")
5984    # If it fails, then pretend we aren't using GCC.
5985    ac_prog=ld
5986    ;;
5987  *)
5988    # If it is relative, then search for the first ld in PATH.
5989    with_gnu_ld=unknown
5990    ;;
5991  esac
5992elif test "$with_gnu_ld" = yes; then
5993  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5994$as_echo_n "checking for GNU ld... " >&6; }
5995else
5996  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5997$as_echo_n "checking for non-GNU ld... " >&6; }
5998fi
5999if ${lt_cv_path_LD+:} false; then :
6000  $as_echo_n "(cached) " >&6
6001else
6002  if test -z "$LD"; then
6003  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6004  for ac_dir in $PATH; do
6005    IFS="$lt_save_ifs"
6006    test -z "$ac_dir" && ac_dir=.
6007    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6008      lt_cv_path_LD="$ac_dir/$ac_prog"
6009      # Check to see if the program is GNU ld.  I'd rather use --version,
6010      # but apparently some variants of GNU ld only accept -v.
6011      # Break only if it was the GNU/non-GNU ld that we prefer.
6012      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6013      *GNU* | *'with BFD'*)
6014	test "$with_gnu_ld" != no && break
6015	;;
6016      *)
6017	test "$with_gnu_ld" != yes && break
6018	;;
6019      esac
6020    fi
6021  done
6022  IFS="$lt_save_ifs"
6023else
6024  lt_cv_path_LD="$LD" # Let the user override the test with a path.
6025fi
6026fi
6027
6028LD="$lt_cv_path_LD"
6029if test -n "$LD"; then
6030  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6031$as_echo "$LD" >&6; }
6032else
6033  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6034$as_echo "no" >&6; }
6035fi
6036test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6038$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6039if ${lt_cv_prog_gnu_ld+:} false; then :
6040  $as_echo_n "(cached) " >&6
6041else
6042  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6043case `$LD -v 2>&1 </dev/null` in
6044*GNU* | *'with BFD'*)
6045  lt_cv_prog_gnu_ld=yes
6046  ;;
6047*)
6048  lt_cv_prog_gnu_ld=no
6049  ;;
6050esac
6051fi
6052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6053$as_echo "$lt_cv_prog_gnu_ld" >&6; }
6054with_gnu_ld=$lt_cv_prog_gnu_ld
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6065$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6066if ${lt_cv_path_NM+:} false; then :
6067  $as_echo_n "(cached) " >&6
6068else
6069  if test -n "$NM"; then
6070  # Let the user override the test.
6071  lt_cv_path_NM="$NM"
6072else
6073  lt_nm_to_check="${ac_tool_prefix}nm"
6074  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6075    lt_nm_to_check="$lt_nm_to_check nm"
6076  fi
6077  for lt_tmp_nm in $lt_nm_to_check; do
6078    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6079    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6080      IFS="$lt_save_ifs"
6081      test -z "$ac_dir" && ac_dir=.
6082      tmp_nm="$ac_dir/$lt_tmp_nm"
6083      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6084	# Check to see if the nm accepts a BSD-compat flag.
6085	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
6086	#   nm: unknown option "B" ignored
6087	# Tru64's nm complains that /dev/null is an invalid object file
6088	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6089	*/dev/null* | *'Invalid file or object type'*)
6090	  lt_cv_path_NM="$tmp_nm -B"
6091	  break
6092	  ;;
6093	*)
6094	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6095	  */dev/null*)
6096	    lt_cv_path_NM="$tmp_nm -p"
6097	    break
6098	    ;;
6099	  *)
6100	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6101	    continue # so that we can try to find one that supports BSD flags
6102	    ;;
6103	  esac
6104	  ;;
6105	esac
6106      fi
6107    done
6108    IFS="$lt_save_ifs"
6109  done
6110  : ${lt_cv_path_NM=no}
6111fi
6112fi
6113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6114$as_echo "$lt_cv_path_NM" >&6; }
6115if test "$lt_cv_path_NM" != "no"; then
6116  NM="$lt_cv_path_NM"
6117else
6118  # Didn't find any BSD compatible name lister, look for dumpbin.
6119  if test -n "$DUMPBIN"; then :
6120    # Let the user override the test.
6121  else
6122    if test -n "$ac_tool_prefix"; then
6123  for ac_prog in dumpbin "link -dump"
6124  do
6125    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6126set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6128$as_echo_n "checking for $ac_word... " >&6; }
6129if ${ac_cv_prog_DUMPBIN+:} false; then :
6130  $as_echo_n "(cached) " >&6
6131else
6132  if test -n "$DUMPBIN"; then
6133  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6134else
6135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6136for as_dir in $PATH
6137do
6138  IFS=$as_save_IFS
6139  test -z "$as_dir" && as_dir=.
6140    for ac_exec_ext in '' $ac_executable_extensions; do
6141  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6142    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6143    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6144    break 2
6145  fi
6146done
6147  done
6148IFS=$as_save_IFS
6149
6150fi
6151fi
6152DUMPBIN=$ac_cv_prog_DUMPBIN
6153if test -n "$DUMPBIN"; then
6154  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6155$as_echo "$DUMPBIN" >&6; }
6156else
6157  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6158$as_echo "no" >&6; }
6159fi
6160
6161
6162    test -n "$DUMPBIN" && break
6163  done
6164fi
6165if test -z "$DUMPBIN"; then
6166  ac_ct_DUMPBIN=$DUMPBIN
6167  for ac_prog in dumpbin "link -dump"
6168do
6169  # Extract the first word of "$ac_prog", so it can be a program name with args.
6170set dummy $ac_prog; ac_word=$2
6171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6172$as_echo_n "checking for $ac_word... " >&6; }
6173if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6174  $as_echo_n "(cached) " >&6
6175else
6176  if test -n "$ac_ct_DUMPBIN"; then
6177  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6178else
6179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6180for as_dir in $PATH
6181do
6182  IFS=$as_save_IFS
6183  test -z "$as_dir" && as_dir=.
6184    for ac_exec_ext in '' $ac_executable_extensions; do
6185  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6186    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6187    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6188    break 2
6189  fi
6190done
6191  done
6192IFS=$as_save_IFS
6193
6194fi
6195fi
6196ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6197if test -n "$ac_ct_DUMPBIN"; then
6198  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6199$as_echo "$ac_ct_DUMPBIN" >&6; }
6200else
6201  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6202$as_echo "no" >&6; }
6203fi
6204
6205
6206  test -n "$ac_ct_DUMPBIN" && break
6207done
6208
6209  if test "x$ac_ct_DUMPBIN" = x; then
6210    DUMPBIN=":"
6211  else
6212    case $cross_compiling:$ac_tool_warned in
6213yes:)
6214{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6215$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6216ac_tool_warned=yes ;;
6217esac
6218    DUMPBIN=$ac_ct_DUMPBIN
6219  fi
6220fi
6221
6222    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6223    *COFF*)
6224      DUMPBIN="$DUMPBIN -symbols"
6225      ;;
6226    *)
6227      DUMPBIN=:
6228      ;;
6229    esac
6230  fi
6231
6232  if test "$DUMPBIN" != ":"; then
6233    NM="$DUMPBIN"
6234  fi
6235fi
6236test -z "$NM" && NM=nm
6237
6238
6239
6240
6241
6242
6243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6244$as_echo_n "checking the name lister ($NM) interface... " >&6; }
6245if ${lt_cv_nm_interface+:} false; then :
6246  $as_echo_n "(cached) " >&6
6247else
6248  lt_cv_nm_interface="BSD nm"
6249  echo "int some_variable = 0;" > conftest.$ac_ext
6250  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6251  (eval "$ac_compile" 2>conftest.err)
6252  cat conftest.err >&5
6253  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6254  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6255  cat conftest.err >&5
6256  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6257  cat conftest.out >&5
6258  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6259    lt_cv_nm_interface="MS dumpbin"
6260  fi
6261  rm -f conftest*
6262fi
6263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6264$as_echo "$lt_cv_nm_interface" >&6; }
6265
6266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6267$as_echo_n "checking whether ln -s works... " >&6; }
6268LN_S=$as_ln_s
6269if test "$LN_S" = "ln -s"; then
6270  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6271$as_echo "yes" >&6; }
6272else
6273  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6274$as_echo "no, using $LN_S" >&6; }
6275fi
6276
6277# find the maximum length of command line arguments
6278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6279$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6280if ${lt_cv_sys_max_cmd_len+:} false; then :
6281  $as_echo_n "(cached) " >&6
6282else
6283    i=0
6284  teststring="ABCD"
6285
6286  case $build_os in
6287  msdosdjgpp*)
6288    # On DJGPP, this test can blow up pretty badly due to problems in libc
6289    # (any single argument exceeding 2000 bytes causes a buffer overrun
6290    # during glob expansion).  Even if it were fixed, the result of this
6291    # check would be larger than it should be.
6292    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6293    ;;
6294
6295  gnu*)
6296    # Under GNU Hurd, this test is not required because there is
6297    # no limit to the length of command line arguments.
6298    # Libtool will interpret -1 as no limit whatsoever
6299    lt_cv_sys_max_cmd_len=-1;
6300    ;;
6301
6302  cygwin* | mingw* | cegcc*)
6303    # On Win9x/ME, this test blows up -- it succeeds, but takes
6304    # about 5 minutes as the teststring grows exponentially.
6305    # Worse, since 9x/ME are not pre-emptively multitasking,
6306    # you end up with a "frozen" computer, even though with patience
6307    # the test eventually succeeds (with a max line length of 256k).
6308    # Instead, let's just punt: use the minimum linelength reported by
6309    # all of the supported platforms: 8192 (on NT/2K/XP).
6310    lt_cv_sys_max_cmd_len=8192;
6311    ;;
6312
6313  mint*)
6314    # On MiNT this can take a long time and run out of memory.
6315    lt_cv_sys_max_cmd_len=8192;
6316    ;;
6317
6318  amigaos*)
6319    # On AmigaOS with pdksh, this test takes hours, literally.
6320    # So we just punt and use a minimum line length of 8192.
6321    lt_cv_sys_max_cmd_len=8192;
6322    ;;
6323
6324  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6325    # This has been around since 386BSD, at least.  Likely further.
6326    if test -x /sbin/sysctl; then
6327      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6328    elif test -x /usr/sbin/sysctl; then
6329      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6330    else
6331      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6332    fi
6333    # And add a safety zone
6334    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6335    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6336    ;;
6337
6338  interix*)
6339    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6340    lt_cv_sys_max_cmd_len=196608
6341    ;;
6342
6343  osf*)
6344    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6345    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6346    # nice to cause kernel panics so lets avoid the loop below.
6347    # First set a reasonable default.
6348    lt_cv_sys_max_cmd_len=16384
6349    #
6350    if test -x /sbin/sysconfig; then
6351      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6352        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6353      esac
6354    fi
6355    ;;
6356  sco3.2v5*)
6357    lt_cv_sys_max_cmd_len=102400
6358    ;;
6359  sysv5* | sco5v6* | sysv4.2uw2*)
6360    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6361    if test -n "$kargmax"; then
6362      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
6363    else
6364      lt_cv_sys_max_cmd_len=32768
6365    fi
6366    ;;
6367  *)
6368    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6369    if test -n "$lt_cv_sys_max_cmd_len"; then
6370      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6371      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6372    else
6373      # Make teststring a little bigger before we do anything with it.
6374      # a 1K string should be a reasonable start.
6375      for i in 1 2 3 4 5 6 7 8 ; do
6376        teststring=$teststring$teststring
6377      done
6378      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6379      # If test is not a shell built-in, we'll probably end up computing a
6380      # maximum length that is only half of the actual maximum length, but
6381      # we can't tell.
6382      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6383	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6384	      test $i != 17 # 1/2 MB should be enough
6385      do
6386        i=`expr $i + 1`
6387        teststring=$teststring$teststring
6388      done
6389      # Only check the string length outside the loop.
6390      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6391      teststring=
6392      # Add a significant safety factor because C++ compilers can tack on
6393      # massive amounts of additional arguments before passing them to the
6394      # linker.  It appears as though 1/2 is a usable value.
6395      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6396    fi
6397    ;;
6398  esac
6399
6400fi
6401
6402if test -n $lt_cv_sys_max_cmd_len ; then
6403  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6404$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6405else
6406  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6407$as_echo "none" >&6; }
6408fi
6409max_cmd_len=$lt_cv_sys_max_cmd_len
6410
6411
6412
6413
6414
6415
6416: ${CP="cp -f"}
6417: ${MV="mv -f"}
6418: ${RM="rm -f"}
6419
6420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6421$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6422# Try some XSI features
6423xsi_shell=no
6424( _lt_dummy="a/b/c"
6425  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6426      = c,a/b,, \
6427    && eval 'test $(( 1 + 1 )) -eq 2 \
6428    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6429  && xsi_shell=yes
6430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6431$as_echo "$xsi_shell" >&6; }
6432
6433
6434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6435$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6436lt_shell_append=no
6437( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6438    >/dev/null 2>&1 \
6439  && lt_shell_append=yes
6440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6441$as_echo "$lt_shell_append" >&6; }
6442
6443
6444if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6445  lt_unset=unset
6446else
6447  lt_unset=false
6448fi
6449
6450
6451
6452
6453
6454# test EBCDIC or ASCII
6455case `echo X|tr X '\101'` in
6456 A) # ASCII based system
6457    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6458  lt_SP2NL='tr \040 \012'
6459  lt_NL2SP='tr \015\012 \040\040'
6460  ;;
6461 *) # EBCDIC based system
6462  lt_SP2NL='tr \100 \n'
6463  lt_NL2SP='tr \r\n \100\100'
6464  ;;
6465esac
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6476$as_echo_n "checking for $LD option to reload object files... " >&6; }
6477if ${lt_cv_ld_reload_flag+:} false; then :
6478  $as_echo_n "(cached) " >&6
6479else
6480  lt_cv_ld_reload_flag='-r'
6481fi
6482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6483$as_echo "$lt_cv_ld_reload_flag" >&6; }
6484reload_flag=$lt_cv_ld_reload_flag
6485case $reload_flag in
6486"" | " "*) ;;
6487*) reload_flag=" $reload_flag" ;;
6488esac
6489reload_cmds='$LD$reload_flag -o $output$reload_objs'
6490case $host_os in
6491  darwin*)
6492    if test "$GCC" = yes; then
6493      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6494    else
6495      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6496    fi
6497    ;;
6498esac
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508if test -n "$ac_tool_prefix"; then
6509  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6510set dummy ${ac_tool_prefix}objdump; ac_word=$2
6511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6512$as_echo_n "checking for $ac_word... " >&6; }
6513if ${ac_cv_prog_OBJDUMP+:} false; then :
6514  $as_echo_n "(cached) " >&6
6515else
6516  if test -n "$OBJDUMP"; then
6517  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6518else
6519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6520for as_dir in $PATH
6521do
6522  IFS=$as_save_IFS
6523  test -z "$as_dir" && as_dir=.
6524    for ac_exec_ext in '' $ac_executable_extensions; do
6525  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6526    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6527    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6528    break 2
6529  fi
6530done
6531  done
6532IFS=$as_save_IFS
6533
6534fi
6535fi
6536OBJDUMP=$ac_cv_prog_OBJDUMP
6537if test -n "$OBJDUMP"; then
6538  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6539$as_echo "$OBJDUMP" >&6; }
6540else
6541  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6542$as_echo "no" >&6; }
6543fi
6544
6545
6546fi
6547if test -z "$ac_cv_prog_OBJDUMP"; then
6548  ac_ct_OBJDUMP=$OBJDUMP
6549  # Extract the first word of "objdump", so it can be a program name with args.
6550set dummy objdump; ac_word=$2
6551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6552$as_echo_n "checking for $ac_word... " >&6; }
6553if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6554  $as_echo_n "(cached) " >&6
6555else
6556  if test -n "$ac_ct_OBJDUMP"; then
6557  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6558else
6559as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6560for as_dir in $PATH
6561do
6562  IFS=$as_save_IFS
6563  test -z "$as_dir" && as_dir=.
6564    for ac_exec_ext in '' $ac_executable_extensions; do
6565  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6566    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6567    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6568    break 2
6569  fi
6570done
6571  done
6572IFS=$as_save_IFS
6573
6574fi
6575fi
6576ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6577if test -n "$ac_ct_OBJDUMP"; then
6578  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6579$as_echo "$ac_ct_OBJDUMP" >&6; }
6580else
6581  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6582$as_echo "no" >&6; }
6583fi
6584
6585  if test "x$ac_ct_OBJDUMP" = x; then
6586    OBJDUMP="false"
6587  else
6588    case $cross_compiling:$ac_tool_warned in
6589yes:)
6590{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6591$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6592ac_tool_warned=yes ;;
6593esac
6594    OBJDUMP=$ac_ct_OBJDUMP
6595  fi
6596else
6597  OBJDUMP="$ac_cv_prog_OBJDUMP"
6598fi
6599
6600test -z "$OBJDUMP" && OBJDUMP=objdump
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6611$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6612if ${lt_cv_deplibs_check_method+:} false; then :
6613  $as_echo_n "(cached) " >&6
6614else
6615  lt_cv_file_magic_cmd='$MAGIC_CMD'
6616lt_cv_file_magic_test_file=
6617lt_cv_deplibs_check_method='unknown'
6618# Need to set the preceding variable on all platforms that support
6619# interlibrary dependencies.
6620# 'none' -- dependencies not supported.
6621# `unknown' -- same as none, but documents that we really don't know.
6622# 'pass_all' -- all dependencies passed with no checks.
6623# 'test_compile' -- check by making test program.
6624# 'file_magic [[regex]]' -- check by looking for files in library path
6625# which responds to the $file_magic_cmd with a given extended regex.
6626# If you have `file' or equivalent on your system and you're not sure
6627# whether `pass_all' will *always* work, you probably want this one.
6628
6629case $host_os in
6630aix[4-9]*)
6631  lt_cv_deplibs_check_method=pass_all
6632  ;;
6633
6634beos*)
6635  lt_cv_deplibs_check_method=pass_all
6636  ;;
6637
6638bsdi[45]*)
6639  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6640  lt_cv_file_magic_cmd='/usr/bin/file -L'
6641  lt_cv_file_magic_test_file=/shlib/libc.so
6642  ;;
6643
6644cygwin*)
6645  # func_win32_libid is a shell function defined in ltmain.sh
6646  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6647  lt_cv_file_magic_cmd='func_win32_libid'
6648  ;;
6649
6650mingw* | pw32*)
6651  # Base MSYS/MinGW do not provide the 'file' command needed by
6652  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6653  # unless we find 'file', for example because we are cross-compiling.
6654  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6655  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6656    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6657    lt_cv_file_magic_cmd='func_win32_libid'
6658  else
6659    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6660    lt_cv_file_magic_cmd='$OBJDUMP -f'
6661  fi
6662  ;;
6663
6664cegcc*)
6665  # use the weaker test based on 'objdump'. See mingw*.
6666  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6667  lt_cv_file_magic_cmd='$OBJDUMP -f'
6668  ;;
6669
6670darwin* | rhapsody*)
6671  lt_cv_deplibs_check_method=pass_all
6672  ;;
6673
6674freebsd* | dragonfly*)
6675  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6676    case $host_cpu in
6677    i*86 )
6678      # Not sure whether the presence of OpenBSD here was a mistake.
6679      # Let's accept both of them until this is cleared up.
6680      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6681      lt_cv_file_magic_cmd=/usr/bin/file
6682      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6683      ;;
6684    esac
6685  else
6686    lt_cv_deplibs_check_method=pass_all
6687  fi
6688  ;;
6689
6690gnu*)
6691  lt_cv_deplibs_check_method=pass_all
6692  ;;
6693
6694haiku*)
6695  lt_cv_deplibs_check_method=pass_all
6696  ;;
6697
6698hpux10.20* | hpux11*)
6699  lt_cv_file_magic_cmd=/usr/bin/file
6700  case $host_cpu in
6701  ia64*)
6702    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6703    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6704    ;;
6705  hppa*64*)
6706    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
6707    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6708    ;;
6709  *)
6710    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6711    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6712    ;;
6713  esac
6714  ;;
6715
6716interix[3-9]*)
6717  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6718  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6719  ;;
6720
6721irix5* | irix6* | nonstopux*)
6722  case $LD in
6723  *-32|*"-32 ") libmagic=32-bit;;
6724  *-n32|*"-n32 ") libmagic=N32;;
6725  *-64|*"-64 ") libmagic=64-bit;;
6726  *) libmagic=never-match;;
6727  esac
6728  lt_cv_deplibs_check_method=pass_all
6729  ;;
6730
6731# This must be Linux ELF.
6732linux* | k*bsd*-gnu | kopensolaris*-gnu)
6733  lt_cv_deplibs_check_method=pass_all
6734  ;;
6735
6736netbsd*)
6737  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6738    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6739  else
6740    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6741  fi
6742  ;;
6743
6744newos6*)
6745  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6746  lt_cv_file_magic_cmd=/usr/bin/file
6747  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6748  ;;
6749
6750*nto* | *qnx*)
6751  lt_cv_deplibs_check_method=pass_all
6752  ;;
6753
6754openbsd*)
6755  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6756    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6757  else
6758    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6759  fi
6760  ;;
6761
6762osf3* | osf4* | osf5*)
6763  lt_cv_deplibs_check_method=pass_all
6764  ;;
6765
6766rdos*)
6767  lt_cv_deplibs_check_method=pass_all
6768  ;;
6769
6770solaris*)
6771  lt_cv_deplibs_check_method=pass_all
6772  ;;
6773
6774sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6775  lt_cv_deplibs_check_method=pass_all
6776  ;;
6777
6778sysv4 | sysv4.3*)
6779  case $host_vendor in
6780  motorola)
6781    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]'
6782    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6783    ;;
6784  ncr)
6785    lt_cv_deplibs_check_method=pass_all
6786    ;;
6787  sequent)
6788    lt_cv_file_magic_cmd='/bin/file'
6789    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6790    ;;
6791  sni)
6792    lt_cv_file_magic_cmd='/bin/file'
6793    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6794    lt_cv_file_magic_test_file=/lib/libc.so
6795    ;;
6796  siemens)
6797    lt_cv_deplibs_check_method=pass_all
6798    ;;
6799  pc)
6800    lt_cv_deplibs_check_method=pass_all
6801    ;;
6802  esac
6803  ;;
6804
6805tpf*)
6806  lt_cv_deplibs_check_method=pass_all
6807  ;;
6808esac
6809
6810fi
6811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6812$as_echo "$lt_cv_deplibs_check_method" >&6; }
6813file_magic_cmd=$lt_cv_file_magic_cmd
6814deplibs_check_method=$lt_cv_deplibs_check_method
6815test -z "$deplibs_check_method" && deplibs_check_method=unknown
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828if test -n "$ac_tool_prefix"; then
6829  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6830set dummy ${ac_tool_prefix}ar; ac_word=$2
6831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6832$as_echo_n "checking for $ac_word... " >&6; }
6833if ${ac_cv_prog_AR+:} false; then :
6834  $as_echo_n "(cached) " >&6
6835else
6836  if test -n "$AR"; then
6837  ac_cv_prog_AR="$AR" # Let the user override the test.
6838else
6839as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6840for as_dir in $PATH
6841do
6842  IFS=$as_save_IFS
6843  test -z "$as_dir" && as_dir=.
6844    for ac_exec_ext in '' $ac_executable_extensions; do
6845  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6846    ac_cv_prog_AR="${ac_tool_prefix}ar"
6847    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6848    break 2
6849  fi
6850done
6851  done
6852IFS=$as_save_IFS
6853
6854fi
6855fi
6856AR=$ac_cv_prog_AR
6857if test -n "$AR"; then
6858  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6859$as_echo "$AR" >&6; }
6860else
6861  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6862$as_echo "no" >&6; }
6863fi
6864
6865
6866fi
6867if test -z "$ac_cv_prog_AR"; then
6868  ac_ct_AR=$AR
6869  # Extract the first word of "ar", so it can be a program name with args.
6870set dummy ar; ac_word=$2
6871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6872$as_echo_n "checking for $ac_word... " >&6; }
6873if ${ac_cv_prog_ac_ct_AR+:} false; then :
6874  $as_echo_n "(cached) " >&6
6875else
6876  if test -n "$ac_ct_AR"; then
6877  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6878else
6879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6880for as_dir in $PATH
6881do
6882  IFS=$as_save_IFS
6883  test -z "$as_dir" && as_dir=.
6884    for ac_exec_ext in '' $ac_executable_extensions; do
6885  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6886    ac_cv_prog_ac_ct_AR="ar"
6887    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6888    break 2
6889  fi
6890done
6891  done
6892IFS=$as_save_IFS
6893
6894fi
6895fi
6896ac_ct_AR=$ac_cv_prog_ac_ct_AR
6897if test -n "$ac_ct_AR"; then
6898  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6899$as_echo "$ac_ct_AR" >&6; }
6900else
6901  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6902$as_echo "no" >&6; }
6903fi
6904
6905  if test "x$ac_ct_AR" = x; then
6906    AR="false"
6907  else
6908    case $cross_compiling:$ac_tool_warned in
6909yes:)
6910{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6911$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6912ac_tool_warned=yes ;;
6913esac
6914    AR=$ac_ct_AR
6915  fi
6916else
6917  AR="$ac_cv_prog_AR"
6918fi
6919
6920test -z "$AR" && AR=ar
6921test -z "$AR_FLAGS" && AR_FLAGS=cru
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933if test -n "$ac_tool_prefix"; then
6934  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6935set dummy ${ac_tool_prefix}strip; ac_word=$2
6936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6937$as_echo_n "checking for $ac_word... " >&6; }
6938if ${ac_cv_prog_STRIP+:} false; then :
6939  $as_echo_n "(cached) " >&6
6940else
6941  if test -n "$STRIP"; then
6942  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6943else
6944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6945for as_dir in $PATH
6946do
6947  IFS=$as_save_IFS
6948  test -z "$as_dir" && as_dir=.
6949    for ac_exec_ext in '' $ac_executable_extensions; do
6950  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6951    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6952    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6953    break 2
6954  fi
6955done
6956  done
6957IFS=$as_save_IFS
6958
6959fi
6960fi
6961STRIP=$ac_cv_prog_STRIP
6962if test -n "$STRIP"; then
6963  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6964$as_echo "$STRIP" >&6; }
6965else
6966  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6967$as_echo "no" >&6; }
6968fi
6969
6970
6971fi
6972if test -z "$ac_cv_prog_STRIP"; then
6973  ac_ct_STRIP=$STRIP
6974  # Extract the first word of "strip", so it can be a program name with args.
6975set dummy strip; ac_word=$2
6976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6977$as_echo_n "checking for $ac_word... " >&6; }
6978if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6979  $as_echo_n "(cached) " >&6
6980else
6981  if test -n "$ac_ct_STRIP"; then
6982  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6983else
6984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6985for as_dir in $PATH
6986do
6987  IFS=$as_save_IFS
6988  test -z "$as_dir" && as_dir=.
6989    for ac_exec_ext in '' $ac_executable_extensions; do
6990  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6991    ac_cv_prog_ac_ct_STRIP="strip"
6992    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6993    break 2
6994  fi
6995done
6996  done
6997IFS=$as_save_IFS
6998
6999fi
7000fi
7001ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7002if test -n "$ac_ct_STRIP"; then
7003  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7004$as_echo "$ac_ct_STRIP" >&6; }
7005else
7006  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7007$as_echo "no" >&6; }
7008fi
7009
7010  if test "x$ac_ct_STRIP" = x; then
7011    STRIP=":"
7012  else
7013    case $cross_compiling:$ac_tool_warned in
7014yes:)
7015{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7016$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7017ac_tool_warned=yes ;;
7018esac
7019    STRIP=$ac_ct_STRIP
7020  fi
7021else
7022  STRIP="$ac_cv_prog_STRIP"
7023fi
7024
7025test -z "$STRIP" && STRIP=:
7026
7027
7028
7029
7030
7031
7032if test -n "$ac_tool_prefix"; then
7033  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7034set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7036$as_echo_n "checking for $ac_word... " >&6; }
7037if ${ac_cv_prog_RANLIB+:} false; then :
7038  $as_echo_n "(cached) " >&6
7039else
7040  if test -n "$RANLIB"; then
7041  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7042else
7043as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7044for as_dir in $PATH
7045do
7046  IFS=$as_save_IFS
7047  test -z "$as_dir" && as_dir=.
7048    for ac_exec_ext in '' $ac_executable_extensions; do
7049  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7050    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7051    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7052    break 2
7053  fi
7054done
7055  done
7056IFS=$as_save_IFS
7057
7058fi
7059fi
7060RANLIB=$ac_cv_prog_RANLIB
7061if test -n "$RANLIB"; then
7062  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7063$as_echo "$RANLIB" >&6; }
7064else
7065  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7066$as_echo "no" >&6; }
7067fi
7068
7069
7070fi
7071if test -z "$ac_cv_prog_RANLIB"; then
7072  ac_ct_RANLIB=$RANLIB
7073  # Extract the first word of "ranlib", so it can be a program name with args.
7074set dummy ranlib; ac_word=$2
7075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7076$as_echo_n "checking for $ac_word... " >&6; }
7077if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7078  $as_echo_n "(cached) " >&6
7079else
7080  if test -n "$ac_ct_RANLIB"; then
7081  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7082else
7083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7084for as_dir in $PATH
7085do
7086  IFS=$as_save_IFS
7087  test -z "$as_dir" && as_dir=.
7088    for ac_exec_ext in '' $ac_executable_extensions; do
7089  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7090    ac_cv_prog_ac_ct_RANLIB="ranlib"
7091    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7092    break 2
7093  fi
7094done
7095  done
7096IFS=$as_save_IFS
7097
7098fi
7099fi
7100ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7101if test -n "$ac_ct_RANLIB"; then
7102  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7103$as_echo "$ac_ct_RANLIB" >&6; }
7104else
7105  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7106$as_echo "no" >&6; }
7107fi
7108
7109  if test "x$ac_ct_RANLIB" = x; then
7110    RANLIB=":"
7111  else
7112    case $cross_compiling:$ac_tool_warned in
7113yes:)
7114{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7115$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7116ac_tool_warned=yes ;;
7117esac
7118    RANLIB=$ac_ct_RANLIB
7119  fi
7120else
7121  RANLIB="$ac_cv_prog_RANLIB"
7122fi
7123
7124test -z "$RANLIB" && RANLIB=:
7125
7126
7127
7128
7129
7130
7131# Determine commands to create old-style static archives.
7132old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7133old_postinstall_cmds='chmod 644 $oldlib'
7134old_postuninstall_cmds=
7135
7136if test -n "$RANLIB"; then
7137  case $host_os in
7138  openbsd*)
7139    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7140    ;;
7141  *)
7142    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7143    ;;
7144  esac
7145  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7146fi
7147
7148case $host_os in
7149  darwin*)
7150    lock_old_archive_extraction=yes ;;
7151  *)
7152    lock_old_archive_extraction=no ;;
7153esac
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193# If no C compiler was specified, use CC.
7194LTCC=${LTCC-"$CC"}
7195
7196# If no C compiler flags were specified, use CFLAGS.
7197LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7198
7199# Allow CC to be a program name with arguments.
7200compiler=$CC
7201
7202
7203# Check for command to grab the raw symbol name followed by C symbol from nm.
7204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7205$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7206if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7207  $as_echo_n "(cached) " >&6
7208else
7209
7210# These are sane defaults that work on at least a few old systems.
7211# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7212
7213# Character class describing NM global symbol codes.
7214symcode='[BCDEGRST]'
7215
7216# Regexp to match symbols that can be accessed directly from C.
7217sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7218
7219# Define system-specific variables.
7220case $host_os in
7221aix*)
7222  symcode='[BCDT]'
7223  ;;
7224cygwin* | mingw* | pw32* | cegcc*)
7225  symcode='[ABCDGISTW]'
7226  ;;
7227hpux*)
7228  if test "$host_cpu" = ia64; then
7229    symcode='[ABCDEGRST]'
7230  fi
7231  ;;
7232irix* | nonstopux*)
7233  symcode='[BCDEGRST]'
7234  ;;
7235osf*)
7236  symcode='[BCDEGQRST]'
7237  ;;
7238solaris*)
7239  symcode='[BDRT]'
7240  ;;
7241sco3.2v5*)
7242  symcode='[DT]'
7243  ;;
7244sysv4.2uw2*)
7245  symcode='[DT]'
7246  ;;
7247sysv5* | sco5v6* | unixware* | OpenUNIX*)
7248  symcode='[ABDT]'
7249  ;;
7250sysv4)
7251  symcode='[DFNSTU]'
7252  ;;
7253esac
7254
7255# If we're using GNU nm, then use its standard symbol codes.
7256case `$NM -V 2>&1` in
7257*GNU* | *'with BFD'*)
7258  symcode='[ABCDGIRSTW]' ;;
7259esac
7260
7261# Transform an extracted symbol line into a proper C declaration.
7262# Some systems (esp. on ia64) link data and code symbols differently,
7263# so use this general approach.
7264lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7265
7266# Transform an extracted symbol line into symbol name and symbol address
7267lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7268lt_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'"
7269
7270# Handle CRLF in mingw tool chain
7271opt_cr=
7272case $build_os in
7273mingw*)
7274  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7275  ;;
7276esac
7277
7278# Try without a prefix underscore, then with it.
7279for ac_symprfx in "" "_"; do
7280
7281  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7282  symxfrm="\\1 $ac_symprfx\\2 \\2"
7283
7284  # Write the raw and C identifiers.
7285  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7286    # Fake it for dumpbin and say T for any non-static function
7287    # and D for any global variable.
7288    # Also find C++ and __fastcall symbols from MSVC++,
7289    # which start with @ or ?.
7290    lt_cv_sys_global_symbol_pipe="$AWK '"\
7291"     {last_section=section; section=\$ 3};"\
7292"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7293"     \$ 0!~/External *\|/{next};"\
7294"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7295"     {if(hide[section]) next};"\
7296"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7297"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7298"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7299"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7300"     ' prfx=^$ac_symprfx"
7301  else
7302    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7303  fi
7304
7305  # Check to see that the pipe works correctly.
7306  pipe_works=no
7307
7308  rm -f conftest*
7309  cat > conftest.$ac_ext <<_LT_EOF
7310#ifdef __cplusplus
7311extern "C" {
7312#endif
7313char nm_test_var;
7314void nm_test_func(void);
7315void nm_test_func(void){}
7316#ifdef __cplusplus
7317}
7318#endif
7319int main(){nm_test_var='a';nm_test_func();return(0);}
7320_LT_EOF
7321
7322  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7323  (eval $ac_compile) 2>&5
7324  ac_status=$?
7325  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7326  test $ac_status = 0; }; then
7327    # Now try to grab the symbols.
7328    nlist=conftest.nm
7329    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7330  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7331  ac_status=$?
7332  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7333  test $ac_status = 0; } && test -s "$nlist"; then
7334      # Try sorting and uniquifying the output.
7335      if sort "$nlist" | uniq > "$nlist"T; then
7336	mv -f "$nlist"T "$nlist"
7337      else
7338	rm -f "$nlist"T
7339      fi
7340
7341      # Make sure that we snagged all the symbols we need.
7342      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7343	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7344	  cat <<_LT_EOF > conftest.$ac_ext
7345#ifdef __cplusplus
7346extern "C" {
7347#endif
7348
7349_LT_EOF
7350	  # Now generate the symbol file.
7351	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7352
7353	  cat <<_LT_EOF >> conftest.$ac_ext
7354
7355/* The mapping between symbol names and symbols.  */
7356const struct {
7357  const char *name;
7358  void       *address;
7359}
7360lt__PROGRAM__LTX_preloaded_symbols[] =
7361{
7362  { "@PROGRAM@", (void *) 0 },
7363_LT_EOF
7364	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7365	  cat <<\_LT_EOF >> conftest.$ac_ext
7366  {0, (void *) 0}
7367};
7368
7369/* This works around a problem in FreeBSD linker */
7370#ifdef FREEBSD_WORKAROUND
7371static const void *lt_preloaded_setup() {
7372  return lt__PROGRAM__LTX_preloaded_symbols;
7373}
7374#endif
7375
7376#ifdef __cplusplus
7377}
7378#endif
7379_LT_EOF
7380	  # Now try linking the two files.
7381	  mv conftest.$ac_objext conftstm.$ac_objext
7382	  lt_save_LIBS="$LIBS"
7383	  lt_save_CFLAGS="$CFLAGS"
7384	  LIBS="conftstm.$ac_objext"
7385	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7386	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7387  (eval $ac_link) 2>&5
7388  ac_status=$?
7389  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7390  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7391	    pipe_works=yes
7392	  fi
7393	  LIBS="$lt_save_LIBS"
7394	  CFLAGS="$lt_save_CFLAGS"
7395	else
7396	  echo "cannot find nm_test_func in $nlist" >&5
7397	fi
7398      else
7399	echo "cannot find nm_test_var in $nlist" >&5
7400      fi
7401    else
7402      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7403    fi
7404  else
7405    echo "$progname: failed program was:" >&5
7406    cat conftest.$ac_ext >&5
7407  fi
7408  rm -rf conftest* conftst*
7409
7410  # Do not use the global_symbol_pipe unless it works.
7411  if test "$pipe_works" = yes; then
7412    break
7413  else
7414    lt_cv_sys_global_symbol_pipe=
7415  fi
7416done
7417
7418fi
7419
7420if test -z "$lt_cv_sys_global_symbol_pipe"; then
7421  lt_cv_sys_global_symbol_to_cdecl=
7422fi
7423if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7424  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7425$as_echo "failed" >&6; }
7426else
7427  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7428$as_echo "ok" >&6; }
7429fi
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452# Check whether --enable-libtool-lock was given.
7453if test "${enable_libtool_lock+set}" = set; then :
7454  enableval=$enable_libtool_lock;
7455fi
7456
7457test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7458
7459# Some flags need to be propagated to the compiler or linker for good
7460# libtool support.
7461case $host in
7462ia64-*-hpux*)
7463  # Find out which ABI we are using.
7464  echo 'int i;' > conftest.$ac_ext
7465  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7466  (eval $ac_compile) 2>&5
7467  ac_status=$?
7468  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7469  test $ac_status = 0; }; then
7470    case `/usr/bin/file conftest.$ac_objext` in
7471      *ELF-32*)
7472	HPUX_IA64_MODE="32"
7473	;;
7474      *ELF-64*)
7475	HPUX_IA64_MODE="64"
7476	;;
7477    esac
7478  fi
7479  rm -rf conftest*
7480  ;;
7481*-*-irix6*)
7482  # Find out which ABI we are using.
7483  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7484  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7485  (eval $ac_compile) 2>&5
7486  ac_status=$?
7487  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7488  test $ac_status = 0; }; then
7489    if test "$lt_cv_prog_gnu_ld" = yes; then
7490      case `/usr/bin/file conftest.$ac_objext` in
7491	*32-bit*)
7492	  LD="${LD-ld} -melf32bsmip"
7493	  ;;
7494	*N32*)
7495	  LD="${LD-ld} -melf32bmipn32"
7496	  ;;
7497	*64-bit*)
7498	  LD="${LD-ld} -melf64bmip"
7499	;;
7500      esac
7501    else
7502      case `/usr/bin/file conftest.$ac_objext` in
7503	*32-bit*)
7504	  LD="${LD-ld} -32"
7505	  ;;
7506	*N32*)
7507	  LD="${LD-ld} -n32"
7508	  ;;
7509	*64-bit*)
7510	  LD="${LD-ld} -64"
7511	  ;;
7512      esac
7513    fi
7514  fi
7515  rm -rf conftest*
7516  ;;
7517
7518x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7519s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7520  # Find out which ABI we are using.
7521  echo 'int i;' > conftest.$ac_ext
7522  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7523  (eval $ac_compile) 2>&5
7524  ac_status=$?
7525  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7526  test $ac_status = 0; }; then
7527    case `/usr/bin/file conftest.o` in
7528      *32-bit*)
7529	case $host in
7530	  x86_64-*kfreebsd*-gnu)
7531	    LD="${LD-ld} -m elf_i386_fbsd"
7532	    ;;
7533	  x86_64-*linux*)
7534	    case `/usr/bin/file conftest.o` in
7535	      *x86-64*)
7536		LD="${LD-ld} -m elf32_x86_64"
7537		;;
7538	      *)
7539		LD="${LD-ld} -m elf_i386"
7540		;;
7541	    esac
7542	    ;;
7543	  powerpc64le-*linux*)
7544	    LD="${LD-ld} -m elf32lppclinux"
7545	    ;;
7546	  powerpc64-*linux*)
7547	    LD="${LD-ld} -m elf32ppclinux"
7548	    ;;
7549	  s390x-*linux*)
7550	    LD="${LD-ld} -m elf_s390"
7551	    ;;
7552	  sparc64-*linux*)
7553	    LD="${LD-ld} -m elf32_sparc"
7554	    ;;
7555	esac
7556	;;
7557      *64-bit*)
7558	case $host in
7559	  x86_64-*kfreebsd*-gnu)
7560	    LD="${LD-ld} -m elf_x86_64_fbsd"
7561	    ;;
7562	  x86_64-*linux*)
7563	    LD="${LD-ld} -m elf_x86_64"
7564	    ;;
7565	  powerpcle-*linux*)
7566	    LD="${LD-ld} -m elf64lppc"
7567	    ;;
7568	  powerpc-*linux*)
7569	    LD="${LD-ld} -m elf64ppc"
7570	    ;;
7571	  s390*-*linux*|s390*-*tpf*)
7572	    LD="${LD-ld} -m elf64_s390"
7573	    ;;
7574	  sparc*-*linux*)
7575	    LD="${LD-ld} -m elf64_sparc"
7576	    ;;
7577	esac
7578	;;
7579    esac
7580  fi
7581  rm -rf conftest*
7582  ;;
7583
7584*-*-sco3.2v5*)
7585  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7586  SAVE_CFLAGS="$CFLAGS"
7587  CFLAGS="$CFLAGS -belf"
7588  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7589$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7590if ${lt_cv_cc_needs_belf+:} false; then :
7591  $as_echo_n "(cached) " >&6
7592else
7593  ac_ext=c
7594ac_cpp='$CPP $CPPFLAGS'
7595ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7596ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7597ac_compiler_gnu=$ac_cv_c_compiler_gnu
7598
7599     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7600/* end confdefs.h.  */
7601
7602int
7603main ()
7604{
7605
7606  ;
7607  return 0;
7608}
7609_ACEOF
7610if ac_fn_c_try_link "$LINENO"; then :
7611  lt_cv_cc_needs_belf=yes
7612else
7613  lt_cv_cc_needs_belf=no
7614fi
7615rm -f core conftest.err conftest.$ac_objext \
7616    conftest$ac_exeext conftest.$ac_ext
7617     ac_ext=c
7618ac_cpp='$CPP $CPPFLAGS'
7619ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7620ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7621ac_compiler_gnu=$ac_cv_c_compiler_gnu
7622
7623fi
7624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7625$as_echo "$lt_cv_cc_needs_belf" >&6; }
7626  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7627    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7628    CFLAGS="$SAVE_CFLAGS"
7629  fi
7630  ;;
7631sparc*-*solaris*)
7632  # Find out which ABI we are using.
7633  echo 'int i;' > conftest.$ac_ext
7634  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7635  (eval $ac_compile) 2>&5
7636  ac_status=$?
7637  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7638  test $ac_status = 0; }; then
7639    case `/usr/bin/file conftest.o` in
7640    *64-bit*)
7641      case $lt_cv_prog_gnu_ld in
7642      yes*) LD="${LD-ld} -m elf64_sparc" ;;
7643      *)
7644	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7645	  LD="${LD-ld} -64"
7646	fi
7647	;;
7648      esac
7649      ;;
7650    esac
7651  fi
7652  rm -rf conftest*
7653  ;;
7654esac
7655
7656need_locks="$enable_libtool_lock"
7657
7658
7659  case $host_os in
7660    rhapsody* | darwin*)
7661    if test -n "$ac_tool_prefix"; then
7662  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7663set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7665$as_echo_n "checking for $ac_word... " >&6; }
7666if ${ac_cv_prog_DSYMUTIL+:} false; then :
7667  $as_echo_n "(cached) " >&6
7668else
7669  if test -n "$DSYMUTIL"; then
7670  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7671else
7672as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7673for as_dir in $PATH
7674do
7675  IFS=$as_save_IFS
7676  test -z "$as_dir" && as_dir=.
7677    for ac_exec_ext in '' $ac_executable_extensions; do
7678  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7679    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7680    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7681    break 2
7682  fi
7683done
7684  done
7685IFS=$as_save_IFS
7686
7687fi
7688fi
7689DSYMUTIL=$ac_cv_prog_DSYMUTIL
7690if test -n "$DSYMUTIL"; then
7691  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7692$as_echo "$DSYMUTIL" >&6; }
7693else
7694  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7695$as_echo "no" >&6; }
7696fi
7697
7698
7699fi
7700if test -z "$ac_cv_prog_DSYMUTIL"; then
7701  ac_ct_DSYMUTIL=$DSYMUTIL
7702  # Extract the first word of "dsymutil", so it can be a program name with args.
7703set dummy dsymutil; ac_word=$2
7704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7705$as_echo_n "checking for $ac_word... " >&6; }
7706if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7707  $as_echo_n "(cached) " >&6
7708else
7709  if test -n "$ac_ct_DSYMUTIL"; then
7710  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7711else
7712as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7713for as_dir in $PATH
7714do
7715  IFS=$as_save_IFS
7716  test -z "$as_dir" && as_dir=.
7717    for ac_exec_ext in '' $ac_executable_extensions; do
7718  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7719    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7720    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7721    break 2
7722  fi
7723done
7724  done
7725IFS=$as_save_IFS
7726
7727fi
7728fi
7729ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7730if test -n "$ac_ct_DSYMUTIL"; then
7731  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7732$as_echo "$ac_ct_DSYMUTIL" >&6; }
7733else
7734  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7735$as_echo "no" >&6; }
7736fi
7737
7738  if test "x$ac_ct_DSYMUTIL" = x; then
7739    DSYMUTIL=":"
7740  else
7741    case $cross_compiling:$ac_tool_warned in
7742yes:)
7743{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7744$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7745ac_tool_warned=yes ;;
7746esac
7747    DSYMUTIL=$ac_ct_DSYMUTIL
7748  fi
7749else
7750  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7751fi
7752
7753    if test -n "$ac_tool_prefix"; then
7754  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7755set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7757$as_echo_n "checking for $ac_word... " >&6; }
7758if ${ac_cv_prog_NMEDIT+:} false; then :
7759  $as_echo_n "(cached) " >&6
7760else
7761  if test -n "$NMEDIT"; then
7762  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7763else
7764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7765for as_dir in $PATH
7766do
7767  IFS=$as_save_IFS
7768  test -z "$as_dir" && as_dir=.
7769    for ac_exec_ext in '' $ac_executable_extensions; do
7770  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7771    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7772    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7773    break 2
7774  fi
7775done
7776  done
7777IFS=$as_save_IFS
7778
7779fi
7780fi
7781NMEDIT=$ac_cv_prog_NMEDIT
7782if test -n "$NMEDIT"; then
7783  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7784$as_echo "$NMEDIT" >&6; }
7785else
7786  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7787$as_echo "no" >&6; }
7788fi
7789
7790
7791fi
7792if test -z "$ac_cv_prog_NMEDIT"; then
7793  ac_ct_NMEDIT=$NMEDIT
7794  # Extract the first word of "nmedit", so it can be a program name with args.
7795set dummy nmedit; ac_word=$2
7796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7797$as_echo_n "checking for $ac_word... " >&6; }
7798if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7799  $as_echo_n "(cached) " >&6
7800else
7801  if test -n "$ac_ct_NMEDIT"; then
7802  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7803else
7804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7805for as_dir in $PATH
7806do
7807  IFS=$as_save_IFS
7808  test -z "$as_dir" && as_dir=.
7809    for ac_exec_ext in '' $ac_executable_extensions; do
7810  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7811    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7812    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7813    break 2
7814  fi
7815done
7816  done
7817IFS=$as_save_IFS
7818
7819fi
7820fi
7821ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7822if test -n "$ac_ct_NMEDIT"; then
7823  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7824$as_echo "$ac_ct_NMEDIT" >&6; }
7825else
7826  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7827$as_echo "no" >&6; }
7828fi
7829
7830  if test "x$ac_ct_NMEDIT" = x; then
7831    NMEDIT=":"
7832  else
7833    case $cross_compiling:$ac_tool_warned in
7834yes:)
7835{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7836$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7837ac_tool_warned=yes ;;
7838esac
7839    NMEDIT=$ac_ct_NMEDIT
7840  fi
7841else
7842  NMEDIT="$ac_cv_prog_NMEDIT"
7843fi
7844
7845    if test -n "$ac_tool_prefix"; then
7846  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7847set dummy ${ac_tool_prefix}lipo; ac_word=$2
7848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7849$as_echo_n "checking for $ac_word... " >&6; }
7850if ${ac_cv_prog_LIPO+:} false; then :
7851  $as_echo_n "(cached) " >&6
7852else
7853  if test -n "$LIPO"; then
7854  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7855else
7856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7857for as_dir in $PATH
7858do
7859  IFS=$as_save_IFS
7860  test -z "$as_dir" && as_dir=.
7861    for ac_exec_ext in '' $ac_executable_extensions; do
7862  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7863    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7864    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7865    break 2
7866  fi
7867done
7868  done
7869IFS=$as_save_IFS
7870
7871fi
7872fi
7873LIPO=$ac_cv_prog_LIPO
7874if test -n "$LIPO"; then
7875  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7876$as_echo "$LIPO" >&6; }
7877else
7878  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7879$as_echo "no" >&6; }
7880fi
7881
7882
7883fi
7884if test -z "$ac_cv_prog_LIPO"; then
7885  ac_ct_LIPO=$LIPO
7886  # Extract the first word of "lipo", so it can be a program name with args.
7887set dummy lipo; ac_word=$2
7888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7889$as_echo_n "checking for $ac_word... " >&6; }
7890if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7891  $as_echo_n "(cached) " >&6
7892else
7893  if test -n "$ac_ct_LIPO"; then
7894  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7895else
7896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7897for as_dir in $PATH
7898do
7899  IFS=$as_save_IFS
7900  test -z "$as_dir" && as_dir=.
7901    for ac_exec_ext in '' $ac_executable_extensions; do
7902  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7903    ac_cv_prog_ac_ct_LIPO="lipo"
7904    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7905    break 2
7906  fi
7907done
7908  done
7909IFS=$as_save_IFS
7910
7911fi
7912fi
7913ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7914if test -n "$ac_ct_LIPO"; then
7915  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7916$as_echo "$ac_ct_LIPO" >&6; }
7917else
7918  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7919$as_echo "no" >&6; }
7920fi
7921
7922  if test "x$ac_ct_LIPO" = x; then
7923    LIPO=":"
7924  else
7925    case $cross_compiling:$ac_tool_warned in
7926yes:)
7927{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7928$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7929ac_tool_warned=yes ;;
7930esac
7931    LIPO=$ac_ct_LIPO
7932  fi
7933else
7934  LIPO="$ac_cv_prog_LIPO"
7935fi
7936
7937    if test -n "$ac_tool_prefix"; then
7938  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7939set dummy ${ac_tool_prefix}otool; ac_word=$2
7940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7941$as_echo_n "checking for $ac_word... " >&6; }
7942if ${ac_cv_prog_OTOOL+:} false; then :
7943  $as_echo_n "(cached) " >&6
7944else
7945  if test -n "$OTOOL"; then
7946  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7947else
7948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7949for as_dir in $PATH
7950do
7951  IFS=$as_save_IFS
7952  test -z "$as_dir" && as_dir=.
7953    for ac_exec_ext in '' $ac_executable_extensions; do
7954  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7955    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7956    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7957    break 2
7958  fi
7959done
7960  done
7961IFS=$as_save_IFS
7962
7963fi
7964fi
7965OTOOL=$ac_cv_prog_OTOOL
7966if test -n "$OTOOL"; then
7967  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7968$as_echo "$OTOOL" >&6; }
7969else
7970  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7971$as_echo "no" >&6; }
7972fi
7973
7974
7975fi
7976if test -z "$ac_cv_prog_OTOOL"; then
7977  ac_ct_OTOOL=$OTOOL
7978  # Extract the first word of "otool", so it can be a program name with args.
7979set dummy otool; ac_word=$2
7980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7981$as_echo_n "checking for $ac_word... " >&6; }
7982if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7983  $as_echo_n "(cached) " >&6
7984else
7985  if test -n "$ac_ct_OTOOL"; then
7986  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7987else
7988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7989for as_dir in $PATH
7990do
7991  IFS=$as_save_IFS
7992  test -z "$as_dir" && as_dir=.
7993    for ac_exec_ext in '' $ac_executable_extensions; do
7994  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7995    ac_cv_prog_ac_ct_OTOOL="otool"
7996    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7997    break 2
7998  fi
7999done
8000  done
8001IFS=$as_save_IFS
8002
8003fi
8004fi
8005ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8006if test -n "$ac_ct_OTOOL"; then
8007  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8008$as_echo "$ac_ct_OTOOL" >&6; }
8009else
8010  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8011$as_echo "no" >&6; }
8012fi
8013
8014  if test "x$ac_ct_OTOOL" = x; then
8015    OTOOL=":"
8016  else
8017    case $cross_compiling:$ac_tool_warned in
8018yes:)
8019{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8020$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8021ac_tool_warned=yes ;;
8022esac
8023    OTOOL=$ac_ct_OTOOL
8024  fi
8025else
8026  OTOOL="$ac_cv_prog_OTOOL"
8027fi
8028
8029    if test -n "$ac_tool_prefix"; then
8030  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8031set dummy ${ac_tool_prefix}otool64; ac_word=$2
8032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8033$as_echo_n "checking for $ac_word... " >&6; }
8034if ${ac_cv_prog_OTOOL64+:} false; then :
8035  $as_echo_n "(cached) " >&6
8036else
8037  if test -n "$OTOOL64"; then
8038  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8039else
8040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8041for as_dir in $PATH
8042do
8043  IFS=$as_save_IFS
8044  test -z "$as_dir" && as_dir=.
8045    for ac_exec_ext in '' $ac_executable_extensions; do
8046  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8047    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8048    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8049    break 2
8050  fi
8051done
8052  done
8053IFS=$as_save_IFS
8054
8055fi
8056fi
8057OTOOL64=$ac_cv_prog_OTOOL64
8058if test -n "$OTOOL64"; then
8059  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8060$as_echo "$OTOOL64" >&6; }
8061else
8062  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8063$as_echo "no" >&6; }
8064fi
8065
8066
8067fi
8068if test -z "$ac_cv_prog_OTOOL64"; then
8069  ac_ct_OTOOL64=$OTOOL64
8070  # Extract the first word of "otool64", so it can be a program name with args.
8071set dummy otool64; ac_word=$2
8072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8073$as_echo_n "checking for $ac_word... " >&6; }
8074if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8075  $as_echo_n "(cached) " >&6
8076else
8077  if test -n "$ac_ct_OTOOL64"; then
8078  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8079else
8080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8081for as_dir in $PATH
8082do
8083  IFS=$as_save_IFS
8084  test -z "$as_dir" && as_dir=.
8085    for ac_exec_ext in '' $ac_executable_extensions; do
8086  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8087    ac_cv_prog_ac_ct_OTOOL64="otool64"
8088    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8089    break 2
8090  fi
8091done
8092  done
8093IFS=$as_save_IFS
8094
8095fi
8096fi
8097ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8098if test -n "$ac_ct_OTOOL64"; then
8099  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8100$as_echo "$ac_ct_OTOOL64" >&6; }
8101else
8102  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8103$as_echo "no" >&6; }
8104fi
8105
8106  if test "x$ac_ct_OTOOL64" = x; then
8107    OTOOL64=":"
8108  else
8109    case $cross_compiling:$ac_tool_warned in
8110yes:)
8111{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8112$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8113ac_tool_warned=yes ;;
8114esac
8115    OTOOL64=$ac_ct_OTOOL64
8116  fi
8117else
8118  OTOOL64="$ac_cv_prog_OTOOL64"
8119fi
8120
8121
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8148$as_echo_n "checking for -single_module linker flag... " >&6; }
8149if ${lt_cv_apple_cc_single_mod+:} false; then :
8150  $as_echo_n "(cached) " >&6
8151else
8152  lt_cv_apple_cc_single_mod=no
8153      if test -z "${LT_MULTI_MODULE}"; then
8154	# By default we will add the -single_module flag. You can override
8155	# by either setting the environment variable LT_MULTI_MODULE
8156	# non-empty at configure time, or by adding -multi_module to the
8157	# link flags.
8158	rm -rf libconftest.dylib*
8159	echo "int foo(void){return 1;}" > conftest.c
8160	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8161-dynamiclib -Wl,-single_module conftest.c" >&5
8162	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8163	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8164        _lt_result=$?
8165	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8166	  lt_cv_apple_cc_single_mod=yes
8167	else
8168	  cat conftest.err >&5
8169	fi
8170	rm -rf libconftest.dylib*
8171	rm -f conftest.*
8172      fi
8173fi
8174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8175$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8176    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8177$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8178if ${lt_cv_ld_exported_symbols_list+:} false; then :
8179  $as_echo_n "(cached) " >&6
8180else
8181  lt_cv_ld_exported_symbols_list=no
8182      save_LDFLAGS=$LDFLAGS
8183      echo "_main" > conftest.sym
8184      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8185      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8186/* end confdefs.h.  */
8187
8188int
8189main ()
8190{
8191
8192  ;
8193  return 0;
8194}
8195_ACEOF
8196if ac_fn_c_try_link "$LINENO"; then :
8197  lt_cv_ld_exported_symbols_list=yes
8198else
8199  lt_cv_ld_exported_symbols_list=no
8200fi
8201rm -f core conftest.err conftest.$ac_objext \
8202    conftest$ac_exeext conftest.$ac_ext
8203	LDFLAGS="$save_LDFLAGS"
8204
8205fi
8206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8207$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8208    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8209$as_echo_n "checking for -force_load linker flag... " >&6; }
8210if ${lt_cv_ld_force_load+:} false; then :
8211  $as_echo_n "(cached) " >&6
8212else
8213  lt_cv_ld_force_load=no
8214      cat > conftest.c << _LT_EOF
8215int forced_loaded() { return 2;}
8216_LT_EOF
8217      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8218      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8219      echo "$AR cru libconftest.a conftest.o" >&5
8220      $AR cru libconftest.a conftest.o 2>&5
8221      cat > conftest.c << _LT_EOF
8222int main() { return 0;}
8223_LT_EOF
8224      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8225      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8226      _lt_result=$?
8227      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8228	lt_cv_ld_force_load=yes
8229      else
8230	cat conftest.err >&5
8231      fi
8232        rm -f conftest.err libconftest.a conftest conftest.c
8233        rm -rf conftest.dSYM
8234
8235fi
8236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8237$as_echo "$lt_cv_ld_force_load" >&6; }
8238    case $host_os in
8239    rhapsody* | darwin1.[012])
8240      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8241    darwin1.*)
8242      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8243    darwin*) # darwin 5.x on
8244      # if running on 10.5 or later, the deployment target defaults
8245      # to the OS version, if on x86, and 10.4, the deployment
8246      # target defaults to 10.4. Don't you love it?
8247      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8248	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8249	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8250	10.[012][,.]*)
8251	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8252	10.*)
8253	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8254      esac
8255    ;;
8256  esac
8257    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8258      _lt_dar_single_mod='$single_module'
8259    fi
8260    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8261      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8262    else
8263      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8264    fi
8265    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8266      _lt_dsymutil='~$DSYMUTIL $lib || :'
8267    else
8268      _lt_dsymutil=
8269    fi
8270    ;;
8271  esac
8272
8273for ac_header in dlfcn.h
8274do :
8275  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8276"
8277if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8278  cat >>confdefs.h <<_ACEOF
8279#define HAVE_DLFCN_H 1
8280_ACEOF
8281
8282fi
8283
8284done
8285
8286
8287
8288
8289
8290# Set options
8291enable_dlopen=yes
8292
8293
8294
8295
8296  enable_win32_dll=no
8297
8298
8299
8300  # Check whether --enable-static was given.
8301if test "${enable_static+set}" = set; then :
8302  enableval=$enable_static; p=${PACKAGE-default}
8303    case $enableval in
8304    yes) enable_static=yes ;;
8305    no) enable_static=no ;;
8306    *)
8307     enable_static=no
8308      # Look at the argument we got.  We use all the common list separators.
8309      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8310      for pkg in $enableval; do
8311	IFS="$lt_save_ifs"
8312	if test "X$pkg" = "X$p"; then
8313	  enable_static=yes
8314	fi
8315      done
8316      IFS="$lt_save_ifs"
8317      ;;
8318    esac
8319else
8320  enable_static=yes
8321fi
8322
8323
8324
8325
8326
8327
8328
8329
8330
8331
8332# Check whether --with-pic was given.
8333if test "${with_pic+set}" = set; then :
8334  withval=$with_pic; pic_mode="$withval"
8335else
8336  pic_mode=default
8337fi
8338
8339
8340test -z "$pic_mode" && pic_mode=default
8341
8342
8343
8344
8345
8346
8347
8348  # Check whether --enable-fast-install was given.
8349if test "${enable_fast_install+set}" = set; then :
8350  enableval=$enable_fast_install; p=${PACKAGE-default}
8351    case $enableval in
8352    yes) enable_fast_install=yes ;;
8353    no) enable_fast_install=no ;;
8354    *)
8355      enable_fast_install=no
8356      # Look at the argument we got.  We use all the common list separators.
8357      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8358      for pkg in $enableval; do
8359	IFS="$lt_save_ifs"
8360	if test "X$pkg" = "X$p"; then
8361	  enable_fast_install=yes
8362	fi
8363      done
8364      IFS="$lt_save_ifs"
8365      ;;
8366    esac
8367else
8368  enable_fast_install=yes
8369fi
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381# This can be used to rebuild libtool when needed
8382LIBTOOL_DEPS="$ltmain"
8383
8384# Always use our own libtool.
8385LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412test -z "$LN_S" && LN_S="ln -s"
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426
8427if test -n "${ZSH_VERSION+set}" ; then
8428   setopt NO_GLOB_SUBST
8429fi
8430
8431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8432$as_echo_n "checking for objdir... " >&6; }
8433if ${lt_cv_objdir+:} false; then :
8434  $as_echo_n "(cached) " >&6
8435else
8436  rm -f .libs 2>/dev/null
8437mkdir .libs 2>/dev/null
8438if test -d .libs; then
8439  lt_cv_objdir=.libs
8440else
8441  # MS-DOS does not allow filenames that begin with a dot.
8442  lt_cv_objdir=_libs
8443fi
8444rmdir .libs 2>/dev/null
8445fi
8446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8447$as_echo "$lt_cv_objdir" >&6; }
8448objdir=$lt_cv_objdir
8449
8450
8451
8452
8453
8454cat >>confdefs.h <<_ACEOF
8455#define LT_OBJDIR "$lt_cv_objdir/"
8456_ACEOF
8457
8458
8459
8460
8461case $host_os in
8462aix3*)
8463  # AIX sometimes has problems with the GCC collect2 program.  For some
8464  # reason, if we set the COLLECT_NAMES environment variable, the problems
8465  # vanish in a puff of smoke.
8466  if test "X${COLLECT_NAMES+set}" != Xset; then
8467    COLLECT_NAMES=
8468    export COLLECT_NAMES
8469  fi
8470  ;;
8471esac
8472
8473# Global variables:
8474ofile=libtool
8475can_build_shared=yes
8476
8477# All known linkers require a `.a' archive for static linking (except MSVC,
8478# which needs '.lib').
8479libext=a
8480
8481with_gnu_ld="$lt_cv_prog_gnu_ld"
8482
8483old_CC="$CC"
8484old_CFLAGS="$CFLAGS"
8485
8486# Set sane defaults for various variables
8487test -z "$CC" && CC=cc
8488test -z "$LTCC" && LTCC=$CC
8489test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8490test -z "$LD" && LD=ld
8491test -z "$ac_objext" && ac_objext=o
8492
8493for cc_temp in $compiler""; do
8494  case $cc_temp in
8495    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8496    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8497    \-*) ;;
8498    *) break;;
8499  esac
8500done
8501cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8502
8503
8504# Only perform the check for file, if the check method requires it
8505test -z "$MAGIC_CMD" && MAGIC_CMD=file
8506case $deplibs_check_method in
8507file_magic*)
8508  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8509    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8510$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8511if ${lt_cv_path_MAGIC_CMD+:} false; then :
8512  $as_echo_n "(cached) " >&6
8513else
8514  case $MAGIC_CMD in
8515[\\/*] |  ?:[\\/]*)
8516  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8517  ;;
8518*)
8519  lt_save_MAGIC_CMD="$MAGIC_CMD"
8520  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8521  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8522  for ac_dir in $ac_dummy; do
8523    IFS="$lt_save_ifs"
8524    test -z "$ac_dir" && ac_dir=.
8525    if test -f $ac_dir/${ac_tool_prefix}file; then
8526      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8527      if test -n "$file_magic_test_file"; then
8528	case $deplibs_check_method in
8529	"file_magic "*)
8530	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8531	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8532	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8533	    $EGREP "$file_magic_regex" > /dev/null; then
8534	    :
8535	  else
8536	    cat <<_LT_EOF 1>&2
8537
8538*** Warning: the command libtool uses to detect shared libraries,
8539*** $file_magic_cmd, produces output that libtool cannot recognize.
8540*** The result is that libtool may fail to recognize shared libraries
8541*** as such.  This will affect the creation of libtool libraries that
8542*** depend on shared libraries, but programs linked with such libtool
8543*** libraries will work regardless of this problem.  Nevertheless, you
8544*** may want to report the problem to your system manager and/or to
8545*** bug-libtool@gnu.org
8546
8547_LT_EOF
8548	  fi ;;
8549	esac
8550      fi
8551      break
8552    fi
8553  done
8554  IFS="$lt_save_ifs"
8555  MAGIC_CMD="$lt_save_MAGIC_CMD"
8556  ;;
8557esac
8558fi
8559
8560MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8561if test -n "$MAGIC_CMD"; then
8562  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8563$as_echo "$MAGIC_CMD" >&6; }
8564else
8565  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8566$as_echo "no" >&6; }
8567fi
8568
8569
8570
8571
8572
8573if test -z "$lt_cv_path_MAGIC_CMD"; then
8574  if test -n "$ac_tool_prefix"; then
8575    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8576$as_echo_n "checking for file... " >&6; }
8577if ${lt_cv_path_MAGIC_CMD+:} false; then :
8578  $as_echo_n "(cached) " >&6
8579else
8580  case $MAGIC_CMD in
8581[\\/*] |  ?:[\\/]*)
8582  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8583  ;;
8584*)
8585  lt_save_MAGIC_CMD="$MAGIC_CMD"
8586  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8587  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8588  for ac_dir in $ac_dummy; do
8589    IFS="$lt_save_ifs"
8590    test -z "$ac_dir" && ac_dir=.
8591    if test -f $ac_dir/file; then
8592      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8593      if test -n "$file_magic_test_file"; then
8594	case $deplibs_check_method in
8595	"file_magic "*)
8596	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8597	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8598	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8599	    $EGREP "$file_magic_regex" > /dev/null; then
8600	    :
8601	  else
8602	    cat <<_LT_EOF 1>&2
8603
8604*** Warning: the command libtool uses to detect shared libraries,
8605*** $file_magic_cmd, produces output that libtool cannot recognize.
8606*** The result is that libtool may fail to recognize shared libraries
8607*** as such.  This will affect the creation of libtool libraries that
8608*** depend on shared libraries, but programs linked with such libtool
8609*** libraries will work regardless of this problem.  Nevertheless, you
8610*** may want to report the problem to your system manager and/or to
8611*** bug-libtool@gnu.org
8612
8613_LT_EOF
8614	  fi ;;
8615	esac
8616      fi
8617      break
8618    fi
8619  done
8620  IFS="$lt_save_ifs"
8621  MAGIC_CMD="$lt_save_MAGIC_CMD"
8622  ;;
8623esac
8624fi
8625
8626MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8627if test -n "$MAGIC_CMD"; then
8628  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8629$as_echo "$MAGIC_CMD" >&6; }
8630else
8631  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8632$as_echo "no" >&6; }
8633fi
8634
8635
8636  else
8637    MAGIC_CMD=:
8638  fi
8639fi
8640
8641  fi
8642  ;;
8643esac
8644
8645# Use C for the default configuration in the libtool script
8646
8647lt_save_CC="$CC"
8648ac_ext=c
8649ac_cpp='$CPP $CPPFLAGS'
8650ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8651ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8652ac_compiler_gnu=$ac_cv_c_compiler_gnu
8653
8654
8655# Source file extension for C test sources.
8656ac_ext=c
8657
8658# Object file extension for compiled C test sources.
8659objext=o
8660objext=$objext
8661
8662# Code to be used in simple compile tests
8663lt_simple_compile_test_code="int some_variable = 0;"
8664
8665# Code to be used in simple link tests
8666lt_simple_link_test_code='int main(){return(0);}'
8667
8668
8669
8670
8671
8672
8673
8674# If no C compiler was specified, use CC.
8675LTCC=${LTCC-"$CC"}
8676
8677# If no C compiler flags were specified, use CFLAGS.
8678LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8679
8680# Allow CC to be a program name with arguments.
8681compiler=$CC
8682
8683# Save the default compiler, since it gets overwritten when the other
8684# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8685compiler_DEFAULT=$CC
8686
8687# save warnings/boilerplate of simple test code
8688ac_outfile=conftest.$ac_objext
8689echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8690eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8691_lt_compiler_boilerplate=`cat conftest.err`
8692$RM conftest*
8693
8694ac_outfile=conftest.$ac_objext
8695echo "$lt_simple_link_test_code" >conftest.$ac_ext
8696eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8697_lt_linker_boilerplate=`cat conftest.err`
8698$RM -r conftest*
8699
8700
8701## CAVEAT EMPTOR:
8702## There is no encapsulation within the following macros, do not change
8703## the running order or otherwise move them around unless you know exactly
8704## what you are doing...
8705if test -n "$compiler"; then
8706
8707lt_prog_compiler_no_builtin_flag=
8708
8709if test "$GCC" = yes; then
8710  case $cc_basename in
8711  nvcc*)
8712    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8713  *)
8714    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8715  esac
8716
8717  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8718$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8719if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8720  $as_echo_n "(cached) " >&6
8721else
8722  lt_cv_prog_compiler_rtti_exceptions=no
8723   ac_outfile=conftest.$ac_objext
8724   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8725   lt_compiler_flag="-fno-rtti -fno-exceptions"
8726   # Insert the option either (1) after the last *FLAGS variable, or
8727   # (2) before a word containing "conftest.", or (3) at the end.
8728   # Note that $ac_compile itself does not contain backslashes and begins
8729   # with a dollar sign (not a hyphen), so the echo should work correctly.
8730   # The option is referenced via a variable to avoid confusing sed.
8731   lt_compile=`echo "$ac_compile" | $SED \
8732   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8733   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8734   -e 's:$: $lt_compiler_flag:'`
8735   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8736   (eval "$lt_compile" 2>conftest.err)
8737   ac_status=$?
8738   cat conftest.err >&5
8739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8740   if (exit $ac_status) && test -s "$ac_outfile"; then
8741     # The compiler can only warn and ignore the option if not recognized
8742     # So say no if there are warnings other than the usual output.
8743     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8744     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8745     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8746       lt_cv_prog_compiler_rtti_exceptions=yes
8747     fi
8748   fi
8749   $RM conftest*
8750
8751fi
8752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8753$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8754
8755if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8756    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8757else
8758    :
8759fi
8760
8761fi
8762
8763
8764
8765
8766
8767
8768  lt_prog_compiler_wl=
8769lt_prog_compiler_pic=
8770lt_prog_compiler_static=
8771
8772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8773$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8774
8775  if test "$GCC" = yes; then
8776    lt_prog_compiler_wl='-Wl,'
8777    lt_prog_compiler_static='-static'
8778
8779    case $host_os in
8780      aix*)
8781      # All AIX code is PIC.
8782      if test "$host_cpu" = ia64; then
8783	# AIX 5 now supports IA64 processor
8784	lt_prog_compiler_static='-Bstatic'
8785      fi
8786      lt_prog_compiler_pic='-fPIC'
8787      ;;
8788
8789    amigaos*)
8790      case $host_cpu in
8791      powerpc)
8792            # see comment about AmigaOS4 .so support
8793            lt_prog_compiler_pic='-fPIC'
8794        ;;
8795      m68k)
8796            # FIXME: we need at least 68020 code to build shared libraries, but
8797            # adding the `-m68020' flag to GCC prevents building anything better,
8798            # like `-m68040'.
8799            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8800        ;;
8801      esac
8802      ;;
8803
8804    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8805      # PIC is the default for these OSes.
8806      ;;
8807
8808    mingw* | cygwin* | pw32* | os2* | cegcc*)
8809      # This hack is so that the source file can tell whether it is being
8810      # built for inclusion in a dll (and should export symbols for example).
8811      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8812      # (--disable-auto-import) libraries
8813      lt_prog_compiler_pic='-DDLL_EXPORT'
8814      ;;
8815
8816    darwin* | rhapsody*)
8817      # PIC is the default on this platform
8818      # Common symbols not allowed in MH_DYLIB files
8819      lt_prog_compiler_pic='-fno-common'
8820      ;;
8821
8822    haiku*)
8823      # PIC is the default for Haiku.
8824      # The "-static" flag exists, but is broken.
8825      lt_prog_compiler_static=
8826      ;;
8827
8828    hpux*)
8829      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8830      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8831      # sets the default TLS model and affects inlining.
8832      case $host_cpu in
8833      hppa*64*)
8834	# +Z the default
8835	;;
8836      *)
8837	lt_prog_compiler_pic='-fPIC'
8838	;;
8839      esac
8840      ;;
8841
8842    interix[3-9]*)
8843      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8844      # Instead, we relocate shared libraries at runtime.
8845      ;;
8846
8847    msdosdjgpp*)
8848      # Just because we use GCC doesn't mean we suddenly get shared libraries
8849      # on systems that don't support them.
8850      lt_prog_compiler_can_build_shared=no
8851      enable_shared=no
8852      ;;
8853
8854    *nto* | *qnx*)
8855      # QNX uses GNU C++, but need to define -shared option too, otherwise
8856      # it will coredump.
8857      lt_prog_compiler_pic='-fPIC -shared'
8858      ;;
8859
8860    sysv4*MP*)
8861      if test -d /usr/nec; then
8862	lt_prog_compiler_pic=-Kconform_pic
8863      fi
8864      ;;
8865
8866    *)
8867      lt_prog_compiler_pic='-fPIC'
8868      ;;
8869    esac
8870
8871    case $cc_basename in
8872    nvcc*) # Cuda Compiler Driver 2.2
8873      lt_prog_compiler_wl='-Xlinker '
8874      lt_prog_compiler_pic='-Xcompiler -fPIC'
8875      ;;
8876    esac
8877  else
8878    # PORTME Check for flag to pass linker flags through the system compiler.
8879    case $host_os in
8880    aix*)
8881      lt_prog_compiler_wl='-Wl,'
8882      if test "$host_cpu" = ia64; then
8883	# AIX 5 now supports IA64 processor
8884	lt_prog_compiler_static='-Bstatic'
8885      else
8886	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8887      fi
8888      ;;
8889
8890    mingw* | cygwin* | pw32* | os2* | cegcc*)
8891      # This hack is so that the source file can tell whether it is being
8892      # built for inclusion in a dll (and should export symbols for example).
8893      lt_prog_compiler_pic='-DDLL_EXPORT'
8894      ;;
8895
8896    hpux9* | hpux10* | hpux11*)
8897      lt_prog_compiler_wl='-Wl,'
8898      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8899      # not for PA HP-UX.
8900      case $host_cpu in
8901      hppa*64*|ia64*)
8902	# +Z the default
8903	;;
8904      *)
8905	lt_prog_compiler_pic='+Z'
8906	;;
8907      esac
8908      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8909      lt_prog_compiler_static='${wl}-a ${wl}archive'
8910      ;;
8911
8912    irix5* | irix6* | nonstopux*)
8913      lt_prog_compiler_wl='-Wl,'
8914      # PIC (with -KPIC) is the default.
8915      lt_prog_compiler_static='-non_shared'
8916      ;;
8917
8918    linux* | k*bsd*-gnu | kopensolaris*-gnu)
8919      case $cc_basename in
8920      # old Intel for x86_64 which still supported -KPIC.
8921      ecc*)
8922	lt_prog_compiler_wl='-Wl,'
8923	lt_prog_compiler_pic='-KPIC'
8924	lt_prog_compiler_static='-static'
8925        ;;
8926      # icc used to be incompatible with GCC.
8927      # ICC 10 doesn't accept -KPIC any more.
8928      icc* | ifort*)
8929	lt_prog_compiler_wl='-Wl,'
8930	lt_prog_compiler_pic='-fPIC'
8931	lt_prog_compiler_static='-static'
8932        ;;
8933      # Lahey Fortran 8.1.
8934      lf95*)
8935	lt_prog_compiler_wl='-Wl,'
8936	lt_prog_compiler_pic='--shared'
8937	lt_prog_compiler_static='--static'
8938	;;
8939      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8940        # Portland Group compilers (*not* the Pentium gcc compiler,
8941	# which looks to be a dead project)
8942	lt_prog_compiler_wl='-Wl,'
8943	lt_prog_compiler_pic='-fpic'
8944	lt_prog_compiler_static='-Bstatic'
8945        ;;
8946      ccc*)
8947        lt_prog_compiler_wl='-Wl,'
8948        # All Alpha code is PIC.
8949        lt_prog_compiler_static='-non_shared'
8950        ;;
8951      xl* | bgxl* | bgf* | mpixl*)
8952	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8953	lt_prog_compiler_wl='-Wl,'
8954	lt_prog_compiler_pic='-qpic'
8955	lt_prog_compiler_static='-qstaticlink'
8956	;;
8957      *)
8958	case `$CC -V 2>&1 | sed 5q` in
8959	*Sun\ F* | *Sun*Fortran*)
8960	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8961	  lt_prog_compiler_pic='-KPIC'
8962	  lt_prog_compiler_static='-Bstatic'
8963	  lt_prog_compiler_wl=''
8964	  ;;
8965	*Sun\ C*)
8966	  # Sun C 5.9
8967	  lt_prog_compiler_pic='-KPIC'
8968	  lt_prog_compiler_static='-Bstatic'
8969	  lt_prog_compiler_wl='-Wl,'
8970	  ;;
8971	esac
8972	;;
8973      esac
8974      ;;
8975
8976    newsos6)
8977      lt_prog_compiler_pic='-KPIC'
8978      lt_prog_compiler_static='-Bstatic'
8979      ;;
8980
8981    *nto* | *qnx*)
8982      # QNX uses GNU C++, but need to define -shared option too, otherwise
8983      # it will coredump.
8984      lt_prog_compiler_pic='-fPIC -shared'
8985      ;;
8986
8987    osf3* | osf4* | osf5*)
8988      lt_prog_compiler_wl='-Wl,'
8989      # All OSF/1 code is PIC.
8990      lt_prog_compiler_static='-non_shared'
8991      ;;
8992
8993    rdos*)
8994      lt_prog_compiler_static='-non_shared'
8995      ;;
8996
8997    solaris*)
8998      lt_prog_compiler_pic='-KPIC'
8999      lt_prog_compiler_static='-Bstatic'
9000      case $cc_basename in
9001      f77* | f90* | f95*)
9002	lt_prog_compiler_wl='-Qoption ld ';;
9003      *)
9004	lt_prog_compiler_wl='-Wl,';;
9005      esac
9006      ;;
9007
9008    sunos4*)
9009      lt_prog_compiler_wl='-Qoption ld '
9010      lt_prog_compiler_pic='-PIC'
9011      lt_prog_compiler_static='-Bstatic'
9012      ;;
9013
9014    sysv4 | sysv4.2uw2* | sysv4.3*)
9015      lt_prog_compiler_wl='-Wl,'
9016      lt_prog_compiler_pic='-KPIC'
9017      lt_prog_compiler_static='-Bstatic'
9018      ;;
9019
9020    sysv4*MP*)
9021      if test -d /usr/nec ;then
9022	lt_prog_compiler_pic='-Kconform_pic'
9023	lt_prog_compiler_static='-Bstatic'
9024      fi
9025      ;;
9026
9027    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9028      lt_prog_compiler_wl='-Wl,'
9029      lt_prog_compiler_pic='-KPIC'
9030      lt_prog_compiler_static='-Bstatic'
9031      ;;
9032
9033    unicos*)
9034      lt_prog_compiler_wl='-Wl,'
9035      lt_prog_compiler_can_build_shared=no
9036      ;;
9037
9038    uts4*)
9039      lt_prog_compiler_pic='-pic'
9040      lt_prog_compiler_static='-Bstatic'
9041      ;;
9042
9043    *)
9044      lt_prog_compiler_can_build_shared=no
9045      ;;
9046    esac
9047  fi
9048
9049case $host_os in
9050  # For platforms which do not support PIC, -DPIC is meaningless:
9051  *djgpp*)
9052    lt_prog_compiler_pic=
9053    ;;
9054  *)
9055    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9056    ;;
9057esac
9058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9059$as_echo "$lt_prog_compiler_pic" >&6; }
9060
9061
9062
9063
9064
9065
9066#
9067# Check to make sure the PIC flag actually works.
9068#
9069if test -n "$lt_prog_compiler_pic"; then
9070  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9071$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9072if ${lt_cv_prog_compiler_pic_works+:} false; then :
9073  $as_echo_n "(cached) " >&6
9074else
9075  lt_cv_prog_compiler_pic_works=no
9076   ac_outfile=conftest.$ac_objext
9077   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9078   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9079   # Insert the option either (1) after the last *FLAGS variable, or
9080   # (2) before a word containing "conftest.", or (3) at the end.
9081   # Note that $ac_compile itself does not contain backslashes and begins
9082   # with a dollar sign (not a hyphen), so the echo should work correctly.
9083   # The option is referenced via a variable to avoid confusing sed.
9084   lt_compile=`echo "$ac_compile" | $SED \
9085   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9086   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9087   -e 's:$: $lt_compiler_flag:'`
9088   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9089   (eval "$lt_compile" 2>conftest.err)
9090   ac_status=$?
9091   cat conftest.err >&5
9092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9093   if (exit $ac_status) && test -s "$ac_outfile"; then
9094     # The compiler can only warn and ignore the option if not recognized
9095     # So say no if there are warnings other than the usual output.
9096     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9097     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9098     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9099       lt_cv_prog_compiler_pic_works=yes
9100     fi
9101   fi
9102   $RM conftest*
9103
9104fi
9105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9106$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9107
9108if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9109    case $lt_prog_compiler_pic in
9110     "" | " "*) ;;
9111     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9112     esac
9113else
9114    lt_prog_compiler_pic=
9115     lt_prog_compiler_can_build_shared=no
9116fi
9117
9118fi
9119
9120
9121
9122
9123
9124
9125#
9126# Check to make sure the static flag actually works.
9127#
9128wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9130$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9131if ${lt_cv_prog_compiler_static_works+:} false; then :
9132  $as_echo_n "(cached) " >&6
9133else
9134  lt_cv_prog_compiler_static_works=no
9135   save_LDFLAGS="$LDFLAGS"
9136   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9137   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9138   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9139     # The linker can only warn and ignore the option if not recognized
9140     # So say no if there are warnings
9141     if test -s conftest.err; then
9142       # Append any errors to the config.log.
9143       cat conftest.err 1>&5
9144       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9145       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9146       if diff conftest.exp conftest.er2 >/dev/null; then
9147         lt_cv_prog_compiler_static_works=yes
9148       fi
9149     else
9150       lt_cv_prog_compiler_static_works=yes
9151     fi
9152   fi
9153   $RM -r conftest*
9154   LDFLAGS="$save_LDFLAGS"
9155
9156fi
9157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9158$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9159
9160if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9161    :
9162else
9163    lt_prog_compiler_static=
9164fi
9165
9166
9167
9168
9169
9170
9171
9172  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9173$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9174if ${lt_cv_prog_compiler_c_o+:} false; then :
9175  $as_echo_n "(cached) " >&6
9176else
9177  lt_cv_prog_compiler_c_o=no
9178   $RM -r conftest 2>/dev/null
9179   mkdir conftest
9180   cd conftest
9181   mkdir out
9182   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9183
9184   lt_compiler_flag="-o out/conftest2.$ac_objext"
9185   # Insert the option either (1) after the last *FLAGS variable, or
9186   # (2) before a word containing "conftest.", or (3) at the end.
9187   # Note that $ac_compile itself does not contain backslashes and begins
9188   # with a dollar sign (not a hyphen), so the echo should work correctly.
9189   lt_compile=`echo "$ac_compile" | $SED \
9190   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9191   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9192   -e 's:$: $lt_compiler_flag:'`
9193   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9194   (eval "$lt_compile" 2>out/conftest.err)
9195   ac_status=$?
9196   cat out/conftest.err >&5
9197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9198   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9199   then
9200     # The compiler can only warn and ignore the option if not recognized
9201     # So say no if there are warnings
9202     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9203     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9204     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9205       lt_cv_prog_compiler_c_o=yes
9206     fi
9207   fi
9208   chmod u+w . 2>&5
9209   $RM conftest*
9210   # SGI C++ compiler will create directory out/ii_files/ for
9211   # template instantiation
9212   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9213   $RM out/* && rmdir out
9214   cd ..
9215   $RM -r conftest
9216   $RM conftest*
9217
9218fi
9219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9220$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9221
9222
9223
9224
9225
9226
9227  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9228$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9229if ${lt_cv_prog_compiler_c_o+:} false; then :
9230  $as_echo_n "(cached) " >&6
9231else
9232  lt_cv_prog_compiler_c_o=no
9233   $RM -r conftest 2>/dev/null
9234   mkdir conftest
9235   cd conftest
9236   mkdir out
9237   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9238
9239   lt_compiler_flag="-o out/conftest2.$ac_objext"
9240   # Insert the option either (1) after the last *FLAGS variable, or
9241   # (2) before a word containing "conftest.", or (3) at the end.
9242   # Note that $ac_compile itself does not contain backslashes and begins
9243   # with a dollar sign (not a hyphen), so the echo should work correctly.
9244   lt_compile=`echo "$ac_compile" | $SED \
9245   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9246   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9247   -e 's:$: $lt_compiler_flag:'`
9248   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9249   (eval "$lt_compile" 2>out/conftest.err)
9250   ac_status=$?
9251   cat out/conftest.err >&5
9252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9253   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9254   then
9255     # The compiler can only warn and ignore the option if not recognized
9256     # So say no if there are warnings
9257     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9258     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9259     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9260       lt_cv_prog_compiler_c_o=yes
9261     fi
9262   fi
9263   chmod u+w . 2>&5
9264   $RM conftest*
9265   # SGI C++ compiler will create directory out/ii_files/ for
9266   # template instantiation
9267   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9268   $RM out/* && rmdir out
9269   cd ..
9270   $RM -r conftest
9271   $RM conftest*
9272
9273fi
9274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9275$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9276
9277
9278
9279
9280hard_links="nottested"
9281if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9282  # do not overwrite the value of need_locks provided by the user
9283  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9284$as_echo_n "checking if we can lock with hard links... " >&6; }
9285  hard_links=yes
9286  $RM conftest*
9287  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9288  touch conftest.a
9289  ln conftest.a conftest.b 2>&5 || hard_links=no
9290  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9291  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9292$as_echo "$hard_links" >&6; }
9293  if test "$hard_links" = no; then
9294    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9295$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9296    need_locks=warn
9297  fi
9298else
9299  need_locks=no
9300fi
9301
9302
9303
9304
9305
9306
9307  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9308$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9309
9310  runpath_var=
9311  allow_undefined_flag=
9312  always_export_symbols=no
9313  archive_cmds=
9314  archive_expsym_cmds=
9315  compiler_needs_object=no
9316  enable_shared_with_static_runtimes=no
9317  export_dynamic_flag_spec=
9318  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9319  hardcode_automatic=no
9320  hardcode_direct=no
9321  hardcode_direct_absolute=no
9322  hardcode_libdir_flag_spec=
9323  hardcode_libdir_flag_spec_ld=
9324  hardcode_libdir_separator=
9325  hardcode_minus_L=no
9326  hardcode_shlibpath_var=unsupported
9327  inherit_rpath=no
9328  link_all_deplibs=unknown
9329  module_cmds=
9330  module_expsym_cmds=
9331  old_archive_from_new_cmds=
9332  old_archive_from_expsyms_cmds=
9333  thread_safe_flag_spec=
9334  whole_archive_flag_spec=
9335  # include_expsyms should be a list of space-separated symbols to be *always*
9336  # included in the symbol list
9337  include_expsyms=
9338  # exclude_expsyms can be an extended regexp of symbols to exclude
9339  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9340  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9341  # as well as any symbol that contains `d'.
9342  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9343  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9344  # platforms (ab)use it in PIC code, but their linkers get confused if
9345  # the symbol is explicitly referenced.  Since portable code cannot
9346  # rely on this symbol name, it's probably fine to never include it in
9347  # preloaded symbol tables.
9348  # Exclude shared library initialization/finalization symbols.
9349  extract_expsyms_cmds=
9350
9351  case $host_os in
9352  cygwin* | mingw* | pw32* | cegcc*)
9353    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9354    # When not using gcc, we currently assume that we are using
9355    # Microsoft Visual C++.
9356    if test "$GCC" != yes; then
9357      with_gnu_ld=no
9358    fi
9359    ;;
9360  interix*)
9361    # we just hope/assume this is gcc and not c89 (= MSVC++)
9362    with_gnu_ld=yes
9363    ;;
9364  openbsd*)
9365    with_gnu_ld=no
9366    ;;
9367  esac
9368
9369  ld_shlibs=yes
9370
9371  # On some targets, GNU ld is compatible enough with the native linker
9372  # that we're better off using the native interface for both.
9373  lt_use_gnu_ld_interface=no
9374  if test "$with_gnu_ld" = yes; then
9375    case $host_os in
9376      aix*)
9377	# The AIX port of GNU ld has always aspired to compatibility
9378	# with the native linker.  However, as the warning in the GNU ld
9379	# block says, versions before 2.19.5* couldn't really create working
9380	# shared libraries, regardless of the interface used.
9381	case `$LD -v 2>&1` in
9382	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9383	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9384	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9385	  *)
9386	    lt_use_gnu_ld_interface=yes
9387	    ;;
9388	esac
9389	;;
9390      *)
9391	lt_use_gnu_ld_interface=yes
9392	;;
9393    esac
9394  fi
9395
9396  if test "$lt_use_gnu_ld_interface" = yes; then
9397    # If archive_cmds runs LD, not CC, wlarc should be empty
9398    wlarc='${wl}'
9399
9400    # Set some defaults for GNU ld with shared library support. These
9401    # are reset later if shared libraries are not supported. Putting them
9402    # here allows them to be overridden if necessary.
9403    runpath_var=LD_RUN_PATH
9404    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9405    export_dynamic_flag_spec='${wl}--export-dynamic'
9406    # ancient GNU ld didn't support --whole-archive et. al.
9407    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9408      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9409    else
9410      whole_archive_flag_spec=
9411    fi
9412    supports_anon_versioning=no
9413    case `$LD -v 2>&1` in
9414      *GNU\ gold*) supports_anon_versioning=yes ;;
9415      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9416      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9417      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9418      *\ 2.11.*) ;; # other 2.11 versions
9419      *) supports_anon_versioning=yes ;;
9420    esac
9421
9422    # See if GNU ld supports shared libraries.
9423    case $host_os in
9424    aix[3-9]*)
9425      # On AIX/PPC, the GNU linker is very broken
9426      if test "$host_cpu" != ia64; then
9427	ld_shlibs=no
9428	cat <<_LT_EOF 1>&2
9429
9430*** Warning: the GNU linker, at least up to release 2.19, is reported
9431*** to be unable to reliably create shared libraries on AIX.
9432*** Therefore, libtool is disabling shared libraries support.  If you
9433*** really care for shared libraries, you may want to install binutils
9434*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9435*** You will then need to restart the configuration process.
9436
9437_LT_EOF
9438      fi
9439      ;;
9440
9441    amigaos*)
9442      case $host_cpu in
9443      powerpc)
9444            # see comment about AmigaOS4 .so support
9445            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9446            archive_expsym_cmds=''
9447        ;;
9448      m68k)
9449            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)'
9450            hardcode_libdir_flag_spec='-L$libdir'
9451            hardcode_minus_L=yes
9452        ;;
9453      esac
9454      ;;
9455
9456    beos*)
9457      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9458	allow_undefined_flag=unsupported
9459	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9460	# support --undefined.  This deserves some investigation.  FIXME
9461	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9462      else
9463	ld_shlibs=no
9464      fi
9465      ;;
9466
9467    cygwin* | mingw* | pw32* | cegcc*)
9468      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9469      # as there is no search path for DLLs.
9470      hardcode_libdir_flag_spec='-L$libdir'
9471      export_dynamic_flag_spec='${wl}--export-all-symbols'
9472      allow_undefined_flag=unsupported
9473      always_export_symbols=no
9474      enable_shared_with_static_runtimes=yes
9475      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9476
9477      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9478        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9479	# If the export-symbols file already is a .def file (1st line
9480	# is EXPORTS), use it as is; otherwise, prepend...
9481	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9482	  cp $export_symbols $output_objdir/$soname.def;
9483	else
9484	  echo EXPORTS > $output_objdir/$soname.def;
9485	  cat $export_symbols >> $output_objdir/$soname.def;
9486	fi~
9487	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9488      else
9489	ld_shlibs=no
9490      fi
9491      ;;
9492
9493    haiku*)
9494      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9495      link_all_deplibs=yes
9496      ;;
9497
9498    interix[3-9]*)
9499      hardcode_direct=no
9500      hardcode_shlibpath_var=no
9501      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9502      export_dynamic_flag_spec='${wl}-E'
9503      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9504      # Instead, shared libraries are loaded at an image base (0x10000000 by
9505      # default) and relocated if they conflict, which is a slow very memory
9506      # consuming and fragmenting process.  To avoid this, we pick a random,
9507      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9508      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9509      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9510      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'
9511      ;;
9512
9513    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9514      tmp_diet=no
9515      if test "$host_os" = linux-dietlibc; then
9516	case $cc_basename in
9517	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9518	esac
9519      fi
9520      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9521	 && test "$tmp_diet" = no
9522      then
9523	tmp_addflag=' $pic_flag'
9524	tmp_sharedflag='-shared'
9525	case $cc_basename,$host_cpu in
9526        pgcc*)				# Portland Group C compiler
9527	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9528	  tmp_addflag=' $pic_flag'
9529	  ;;
9530	pgf77* | pgf90* | pgf95* | pgfortran*)
9531					# Portland Group f77 and f90 compilers
9532	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9533	  tmp_addflag=' $pic_flag -Mnomain' ;;
9534	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9535	  tmp_addflag=' -i_dynamic' ;;
9536	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9537	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9538	ifc* | ifort*)			# Intel Fortran compiler
9539	  tmp_addflag=' -nofor_main' ;;
9540	lf95*)				# Lahey Fortran 8.1
9541	  whole_archive_flag_spec=
9542	  tmp_sharedflag='--shared' ;;
9543	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9544	  tmp_sharedflag='-qmkshrobj'
9545	  tmp_addflag= ;;
9546	nvcc*)	# Cuda Compiler Driver 2.2
9547	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9548	  compiler_needs_object=yes
9549	  ;;
9550	esac
9551	case `$CC -V 2>&1 | sed 5q` in
9552	*Sun\ C*)			# Sun C 5.9
9553	  whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9554	  compiler_needs_object=yes
9555	  tmp_sharedflag='-G' ;;
9556	*Sun\ F*)			# Sun Fortran 8.3
9557	  tmp_sharedflag='-G' ;;
9558	esac
9559	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9560
9561        if test "x$supports_anon_versioning" = xyes; then
9562          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9563	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9564	    echo "local: *; };" >> $output_objdir/$libname.ver~
9565	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9566        fi
9567
9568	case $cc_basename in
9569	xlf* | bgf* | bgxlf* | mpixlf*)
9570	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9571	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9572	  hardcode_libdir_flag_spec=
9573	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
9574	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9575	  if test "x$supports_anon_versioning" = xyes; then
9576	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9577	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9578	      echo "local: *; };" >> $output_objdir/$libname.ver~
9579	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9580	  fi
9581	  ;;
9582	esac
9583      else
9584        ld_shlibs=no
9585      fi
9586      ;;
9587
9588    netbsd*)
9589      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9590	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9591	wlarc=
9592      else
9593	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9594	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9595      fi
9596      ;;
9597
9598    solaris*)
9599      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9600	ld_shlibs=no
9601	cat <<_LT_EOF 1>&2
9602
9603*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9604*** create shared libraries on Solaris systems.  Therefore, libtool
9605*** is disabling shared libraries support.  We urge you to upgrade GNU
9606*** binutils to release 2.9.1 or newer.  Another option is to modify
9607*** your PATH or compiler configuration so that the native linker is
9608*** used, and then restart.
9609
9610_LT_EOF
9611      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9612	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9613	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9614      else
9615	ld_shlibs=no
9616      fi
9617      ;;
9618
9619    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9620      case `$LD -v 2>&1` in
9621        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9622	ld_shlibs=no
9623	cat <<_LT_EOF 1>&2
9624
9625*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9626*** reliably create shared libraries on SCO systems.  Therefore, libtool
9627*** is disabling shared libraries support.  We urge you to upgrade GNU
9628*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9629*** your PATH or compiler configuration so that the native linker is
9630*** used, and then restart.
9631
9632_LT_EOF
9633	;;
9634	*)
9635	  # For security reasons, it is highly recommended that you always
9636	  # use absolute paths for naming shared libraries, and exclude the
9637	  # DT_RUNPATH tag from executables and libraries.  But doing so
9638	  # requires that you compile everything twice, which is a pain.
9639	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9640	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9641	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9642	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9643	  else
9644	    ld_shlibs=no
9645	  fi
9646	;;
9647      esac
9648      ;;
9649
9650    sunos4*)
9651      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9652      wlarc=
9653      hardcode_direct=yes
9654      hardcode_shlibpath_var=no
9655      ;;
9656
9657    *)
9658      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9659	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9660	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9661      else
9662	ld_shlibs=no
9663      fi
9664      ;;
9665    esac
9666
9667    if test "$ld_shlibs" = no; then
9668      runpath_var=
9669      hardcode_libdir_flag_spec=
9670      export_dynamic_flag_spec=
9671      whole_archive_flag_spec=
9672    fi
9673  else
9674    # PORTME fill in a description of your system's linker (not GNU ld)
9675    case $host_os in
9676    aix3*)
9677      allow_undefined_flag=unsupported
9678      always_export_symbols=yes
9679      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'
9680      # Note: this linker hardcodes the directories in LIBPATH if there
9681      # are no directories specified by -L.
9682      hardcode_minus_L=yes
9683      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9684	# Neither direct hardcoding nor static linking is supported with a
9685	# broken collect2.
9686	hardcode_direct=unsupported
9687      fi
9688      ;;
9689
9690    aix[4-9]*)
9691      if test "$host_cpu" = ia64; then
9692	# On IA64, the linker does run time linking by default, so we don't
9693	# have to do anything special.
9694	aix_use_runtimelinking=no
9695	exp_sym_flag='-Bexport'
9696	no_entry_flag=""
9697      else
9698	# If we're using GNU nm, then we don't want the "-C" option.
9699	# -C means demangle to AIX nm, but means don't demangle with GNU nm
9700	# Also, AIX nm treats weak defined symbols like other global
9701	# defined symbols, whereas GNU nm marks them as "W".
9702	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9703	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9704	else
9705	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9706	fi
9707	aix_use_runtimelinking=no
9708
9709	# Test if we are trying to use run time linking or normal
9710	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9711	# need to do runtime linking.
9712	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9713	  for ld_flag in $LDFLAGS; do
9714	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9715	    aix_use_runtimelinking=yes
9716	    break
9717	  fi
9718	  done
9719	  ;;
9720	esac
9721
9722	exp_sym_flag='-bexport'
9723	no_entry_flag='-bnoentry'
9724      fi
9725
9726      # When large executables or shared objects are built, AIX ld can
9727      # have problems creating the table of contents.  If linking a library
9728      # or program results in "error TOC overflow" add -mminimal-toc to
9729      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9730      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9731
9732      archive_cmds=''
9733      hardcode_direct=yes
9734      hardcode_direct_absolute=yes
9735      hardcode_libdir_separator=':'
9736      link_all_deplibs=yes
9737      file_list_spec='${wl}-f,'
9738
9739      if test "$GCC" = yes; then
9740	case $host_os in aix4.[012]|aix4.[012].*)
9741	# We only want to do this on AIX 4.2 and lower, the check
9742	# below for broken collect2 doesn't work under 4.3+
9743	  collect2name=`${CC} -print-prog-name=collect2`
9744	  if test -f "$collect2name" &&
9745	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9746	  then
9747	  # We have reworked collect2
9748	  :
9749	  else
9750	  # We have old collect2
9751	  hardcode_direct=unsupported
9752	  # It fails to find uninstalled libraries when the uninstalled
9753	  # path is not listed in the libpath.  Setting hardcode_minus_L
9754	  # to unsupported forces relinking
9755	  hardcode_minus_L=yes
9756	  hardcode_libdir_flag_spec='-L$libdir'
9757	  hardcode_libdir_separator=
9758	  fi
9759	  ;;
9760	esac
9761	shared_flag='-shared'
9762	if test "$aix_use_runtimelinking" = yes; then
9763	  shared_flag="$shared_flag "'${wl}-G'
9764	fi
9765      else
9766	# not using gcc
9767	if test "$host_cpu" = ia64; then
9768	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9769	# chokes on -Wl,-G. The following line is correct:
9770	  shared_flag='-G'
9771	else
9772	  if test "$aix_use_runtimelinking" = yes; then
9773	    shared_flag='${wl}-G'
9774	  else
9775	    shared_flag='${wl}-bM:SRE'
9776	  fi
9777	fi
9778      fi
9779
9780      export_dynamic_flag_spec='${wl}-bexpall'
9781      # It seems that -bexpall does not export symbols beginning with
9782      # underscore (_), so it is better to generate a list of symbols to export.
9783      always_export_symbols=yes
9784      if test "$aix_use_runtimelinking" = yes; then
9785	# Warning - without using the other runtime loading flags (-brtl),
9786	# -berok will link without error, but may produce a broken library.
9787	allow_undefined_flag='-berok'
9788        # Determine the default libpath from the value encoded in an
9789        # empty executable.
9790        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9791/* end confdefs.h.  */
9792
9793int
9794main ()
9795{
9796
9797  ;
9798  return 0;
9799}
9800_ACEOF
9801if ac_fn_c_try_link "$LINENO"; then :
9802
9803lt_aix_libpath_sed='
9804    /Import File Strings/,/^$/ {
9805	/^0/ {
9806	    s/^0  *\(.*\)$/\1/
9807	    p
9808	}
9809    }'
9810aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9811# Check for a 64-bit object if we didn't find anything.
9812if test -z "$aix_libpath"; then
9813  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9814fi
9815fi
9816rm -f core conftest.err conftest.$ac_objext \
9817    conftest$ac_exeext conftest.$ac_ext
9818if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9819
9820        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9821        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9822      else
9823	if test "$host_cpu" = ia64; then
9824	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9825	  allow_undefined_flag="-z nodefs"
9826	  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"
9827	else
9828	 # Determine the default libpath from the value encoded in an
9829	 # empty executable.
9830	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9831/* end confdefs.h.  */
9832
9833int
9834main ()
9835{
9836
9837  ;
9838  return 0;
9839}
9840_ACEOF
9841if ac_fn_c_try_link "$LINENO"; then :
9842
9843lt_aix_libpath_sed='
9844    /Import File Strings/,/^$/ {
9845	/^0/ {
9846	    s/^0  *\(.*\)$/\1/
9847	    p
9848	}
9849    }'
9850aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9851# Check for a 64-bit object if we didn't find anything.
9852if test -z "$aix_libpath"; then
9853  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9854fi
9855fi
9856rm -f core conftest.err conftest.$ac_objext \
9857    conftest$ac_exeext conftest.$ac_ext
9858if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9859
9860	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9861	  # Warning - without using the other run time loading flags,
9862	  # -berok will link without error, but may produce a broken library.
9863	  no_undefined_flag=' ${wl}-bernotok'
9864	  allow_undefined_flag=' ${wl}-berok'
9865	  if test "$with_gnu_ld" = yes; then
9866	    # We only use this code for GNU lds that support --whole-archive.
9867	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9868	  else
9869	    # Exported symbols can be pulled into shared objects from archives
9870	    whole_archive_flag_spec='$convenience'
9871	  fi
9872	  archive_cmds_need_lc=yes
9873	  # This is similar to how AIX traditionally builds its shared libraries.
9874	  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'
9875	fi
9876      fi
9877      ;;
9878
9879    amigaos*)
9880      case $host_cpu in
9881      powerpc)
9882            # see comment about AmigaOS4 .so support
9883            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9884            archive_expsym_cmds=''
9885        ;;
9886      m68k)
9887            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)'
9888            hardcode_libdir_flag_spec='-L$libdir'
9889            hardcode_minus_L=yes
9890        ;;
9891      esac
9892      ;;
9893
9894    bsdi[45]*)
9895      export_dynamic_flag_spec=-rdynamic
9896      ;;
9897
9898    cygwin* | mingw* | pw32* | cegcc*)
9899      # When not using gcc, we currently assume that we are using
9900      # Microsoft Visual C++.
9901      # hardcode_libdir_flag_spec is actually meaningless, as there is
9902      # no search path for DLLs.
9903      hardcode_libdir_flag_spec=' '
9904      allow_undefined_flag=unsupported
9905      # Tell ltmain to make .lib files, not .a files.
9906      libext=lib
9907      # Tell ltmain to make .dll files, not .so files.
9908      shrext_cmds=".dll"
9909      # FIXME: Setting linknames here is a bad hack.
9910      archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9911      # The linker will automatically build a .lib file if we build a DLL.
9912      old_archive_from_new_cmds='true'
9913      # FIXME: Should let the user specify the lib program.
9914      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9915      fix_srcfile_path='`cygpath -w "$srcfile"`'
9916      enable_shared_with_static_runtimes=yes
9917      ;;
9918
9919    darwin* | rhapsody*)
9920
9921
9922  archive_cmds_need_lc=no
9923  hardcode_direct=no
9924  hardcode_automatic=yes
9925  hardcode_shlibpath_var=unsupported
9926  if test "$lt_cv_ld_force_load" = "yes"; then
9927    whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9928  else
9929    whole_archive_flag_spec=''
9930  fi
9931  link_all_deplibs=yes
9932  allow_undefined_flag="$_lt_dar_allow_undefined"
9933  case $cc_basename in
9934     ifort*) _lt_dar_can_shared=yes ;;
9935     *) _lt_dar_can_shared=$GCC ;;
9936  esac
9937  if test "$_lt_dar_can_shared" = "yes"; then
9938    output_verbose_link_cmd=func_echo_all
9939    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9940    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9941    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}"
9942    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}"
9943
9944  else
9945  ld_shlibs=no
9946  fi
9947
9948      ;;
9949
9950    dgux*)
9951      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9952      hardcode_libdir_flag_spec='-L$libdir'
9953      hardcode_shlibpath_var=no
9954      ;;
9955
9956    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9957    # support.  Future versions do this automatically, but an explicit c++rt0.o
9958    # does not break anything, and helps significantly (at the cost of a little
9959    # extra space).
9960    freebsd2.2*)
9961      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9962      hardcode_libdir_flag_spec='-R$libdir'
9963      hardcode_direct=yes
9964      hardcode_shlibpath_var=no
9965      ;;
9966
9967    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9968    freebsd2.*)
9969      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9970      hardcode_direct=yes
9971      hardcode_minus_L=yes
9972      hardcode_shlibpath_var=no
9973      ;;
9974
9975    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9976    freebsd* | dragonfly*)
9977      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9978      hardcode_libdir_flag_spec='-R$libdir'
9979      hardcode_direct=yes
9980      hardcode_shlibpath_var=no
9981      ;;
9982
9983    hpux9*)
9984      if test "$GCC" = yes; then
9985	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'
9986      else
9987	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'
9988      fi
9989      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9990      hardcode_libdir_separator=:
9991      hardcode_direct=yes
9992
9993      # hardcode_minus_L: Not really in the search PATH,
9994      # but as the default location of the library.
9995      hardcode_minus_L=yes
9996      export_dynamic_flag_spec='${wl}-E'
9997      ;;
9998
9999    hpux10*)
10000      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10001	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10002      else
10003	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10004      fi
10005      if test "$with_gnu_ld" = no; then
10006	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10007	hardcode_libdir_flag_spec_ld='+b $libdir'
10008	hardcode_libdir_separator=:
10009	hardcode_direct=yes
10010	hardcode_direct_absolute=yes
10011	export_dynamic_flag_spec='${wl}-E'
10012	# hardcode_minus_L: Not really in the search PATH,
10013	# but as the default location of the library.
10014	hardcode_minus_L=yes
10015      fi
10016      ;;
10017
10018    hpux11*)
10019      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10020	case $host_cpu in
10021	hppa*64*)
10022	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10023	  ;;
10024	ia64*)
10025	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10026	  ;;
10027	*)
10028	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10029	  ;;
10030	esac
10031      else
10032	case $host_cpu in
10033	hppa*64*)
10034	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10035	  ;;
10036	ia64*)
10037	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10038	  ;;
10039	*)
10040
10041	  # Older versions of the 11.00 compiler do not understand -b yet
10042	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10043	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10044$as_echo_n "checking if $CC understands -b... " >&6; }
10045if ${lt_cv_prog_compiler__b+:} false; then :
10046  $as_echo_n "(cached) " >&6
10047else
10048  lt_cv_prog_compiler__b=no
10049   save_LDFLAGS="$LDFLAGS"
10050   LDFLAGS="$LDFLAGS -b"
10051   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10052   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10053     # The linker can only warn and ignore the option if not recognized
10054     # So say no if there are warnings
10055     if test -s conftest.err; then
10056       # Append any errors to the config.log.
10057       cat conftest.err 1>&5
10058       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10059       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10060       if diff conftest.exp conftest.er2 >/dev/null; then
10061         lt_cv_prog_compiler__b=yes
10062       fi
10063     else
10064       lt_cv_prog_compiler__b=yes
10065     fi
10066   fi
10067   $RM -r conftest*
10068   LDFLAGS="$save_LDFLAGS"
10069
10070fi
10071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10072$as_echo "$lt_cv_prog_compiler__b" >&6; }
10073
10074if test x"$lt_cv_prog_compiler__b" = xyes; then
10075    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10076else
10077    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10078fi
10079
10080	  ;;
10081	esac
10082      fi
10083      if test "$with_gnu_ld" = no; then
10084	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10085	hardcode_libdir_separator=:
10086
10087	case $host_cpu in
10088	hppa*64*|ia64*)
10089	  hardcode_direct=no
10090	  hardcode_shlibpath_var=no
10091	  ;;
10092	*)
10093	  hardcode_direct=yes
10094	  hardcode_direct_absolute=yes
10095	  export_dynamic_flag_spec='${wl}-E'
10096
10097	  # hardcode_minus_L: Not really in the search PATH,
10098	  # but as the default location of the library.
10099	  hardcode_minus_L=yes
10100	  ;;
10101	esac
10102      fi
10103      ;;
10104
10105    irix5* | irix6* | nonstopux*)
10106      if test "$GCC" = yes; then
10107	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10108	# Try to use the -exported_symbol ld option, if it does not
10109	# work, assume that -exports_file does not work either and
10110	# implicitly export all symbols.
10111        save_LDFLAGS="$LDFLAGS"
10112        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10113        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10114/* end confdefs.h.  */
10115int foo(void) {}
10116_ACEOF
10117if ac_fn_c_try_link "$LINENO"; then :
10118  archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10119
10120fi
10121rm -f core conftest.err conftest.$ac_objext \
10122    conftest$ac_exeext conftest.$ac_ext
10123        LDFLAGS="$save_LDFLAGS"
10124      else
10125	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10126	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10127      fi
10128      archive_cmds_need_lc='no'
10129      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10130      hardcode_libdir_separator=:
10131      inherit_rpath=yes
10132      link_all_deplibs=yes
10133      ;;
10134
10135    netbsd*)
10136      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10137	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10138      else
10139	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10140      fi
10141      hardcode_libdir_flag_spec='-R$libdir'
10142      hardcode_direct=yes
10143      hardcode_shlibpath_var=no
10144      ;;
10145
10146    newsos6)
10147      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10148      hardcode_direct=yes
10149      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10150      hardcode_libdir_separator=:
10151      hardcode_shlibpath_var=no
10152      ;;
10153
10154    *nto* | *qnx*)
10155      ;;
10156
10157    openbsd*)
10158      if test -f /usr/libexec/ld.so; then
10159	hardcode_direct=yes
10160	hardcode_shlibpath_var=no
10161	hardcode_direct_absolute=yes
10162	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10163	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10164	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10165	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10166	  export_dynamic_flag_spec='${wl}-E'
10167	else
10168	  case $host_os in
10169	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10170	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10171	     hardcode_libdir_flag_spec='-R$libdir'
10172	     ;;
10173	   *)
10174	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10175	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10176	     ;;
10177	  esac
10178	fi
10179      else
10180	ld_shlibs=no
10181      fi
10182      ;;
10183
10184    os2*)
10185      hardcode_libdir_flag_spec='-L$libdir'
10186      hardcode_minus_L=yes
10187      allow_undefined_flag=unsupported
10188      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'
10189      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10190      ;;
10191
10192    osf3*)
10193      if test "$GCC" = yes; then
10194	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10195	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10196      else
10197	allow_undefined_flag=' -expect_unresolved \*'
10198	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10199      fi
10200      archive_cmds_need_lc='no'
10201      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10202      hardcode_libdir_separator=:
10203      ;;
10204
10205    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10206      if test "$GCC" = yes; then
10207	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10208	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10209	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10210      else
10211	allow_undefined_flag=' -expect_unresolved \*'
10212	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10213	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~
10214	$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10215
10216	# Both c and cxx compiler support -rpath directly
10217	hardcode_libdir_flag_spec='-rpath $libdir'
10218      fi
10219      archive_cmds_need_lc='no'
10220      hardcode_libdir_separator=:
10221      ;;
10222
10223    solaris*)
10224      no_undefined_flag=' -z defs'
10225      if test "$GCC" = yes; then
10226	wlarc='${wl}'
10227	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10228	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10229	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10230      else
10231	case `$CC -V 2>&1` in
10232	*"Compilers 5.0"*)
10233	  wlarc=''
10234	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10235	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10236	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10237	  ;;
10238	*)
10239	  wlarc='${wl}'
10240	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10241	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10242	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10243	  ;;
10244	esac
10245      fi
10246      hardcode_libdir_flag_spec='-R$libdir'
10247      hardcode_shlibpath_var=no
10248      case $host_os in
10249      solaris2.[0-5] | solaris2.[0-5].*) ;;
10250      *)
10251	# The compiler driver will combine and reorder linker options,
10252	# but understands `-z linker_flag'.  GCC discards it without `$wl',
10253	# but is careful enough not to reorder.
10254	# Supported since Solaris 2.6 (maybe 2.5.1?)
10255	if test "$GCC" = yes; then
10256	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10257	else
10258	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10259	fi
10260	;;
10261      esac
10262      link_all_deplibs=yes
10263      ;;
10264
10265    sunos4*)
10266      if test "x$host_vendor" = xsequent; then
10267	# Use $CC to link under sequent, because it throws in some extra .o
10268	# files that make .init and .fini sections work.
10269	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10270      else
10271	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10272      fi
10273      hardcode_libdir_flag_spec='-L$libdir'
10274      hardcode_direct=yes
10275      hardcode_minus_L=yes
10276      hardcode_shlibpath_var=no
10277      ;;
10278
10279    sysv4)
10280      case $host_vendor in
10281	sni)
10282	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10283	  hardcode_direct=yes # is this really true???
10284	;;
10285	siemens)
10286	  ## LD is ld it makes a PLAMLIB
10287	  ## CC just makes a GrossModule.
10288	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10289	  reload_cmds='$CC -r -o $output$reload_objs'
10290	  hardcode_direct=no
10291        ;;
10292	motorola)
10293	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10294	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10295	;;
10296      esac
10297      runpath_var='LD_RUN_PATH'
10298      hardcode_shlibpath_var=no
10299      ;;
10300
10301    sysv4.3*)
10302      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10303      hardcode_shlibpath_var=no
10304      export_dynamic_flag_spec='-Bexport'
10305      ;;
10306
10307    sysv4*MP*)
10308      if test -d /usr/nec; then
10309	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10310	hardcode_shlibpath_var=no
10311	runpath_var=LD_RUN_PATH
10312	hardcode_runpath_var=yes
10313	ld_shlibs=yes
10314      fi
10315      ;;
10316
10317    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10318      no_undefined_flag='${wl}-z,text'
10319      archive_cmds_need_lc=no
10320      hardcode_shlibpath_var=no
10321      runpath_var='LD_RUN_PATH'
10322
10323      if test "$GCC" = yes; then
10324	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10325	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10326      else
10327	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10328	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10329      fi
10330      ;;
10331
10332    sysv5* | sco3.2v5* | sco5v6*)
10333      # Note: We can NOT use -z defs as we might desire, because we do not
10334      # link with -lc, and that would cause any symbols used from libc to
10335      # always be unresolved, which means just about no library would
10336      # ever link correctly.  If we're not using GNU ld we use -z text
10337      # though, which does catch some bad symbols but isn't as heavy-handed
10338      # as -z defs.
10339      no_undefined_flag='${wl}-z,text'
10340      allow_undefined_flag='${wl}-z,nodefs'
10341      archive_cmds_need_lc=no
10342      hardcode_shlibpath_var=no
10343      hardcode_libdir_flag_spec='${wl}-R,$libdir'
10344      hardcode_libdir_separator=':'
10345      link_all_deplibs=yes
10346      export_dynamic_flag_spec='${wl}-Bexport'
10347      runpath_var='LD_RUN_PATH'
10348
10349      if test "$GCC" = yes; then
10350	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10351	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10352      else
10353	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10354	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10355      fi
10356      ;;
10357
10358    uts4*)
10359      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10360      hardcode_libdir_flag_spec='-L$libdir'
10361      hardcode_shlibpath_var=no
10362      ;;
10363
10364    *)
10365      ld_shlibs=no
10366      ;;
10367    esac
10368
10369    if test x$host_vendor = xsni; then
10370      case $host in
10371      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10372	export_dynamic_flag_spec='${wl}-Blargedynsym'
10373	;;
10374      esac
10375    fi
10376  fi
10377
10378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10379$as_echo "$ld_shlibs" >&6; }
10380test "$ld_shlibs" = no && can_build_shared=no
10381
10382with_gnu_ld=$with_gnu_ld
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398#
10399# Do we need to explicitly link libc?
10400#
10401case "x$archive_cmds_need_lc" in
10402x|xyes)
10403  # Assume -lc should be added
10404  archive_cmds_need_lc=yes
10405
10406  if test "$enable_shared" = yes && test "$GCC" = yes; then
10407    case $archive_cmds in
10408    *'~'*)
10409      # FIXME: we may have to deal with multi-command sequences.
10410      ;;
10411    '$CC '*)
10412      # Test whether the compiler implicitly links with -lc since on some
10413      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10414      # to ld, don't add -lc before -lgcc.
10415      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10416$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10417if ${lt_cv_archive_cmds_need_lc+:} false; then :
10418  $as_echo_n "(cached) " >&6
10419else
10420  $RM conftest*
10421	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10422
10423	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10424  (eval $ac_compile) 2>&5
10425  ac_status=$?
10426  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10427  test $ac_status = 0; } 2>conftest.err; then
10428	  soname=conftest
10429	  lib=conftest
10430	  libobjs=conftest.$ac_objext
10431	  deplibs=
10432	  wl=$lt_prog_compiler_wl
10433	  pic_flag=$lt_prog_compiler_pic
10434	  compiler_flags=-v
10435	  linker_flags=-v
10436	  verstring=
10437	  output_objdir=.
10438	  libname=conftest
10439	  lt_save_allow_undefined_flag=$allow_undefined_flag
10440	  allow_undefined_flag=
10441	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10442  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10443  ac_status=$?
10444  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10445  test $ac_status = 0; }
10446	  then
10447	    lt_cv_archive_cmds_need_lc=no
10448	  else
10449	    lt_cv_archive_cmds_need_lc=yes
10450	  fi
10451	  allow_undefined_flag=$lt_save_allow_undefined_flag
10452	else
10453	  cat conftest.err 1>&5
10454	fi
10455	$RM conftest*
10456
10457fi
10458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10459$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10460      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10461      ;;
10462    esac
10463  fi
10464  ;;
10465esac
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10624$as_echo_n "checking dynamic linker characteristics... " >&6; }
10625
10626if test "$GCC" = yes; then
10627  case $host_os in
10628    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10629    *) lt_awk_arg="/^libraries:/" ;;
10630  esac
10631  case $host_os in
10632    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10633    *) lt_sed_strip_eq="s,=/,/,g" ;;
10634  esac
10635  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10636  case $lt_search_path_spec in
10637  *\;*)
10638    # if the path contains ";" then we assume it to be the separator
10639    # otherwise default to the standard path separator (i.e. ":") - it is
10640    # assumed that no part of a normal pathname contains ";" but that should
10641    # okay in the real world where ";" in dirpaths is itself problematic.
10642    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10643    ;;
10644  *)
10645    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10646    ;;
10647  esac
10648  # Ok, now we have the path, separated by spaces, we can step through it
10649  # and add multilib dir if necessary.
10650  lt_tmp_lt_search_path_spec=
10651  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10652  for lt_sys_path in $lt_search_path_spec; do
10653    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10654      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10655    else
10656      test -d "$lt_sys_path" && \
10657	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10658    fi
10659  done
10660  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10661BEGIN {RS=" "; FS="/|\n";} {
10662  lt_foo="";
10663  lt_count=0;
10664  for (lt_i = NF; lt_i > 0; lt_i--) {
10665    if ($lt_i != "" && $lt_i != ".") {
10666      if ($lt_i == "..") {
10667        lt_count++;
10668      } else {
10669        if (lt_count == 0) {
10670          lt_foo="/" $lt_i lt_foo;
10671        } else {
10672          lt_count--;
10673        }
10674      }
10675    }
10676  }
10677  if (lt_foo != "") { lt_freq[lt_foo]++; }
10678  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10679}'`
10680  # AWK program above erroneously prepends '/' to C:/dos/paths
10681  # for these hosts.
10682  case $host_os in
10683    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10684      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10685  esac
10686  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10687else
10688  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10689fi
10690library_names_spec=
10691libname_spec='lib$name'
10692soname_spec=
10693shrext_cmds=".so"
10694postinstall_cmds=
10695postuninstall_cmds=
10696finish_cmds=
10697finish_eval=
10698shlibpath_var=
10699shlibpath_overrides_runpath=unknown
10700version_type=none
10701dynamic_linker="$host_os ld.so"
10702sys_lib_dlsearch_path_spec="/lib /usr/lib"
10703need_lib_prefix=unknown
10704hardcode_into_libs=no
10705
10706# when you set need_version to no, make sure it does not cause -set_version
10707# flags to be left without arguments
10708need_version=unknown
10709
10710case $host_os in
10711aix3*)
10712  version_type=linux
10713  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10714  shlibpath_var=LIBPATH
10715
10716  # AIX 3 has no versioning support, so we append a major version to the name.
10717  soname_spec='${libname}${release}${shared_ext}$major'
10718  ;;
10719
10720aix[4-9]*)
10721  version_type=linux
10722  need_lib_prefix=no
10723  need_version=no
10724  hardcode_into_libs=yes
10725  if test "$host_cpu" = ia64; then
10726    # AIX 5 supports IA64
10727    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10728    shlibpath_var=LD_LIBRARY_PATH
10729  else
10730    # With GCC up to 2.95.x, collect2 would create an import file
10731    # for dependence libraries.  The import file would start with
10732    # the line `#! .'.  This would cause the generated library to
10733    # depend on `.', always an invalid library.  This was fixed in
10734    # development snapshots of GCC prior to 3.0.
10735    case $host_os in
10736      aix4 | aix4.[01] | aix4.[01].*)
10737      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10738	   echo ' yes '
10739	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10740	:
10741      else
10742	can_build_shared=no
10743      fi
10744      ;;
10745    esac
10746    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10747    # soname into executable. Probably we can add versioning support to
10748    # collect2, so additional links can be useful in future.
10749    if test "$aix_use_runtimelinking" = yes; then
10750      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10751      # instead of lib<name>.a to let people know that these are not
10752      # typical AIX shared libraries.
10753      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10754    else
10755      # We preserve .a as extension for shared libraries through AIX4.2
10756      # and later when we are not doing run time linking.
10757      library_names_spec='${libname}${release}.a $libname.a'
10758      soname_spec='${libname}${release}${shared_ext}$major'
10759    fi
10760    shlibpath_var=LIBPATH
10761  fi
10762  ;;
10763
10764amigaos*)
10765  case $host_cpu in
10766  powerpc)
10767    # Since July 2007 AmigaOS4 officially supports .so libraries.
10768    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10769    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10770    ;;
10771  m68k)
10772    library_names_spec='$libname.ixlibrary $libname.a'
10773    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10774    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10775    ;;
10776  esac
10777  ;;
10778
10779beos*)
10780  library_names_spec='${libname}${shared_ext}'
10781  dynamic_linker="$host_os ld.so"
10782  shlibpath_var=LIBRARY_PATH
10783  ;;
10784
10785bsdi[45]*)
10786  version_type=linux
10787  need_version=no
10788  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10789  soname_spec='${libname}${release}${shared_ext}$major'
10790  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10791  shlibpath_var=LD_LIBRARY_PATH
10792  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10793  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10794  # the default ld.so.conf also contains /usr/contrib/lib and
10795  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10796  # libtool to hard-code these into programs
10797  ;;
10798
10799cygwin* | mingw* | pw32* | cegcc*)
10800  version_type=windows
10801  shrext_cmds=".dll"
10802  need_version=no
10803  need_lib_prefix=no
10804
10805  case $GCC,$host_os in
10806  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10807    library_names_spec='$libname.dll.a'
10808    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10809    postinstall_cmds='base_file=`basename \${file}`~
10810      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10811      dldir=$destdir/`dirname \$dlpath`~
10812      test -d \$dldir || mkdir -p \$dldir~
10813      $install_prog $dir/$dlname \$dldir/$dlname~
10814      chmod a+x \$dldir/$dlname~
10815      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10816        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10817      fi'
10818    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10819      dlpath=$dir/\$dldll~
10820       $RM \$dlpath'
10821    shlibpath_overrides_runpath=yes
10822
10823    case $host_os in
10824    cygwin*)
10825      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10826      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10827
10828      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10829      ;;
10830    mingw* | cegcc*)
10831      # MinGW DLLs use traditional 'lib' prefix
10832      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10833      ;;
10834    pw32*)
10835      # pw32 DLLs use 'pw' prefix rather than 'lib'
10836      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10837      ;;
10838    esac
10839    ;;
10840
10841  *)
10842    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10843    ;;
10844  esac
10845  dynamic_linker='Win32 ld.exe'
10846  # FIXME: first we should search . and the directory the executable is in
10847  shlibpath_var=PATH
10848  ;;
10849
10850darwin* | rhapsody*)
10851  dynamic_linker="$host_os dyld"
10852  version_type=darwin
10853  need_lib_prefix=no
10854  need_version=no
10855  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10856  soname_spec='${libname}${release}${major}$shared_ext'
10857  shlibpath_overrides_runpath=yes
10858  shlibpath_var=DYLD_LIBRARY_PATH
10859  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10860
10861  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10862  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10863  ;;
10864
10865dgux*)
10866  version_type=linux
10867  need_lib_prefix=no
10868  need_version=no
10869  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10870  soname_spec='${libname}${release}${shared_ext}$major'
10871  shlibpath_var=LD_LIBRARY_PATH
10872  ;;
10873
10874freebsd* | dragonfly*)
10875  # DragonFly does not have aout.  When/if they implement a new
10876  # versioning mechanism, adjust this.
10877  if test -x /usr/bin/objformat; then
10878    objformat=`/usr/bin/objformat`
10879  else
10880    case $host_os in
10881    freebsd[23].*) objformat=aout ;;
10882    *) objformat=elf ;;
10883    esac
10884  fi
10885  version_type=freebsd-$objformat
10886  case $version_type in
10887    freebsd-elf*)
10888      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10889      need_version=no
10890      need_lib_prefix=no
10891      ;;
10892    freebsd-*)
10893      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10894      need_version=yes
10895      ;;
10896  esac
10897  shlibpath_var=LD_LIBRARY_PATH
10898  case $host_os in
10899  freebsd2.*)
10900    shlibpath_overrides_runpath=yes
10901    ;;
10902  freebsd3.[01]* | freebsdelf3.[01]*)
10903    shlibpath_overrides_runpath=yes
10904    hardcode_into_libs=yes
10905    ;;
10906  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10907  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10908    shlibpath_overrides_runpath=no
10909    hardcode_into_libs=yes
10910    ;;
10911  *) # from 4.6 on, and DragonFly
10912    shlibpath_overrides_runpath=yes
10913    hardcode_into_libs=yes
10914    ;;
10915  esac
10916  ;;
10917
10918gnu*)
10919  version_type=linux
10920  need_lib_prefix=no
10921  need_version=no
10922  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10923  soname_spec='${libname}${release}${shared_ext}$major'
10924  shlibpath_var=LD_LIBRARY_PATH
10925  hardcode_into_libs=yes
10926  ;;
10927
10928haiku*)
10929  version_type=linux
10930  need_lib_prefix=no
10931  need_version=no
10932  dynamic_linker="$host_os runtime_loader"
10933  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10934  soname_spec='${libname}${release}${shared_ext}$major'
10935  shlibpath_var=LIBRARY_PATH
10936  shlibpath_overrides_runpath=yes
10937  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10938  hardcode_into_libs=yes
10939  ;;
10940
10941hpux9* | hpux10* | hpux11*)
10942  # Give a soname corresponding to the major version so that dld.sl refuses to
10943  # link against other versions.
10944  version_type=sunos
10945  need_lib_prefix=no
10946  need_version=no
10947  case $host_cpu in
10948  ia64*)
10949    shrext_cmds='.so'
10950    hardcode_into_libs=yes
10951    dynamic_linker="$host_os dld.so"
10952    shlibpath_var=LD_LIBRARY_PATH
10953    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10954    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10955    soname_spec='${libname}${release}${shared_ext}$major'
10956    if test "X$HPUX_IA64_MODE" = X32; then
10957      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10958    else
10959      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10960    fi
10961    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10962    ;;
10963  hppa*64*)
10964    shrext_cmds='.sl'
10965    hardcode_into_libs=yes
10966    dynamic_linker="$host_os dld.sl"
10967    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10968    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10969    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10970    soname_spec='${libname}${release}${shared_ext}$major'
10971    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10972    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10973    ;;
10974  *)
10975    shrext_cmds='.sl'
10976    dynamic_linker="$host_os dld.sl"
10977    shlibpath_var=SHLIB_PATH
10978    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10979    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10980    soname_spec='${libname}${release}${shared_ext}$major'
10981    ;;
10982  esac
10983  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10984  postinstall_cmds='chmod 555 $lib'
10985  # or fails outright, so override atomically:
10986  install_override_mode=555
10987  ;;
10988
10989interix[3-9]*)
10990  version_type=linux
10991  need_lib_prefix=no
10992  need_version=no
10993  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10994  soname_spec='${libname}${release}${shared_ext}$major'
10995  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10996  shlibpath_var=LD_LIBRARY_PATH
10997  shlibpath_overrides_runpath=no
10998  hardcode_into_libs=yes
10999  ;;
11000
11001irix5* | irix6* | nonstopux*)
11002  case $host_os in
11003    nonstopux*) version_type=nonstopux ;;
11004    *)
11005	if test "$lt_cv_prog_gnu_ld" = yes; then
11006		version_type=linux
11007	else
11008		version_type=irix
11009	fi ;;
11010  esac
11011  need_lib_prefix=no
11012  need_version=no
11013  soname_spec='${libname}${release}${shared_ext}$major'
11014  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11015  case $host_os in
11016  irix5* | nonstopux*)
11017    libsuff= shlibsuff=
11018    ;;
11019  *)
11020    case $LD in # libtool.m4 will add one of these switches to LD
11021    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11022      libsuff= shlibsuff= libmagic=32-bit;;
11023    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11024      libsuff=32 shlibsuff=N32 libmagic=N32;;
11025    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11026      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11027    *) libsuff= shlibsuff= libmagic=never-match;;
11028    esac
11029    ;;
11030  esac
11031  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11032  shlibpath_overrides_runpath=no
11033  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11034  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11035  hardcode_into_libs=yes
11036  ;;
11037
11038# No shared lib support for Linux oldld, aout, or coff.
11039linux*oldld* | linux*aout* | linux*coff*)
11040  dynamic_linker=no
11041  ;;
11042
11043# This must be Linux ELF.
11044linux* | k*bsd*-gnu | kopensolaris*-gnu)
11045  version_type=linux
11046  need_lib_prefix=no
11047  need_version=no
11048  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11049  soname_spec='${libname}${release}${shared_ext}$major'
11050  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11051  shlibpath_var=LD_LIBRARY_PATH
11052  shlibpath_overrides_runpath=no
11053
11054  # Some binutils ld are patched to set DT_RUNPATH
11055  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11056  $as_echo_n "(cached) " >&6
11057else
11058  lt_cv_shlibpath_overrides_runpath=no
11059    save_LDFLAGS=$LDFLAGS
11060    save_libdir=$libdir
11061    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11062	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11063    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11064/* end confdefs.h.  */
11065
11066int
11067main ()
11068{
11069
11070  ;
11071  return 0;
11072}
11073_ACEOF
11074if ac_fn_c_try_link "$LINENO"; then :
11075  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11076  lt_cv_shlibpath_overrides_runpath=yes
11077fi
11078fi
11079rm -f core conftest.err conftest.$ac_objext \
11080    conftest$ac_exeext conftest.$ac_ext
11081    LDFLAGS=$save_LDFLAGS
11082    libdir=$save_libdir
11083
11084fi
11085
11086  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11087
11088  # This implies no fast_install, which is unacceptable.
11089  # Some rework will be needed to allow for fast_install
11090  # before this can be enabled.
11091  hardcode_into_libs=yes
11092
11093  # Append ld.so.conf contents to the search path
11094  if test -f /etc/ld.so.conf; then
11095    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
11096    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11097  fi
11098
11099  # We used to test for /lib/ld.so.1 and disable shared libraries on
11100  # powerpc, because MkLinux only supported shared libraries with the
11101  # GNU dynamic linker.  Since this was broken with cross compilers,
11102  # most powerpc-linux boxes support dynamic linking these days and
11103  # people can always --disable-shared, the test was removed, and we
11104  # assume the GNU/Linux dynamic linker is in use.
11105  dynamic_linker='GNU/Linux ld.so'
11106  ;;
11107
11108netbsd*)
11109  version_type=sunos
11110  need_lib_prefix=no
11111  need_version=no
11112  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11113    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11114    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11115    dynamic_linker='NetBSD (a.out) ld.so'
11116  else
11117    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11118    soname_spec='${libname}${release}${shared_ext}$major'
11119    dynamic_linker='NetBSD ld.elf_so'
11120  fi
11121  shlibpath_var=LD_LIBRARY_PATH
11122  shlibpath_overrides_runpath=yes
11123  hardcode_into_libs=yes
11124  ;;
11125
11126newsos6)
11127  version_type=linux
11128  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11129  shlibpath_var=LD_LIBRARY_PATH
11130  shlibpath_overrides_runpath=yes
11131  ;;
11132
11133*nto* | *qnx*)
11134  version_type=qnx
11135  need_lib_prefix=no
11136  need_version=no
11137  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11138  soname_spec='${libname}${release}${shared_ext}$major'
11139  shlibpath_var=LD_LIBRARY_PATH
11140  shlibpath_overrides_runpath=no
11141  hardcode_into_libs=yes
11142  dynamic_linker='ldqnx.so'
11143  ;;
11144
11145openbsd*)
11146  version_type=sunos
11147  sys_lib_dlsearch_path_spec="/usr/lib"
11148  need_lib_prefix=no
11149  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11150  case $host_os in
11151    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
11152    *)				need_version=no  ;;
11153  esac
11154  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11155  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11156  shlibpath_var=LD_LIBRARY_PATH
11157  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11158    case $host_os in
11159      openbsd2.[89] | openbsd2.[89].*)
11160	shlibpath_overrides_runpath=no
11161	;;
11162      *)
11163	shlibpath_overrides_runpath=yes
11164	;;
11165      esac
11166  else
11167    shlibpath_overrides_runpath=yes
11168  fi
11169  ;;
11170
11171os2*)
11172  libname_spec='$name'
11173  shrext_cmds=".dll"
11174  need_lib_prefix=no
11175  library_names_spec='$libname${shared_ext} $libname.a'
11176  dynamic_linker='OS/2 ld.exe'
11177  shlibpath_var=LIBPATH
11178  ;;
11179
11180osf3* | osf4* | osf5*)
11181  version_type=osf
11182  need_lib_prefix=no
11183  need_version=no
11184  soname_spec='${libname}${release}${shared_ext}$major'
11185  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11186  shlibpath_var=LD_LIBRARY_PATH
11187  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11188  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11189  ;;
11190
11191rdos*)
11192  dynamic_linker=no
11193  ;;
11194
11195solaris*)
11196  version_type=linux
11197  need_lib_prefix=no
11198  need_version=no
11199  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11200  soname_spec='${libname}${release}${shared_ext}$major'
11201  shlibpath_var=LD_LIBRARY_PATH
11202  shlibpath_overrides_runpath=yes
11203  hardcode_into_libs=yes
11204  # ldd complains unless libraries are executable
11205  postinstall_cmds='chmod +x $lib'
11206  ;;
11207
11208sunos4*)
11209  version_type=sunos
11210  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11211  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11212  shlibpath_var=LD_LIBRARY_PATH
11213  shlibpath_overrides_runpath=yes
11214  if test "$with_gnu_ld" = yes; then
11215    need_lib_prefix=no
11216  fi
11217  need_version=yes
11218  ;;
11219
11220sysv4 | sysv4.3*)
11221  version_type=linux
11222  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11223  soname_spec='${libname}${release}${shared_ext}$major'
11224  shlibpath_var=LD_LIBRARY_PATH
11225  case $host_vendor in
11226    sni)
11227      shlibpath_overrides_runpath=no
11228      need_lib_prefix=no
11229      runpath_var=LD_RUN_PATH
11230      ;;
11231    siemens)
11232      need_lib_prefix=no
11233      ;;
11234    motorola)
11235      need_lib_prefix=no
11236      need_version=no
11237      shlibpath_overrides_runpath=no
11238      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11239      ;;
11240  esac
11241  ;;
11242
11243sysv4*MP*)
11244  if test -d /usr/nec ;then
11245    version_type=linux
11246    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11247    soname_spec='$libname${shared_ext}.$major'
11248    shlibpath_var=LD_LIBRARY_PATH
11249  fi
11250  ;;
11251
11252sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11253  version_type=freebsd-elf
11254  need_lib_prefix=no
11255  need_version=no
11256  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11257  soname_spec='${libname}${release}${shared_ext}$major'
11258  shlibpath_var=LD_LIBRARY_PATH
11259  shlibpath_overrides_runpath=yes
11260  hardcode_into_libs=yes
11261  if test "$with_gnu_ld" = yes; then
11262    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11263  else
11264    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11265    case $host_os in
11266      sco3.2v5*)
11267        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11268	;;
11269    esac
11270  fi
11271  sys_lib_dlsearch_path_spec='/usr/lib'
11272  ;;
11273
11274tpf*)
11275  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11276  version_type=linux
11277  need_lib_prefix=no
11278  need_version=no
11279  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11280  shlibpath_var=LD_LIBRARY_PATH
11281  shlibpath_overrides_runpath=no
11282  hardcode_into_libs=yes
11283  ;;
11284
11285uts4*)
11286  version_type=linux
11287  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11288  soname_spec='${libname}${release}${shared_ext}$major'
11289  shlibpath_var=LD_LIBRARY_PATH
11290  ;;
11291
11292*)
11293  dynamic_linker=no
11294  ;;
11295esac
11296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11297$as_echo "$dynamic_linker" >&6; }
11298test "$dynamic_linker" = no && can_build_shared=no
11299
11300variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11301if test "$GCC" = yes; then
11302  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11303fi
11304
11305if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11306  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11307fi
11308if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11309  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11310fi
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11404$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11405hardcode_action=
11406if test -n "$hardcode_libdir_flag_spec" ||
11407   test -n "$runpath_var" ||
11408   test "X$hardcode_automatic" = "Xyes" ; then
11409
11410  # We can hardcode non-existent directories.
11411  if test "$hardcode_direct" != no &&
11412     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11413     # have to relink, otherwise we might link with an installed library
11414     # when we should be linking with a yet-to-be-installed one
11415     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11416     test "$hardcode_minus_L" != no; then
11417    # Linking always hardcodes the temporary library directory.
11418    hardcode_action=relink
11419  else
11420    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11421    hardcode_action=immediate
11422  fi
11423else
11424  # We cannot hardcode anything, or else we can only hardcode existing
11425  # directories.
11426  hardcode_action=unsupported
11427fi
11428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11429$as_echo "$hardcode_action" >&6; }
11430
11431if test "$hardcode_action" = relink ||
11432   test "$inherit_rpath" = yes; then
11433  # Fast installation is not supported
11434  enable_fast_install=no
11435elif test "$shlibpath_overrides_runpath" = yes ||
11436     test "$enable_shared" = no; then
11437  # Fast installation is not necessary
11438  enable_fast_install=needless
11439fi
11440
11441
11442
11443
11444
11445
11446  if test "x$enable_dlopen" != xyes; then
11447  enable_dlopen=unknown
11448  enable_dlopen_self=unknown
11449  enable_dlopen_self_static=unknown
11450else
11451  lt_cv_dlopen=no
11452  lt_cv_dlopen_libs=
11453
11454  case $host_os in
11455  beos*)
11456    lt_cv_dlopen="load_add_on"
11457    lt_cv_dlopen_libs=
11458    lt_cv_dlopen_self=yes
11459    ;;
11460
11461  mingw* | pw32* | cegcc*)
11462    lt_cv_dlopen="LoadLibrary"
11463    lt_cv_dlopen_libs=
11464    ;;
11465
11466  cygwin*)
11467    lt_cv_dlopen="dlopen"
11468    lt_cv_dlopen_libs=
11469    ;;
11470
11471  darwin*)
11472  # if libdl is installed we need to link against it
11473    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11474$as_echo_n "checking for dlopen in -ldl... " >&6; }
11475if ${ac_cv_lib_dl_dlopen+:} false; then :
11476  $as_echo_n "(cached) " >&6
11477else
11478  ac_check_lib_save_LIBS=$LIBS
11479LIBS="-ldl  $LIBS"
11480cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11481/* end confdefs.h.  */
11482
11483/* Override any GCC internal prototype to avoid an error.
11484   Use char because int might match the return type of a GCC
11485   builtin and then its argument prototype would still apply.  */
11486#ifdef __cplusplus
11487extern "C"
11488#endif
11489char dlopen ();
11490int
11491main ()
11492{
11493return dlopen ();
11494  ;
11495  return 0;
11496}
11497_ACEOF
11498if ac_fn_c_try_link "$LINENO"; then :
11499  ac_cv_lib_dl_dlopen=yes
11500else
11501  ac_cv_lib_dl_dlopen=no
11502fi
11503rm -f core conftest.err conftest.$ac_objext \
11504    conftest$ac_exeext conftest.$ac_ext
11505LIBS=$ac_check_lib_save_LIBS
11506fi
11507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11508$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11509if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11510  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11511else
11512
11513    lt_cv_dlopen="dyld"
11514    lt_cv_dlopen_libs=
11515    lt_cv_dlopen_self=yes
11516
11517fi
11518
11519    ;;
11520
11521  *)
11522    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11523if test "x$ac_cv_func_shl_load" = xyes; then :
11524  lt_cv_dlopen="shl_load"
11525else
11526  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11527$as_echo_n "checking for shl_load in -ldld... " >&6; }
11528if ${ac_cv_lib_dld_shl_load+:} false; then :
11529  $as_echo_n "(cached) " >&6
11530else
11531  ac_check_lib_save_LIBS=$LIBS
11532LIBS="-ldld  $LIBS"
11533cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11534/* end confdefs.h.  */
11535
11536/* Override any GCC internal prototype to avoid an error.
11537   Use char because int might match the return type of a GCC
11538   builtin and then its argument prototype would still apply.  */
11539#ifdef __cplusplus
11540extern "C"
11541#endif
11542char shl_load ();
11543int
11544main ()
11545{
11546return shl_load ();
11547  ;
11548  return 0;
11549}
11550_ACEOF
11551if ac_fn_c_try_link "$LINENO"; then :
11552  ac_cv_lib_dld_shl_load=yes
11553else
11554  ac_cv_lib_dld_shl_load=no
11555fi
11556rm -f core conftest.err conftest.$ac_objext \
11557    conftest$ac_exeext conftest.$ac_ext
11558LIBS=$ac_check_lib_save_LIBS
11559fi
11560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11561$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11562if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11563  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11564else
11565  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11566if test "x$ac_cv_func_dlopen" = xyes; then :
11567  lt_cv_dlopen="dlopen"
11568else
11569  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11570$as_echo_n "checking for dlopen in -ldl... " >&6; }
11571if ${ac_cv_lib_dl_dlopen+:} false; then :
11572  $as_echo_n "(cached) " >&6
11573else
11574  ac_check_lib_save_LIBS=$LIBS
11575LIBS="-ldl  $LIBS"
11576cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11577/* end confdefs.h.  */
11578
11579/* Override any GCC internal prototype to avoid an error.
11580   Use char because int might match the return type of a GCC
11581   builtin and then its argument prototype would still apply.  */
11582#ifdef __cplusplus
11583extern "C"
11584#endif
11585char dlopen ();
11586int
11587main ()
11588{
11589return dlopen ();
11590  ;
11591  return 0;
11592}
11593_ACEOF
11594if ac_fn_c_try_link "$LINENO"; then :
11595  ac_cv_lib_dl_dlopen=yes
11596else
11597  ac_cv_lib_dl_dlopen=no
11598fi
11599rm -f core conftest.err conftest.$ac_objext \
11600    conftest$ac_exeext conftest.$ac_ext
11601LIBS=$ac_check_lib_save_LIBS
11602fi
11603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11604$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11605if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11606  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11607else
11608  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11609$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11610if ${ac_cv_lib_svld_dlopen+:} false; then :
11611  $as_echo_n "(cached) " >&6
11612else
11613  ac_check_lib_save_LIBS=$LIBS
11614LIBS="-lsvld  $LIBS"
11615cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11616/* end confdefs.h.  */
11617
11618/* Override any GCC internal prototype to avoid an error.
11619   Use char because int might match the return type of a GCC
11620   builtin and then its argument prototype would still apply.  */
11621#ifdef __cplusplus
11622extern "C"
11623#endif
11624char dlopen ();
11625int
11626main ()
11627{
11628return dlopen ();
11629  ;
11630  return 0;
11631}
11632_ACEOF
11633if ac_fn_c_try_link "$LINENO"; then :
11634  ac_cv_lib_svld_dlopen=yes
11635else
11636  ac_cv_lib_svld_dlopen=no
11637fi
11638rm -f core conftest.err conftest.$ac_objext \
11639    conftest$ac_exeext conftest.$ac_ext
11640LIBS=$ac_check_lib_save_LIBS
11641fi
11642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11643$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11644if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11645  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11646else
11647  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11648$as_echo_n "checking for dld_link in -ldld... " >&6; }
11649if ${ac_cv_lib_dld_dld_link+:} false; then :
11650  $as_echo_n "(cached) " >&6
11651else
11652  ac_check_lib_save_LIBS=$LIBS
11653LIBS="-ldld  $LIBS"
11654cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11655/* end confdefs.h.  */
11656
11657/* Override any GCC internal prototype to avoid an error.
11658   Use char because int might match the return type of a GCC
11659   builtin and then its argument prototype would still apply.  */
11660#ifdef __cplusplus
11661extern "C"
11662#endif
11663char dld_link ();
11664int
11665main ()
11666{
11667return dld_link ();
11668  ;
11669  return 0;
11670}
11671_ACEOF
11672if ac_fn_c_try_link "$LINENO"; then :
11673  ac_cv_lib_dld_dld_link=yes
11674else
11675  ac_cv_lib_dld_dld_link=no
11676fi
11677rm -f core conftest.err conftest.$ac_objext \
11678    conftest$ac_exeext conftest.$ac_ext
11679LIBS=$ac_check_lib_save_LIBS
11680fi
11681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11682$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11683if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11684  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11685fi
11686
11687
11688fi
11689
11690
11691fi
11692
11693
11694fi
11695
11696
11697fi
11698
11699
11700fi
11701
11702    ;;
11703  esac
11704
11705  if test "x$lt_cv_dlopen" != xno; then
11706    enable_dlopen=yes
11707  else
11708    enable_dlopen=no
11709  fi
11710
11711  case $lt_cv_dlopen in
11712  dlopen)
11713    save_CPPFLAGS="$CPPFLAGS"
11714    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11715
11716    save_LDFLAGS="$LDFLAGS"
11717    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11718
11719    save_LIBS="$LIBS"
11720    LIBS="$lt_cv_dlopen_libs $LIBS"
11721
11722    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11723$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11724if ${lt_cv_dlopen_self+:} false; then :
11725  $as_echo_n "(cached) " >&6
11726else
11727  	  if test "$cross_compiling" = yes; then :
11728  lt_cv_dlopen_self=cross
11729else
11730  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11731  lt_status=$lt_dlunknown
11732  cat > conftest.$ac_ext <<_LT_EOF
11733#line 11732 "configure"
11734#include "confdefs.h"
11735
11736#if HAVE_DLFCN_H
11737#include <dlfcn.h>
11738#endif
11739
11740#include <stdio.h>
11741
11742#ifdef RTLD_GLOBAL
11743#  define LT_DLGLOBAL		RTLD_GLOBAL
11744#else
11745#  ifdef DL_GLOBAL
11746#    define LT_DLGLOBAL		DL_GLOBAL
11747#  else
11748#    define LT_DLGLOBAL		0
11749#  endif
11750#endif
11751
11752/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11753   find out it does not work in some platform. */
11754#ifndef LT_DLLAZY_OR_NOW
11755#  ifdef RTLD_LAZY
11756#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11757#  else
11758#    ifdef DL_LAZY
11759#      define LT_DLLAZY_OR_NOW		DL_LAZY
11760#    else
11761#      ifdef RTLD_NOW
11762#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11763#      else
11764#        ifdef DL_NOW
11765#          define LT_DLLAZY_OR_NOW	DL_NOW
11766#        else
11767#          define LT_DLLAZY_OR_NOW	0
11768#        endif
11769#      endif
11770#    endif
11771#  endif
11772#endif
11773
11774/* When -fvisbility=hidden is used, assume the code has been annotated
11775   correspondingly for the symbols needed.  */
11776#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11777void fnord () __attribute__((visibility("default")));
11778#endif
11779
11780void fnord () { int i=42; }
11781int main ()
11782{
11783  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11784  int status = $lt_dlunknown;
11785
11786  if (self)
11787    {
11788      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11789      else
11790        {
11791	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11792          else puts (dlerror ());
11793	}
11794      /* dlclose (self); */
11795    }
11796  else
11797    puts (dlerror ());
11798
11799  return status;
11800}
11801_LT_EOF
11802  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11803  (eval $ac_link) 2>&5
11804  ac_status=$?
11805  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11806  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11807    (./conftest; exit; ) >&5 2>/dev/null
11808    lt_status=$?
11809    case x$lt_status in
11810      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11811      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11812      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11813    esac
11814  else :
11815    # compilation failed
11816    lt_cv_dlopen_self=no
11817  fi
11818fi
11819rm -fr conftest*
11820
11821
11822fi
11823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11824$as_echo "$lt_cv_dlopen_self" >&6; }
11825
11826    if test "x$lt_cv_dlopen_self" = xyes; then
11827      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11828      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11829$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11830if ${lt_cv_dlopen_self_static+:} false; then :
11831  $as_echo_n "(cached) " >&6
11832else
11833  	  if test "$cross_compiling" = yes; then :
11834  lt_cv_dlopen_self_static=cross
11835else
11836  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11837  lt_status=$lt_dlunknown
11838  cat > conftest.$ac_ext <<_LT_EOF
11839#line 11838 "configure"
11840#include "confdefs.h"
11841
11842#if HAVE_DLFCN_H
11843#include <dlfcn.h>
11844#endif
11845
11846#include <stdio.h>
11847
11848#ifdef RTLD_GLOBAL
11849#  define LT_DLGLOBAL		RTLD_GLOBAL
11850#else
11851#  ifdef DL_GLOBAL
11852#    define LT_DLGLOBAL		DL_GLOBAL
11853#  else
11854#    define LT_DLGLOBAL		0
11855#  endif
11856#endif
11857
11858/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11859   find out it does not work in some platform. */
11860#ifndef LT_DLLAZY_OR_NOW
11861#  ifdef RTLD_LAZY
11862#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11863#  else
11864#    ifdef DL_LAZY
11865#      define LT_DLLAZY_OR_NOW		DL_LAZY
11866#    else
11867#      ifdef RTLD_NOW
11868#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11869#      else
11870#        ifdef DL_NOW
11871#          define LT_DLLAZY_OR_NOW	DL_NOW
11872#        else
11873#          define LT_DLLAZY_OR_NOW	0
11874#        endif
11875#      endif
11876#    endif
11877#  endif
11878#endif
11879
11880/* When -fvisbility=hidden is used, assume the code has been annotated
11881   correspondingly for the symbols needed.  */
11882#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11883void fnord () __attribute__((visibility("default")));
11884#endif
11885
11886void fnord () { int i=42; }
11887int main ()
11888{
11889  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11890  int status = $lt_dlunknown;
11891
11892  if (self)
11893    {
11894      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11895      else
11896        {
11897	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11898          else puts (dlerror ());
11899	}
11900      /* dlclose (self); */
11901    }
11902  else
11903    puts (dlerror ());
11904
11905  return status;
11906}
11907_LT_EOF
11908  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11909  (eval $ac_link) 2>&5
11910  ac_status=$?
11911  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11912  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11913    (./conftest; exit; ) >&5 2>/dev/null
11914    lt_status=$?
11915    case x$lt_status in
11916      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11917      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11918      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11919    esac
11920  else :
11921    # compilation failed
11922    lt_cv_dlopen_self_static=no
11923  fi
11924fi
11925rm -fr conftest*
11926
11927
11928fi
11929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11930$as_echo "$lt_cv_dlopen_self_static" >&6; }
11931    fi
11932
11933    CPPFLAGS="$save_CPPFLAGS"
11934    LDFLAGS="$save_LDFLAGS"
11935    LIBS="$save_LIBS"
11936    ;;
11937  esac
11938
11939  case $lt_cv_dlopen_self in
11940  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11941  *) enable_dlopen_self=unknown ;;
11942  esac
11943
11944  case $lt_cv_dlopen_self_static in
11945  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11946  *) enable_dlopen_self_static=unknown ;;
11947  esac
11948fi
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966striplib=
11967old_striplib=
11968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11969$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11970if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11971  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11972  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11973  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11974$as_echo "yes" >&6; }
11975else
11976# FIXME - insert some real tests, host_os isn't really good enough
11977  case $host_os in
11978  darwin*)
11979    if test -n "$STRIP" ; then
11980      striplib="$STRIP -x"
11981      old_striplib="$STRIP -S"
11982      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11983$as_echo "yes" >&6; }
11984    else
11985      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11986$as_echo "no" >&6; }
11987    fi
11988    ;;
11989  *)
11990    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11991$as_echo "no" >&6; }
11992    ;;
11993  esac
11994fi
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007  # Report which library types will actually be built
12008  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12009$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12010  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12011$as_echo "$can_build_shared" >&6; }
12012
12013  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12014$as_echo_n "checking whether to build shared libraries... " >&6; }
12015  test "$can_build_shared" = "no" && enable_shared=no
12016
12017  # On AIX, shared libraries and static libraries use the same namespace, and
12018  # are all built from PIC.
12019  case $host_os in
12020  aix3*)
12021    test "$enable_shared" = yes && enable_static=no
12022    if test -n "$RANLIB"; then
12023      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12024      postinstall_cmds='$RANLIB $lib'
12025    fi
12026    ;;
12027
12028  aix[4-9]*)
12029    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12030      test "$enable_shared" = yes && enable_static=no
12031    fi
12032    ;;
12033  esac
12034  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12035$as_echo "$enable_shared" >&6; }
12036
12037  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12038$as_echo_n "checking whether to build static libraries... " >&6; }
12039  # Make sure either enable_shared or enable_static is yes.
12040  test "$enable_shared" = yes || enable_static=yes
12041  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12042$as_echo "$enable_static" >&6; }
12043
12044
12045
12046
12047fi
12048ac_ext=c
12049ac_cpp='$CPP $CPPFLAGS'
12050ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12051ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12052ac_compiler_gnu=$ac_cv_c_compiler_gnu
12053
12054CC="$lt_save_CC"
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065
12066
12067
12068        ac_config_commands="$ac_config_commands libtool"
12069
12070
12071
12072
12073# Only expand once:
12074
12075
12076
12077# AC_PLUGINS setting $plugins is called by ACX_LARGEFILE.
12078
12079# The tests for host and target for $enable_largefile require
12080# canonical names.
12081
12082
12083
12084# As the $enable_largefile decision depends on --enable-plugins we must set it
12085# even in directories otherwise not depending on the $plugins option.
12086
12087
12088  maybe_plugins=no
12089  for ac_header in dlfcn.h
12090do :
12091  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
12092"
12093if test "x$ac_cv_header_dlfcn_h" = xyes; then :
12094  cat >>confdefs.h <<_ACEOF
12095#define HAVE_DLFCN_H 1
12096_ACEOF
12097 maybe_plugins=yes
12098fi
12099
12100done
12101
12102  for ac_header in windows.h
12103do :
12104  ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
12105"
12106if test "x$ac_cv_header_windows_h" = xyes; then :
12107  cat >>confdefs.h <<_ACEOF
12108#define HAVE_WINDOWS_H 1
12109_ACEOF
12110 maybe_plugins=yes
12111fi
12112
12113done
12114
12115
12116  # Check whether --enable-plugins was given.
12117if test "${enable_plugins+set}" = set; then :
12118  enableval=$enable_plugins; case "${enableval}" in
12119      no) plugins=no ;;
12120      *) plugins=yes
12121         if test "$maybe_plugins" != "yes" ; then
12122	   as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
12123	 fi ;;
12124     esac
12125else
12126  plugins=$maybe_plugins
12127
12128fi
12129
12130  if test "$plugins" = "yes"; then
12131    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
12132$as_echo_n "checking for library containing dlsym... " >&6; }
12133if ${ac_cv_search_dlsym+:} false; then :
12134  $as_echo_n "(cached) " >&6
12135else
12136  ac_func_search_save_LIBS=$LIBS
12137cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12138/* end confdefs.h.  */
12139
12140/* Override any GCC internal prototype to avoid an error.
12141   Use char because int might match the return type of a GCC
12142   builtin and then its argument prototype would still apply.  */
12143#ifdef __cplusplus
12144extern "C"
12145#endif
12146char dlsym ();
12147int
12148main ()
12149{
12150return dlsym ();
12151  ;
12152  return 0;
12153}
12154_ACEOF
12155for ac_lib in '' dl; do
12156  if test -z "$ac_lib"; then
12157    ac_res="none required"
12158  else
12159    ac_res=-l$ac_lib
12160    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12161  fi
12162  if ac_fn_c_try_link "$LINENO"; then :
12163  ac_cv_search_dlsym=$ac_res
12164fi
12165rm -f core conftest.err conftest.$ac_objext \
12166    conftest$ac_exeext
12167  if ${ac_cv_search_dlsym+:} false; then :
12168  break
12169fi
12170done
12171if ${ac_cv_search_dlsym+:} false; then :
12172
12173else
12174  ac_cv_search_dlsym=no
12175fi
12176rm conftest.$ac_ext
12177LIBS=$ac_func_search_save_LIBS
12178fi
12179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
12180$as_echo "$ac_cv_search_dlsym" >&6; }
12181ac_res=$ac_cv_search_dlsym
12182if test "$ac_res" != no; then :
12183  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12184
12185fi
12186
12187  fi
12188
12189
12190case "${host}" in
12191  sparc-*-solaris*|i?86-*-solaris*)
12192    # On native 32-bit Solaris/SPARC and x86, large-file and procfs support
12193    # were mutually exclusive until Solaris 11.3.  Without procfs support,
12194    # the bfd/ elf module cannot provide certain routines such as
12195    # elfcore_write_prpsinfo or elfcore_write_prstatus.  So unless the user
12196    # explicitly requested large-file support through the
12197    # --enable-largefile switch, disable large-file support in favor of
12198    # procfs support.
12199    #
12200    # Check if <sys/procfs.h> is incompatible with large-file support.
12201    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12202/* end confdefs.h.  */
12203#define _FILE_OFFSET_BITS 64
12204#define _STRUCTURED_PROC 1
12205#include <sys/procfs.h>
12206int
12207main ()
12208{
12209
12210  ;
12211  return 0;
12212}
12213_ACEOF
12214if ac_fn_c_try_compile "$LINENO"; then :
12215  acx_cv_procfs_lfs=yes
12216else
12217  acx_cv_procfs_lfs=no
12218fi
12219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12220    #
12221    # Forcefully disable large-file support only if necessary, gdb is in
12222    # tree and enabled.
12223    if test "${target}" = "${host}" -a "$acx_cv_procfs_lfs" = no \
12224         -a -d $srcdir/../gdb -a "$enable_gdb" != no; then
12225      : ${enable_largefile="no"}
12226      if test "$plugins" = yes; then
12227	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
12228plugin support disabled; require large-file support which is incompatible with GDB." >&5
12229$as_echo "$as_me: WARNING:
12230plugin support disabled; require large-file support which is incompatible with GDB." >&2;}
12231	plugins=no
12232      fi
12233    fi
12234    #
12235    # Explicitly undef _FILE_OFFSET_BITS if enable_largefile=no for the
12236    # benefit of g++ 9+ which predefines it on Solaris.
12237    if test "$enable_largefile" = no; then
12238      LARGEFILE_CPPFLAGS="-U_FILE_OFFSET_BITS"
12239
12240    fi
12241    ;;
12242esac
12243
12244# Check whether --enable-largefile was given.
12245if test "${enable_largefile+set}" = set; then :
12246  enableval=$enable_largefile;
12247fi
12248
12249if test "$enable_largefile" != no; then
12250
12251  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
12252$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
12253if ${ac_cv_sys_largefile_CC+:} false; then :
12254  $as_echo_n "(cached) " >&6
12255else
12256  ac_cv_sys_largefile_CC=no
12257     if test "$GCC" != yes; then
12258       ac_save_CC=$CC
12259       while :; do
12260	 # IRIX 6.2 and later do not support large files by default,
12261	 # so use the C compiler's -n32 option if that helps.
12262	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12263/* end confdefs.h.  */
12264#include <sys/types.h>
12265 /* Check that off_t can represent 2**63 - 1 correctly.
12266    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12267    since some C++ compilers masquerading as C compilers
12268    incorrectly reject 9223372036854775807.  */
12269#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12270  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12271		       && LARGE_OFF_T % 2147483647 == 1)
12272		      ? 1 : -1];
12273int
12274main ()
12275{
12276
12277  ;
12278  return 0;
12279}
12280_ACEOF
12281	 if ac_fn_c_try_compile "$LINENO"; then :
12282  break
12283fi
12284rm -f core conftest.err conftest.$ac_objext
12285	 CC="$CC -n32"
12286	 if ac_fn_c_try_compile "$LINENO"; then :
12287  ac_cv_sys_largefile_CC=' -n32'; break
12288fi
12289rm -f core conftest.err conftest.$ac_objext
12290	 break
12291       done
12292       CC=$ac_save_CC
12293       rm -f conftest.$ac_ext
12294    fi
12295fi
12296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
12297$as_echo "$ac_cv_sys_largefile_CC" >&6; }
12298  if test "$ac_cv_sys_largefile_CC" != no; then
12299    CC=$CC$ac_cv_sys_largefile_CC
12300  fi
12301
12302  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
12303$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
12304if ${ac_cv_sys_file_offset_bits+:} false; then :
12305  $as_echo_n "(cached) " >&6
12306else
12307  while :; do
12308  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12309/* end confdefs.h.  */
12310#include <sys/types.h>
12311 /* Check that off_t can represent 2**63 - 1 correctly.
12312    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12313    since some C++ compilers masquerading as C compilers
12314    incorrectly reject 9223372036854775807.  */
12315#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12316  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12317		       && LARGE_OFF_T % 2147483647 == 1)
12318		      ? 1 : -1];
12319int
12320main ()
12321{
12322
12323  ;
12324  return 0;
12325}
12326_ACEOF
12327if ac_fn_c_try_compile "$LINENO"; then :
12328  ac_cv_sys_file_offset_bits=no; break
12329fi
12330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12331  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12332/* end confdefs.h.  */
12333#define _FILE_OFFSET_BITS 64
12334#include <sys/types.h>
12335 /* Check that off_t can represent 2**63 - 1 correctly.
12336    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12337    since some C++ compilers masquerading as C compilers
12338    incorrectly reject 9223372036854775807.  */
12339#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12340  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12341		       && LARGE_OFF_T % 2147483647 == 1)
12342		      ? 1 : -1];
12343int
12344main ()
12345{
12346
12347  ;
12348  return 0;
12349}
12350_ACEOF
12351if ac_fn_c_try_compile "$LINENO"; then :
12352  ac_cv_sys_file_offset_bits=64; break
12353fi
12354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12355  ac_cv_sys_file_offset_bits=unknown
12356  break
12357done
12358fi
12359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
12360$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
12361case $ac_cv_sys_file_offset_bits in #(
12362  no | unknown) ;;
12363  *)
12364cat >>confdefs.h <<_ACEOF
12365#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
12366_ACEOF
12367;;
12368esac
12369rm -rf conftest*
12370  if test $ac_cv_sys_file_offset_bits = unknown; then
12371    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
12372$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
12373if ${ac_cv_sys_large_files+:} false; then :
12374  $as_echo_n "(cached) " >&6
12375else
12376  while :; do
12377  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12378/* end confdefs.h.  */
12379#include <sys/types.h>
12380 /* Check that off_t can represent 2**63 - 1 correctly.
12381    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12382    since some C++ compilers masquerading as C compilers
12383    incorrectly reject 9223372036854775807.  */
12384#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12385  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12386		       && LARGE_OFF_T % 2147483647 == 1)
12387		      ? 1 : -1];
12388int
12389main ()
12390{
12391
12392  ;
12393  return 0;
12394}
12395_ACEOF
12396if ac_fn_c_try_compile "$LINENO"; then :
12397  ac_cv_sys_large_files=no; break
12398fi
12399rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12400  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12401/* end confdefs.h.  */
12402#define _LARGE_FILES 1
12403#include <sys/types.h>
12404 /* Check that off_t can represent 2**63 - 1 correctly.
12405    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12406    since some C++ compilers masquerading as C compilers
12407    incorrectly reject 9223372036854775807.  */
12408#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12409  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12410		       && LARGE_OFF_T % 2147483647 == 1)
12411		      ? 1 : -1];
12412int
12413main ()
12414{
12415
12416  ;
12417  return 0;
12418}
12419_ACEOF
12420if ac_fn_c_try_compile "$LINENO"; then :
12421  ac_cv_sys_large_files=1; break
12422fi
12423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12424  ac_cv_sys_large_files=unknown
12425  break
12426done
12427fi
12428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
12429$as_echo "$ac_cv_sys_large_files" >&6; }
12430case $ac_cv_sys_large_files in #(
12431  no | unknown) ;;
12432  *)
12433cat >>confdefs.h <<_ACEOF
12434#define _LARGE_FILES $ac_cv_sys_large_files
12435_ACEOF
12436;;
12437esac
12438rm -rf conftest*
12439  fi
12440
12441
12442fi
12443
12444
12445
12446case "${target}" in
12447    hppa*64*-*-* | vax-*-netbsdelf*) ;;
12448    *-*-*aout* | i[3-7]86-*-bsd* | i[3-7]86-*-msdos* | ns32k-*-* | \
12449    pdp11-*-* | vax-*-*bsd*)
12450	if test "$plugins" = "yes"; then
12451	    if test "${enable_plugins+set}" = set; then
12452		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Enabling plugins for AOUT is experimental" >&5
12453$as_echo "$as_me: WARNING: Enabling plugins for AOUT is experimental" >&2;}
12454	    else
12455		plugins=no
12456	    fi
12457	fi ;;
12458    hppa*-*-hpux* | *-*-*vms* | \
12459    powerpc*-*-aix* | powerpc-*-beos* | powerpc-*-macos* | rs6000-*-*)
12460	if test "$plugins" = "yes"; then
12461	    if test "${enable_plugins+set}" = set; then
12462		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Enabling plugins may result in ar creating non-standard archives for ${target}" >&5
12463$as_echo "$as_me: WARNING: Enabling plugins may result in ar creating non-standard archives for ${target}" >&2;}
12464	    else
12465		plugins=no
12466	    fi
12467	fi ;;
12468esac
12469
12470 if test "$plugins" = "yes"; then
12471  PLUGINS_TRUE=
12472  PLUGINS_FALSE='#'
12473else
12474  PLUGINS_TRUE='#'
12475  PLUGINS_FALSE=
12476fi
12477
12478
12479# Check whether --enable-64-bit-bfd was given.
12480if test "${enable_64_bit_bfd+set}" = set; then :
12481  enableval=$enable_64_bit_bfd; case "${enableval}" in
12482  yes)  want64=true  ;;
12483  no)   want64=false ;;
12484  *)    as_fn_error $? "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
12485esac
12486else
12487  want64=false
12488fi
12489
12490# Check whether --enable-targets was given.
12491if test "${enable_targets+set}" = set; then :
12492  enableval=$enable_targets; case "${enableval}" in
12493  yes | "") as_fn_error $? "enable-targets option must specify target names or 'all'" "$LINENO" 5
12494            ;;
12495  no)       enable_targets= ;;
12496  *)        enable_targets=$enableval ;;
12497esac
12498fi
12499
12500# Check whether --enable-64_bit_archive was given.
12501if test "${enable_64_bit_archive+set}" = set; then :
12502  enableval=$enable_64_bit_archive; case "${enableval}" in
12503  yes)  want_64_bit_archive=true  ;;
12504  no)   want_64_bit_archive=false ;;
12505  *)    as_fn_error $? "bad value ${enableval} for 64-bit-archive option" "$LINENO" 5 ;;
12506esac
12507else
12508  want_64_bit_archive=unset
12509fi
12510
12511
12512# Check whether --with-mmap was given.
12513if test "${with_mmap+set}" = set; then :
12514  withval=$with_mmap; case "${withval}" in
12515  yes)  want_mmap=true ;;
12516  no)   want_mmap=false ;;
12517  *)    as_fn_error $? "bad value ${withval} for BFD with-mmap option" "$LINENO" 5 ;;
12518esac
12519else
12520  want_mmap=false
12521fi
12522
12523# Check whether --enable-secureplt was given.
12524if test "${enable_secureplt+set}" = set; then :
12525  enableval=$enable_secureplt; case "${enableval}" in
12526  yes)  use_secureplt=true  ;;
12527  no)   use_secureplt=false ;;
12528  *)    as_fn_error $? "bad value ${enableval} for secureplt option" "$LINENO" 5 ;;
12529esac
12530else
12531  use_secureplt=false
12532fi
12533if test $use_secureplt = true; then
12534
12535$as_echo "#define USE_SECUREPLT 1" >>confdefs.h
12536
12537fi
12538
12539# Decide if -z separate-code should be enabled in ELF linker by default.
12540ac_default_ld_z_separate_code=unset
12541# Check whether --enable-separate-code was given.
12542if test "${enable_separate_code+set}" = set; then :
12543  enableval=$enable_separate_code; case "${enableval}" in
12544  yes) ac_default_ld_z_separate_code=1 ;;
12545  no) ac_default_ld_z_separate_code=0 ;;
12546esac
12547fi
12548
12549# Enable -z separate-code by default for Linux/x86.
12550case "${target}" in
12551i[3-7]86-*-linux-* | x86_64-*-linux-*)
12552  if test ${ac_default_ld_z_separate_code} = unset; then
12553    ac_default_ld_z_separate_code=1
12554  fi
12555  ;;
12556esac
12557if test "${ac_default_ld_z_separate_code}" = unset; then
12558  ac_default_ld_z_separate_code=0
12559fi
12560
12561cat >>confdefs.h <<_ACEOF
12562#define DEFAULT_LD_Z_SEPARATE_CODE $ac_default_ld_z_separate_code
12563_ACEOF
12564
12565
12566# Check whether --enable-leading-mingw64-underscores was given.
12567if test "${enable_leading_mingw64_underscores+set}" = set; then :
12568  enableval=$enable_leading_mingw64_underscores;
12569fi
12570
12571if  test x"$enable_leading_mingw64_underscores" = xyes ; then :
12572
12573$as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
12574
12575fi
12576
12577DEBUGDIR=${libdir}/debug
12578
12579# Check whether --with-separate-debug-dir was given.
12580if test "${with_separate_debug_dir+set}" = set; then :
12581  withval=$with_separate_debug_dir; DEBUGDIR="${withval}"
12582fi
12583
12584
12585
12586
12587
12588# Check whether --with-pkgversion was given.
12589if test "${with_pkgversion+set}" = set; then :
12590  withval=$with_pkgversion; case "$withval" in
12591      yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
12592      no)  PKGVERSION= ;;
12593      *)   PKGVERSION="($withval) " ;;
12594     esac
12595else
12596  PKGVERSION="(GNU Binutils) "
12597
12598fi
12599
12600
12601
12602
12603
12604# Check whether --with-bugurl was given.
12605if test "${with_bugurl+set}" = set; then :
12606  withval=$with_bugurl; case "$withval" in
12607      yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
12608      no)  BUGURL=
12609	   ;;
12610      *)   BUGURL="$withval"
12611	   ;;
12612     esac
12613else
12614  BUGURL="http://www.sourceware.org/bugzilla/"
12615
12616fi
12617
12618  case ${BUGURL} in
12619  "")
12620    REPORT_BUGS_TO=
12621    REPORT_BUGS_TEXI=
12622    ;;
12623  *)
12624    REPORT_BUGS_TO="<$BUGURL>"
12625    REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
12626    ;;
12627  esac;
12628
12629
12630
12631
12632
12633# Set the 'development' global.
12634. $srcdir/../bfd/development.sh
12635
12636# Set acp_cpp_for_build variable
12637ac_cpp_for_build="$CC_FOR_BUILD -E $CPPFLAGS_FOR_BUILD"
12638
12639# Default set of GCC warnings to enable.
12640GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
12641GCC_WARN_CFLAGS_FOR_BUILD="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
12642
12643# Add -Wshadow if the compiler is a sufficiently recent version of GCC.
12644cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12645/* end confdefs.h.  */
12646__GNUC__
12647_ACEOF
12648if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12649  $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
12650
12651else
12652  GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
12653fi
12654rm -f conftest*
12655
12656
12657# Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
12658cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12659/* end confdefs.h.  */
12660__GNUC__
12661_ACEOF
12662if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12663  $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
12664
12665else
12666 :
12667#  GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144"
12668fi
12669rm -f conftest*
12670
12671
12672# Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings.
12673WARN_WRITE_STRINGS=""
12674cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12675/* end confdefs.h.  */
12676__GNUC__
12677_ACEOF
12678if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12679  $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
12680
12681else
12682  WARN_WRITE_STRINGS="-Wwrite-strings"
12683fi
12684rm -f conftest*
12685
12686
12687# Verify CC_FOR_BUILD to be compatible with warning flags
12688
12689# Add -Wshadow if the compiler is a sufficiently recent version of GCC.
12690cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12691/* end confdefs.h.  */
12692__GNUC__
12693_ACEOF
12694if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
12695  $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
12696
12697else
12698  GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wshadow"
12699fi
12700rm -f conftest*
12701
12702
12703# Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
12704cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12705/* end confdefs.h.  */
12706__GNUC__
12707_ACEOF
12708if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
12709  $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
12710
12711else
12712 :
12713#  GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wstack-usage=262144"
12714fi
12715rm -f conftest*
12716
12717
12718# Check whether --enable-werror was given.
12719if test "${enable_werror+set}" = set; then :
12720  enableval=$enable_werror; case "${enableval}" in
12721     yes | y) ERROR_ON_WARNING="yes" ;;
12722     no | n)  ERROR_ON_WARNING="no" ;;
12723     *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
12724   esac
12725fi
12726
12727
12728# Disable -Wformat by default when using gcc on mingw
12729case "${host}" in
12730  *-*-mingw32*)
12731    if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
12732      GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
12733      GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wno-format"
12734    fi
12735    ;;
12736  *) ;;
12737esac
12738
12739# Enable -Werror by default when using gcc.  Turn it off for releases.
12740if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then
12741    ERROR_ON_WARNING=yes
12742fi
12743
12744NO_WERROR=
12745if test "${ERROR_ON_WARNING}" = yes ; then
12746    GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
12747    GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Werror"
12748    NO_WERROR="-Wno-error"
12749fi
12750
12751if test "${GCC}" = yes ; then
12752  WARN_CFLAGS="${GCC_WARN_CFLAGS}"
12753  WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}"
12754fi
12755
12756# Check whether --enable-build-warnings was given.
12757if test "${enable_build_warnings+set}" = set; then :
12758  enableval=$enable_build_warnings; case "${enableval}" in
12759  yes)	WARN_CFLAGS="${GCC_WARN_CFLAGS}"
12760        WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}";;
12761  no)	if test "${GCC}" = yes ; then
12762	  WARN_CFLAGS="-w"
12763      WARN_CFLAGS_FOR_BUILD="-w"
12764	fi;;
12765  ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
12766        WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}"
12767        WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD} ${t}";;
12768  *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
12769        WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}"
12770        WARN_CFLAGS_FOR_BUILD="${t} ${GCC_WARN_CFLAGS_FOR_BUILD}";;
12771  *)    WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`
12772        WARN_CFLAGS_FOR_BUILD=`echo "${enableval}" | sed -e "s/,/ /g"`;;
12773esac
12774fi
12775
12776
12777if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
12778  echo "Setting warning flags = $WARN_CFLAGS" 6>&1
12779fi
12780
12781
12782
12783
12784
12785
12786
12787ac_config_headers="$ac_config_headers config.h:config.in"
12788
12789
12790# PR 14072
12791
12792
12793if test -z "$target" ; then
12794    as_fn_error $? "Unrecognized target system type; please check config.sub." "$LINENO" 5
12795fi
12796
12797
12798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
12799$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
12800    # Check whether --enable-maintainer-mode was given.
12801if test "${enable_maintainer_mode+set}" = set; then :
12802  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
12803else
12804  USE_MAINTAINER_MODE=no
12805fi
12806
12807  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
12808$as_echo "$USE_MAINTAINER_MODE" >&6; }
12809   if test $USE_MAINTAINER_MODE = yes; then
12810  MAINTAINER_MODE_TRUE=
12811  MAINTAINER_MODE_FALSE='#'
12812else
12813  MAINTAINER_MODE_TRUE='#'
12814  MAINTAINER_MODE_FALSE=
12815fi
12816
12817  MAINT=$MAINTAINER_MODE_TRUE
12818
12819
12820 if false; then
12821  GENINSRC_NEVER_TRUE=
12822  GENINSRC_NEVER_FALSE='#'
12823else
12824  GENINSRC_NEVER_TRUE='#'
12825  GENINSRC_NEVER_FALSE=
12826fi
12827
12828 case ${build_alias} in
12829  "") build_noncanonical=${build} ;;
12830  *) build_noncanonical=${build_alias} ;;
12831esac
12832
12833 case ${host_alias} in
12834  "") host_noncanonical=${build_noncanonical} ;;
12835  *) host_noncanonical=${host_alias} ;;
12836esac
12837
12838 case ${target_alias} in
12839  "") target_noncanonical=${host_noncanonical} ;;
12840  *) target_noncanonical=${target_alias} ;;
12841esac
12842
12843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install libbfd" >&5
12844$as_echo_n "checking whether to install libbfd... " >&6; }
12845  # Check whether --enable-install-libbfd was given.
12846if test "${enable_install_libbfd+set}" = set; then :
12847  enableval=$enable_install_libbfd; install_libbfd_p=$enableval
12848else
12849  if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
12850        install_libbfd_p=yes
12851      else
12852        install_libbfd_p=no
12853      fi
12854fi
12855
12856  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $install_libbfd_p" >&5
12857$as_echo "$install_libbfd_p" >&6; }
12858   if test $install_libbfd_p = yes; then
12859  INSTALL_LIBBFD_TRUE=
12860  INSTALL_LIBBFD_FALSE='#'
12861else
12862  INSTALL_LIBBFD_TRUE='#'
12863  INSTALL_LIBBFD_FALSE=
12864fi
12865
12866  # Need _noncanonical variables for this.
12867
12868
12869
12870
12871  # libbfd.a is a host library containing target dependent code
12872  bfdlibdir='$(libdir)'
12873  bfdincludedir='$(includedir)'
12874  if test "${host}" != "${target}"; then
12875    bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
12876    bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
12877  fi
12878
12879
12880
12881
12882
12883
12884
12885
12886host64=false
12887target64=false
12888bfd_default_target_size=32
12889
12890# host stuff:
12891
12892ALL_LINGUAS="da es fi fr hr id ja ro ru rw sr sv tr uk vi zh_CN pt"
12893# If we haven't got the data from the intl directory,
12894# assume NLS is disabled.
12895USE_NLS=no
12896LIBINTL=
12897LIBINTL_DEP=
12898INCINTL=
12899XGETTEXT=
12900GMSGFMT=
12901POSUB=
12902
12903if test -f  ../intl/config.intl; then
12904  .  ../intl/config.intl
12905fi
12906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12907$as_echo_n "checking whether NLS is requested... " >&6; }
12908if test x"$USE_NLS" != xyes; then
12909  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12910$as_echo "no" >&6; }
12911else
12912  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12913$as_echo "yes" >&6; }
12914
12915$as_echo "#define ENABLE_NLS 1" >>confdefs.h
12916
12917
12918  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
12919$as_echo_n "checking for catalogs to be installed... " >&6; }
12920  # Look for .po and .gmo files in the source directory.
12921  CATALOGS=
12922  XLINGUAS=
12923  for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12924    # If there aren't any .gmo files the shell will give us the
12925    # literal string "../path/to/srcdir/po/*.gmo" which has to be
12926    # weeded out.
12927    case "$cat" in *\**)
12928      continue;;
12929    esac
12930    # The quadruple backslash is collapsed to a double backslash
12931    # by the backticks, then collapsed again by the double quotes,
12932    # leaving us with one backslash in the sed expression (right
12933    # before the dot that mustn't act as a wildcard).
12934    cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
12935    lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
12936    # The user is allowed to set LINGUAS to a list of languages to
12937    # install catalogs for.  If it's empty that means "all of them."
12938    if test "x$LINGUAS" = x; then
12939      CATALOGS="$CATALOGS $cat"
12940      XLINGUAS="$XLINGUAS $lang"
12941    else
12942      case "$LINGUAS" in *$lang*)
12943        CATALOGS="$CATALOGS $cat"
12944        XLINGUAS="$XLINGUAS $lang"
12945        ;;
12946      esac
12947    fi
12948  done
12949  LINGUAS="$XLINGUAS"
12950  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
12951$as_echo "$LINGUAS" >&6; }
12952
12953
12954    DATADIRNAME=share
12955
12956  INSTOBJEXT=.mo
12957
12958  GENCAT=gencat
12959
12960  CATOBJEXT=.gmo
12961
12962fi
12963
12964        MKINSTALLDIRS=
12965  if test -n "$ac_aux_dir"; then
12966    case "$ac_aux_dir" in
12967      /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
12968      *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
12969    esac
12970  fi
12971  if test -z "$MKINSTALLDIRS"; then
12972    MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
12973  fi
12974
12975
12976
12977  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12978$as_echo_n "checking whether NLS is requested... " >&6; }
12979    # Check whether --enable-nls was given.
12980if test "${enable_nls+set}" = set; then :
12981  enableval=$enable_nls; USE_NLS=$enableval
12982else
12983  USE_NLS=yes
12984fi
12985
12986  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
12987$as_echo "$USE_NLS" >&6; }
12988
12989
12990
12991
12992
12993
12994# Prepare PATH_SEPARATOR.
12995# The user is always right.
12996if test "${PATH_SEPARATOR+set}" != set; then
12997  echo "#! /bin/sh" >conf$$.sh
12998  echo  "exit 0"   >>conf$$.sh
12999  chmod +x conf$$.sh
13000  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13001    PATH_SEPARATOR=';'
13002  else
13003    PATH_SEPARATOR=:
13004  fi
13005  rm -f conf$$.sh
13006fi
13007
13008# Find out how to test for executable files. Don't use a zero-byte file,
13009# as systems may use methods other than mode bits to determine executability.
13010cat >conf$$.file <<_ASEOF
13011#! /bin/sh
13012exit 0
13013_ASEOF
13014chmod +x conf$$.file
13015if test -x conf$$.file >/dev/null 2>&1; then
13016  ac_executable_p="test -x"
13017else
13018  ac_executable_p="test -f"
13019fi
13020rm -f conf$$.file
13021
13022# Extract the first word of "msgfmt", so it can be a program name with args.
13023set dummy msgfmt; ac_word=$2
13024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13025$as_echo_n "checking for $ac_word... " >&6; }
13026if ${ac_cv_path_MSGFMT+:} false; then :
13027  $as_echo_n "(cached) " >&6
13028else
13029  case "$MSGFMT" in
13030  [\\/]* | ?:[\\/]*)
13031    ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
13032    ;;
13033  *)
13034    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13035    for ac_dir in $PATH; do
13036      IFS="$ac_save_IFS"
13037      test -z "$ac_dir" && ac_dir=.
13038      for ac_exec_ext in '' $ac_executable_extensions; do
13039        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13040          if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
13041     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13042            ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
13043            break 2
13044          fi
13045        fi
13046      done
13047    done
13048    IFS="$ac_save_IFS"
13049  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
13050    ;;
13051esac
13052fi
13053MSGFMT="$ac_cv_path_MSGFMT"
13054if test "$MSGFMT" != ":"; then
13055  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
13056$as_echo "$MSGFMT" >&6; }
13057else
13058  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13059$as_echo "no" >&6; }
13060fi
13061
13062  # Extract the first word of "gmsgfmt", so it can be a program name with args.
13063set dummy gmsgfmt; ac_word=$2
13064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13065$as_echo_n "checking for $ac_word... " >&6; }
13066if ${ac_cv_path_GMSGFMT+:} false; then :
13067  $as_echo_n "(cached) " >&6
13068else
13069  case $GMSGFMT in
13070  [\\/]* | ?:[\\/]*)
13071  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
13072  ;;
13073  *)
13074  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13075for as_dir in $PATH
13076do
13077  IFS=$as_save_IFS
13078  test -z "$as_dir" && as_dir=.
13079    for ac_exec_ext in '' $ac_executable_extensions; do
13080  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13081    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
13082    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13083    break 2
13084  fi
13085done
13086  done
13087IFS=$as_save_IFS
13088
13089  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
13090  ;;
13091esac
13092fi
13093GMSGFMT=$ac_cv_path_GMSGFMT
13094if test -n "$GMSGFMT"; then
13095  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
13096$as_echo "$GMSGFMT" >&6; }
13097else
13098  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13099$as_echo "no" >&6; }
13100fi
13101
13102
13103
13104
13105# Prepare PATH_SEPARATOR.
13106# The user is always right.
13107if test "${PATH_SEPARATOR+set}" != set; then
13108  echo "#! /bin/sh" >conf$$.sh
13109  echo  "exit 0"   >>conf$$.sh
13110  chmod +x conf$$.sh
13111  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13112    PATH_SEPARATOR=';'
13113  else
13114    PATH_SEPARATOR=:
13115  fi
13116  rm -f conf$$.sh
13117fi
13118
13119# Find out how to test for executable files. Don't use a zero-byte file,
13120# as systems may use methods other than mode bits to determine executability.
13121cat >conf$$.file <<_ASEOF
13122#! /bin/sh
13123exit 0
13124_ASEOF
13125chmod +x conf$$.file
13126if test -x conf$$.file >/dev/null 2>&1; then
13127  ac_executable_p="test -x"
13128else
13129  ac_executable_p="test -f"
13130fi
13131rm -f conf$$.file
13132
13133# Extract the first word of "xgettext", so it can be a program name with args.
13134set dummy xgettext; ac_word=$2
13135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13136$as_echo_n "checking for $ac_word... " >&6; }
13137if ${ac_cv_path_XGETTEXT+:} false; then :
13138  $as_echo_n "(cached) " >&6
13139else
13140  case "$XGETTEXT" in
13141  [\\/]* | ?:[\\/]*)
13142    ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
13143    ;;
13144  *)
13145    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13146    for ac_dir in $PATH; do
13147      IFS="$ac_save_IFS"
13148      test -z "$ac_dir" && ac_dir=.
13149      for ac_exec_ext in '' $ac_executable_extensions; do
13150        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13151          if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
13152     (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
13153            ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
13154            break 2
13155          fi
13156        fi
13157      done
13158    done
13159    IFS="$ac_save_IFS"
13160  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
13161    ;;
13162esac
13163fi
13164XGETTEXT="$ac_cv_path_XGETTEXT"
13165if test "$XGETTEXT" != ":"; then
13166  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
13167$as_echo "$XGETTEXT" >&6; }
13168else
13169  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13170$as_echo "no" >&6; }
13171fi
13172
13173    rm -f messages.po
13174
13175
13176# Prepare PATH_SEPARATOR.
13177# The user is always right.
13178if test "${PATH_SEPARATOR+set}" != set; then
13179  echo "#! /bin/sh" >conf$$.sh
13180  echo  "exit 0"   >>conf$$.sh
13181  chmod +x conf$$.sh
13182  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13183    PATH_SEPARATOR=';'
13184  else
13185    PATH_SEPARATOR=:
13186  fi
13187  rm -f conf$$.sh
13188fi
13189
13190# Find out how to test for executable files. Don't use a zero-byte file,
13191# as systems may use methods other than mode bits to determine executability.
13192cat >conf$$.file <<_ASEOF
13193#! /bin/sh
13194exit 0
13195_ASEOF
13196chmod +x conf$$.file
13197if test -x conf$$.file >/dev/null 2>&1; then
13198  ac_executable_p="test -x"
13199else
13200  ac_executable_p="test -f"
13201fi
13202rm -f conf$$.file
13203
13204# Extract the first word of "msgmerge", so it can be a program name with args.
13205set dummy msgmerge; ac_word=$2
13206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13207$as_echo_n "checking for $ac_word... " >&6; }
13208if ${ac_cv_path_MSGMERGE+:} false; then :
13209  $as_echo_n "(cached) " >&6
13210else
13211  case "$MSGMERGE" in
13212  [\\/]* | ?:[\\/]*)
13213    ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
13214    ;;
13215  *)
13216    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13217    for ac_dir in $PATH; do
13218      IFS="$ac_save_IFS"
13219      test -z "$ac_dir" && ac_dir=.
13220      for ac_exec_ext in '' $ac_executable_extensions; do
13221        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13222          if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
13223            ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
13224            break 2
13225          fi
13226        fi
13227      done
13228    done
13229    IFS="$ac_save_IFS"
13230  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
13231    ;;
13232esac
13233fi
13234MSGMERGE="$ac_cv_path_MSGMERGE"
13235if test "$MSGMERGE" != ":"; then
13236  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
13237$as_echo "$MSGMERGE" >&6; }
13238else
13239  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13240$as_echo "no" >&6; }
13241fi
13242
13243
13244      if test "$GMSGFMT" != ":"; then
13245            if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
13246       (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13247      : ;
13248    else
13249      GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
13250      { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
13251$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
13252      GMSGFMT=":"
13253    fi
13254  fi
13255
13256      if test "$XGETTEXT" != ":"; then
13257            if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
13258       (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
13259      : ;
13260    else
13261      { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
13262$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
13263      XGETTEXT=":"
13264    fi
13265        rm -f messages.po
13266  fi
13267
13268  ac_config_commands="$ac_config_commands default-1"
13269
13270
13271
13272# Permit host specific settings.
13273. ${srcdir}/configure.host
13274
13275
13276
13277
13278BFD_HOST_64BIT_LONG=0
13279BFD_HOST_64BIT_LONG_LONG=0
13280BFD_HOST_64_BIT_DEFINED=0
13281BFD_HOST_64_BIT=
13282BFD_HOST_U_64_BIT=
13283BFD_HOSTPTR_T="unsigned long"
13284
13285
13286  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
13287$as_echo_n "checking for long double... " >&6; }
13288if ${ac_cv_type_long_double+:} false; then :
13289  $as_echo_n "(cached) " >&6
13290else
13291  if test "$GCC" = yes; then
13292       ac_cv_type_long_double=yes
13293     else
13294       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13295/* end confdefs.h.  */
13296/* The Stardent Vistra knows sizeof (long double), but does
13297		 not support it.  */
13298	      long double foo = 0.0L;
13299int
13300main ()
13301{
13302static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
13303	      sizeof (double) <= sizeof (long double))];
13304test_array [0] = 0;
13305return test_array [0];
13306
13307  ;
13308  return 0;
13309}
13310_ACEOF
13311if ac_fn_c_try_compile "$LINENO"; then :
13312  ac_cv_type_long_double=yes
13313else
13314  ac_cv_type_long_double=no
13315fi
13316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13317     fi
13318fi
13319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
13320$as_echo "$ac_cv_type_long_double" >&6; }
13321  if test $ac_cv_type_long_double = yes; then
13322
13323$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
13324
13325  fi
13326
13327ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
13328if test "x$ac_cv_type_long_long" = xyes; then :
13329
13330cat >>confdefs.h <<_ACEOF
13331#define HAVE_LONG_LONG 1
13332_ACEOF
13333
13334# The cast to long int works around a bug in the HP C Compiler
13335# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13336# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13337# This bug is HP SR number 8606223364.
13338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
13339$as_echo_n "checking size of long long... " >&6; }
13340if ${ac_cv_sizeof_long_long+:} false; then :
13341  $as_echo_n "(cached) " >&6
13342else
13343  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
13344
13345else
13346  if test "$ac_cv_type_long_long" = yes; then
13347     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13348$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13349as_fn_error 77 "cannot compute sizeof (long long)
13350See \`config.log' for more details" "$LINENO" 5; }
13351   else
13352     ac_cv_sizeof_long_long=0
13353   fi
13354fi
13355
13356fi
13357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
13358$as_echo "$ac_cv_sizeof_long_long" >&6; }
13359
13360
13361
13362cat >>confdefs.h <<_ACEOF
13363#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
13364_ACEOF
13365
13366
13367fi
13368
13369# The cast to long int works around a bug in the HP C Compiler
13370# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13371# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13372# This bug is HP SR number 8606223364.
13373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
13374$as_echo_n "checking size of void *... " >&6; }
13375if ${ac_cv_sizeof_void_p+:} false; then :
13376  $as_echo_n "(cached) " >&6
13377else
13378  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
13379
13380else
13381  if test "$ac_cv_type_void_p" = yes; then
13382     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13383$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13384as_fn_error 77 "cannot compute sizeof (void *)
13385See \`config.log' for more details" "$LINENO" 5; }
13386   else
13387     ac_cv_sizeof_void_p=0
13388   fi
13389fi
13390
13391fi
13392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
13393$as_echo "$ac_cv_sizeof_void_p" >&6; }
13394
13395
13396
13397cat >>confdefs.h <<_ACEOF
13398#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
13399_ACEOF
13400
13401
13402# The cast to long int works around a bug in the HP C Compiler
13403# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13404# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13405# This bug is HP SR number 8606223364.
13406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
13407$as_echo_n "checking size of long... " >&6; }
13408if ${ac_cv_sizeof_long+:} false; then :
13409  $as_echo_n "(cached) " >&6
13410else
13411  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
13412
13413else
13414  if test "$ac_cv_type_long" = yes; then
13415     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13416$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13417as_fn_error 77 "cannot compute sizeof (long)
13418See \`config.log' for more details" "$LINENO" 5; }
13419   else
13420     ac_cv_sizeof_long=0
13421   fi
13422fi
13423
13424fi
13425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
13426$as_echo "$ac_cv_sizeof_long" >&6; }
13427
13428
13429
13430cat >>confdefs.h <<_ACEOF
13431#define SIZEOF_LONG $ac_cv_sizeof_long
13432_ACEOF
13433
13434
13435# The cast to long int works around a bug in the HP C Compiler
13436# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13437# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13438# This bug is HP SR number 8606223364.
13439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
13440$as_echo_n "checking size of int... " >&6; }
13441if ${ac_cv_sizeof_int+:} false; then :
13442  $as_echo_n "(cached) " >&6
13443else
13444  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
13445
13446else
13447  if test "$ac_cv_type_int" = yes; then
13448     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13449$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13450as_fn_error 77 "cannot compute sizeof (int)
13451See \`config.log' for more details" "$LINENO" 5; }
13452   else
13453     ac_cv_sizeof_int=0
13454   fi
13455fi
13456
13457fi
13458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
13459$as_echo "$ac_cv_sizeof_int" >&6; }
13460
13461
13462
13463cat >>confdefs.h <<_ACEOF
13464#define SIZEOF_INT $ac_cv_sizeof_int
13465_ACEOF
13466
13467
13468
13469if test "x${ac_cv_sizeof_void_p}" = "x8"; then
13470  host64=true
13471fi
13472
13473if test "x${ac_cv_sizeof_long}" = "x8"; then
13474  BFD_HOST_64BIT_LONG=1
13475  test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long"
13476  test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long"
13477elif test "x${ac_cv_sizeof_long_long}" = "x8"; then
13478  BFD_HOST_64BIT_LONG_LONG=1
13479  test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long"
13480  test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long"
13481  if test "x${ac_cv_sizeof_void_p}" = "x8"; then
13482    BFD_HOSTPTR_T="unsigned long long"
13483  fi
13484fi
13485
13486if test -n "${HOST_64BIT_TYPE}" -a -n "${HOST_U_64BIT_TYPE}"; then
13487  BFD_HOST_64_BIT_DEFINED=1
13488  BFD_HOST_64_BIT="${HOST_64BIT_TYPE}"
13489  BFD_HOST_U_64_BIT="${HOST_U_64BIT_TYPE}"
13490fi
13491
13492
13493
13494
13495
13496
13497
13498
13499# Put a plausible default for CC_FOR_BUILD in Makefile.
13500if test -z "$CC_FOR_BUILD"; then
13501  if test "x$cross_compiling" = "xno"; then
13502    CC_FOR_BUILD='$(CC)'
13503  else
13504    CC_FOR_BUILD=gcc
13505  fi
13506fi
13507
13508# Also set EXEEXT_FOR_BUILD.
13509if test "x$cross_compiling" = "xno"; then
13510  EXEEXT_FOR_BUILD='$(EXEEXT)'
13511else
13512  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build system executable suffix" >&5
13513$as_echo_n "checking for build system executable suffix... " >&6; }
13514if ${bfd_cv_build_exeext+:} false; then :
13515  $as_echo_n "(cached) " >&6
13516else
13517  rm -f conftest*
13518     echo 'int main () { return 0; }' > conftest.c
13519     bfd_cv_build_exeext=
13520     ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
13521     for file in conftest.*; do
13522       case $file in
13523       *.c | *.o | *.obj | *.ilk | *.pdb) ;;
13524       *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
13525       esac
13526     done
13527     rm -f conftest*
13528     test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
13529fi
13530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_build_exeext" >&5
13531$as_echo "$bfd_cv_build_exeext" >&6; }
13532  EXEEXT_FOR_BUILD=""
13533  test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
13534fi
13535
13536
13537for ac_header in alloca.h fcntl.h limits.h stddef.h stdlib.h string.h \
13538		 strings.h sys/file.h sys/resource.h sys/stat.h sys/time.h \
13539		 time.h unistd.h wchar.h wctype.h
13540do :
13541  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13542ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13543if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13544  cat >>confdefs.h <<_ACEOF
13545#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13546_ACEOF
13547
13548fi
13549
13550done
13551
13552
13553
13554inttype_headers=`echo inttypes.h sys/inttypes.h  | sed -e 's/,/ /g'`
13555
13556acx_cv_header_stdint=stddef.h
13557acx_cv_header_stdint_kind="(already complete)"
13558for i in stdint.h $inttype_headers; do
13559  unset ac_cv_type_uintptr_t
13560  unset ac_cv_type_uintmax_t
13561  unset ac_cv_type_int_least32_t
13562  unset ac_cv_type_int_fast32_t
13563  unset ac_cv_type_uint64_t
13564  $as_echo_n "looking for a compliant stdint.h in $i, " >&6
13565  ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
13566#include <$i>
13567"
13568if test "x$ac_cv_type_uintmax_t" = xyes; then :
13569  acx_cv_header_stdint=$i
13570else
13571  continue
13572fi
13573
13574  ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
13575#include <$i>
13576"
13577if test "x$ac_cv_type_uintptr_t" = xyes; then :
13578
13579else
13580  acx_cv_header_stdint_kind="(mostly complete)"
13581fi
13582
13583  ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
13584#include <$i>
13585"
13586if test "x$ac_cv_type_int_least32_t" = xyes; then :
13587
13588else
13589  acx_cv_header_stdint_kind="(mostly complete)"
13590fi
13591
13592  ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
13593#include <$i>
13594"
13595if test "x$ac_cv_type_int_fast32_t" = xyes; then :
13596
13597else
13598  acx_cv_header_stdint_kind="(mostly complete)"
13599fi
13600
13601  ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
13602#include <$i>
13603"
13604if test "x$ac_cv_type_uint64_t" = xyes; then :
13605
13606else
13607  acx_cv_header_stdint_kind="(lacks uint64_t)"
13608fi
13609
13610  break
13611done
13612if test "$acx_cv_header_stdint" = stddef.h; then
13613  acx_cv_header_stdint_kind="(lacks uintmax_t)"
13614  for i in stdint.h $inttype_headers; do
13615    unset ac_cv_type_uintptr_t
13616    unset ac_cv_type_uint32_t
13617    unset ac_cv_type_uint64_t
13618    $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
13619    ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
13620#include <$i>
13621"
13622if test "x$ac_cv_type_uint32_t" = xyes; then :
13623  acx_cv_header_stdint=$i
13624else
13625  continue
13626fi
13627
13628    ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
13629#include <$i>
13630"
13631if test "x$ac_cv_type_uint64_t" = xyes; then :
13632
13633fi
13634
13635    ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
13636#include <$i>
13637"
13638if test "x$ac_cv_type_uintptr_t" = xyes; then :
13639
13640fi
13641
13642    break
13643  done
13644fi
13645if test "$acx_cv_header_stdint" = stddef.h; then
13646  acx_cv_header_stdint_kind="(u_intXX_t style)"
13647  for i in sys/types.h $inttype_headers; do
13648    unset ac_cv_type_u_int32_t
13649    unset ac_cv_type_u_int64_t
13650    $as_echo_n "looking for u_intXX_t types in $i, " >&6
13651    ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
13652#include <$i>
13653"
13654if test "x$ac_cv_type_u_int32_t" = xyes; then :
13655  acx_cv_header_stdint=$i
13656else
13657  continue
13658fi
13659
13660    ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
13661#include <$i>
13662"
13663if test "x$ac_cv_type_u_int64_t" = xyes; then :
13664
13665fi
13666
13667    break
13668  done
13669fi
13670if test "$acx_cv_header_stdint" = stddef.h; then
13671  acx_cv_header_stdint_kind="(using manual detection)"
13672fi
13673
13674test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
13675test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
13676test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
13677test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
13678test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
13679
13680# ----------------- Summarize what we found so far
13681
13682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in bfd_stdint.h" >&5
13683$as_echo_n "checking what to include in bfd_stdint.h... " >&6; }
13684
13685case `$as_basename -- bfd_stdint.h ||
13686$as_expr X/bfd_stdint.h : '.*/\([^/][^/]*\)/*$' \| \
13687	 Xbfd_stdint.h : 'X\(//\)$' \| \
13688	 Xbfd_stdint.h : 'X\(/\)' \| . 2>/dev/null ||
13689$as_echo X/bfd_stdint.h |
13690    sed '/^.*\/\([^/][^/]*\)\/*$/{
13691	    s//\1/
13692	    q
13693	  }
13694	  /^X\/\(\/\/\)$/{
13695	    s//\1/
13696	    q
13697	  }
13698	  /^X\/\(\/\).*/{
13699	    s//\1/
13700	    q
13701	  }
13702	  s/.*/./; q'` in
13703  stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
13704$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
13705  inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
13706$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
13707  *) ;;
13708esac
13709
13710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
13711$as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
13712
13713# ----------------- done included file, check C basic types --------
13714
13715# Lacking an uintptr_t?  Test size of void *
13716case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
13717  stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
13718# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13719# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13720# This bug is HP SR number 8606223364.
13721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
13722$as_echo_n "checking size of void *... " >&6; }
13723if ${ac_cv_sizeof_void_p+:} false; then :
13724  $as_echo_n "(cached) " >&6
13725else
13726  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
13727
13728else
13729  if test "$ac_cv_type_void_p" = yes; then
13730     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13731$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13732as_fn_error 77 "cannot compute sizeof (void *)
13733See \`config.log' for more details" "$LINENO" 5; }
13734   else
13735     ac_cv_sizeof_void_p=0
13736   fi
13737fi
13738
13739fi
13740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
13741$as_echo "$ac_cv_sizeof_void_p" >&6; }
13742
13743
13744
13745cat >>confdefs.h <<_ACEOF
13746#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
13747_ACEOF
13748
13749 ;;
13750esac
13751
13752# Lacking an uint64_t?  Test size of long
13753case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
13754  stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
13755# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13756# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13757# This bug is HP SR number 8606223364.
13758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
13759$as_echo_n "checking size of long... " >&6; }
13760if ${ac_cv_sizeof_long+:} false; then :
13761  $as_echo_n "(cached) " >&6
13762else
13763  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
13764
13765else
13766  if test "$ac_cv_type_long" = yes; then
13767     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13768$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13769as_fn_error 77 "cannot compute sizeof (long)
13770See \`config.log' for more details" "$LINENO" 5; }
13771   else
13772     ac_cv_sizeof_long=0
13773   fi
13774fi
13775
13776fi
13777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
13778$as_echo "$ac_cv_sizeof_long" >&6; }
13779
13780
13781
13782cat >>confdefs.h <<_ACEOF
13783#define SIZEOF_LONG $ac_cv_sizeof_long
13784_ACEOF
13785
13786 ;;
13787esac
13788
13789if test $acx_cv_header_stdint = stddef.h; then
13790  # Lacking a good header?  Test size of everything and deduce all types.
13791  # The cast to long int works around a bug in the HP C Compiler
13792# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13793# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13794# This bug is HP SR number 8606223364.
13795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
13796$as_echo_n "checking size of int... " >&6; }
13797if ${ac_cv_sizeof_int+:} false; then :
13798  $as_echo_n "(cached) " >&6
13799else
13800  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
13801
13802else
13803  if test "$ac_cv_type_int" = yes; then
13804     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13805$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13806as_fn_error 77 "cannot compute sizeof (int)
13807See \`config.log' for more details" "$LINENO" 5; }
13808   else
13809     ac_cv_sizeof_int=0
13810   fi
13811fi
13812
13813fi
13814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
13815$as_echo "$ac_cv_sizeof_int" >&6; }
13816
13817
13818
13819cat >>confdefs.h <<_ACEOF
13820#define SIZEOF_INT $ac_cv_sizeof_int
13821_ACEOF
13822
13823
13824  # The cast to long int works around a bug in the HP C Compiler
13825# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13826# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13827# This bug is HP SR number 8606223364.
13828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
13829$as_echo_n "checking size of short... " >&6; }
13830if ${ac_cv_sizeof_short+:} false; then :
13831  $as_echo_n "(cached) " >&6
13832else
13833  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
13834
13835else
13836  if test "$ac_cv_type_short" = yes; then
13837     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13838$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13839as_fn_error 77 "cannot compute sizeof (short)
13840See \`config.log' for more details" "$LINENO" 5; }
13841   else
13842     ac_cv_sizeof_short=0
13843   fi
13844fi
13845
13846fi
13847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
13848$as_echo "$ac_cv_sizeof_short" >&6; }
13849
13850
13851
13852cat >>confdefs.h <<_ACEOF
13853#define SIZEOF_SHORT $ac_cv_sizeof_short
13854_ACEOF
13855
13856
13857  # The cast to long int works around a bug in the HP C Compiler
13858# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13859# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13860# This bug is HP SR number 8606223364.
13861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
13862$as_echo_n "checking size of char... " >&6; }
13863if ${ac_cv_sizeof_char+:} false; then :
13864  $as_echo_n "(cached) " >&6
13865else
13866  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :
13867
13868else
13869  if test "$ac_cv_type_char" = yes; then
13870     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13871$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13872as_fn_error 77 "cannot compute sizeof (char)
13873See \`config.log' for more details" "$LINENO" 5; }
13874   else
13875     ac_cv_sizeof_char=0
13876   fi
13877fi
13878
13879fi
13880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
13881$as_echo "$ac_cv_sizeof_char" >&6; }
13882
13883
13884
13885cat >>confdefs.h <<_ACEOF
13886#define SIZEOF_CHAR $ac_cv_sizeof_char
13887_ACEOF
13888
13889
13890
13891  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
13892$as_echo_n "checking for type equivalent to int8_t... " >&6; }
13893  case "$ac_cv_sizeof_char" in
13894    1) acx_cv_type_int8_t=char ;;
13895    *) as_fn_error $? "no 8-bit type, please report a bug" "$LINENO" 5
13896  esac
13897  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
13898$as_echo "$acx_cv_type_int8_t" >&6; }
13899
13900  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
13901$as_echo_n "checking for type equivalent to int16_t... " >&6; }
13902  case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
13903    2:*) acx_cv_type_int16_t=int ;;
13904    *:2) acx_cv_type_int16_t=short ;;
13905    *) as_fn_error $? "no 16-bit type, please report a bug" "$LINENO" 5
13906  esac
13907  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
13908$as_echo "$acx_cv_type_int16_t" >&6; }
13909
13910  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
13911$as_echo_n "checking for type equivalent to int32_t... " >&6; }
13912  case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
13913    4:*) acx_cv_type_int32_t=int ;;
13914    *:4) acx_cv_type_int32_t=long ;;
13915    *) as_fn_error $? "no 32-bit type, please report a bug" "$LINENO" 5
13916  esac
13917  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
13918$as_echo "$acx_cv_type_int32_t" >&6; }
13919fi
13920
13921# These tests are here to make the output prettier
13922
13923if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
13924  case "$ac_cv_sizeof_long" in
13925    8) acx_cv_type_int64_t=long ;;
13926  esac
13927  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
13928$as_echo_n "checking for type equivalent to int64_t... " >&6; }
13929  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
13930$as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
13931fi
13932
13933# Now we can use the above types
13934
13935if test "$ac_cv_type_uintptr_t" != yes; then
13936  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
13937$as_echo_n "checking for type equivalent to intptr_t... " >&6; }
13938  case $ac_cv_sizeof_void_p in
13939    2) acx_cv_type_intptr_t=int16_t ;;
13940    4) acx_cv_type_intptr_t=int32_t ;;
13941    8) acx_cv_type_intptr_t=int64_t ;;
13942    *) as_fn_error $? "no equivalent for intptr_t, please report a bug" "$LINENO" 5
13943  esac
13944  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
13945$as_echo "$acx_cv_type_intptr_t" >&6; }
13946fi
13947
13948# ----------------- done all checks, emit header -------------
13949ac_config_commands="$ac_config_commands bfd_stdint.h"
13950
13951
13952
13953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
13954$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
13955if ${ac_cv_header_time+:} false; then :
13956  $as_echo_n "(cached) " >&6
13957else
13958  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13959/* end confdefs.h.  */
13960#include <sys/types.h>
13961#include <sys/time.h>
13962#include <time.h>
13963
13964int
13965main ()
13966{
13967if ((struct tm *) 0)
13968return 0;
13969  ;
13970  return 0;
13971}
13972_ACEOF
13973if ac_fn_c_try_compile "$LINENO"; then :
13974  ac_cv_header_time=yes
13975else
13976  ac_cv_header_time=no
13977fi
13978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13979fi
13980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
13981$as_echo "$ac_cv_header_time" >&6; }
13982if test $ac_cv_header_time = yes; then
13983
13984$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
13985
13986fi
13987
13988ac_header_dirent=no
13989for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13990  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
13992$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
13993if eval \${$as_ac_Header+:} false; then :
13994  $as_echo_n "(cached) " >&6
13995else
13996  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13997/* end confdefs.h.  */
13998#include <sys/types.h>
13999#include <$ac_hdr>
14000
14001int
14002main ()
14003{
14004if ((DIR *) 0)
14005return 0;
14006  ;
14007  return 0;
14008}
14009_ACEOF
14010if ac_fn_c_try_compile "$LINENO"; then :
14011  eval "$as_ac_Header=yes"
14012else
14013  eval "$as_ac_Header=no"
14014fi
14015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14016fi
14017eval ac_res=\$$as_ac_Header
14018	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14019$as_echo "$ac_res" >&6; }
14020if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14021  cat >>confdefs.h <<_ACEOF
14022#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14023_ACEOF
14024
14025ac_header_dirent=$ac_hdr; break
14026fi
14027
14028done
14029# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14030if test $ac_header_dirent = dirent.h; then
14031  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
14032$as_echo_n "checking for library containing opendir... " >&6; }
14033if ${ac_cv_search_opendir+:} false; then :
14034  $as_echo_n "(cached) " >&6
14035else
14036  ac_func_search_save_LIBS=$LIBS
14037cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14038/* end confdefs.h.  */
14039
14040/* Override any GCC internal prototype to avoid an error.
14041   Use char because int might match the return type of a GCC
14042   builtin and then its argument prototype would still apply.  */
14043#ifdef __cplusplus
14044extern "C"
14045#endif
14046char opendir ();
14047int
14048main ()
14049{
14050return opendir ();
14051  ;
14052  return 0;
14053}
14054_ACEOF
14055for ac_lib in '' dir; do
14056  if test -z "$ac_lib"; then
14057    ac_res="none required"
14058  else
14059    ac_res=-l$ac_lib
14060    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14061  fi
14062  if ac_fn_c_try_link "$LINENO"; then :
14063  ac_cv_search_opendir=$ac_res
14064fi
14065rm -f core conftest.err conftest.$ac_objext \
14066    conftest$ac_exeext
14067  if ${ac_cv_search_opendir+:} false; then :
14068  break
14069fi
14070done
14071if ${ac_cv_search_opendir+:} false; then :
14072
14073else
14074  ac_cv_search_opendir=no
14075fi
14076rm conftest.$ac_ext
14077LIBS=$ac_func_search_save_LIBS
14078fi
14079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
14080$as_echo "$ac_cv_search_opendir" >&6; }
14081ac_res=$ac_cv_search_opendir
14082if test "$ac_res" != no; then :
14083  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14084
14085fi
14086
14087else
14088  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
14089$as_echo_n "checking for library containing opendir... " >&6; }
14090if ${ac_cv_search_opendir+:} false; then :
14091  $as_echo_n "(cached) " >&6
14092else
14093  ac_func_search_save_LIBS=$LIBS
14094cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14095/* end confdefs.h.  */
14096
14097/* Override any GCC internal prototype to avoid an error.
14098   Use char because int might match the return type of a GCC
14099   builtin and then its argument prototype would still apply.  */
14100#ifdef __cplusplus
14101extern "C"
14102#endif
14103char opendir ();
14104int
14105main ()
14106{
14107return opendir ();
14108  ;
14109  return 0;
14110}
14111_ACEOF
14112for ac_lib in '' x; do
14113  if test -z "$ac_lib"; then
14114    ac_res="none required"
14115  else
14116    ac_res=-l$ac_lib
14117    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14118  fi
14119  if ac_fn_c_try_link "$LINENO"; then :
14120  ac_cv_search_opendir=$ac_res
14121fi
14122rm -f core conftest.err conftest.$ac_objext \
14123    conftest$ac_exeext
14124  if ${ac_cv_search_opendir+:} false; then :
14125  break
14126fi
14127done
14128if ${ac_cv_search_opendir+:} false; then :
14129
14130else
14131  ac_cv_search_opendir=no
14132fi
14133rm conftest.$ac_ext
14134LIBS=$ac_func_search_save_LIBS
14135fi
14136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
14137$as_echo "$ac_cv_search_opendir" >&6; }
14138ac_res=$ac_cv_search_opendir
14139if test "$ac_res" != no; then :
14140  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14141
14142fi
14143
14144fi
14145
14146
14147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
14148$as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
14149if ${gcc_cv_header_string+:} false; then :
14150  $as_echo_n "(cached) " >&6
14151else
14152  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14153/* end confdefs.h.  */
14154#include <string.h>
14155#include <strings.h>
14156int
14157main ()
14158{
14159
14160  ;
14161  return 0;
14162}
14163_ACEOF
14164if ac_fn_c_try_compile "$LINENO"; then :
14165  gcc_cv_header_string=yes
14166else
14167  gcc_cv_header_string=no
14168fi
14169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14170fi
14171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
14172$as_echo "$gcc_cv_header_string" >&6; }
14173if test $gcc_cv_header_string = yes; then
14174
14175$as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
14176
14177fi
14178
14179for ac_func in fcntl getpagesize setitimer sysconf fdopen getuid getgid fileno fls
14180do :
14181  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14182ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14183if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14184  cat >>confdefs.h <<_ACEOF
14185#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14186_ACEOF
14187
14188fi
14189done
14190
14191for ac_func in strtoull getrlimit
14192do :
14193  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14194ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14195if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14196  cat >>confdefs.h <<_ACEOF
14197#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14198_ACEOF
14199
14200fi
14201done
14202
14203
14204ac_fn_c_check_decl "$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default"
14205if test "x$ac_cv_have_decl_basename" = xyes; then :
14206  ac_have_decl=1
14207else
14208  ac_have_decl=0
14209fi
14210
14211cat >>confdefs.h <<_ACEOF
14212#define HAVE_DECL_BASENAME $ac_have_decl
14213_ACEOF
14214
14215ac_fn_c_check_decl "$LINENO" "ftello" "ac_cv_have_decl_ftello" "$ac_includes_default"
14216if test "x$ac_cv_have_decl_ftello" = xyes; then :
14217  ac_have_decl=1
14218else
14219  ac_have_decl=0
14220fi
14221
14222cat >>confdefs.h <<_ACEOF
14223#define HAVE_DECL_FTELLO $ac_have_decl
14224_ACEOF
14225
14226ac_fn_c_check_decl "$LINENO" "ftello64" "ac_cv_have_decl_ftello64" "$ac_includes_default"
14227if test "x$ac_cv_have_decl_ftello64" = xyes; then :
14228  ac_have_decl=1
14229else
14230  ac_have_decl=0
14231fi
14232
14233cat >>confdefs.h <<_ACEOF
14234#define HAVE_DECL_FTELLO64 $ac_have_decl
14235_ACEOF
14236
14237ac_fn_c_check_decl "$LINENO" "fseeko" "ac_cv_have_decl_fseeko" "$ac_includes_default"
14238if test "x$ac_cv_have_decl_fseeko" = xyes; then :
14239  ac_have_decl=1
14240else
14241  ac_have_decl=0
14242fi
14243
14244cat >>confdefs.h <<_ACEOF
14245#define HAVE_DECL_FSEEKO $ac_have_decl
14246_ACEOF
14247
14248ac_fn_c_check_decl "$LINENO" "fseeko64" "ac_cv_have_decl_fseeko64" "$ac_includes_default"
14249if test "x$ac_cv_have_decl_fseeko64" = xyes; then :
14250  ac_have_decl=1
14251else
14252  ac_have_decl=0
14253fi
14254
14255cat >>confdefs.h <<_ACEOF
14256#define HAVE_DECL_FSEEKO64 $ac_have_decl
14257_ACEOF
14258
14259
14260
14261case "${host}" in
14262*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
14263
14264$as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
14265 ;;
14266esac
14267
14268ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
14269if test "x$ac_cv_have_decl_ffs" = xyes; then :
14270  ac_have_decl=1
14271else
14272  ac_have_decl=0
14273fi
14274
14275cat >>confdefs.h <<_ACEOF
14276#define HAVE_DECL_FFS $ac_have_decl
14277_ACEOF
14278
14279ac_fn_c_check_decl "$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
14280if test "x$ac_cv_have_decl_free" = xyes; then :
14281  ac_have_decl=1
14282else
14283  ac_have_decl=0
14284fi
14285
14286cat >>confdefs.h <<_ACEOF
14287#define HAVE_DECL_FREE $ac_have_decl
14288_ACEOF
14289
14290ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
14291if test "x$ac_cv_have_decl_getenv" = xyes; then :
14292  ac_have_decl=1
14293else
14294  ac_have_decl=0
14295fi
14296
14297cat >>confdefs.h <<_ACEOF
14298#define HAVE_DECL_GETENV $ac_have_decl
14299_ACEOF
14300
14301ac_fn_c_check_decl "$LINENO" "malloc" "ac_cv_have_decl_malloc" "$ac_includes_default"
14302if test "x$ac_cv_have_decl_malloc" = xyes; then :
14303  ac_have_decl=1
14304else
14305  ac_have_decl=0
14306fi
14307
14308cat >>confdefs.h <<_ACEOF
14309#define HAVE_DECL_MALLOC $ac_have_decl
14310_ACEOF
14311
14312ac_fn_c_check_decl "$LINENO" "realloc" "ac_cv_have_decl_realloc" "$ac_includes_default"
14313if test "x$ac_cv_have_decl_realloc" = xyes; then :
14314  ac_have_decl=1
14315else
14316  ac_have_decl=0
14317fi
14318
14319cat >>confdefs.h <<_ACEOF
14320#define HAVE_DECL_REALLOC $ac_have_decl
14321_ACEOF
14322
14323ac_fn_c_check_decl "$LINENO" "stpcpy" "ac_cv_have_decl_stpcpy" "$ac_includes_default"
14324if test "x$ac_cv_have_decl_stpcpy" = xyes; then :
14325  ac_have_decl=1
14326else
14327  ac_have_decl=0
14328fi
14329
14330cat >>confdefs.h <<_ACEOF
14331#define HAVE_DECL_STPCPY $ac_have_decl
14332_ACEOF
14333
14334ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
14335if test "x$ac_cv_have_decl_strstr" = xyes; then :
14336  ac_have_decl=1
14337else
14338  ac_have_decl=0
14339fi
14340
14341cat >>confdefs.h <<_ACEOF
14342#define HAVE_DECL_STRSTR $ac_have_decl
14343_ACEOF
14344
14345ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
14346if test "x$ac_cv_have_decl_asprintf" = xyes; then :
14347  ac_have_decl=1
14348else
14349  ac_have_decl=0
14350fi
14351
14352cat >>confdefs.h <<_ACEOF
14353#define HAVE_DECL_ASPRINTF $ac_have_decl
14354_ACEOF
14355
14356ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
14357if test "x$ac_cv_have_decl_vasprintf" = xyes; then :
14358  ac_have_decl=1
14359else
14360  ac_have_decl=0
14361fi
14362
14363cat >>confdefs.h <<_ACEOF
14364#define HAVE_DECL_VASPRINTF $ac_have_decl
14365_ACEOF
14366
14367ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
14368if test "x$ac_cv_have_decl_snprintf" = xyes; then :
14369  ac_have_decl=1
14370else
14371  ac_have_decl=0
14372fi
14373
14374cat >>confdefs.h <<_ACEOF
14375#define HAVE_DECL_SNPRINTF $ac_have_decl
14376_ACEOF
14377
14378ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
14379if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
14380  ac_have_decl=1
14381else
14382  ac_have_decl=0
14383fi
14384
14385cat >>confdefs.h <<_ACEOF
14386#define HAVE_DECL_VSNPRINTF $ac_have_decl
14387_ACEOF
14388
14389ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
14390if test "x$ac_cv_have_decl_strnlen" = xyes; then :
14391  ac_have_decl=1
14392else
14393  ac_have_decl=0
14394fi
14395
14396cat >>confdefs.h <<_ACEOF
14397#define HAVE_DECL_STRNLEN $ac_have_decl
14398_ACEOF
14399
14400
14401# Link in zlib if we can.  This allows us to read compressed debug sections.
14402# This is used only by compress.c.
14403
14404  # Use the system's zlib library.
14405  zlibdir="-L\$(top_builddir)/../zlib"
14406  zlibinc="-I\$(top_srcdir)/../zlib"
14407
14408# Check whether --with-system-zlib was given.
14409if test "${with_system_zlib+set}" = set; then :
14410  withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
14411    zlibdir=
14412    zlibinc=
14413  fi
14414
14415fi
14416
14417
14418
14419
14420
14421save_CFLAGS="$CFLAGS"
14422CFLAGS="$CFLAGS -Werror"
14423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler support for hidden visibility" >&5
14424$as_echo_n "checking compiler support for hidden visibility... " >&6; }
14425if ${bfd_cv_hidden+:} false; then :
14426  $as_echo_n "(cached) " >&6
14427else
14428  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14429/* end confdefs.h.  */
14430
14431const char hw[] __attribute__ ((__visibility__ ("hidden"))) = "Hello, World\n";
14432extern void print (const char *) __attribute__ ((__visibility__ ("hidden")));
14433int
14434main ()
14435{
14436print (hw);
14437  ;
14438  return 0;
14439}
14440_ACEOF
14441if ac_fn_c_try_compile "$LINENO"; then :
14442  bfd_cv_hidden=yes
14443else
14444  bfd_cv_hidden=no
14445fi
14446rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14447fi
14448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_hidden" >&5
14449$as_echo "$bfd_cv_hidden" >&6; }
14450CFLAGS="$save_CFLAGS"
14451if test $bfd_cv_hidden = yes; then
14452
14453$as_echo "#define HAVE_HIDDEN 1" >>confdefs.h
14454
14455fi
14456
14457# Check if linker supports --as-needed and --no-as-needed options
14458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
14459$as_echo_n "checking linker --as-needed support... " >&6; }
14460if ${bfd_cv_ld_as_needed+:} false; then :
14461  $as_echo_n "(cached) " >&6
14462else
14463  bfd_cv_ld_as_needed=no
14464	if $LD --help 2>/dev/null | grep as-needed > /dev/null; then
14465		bfd_cv_ld_as_needed=yes
14466	fi
14467
14468fi
14469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_ld_as_needed" >&5
14470$as_echo "$bfd_cv_ld_as_needed" >&6; }
14471
14472LIBM=
14473case $host in
14474*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
14475  # These system don't have libm, or don't need it
14476  ;;
14477*-ncr-sysv4.3*)
14478  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
14479$as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
14480if ${ac_cv_lib_mw__mwvalidcheckl+:} false; then :
14481  $as_echo_n "(cached) " >&6
14482else
14483  ac_check_lib_save_LIBS=$LIBS
14484LIBS="-lmw  $LIBS"
14485cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14486/* end confdefs.h.  */
14487
14488/* Override any GCC internal prototype to avoid an error.
14489   Use char because int might match the return type of a GCC
14490   builtin and then its argument prototype would still apply.  */
14491#ifdef __cplusplus
14492extern "C"
14493#endif
14494char _mwvalidcheckl ();
14495int
14496main ()
14497{
14498return _mwvalidcheckl ();
14499  ;
14500  return 0;
14501}
14502_ACEOF
14503if ac_fn_c_try_link "$LINENO"; then :
14504  ac_cv_lib_mw__mwvalidcheckl=yes
14505else
14506  ac_cv_lib_mw__mwvalidcheckl=no
14507fi
14508rm -f core conftest.err conftest.$ac_objext \
14509    conftest$ac_exeext conftest.$ac_ext
14510LIBS=$ac_check_lib_save_LIBS
14511fi
14512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
14513$as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
14514if test "x$ac_cv_lib_mw__mwvalidcheckl" = xyes; then :
14515  LIBM="-lmw"
14516fi
14517
14518  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
14519$as_echo_n "checking for cos in -lm... " >&6; }
14520if ${ac_cv_lib_m_cos+:} false; then :
14521  $as_echo_n "(cached) " >&6
14522else
14523  ac_check_lib_save_LIBS=$LIBS
14524LIBS="-lm  $LIBS"
14525cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14526/* end confdefs.h.  */
14527
14528/* Override any GCC internal prototype to avoid an error.
14529   Use char because int might match the return type of a GCC
14530   builtin and then its argument prototype would still apply.  */
14531#ifdef __cplusplus
14532extern "C"
14533#endif
14534char cos ();
14535int
14536main ()
14537{
14538return cos ();
14539  ;
14540  return 0;
14541}
14542_ACEOF
14543if ac_fn_c_try_link "$LINENO"; then :
14544  ac_cv_lib_m_cos=yes
14545else
14546  ac_cv_lib_m_cos=no
14547fi
14548rm -f core conftest.err conftest.$ac_objext \
14549    conftest$ac_exeext conftest.$ac_ext
14550LIBS=$ac_check_lib_save_LIBS
14551fi
14552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
14553$as_echo "$ac_cv_lib_m_cos" >&6; }
14554if test "x$ac_cv_lib_m_cos" = xyes; then :
14555  LIBM="$LIBM -lm"
14556fi
14557
14558  ;;
14559*)
14560  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
14561$as_echo_n "checking for cos in -lm... " >&6; }
14562if ${ac_cv_lib_m_cos+:} false; then :
14563  $as_echo_n "(cached) " >&6
14564else
14565  ac_check_lib_save_LIBS=$LIBS
14566LIBS="-lm  $LIBS"
14567cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14568/* end confdefs.h.  */
14569
14570/* Override any GCC internal prototype to avoid an error.
14571   Use char because int might match the return type of a GCC
14572   builtin and then its argument prototype would still apply.  */
14573#ifdef __cplusplus
14574extern "C"
14575#endif
14576char cos ();
14577int
14578main ()
14579{
14580return cos ();
14581  ;
14582  return 0;
14583}
14584_ACEOF
14585if ac_fn_c_try_link "$LINENO"; then :
14586  ac_cv_lib_m_cos=yes
14587else
14588  ac_cv_lib_m_cos=no
14589fi
14590rm -f core conftest.err conftest.$ac_objext \
14591    conftest$ac_exeext conftest.$ac_ext
14592LIBS=$ac_check_lib_save_LIBS
14593fi
14594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
14595$as_echo "$ac_cv_lib_m_cos" >&6; }
14596if test "x$ac_cv_lib_m_cos" = xyes; then :
14597  LIBM="-lm"
14598fi
14599
14600  ;;
14601esac
14602
14603
14604
14605# When building a shared libbfd, link against the pic version of libiberty
14606# so that apps that use libbfd won't need libiberty just to satisfy any
14607# libbfd references.
14608# We can't do that if a pic libiberty is unavailable since including non-pic
14609# code would insert text relocations into libbfd.
14610SHARED_LIBADD=
14611SHARED_LDFLAGS=
14612if test "$enable_shared" = "yes"; then
14613  x=`sed -n -e 's/^[ 	]*PICFLAG[ 	]*=[ 	]*//p' < ../libiberty/Makefile | sed -n '$p'`
14614  if test -n "$x"; then
14615    SHARED_LIBADD="-L`pwd`/../libiberty/pic -liberty"
14616  fi
14617
14618  case "${host}" in
14619  # More hacks to build DLLs on Windows.
14620  *-*-cygwin*)
14621    SHARED_LDFLAGS="-no-undefined"
14622    SHARED_LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
14623  ;;
14624
14625  # Use built-in libintl on macOS, since it is not provided by libc.
14626  *-*-darwin*)
14627    SHARED_LIBADD="-L`pwd`/../libiberty/pic -L`pwd`/../intl -liberty -lintl"
14628  ;;
14629  esac
14630
14631  if test -n "$SHARED_LIBADD"; then
14632    if test -n "$LIBM"; then
14633      if test x"$bfd_cv_ld_as_needed" = xyes; then
14634	# Link against libm only when needed.  Put -lc, -lm inside -Wl
14635	# to stop libtool reordering these options.
14636	SHARED_LIBADD="$SHARED_LIBADD -Wl,-lc,--as-needed,`echo $LIBM | sed 's/ /,/g'`,--no-as-needed"
14637      else
14638	SHARED_LIBADD="$SHARED_LIBADD $LIBM"
14639      fi
14640    fi
14641  fi
14642fi
14643
14644
14645
14646# target stuff:
14647
14648# Canonicalize the secondary target names.
14649if test -n "$enable_targets" ; then
14650    for targ in `echo $enable_targets | sed 's/,/ /g'`
14651    do
14652	result=`$ac_config_sub $targ 2>/dev/null`
14653	if test -n "$result" ; then
14654	    canon_targets="$canon_targets $result"
14655	else
14656	    # Allow targets that config.sub doesn't recognize, like "all".
14657	    canon_targets="$canon_targets $targ"
14658	fi
14659    done
14660fi
14661
14662all_targets=false
14663defvec=
14664selvecs=
14665assocvecs=
14666selarchs=
14667TDEFINES=
14668for targ in $target $canon_targets
14669do
14670    if test $targ = all; then
14671        all_targets=true
14672	assocvecs="$assocvecs $targ_defvec $targ_selvecs"
14673    elif test $targ != plugin; then
14674	. $srcdir/config.bfd
14675	if test $targ = $target; then
14676	    defvec=$targ_defvec
14677	fi
14678	selvecs="$selvecs $targ_defvec $targ_selvecs"
14679	selarchs="$selarchs $targ_archs"
14680	TDEFINES="$TDEFINES $targ_cflags"
14681    fi
14682done
14683
14684
14685# This processing still needs to be done if we're to decide properly whether
14686# 64-bit support needs to be compiled in.  Currently, it will be included if
14687# the default or any other explicitly requested target requires it; it
14688# will not be included on a 32-bit host if no 64-bit target is requested, and
14689# no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
14690# used.
14691
14692# uniq the default and selected vectors in all the configured targets.
14693f=""
14694for i in $selvecs ; do
14695    case " $f " in
14696    *" $i "*) ;;
14697    *) f="$f $i" ;;
14698    esac
14699done
14700selvecs="$f"
14701
14702
14703# uniq the associated vectors in all the configured targets.
14704f=""
14705for i in $assocvecs ; do
14706    case " $f " in
14707    *" $i "*) ;;
14708    *) f="$f $i" ;;
14709    esac
14710done
14711assocvecs="$f"
14712
14713
14714# uniq the architectures in all the configured targets.
14715f=""
14716for i in $selarchs ; do
14717    case " $f " in
14718    *" $i "*) ;;
14719    *) f="$f $i" ;;
14720    esac
14721done
14722selarchs="$f"
14723
14724# Target backend .o files.
14725tb=
14726
14727elf="elf.lo elflink.lo elf-attrs.lo elf-strtab.lo elf-eh-frame.lo
14728     dwarf1.lo dwarf2.lo"
14729coffgen="coffgen.lo dwarf2.lo"
14730coff="cofflink.lo $coffgen"
14731ecoff="ecofflink.lo $coffgen"
14732xcoff="xcofflink.lo $coffgen"
14733
14734elfxx_x86="elfxx-x86.lo elf-ifunc.lo elf-vxworks.lo"
14735for vec in $selvecs
14736do
14737    target_size=32
14738    case "$vec" in
14739    # This list is alphabetized to make it easy to compare
14740    # with the two vector lists in targets.c.  For the same reason,
14741    # use one entry per line, even though this leads to long lines.
14742    aarch64_elf32_be_vec)	 tb="$tb elf32-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf32.lo $elf"; target_size=64 ;;
14743    aarch64_elf32_le_vec)	 tb="$tb elf32-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf32.lo $elf"; target_size=64 ;;
14744    aarch64_elf64_be_vec)	   tb="$tb elf64-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
14745    aarch64_elf64_be_cloudabi_vec) tb="$tb elf64-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
14746    aarch64_elf64_le_vec)	   tb="$tb elf64-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
14747    aarch64_elf64_le_cloudabi_vec) tb="$tb elf64-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
14748    aarch64_mach_o_vec)		 tb="$tb mach-o-aarch64.lo"; target_size=64 ;;
14749    alpha_ecoff_le_vec)		 tb="$tb coff-alpha.lo ecoff.lo $ecoff"; target_size=64 ;;
14750    alpha_elf64_vec)		 tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
14751    alpha_elf64_fbsd_vec)	 tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
14752    alpha_vms_vec)		 tb="$tb vms-alpha.lo vms-misc.lo vms-lib.lo"; target_size=64 ;;
14753    alpha_vms_lib_txt_vec)	 tb="$tb vms-lib.lo vms-misc.lo" ;;
14754    am33_elf32_linux_vec)	 tb="$tb elf32-am33lin.lo elf32.lo $elf" ;;
14755    aout0_be_vec)		 tb="$tb aout0.lo aout32.lo" ;;
14756    aout64_vec)			 tb="$tb demo64.lo aout64.lo"; target_size=64 ;;
14757    aout_vec)			 tb="$tb host-aout.lo aout32.lo" ;;
14758    arc_elf32_be_vec)		 tb="$tb elf32-arc.lo elf32.lo $elf" ;;
14759    arc_elf32_le_vec)		 tb="$tb elf32-arc.lo elf32.lo $elf" ;;
14760    arm_elf32_be_vec)		 tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
14761    arm_elf32_le_vec)		 tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
14762    arm_elf32_fdpic_be_vec)	 tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
14763    arm_elf32_fdpic_le_vec)	 tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
14764    arm_elf32_nacl_be_vec)	 tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
14765    arm_elf32_nacl_le_vec)	 tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
14766    arm_elf32_symbian_be_vec)	 tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
14767    arm_elf32_symbian_le_vec)	 tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
14768    arm_elf32_vxworks_be_vec)	 tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
14769    arm_elf32_vxworks_le_vec)	 tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
14770    arm_pe_be_vec)		 tb="$tb pe-arm.lo peigen.lo $coff" ;;
14771    arm_pe_le_vec)		 tb="$tb pe-arm.lo peigen.lo $coff" ;;
14772    arm_pe_wince_be_vec)	 tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo $coff" ;;
14773    arm_pe_wince_le_vec)	 tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo $coff" ;;
14774    arm_pei_be_vec)		 tb="$tb pei-arm.lo peigen.lo $coff" ;;
14775    arm_pei_le_vec)		 tb="$tb pei-arm.lo peigen.lo $coff" ;;
14776    arm_pei_wince_be_vec)	 tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo $coff" ;;
14777    arm_pei_wince_le_vec)	 tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo $coff" ;;
14778    arm_mach_o_vec)		 tb="$tb mach-o-arm.lo" ;;
14779    avr_elf32_vec)		 tb="$tb elf32-avr.lo elf32.lo $elf" ;;
14780    bfin_elf32_vec)		 tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
14781    bfin_elf32_fdpic_vec)	 tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
14782    cr16_elf32_vec)		 tb="$tb elf32-cr16.lo elf32.lo $elf" ;;
14783    cris_aout_vec)		 tb="$tb aout-cris.lo" ;;
14784    cris_elf32_vec)		 tb="$tb elf32-cris.lo elf32.lo $elf" ;;
14785    cris_elf32_us_vec)		 tb="$tb elf32-cris.lo elf32.lo $elf" ;;
14786    crx_elf32_vec)		 tb="$tb elf32-crx.lo elf32.lo $elf" ;;
14787    csky_elf32_be_vec)		 tb="$tb elf32-csky.lo elf32.lo $elf" ;;
14788    csky_elf32_le_vec)		 tb="$tb elf32-csky.lo elf32.lo $elf" ;;
14789    d10v_elf32_vec)		 tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
14790    d30v_elf32_vec)		 tb="$tb elf32-d30v.lo elf32.lo $elf" ;;
14791    dlx_elf32_be_vec)		 tb="$tb elf32-dlx.lo elf32.lo $elf" ;;
14792    elf32_be_vec)		 tb="$tb elf32-gen.lo elf32.lo $elf" ;;
14793    elf32_le_vec)		 tb="$tb elf32-gen.lo elf32.lo $elf" ;;
14794    elf64_be_vec)		 tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
14795    elf64_le_vec)		 tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
14796    bpf_elf64_le_vec)		 tb="$tb elf64-bpf.lo elf64.lo $elf"; target_size=64;;
14797    bpf_elf64_be_vec)		 tb="$tb elf64-bpf.lo elf64.lo $elf"; target_size=64 ;;
14798    epiphany_elf32_vec)		 tb="$tb elf32-epiphany.lo elf32.lo $elf" ;;
14799    fr30_elf32_vec)		 tb="$tb elf32-fr30.lo elf32.lo $elf" ;;
14800    frv_elf32_vec)		 tb="$tb elf32-frv.lo elf32.lo $elf" ;;
14801    frv_elf32_fdpic_vec)	 tb="$tb elf32-frv.lo elf32.lo $elf" ;;
14802    h8300_elf32_vec)		 tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
14803    h8300_elf32_linux_vec)	 tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
14804    hppa_elf32_vec)		 tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
14805    hppa_elf32_linux_vec)	 tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
14806    hppa_elf32_nbsd_vec)	 tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
14807    hppa_elf64_vec)		 tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
14808    hppa_elf64_linux_vec)	 tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
14809    hppa_som_vec)		 tb="$tb som.lo" ;;
14810    i386_aout_vec)		 tb="$tb i386aout.lo aout32.lo" ;;
14811    i386_aout_bsd_vec)		 tb="$tb i386bsd.lo aout32.lo" ;;
14812    i386_aout_lynx_vec)		 tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
14813    i386_coff_vec)		 tb="$tb coff-i386.lo $coff" ;;
14814    i386_coff_go32_vec)		 tb="$tb coff-go32.lo $coff" ;;
14815    i386_coff_go32stubbed_vec)	 tb="$tb coff-stgo32.lo $coff" ;;
14816    i386_coff_lynx_vec)		 tb="$tb cf-i386lynx.lo lynx-core.lo $coff" ;;
14817    i386_elf32_vec)		 tb="$tb elf32-i386.lo $elfxx_x86 elf32.lo $elf" ;;
14818    i386_elf32_fbsd_vec)	 tb="$tb elf32-i386.lo $elfxx_x86 elf32.lo $elf" ;;
14819    i386_elf32_sol2_vec)	 tb="$tb elf32-i386.lo $elfxx_x86 elf32.lo $elf" ;;
14820    i386_elf32_vxworks_vec)	 tb="$tb elf32-i386.lo $elfxx_x86 elf32.lo $elf" ;;
14821    i386_mach_o_vec)		 tb="$tb mach-o-i386.lo" ;;
14822    i386_msdos_vec)		 tb="$tb i386msdos.lo" ;;
14823    i386_pe_vec)		 tb="$tb pe-i386.lo peigen.lo $coff" ;;
14824    i386_pe_big_vec)		 tb="$tb pe-i386.lo peigen.lo $coff" ;;
14825    i386_pei_vec)		 tb="$tb pei-i386.lo peigen.lo $coff" ;;
14826    iamcu_elf32_vec)		 tb="$tb elf32-i386.lo $elfxx_x86 elf32.lo $elf" ;;
14827    ia64_elf32_be_vec)		 tb="$tb elf32-ia64.lo elfxx-ia64.lo elf32.lo $elf" ;;
14828    ia64_elf32_hpux_be_vec)	 tb="$tb elf32-ia64.lo elfxx-ia64.lo elf32.lo $elf" ;;
14829    ia64_elf64_be_vec)		 tb="$tb elf64-ia64.lo elfxx-ia64.lo elf64.lo $elf"; target_size=64 ;;
14830    ia64_elf64_le_vec)		 tb="$tb elf64-ia64.lo elfxx-ia64.lo elf64.lo $elf"; target_size=64 ;;
14831    ia64_elf64_hpux_be_vec)	 tb="$tb elf64-ia64.lo elfxx-ia64.lo elf64.lo $elf"; target_size=64 ;;
14832    ia64_elf64_vms_vec)		 tb="$tb elf64-ia64-vms.lo elf64-ia64.lo elfxx-ia64.lo elf64.lo vms-lib.lo vms-misc.lo $elf"; target_size=64 ;;
14833    ia64_pei_vec)		 tb="$tb pei-ia64.lo pepigen.lo $coff"; target_size=64 ;;
14834    ip2k_elf32_vec)		 tb="$tb elf32-ip2k.lo elf32.lo $elf" ;;
14835    iq2000_elf32_vec)		 tb="$tb elf32-iq2000.lo elf32.lo $elf" ;;
14836    k1om_elf64_vec)		 tb="$tb elf64-x86-64.lo elfxx-x86.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
14837    k1om_elf64_fbsd_vec)	 tb="$tb elf64-x86-64.lo elfxx-x86.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
14838    l1om_elf64_vec)		 tb="$tb elf64-x86-64.lo elfxx-x86.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
14839    l1om_elf64_fbsd_vec)	 tb="$tb elf64-x86-64.lo elfxx-x86.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
14840    lm32_elf32_vec)		 tb="$tb elf32-lm32.lo elf32.lo $elf" ;;
14841    lm32_elf32_fdpic_vec)	 tb="$tb elf32-lm32.lo elf32.lo $elf" ;;
14842    m32c_elf32_vec)		 tb="$tb elf32-m32c.lo elf32.lo $elf" ;;
14843    m32r_elf32_vec)		 tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
14844    m32r_elf32_le_vec)		 tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
14845    m32r_elf32_linux_vec)	 tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
14846    m32r_elf32_linux_le_vec)	 tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
14847    m68hc11_elf32_vec)		 tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
14848    m68hc12_elf32_vec)		 tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
14849    m68k_elf32_vec)		 tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
14850    s12z_elf32_vec)		 tb="$tb elf32-s12z.lo elf32.lo $elf" ;;
14851    mach_o_be_vec)		 tb="$tb mach-o.lo dwarf2.lo" ;;
14852    mach_o_le_vec)		 tb="$tb mach-o.lo dwarf2.lo" ;;
14853    mach_o_fat_vec)		 tb="$tb mach-o.lo dwarf2.lo" ;;
14854    mcore_elf32_be_vec)		 tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
14855    mcore_elf32_le_vec)		 tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
14856    mcore_pe_be_vec)		 tb="$tb pe-mcore.lo peigen.lo $coff" ;;
14857    mcore_pe_le_vec)		 tb="$tb pe-mcore.lo peigen.lo $coff" ;;
14858    mcore_pei_be_vec)		 tb="$tb pei-mcore.lo peigen.lo $coff" ;;
14859    mcore_pei_le_vec)		 tb="$tb pei-mcore.lo peigen.lo $coff" ;;
14860    mep_elf32_vec)		 tb="$tb elf32-mep.lo elf32.lo $elf" ;;
14861    mep_elf32_le_vec)		 tb="$tb elf32-mep.lo elf32.lo $elf" ;;
14862    metag_elf32_vec)		 tb="$tb elf32-metag.lo elf32.lo $elf" ;;
14863    microblaze_elf32_vec)	 tb="$tb elf32-microblaze.lo elf32.lo $elf" ;;
14864    microblaze_elf32_le_vec)	 tb="$tb elf32-microblaze.lo elf32.lo $elf" ;;
14865    mips_ecoff_be_vec)		 tb="$tb coff-mips.lo ecoff.lo $ecoff" ;;
14866    mips_ecoff_le_vec)		 tb="$tb coff-mips.lo ecoff.lo $ecoff" ;;
14867    mips_ecoff_bele_vec)	 tb="$tb coff-mips.lo ecoff.lo $ecoff" ;;
14868    mips_elf32_be_vec)		 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
14869    mips_elf32_le_vec)		 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
14870    mips_elf32_n_be_vec)	 tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
14871    mips_elf32_n_le_vec)	 tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
14872    mips_elf32_ntrad_be_vec)	 tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
14873    mips_elf32_ntrad_le_vec)	 tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
14874    mips_elf32_ntradfbsd_be_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
14875    mips_elf32_ntradfbsd_le_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
14876    mips_elf32_trad_be_vec)	 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
14877    mips_elf32_trad_le_vec)	 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
14878    mips_elf32_tradfbsd_be_vec)  tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
14879    mips_elf32_tradfbsd_le_vec)  tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
14880    mips_elf32_vxworks_be_vec)	 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
14881    mips_elf32_vxworks_le_vec)	 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
14882    mips_elf64_be_vec)		 tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
14883    mips_elf64_le_vec)		 tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
14884    mips_elf64_trad_be_vec)	 tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
14885    mips_elf64_trad_le_vec)	 tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
14886    mips_elf64_tradfbsd_be_vec)  tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
14887    mips_elf64_tradfbsd_le_vec)  tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
14888    mmix_elf64_vec)		 tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;;
14889    mmix_mmo_vec)			 tb="$tb mmo.lo" target_size=64 ;;
14890    mn10200_elf32_vec)		 tb="$tb elf-m10200.lo elf32.lo $elf" ;;
14891    mn10300_elf32_vec)		 tb="$tb elf-m10300.lo elf32.lo $elf" ;;
14892    moxie_elf32_be_vec)		 tb="$tb elf32-moxie.lo elf32.lo $elf" ;;
14893    moxie_elf32_le_vec)		 tb="$tb elf32-moxie.lo elf32.lo $elf" ;;
14894    msp430_elf32_vec)		 tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
14895    msp430_elf32_ti_vec)	 tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
14896    mt_elf32_vec)		 tb="$tb elf32-mt.lo elf32.lo $elf" ;;
14897    nds32_elf32_be_vec)		 tb="$tb elf32-nds32.lo elf32.lo $elf" ;;
14898    nds32_elf32_le_vec)		 tb="$tb elf32-nds32.lo elf32.lo $elf" ;;
14899    nds32_elf32_linux_be_vec)	 tb="$tb elf32-nds32.lo elf32.lo $elf" ;;
14900    nds32_elf32_linux_le_vec)	 tb="$tb elf32-nds32.lo elf32.lo $elf" ;;
14901    nfp_elf64_vec)		 tb="$tb elf64-nfp.lo elf64.lo $elf" ;;
14902    nios2_elf32_be_vec)		 tb="$tb elf32-nios2.lo elf32.lo $elf" ;;
14903    nios2_elf32_le_vec)		 tb="$tb elf32-nios2.lo elf32.lo $elf" ;;
14904    ns32k_aout_pc532mach_vec)	 tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
14905    ns32k_aout_pc532nbsd_vec)	 tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
14906    or1k_elf32_vec)		 tb="$tb elf32-or1k.lo elf32.lo $elf" ;;
14907    pdp11_aout_vec)		 tb="$tb pdp11.lo" ;;
14908    pef_vec)			 tb="$tb pef.lo" ;;
14909    pef_xlib_vec)		 tb="$tb pef.lo" ;;
14910    pj_elf32_vec)		 tb="$tb elf32-pj.lo elf32.lo $elf" ;;
14911    pj_elf32_le_vec)		 tb="$tb elf32-pj.lo elf32.lo $elf" ;;
14912    powerpc_boot_vec)		 tb="$tb ppcboot.lo" ;;
14913    powerpc_elf32_vec)		 tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
14914    powerpc_elf32_le_vec)	 tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
14915    powerpc_elf32_fbsd_vec)	 tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
14916    powerpc_elf32_vxworks_vec)	 tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
14917    powerpc_elf64_vec)		 tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
14918    powerpc_elf64_le_vec)	 tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
14919    powerpc_elf64_fbsd_vec)	 tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
14920    powerpc_xcoff_vec)		 tb="$tb coff-rs6000.lo $xcoff" ;;
14921    pru_elf32_vec)		 tb="$tb elf32-pru.lo elf32.lo $elf" ;;
14922    riscv_elf32_vec)		 tb="$tb elf32-riscv.lo elfxx-riscv.lo elf32.lo $elf" ;;
14923    riscv_elf64_vec)		 tb="$tb elf64-riscv.lo elf64.lo elfxx-riscv.lo elf32.lo $elf"; target_size=64 ;;
14924    rl78_elf32_vec)		 tb="$tb elf32-rl78.lo elf32.lo $elf" ;;
14925    rs6000_xcoff64_vec)		 tb="$tb coff64-rs6000.lo aix5ppc-core.lo $xcoff"; target_size=64 ;;
14926    rs6000_xcoff64_aix_vec)	 tb="$tb coff64-rs6000.lo aix5ppc-core.lo $xcoff"; target_size=64 ;;
14927    rs6000_xcoff_vec)		 tb="$tb coff-rs6000.lo $xcoff" ;;
14928    rx_elf32_be_vec)		 tb="$tb elf32-rx.lo elf32.lo $elf" ;;
14929    rx_elf32_be_ns_vec)		 tb="$tb elf32-rx.lo elf32.lo $elf" ;;
14930    rx_elf32_le_vec)		 tb="$tb elf32-rx.lo elf32.lo $elf" ;;
14931    rx_elf32_linux_le_vec)	 tb="$tb elf32-rx.lo elf32.lo $elf" ;;
14932    s390_elf32_vec)		 tb="$tb elf32-s390.lo elf32.lo $elf" ;;
14933    s390_elf64_vec)		 tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;;
14934    score_elf32_be_vec)		 tb="$tb elf32-score.lo elf32-score7.lo elf32.lo elf64.lo $elf"; want64=true; target_size=64 ;;
14935    score_elf32_le_vec)		 tb="$tb elf32-score.lo elf32-score7.lo elf32.lo elf64.lo $elf"; want64=true; target_size=64 ;;
14936    sh_coff_vec)		 tb="$tb coff-sh.lo $coff" ;;
14937    sh_coff_le_vec)		 tb="$tb coff-sh.lo $coff" ;;
14938    sh_coff_small_vec)		 tb="$tb coff-sh.lo $coff" ;;
14939    sh_coff_small_le_vec)	 tb="$tb coff-sh.lo $coff" ;;
14940    sh_elf32_vec)		 tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
14941    sh_elf32_le_vec)		 tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
14942    sh_elf32_fdpic_be_vec)	 tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
14943    sh_elf32_fdpic_le_vec)	 tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
14944    sh_elf32_linux_vec)		 tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
14945    sh_elf32_linux_be_vec)	 tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
14946    sh_elf32_nbsd_vec)		 tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
14947    sh_elf32_nbsd_le_vec)	 tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
14948    sh_elf32_vxworks_vec)	 tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
14949    sh_elf32_vxworks_le_vec)	 tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
14950    sh_pe_le_vec)		 tb="$tb pe-sh.lo coff-sh.lo peigen.lo $coff" ;;
14951    sh_pei_le_vec)		 tb="$tb pei-sh.lo coff-sh.lo peigen.lo $coff" ;;
14952    sparc_elf32_vec)		 tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
14953    sparc_elf32_sol2_vec)	 tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
14954    sparc_elf32_vxworks_vec)	 tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
14955    sparc_elf64_vec)		 tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
14956    sparc_elf64_fbsd_vec)	 tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
14957    sparc_elf64_sol2_vec)	 tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
14958    spu_elf32_vec)		 tb="$tb elf32-spu.lo elf32.lo $elf" ;;
14959    sym_vec)			 tb="$tb xsym.lo" ;;
14960    tic30_coff_vec)		 tb="$tb coff-tic30.lo $coffgen" ;;
14961    tic4x_coff0_vec)		 tb="$tb coff-tic4x.lo $coffgen" ;;
14962    tic4x_coff0_beh_vec)	 tb="$tb coff-tic4x.lo $coffgen" ;;
14963    tic4x_coff1_vec)		 tb="$tb coff-tic4x.lo $coffgen" ;;
14964    tic4x_coff1_beh_vec)	 tb="$tb coff-tic4x.lo $coffgen" ;;
14965    tic4x_coff2_vec)		 tb="$tb coff-tic4x.lo $coffgen" ;;
14966    tic4x_coff2_beh_vec)	 tb="$tb coff-tic4x.lo $coffgen" ;;
14967    tic54x_coff0_vec)		 tb="$tb coff-tic54x.lo $coffgen" ;;
14968    tic54x_coff0_beh_vec)	 tb="$tb coff-tic54x.lo $coffgen" ;;
14969    tic54x_coff1_vec)		 tb="$tb coff-tic54x.lo $coffgen" ;;
14970    tic54x_coff1_beh_vec)	 tb="$tb coff-tic54x.lo $coffgen" ;;
14971    tic54x_coff2_vec)		 tb="$tb coff-tic54x.lo $coffgen" ;;
14972    tic54x_coff2_beh_vec)	 tb="$tb coff-tic54x.lo $coffgen" ;;
14973    tic6x_elf32_be_vec)		 tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
14974    tic6x_elf32_le_vec)		 tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
14975    tic6x_elf32_c6000_be_vec)	 tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
14976    tic6x_elf32_c6000_le_vec)	 tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
14977    tic6x_elf32_linux_be_vec)	 tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
14978    tic6x_elf32_linux_le_vec)	 tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
14979    tilegx_elf32_be_vec)	 tb="$tb elf32-tilegx.lo elfxx-tilegx.lo elf32.lo $elf" ; target_size=32 ;;
14980    tilegx_elf32_le_vec)	 tb="$tb elf32-tilegx.lo elfxx-tilegx.lo elf32.lo $elf" ; target_size=32 ;;
14981    tilegx_elf64_be_vec)	 tb="$tb elf64-tilegx.lo elfxx-tilegx.lo elf64.lo $elf" ; target_size=64 ;;
14982    tilegx_elf64_le_vec)	 tb="$tb elf64-tilegx.lo elfxx-tilegx.lo elf64.lo $elf" ; target_size=64 ;;
14983    tilepro_elf32_vec)		 tb="$tb elf32-tilepro.lo elf32.lo $elf" ;;
14984    v800_elf32_vec)		 tb="$tb elf32-v850.lo elf32.lo $elf" ;;
14985    v850_elf32_vec)		 tb="$tb elf32-v850.lo elf32.lo $elf" ;;
14986    vax_aout_1knbsd_vec)	 tb="$tb vax1knetbsd.lo aout32.lo" ;;
14987    vax_aout_nbsd_vec)		 tb="$tb vaxnetbsd.lo aout32.lo" ;;
14988    vax_elf32_vec)		 tb="$tb elf32-vax.lo elf32.lo $elf" ;;
14989    ft32_elf32_vec)		 tb="$tb elf32-ft32.lo elf32.lo $elf" ;;
14990    visium_elf32_vec)		 tb="$tb elf32-visium.lo elf32.lo $elf" ;;
14991    wasm_vec)                    tb="$tb wasm-module.lo" ;;
14992    wasm32_elf32_vec)            tb="$tb elf32-wasm32.lo elf32.lo $elf" ;;
14993    x86_64_coff_vec)		 tb="$tb coff-x86_64.lo $coff"; target_size=64 ;;
14994    x86_64_elf32_vec)		 tb="$tb elf64-x86-64.lo $elfxx_x86 elf64.lo elf32.lo $elf"; target_size=64 ;;
14995    x86_64_elf64_vec)		 tb="$tb elf64-x86-64.lo $elfxx_x86 elf64.lo $elf"; target_size=64 ;;
14996    x86_64_elf64_cloudabi_vec)	 tb="$tb elf64-x86-64.lo $elfxx_x86 elf64.lo $elf"; target_size=64 ;;
14997    x86_64_elf64_fbsd_vec)	 tb="$tb elf64-x86-64.lo $elfxx_x86 elf64.lo $elf"; target_size=64 ;;
14998    x86_64_elf64_sol2_vec)	 tb="$tb elf64-x86-64.lo $elfxx_x86 elf64.lo $elf"; target_size=64 ;;
14999    x86_64_mach_o_vec)		 tb="$tb mach-o-x86-64.lo" ;;
15000    x86_64_pe_vec)		 tb="$tb pe-x86_64.lo pex64igen.lo $coff"; target_size=64 ;;
15001    x86_64_pe_big_vec)		 tb="$tb pe-x86_64.lo pex64igen.lo $coff"; target_size=64 ;;
15002    x86_64_pei_vec)		 tb="$tb pei-x86_64.lo pex64igen.lo $coff"; target_size=64 ;;
15003    xc16x_elf32_vec)		 tb="$tb elf32-xc16x.lo elf32.lo $elf" ;;
15004    xgate_elf32_vec)		 tb="$tb elf32-xgate.lo elf32.lo $elf" ;;
15005    xstormy16_elf32_vec)	 tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;;
15006    xtensa_elf32_be_vec)	 tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
15007    xtensa_elf32_le_vec)	 tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
15008    z80_coff_vec)		 tb="$tb coff-z80.lo reloc16.lo $coffgen" ;;
15009    z80_elf32_vec)		 tb="$tb elf32-z80.lo elf32.lo $elf" ;;
15010    z8k_coff_vec)		 tb="$tb coff-z8k.lo reloc16.lo $coff" ;;
15011
15012    # These appear out of order in targets.c
15013    srec_vec)			 tb="$tb srec.lo" ;;
15014    symbolsrec_vec)		 tb="$tb srec.lo" ;;
15015    tekhex_vec)			 tb="$tb tekhex.lo" ;;
15016    core_cisco_be_vec)		 tb="$tb cisco-core.lo" ;;
15017    core_cisco_le_vec)		 tb="$tb cisco-core.lo" ;;
15018
15019    "")				 ;;
15020    *) as_fn_error $? "*** unknown target vector $vec" "$LINENO" 5 ;;
15021    esac
15022
15023    if test ${target_size} = 64; then
15024	target64=true
15025    fi
15026    if test x"${vec}" = x"${defvec}"; then
15027	bfd_default_target_size=${target_size}
15028    fi
15029done
15030
15031if test "$plugins" = "yes"; then
15032     tb="$tb plugin.lo"
15033fi
15034
15035# Target architecture .o files.
15036# A couple of CPUs use shorter file names to avoid problems on DOS
15037# filesystems.
15038ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
15039
15040# Weed out duplicate .o files.
15041f=""
15042for i in $tb ; do
15043    case " $f " in
15044    *" $i "*) ;;
15045    *) f="$f $i" ;;
15046    esac
15047done
15048tb="$f"
15049
15050f=""
15051for i in $ta ; do
15052    case " $f " in
15053    *" $i "*) ;;
15054    *) f="$f $i" ;;
15055    esac
15056done
15057ta="$f"
15058
15059bfd_backends="$tb"
15060bfd_machines="$ta"
15061
15062if test x${all_targets} = xtrue ; then
15063  bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
15064  bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
15065  selvecs=
15066  havevecs=-DHAVE_all_vecs
15067  selarchs=
15068  test -n "$assocvecs" &&
15069    assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
15070else	# all_targets is true
15071  # Only set these if they will be nonempty, for the clever echo.
15072  havevecs=
15073  assocvecs=
15074  test -n "$selvecs" &&
15075    havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
15076  test -n "$selvecs" &&
15077    selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
15078  test -n "$selarchs" &&
15079    selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
15080fi	# all_targets is true
15081
15082# 64-bit archives need a 64-bit bfd_vma.
15083if test "x$want_64_bit_archive" = xtrue; then
15084  want64=true
15085
15086$as_echo "#define USE_64_BIT_ARCHIVE 1" >>confdefs.h
15087
15088fi
15089
15090case ${host64}-${target64}-${want64} in
15091  *true*)
15092    wordsize=64
15093    bfd64_libs='$(BFD64_LIBS)'
15094    all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
15095    if test $BFD_HOST_64_BIT_DEFINED = 0; then
15096      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You have requested a 64 bit BFD configuration, but" >&5
15097$as_echo "$as_me: WARNING: You have requested a 64 bit BFD configuration, but" >&2;}
15098      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: your compiler may not have a 64 bit integral type" >&5
15099$as_echo "$as_me: WARNING: your compiler may not have a 64 bit integral type" >&2;}
15100    fi
15101    if test -n "$GCC" ; then
15102       bad_64bit_gcc=no;
15103       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc version with buggy 64-bit support" >&5
15104$as_echo_n "checking for gcc version with buggy 64-bit support... " >&6; }
15105       # Add more tests for gcc versions with non-working 64-bit support here.
15106       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15107/* end confdefs.h.  */
15108:__GNUC__:__GNUC_MINOR__:__i386__:
15109_ACEOF
15110if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15111  $EGREP ": 2 : 91 : 1 :" >/dev/null 2>&1; then :
15112  bad_64bit_gcc=yes;
15113		    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes: egcs-1.1.2 on ix86 spotted" >&5
15114$as_echo "yes: egcs-1.1.2 on ix86 spotted" >&6; }
15115else
15116  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15117$as_echo "no" >&6; }
15118fi
15119rm -f conftest*
15120
15121       if test $bad_64bit_gcc = yes ; then
15122	 as_fn_error $? "A newer version of gcc is needed for the requested 64-bit BFD configuration" "$LINENO" 5
15123       fi
15124    fi
15125    ;;
15126  false-false-false)
15127    wordsize=32
15128    all_backends='$(BFD32_BACKENDS)'
15129    ;;
15130esac
15131
15132tdefaults=""
15133test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
15134test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
15135test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'"
15136test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
15137
15138
15139
15140
15141
15142
15143
15144
15145
15146
15147# If we are configured native, pick a core file support file.
15148COREFILE=
15149COREFLAG=
15150CORE_HEADER=
15151TRAD_HEADER=
15152if test "${target}" = "${host}"; then
15153  case "${host}" in
15154  alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu | alpha*-*-*vms*)
15155	COREFILE=''
15156	;;
15157  alpha*-*-linux-*)
15158	COREFILE=trad-core.lo
15159	TRAD_HEADER='"hosts/alphalinux.h"'
15160	;;
15161  alpha*-*-netbsd* | alpha*-*-openbsd*)
15162	COREFILE=netbsd-core.lo
15163	;;
15164  alpha*-*-*)
15165        COREFILE=osf-core.lo
15166	;;
15167  arm-*-freebsd* | arm-*-kfreebsd*-gnu)
15168	COREFILE='' ;;
15169  arm*-*-netbsd* | arm-*-openbsd*)
15170	COREFILE=netbsd-core.lo
15171	;;
15172  arm-*-riscix)		COREFILE=trad-core.lo ;;
15173  hppa*-*-hpux*)	COREFILE=hpux-core.lo ;;
15174  hppa*-*-hiux*)	COREFILE=hpux-core.lo ;;
15175  hppa*-*-mpeix*)	COREFILE=hpux-core.lo ;;
15176  hppa*-*-bsd*)		COREFILE="hpux-core.lo hppabsd-core.lo"
15177			COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
15178  hppa*-*-netbsd* | hppa*-*-openbsd*)
15179	COREFILE=netbsd-core.lo
15180	;;
15181
15182  i[3-7]86-sequent-bsd*)
15183	COREFILE=trad-core.lo
15184	TRAD_HEADER='"hosts/symmetry.h"'
15185	;;
15186  i[3-7]86-sequent-sysv4*) ;;
15187  i[3-7]86-sequent-sysv*)
15188	COREFILE=trad-core.lo
15189	TRAD_HEADER='"hosts/symmetry.h"'
15190	;;
15191  i[3-7]86-*-bsdi)
15192	COREFILE=
15193	;;
15194  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*)
15195	COREFILE=trad-core.lo
15196	TRAD_HEADER='"hosts/i386bsd.h"'
15197	;;
15198  i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu | i[3-7]86-*-dragonfly*)
15199	COREFILE=''
15200	TRAD_HEADER='"hosts/i386bsd.h"'
15201	;;
15202  i[3-7]86-*-netbsd* | i[3-7]86-*-knetbsd*-gnu | i[3-7]86-*-openbsd*)
15203	COREFILE=netbsd-core.lo
15204	;;
15205  i[3-7]86-esix-sysv3*)
15206	COREFILE=trad-core.lo
15207	TRAD_HEADER='"hosts/esix.h"'
15208	;;
15209  i[3-7]86-*-sco3.2v5*)
15210	COREFILE=sco5-core.lo
15211	;;
15212  i[3-7]86-*-sco* | i[3-7]86-*-isc*)
15213	COREFILE=trad-core.lo
15214	TRAD_HEADER='"hosts/i386sco.h"'
15215	;;
15216  i[3-7]86-*-mach3*)
15217	COREFILE=trad-core.lo
15218	TRAD_HEADER='"hosts/i386mach3.h"'
15219	;;
15220  i[3-7]86-*-linux-*)
15221	COREFILE=trad-core.lo
15222	TRAD_HEADER='"hosts/i386linux.h"'
15223	case "$enable_targets"-"$want64" in
15224	*x86_64-*linux*|*-true)
15225	  CORE_HEADER='"hosts/x86-64linux.h"'
15226	esac
15227	;;
15228  i[3-7]86-*-isc*)	COREFILE=trad-core.lo ;;
15229  i[3-7]86-*-aix*)	COREFILE=aix386-core.lo ;;
15230  mips*-*-netbsd* | mips*-*-openbsd*)
15231	COREFILE=netbsd-core.lo
15232	;;
15233  mips-sgi-irix4*)	COREFILE=irix-core.lo ;;
15234  mips-sgi-irix5*)	COREFILE=irix-core.lo ;;
15235  mips-sgi-irix6*)	COREFILE=irix-core.lo ;;
15236  m68*-*-linux-*)
15237	COREFILE=trad-core.lo
15238	TRAD_HEADER='"hosts/m68klinux.h"'
15239	;;
15240  m68*-*-netbsd*)
15241	COREFILE=netbsd-core.lo
15242	;;
15243  ns32k-pc532-mach)
15244	COREFILE=trad-core.lo
15245	TRAD_HEADER='"hosts/pc532mach.h"'
15246	;;
15247  ns32k-*-netbsd* | ns32k-*-openbsd*)
15248	COREFILE=netbsd-core.lo
15249	;;
15250  riscv*-*-netbsd*)
15251	COREFILE=netbsd-core.lo
15252	;;
15253  rs6000-*-lynx*)
15254	COREFILE=lynx-core.lo
15255	;;
15256  rs6000-*-aix[5-9].* | powerpc-*-aix[5-9].* | powerpc64-*-aix[5-9].*)
15257        COREFILE=rs6000-core.lo
15258	COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE"
15259	;;
15260  rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*)
15261        COREFILE=rs6000-core.lo
15262	COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
15263	# Not all versions of AIX with -DAIX_CORE_DUMPX_CORE
15264	# have c_impl as a member of struct core_dumpx
15265	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for c_impl in struct core_dumpx" >&5
15266$as_echo_n "checking for c_impl in struct core_dumpx... " >&6; }
15267	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15268/* end confdefs.h.  */
15269#include <core.h>
15270int
15271main ()
15272{
15273struct core_dumpx c; c.c_impl = 0;
15274  ;
15275  return 0;
15276}
15277_ACEOF
15278if ac_fn_c_try_compile "$LINENO"; then :
15279
15280$as_echo "#define HAVE_ST_C_IMPL 1" >>confdefs.h
15281
15282	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15283$as_echo "yes" >&6; }
15284else
15285  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15286$as_echo "no" >&6; }
15287fi
15288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15289	;;
15290  rs6000-*-aix4*)	COREFILE=rs6000-core.lo ;;
15291  rs6000-*-*)		COREFILE=rs6000-core.lo ;;
15292  powerpc64-*-aix*)	COREFILE=rs6000-core.lo ;;
15293  powerpc-*-aix4*)	COREFILE=rs6000-core.lo ;;
15294  powerpc-*-aix*)	COREFILE=rs6000-core.lo ;;
15295  powerpc-*-beos*)	;;
15296  powerpc-*-freebsd* | powerpc-*-kfreebsd*-gnu)
15297		        COREFILE='' ;;
15298  powerpc-*-netbsd*)	COREFILE=netbsd-core.lo ;;
15299  powerpc-*-*bsd*)	COREFILE=netbsd-core.lo ;;
15300  s390*-*-*)            COREFILE=trad-core.lo ;;
15301  sh*-*-netbsd* | sh*-*-openbsd*)
15302	COREFILE=netbsd-core.lo
15303	;;
15304  sparc-*-netbsd* | sparc*-*-openbsd*)
15305	COREFILE=netbsd-core.lo
15306	;;
15307  vax-*-netbsd* | vax-*-openbsd*)
15308	COREFILE=netbsd-core.lo
15309	;;
15310  vax-*-ultrix2*)
15311	COREFILE=trad-core.lo
15312	TRAD_HEADER='"hosts/vaxult2.h"'
15313	;;
15314  vax-*-ultrix*)
15315	COREFILE=trad-core.lo
15316	TRAD_HEADER='"hosts/vaxult2.h"'
15317	;;
15318  vax-*-linux-*)
15319	COREFILE=trad-core.lo
15320	TRAD_HEADER='"hosts/vaxlinux.h"'
15321	;;
15322  vax-*-*)
15323	COREFILE=trad-core.lo
15324	TRAD_HEADER='"hosts/vaxbsd.h"'
15325	;;
15326  x86_64-*-linux*)
15327	CORE_HEADER='"hosts/x86-64linux.h"'
15328	;;
15329  x86_64-*-netbsd* | x86_64-*-openbsd*)
15330	COREFILE=netbsd-core.lo
15331	;;
15332  esac
15333
15334  case "$COREFILE" in
15335  aix386-core.lo)	COREFLAG=-DAIX386_CORE ;;
15336  hppabsd-core.lo)	COREFLAG=-DHPPABSD_CORE ;;
15337  hpux-core.lo)		COREFLAG=-DHPUX_CORE ;;
15338  irix-core.lo)		COREFLAG=-DIRIX_CORE ;;
15339  lynx-core.lo)		COREFLAG=-DLYNX_CORE ;;
15340  netbsd-core.lo)	COREFLAG=-DNETBSD_CORE ;;
15341  osf-core.lo)		COREFLAG=-DOSF_CORE ;;
15342  ptrace-core.lo)	COREFLAG=-DPTRACE_CORE ;;
15343  rs6000-core.lo)	COREFLAG="$COREFLAG -DAIX_CORE" ;;
15344  sco5-core.lo)		COREFLAG="$COREFLAG -DSCO5_CORE" ;;
15345  trad-core.lo)		COREFLAG="$COREFLAG -DTRAD_CORE" ;;
15346  esac
15347
15348  # ELF corefile support has several flavors, but all of
15349  # them use something called <sys/procfs.h>
15350
15351$as_echo "#define _STRUCTURED_PROC 1" >>confdefs.h
15352
15353 for ac_header in sys/procfs.h
15354do :
15355  ac_fn_c_check_header_mongrel "$LINENO" "sys/procfs.h" "ac_cv_header_sys_procfs_h" "$ac_includes_default"
15356if test "x$ac_cv_header_sys_procfs_h" = xyes; then :
15357  cat >>confdefs.h <<_ACEOF
15358#define HAVE_SYS_PROCFS_H 1
15359_ACEOF
15360
15361fi
15362
15363done
15364
15365  if test "$ac_cv_header_sys_procfs_h" = yes; then
15366
15367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prstatus_t in sys/procfs.h" >&5
15368$as_echo_n "checking for prstatus_t in sys/procfs.h... " >&6; }
15369 if ${bfd_cv_have_sys_procfs_type_prstatus_t+:} false; then :
15370  $as_echo_n "(cached) " >&6
15371else
15372  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15373/* end confdefs.h.  */
15374
15375#define _SYSCALL32
15376#include <sys/procfs.h>
15377int
15378main ()
15379{
15380prstatus_t avar
15381  ;
15382  return 0;
15383}
15384_ACEOF
15385if ac_fn_c_try_compile "$LINENO"; then :
15386  bfd_cv_have_sys_procfs_type_prstatus_t=yes
15387else
15388  bfd_cv_have_sys_procfs_type_prstatus_t=no
15389
15390fi
15391rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15392fi
15393
15394 if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
15395
15396$as_echo "#define HAVE_PRSTATUS_T 1" >>confdefs.h
15397
15398 fi
15399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prstatus_t" >&5
15400$as_echo "$bfd_cv_have_sys_procfs_type_prstatus_t" >&6; }
15401
15402
15403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prstatus32_t in sys/procfs.h" >&5
15404$as_echo_n "checking for prstatus32_t in sys/procfs.h... " >&6; }
15405 if ${bfd_cv_have_sys_procfs_type_prstatus32_t+:} false; then :
15406  $as_echo_n "(cached) " >&6
15407else
15408  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15409/* end confdefs.h.  */
15410
15411#define _SYSCALL32
15412#include <sys/procfs.h>
15413int
15414main ()
15415{
15416prstatus32_t avar
15417  ;
15418  return 0;
15419}
15420_ACEOF
15421if ac_fn_c_try_compile "$LINENO"; then :
15422  bfd_cv_have_sys_procfs_type_prstatus32_t=yes
15423else
15424  bfd_cv_have_sys_procfs_type_prstatus32_t=no
15425
15426fi
15427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15428fi
15429
15430 if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then
15431
15432$as_echo "#define HAVE_PRSTATUS32_T 1" >>confdefs.h
15433
15434 fi
15435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prstatus32_t" >&5
15436$as_echo "$bfd_cv_have_sys_procfs_type_prstatus32_t" >&6; }
15437
15438
15439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prstatus_t.pr_who in sys/procfs.h" >&5
15440$as_echo_n "checking for prstatus_t.pr_who in sys/procfs.h... " >&6; }
15441 if ${bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who+:} false; then :
15442  $as_echo_n "(cached) " >&6
15443else
15444  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15445/* end confdefs.h.  */
15446
15447#define _SYSCALL32
15448#include <sys/procfs.h>
15449int
15450main ()
15451{
15452prstatus_t avar; void* aref = (void*) &avar.pr_who
15453  ;
15454  return 0;
15455}
15456_ACEOF
15457if ac_fn_c_try_compile "$LINENO"; then :
15458  bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes
15459else
15460  bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no
15461
15462fi
15463rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15464fi
15465
15466 if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then
15467
15468$as_echo "#define HAVE_PRSTATUS_T_PR_WHO 1" >>confdefs.h
15469
15470 fi
15471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&5
15472$as_echo "$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&6; }
15473
15474
15475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prstatus32_t.pr_who in sys/procfs.h" >&5
15476$as_echo_n "checking for prstatus32_t.pr_who in sys/procfs.h... " >&6; }
15477 if ${bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who+:} false; then :
15478  $as_echo_n "(cached) " >&6
15479else
15480  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15481/* end confdefs.h.  */
15482
15483#define _SYSCALL32
15484#include <sys/procfs.h>
15485int
15486main ()
15487{
15488prstatus32_t avar; void* aref = (void*) &avar.pr_who
15489  ;
15490  return 0;
15491}
15492_ACEOF
15493if ac_fn_c_try_compile "$LINENO"; then :
15494  bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes
15495else
15496  bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no
15497
15498fi
15499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15500fi
15501
15502 if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then
15503
15504$as_echo "#define HAVE_PRSTATUS32_T_PR_WHO 1" >>confdefs.h
15505
15506 fi
15507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&5
15508$as_echo "$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&6; }
15509
15510
15511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pstatus_t in sys/procfs.h" >&5
15512$as_echo_n "checking for pstatus_t in sys/procfs.h... " >&6; }
15513 if ${bfd_cv_have_sys_procfs_type_pstatus_t+:} false; then :
15514  $as_echo_n "(cached) " >&6
15515else
15516  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15517/* end confdefs.h.  */
15518
15519#define _SYSCALL32
15520#include <sys/procfs.h>
15521int
15522main ()
15523{
15524pstatus_t avar
15525  ;
15526  return 0;
15527}
15528_ACEOF
15529if ac_fn_c_try_compile "$LINENO"; then :
15530  bfd_cv_have_sys_procfs_type_pstatus_t=yes
15531else
15532  bfd_cv_have_sys_procfs_type_pstatus_t=no
15533
15534fi
15535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15536fi
15537
15538 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
15539
15540$as_echo "#define HAVE_PSTATUS_T 1" >>confdefs.h
15541
15542 fi
15543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
15544$as_echo "$bfd_cv_have_sys_procfs_type_pstatus_t" >&6; }
15545
15546
15547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pxstatus_t in sys/procfs.h" >&5
15548$as_echo_n "checking for pxstatus_t in sys/procfs.h... " >&6; }
15549 if ${bfd_cv_have_sys_procfs_type_pxstatus_t+:} false; then :
15550  $as_echo_n "(cached) " >&6
15551else
15552  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15553/* end confdefs.h.  */
15554
15555#define _SYSCALL32
15556#include <sys/procfs.h>
15557int
15558main ()
15559{
15560pxstatus_t avar
15561  ;
15562  return 0;
15563}
15564_ACEOF
15565if ac_fn_c_try_compile "$LINENO"; then :
15566  bfd_cv_have_sys_procfs_type_pxstatus_t=yes
15567else
15568  bfd_cv_have_sys_procfs_type_pxstatus_t=no
15569
15570fi
15571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15572fi
15573
15574 if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then
15575
15576$as_echo "#define HAVE_PXSTATUS_T 1" >>confdefs.h
15577
15578 fi
15579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pxstatus_t" >&5
15580$as_echo "$bfd_cv_have_sys_procfs_type_pxstatus_t" >&6; }
15581
15582
15583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pstatus32_t in sys/procfs.h" >&5
15584$as_echo_n "checking for pstatus32_t in sys/procfs.h... " >&6; }
15585 if ${bfd_cv_have_sys_procfs_type_pstatus32_t+:} false; then :
15586  $as_echo_n "(cached) " >&6
15587else
15588  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15589/* end confdefs.h.  */
15590
15591#define _SYSCALL32
15592#include <sys/procfs.h>
15593int
15594main ()
15595{
15596pstatus32_t avar
15597  ;
15598  return 0;
15599}
15600_ACEOF
15601if ac_fn_c_try_compile "$LINENO"; then :
15602  bfd_cv_have_sys_procfs_type_pstatus32_t=yes
15603else
15604  bfd_cv_have_sys_procfs_type_pstatus32_t=no
15605
15606fi
15607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15608fi
15609
15610 if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then
15611
15612$as_echo "#define HAVE_PSTATUS32_T 1" >>confdefs.h
15613
15614 fi
15615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pstatus32_t" >&5
15616$as_echo "$bfd_cv_have_sys_procfs_type_pstatus32_t" >&6; }
15617
15618
15619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prpsinfo_t in sys/procfs.h" >&5
15620$as_echo_n "checking for prpsinfo_t in sys/procfs.h... " >&6; }
15621 if ${bfd_cv_have_sys_procfs_type_prpsinfo_t+:} false; then :
15622  $as_echo_n "(cached) " >&6
15623else
15624  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15625/* end confdefs.h.  */
15626
15627#define _SYSCALL32
15628#include <sys/procfs.h>
15629int
15630main ()
15631{
15632prpsinfo_t avar
15633  ;
15634  return 0;
15635}
15636_ACEOF
15637if ac_fn_c_try_compile "$LINENO"; then :
15638  bfd_cv_have_sys_procfs_type_prpsinfo_t=yes
15639else
15640  bfd_cv_have_sys_procfs_type_prpsinfo_t=no
15641
15642fi
15643rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15644fi
15645
15646 if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
15647
15648$as_echo "#define HAVE_PRPSINFO_T 1" >>confdefs.h
15649
15650 fi
15651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prpsinfo_t" >&5
15652$as_echo "$bfd_cv_have_sys_procfs_type_prpsinfo_t" >&6; }
15653
15654
15655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prpsinfo_t.pr_pid in sys/procfs.h" >&5
15656$as_echo_n "checking for prpsinfo_t.pr_pid in sys/procfs.h... " >&6; }
15657 if ${bfd_cv_have_sys_procfs_type_member_prpsinfo_t_pr_pid+:} false; then :
15658  $as_echo_n "(cached) " >&6
15659else
15660  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15661/* end confdefs.h.  */
15662
15663#define _SYSCALL32
15664#include <sys/procfs.h>
15665int
15666main ()
15667{
15668prpsinfo_t avar; void* aref = (void*) &avar.pr_pid
15669  ;
15670  return 0;
15671}
15672_ACEOF
15673if ac_fn_c_try_compile "$LINENO"; then :
15674  bfd_cv_have_sys_procfs_type_member_prpsinfo_t_pr_pid=yes
15675else
15676  bfd_cv_have_sys_procfs_type_member_prpsinfo_t_pr_pid=no
15677
15678fi
15679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15680fi
15681
15682 if test $bfd_cv_have_sys_procfs_type_member_prpsinfo_t_pr_pid = yes; then
15683
15684$as_echo "#define HAVE_PRPSINFO_T_PR_PID 1" >>confdefs.h
15685
15686 fi
15687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_prpsinfo_t_pr_pid" >&5
15688$as_echo "$bfd_cv_have_sys_procfs_type_member_prpsinfo_t_pr_pid" >&6; }
15689
15690
15691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prpsinfo32_t in sys/procfs.h" >&5
15692$as_echo_n "checking for prpsinfo32_t in sys/procfs.h... " >&6; }
15693 if ${bfd_cv_have_sys_procfs_type_prpsinfo32_t+:} false; then :
15694  $as_echo_n "(cached) " >&6
15695else
15696  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15697/* end confdefs.h.  */
15698
15699#define _SYSCALL32
15700#include <sys/procfs.h>
15701int
15702main ()
15703{
15704prpsinfo32_t avar
15705  ;
15706  return 0;
15707}
15708_ACEOF
15709if ac_fn_c_try_compile "$LINENO"; then :
15710  bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes
15711else
15712  bfd_cv_have_sys_procfs_type_prpsinfo32_t=no
15713
15714fi
15715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15716fi
15717
15718 if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then
15719
15720$as_echo "#define HAVE_PRPSINFO32_T 1" >>confdefs.h
15721
15722 fi
15723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&5
15724$as_echo "$bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&6; }
15725
15726
15727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prpsinfo32_t.pr_pid in sys/procfs.h" >&5
15728$as_echo_n "checking for prpsinfo32_t.pr_pid in sys/procfs.h... " >&6; }
15729 if ${bfd_cv_have_sys_procfs_type_member_prpsinfo32_t_pr_pid+:} false; then :
15730  $as_echo_n "(cached) " >&6
15731else
15732  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15733/* end confdefs.h.  */
15734
15735#define _SYSCALL32
15736#include <sys/procfs.h>
15737int
15738main ()
15739{
15740prpsinfo32_t avar; void* aref = (void*) &avar.pr_pid
15741  ;
15742  return 0;
15743}
15744_ACEOF
15745if ac_fn_c_try_compile "$LINENO"; then :
15746  bfd_cv_have_sys_procfs_type_member_prpsinfo32_t_pr_pid=yes
15747else
15748  bfd_cv_have_sys_procfs_type_member_prpsinfo32_t_pr_pid=no
15749
15750fi
15751rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15752fi
15753
15754 if test $bfd_cv_have_sys_procfs_type_member_prpsinfo32_t_pr_pid = yes; then
15755
15756$as_echo "#define HAVE_PRPSINFO32_T_PR_PID 1" >>confdefs.h
15757
15758 fi
15759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_prpsinfo32_t_pr_pid" >&5
15760$as_echo "$bfd_cv_have_sys_procfs_type_member_prpsinfo32_t_pr_pid" >&6; }
15761
15762
15763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psinfo_t in sys/procfs.h" >&5
15764$as_echo_n "checking for psinfo_t in sys/procfs.h... " >&6; }
15765 if ${bfd_cv_have_sys_procfs_type_psinfo_t+:} false; then :
15766  $as_echo_n "(cached) " >&6
15767else
15768  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15769/* end confdefs.h.  */
15770
15771#define _SYSCALL32
15772#include <sys/procfs.h>
15773int
15774main ()
15775{
15776psinfo_t avar
15777  ;
15778  return 0;
15779}
15780_ACEOF
15781if ac_fn_c_try_compile "$LINENO"; then :
15782  bfd_cv_have_sys_procfs_type_psinfo_t=yes
15783else
15784  bfd_cv_have_sys_procfs_type_psinfo_t=no
15785
15786fi
15787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15788fi
15789
15790 if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
15791
15792$as_echo "#define HAVE_PSINFO_T 1" >>confdefs.h
15793
15794 fi
15795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psinfo_t" >&5
15796$as_echo "$bfd_cv_have_sys_procfs_type_psinfo_t" >&6; }
15797
15798
15799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psinfo_t.pr_pid in sys/procfs.h" >&5
15800$as_echo_n "checking for psinfo_t.pr_pid in sys/procfs.h... " >&6; }
15801 if ${bfd_cv_have_sys_procfs_type_member_psinfo_t_pr_pid+:} false; then :
15802  $as_echo_n "(cached) " >&6
15803else
15804  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15805/* end confdefs.h.  */
15806
15807#define _SYSCALL32
15808#include <sys/procfs.h>
15809int
15810main ()
15811{
15812psinfo_t avar; void* aref = (void*) &avar.pr_pid
15813  ;
15814  return 0;
15815}
15816_ACEOF
15817if ac_fn_c_try_compile "$LINENO"; then :
15818  bfd_cv_have_sys_procfs_type_member_psinfo_t_pr_pid=yes
15819else
15820  bfd_cv_have_sys_procfs_type_member_psinfo_t_pr_pid=no
15821
15822fi
15823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15824fi
15825
15826 if test $bfd_cv_have_sys_procfs_type_member_psinfo_t_pr_pid = yes; then
15827
15828$as_echo "#define HAVE_PSINFO_T_PR_PID 1" >>confdefs.h
15829
15830 fi
15831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_psinfo_t_pr_pid" >&5
15832$as_echo "$bfd_cv_have_sys_procfs_type_member_psinfo_t_pr_pid" >&6; }
15833
15834
15835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psinfo32_t in sys/procfs.h" >&5
15836$as_echo_n "checking for psinfo32_t in sys/procfs.h... " >&6; }
15837 if ${bfd_cv_have_sys_procfs_type_psinfo32_t+:} false; then :
15838  $as_echo_n "(cached) " >&6
15839else
15840  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15841/* end confdefs.h.  */
15842
15843#define _SYSCALL32
15844#include <sys/procfs.h>
15845int
15846main ()
15847{
15848psinfo32_t avar
15849  ;
15850  return 0;
15851}
15852_ACEOF
15853if ac_fn_c_try_compile "$LINENO"; then :
15854  bfd_cv_have_sys_procfs_type_psinfo32_t=yes
15855else
15856  bfd_cv_have_sys_procfs_type_psinfo32_t=no
15857
15858fi
15859rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15860fi
15861
15862 if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then
15863
15864$as_echo "#define HAVE_PSINFO32_T 1" >>confdefs.h
15865
15866 fi
15867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psinfo32_t" >&5
15868$as_echo "$bfd_cv_have_sys_procfs_type_psinfo32_t" >&6; }
15869
15870
15871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psinfo32_t.pr_pid in sys/procfs.h" >&5
15872$as_echo_n "checking for psinfo32_t.pr_pid in sys/procfs.h... " >&6; }
15873 if ${bfd_cv_have_sys_procfs_type_member_psinfo32_t_pr_pid+:} false; then :
15874  $as_echo_n "(cached) " >&6
15875else
15876  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15877/* end confdefs.h.  */
15878
15879#define _SYSCALL32
15880#include <sys/procfs.h>
15881int
15882main ()
15883{
15884psinfo32_t avar; void* aref = (void*) &avar.pr_pid
15885  ;
15886  return 0;
15887}
15888_ACEOF
15889if ac_fn_c_try_compile "$LINENO"; then :
15890  bfd_cv_have_sys_procfs_type_member_psinfo32_t_pr_pid=yes
15891else
15892  bfd_cv_have_sys_procfs_type_member_psinfo32_t_pr_pid=no
15893
15894fi
15895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15896fi
15897
15898 if test $bfd_cv_have_sys_procfs_type_member_psinfo32_t_pr_pid = yes; then
15899
15900$as_echo "#define HAVE_PSINFO32_T_PR_PID 1" >>confdefs.h
15901
15902 fi
15903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_psinfo32_t_pr_pid" >&5
15904$as_echo "$bfd_cv_have_sys_procfs_type_member_psinfo32_t_pr_pid" >&6; }
15905
15906
15907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpstatus_t in sys/procfs.h" >&5
15908$as_echo_n "checking for lwpstatus_t in sys/procfs.h... " >&6; }
15909 if ${bfd_cv_have_sys_procfs_type_lwpstatus_t+:} false; then :
15910  $as_echo_n "(cached) " >&6
15911else
15912  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15913/* end confdefs.h.  */
15914
15915#define _SYSCALL32
15916#include <sys/procfs.h>
15917int
15918main ()
15919{
15920lwpstatus_t avar
15921  ;
15922  return 0;
15923}
15924_ACEOF
15925if ac_fn_c_try_compile "$LINENO"; then :
15926  bfd_cv_have_sys_procfs_type_lwpstatus_t=yes
15927else
15928  bfd_cv_have_sys_procfs_type_lwpstatus_t=no
15929
15930fi
15931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15932fi
15933
15934 if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
15935
15936$as_echo "#define HAVE_LWPSTATUS_T 1" >>confdefs.h
15937
15938 fi
15939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpstatus_t" >&5
15940$as_echo "$bfd_cv_have_sys_procfs_type_lwpstatus_t" >&6; }
15941
15942
15943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpxstatus_t in sys/procfs.h" >&5
15944$as_echo_n "checking for lwpxstatus_t in sys/procfs.h... " >&6; }
15945 if ${bfd_cv_have_sys_procfs_type_lwpxstatus_t+:} false; then :
15946  $as_echo_n "(cached) " >&6
15947else
15948  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15949/* end confdefs.h.  */
15950
15951#define _SYSCALL32
15952#include <sys/procfs.h>
15953int
15954main ()
15955{
15956lwpxstatus_t avar
15957  ;
15958  return 0;
15959}
15960_ACEOF
15961if ac_fn_c_try_compile "$LINENO"; then :
15962  bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes
15963else
15964  bfd_cv_have_sys_procfs_type_lwpxstatus_t=no
15965
15966fi
15967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15968fi
15969
15970 if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then
15971
15972$as_echo "#define HAVE_LWPXSTATUS_T 1" >>confdefs.h
15973
15974 fi
15975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&5
15976$as_echo "$bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&6; }
15977
15978
15979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
15980$as_echo_n "checking for lwpstatus_t.pr_context in sys/procfs.h... " >&6; }
15981 if ${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context+:} false; then :
15982  $as_echo_n "(cached) " >&6
15983else
15984  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15985/* end confdefs.h.  */
15986
15987#define _SYSCALL32
15988#include <sys/procfs.h>
15989int
15990main ()
15991{
15992lwpstatus_t avar; void* aref = (void*) &avar.pr_context
15993  ;
15994  return 0;
15995}
15996_ACEOF
15997if ac_fn_c_try_compile "$LINENO"; then :
15998  bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes
15999else
16000  bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no
16001
16002fi
16003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16004fi
16005
16006 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
16007
16008$as_echo "#define HAVE_LWPSTATUS_T_PR_CONTEXT 1" >>confdefs.h
16009
16010 fi
16011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&5
16012$as_echo "$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&6; }
16013
16014
16015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
16016$as_echo_n "checking for lwpstatus_t.pr_reg in sys/procfs.h... " >&6; }
16017 if ${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg+:} false; then :
16018  $as_echo_n "(cached) " >&6
16019else
16020  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16021/* end confdefs.h.  */
16022
16023#define _SYSCALL32
16024#include <sys/procfs.h>
16025int
16026main ()
16027{
16028lwpstatus_t avar; void* aref = (void*) &avar.pr_reg
16029  ;
16030  return 0;
16031}
16032_ACEOF
16033if ac_fn_c_try_compile "$LINENO"; then :
16034  bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes
16035else
16036  bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no
16037
16038fi
16039rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16040fi
16041
16042 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
16043
16044$as_echo "#define HAVE_LWPSTATUS_T_PR_REG 1" >>confdefs.h
16045
16046 fi
16047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&5
16048$as_echo "$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&6; }
16049
16050
16051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpstatus_t.pr_fpreg in sys/procfs.h" >&5
16052$as_echo_n "checking for lwpstatus_t.pr_fpreg in sys/procfs.h... " >&6; }
16053 if ${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg+:} false; then :
16054  $as_echo_n "(cached) " >&6
16055else
16056  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16057/* end confdefs.h.  */
16058
16059#define _SYSCALL32
16060#include <sys/procfs.h>
16061int
16062main ()
16063{
16064lwpstatus_t avar; void* aref = (void*) &avar.pr_fpreg
16065  ;
16066  return 0;
16067}
16068_ACEOF
16069if ac_fn_c_try_compile "$LINENO"; then :
16070  bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg=yes
16071else
16072  bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg=no
16073
16074fi
16075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16076fi
16077
16078 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg = yes; then
16079
16080$as_echo "#define HAVE_LWPSTATUS_T_PR_FPREG 1" >>confdefs.h
16081
16082 fi
16083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg" >&5
16084$as_echo "$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg" >&6; }
16085
16086
16087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for win32_pstatus_t in sys/procfs.h" >&5
16088$as_echo_n "checking for win32_pstatus_t in sys/procfs.h... " >&6; }
16089 if ${bfd_cv_have_sys_procfs_type_win32_pstatus_t+:} false; then :
16090  $as_echo_n "(cached) " >&6
16091else
16092  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16093/* end confdefs.h.  */
16094
16095#define _SYSCALL32
16096#include <sys/procfs.h>
16097int
16098main ()
16099{
16100win32_pstatus_t avar
16101  ;
16102  return 0;
16103}
16104_ACEOF
16105if ac_fn_c_try_compile "$LINENO"; then :
16106  bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes
16107else
16108  bfd_cv_have_sys_procfs_type_win32_pstatus_t=no
16109
16110fi
16111rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16112fi
16113
16114 if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then
16115
16116$as_echo "#define HAVE_WIN32_PSTATUS_T 1" >>confdefs.h
16117
16118 fi
16119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&5
16120$as_echo "$bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&6; }
16121
16122  fi
16123fi
16124
16125
16126if test -n "$CORE_HEADER"; then
16127
16128cat >>confdefs.h <<_ACEOF
16129#define CORE_HEADER $CORE_HEADER
16130_ACEOF
16131
16132fi
16133if test -n "$TRAD_HEADER"; then
16134
16135cat >>confdefs.h <<_ACEOF
16136#define TRAD_HEADER $TRAD_HEADER
16137_ACEOF
16138
16139fi
16140
16141if test "$plugins" = "yes"; then
16142  supports_plugins=1
16143else
16144  supports_plugins=0
16145fi
16146
16147
16148
16149# Determine the host dependent file_ptr a.k.a. off_t type.  In order
16150# prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and
16151# fseeko, long.  This assumes that sizeof off_t is .ge. sizeof long.
16152# Hopefully a reasonable assumption since fseeko et.al. should be
16153# upward compatible.
16154for ac_func in ftello ftello64 fseeko fseeko64 fopen64
16155do :
16156  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16157ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16158if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16159  cat >>confdefs.h <<_ACEOF
16160#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16161_ACEOF
16162
16163fi
16164done
16165
16166if test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then
16167    # The cast to long int works around a bug in the HP C Compiler
16168# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16169# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16170# This bug is HP SR number 8606223364.
16171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
16172$as_echo_n "checking size of off_t... " >&6; }
16173if ${ac_cv_sizeof_off_t+:} false; then :
16174  $as_echo_n "(cached) " >&6
16175else
16176  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        "$ac_includes_default"; then :
16177
16178else
16179  if test "$ac_cv_type_off_t" = yes; then
16180     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16181$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16182as_fn_error 77 "cannot compute sizeof (off_t)
16183See \`config.log' for more details" "$LINENO" 5; }
16184   else
16185     ac_cv_sizeof_off_t=0
16186   fi
16187fi
16188
16189fi
16190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
16191$as_echo "$ac_cv_sizeof_off_t" >&6; }
16192
16193
16194
16195cat >>confdefs.h <<_ACEOF
16196#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
16197_ACEOF
16198
16199
16200fi
16201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking file_ptr type" >&5
16202$as_echo_n "checking file_ptr type... " >&6; }
16203bfd_file_ptr="long"
16204bfd_ufile_ptr="unsigned long"
16205if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \
16206	-o x"${ac_cv_sizeof_off_t}" = x8; then
16207    bfd_file_ptr=BFD_HOST_64_BIT
16208    bfd_ufile_ptr=BFD_HOST_U_64_BIT
16209fi
16210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_file_ptr" >&5
16211$as_echo "$bfd_file_ptr" >&6; }
16212
16213
16214
16215
16216
16217
16218  for ac_header in $ac_header_list
16219do :
16220  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16221ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
16222"
16223if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16224  cat >>confdefs.h <<_ACEOF
16225#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16226_ACEOF
16227
16228fi
16229
16230done
16231
16232
16233
16234
16235
16236
16237
16238
16239for ac_func in getpagesize
16240do :
16241  ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
16242if test "x$ac_cv_func_getpagesize" = xyes; then :
16243  cat >>confdefs.h <<_ACEOF
16244#define HAVE_GETPAGESIZE 1
16245_ACEOF
16246
16247fi
16248done
16249
16250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
16251$as_echo_n "checking for working mmap... " >&6; }
16252if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
16253  $as_echo_n "(cached) " >&6
16254else
16255  if test "$cross_compiling" = yes; then :
16256  ac_cv_func_mmap_fixed_mapped=no
16257else
16258  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16259/* end confdefs.h.  */
16260$ac_includes_default
16261/* malloc might have been renamed as rpl_malloc. */
16262#undef malloc
16263
16264/* Thanks to Mike Haertel and Jim Avera for this test.
16265   Here is a matrix of mmap possibilities:
16266	mmap private not fixed
16267	mmap private fixed at somewhere currently unmapped
16268	mmap private fixed at somewhere already mapped
16269	mmap shared not fixed
16270	mmap shared fixed at somewhere currently unmapped
16271	mmap shared fixed at somewhere already mapped
16272   For private mappings, we should verify that changes cannot be read()
16273   back from the file, nor mmap's back from the file at a different
16274   address.  (There have been systems where private was not correctly
16275   implemented like the infamous i386 svr4.0, and systems where the
16276   VM page cache was not coherent with the file system buffer cache
16277   like early versions of FreeBSD and possibly contemporary NetBSD.)
16278   For shared mappings, we should conversely verify that changes get
16279   propagated back to all the places they're supposed to be.
16280
16281   Grep wants private fixed already mapped.
16282   The main things grep needs to know about mmap are:
16283   * does it exist and is it safe to write into the mmap'd area
16284   * how to use it (BSD variants)  */
16285
16286#include <fcntl.h>
16287#include <sys/mman.h>
16288
16289#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
16290char *malloc ();
16291#endif
16292
16293/* This mess was copied from the GNU getpagesize.h.  */
16294#ifndef HAVE_GETPAGESIZE
16295# ifdef _SC_PAGESIZE
16296#  define getpagesize() sysconf(_SC_PAGESIZE)
16297# else /* no _SC_PAGESIZE */
16298#  ifdef HAVE_SYS_PARAM_H
16299#   include <sys/param.h>
16300#   ifdef EXEC_PAGESIZE
16301#    define getpagesize() EXEC_PAGESIZE
16302#   else /* no EXEC_PAGESIZE */
16303#    ifdef NBPG
16304#     define getpagesize() NBPG * CLSIZE
16305#     ifndef CLSIZE
16306#      define CLSIZE 1
16307#     endif /* no CLSIZE */
16308#    else /* no NBPG */
16309#     ifdef NBPC
16310#      define getpagesize() NBPC
16311#     else /* no NBPC */
16312#      ifdef PAGESIZE
16313#       define getpagesize() PAGESIZE
16314#      endif /* PAGESIZE */
16315#     endif /* no NBPC */
16316#    endif /* no NBPG */
16317#   endif /* no EXEC_PAGESIZE */
16318#  else /* no HAVE_SYS_PARAM_H */
16319#   define getpagesize() 8192	/* punt totally */
16320#  endif /* no HAVE_SYS_PARAM_H */
16321# endif /* no _SC_PAGESIZE */
16322
16323#endif /* no HAVE_GETPAGESIZE */
16324
16325int
16326main ()
16327{
16328  char *data, *data2, *data3;
16329  const char *cdata2;
16330  int i, pagesize;
16331  int fd, fd2;
16332
16333  pagesize = getpagesize ();
16334
16335  /* First, make a file with some known garbage in it. */
16336  data = (char *) malloc (pagesize);
16337  if (!data)
16338    return 1;
16339  for (i = 0; i < pagesize; ++i)
16340    *(data + i) = rand ();
16341  umask (0);
16342  fd = creat ("conftest.mmap", 0600);
16343  if (fd < 0)
16344    return 2;
16345  if (write (fd, data, pagesize) != pagesize)
16346    return 3;
16347  close (fd);
16348
16349  /* Next, check that the tail of a page is zero-filled.  File must have
16350     non-zero length, otherwise we risk SIGBUS for entire page.  */
16351  fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
16352  if (fd2 < 0)
16353    return 4;
16354  cdata2 = "";
16355  if (write (fd2, cdata2, 1) != 1)
16356    return 5;
16357  data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
16358  if (data2 == MAP_FAILED)
16359    return 6;
16360  for (i = 0; i < pagesize; ++i)
16361    if (*(data2 + i))
16362      return 7;
16363  close (fd2);
16364  if (munmap (data2, pagesize))
16365    return 8;
16366
16367  /* Next, try to mmap the file at a fixed address which already has
16368     something else allocated at it.  If we can, also make sure that
16369     we see the same garbage.  */
16370  fd = open ("conftest.mmap", O_RDWR);
16371  if (fd < 0)
16372    return 9;
16373  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
16374		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
16375    return 10;
16376  for (i = 0; i < pagesize; ++i)
16377    if (*(data + i) != *(data2 + i))
16378      return 11;
16379
16380  /* Finally, make sure that changes to the mapped area do not
16381     percolate back to the file as seen by read().  (This is a bug on
16382     some variants of i386 svr4.0.)  */
16383  for (i = 0; i < pagesize; ++i)
16384    *(data2 + i) = *(data2 + i) + 1;
16385  data3 = (char *) malloc (pagesize);
16386  if (!data3)
16387    return 12;
16388  if (read (fd, data3, pagesize) != pagesize)
16389    return 13;
16390  for (i = 0; i < pagesize; ++i)
16391    if (*(data + i) != *(data3 + i))
16392      return 14;
16393  close (fd);
16394  return 0;
16395}
16396_ACEOF
16397if ac_fn_c_try_run "$LINENO"; then :
16398  ac_cv_func_mmap_fixed_mapped=yes
16399else
16400  ac_cv_func_mmap_fixed_mapped=no
16401fi
16402rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16403  conftest.$ac_objext conftest.beam conftest.$ac_ext
16404fi
16405
16406fi
16407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
16408$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
16409if test $ac_cv_func_mmap_fixed_mapped = yes; then
16410
16411$as_echo "#define HAVE_MMAP 1" >>confdefs.h
16412
16413fi
16414rm -f conftest.mmap conftest.txt
16415
16416for ac_func in madvise mprotect
16417do :
16418  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16419ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16420if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16421  cat >>confdefs.h <<_ACEOF
16422#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16423_ACEOF
16424
16425fi
16426done
16427
16428case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
16429  true+yes )
16430$as_echo "#define USE_MMAP 1" >>confdefs.h
16431 ;;
16432esac
16433
16434rm -f doc/config.status
16435ac_config_files="$ac_config_files Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in"
16436
16437
16438ac_config_commands="$ac_config_commands default"
16439
16440
16441
16442
16443
16444
16445
16446cat >confcache <<\_ACEOF
16447# This file is a shell script that caches the results of configure
16448# tests run on this system so they can be shared between configure
16449# scripts and configure runs, see configure's option --config-cache.
16450# It is not useful on other systems.  If it contains results you don't
16451# want to keep, you may remove or edit it.
16452#
16453# config.status only pays attention to the cache file if you give it
16454# the --recheck option to rerun configure.
16455#
16456# `ac_cv_env_foo' variables (set or unset) will be overridden when
16457# loading this file, other *unset* `ac_cv_foo' will be assigned the
16458# following values.
16459
16460_ACEOF
16461
16462# The following way of writing the cache mishandles newlines in values,
16463# but we know of no workaround that is simple, portable, and efficient.
16464# So, we kill variables containing newlines.
16465# Ultrix sh set writes to stderr and can't be redirected directly,
16466# and sets the high bit in the cache file unless we assign to the vars.
16467(
16468  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16469    eval ac_val=\$$ac_var
16470    case $ac_val in #(
16471    *${as_nl}*)
16472      case $ac_var in #(
16473      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16474$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16475      esac
16476      case $ac_var in #(
16477      _ | IFS | as_nl) ;; #(
16478      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16479      *) { eval $ac_var=; unset $ac_var;} ;;
16480      esac ;;
16481    esac
16482  done
16483
16484  (set) 2>&1 |
16485    case $as_nl`(ac_space=' '; set) 2>&1` in #(
16486    *${as_nl}ac_space=\ *)
16487      # `set' does not quote correctly, so add quotes: double-quote
16488      # substitution turns \\\\ into \\, and sed turns \\ into \.
16489      sed -n \
16490	"s/'/'\\\\''/g;
16491	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16492      ;; #(
16493    *)
16494      # `set' quotes correctly as required by POSIX, so do not add quotes.
16495      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16496      ;;
16497    esac |
16498    sort
16499) |
16500  sed '
16501     /^ac_cv_env_/b end
16502     t clear
16503     :clear
16504     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16505     t end
16506     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16507     :end' >>confcache
16508if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16509  if test -w "$cache_file"; then
16510    if test "x$cache_file" != "x/dev/null"; then
16511      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16512$as_echo "$as_me: updating cache $cache_file" >&6;}
16513      if test ! -f "$cache_file" || test -h "$cache_file"; then
16514	cat confcache >"$cache_file"
16515      else
16516        case $cache_file in #(
16517        */* | ?:*)
16518	  mv -f confcache "$cache_file"$$ &&
16519	  mv -f "$cache_file"$$ "$cache_file" ;; #(
16520        *)
16521	  mv -f confcache "$cache_file" ;;
16522	esac
16523      fi
16524    fi
16525  else
16526    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16527$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16528  fi
16529fi
16530rm -f confcache
16531
16532test "x$prefix" = xNONE && prefix=$ac_default_prefix
16533# Let make expand exec_prefix.
16534test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16535
16536DEFS=-DHAVE_CONFIG_H
16537
16538ac_libobjs=
16539ac_ltlibobjs=
16540U=
16541for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16542  # 1. Remove the extension, and $U if already installed.
16543  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16544  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16545  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
16546  #    will be set to the directory where LIBOBJS objects are built.
16547  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16548  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16549done
16550LIBOBJS=$ac_libobjs
16551
16552LTLIBOBJS=$ac_ltlibobjs
16553
16554
16555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16556$as_echo_n "checking that generated files are newer than configure... " >&6; }
16557   if test -n "$am_sleep_pid"; then
16558     # Hide warnings about reused PIDs.
16559     wait $am_sleep_pid 2>/dev/null
16560   fi
16561   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16562$as_echo "done" >&6; }
16563if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16564  as_fn_error $? "conditional \"AMDEP\" was never defined.
16565Usually this means the macro was only invoked conditionally." "$LINENO" 5
16566fi
16567if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16568  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16569Usually this means the macro was only invoked conditionally." "$LINENO" 5
16570fi
16571 if test -n "$EXEEXT"; then
16572  am__EXEEXT_TRUE=
16573  am__EXEEXT_FALSE='#'
16574else
16575  am__EXEEXT_TRUE='#'
16576  am__EXEEXT_FALSE=
16577fi
16578
16579if test -z "${PLUGINS_TRUE}" && test -z "${PLUGINS_FALSE}"; then
16580  as_fn_error $? "conditional \"PLUGINS\" was never defined.
16581Usually this means the macro was only invoked conditionally." "$LINENO" 5
16582fi
16583if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16584  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
16585Usually this means the macro was only invoked conditionally." "$LINENO" 5
16586fi
16587if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
16588  as_fn_error $? "conditional \"GENINSRC_NEVER\" was never defined.
16589Usually this means the macro was only invoked conditionally." "$LINENO" 5
16590fi
16591if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then
16592  as_fn_error $? "conditional \"INSTALL_LIBBFD\" was never defined.
16593Usually this means the macro was only invoked conditionally." "$LINENO" 5
16594fi
16595
16596: "${CONFIG_STATUS=./config.status}"
16597ac_write_fail=0
16598ac_clean_files_save=$ac_clean_files
16599ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16600{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16601$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16602as_write_fail=0
16603cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16604#! $SHELL
16605# Generated by $as_me.
16606# Run this file to recreate the current configuration.
16607# Compiler output produced by configure, useful for debugging
16608# configure, is in config.log if it exists.
16609
16610debug=false
16611ac_cs_recheck=false
16612ac_cs_silent=false
16613
16614SHELL=\${CONFIG_SHELL-$SHELL}
16615export SHELL
16616_ASEOF
16617cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16618## -------------------- ##
16619## M4sh Initialization. ##
16620## -------------------- ##
16621
16622# Be more Bourne compatible
16623DUALCASE=1; export DUALCASE # for MKS sh
16624if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16625  emulate sh
16626  NULLCMD=:
16627  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16628  # is contrary to our usage.  Disable this feature.
16629  alias -g '${1+"$@"}'='"$@"'
16630  setopt NO_GLOB_SUBST
16631else
16632  case `(set -o) 2>/dev/null` in #(
16633  *posix*) :
16634    set -o posix ;; #(
16635  *) :
16636     ;;
16637esac
16638fi
16639
16640
16641as_nl='
16642'
16643export as_nl
16644# Printing a long string crashes Solaris 7 /usr/bin/printf.
16645as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16646as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16647as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16648# Prefer a ksh shell builtin over an external printf program on Solaris,
16649# but without wasting forks for bash or zsh.
16650if test -z "$BASH_VERSION$ZSH_VERSION" \
16651    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16652  as_echo='print -r --'
16653  as_echo_n='print -rn --'
16654elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16655  as_echo='printf %s\n'
16656  as_echo_n='printf %s'
16657else
16658  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16659    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16660    as_echo_n='/usr/ucb/echo -n'
16661  else
16662    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16663    as_echo_n_body='eval
16664      arg=$1;
16665      case $arg in #(
16666      *"$as_nl"*)
16667	expr "X$arg" : "X\\(.*\\)$as_nl";
16668	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16669      esac;
16670      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16671    '
16672    export as_echo_n_body
16673    as_echo_n='sh -c $as_echo_n_body as_echo'
16674  fi
16675  export as_echo_body
16676  as_echo='sh -c $as_echo_body as_echo'
16677fi
16678
16679# The user is always right.
16680if test "${PATH_SEPARATOR+set}" != set; then
16681  PATH_SEPARATOR=:
16682  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16683    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16684      PATH_SEPARATOR=';'
16685  }
16686fi
16687
16688
16689# IFS
16690# We need space, tab and new line, in precisely that order.  Quoting is
16691# there to prevent editors from complaining about space-tab.
16692# (If _AS_PATH_WALK were called with IFS unset, it would disable word
16693# splitting by setting IFS to empty value.)
16694IFS=" ""	$as_nl"
16695
16696# Find who we are.  Look in the path if we contain no directory separator.
16697as_myself=
16698case $0 in #((
16699  *[\\/]* ) as_myself=$0 ;;
16700  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16701for as_dir in $PATH
16702do
16703  IFS=$as_save_IFS
16704  test -z "$as_dir" && as_dir=.
16705    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16706  done
16707IFS=$as_save_IFS
16708
16709     ;;
16710esac
16711# We did not find ourselves, most probably we were run as `sh COMMAND'
16712# in which case we are not to be found in the path.
16713if test "x$as_myself" = x; then
16714  as_myself=$0
16715fi
16716if test ! -f "$as_myself"; then
16717  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16718  exit 1
16719fi
16720
16721# Unset variables that we do not need and which cause bugs (e.g. in
16722# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
16723# suppresses any "Segmentation fault" message there.  '((' could
16724# trigger a bug in pdksh 5.2.14.
16725for as_var in BASH_ENV ENV MAIL MAILPATH
16726do eval test x\${$as_var+set} = xset \
16727  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16728done
16729PS1='$ '
16730PS2='> '
16731PS4='+ '
16732
16733# NLS nuisances.
16734LC_ALL=C
16735export LC_ALL
16736LANGUAGE=C
16737export LANGUAGE
16738
16739# CDPATH.
16740(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16741
16742
16743# as_fn_error STATUS ERROR [LINENO LOG_FD]
16744# ----------------------------------------
16745# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16746# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16747# script with STATUS, using 1 if that was 0.
16748as_fn_error ()
16749{
16750  as_status=$1; test $as_status -eq 0 && as_status=1
16751  if test "$4"; then
16752    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16753    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16754  fi
16755  $as_echo "$as_me: error: $2" >&2
16756  as_fn_exit $as_status
16757} # as_fn_error
16758
16759
16760# as_fn_set_status STATUS
16761# -----------------------
16762# Set $? to STATUS, without forking.
16763as_fn_set_status ()
16764{
16765  return $1
16766} # as_fn_set_status
16767
16768# as_fn_exit STATUS
16769# -----------------
16770# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16771as_fn_exit ()
16772{
16773  set +e
16774  as_fn_set_status $1
16775  exit $1
16776} # as_fn_exit
16777
16778# as_fn_unset VAR
16779# ---------------
16780# Portably unset VAR.
16781as_fn_unset ()
16782{
16783  { eval $1=; unset $1;}
16784}
16785as_unset=as_fn_unset
16786# as_fn_append VAR VALUE
16787# ----------------------
16788# Append the text in VALUE to the end of the definition contained in VAR. Take
16789# advantage of any shell optimizations that allow amortized linear growth over
16790# repeated appends, instead of the typical quadratic growth present in naive
16791# implementations.
16792if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16793  eval 'as_fn_append ()
16794  {
16795    eval $1+=\$2
16796  }'
16797else
16798  as_fn_append ()
16799  {
16800    eval $1=\$$1\$2
16801  }
16802fi # as_fn_append
16803
16804# as_fn_arith ARG...
16805# ------------------
16806# Perform arithmetic evaluation on the ARGs, and store the result in the
16807# global $as_val. Take advantage of shells that can avoid forks. The arguments
16808# must be portable across $(()) and expr.
16809if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16810  eval 'as_fn_arith ()
16811  {
16812    as_val=$(( $* ))
16813  }'
16814else
16815  as_fn_arith ()
16816  {
16817    as_val=`expr "$@" || test $? -eq 1`
16818  }
16819fi # as_fn_arith
16820
16821
16822if expr a : '\(a\)' >/dev/null 2>&1 &&
16823   test "X`expr 00001 : '.*\(...\)'`" = X001; then
16824  as_expr=expr
16825else
16826  as_expr=false
16827fi
16828
16829if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16830  as_basename=basename
16831else
16832  as_basename=false
16833fi
16834
16835if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16836  as_dirname=dirname
16837else
16838  as_dirname=false
16839fi
16840
16841as_me=`$as_basename -- "$0" ||
16842$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16843	 X"$0" : 'X\(//\)$' \| \
16844	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16845$as_echo X/"$0" |
16846    sed '/^.*\/\([^/][^/]*\)\/*$/{
16847	    s//\1/
16848	    q
16849	  }
16850	  /^X\/\(\/\/\)$/{
16851	    s//\1/
16852	    q
16853	  }
16854	  /^X\/\(\/\).*/{
16855	    s//\1/
16856	    q
16857	  }
16858	  s/.*/./; q'`
16859
16860# Avoid depending upon Character Ranges.
16861as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16862as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16863as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16864as_cr_digits='0123456789'
16865as_cr_alnum=$as_cr_Letters$as_cr_digits
16866
16867ECHO_C= ECHO_N= ECHO_T=
16868case `echo -n x` in #(((((
16869-n*)
16870  case `echo 'xy\c'` in
16871  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
16872  xy)  ECHO_C='\c';;
16873  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
16874       ECHO_T='	';;
16875  esac;;
16876*)
16877  ECHO_N='-n';;
16878esac
16879
16880rm -f conf$$ conf$$.exe conf$$.file
16881if test -d conf$$.dir; then
16882  rm -f conf$$.dir/conf$$.file
16883else
16884  rm -f conf$$.dir
16885  mkdir conf$$.dir 2>/dev/null
16886fi
16887if (echo >conf$$.file) 2>/dev/null; then
16888  if ln -s conf$$.file conf$$ 2>/dev/null; then
16889    as_ln_s='ln -s'
16890    # ... but there are two gotchas:
16891    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16892    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16893    # In both cases, we have to default to `cp -pR'.
16894    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16895      as_ln_s='cp -pR'
16896  elif ln conf$$.file conf$$ 2>/dev/null; then
16897    as_ln_s=ln
16898  else
16899    as_ln_s='cp -pR'
16900  fi
16901else
16902  as_ln_s='cp -pR'
16903fi
16904rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16905rmdir conf$$.dir 2>/dev/null
16906
16907
16908# as_fn_mkdir_p
16909# -------------
16910# Create "$as_dir" as a directory, including parents if necessary.
16911as_fn_mkdir_p ()
16912{
16913
16914  case $as_dir in #(
16915  -*) as_dir=./$as_dir;;
16916  esac
16917  test -d "$as_dir" || eval $as_mkdir_p || {
16918    as_dirs=
16919    while :; do
16920      case $as_dir in #(
16921      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16922      *) as_qdir=$as_dir;;
16923      esac
16924      as_dirs="'$as_qdir' $as_dirs"
16925      as_dir=`$as_dirname -- "$as_dir" ||
16926$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16927	 X"$as_dir" : 'X\(//\)[^/]' \| \
16928	 X"$as_dir" : 'X\(//\)$' \| \
16929	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16930$as_echo X"$as_dir" |
16931    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16932	    s//\1/
16933	    q
16934	  }
16935	  /^X\(\/\/\)[^/].*/{
16936	    s//\1/
16937	    q
16938	  }
16939	  /^X\(\/\/\)$/{
16940	    s//\1/
16941	    q
16942	  }
16943	  /^X\(\/\).*/{
16944	    s//\1/
16945	    q
16946	  }
16947	  s/.*/./; q'`
16948      test -d "$as_dir" && break
16949    done
16950    test -z "$as_dirs" || eval "mkdir $as_dirs"
16951  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16952
16953
16954} # as_fn_mkdir_p
16955if mkdir -p . 2>/dev/null; then
16956  as_mkdir_p='mkdir -p "$as_dir"'
16957else
16958  test -d ./-p && rmdir ./-p
16959  as_mkdir_p=false
16960fi
16961
16962
16963# as_fn_executable_p FILE
16964# -----------------------
16965# Test if FILE is an executable regular file.
16966as_fn_executable_p ()
16967{
16968  test -f "$1" && test -x "$1"
16969} # as_fn_executable_p
16970as_test_x='test -x'
16971as_executable_p=as_fn_executable_p
16972
16973# Sed expression to map a string onto a valid CPP name.
16974as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16975
16976# Sed expression to map a string onto a valid variable name.
16977as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16978
16979
16980exec 6>&1
16981## ----------------------------------- ##
16982## Main body of $CONFIG_STATUS script. ##
16983## ----------------------------------- ##
16984_ASEOF
16985test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16986
16987cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16988# Save the log message, to keep $0 and so on meaningful, and to
16989# report actual input values of CONFIG_FILES etc. instead of their
16990# values after options handling.
16991ac_log="
16992This file was extended by bfd $as_me 2.35.50, which was
16993generated by GNU Autoconf 2.69.  Invocation command line was
16994
16995  CONFIG_FILES    = $CONFIG_FILES
16996  CONFIG_HEADERS  = $CONFIG_HEADERS
16997  CONFIG_LINKS    = $CONFIG_LINKS
16998  CONFIG_COMMANDS = $CONFIG_COMMANDS
16999  $ $0 $@
17000
17001on `(hostname || uname -n) 2>/dev/null | sed 1q`
17002"
17003
17004_ACEOF
17005
17006case $ac_config_files in *"
17007"*) set x $ac_config_files; shift; ac_config_files=$*;;
17008esac
17009
17010case $ac_config_headers in *"
17011"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17012esac
17013
17014
17015cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17016# Files that config.status was made for.
17017config_files="$ac_config_files"
17018config_headers="$ac_config_headers"
17019config_commands="$ac_config_commands"
17020
17021_ACEOF
17022
17023cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17024ac_cs_usage="\
17025\`$as_me' instantiates files and other configuration actions
17026from templates according to the current configuration.  Unless the files
17027and actions are specified as TAGs, all are instantiated by default.
17028
17029Usage: $0 [OPTION]... [TAG]...
17030
17031  -h, --help       print this help, then exit
17032  -V, --version    print version number and configuration settings, then exit
17033      --config     print configuration, then exit
17034  -q, --quiet, --silent
17035                   do not print progress messages
17036  -d, --debug      don't remove temporary files
17037      --recheck    update $as_me by reconfiguring in the same conditions
17038      --file=FILE[:TEMPLATE]
17039                   instantiate the configuration file FILE
17040      --header=FILE[:TEMPLATE]
17041                   instantiate the configuration header FILE
17042
17043Configuration files:
17044$config_files
17045
17046Configuration headers:
17047$config_headers
17048
17049Configuration commands:
17050$config_commands
17051
17052Report bugs to the package provider."
17053
17054_ACEOF
17055cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17056ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17057ac_cs_version="\\
17058bfd config.status 2.35.50
17059configured by $0, generated by GNU Autoconf 2.69,
17060  with options \\"\$ac_cs_config\\"
17061
17062Copyright (C) 2012 Free Software Foundation, Inc.
17063This config.status script is free software; the Free Software Foundation
17064gives unlimited permission to copy, distribute and modify it."
17065
17066ac_pwd='$ac_pwd'
17067srcdir='$srcdir'
17068INSTALL='$INSTALL'
17069MKDIR_P='$MKDIR_P'
17070AWK='$AWK'
17071test -n "\$AWK" || AWK=awk
17072_ACEOF
17073
17074cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17075# The default lists apply if the user does not specify any file.
17076ac_need_defaults=:
17077while test $# != 0
17078do
17079  case $1 in
17080  --*=?*)
17081    ac_option=`expr "X$1" : 'X\([^=]*\)='`
17082    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17083    ac_shift=:
17084    ;;
17085  --*=)
17086    ac_option=`expr "X$1" : 'X\([^=]*\)='`
17087    ac_optarg=
17088    ac_shift=:
17089    ;;
17090  *)
17091    ac_option=$1
17092    ac_optarg=$2
17093    ac_shift=shift
17094    ;;
17095  esac
17096
17097  case $ac_option in
17098  # Handling of the options.
17099  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17100    ac_cs_recheck=: ;;
17101  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17102    $as_echo "$ac_cs_version"; exit ;;
17103  --config | --confi | --conf | --con | --co | --c )
17104    $as_echo "$ac_cs_config"; exit ;;
17105  --debug | --debu | --deb | --de | --d | -d )
17106    debug=: ;;
17107  --file | --fil | --fi | --f )
17108    $ac_shift
17109    case $ac_optarg in
17110    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17111    '') as_fn_error $? "missing file argument" ;;
17112    esac
17113    as_fn_append CONFIG_FILES " '$ac_optarg'"
17114    ac_need_defaults=false;;
17115  --header | --heade | --head | --hea )
17116    $ac_shift
17117    case $ac_optarg in
17118    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17119    esac
17120    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17121    ac_need_defaults=false;;
17122  --he | --h)
17123    # Conflict between --help and --header
17124    as_fn_error $? "ambiguous option: \`$1'
17125Try \`$0 --help' for more information.";;
17126  --help | --hel | -h )
17127    $as_echo "$ac_cs_usage"; exit ;;
17128  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17129  | -silent | --silent | --silen | --sile | --sil | --si | --s)
17130    ac_cs_silent=: ;;
17131
17132  # This is an error.
17133  -*) as_fn_error $? "unrecognized option: \`$1'
17134Try \`$0 --help' for more information." ;;
17135
17136  *) as_fn_append ac_config_targets " $1"
17137     ac_need_defaults=false ;;
17138
17139  esac
17140  shift
17141done
17142
17143ac_configure_extra_args=
17144
17145if $ac_cs_silent; then
17146  exec 6>/dev/null
17147  ac_configure_extra_args="$ac_configure_extra_args --silent"
17148fi
17149
17150_ACEOF
17151cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17152if \$ac_cs_recheck; then
17153  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17154  shift
17155  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17156  CONFIG_SHELL='$SHELL'
17157  export CONFIG_SHELL
17158  exec "\$@"
17159fi
17160
17161_ACEOF
17162cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17163exec 5>>config.log
17164{
17165  echo
17166  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17167## Running $as_me. ##
17168_ASBOX
17169  $as_echo "$ac_log"
17170} >&5
17171
17172_ACEOF
17173cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17174#
17175# INIT-COMMANDS
17176#
17177AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17178
17179
17180# The HP-UX ksh and POSIX shell print the target directory to stdout
17181# if CDPATH is set.
17182(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17183
17184sed_quote_subst='$sed_quote_subst'
17185double_quote_subst='$double_quote_subst'
17186delay_variable_subst='$delay_variable_subst'
17187enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17188macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17189macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17190enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17191pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17192enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17193SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17194ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17195host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17196host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17197host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17198build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17199build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17200build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17201SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17202Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17203GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17204EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17205FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17206LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17207NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17208LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17209max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17210ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17211exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17212lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17213lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17214lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17215reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17216reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17217OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17218deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17219file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17220AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17221AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17222STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17223RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17224old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17225old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17226old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17227lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17228CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17229CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17230compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17231GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17232lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17233lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17234lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17235lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
17236objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17237MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17238lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17239lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17240lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17241lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17242lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17243need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17244DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17245NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17246LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17247OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17248OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17249libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17250shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17251extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17252archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17253enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17254export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17255whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17256compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17257old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17258old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17259archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17260archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17261module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17262module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17263with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17264allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17265no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17266hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17267hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17268hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17269hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17270hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17271hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17272hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17273hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17274inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17275link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17276fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
17277always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17278export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17279exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17280include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17281prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17282file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17283variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17284need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17285need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17286version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17287runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17288shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17289shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17290libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17291library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17292soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17293install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17294postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17295postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17296finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17297finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17298hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17299sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17300sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17301hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17302enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17303enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17304enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17305old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17306striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17307
17308LTCC='$LTCC'
17309LTCFLAGS='$LTCFLAGS'
17310compiler='$compiler_DEFAULT'
17311
17312# A function that is used when there is no print builtin or printf.
17313func_fallback_echo ()
17314{
17315  eval 'cat <<_LTECHO_EOF
17316\$1
17317_LTECHO_EOF'
17318}
17319
17320# Quote evaled strings.
17321for var in SHELL \
17322ECHO \
17323SED \
17324GREP \
17325EGREP \
17326FGREP \
17327LD \
17328NM \
17329LN_S \
17330lt_SP2NL \
17331lt_NL2SP \
17332reload_flag \
17333OBJDUMP \
17334deplibs_check_method \
17335file_magic_cmd \
17336AR \
17337AR_FLAGS \
17338STRIP \
17339RANLIB \
17340CC \
17341CFLAGS \
17342compiler \
17343lt_cv_sys_global_symbol_pipe \
17344lt_cv_sys_global_symbol_to_cdecl \
17345lt_cv_sys_global_symbol_to_c_name_address \
17346lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17347lt_prog_compiler_no_builtin_flag \
17348lt_prog_compiler_wl \
17349lt_prog_compiler_pic \
17350lt_prog_compiler_static \
17351lt_cv_prog_compiler_c_o \
17352need_locks \
17353DSYMUTIL \
17354NMEDIT \
17355LIPO \
17356OTOOL \
17357OTOOL64 \
17358shrext_cmds \
17359export_dynamic_flag_spec \
17360whole_archive_flag_spec \
17361compiler_needs_object \
17362with_gnu_ld \
17363allow_undefined_flag \
17364no_undefined_flag \
17365hardcode_libdir_flag_spec \
17366hardcode_libdir_flag_spec_ld \
17367hardcode_libdir_separator \
17368fix_srcfile_path \
17369exclude_expsyms \
17370include_expsyms \
17371file_list_spec \
17372variables_saved_for_relink \
17373libname_spec \
17374library_names_spec \
17375soname_spec \
17376install_override_mode \
17377finish_eval \
17378old_striplib \
17379striplib; do
17380    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17381    *[\\\\\\\`\\"\\\$]*)
17382      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17383      ;;
17384    *)
17385      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17386      ;;
17387    esac
17388done
17389
17390# Double-quote double-evaled strings.
17391for var in reload_cmds \
17392old_postinstall_cmds \
17393old_postuninstall_cmds \
17394old_archive_cmds \
17395extract_expsyms_cmds \
17396old_archive_from_new_cmds \
17397old_archive_from_expsyms_cmds \
17398archive_cmds \
17399archive_expsym_cmds \
17400module_cmds \
17401module_expsym_cmds \
17402export_symbols_cmds \
17403prelink_cmds \
17404postinstall_cmds \
17405postuninstall_cmds \
17406finish_cmds \
17407sys_lib_search_path_spec \
17408sys_lib_dlsearch_path_spec; do
17409    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17410    *[\\\\\\\`\\"\\\$]*)
17411      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17412      ;;
17413    *)
17414      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17415      ;;
17416    esac
17417done
17418
17419ac_aux_dir='$ac_aux_dir'
17420xsi_shell='$xsi_shell'
17421lt_shell_append='$lt_shell_append'
17422
17423# See if we are running on zsh, and set the options which allow our
17424# commands through without removal of \ escapes INIT.
17425if test -n "\${ZSH_VERSION+set}" ; then
17426   setopt NO_GLOB_SUBST
17427fi
17428
17429
17430    PACKAGE='$PACKAGE'
17431    VERSION='$VERSION'
17432    TIMESTAMP='$TIMESTAMP'
17433    RM='$RM'
17434    ofile='$ofile'
17435
17436
17437
17438# Capture the value of obsolete ALL_LINGUAS because we need it to compute
17439    # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
17440    # from automake.
17441    eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
17442    # Capture the value of LINGUAS because we need it to compute CATALOGS.
17443    LINGUAS="${LINGUAS-%UNSET%}"
17444
17445
17446GCC="$GCC"
17447CC="$CC"
17448acx_cv_header_stdint="$acx_cv_header_stdint"
17449acx_cv_type_int8_t="$acx_cv_type_int8_t"
17450acx_cv_type_int16_t="$acx_cv_type_int16_t"
17451acx_cv_type_int32_t="$acx_cv_type_int32_t"
17452acx_cv_type_int64_t="$acx_cv_type_int64_t"
17453acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
17454ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
17455ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
17456ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
17457ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
17458ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
17459ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
17460ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
17461ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
17462
17463
17464
17465_ACEOF
17466
17467cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17468
17469# Handling of arguments.
17470for ac_config_target in $ac_config_targets
17471do
17472  case $ac_config_target in
17473    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17474    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17475    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
17476    "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
17477    "bfd_stdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS bfd_stdint.h" ;;
17478    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17479    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17480    "bfd-in3.h") CONFIG_FILES="$CONFIG_FILES bfd-in3.h:bfd-in2.h" ;;
17481    "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
17482    "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
17483
17484  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17485  esac
17486done
17487
17488
17489# If the user did not use the arguments to specify the items to instantiate,
17490# then the envvar interface is used.  Set only those that are not.
17491# We use the long form for the default assignment because of an extremely
17492# bizarre bug on SunOS 4.1.3.
17493if $ac_need_defaults; then
17494  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17495  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17496  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17497fi
17498
17499# Have a temporary directory for convenience.  Make it in the build tree
17500# simply because there is no reason against having it here, and in addition,
17501# creating and moving files from /tmp can sometimes cause problems.
17502# Hook for its removal unless debugging.
17503# Note that there is a small window in which the directory will not be cleaned:
17504# after its creation but before its name has been assigned to `$tmp'.
17505$debug ||
17506{
17507  tmp= ac_tmp=
17508  trap 'exit_status=$?
17509  : "${ac_tmp:=$tmp}"
17510  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17511' 0
17512  trap 'as_fn_exit 1' 1 2 13 15
17513}
17514# Create a (secure) tmp directory for tmp files.
17515
17516{
17517  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17518  test -d "$tmp"
17519}  ||
17520{
17521  tmp=./conf$$-$RANDOM
17522  (umask 077 && mkdir "$tmp")
17523} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17524ac_tmp=$tmp
17525
17526# Set up the scripts for CONFIG_FILES section.
17527# No need to generate them if there are no CONFIG_FILES.
17528# This happens for instance with `./config.status config.h'.
17529if test -n "$CONFIG_FILES"; then
17530
17531
17532ac_cr=`echo X | tr X '\015'`
17533# On cygwin, bash can eat \r inside `` if the user requested igncr.
17534# But we know of no other shell where ac_cr would be empty at this
17535# point, so we can use a bashism as a fallback.
17536if test "x$ac_cr" = x; then
17537  eval ac_cr=\$\'\\r\'
17538fi
17539ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17540if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17541  ac_cs_awk_cr='\\r'
17542else
17543  ac_cs_awk_cr=$ac_cr
17544fi
17545
17546echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17547_ACEOF
17548
17549
17550{
17551  echo "cat >conf$$subs.awk <<_ACEOF" &&
17552  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17553  echo "_ACEOF"
17554} >conf$$subs.sh ||
17555  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17556ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17557ac_delim='%!_!# '
17558for ac_last_try in false false false false false :; do
17559  . ./conf$$subs.sh ||
17560    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17561
17562  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17563  if test $ac_delim_n = $ac_delim_num; then
17564    break
17565  elif $ac_last_try; then
17566    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17567  else
17568    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17569  fi
17570done
17571rm -f conf$$subs.sh
17572
17573cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17574cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17575_ACEOF
17576sed -n '
17577h
17578s/^/S["/; s/!.*/"]=/
17579p
17580g
17581s/^[^!]*!//
17582:repl
17583t repl
17584s/'"$ac_delim"'$//
17585t delim
17586:nl
17587h
17588s/\(.\{148\}\)..*/\1/
17589t more1
17590s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17591p
17592n
17593b repl
17594:more1
17595s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17596p
17597g
17598s/.\{148\}//
17599t nl
17600:delim
17601h
17602s/\(.\{148\}\)..*/\1/
17603t more2
17604s/["\\]/\\&/g; s/^/"/; s/$/"/
17605p
17606b
17607:more2
17608s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17609p
17610g
17611s/.\{148\}//
17612t delim
17613' <conf$$subs.awk | sed '
17614/^[^""]/{
17615  N
17616  s/\n//
17617}
17618' >>$CONFIG_STATUS || ac_write_fail=1
17619rm -f conf$$subs.awk
17620cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17621_ACAWK
17622cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17623  for (key in S) S_is_set[key] = 1
17624  FS = ""
17625
17626}
17627{
17628  line = $ 0
17629  nfields = split(line, field, "@")
17630  substed = 0
17631  len = length(field[1])
17632  for (i = 2; i < nfields; i++) {
17633    key = field[i]
17634    keylen = length(key)
17635    if (S_is_set[key]) {
17636      value = S[key]
17637      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17638      len += length(value) + length(field[++i])
17639      substed = 1
17640    } else
17641      len += 1 + keylen
17642  }
17643
17644  print line
17645}
17646
17647_ACAWK
17648_ACEOF
17649cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17650if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17651  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17652else
17653  cat
17654fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17655  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17656_ACEOF
17657
17658# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17659# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17660# trailing colons and then remove the whole line if VPATH becomes empty
17661# (actually we leave an empty line to preserve line numbers).
17662if test "x$srcdir" = x.; then
17663  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
17664h
17665s///
17666s/^/:/
17667s/[	 ]*$/:/
17668s/:\$(srcdir):/:/g
17669s/:\${srcdir}:/:/g
17670s/:@srcdir@:/:/g
17671s/^:*//
17672s/:*$//
17673x
17674s/\(=[	 ]*\).*/\1/
17675G
17676s/\n//
17677s/^[^=]*=[	 ]*$//
17678}'
17679fi
17680
17681cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17682fi # test -n "$CONFIG_FILES"
17683
17684# Set up the scripts for CONFIG_HEADERS section.
17685# No need to generate them if there are no CONFIG_HEADERS.
17686# This happens for instance with `./config.status Makefile'.
17687if test -n "$CONFIG_HEADERS"; then
17688cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17689BEGIN {
17690_ACEOF
17691
17692# Transform confdefs.h into an awk script `defines.awk', embedded as
17693# here-document in config.status, that substitutes the proper values into
17694# config.h.in to produce config.h.
17695
17696# Create a delimiter string that does not exist in confdefs.h, to ease
17697# handling of long lines.
17698ac_delim='%!_!# '
17699for ac_last_try in false false :; do
17700  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17701  if test -z "$ac_tt"; then
17702    break
17703  elif $ac_last_try; then
17704    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17705  else
17706    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17707  fi
17708done
17709
17710# For the awk script, D is an array of macro values keyed by name,
17711# likewise P contains macro parameters if any.  Preserve backslash
17712# newline sequences.
17713
17714ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17715sed -n '
17716s/.\{148\}/&'"$ac_delim"'/g
17717t rset
17718:rset
17719s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
17720t def
17721d
17722:def
17723s/\\$//
17724t bsnl
17725s/["\\]/\\&/g
17726s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
17727D["\1"]=" \3"/p
17728s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
17729d
17730:bsnl
17731s/["\\]/\\&/g
17732s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
17733D["\1"]=" \3\\\\\\n"\\/p
17734t cont
17735s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17736t cont
17737d
17738:cont
17739n
17740s/.\{148\}/&'"$ac_delim"'/g
17741t clear
17742:clear
17743s/\\$//
17744t bsnlc
17745s/["\\]/\\&/g; s/^/"/; s/$/"/p
17746d
17747:bsnlc
17748s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17749b cont
17750' <confdefs.h | sed '
17751s/'"$ac_delim"'/"\\\
17752"/g' >>$CONFIG_STATUS || ac_write_fail=1
17753
17754cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17755  for (key in D) D_is_set[key] = 1
17756  FS = ""
17757}
17758/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17759  line = \$ 0
17760  split(line, arg, " ")
17761  if (arg[1] == "#") {
17762    defundef = arg[2]
17763    mac1 = arg[3]
17764  } else {
17765    defundef = substr(arg[1], 2)
17766    mac1 = arg[2]
17767  }
17768  split(mac1, mac2, "(") #)
17769  macro = mac2[1]
17770  prefix = substr(line, 1, index(line, defundef) - 1)
17771  if (D_is_set[macro]) {
17772    # Preserve the white space surrounding the "#".
17773    print prefix "define", macro P[macro] D[macro]
17774    next
17775  } else {
17776    # Replace #undef with comments.  This is necessary, for example,
17777    # in the case of _POSIX_SOURCE, which is predefined and required
17778    # on some systems where configure will not decide to define it.
17779    if (defundef == "undef") {
17780      print "/*", prefix defundef, macro, "*/"
17781      next
17782    }
17783  }
17784}
17785{ print }
17786_ACAWK
17787_ACEOF
17788cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17789  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17790fi # test -n "$CONFIG_HEADERS"
17791
17792
17793eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
17794shift
17795for ac_tag
17796do
17797  case $ac_tag in
17798  :[FHLC]) ac_mode=$ac_tag; continue;;
17799  esac
17800  case $ac_mode$ac_tag in
17801  :[FHL]*:*);;
17802  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17803  :[FH]-) ac_tag=-:-;;
17804  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17805  esac
17806  ac_save_IFS=$IFS
17807  IFS=:
17808  set x $ac_tag
17809  IFS=$ac_save_IFS
17810  shift
17811  ac_file=$1
17812  shift
17813
17814  case $ac_mode in
17815  :L) ac_source=$1;;
17816  :[FH])
17817    ac_file_inputs=
17818    for ac_f
17819    do
17820      case $ac_f in
17821      -) ac_f="$ac_tmp/stdin";;
17822      *) # Look for the file first in the build tree, then in the source tree
17823	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
17824	 # because $ac_f cannot contain `:'.
17825	 test -f "$ac_f" ||
17826	   case $ac_f in
17827	   [\\/$]*) false;;
17828	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17829	   esac ||
17830	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17831      esac
17832      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17833      as_fn_append ac_file_inputs " '$ac_f'"
17834    done
17835
17836    # Let's still pretend it is `configure' which instantiates (i.e., don't
17837    # use $as_me), people would be surprised to read:
17838    #    /* config.h.  Generated by config.status.  */
17839    configure_input='Generated from '`
17840	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17841	`' by configure.'
17842    if test x"$ac_file" != x-; then
17843      configure_input="$ac_file.  $configure_input"
17844      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17845$as_echo "$as_me: creating $ac_file" >&6;}
17846    fi
17847    # Neutralize special characters interpreted by sed in replacement strings.
17848    case $configure_input in #(
17849    *\&* | *\|* | *\\* )
17850       ac_sed_conf_input=`$as_echo "$configure_input" |
17851       sed 's/[\\\\&|]/\\\\&/g'`;; #(
17852    *) ac_sed_conf_input=$configure_input;;
17853    esac
17854
17855    case $ac_tag in
17856    *:-:* | *:-) cat >"$ac_tmp/stdin" \
17857      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17858    esac
17859    ;;
17860  esac
17861
17862  ac_dir=`$as_dirname -- "$ac_file" ||
17863$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17864	 X"$ac_file" : 'X\(//\)[^/]' \| \
17865	 X"$ac_file" : 'X\(//\)$' \| \
17866	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17867$as_echo X"$ac_file" |
17868    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17869	    s//\1/
17870	    q
17871	  }
17872	  /^X\(\/\/\)[^/].*/{
17873	    s//\1/
17874	    q
17875	  }
17876	  /^X\(\/\/\)$/{
17877	    s//\1/
17878	    q
17879	  }
17880	  /^X\(\/\).*/{
17881	    s//\1/
17882	    q
17883	  }
17884	  s/.*/./; q'`
17885  as_dir="$ac_dir"; as_fn_mkdir_p
17886  ac_builddir=.
17887
17888case "$ac_dir" in
17889.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17890*)
17891  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17892  # A ".." for each directory in $ac_dir_suffix.
17893  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17894  case $ac_top_builddir_sub in
17895  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17896  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17897  esac ;;
17898esac
17899ac_abs_top_builddir=$ac_pwd
17900ac_abs_builddir=$ac_pwd$ac_dir_suffix
17901# for backward compatibility:
17902ac_top_builddir=$ac_top_build_prefix
17903
17904case $srcdir in
17905  .)  # We are building in place.
17906    ac_srcdir=.
17907    ac_top_srcdir=$ac_top_builddir_sub
17908    ac_abs_top_srcdir=$ac_pwd ;;
17909  [\\/]* | ?:[\\/]* )  # Absolute name.
17910    ac_srcdir=$srcdir$ac_dir_suffix;
17911    ac_top_srcdir=$srcdir
17912    ac_abs_top_srcdir=$srcdir ;;
17913  *) # Relative name.
17914    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17915    ac_top_srcdir=$ac_top_build_prefix$srcdir
17916    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17917esac
17918ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17919
17920
17921  case $ac_mode in
17922  :F)
17923  #
17924  # CONFIG_FILE
17925  #
17926
17927  case $INSTALL in
17928  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17929  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17930  esac
17931  ac_MKDIR_P=$MKDIR_P
17932  case $MKDIR_P in
17933  [\\/$]* | ?:[\\/]* ) ;;
17934  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17935  esac
17936_ACEOF
17937
17938cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17939# If the template does not know about datarootdir, expand it.
17940# FIXME: This hack should be removed a few years after 2.60.
17941ac_datarootdir_hack=; ac_datarootdir_seen=
17942ac_sed_dataroot='
17943/datarootdir/ {
17944  p
17945  q
17946}
17947/@datadir@/p
17948/@docdir@/p
17949/@infodir@/p
17950/@localedir@/p
17951/@mandir@/p'
17952case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17953*datarootdir*) ac_datarootdir_seen=yes;;
17954*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17955  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17956$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17957_ACEOF
17958cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17959  ac_datarootdir_hack='
17960  s&@datadir@&$datadir&g
17961  s&@docdir@&$docdir&g
17962  s&@infodir@&$infodir&g
17963  s&@localedir@&$localedir&g
17964  s&@mandir@&$mandir&g
17965  s&\\\${datarootdir}&$datarootdir&g' ;;
17966esac
17967_ACEOF
17968
17969# Neutralize VPATH when `$srcdir' = `.'.
17970# Shell code in configure.ac might set extrasub.
17971# FIXME: do we really want to maintain this feature?
17972cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17973ac_sed_extra="$ac_vpsub
17974$extrasub
17975_ACEOF
17976cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17977:t
17978/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17979s|@configure_input@|$ac_sed_conf_input|;t t
17980s&@top_builddir@&$ac_top_builddir_sub&;t t
17981s&@top_build_prefix@&$ac_top_build_prefix&;t t
17982s&@srcdir@&$ac_srcdir&;t t
17983s&@abs_srcdir@&$ac_abs_srcdir&;t t
17984s&@top_srcdir@&$ac_top_srcdir&;t t
17985s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17986s&@builddir@&$ac_builddir&;t t
17987s&@abs_builddir@&$ac_abs_builddir&;t t
17988s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17989s&@INSTALL@&$ac_INSTALL&;t t
17990s&@MKDIR_P@&$ac_MKDIR_P&;t t
17991$ac_datarootdir_hack
17992"
17993eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17994  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17995
17996test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17997  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17998  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
17999      "$ac_tmp/out"`; test -z "$ac_out"; } &&
18000  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18001which seems to be undefined.  Please make sure it is defined" >&5
18002$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18003which seems to be undefined.  Please make sure it is defined" >&2;}
18004
18005  rm -f "$ac_tmp/stdin"
18006  case $ac_file in
18007  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18008  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18009  esac \
18010  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18011 ;;
18012  :H)
18013  #
18014  # CONFIG_HEADER
18015  #
18016  if test x"$ac_file" != x-; then
18017    {
18018      $as_echo "/* $configure_input  */" \
18019      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18020    } >"$ac_tmp/config.h" \
18021      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18022    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18023      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18024$as_echo "$as_me: $ac_file is unchanged" >&6;}
18025    else
18026      rm -f "$ac_file"
18027      mv "$ac_tmp/config.h" "$ac_file" \
18028	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
18029    fi
18030  else
18031    $as_echo "/* $configure_input  */" \
18032      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18033      || as_fn_error $? "could not create -" "$LINENO" 5
18034  fi
18035# Compute "$ac_file"'s index in $config_headers.
18036_am_arg="$ac_file"
18037_am_stamp_count=1
18038for _am_header in $config_headers :; do
18039  case $_am_header in
18040    $_am_arg | $_am_arg:* )
18041      break ;;
18042    * )
18043      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18044  esac
18045done
18046echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18047$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18048	 X"$_am_arg" : 'X\(//\)[^/]' \| \
18049	 X"$_am_arg" : 'X\(//\)$' \| \
18050	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18051$as_echo X"$_am_arg" |
18052    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18053	    s//\1/
18054	    q
18055	  }
18056	  /^X\(\/\/\)[^/].*/{
18057	    s//\1/
18058	    q
18059	  }
18060	  /^X\(\/\/\)$/{
18061	    s//\1/
18062	    q
18063	  }
18064	  /^X\(\/\).*/{
18065	    s//\1/
18066	    q
18067	  }
18068	  s/.*/./; q'`/stamp-h$_am_stamp_count
18069 ;;
18070
18071  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18072$as_echo "$as_me: executing $ac_file commands" >&6;}
18073 ;;
18074  esac
18075
18076
18077  case $ac_file$ac_mode in
18078    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18079  # Older Autoconf quotes --file arguments for eval, but not when files
18080  # are listed without --file.  Let's play safe and only enable the eval
18081  # if we detect the quoting.
18082  case $CONFIG_FILES in
18083  *\'*) eval set x "$CONFIG_FILES" ;;
18084  *)   set x $CONFIG_FILES ;;
18085  esac
18086  shift
18087  for mf
18088  do
18089    # Strip MF so we end up with the name of the file.
18090    mf=`echo "$mf" | sed -e 's/:.*$//'`
18091    # Check whether this is an Automake generated Makefile or not.
18092    # We used to match only the files named 'Makefile.in', but
18093    # some people rename them; so instead we look at the file content.
18094    # Grep'ing the first line is not enough: some people post-process
18095    # each Makefile.in and add a new line on top of each file to say so.
18096    # Grep'ing the whole file is not good either: AIX grep has a line
18097    # limit of 2048, but all sed's we know have understand at least 4000.
18098    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18099      dirpart=`$as_dirname -- "$mf" ||
18100$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18101	 X"$mf" : 'X\(//\)[^/]' \| \
18102	 X"$mf" : 'X\(//\)$' \| \
18103	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18104$as_echo X"$mf" |
18105    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18106	    s//\1/
18107	    q
18108	  }
18109	  /^X\(\/\/\)[^/].*/{
18110	    s//\1/
18111	    q
18112	  }
18113	  /^X\(\/\/\)$/{
18114	    s//\1/
18115	    q
18116	  }
18117	  /^X\(\/\).*/{
18118	    s//\1/
18119	    q
18120	  }
18121	  s/.*/./; q'`
18122    else
18123      continue
18124    fi
18125    # Extract the definition of DEPDIR, am__include, and am__quote
18126    # from the Makefile without running 'make'.
18127    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18128    test -z "$DEPDIR" && continue
18129    am__include=`sed -n 's/^am__include = //p' < "$mf"`
18130    test -z "$am__include" && continue
18131    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18132    # Find all dependency output files, they are included files with
18133    # $(DEPDIR) in their names.  We invoke sed twice because it is the
18134    # simplest approach to changing $(DEPDIR) to its actual value in the
18135    # expansion.
18136    for file in `sed -n "
18137      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18138	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18139      # Make sure the directory exists.
18140      test -f "$dirpart/$file" && continue
18141      fdir=`$as_dirname -- "$file" ||
18142$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18143	 X"$file" : 'X\(//\)[^/]' \| \
18144	 X"$file" : 'X\(//\)$' \| \
18145	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18146$as_echo X"$file" |
18147    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18148	    s//\1/
18149	    q
18150	  }
18151	  /^X\(\/\/\)[^/].*/{
18152	    s//\1/
18153	    q
18154	  }
18155	  /^X\(\/\/\)$/{
18156	    s//\1/
18157	    q
18158	  }
18159	  /^X\(\/\).*/{
18160	    s//\1/
18161	    q
18162	  }
18163	  s/.*/./; q'`
18164      as_dir=$dirpart/$fdir; as_fn_mkdir_p
18165      # echo "creating $dirpart/$file"
18166      echo '# dummy' > "$dirpart/$file"
18167    done
18168  done
18169}
18170 ;;
18171    "libtool":C)
18172
18173    # See if we are running on zsh, and set the options which allow our
18174    # commands through without removal of \ escapes.
18175    if test -n "${ZSH_VERSION+set}" ; then
18176      setopt NO_GLOB_SUBST
18177    fi
18178
18179    cfgfile="${ofile}T"
18180    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18181    $RM "$cfgfile"
18182
18183    cat <<_LT_EOF >> "$cfgfile"
18184#! $SHELL
18185
18186# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18187# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18188# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18189# NOTE: Changes made to this file will be lost: look at ltmain.sh.
18190#
18191#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18192#                 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
18193#   Written by Gordon Matzigkeit, 1996
18194#
18195#   This file is part of GNU Libtool.
18196#
18197# GNU Libtool is free software; you can redistribute it and/or
18198# modify it under the terms of the GNU General Public License as
18199# published by the Free Software Foundation; either version 2 of
18200# the License, or (at your option) any later version.
18201#
18202# As a special exception to the GNU General Public License,
18203# if you distribute this file as part of a program or library that
18204# is built using GNU Libtool, you may include this file under the
18205# same distribution terms that you use for the rest of that program.
18206#
18207# GNU Libtool is distributed in the hope that it will be useful,
18208# but WITHOUT ANY WARRANTY; without even the implied warranty of
18209# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18210# GNU General Public License for more details.
18211#
18212# You should have received a copy of the GNU General Public License
18213# along with GNU Libtool; see the file COPYING.  If not, a copy
18214# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18215# obtained by writing to the Free Software Foundation, Inc.,
18216# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18217
18218
18219# The names of the tagged configurations supported by this script.
18220available_tags=""
18221
18222# ### BEGIN LIBTOOL CONFIG
18223
18224# Whether or not to build shared libraries.
18225build_libtool_libs=$enable_shared
18226
18227# Which release of libtool.m4 was used?
18228macro_version=$macro_version
18229macro_revision=$macro_revision
18230
18231# Whether or not to build static libraries.
18232build_old_libs=$enable_static
18233
18234# What type of objects to build.
18235pic_mode=$pic_mode
18236
18237# Whether or not to optimize for fast installation.
18238fast_install=$enable_fast_install
18239
18240# Shell to use when invoking shell scripts.
18241SHELL=$lt_SHELL
18242
18243# An echo program that protects backslashes.
18244ECHO=$lt_ECHO
18245
18246# The host system.
18247host_alias=$host_alias
18248host=$host
18249host_os=$host_os
18250
18251# The build system.
18252build_alias=$build_alias
18253build=$build
18254build_os=$build_os
18255
18256# A sed program that does not truncate output.
18257SED=$lt_SED
18258
18259# Sed that helps us avoid accidentally triggering echo(1) options like -n.
18260Xsed="\$SED -e 1s/^X//"
18261
18262# A grep program that handles long lines.
18263GREP=$lt_GREP
18264
18265# An ERE matcher.
18266EGREP=$lt_EGREP
18267
18268# A literal string matcher.
18269FGREP=$lt_FGREP
18270
18271# A BSD- or MS-compatible name lister.
18272NM=$lt_NM
18273
18274# Whether we need soft or hard links.
18275LN_S=$lt_LN_S
18276
18277# What is the maximum length of a command?
18278max_cmd_len=$max_cmd_len
18279
18280# Object file suffix (normally "o").
18281objext=$ac_objext
18282
18283# Executable file suffix (normally "").
18284exeext=$exeext
18285
18286# whether the shell understands "unset".
18287lt_unset=$lt_unset
18288
18289# turn spaces into newlines.
18290SP2NL=$lt_lt_SP2NL
18291
18292# turn newlines into spaces.
18293NL2SP=$lt_lt_NL2SP
18294
18295# An object symbol dumper.
18296OBJDUMP=$lt_OBJDUMP
18297
18298# Method to check whether dependent libraries are shared objects.
18299deplibs_check_method=$lt_deplibs_check_method
18300
18301# Command to use when deplibs_check_method == "file_magic".
18302file_magic_cmd=$lt_file_magic_cmd
18303
18304# The archiver.
18305AR=$lt_AR
18306AR_FLAGS=$lt_AR_FLAGS
18307
18308# A symbol stripping program.
18309STRIP=$lt_STRIP
18310
18311# Commands used to install an old-style archive.
18312RANLIB=$lt_RANLIB
18313old_postinstall_cmds=$lt_old_postinstall_cmds
18314old_postuninstall_cmds=$lt_old_postuninstall_cmds
18315
18316# Whether to use a lock for old archive extraction.
18317lock_old_archive_extraction=$lock_old_archive_extraction
18318
18319# A C compiler.
18320LTCC=$lt_CC
18321
18322# LTCC compiler flags.
18323LTCFLAGS=$lt_CFLAGS
18324
18325# Take the output of nm and produce a listing of raw symbols and C names.
18326global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18327
18328# Transform the output of nm in a proper C declaration.
18329global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18330
18331# Transform the output of nm in a C name address pair.
18332global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18333
18334# Transform the output of nm in a C name address pair when lib prefix is needed.
18335global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18336
18337# The name of the directory that contains temporary libtool files.
18338objdir=$objdir
18339
18340# Used to examine libraries when file_magic_cmd begins with "file".
18341MAGIC_CMD=$MAGIC_CMD
18342
18343# Must we lock files when doing compilation?
18344need_locks=$lt_need_locks
18345
18346# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18347DSYMUTIL=$lt_DSYMUTIL
18348
18349# Tool to change global to local symbols on Mac OS X.
18350NMEDIT=$lt_NMEDIT
18351
18352# Tool to manipulate fat objects and archives on Mac OS X.
18353LIPO=$lt_LIPO
18354
18355# ldd/readelf like tool for Mach-O binaries on Mac OS X.
18356OTOOL=$lt_OTOOL
18357
18358# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18359OTOOL64=$lt_OTOOL64
18360
18361# Old archive suffix (normally "a").
18362libext=$libext
18363
18364# Shared library suffix (normally ".so").
18365shrext_cmds=$lt_shrext_cmds
18366
18367# The commands to extract the exported symbol list from a shared archive.
18368extract_expsyms_cmds=$lt_extract_expsyms_cmds
18369
18370# Variables whose values should be saved in libtool wrapper scripts and
18371# restored at link time.
18372variables_saved_for_relink=$lt_variables_saved_for_relink
18373
18374# Do we need the "lib" prefix for modules?
18375need_lib_prefix=$need_lib_prefix
18376
18377# Do we need a version for libraries?
18378need_version=$need_version
18379
18380# Library versioning type.
18381version_type=$version_type
18382
18383# Shared library runtime path variable.
18384runpath_var=$runpath_var
18385
18386# Shared library path variable.
18387shlibpath_var=$shlibpath_var
18388
18389# Is shlibpath searched before the hard-coded library search path?
18390shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18391
18392# Format of library name prefix.
18393libname_spec=$lt_libname_spec
18394
18395# List of archive names.  First name is the real one, the rest are links.
18396# The last name is the one that the linker finds with -lNAME
18397library_names_spec=$lt_library_names_spec
18398
18399# The coded name of the library, if different from the real name.
18400soname_spec=$lt_soname_spec
18401
18402# Permission mode override for installation of shared libraries.
18403install_override_mode=$lt_install_override_mode
18404
18405# Command to use after installation of a shared archive.
18406postinstall_cmds=$lt_postinstall_cmds
18407
18408# Command to use after uninstallation of a shared archive.
18409postuninstall_cmds=$lt_postuninstall_cmds
18410
18411# Commands used to finish a libtool library installation in a directory.
18412finish_cmds=$lt_finish_cmds
18413
18414# As "finish_cmds", except a single script fragment to be evaled but
18415# not shown.
18416finish_eval=$lt_finish_eval
18417
18418# Whether we should hardcode library paths into libraries.
18419hardcode_into_libs=$hardcode_into_libs
18420
18421# Compile-time system search path for libraries.
18422sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18423
18424# Run-time system search path for libraries.
18425sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18426
18427# Whether dlopen is supported.
18428dlopen_support=$enable_dlopen
18429
18430# Whether dlopen of programs is supported.
18431dlopen_self=$enable_dlopen_self
18432
18433# Whether dlopen of statically linked programs is supported.
18434dlopen_self_static=$enable_dlopen_self_static
18435
18436# Commands to strip libraries.
18437old_striplib=$lt_old_striplib
18438striplib=$lt_striplib
18439
18440
18441# The linker used to build libraries.
18442LD=$lt_LD
18443
18444# How to create reloadable object files.
18445reload_flag=$lt_reload_flag
18446reload_cmds=$lt_reload_cmds
18447
18448# Commands used to build an old-style archive.
18449old_archive_cmds=$lt_old_archive_cmds
18450
18451# A language specific compiler.
18452CC=$lt_compiler
18453
18454# Is the compiler the GNU compiler?
18455with_gcc=$GCC
18456
18457# Compiler flag to turn off builtin functions.
18458no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18459
18460# How to pass a linker flag through the compiler.
18461wl=$lt_lt_prog_compiler_wl
18462
18463# Additional compiler flags for building library objects.
18464pic_flag=$lt_lt_prog_compiler_pic
18465
18466# Compiler flag to prevent dynamic linking.
18467link_static_flag=$lt_lt_prog_compiler_static
18468
18469# Does compiler simultaneously support -c and -o options?
18470compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18471
18472# Whether or not to add -lc for building shared libraries.
18473build_libtool_need_lc=$archive_cmds_need_lc
18474
18475# Whether or not to disallow shared libs when runtime libs are static.
18476allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18477
18478# Compiler flag to allow reflexive dlopens.
18479export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18480
18481# Compiler flag to generate shared objects directly from archives.
18482whole_archive_flag_spec=$lt_whole_archive_flag_spec
18483
18484# Whether the compiler copes with passing no objects directly.
18485compiler_needs_object=$lt_compiler_needs_object
18486
18487# Create an old-style archive from a shared archive.
18488old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18489
18490# Create a temporary old-style archive to link instead of a shared archive.
18491old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18492
18493# Commands used to build a shared archive.
18494archive_cmds=$lt_archive_cmds
18495archive_expsym_cmds=$lt_archive_expsym_cmds
18496
18497# Commands used to build a loadable module if different from building
18498# a shared archive.
18499module_cmds=$lt_module_cmds
18500module_expsym_cmds=$lt_module_expsym_cmds
18501
18502# Whether we are building with GNU ld or not.
18503with_gnu_ld=$lt_with_gnu_ld
18504
18505# Flag that allows shared libraries with undefined symbols to be built.
18506allow_undefined_flag=$lt_allow_undefined_flag
18507
18508# Flag that enforces no undefined symbols.
18509no_undefined_flag=$lt_no_undefined_flag
18510
18511# Flag to hardcode \$libdir into a binary during linking.
18512# This must work even if \$libdir does not exist
18513hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18514
18515# If ld is used when linking, flag to hardcode \$libdir into a binary
18516# during linking.  This must work even if \$libdir does not exist.
18517hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18518
18519# Whether we need a single "-rpath" flag with a separated argument.
18520hardcode_libdir_separator=$lt_hardcode_libdir_separator
18521
18522# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18523# DIR into the resulting binary.
18524hardcode_direct=$hardcode_direct
18525
18526# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18527# DIR into the resulting binary and the resulting library dependency is
18528# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18529# library is relocated.
18530hardcode_direct_absolute=$hardcode_direct_absolute
18531
18532# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18533# into the resulting binary.
18534hardcode_minus_L=$hardcode_minus_L
18535
18536# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18537# into the resulting binary.
18538hardcode_shlibpath_var=$hardcode_shlibpath_var
18539
18540# Set to "yes" if building a shared library automatically hardcodes DIR
18541# into the library and all subsequent libraries and executables linked
18542# against it.
18543hardcode_automatic=$hardcode_automatic
18544
18545# Set to yes if linker adds runtime paths of dependent libraries
18546# to runtime path list.
18547inherit_rpath=$inherit_rpath
18548
18549# Whether libtool must link a program against all its dependency libraries.
18550link_all_deplibs=$link_all_deplibs
18551
18552# Fix the shell variable \$srcfile for the compiler.
18553fix_srcfile_path=$lt_fix_srcfile_path
18554
18555# Set to "yes" if exported symbols are required.
18556always_export_symbols=$always_export_symbols
18557
18558# The commands to list exported symbols.
18559export_symbols_cmds=$lt_export_symbols_cmds
18560
18561# Symbols that should not be listed in the preloaded symbols.
18562exclude_expsyms=$lt_exclude_expsyms
18563
18564# Symbols that must always be exported.
18565include_expsyms=$lt_include_expsyms
18566
18567# Commands necessary for linking programs (against libraries) with templates.
18568prelink_cmds=$lt_prelink_cmds
18569
18570# Specify filename containing input files.
18571file_list_spec=$lt_file_list_spec
18572
18573# How to hardcode a shared library path into an executable.
18574hardcode_action=$hardcode_action
18575
18576# ### END LIBTOOL CONFIG
18577
18578_LT_EOF
18579
18580  case $host_os in
18581  aix3*)
18582    cat <<\_LT_EOF >> "$cfgfile"
18583# AIX sometimes has problems with the GCC collect2 program.  For some
18584# reason, if we set the COLLECT_NAMES environment variable, the problems
18585# vanish in a puff of smoke.
18586if test "X${COLLECT_NAMES+set}" != Xset; then
18587  COLLECT_NAMES=
18588  export COLLECT_NAMES
18589fi
18590_LT_EOF
18591    ;;
18592  esac
18593
18594
18595ltmain="$ac_aux_dir/ltmain.sh"
18596
18597
18598  # We use sed instead of cat because bash on DJGPP gets confused if
18599  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
18600  # text mode, it properly converts lines to CR/LF.  This bash problem
18601  # is reportedly fixed, but why not run on old versions too?
18602  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18603    || (rm -f "$cfgfile"; exit 1)
18604
18605  case $xsi_shell in
18606  yes)
18607    cat << \_LT_EOF >> "$cfgfile"
18608
18609# func_dirname file append nondir_replacement
18610# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
18611# otherwise set result to NONDIR_REPLACEMENT.
18612func_dirname ()
18613{
18614  case ${1} in
18615    */*) func_dirname_result="${1%/*}${2}" ;;
18616    *  ) func_dirname_result="${3}" ;;
18617  esac
18618}
18619
18620# func_basename file
18621func_basename ()
18622{
18623  func_basename_result="${1##*/}"
18624}
18625
18626# func_dirname_and_basename file append nondir_replacement
18627# perform func_basename and func_dirname in a single function
18628# call:
18629#   dirname:  Compute the dirname of FILE.  If nonempty,
18630#             add APPEND to the result, otherwise set result
18631#             to NONDIR_REPLACEMENT.
18632#             value returned in "$func_dirname_result"
18633#   basename: Compute filename of FILE.
18634#             value retuned in "$func_basename_result"
18635# Implementation must be kept synchronized with func_dirname
18636# and func_basename. For efficiency, we do not delegate to
18637# those functions but instead duplicate the functionality here.
18638func_dirname_and_basename ()
18639{
18640  case ${1} in
18641    */*) func_dirname_result="${1%/*}${2}" ;;
18642    *  ) func_dirname_result="${3}" ;;
18643  esac
18644  func_basename_result="${1##*/}"
18645}
18646
18647# func_stripname prefix suffix name
18648# strip PREFIX and SUFFIX off of NAME.
18649# PREFIX and SUFFIX must not contain globbing or regex special
18650# characters, hashes, percent signs, but SUFFIX may contain a leading
18651# dot (in which case that matches only a dot).
18652func_stripname ()
18653{
18654  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18655  # positional parameters, so assign one to ordinary parameter first.
18656  func_stripname_result=${3}
18657  func_stripname_result=${func_stripname_result#"${1}"}
18658  func_stripname_result=${func_stripname_result%"${2}"}
18659}
18660
18661# func_opt_split
18662func_opt_split ()
18663{
18664  func_opt_split_opt=${1%%=*}
18665  func_opt_split_arg=${1#*=}
18666}
18667
18668# func_lo2o object
18669func_lo2o ()
18670{
18671  case ${1} in
18672    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18673    *)    func_lo2o_result=${1} ;;
18674  esac
18675}
18676
18677# func_xform libobj-or-source
18678func_xform ()
18679{
18680  func_xform_result=${1%.*}.lo
18681}
18682
18683# func_arith arithmetic-term...
18684func_arith ()
18685{
18686  func_arith_result=$(( $* ))
18687}
18688
18689# func_len string
18690# STRING may not start with a hyphen.
18691func_len ()
18692{
18693  func_len_result=${#1}
18694}
18695
18696_LT_EOF
18697    ;;
18698  *) # Bourne compatible functions.
18699    cat << \_LT_EOF >> "$cfgfile"
18700
18701# func_dirname file append nondir_replacement
18702# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
18703# otherwise set result to NONDIR_REPLACEMENT.
18704func_dirname ()
18705{
18706  # Extract subdirectory from the argument.
18707  func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
18708  if test "X$func_dirname_result" = "X${1}"; then
18709    func_dirname_result="${3}"
18710  else
18711    func_dirname_result="$func_dirname_result${2}"
18712  fi
18713}
18714
18715# func_basename file
18716func_basename ()
18717{
18718  func_basename_result=`$ECHO "${1}" | $SED "$basename"`
18719}
18720
18721
18722# func_stripname prefix suffix name
18723# strip PREFIX and SUFFIX off of NAME.
18724# PREFIX and SUFFIX must not contain globbing or regex special
18725# characters, hashes, percent signs, but SUFFIX may contain a leading
18726# dot (in which case that matches only a dot).
18727# func_strip_suffix prefix name
18728func_stripname ()
18729{
18730  case ${2} in
18731    .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
18732    *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
18733  esac
18734}
18735
18736# sed scripts:
18737my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18738my_sed_long_arg='1s/^-[^=]*=//'
18739
18740# func_opt_split
18741func_opt_split ()
18742{
18743  func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
18744  func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
18745}
18746
18747# func_lo2o object
18748func_lo2o ()
18749{
18750  func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
18751}
18752
18753# func_xform libobj-or-source
18754func_xform ()
18755{
18756  func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
18757}
18758
18759# func_arith arithmetic-term...
18760func_arith ()
18761{
18762  func_arith_result=`expr "$@"`
18763}
18764
18765# func_len string
18766# STRING may not start with a hyphen.
18767func_len ()
18768{
18769  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18770}
18771
18772_LT_EOF
18773esac
18774
18775case $lt_shell_append in
18776  yes)
18777    cat << \_LT_EOF >> "$cfgfile"
18778
18779# func_append var value
18780# Append VALUE to the end of shell variable VAR.
18781func_append ()
18782{
18783  eval "$1+=\$2"
18784}
18785_LT_EOF
18786    ;;
18787  *)
18788    cat << \_LT_EOF >> "$cfgfile"
18789
18790# func_append var value
18791# Append VALUE to the end of shell variable VAR.
18792func_append ()
18793{
18794  eval "$1=\$$1\$2"
18795}
18796
18797_LT_EOF
18798    ;;
18799  esac
18800
18801
18802  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18803    || (rm -f "$cfgfile"; exit 1)
18804
18805  mv -f "$cfgfile" "$ofile" ||
18806    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18807  chmod +x "$ofile"
18808
18809 ;;
18810    "default-1":C)
18811    for ac_file in $CONFIG_FILES; do
18812      # Support "outfile[:infile[:infile...]]"
18813      case "$ac_file" in
18814        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18815      esac
18816      # PO directories have a Makefile.in generated from Makefile.in.in.
18817      case "$ac_file" in */Makefile.in)
18818        # Adjust a relative srcdir.
18819        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
18820        ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
18821        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
18822        # In autoconf-2.13 it is called $ac_given_srcdir.
18823        # In autoconf-2.50 it is called $srcdir.
18824        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
18825        case "$ac_given_srcdir" in
18826          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
18827          /*) top_srcdir="$ac_given_srcdir" ;;
18828          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
18829        esac
18830        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
18831          rm -f "$ac_dir/POTFILES"
18832          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
18833          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ 	]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
18834          POMAKEFILEDEPS="POTFILES.in"
18835          # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
18836          # on $ac_dir but don't depend on user-specified configuration
18837          # parameters.
18838          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
18839            # The LINGUAS file contains the set of available languages.
18840            if test -n "$OBSOLETE_ALL_LINGUAS"; then
18841              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete"
18842            fi
18843            ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
18844            # Hide the ALL_LINGUAS assigment from automake.
18845            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
18846            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
18847          else
18848            # The set of available languages was given in configure.ac.
18849            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
18850          fi
18851          case "$ac_given_srcdir" in
18852            .) srcdirpre= ;;
18853            *) srcdirpre='$(srcdir)/' ;;
18854          esac
18855          POFILES=
18856          GMOFILES=
18857          UPDATEPOFILES=
18858          DUMMYPOFILES=
18859          for lang in $ALL_LINGUAS; do
18860            POFILES="$POFILES $srcdirpre$lang.po"
18861            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
18862            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
18863            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
18864          done
18865          # CATALOGS depends on both $ac_dir and the user's LINGUAS
18866          # environment variable.
18867          INST_LINGUAS=
18868          if test -n "$ALL_LINGUAS"; then
18869            for presentlang in $ALL_LINGUAS; do
18870              useit=no
18871              if test "%UNSET%" != "$LINGUAS"; then
18872                desiredlanguages="$LINGUAS"
18873              else
18874                desiredlanguages="$ALL_LINGUAS"
18875              fi
18876              for desiredlang in $desiredlanguages; do
18877                # Use the presentlang catalog if desiredlang is
18878                #   a. equal to presentlang, or
18879                #   b. a variant of presentlang (because in this case,
18880                #      presentlang can be used as a fallback for messages
18881                #      which are not translated in the desiredlang catalog).
18882                case "$desiredlang" in
18883                  "$presentlang"*) useit=yes;;
18884                esac
18885              done
18886              if test $useit = yes; then
18887                INST_LINGUAS="$INST_LINGUAS $presentlang"
18888              fi
18889            done
18890          fi
18891          CATALOGS=
18892          if test -n "$INST_LINGUAS"; then
18893            for lang in $INST_LINGUAS; do
18894              CATALOGS="$CATALOGS $lang.gmo"
18895            done
18896          fi
18897          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
18898          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"
18899          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
18900            if test -f "$f"; then
18901              case "$f" in
18902                *.orig | *.bak | *~) ;;
18903                *) cat "$f" >> "$ac_dir/Makefile" ;;
18904              esac
18905            fi
18906          done
18907        fi
18908        ;;
18909      esac
18910    done ;;
18911    "bfd_stdint.h":C)
18912if test "$GCC" = yes; then
18913  echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
18914else
18915  echo "/* generated for $CC */" > tmp-stdint.h
18916fi
18917
18918sed 's/^ *//' >> tmp-stdint.h <<EOF
18919
18920  #ifndef GCC_GENERATED_STDINT_H
18921  #define GCC_GENERATED_STDINT_H 1
18922
18923  #include <sys/types.h>
18924EOF
18925
18926if test "$acx_cv_header_stdint" != stdint.h; then
18927  echo "#include <stddef.h>" >> tmp-stdint.h
18928fi
18929if test "$acx_cv_header_stdint" != stddef.h; then
18930  echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
18931fi
18932
18933sed 's/^ *//' >> tmp-stdint.h <<EOF
18934  /* glibc uses these symbols as guards to prevent redefinitions.  */
18935  #ifdef __int8_t_defined
18936  #define _INT8_T
18937  #define _INT16_T
18938  #define _INT32_T
18939  #endif
18940  #ifdef __uint32_t_defined
18941  #define _UINT32_T
18942  #endif
18943
18944EOF
18945
18946# ----------------- done header, emit basic int types -------------
18947if test "$acx_cv_header_stdint" = stddef.h; then
18948  sed 's/^ *//' >> tmp-stdint.h <<EOF
18949
18950    #ifndef _UINT8_T
18951    #define _UINT8_T
18952    #ifndef __uint8_t_defined
18953    #define __uint8_t_defined
18954    #ifndef uint8_t
18955    typedef unsigned $acx_cv_type_int8_t uint8_t;
18956    #endif
18957    #endif
18958    #endif
18959
18960    #ifndef _UINT16_T
18961    #define _UINT16_T
18962    #ifndef __uint16_t_defined
18963    #define __uint16_t_defined
18964    #ifndef uint16_t
18965    typedef unsigned $acx_cv_type_int16_t uint16_t;
18966    #endif
18967    #endif
18968    #endif
18969
18970    #ifndef _UINT32_T
18971    #define _UINT32_T
18972    #ifndef __uint32_t_defined
18973    #define __uint32_t_defined
18974    #ifndef uint32_t
18975    typedef unsigned $acx_cv_type_int32_t uint32_t;
18976    #endif
18977    #endif
18978    #endif
18979
18980    #ifndef _INT8_T
18981    #define _INT8_T
18982    #ifndef __int8_t_defined
18983    #define __int8_t_defined
18984    #ifndef int8_t
18985    typedef $acx_cv_type_int8_t int8_t;
18986    #endif
18987    #endif
18988    #endif
18989
18990    #ifndef _INT16_T
18991    #define _INT16_T
18992    #ifndef __int16_t_defined
18993    #define __int16_t_defined
18994    #ifndef int16_t
18995    typedef $acx_cv_type_int16_t int16_t;
18996    #endif
18997    #endif
18998    #endif
18999
19000    #ifndef _INT32_T
19001    #define _INT32_T
19002    #ifndef __int32_t_defined
19003    #define __int32_t_defined
19004    #ifndef int32_t
19005    typedef $acx_cv_type_int32_t int32_t;
19006    #endif
19007    #endif
19008    #endif
19009EOF
19010elif test "$ac_cv_type_u_int32_t" = yes; then
19011  sed 's/^ *//' >> tmp-stdint.h <<EOF
19012
19013    /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
19014    #ifndef _INT8_T
19015    #define _INT8_T
19016    #endif
19017    #ifndef _INT16_T
19018    #define _INT16_T
19019    #endif
19020    #ifndef _INT32_T
19021    #define _INT32_T
19022    #endif
19023
19024    #ifndef _UINT8_T
19025    #define _UINT8_T
19026    #ifndef __uint8_t_defined
19027    #define __uint8_t_defined
19028    #ifndef uint8_t
19029    typedef u_int8_t uint8_t;
19030    #endif
19031    #endif
19032    #endif
19033
19034    #ifndef _UINT16_T
19035    #define _UINT16_T
19036    #ifndef __uint16_t_defined
19037    #define __uint16_t_defined
19038    #ifndef uint16_t
19039    typedef u_int16_t uint16_t;
19040    #endif
19041    #endif
19042    #endif
19043
19044    #ifndef _UINT32_T
19045    #define _UINT32_T
19046    #ifndef __uint32_t_defined
19047    #define __uint32_t_defined
19048    #ifndef uint32_t
19049    typedef u_int32_t uint32_t;
19050    #endif
19051    #endif
19052    #endif
19053EOF
19054else
19055  sed 's/^ *//' >> tmp-stdint.h <<EOF
19056
19057    /* Some systems have guard macros to prevent redefinitions, define them.  */
19058    #ifndef _INT8_T
19059    #define _INT8_T
19060    #endif
19061    #ifndef _INT16_T
19062    #define _INT16_T
19063    #endif
19064    #ifndef _INT32_T
19065    #define _INT32_T
19066    #endif
19067    #ifndef _UINT8_T
19068    #define _UINT8_T
19069    #endif
19070    #ifndef _UINT16_T
19071    #define _UINT16_T
19072    #endif
19073    #ifndef _UINT32_T
19074    #define _UINT32_T
19075    #endif
19076EOF
19077fi
19078
19079# ------------- done basic int types, emit int64_t types ------------
19080if test "$ac_cv_type_uint64_t" = yes; then
19081  sed 's/^ *//' >> tmp-stdint.h <<EOF
19082
19083    /* system headers have good uint64_t and int64_t */
19084    #ifndef _INT64_T
19085    #define _INT64_T
19086    #endif
19087    #ifndef _UINT64_T
19088    #define _UINT64_T
19089    #endif
19090EOF
19091elif test "$ac_cv_type_u_int64_t" = yes; then
19092  sed 's/^ *//' >> tmp-stdint.h <<EOF
19093
19094    /* system headers have an u_int64_t (and int64_t) */
19095    #ifndef _INT64_T
19096    #define _INT64_T
19097    #endif
19098    #ifndef _UINT64_T
19099    #define _UINT64_T
19100    #ifndef __uint64_t_defined
19101    #define __uint64_t_defined
19102    #ifndef uint64_t
19103    typedef u_int64_t uint64_t;
19104    #endif
19105    #endif
19106    #endif
19107EOF
19108elif test -n "$acx_cv_type_int64_t"; then
19109  sed 's/^ *//' >> tmp-stdint.h <<EOF
19110
19111    /* architecture has a 64-bit type, $acx_cv_type_int64_t */
19112    #ifndef _INT64_T
19113    #define _INT64_T
19114    #ifndef int64_t
19115    typedef $acx_cv_type_int64_t int64_t;
19116    #endif
19117    #endif
19118    #ifndef _UINT64_T
19119    #define _UINT64_T
19120    #ifndef __uint64_t_defined
19121    #define __uint64_t_defined
19122    #ifndef uint64_t
19123    typedef unsigned $acx_cv_type_int64_t uint64_t;
19124    #endif
19125    #endif
19126    #endif
19127EOF
19128else
19129  sed 's/^ *//' >> tmp-stdint.h <<EOF
19130
19131    /* some common heuristics for int64_t, using compiler-specific tests */
19132    #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
19133    #ifndef _INT64_T
19134    #define _INT64_T
19135    #ifndef __int64_t_defined
19136    #ifndef int64_t
19137    typedef long long int64_t;
19138    #endif
19139    #endif
19140    #endif
19141    #ifndef _UINT64_T
19142    #define _UINT64_T
19143    #ifndef uint64_t
19144    typedef unsigned long long uint64_t;
19145    #endif
19146    #endif
19147
19148    #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
19149    /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
19150       does not implement __extension__.  But that compiler doesn't define
19151       __GNUC_MINOR__.  */
19152    # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
19153    # define __extension__
19154    # endif
19155
19156    # ifndef _INT64_T
19157    # define _INT64_T
19158    # ifndef int64_t
19159    __extension__ typedef long long int64_t;
19160    # endif
19161    # endif
19162    # ifndef _UINT64_T
19163    # define _UINT64_T
19164    # ifndef uint64_t
19165    __extension__ typedef unsigned long long uint64_t;
19166    # endif
19167    # endif
19168
19169    #elif !defined __STRICT_ANSI__
19170    # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
19171
19172    #  ifndef _INT64_T
19173    #  define _INT64_T
19174    #  ifndef int64_t
19175    typedef __int64 int64_t;
19176    #  endif
19177    #  endif
19178    #  ifndef _UINT64_T
19179    #  define _UINT64_T
19180    #  ifndef uint64_t
19181    typedef unsigned __int64 uint64_t;
19182    #  endif
19183    #  endif
19184    # endif /* compiler */
19185
19186    #endif /* ANSI version */
19187EOF
19188fi
19189
19190# ------------- done int64_t types, emit intptr types ------------
19191if test "$ac_cv_type_uintptr_t" != yes; then
19192  sed 's/^ *//' >> tmp-stdint.h <<EOF
19193
19194    /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
19195    #ifndef __uintptr_t_defined
19196    #ifndef uintptr_t
19197    typedef u$acx_cv_type_intptr_t uintptr_t;
19198    #endif
19199    #endif
19200    #ifndef __intptr_t_defined
19201    #ifndef intptr_t
19202    typedef $acx_cv_type_intptr_t  intptr_t;
19203    #endif
19204    #endif
19205EOF
19206fi
19207
19208# ------------- done intptr types, emit int_least types ------------
19209if test "$ac_cv_type_int_least32_t" != yes; then
19210  sed 's/^ *//' >> tmp-stdint.h <<EOF
19211
19212    /* Define int_least types */
19213    typedef int8_t     int_least8_t;
19214    typedef int16_t    int_least16_t;
19215    typedef int32_t    int_least32_t;
19216    #ifdef _INT64_T
19217    typedef int64_t    int_least64_t;
19218    #endif
19219
19220    typedef uint8_t    uint_least8_t;
19221    typedef uint16_t   uint_least16_t;
19222    typedef uint32_t   uint_least32_t;
19223    #ifdef _UINT64_T
19224    typedef uint64_t   uint_least64_t;
19225    #endif
19226EOF
19227fi
19228
19229# ------------- done intptr types, emit int_fast types ------------
19230if test "$ac_cv_type_int_fast32_t" != yes; then
19231      sed 's/^ *//' >> tmp-stdint.h <<EOF
19232
19233    /* Define int_fast types.  short is often slow */
19234    typedef int8_t       int_fast8_t;
19235    typedef int          int_fast16_t;
19236    typedef int32_t      int_fast32_t;
19237    #ifdef _INT64_T
19238    typedef int64_t      int_fast64_t;
19239    #endif
19240
19241    typedef uint8_t      uint_fast8_t;
19242    typedef unsigned int uint_fast16_t;
19243    typedef uint32_t     uint_fast32_t;
19244    #ifdef _UINT64_T
19245    typedef uint64_t     uint_fast64_t;
19246    #endif
19247EOF
19248fi
19249
19250if test "$ac_cv_type_uintmax_t" != yes; then
19251  sed 's/^ *//' >> tmp-stdint.h <<EOF
19252
19253    /* Define intmax based on what we found */
19254    #ifndef intmax_t
19255    #ifdef _INT64_T
19256    typedef int64_t       intmax_t;
19257    #else
19258    typedef long          intmax_t;
19259    #endif
19260    #endif
19261    #ifndef uintmax_t
19262    #ifdef _UINT64_T
19263    typedef uint64_t      uintmax_t;
19264    #else
19265    typedef unsigned long uintmax_t;
19266    #endif
19267    #endif
19268EOF
19269fi
19270
19271sed 's/^ *//' >> tmp-stdint.h <<EOF
19272
19273  #endif /* GCC_GENERATED_STDINT_H */
19274EOF
19275
19276if test -r bfd_stdint.h && cmp -s tmp-stdint.h bfd_stdint.h; then
19277  rm -f tmp-stdint.h
19278else
19279  mv -f tmp-stdint.h bfd_stdint.h
19280fi
19281
19282 ;;
19283    "default":C)
19284case "$srcdir" in
19285  .) srcdirpre= ;;
19286  *) srcdirpre='$(srcdir)/' ;;
19287esac
19288POFILES=
19289GMOFILES=
19290for lang in dummy $OBSOLETE_ALL_LINGUAS; do
19291  if test $lang != dummy; then
19292    POFILES="$POFILES $srcdirpre$lang.po"
19293    GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
19294  fi
19295done
19296sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' \
19297    -e '/BLD-POTFILES =/r po/BLD-POTFILES' \
19298    -e "s,@POFILES@,$POFILES," \
19299    -e "s,@GMOFILES@,$GMOFILES," \
19300    po/Makefile.in > po/Makefile ;;
19301
19302  esac
19303done # for ac_tag
19304
19305
19306as_fn_exit 0
19307_ACEOF
19308ac_clean_files=$ac_clean_files_save
19309
19310test $ac_write_fail = 0 ||
19311  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19312
19313
19314# configure is writing to config.log, and then calls config.status.
19315# config.status does its own redirection, appending to config.log.
19316# Unfortunately, on DOS this fails, as config.log is still kept open
19317# by configure, so config.status won't be able to write to it; its
19318# output is simply discarded.  So we exec the FD to /dev/null,
19319# effectively closing config.log, so it can be properly (re)opened and
19320# appended to by config.status.  When coming back to configure, we
19321# need to make the FD available again.
19322if test "$no_create" != yes; then
19323  ac_cs_success=:
19324  ac_config_status_args=
19325  test "$silent" = yes &&
19326    ac_config_status_args="$ac_config_status_args --quiet"
19327  exec 5>/dev/null
19328  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19329  exec 5>>config.log
19330  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19331  # would make configure fail if this is the last instruction.
19332  $ac_cs_success || as_fn_exit 1
19333fi
19334if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19335  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19336$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19337fi
19338
19339