xref: /netbsd-src/external/gpl3/gdb/dist/bfd/configure (revision a0edf354f102e06f84ed5decc5e4df600cb7e67f)
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for bfd 2.42.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.42.50'
592PACKAGE_STRING='bfd 2.42.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
633gt_needs=
634ac_header_list=
635ac_subst_vars='am__EXEEXT_FALSE
636am__EXEEXT_TRUE
637LTLIBOBJS
638LIBOBJS
639bfd_ufile_ptr
640bfd_file_ptr
641lt_cv_dlopen_libs
642supports_plugins
643COREFLAG
644COREFILE
645havevecs
646tdefaults
647bfd_default_target_size
648bfd_machines
649bfd_backends
650all_backends
651bfd64_libs
652wordsize
653TDEFINES
654SHARED_LIBADD
655SHARED_LDFLAGS
656LIBM
657ZSTD_LIBS
658ZSTD_CFLAGS
659PKG_CONFIG_LIBDIR
660PKG_CONFIG_PATH
661PKG_CONFIG
662zlibinc
663zlibdir
664EXEEXT_FOR_BUILD
665CC_FOR_BUILD
666HDEFINES
667CATOBJEXT
668GENCAT
669INSTOBJEXT
670DATADIRNAME
671CATALOGS
672INCINTL
673LIBINTL_DEP
674POSUB
675LTLIBINTL
676LIBINTL
677INTLLIBS
678LTLIBICONV
679LIBICONV
680INTL_MACOSX_LIBS
681MSGMERGE
682XGETTEXT
683GMSGFMT
684MSGFMT
685USE_NLS
686MKINSTALLDIRS
687bfdincludedir
688bfdlibdir
689target_noncanonical
690host_noncanonical
691INSTALL_LIBBFD_FALSE
692INSTALL_LIBBFD_TRUE
693GENINSRC_NEVER_FALSE
694GENINSRC_NEVER_TRUE
695MAINT
696MAINTAINER_MODE_FALSE
697MAINTAINER_MODE_TRUE
698WARN_WRITE_STRINGS
699NO_WERROR
700WARN_CFLAGS_FOR_BUILD
701WARN_CFLAGS
702REPORT_BUGS_TEXI
703REPORT_BUGS_TO
704PKGVERSION
705DEBUGDIR
706ENABLE_BFD_64_BIT_FALSE
707ENABLE_BFD_64_BIT_TRUE
708PLUGINS_FALSE
709PLUGINS_TRUE
710LARGEFILE_CPPFLAGS
711OTOOL64
712OTOOL
713LIPO
714NMEDIT
715DSYMUTIL
716OBJDUMP
717LN_S
718NM
719ac_ct_DUMPBIN
720DUMPBIN
721LD
722FGREP
723SED
724LIBTOOL
725EGREP
726GREP
727CPP
728am__fastdepCC_FALSE
729am__fastdepCC_TRUE
730CCDEPMODE
731am__nodep
732AMDEPBACKSLASH
733AMDEP_FALSE
734AMDEP_TRUE
735am__quote
736am__include
737DEPDIR
738OBJEXT
739EXEEXT
740ac_ct_CC
741CPPFLAGS
742LDFLAGS
743CFLAGS
744CC
745RANLIB
746AR
747AM_BACKSLASH
748AM_DEFAULT_VERBOSITY
749AM_DEFAULT_V
750AM_V
751am__untar
752am__tar
753AMTAR
754am__leading_dot
755SET_MAKE
756AWK
757mkdir_p
758MKDIR_P
759INSTALL_STRIP_PROGRAM
760STRIP
761install_sh
762MAKEINFO
763AUTOHEADER
764AUTOMAKE
765AUTOCONF
766ACLOCAL
767VERSION
768PACKAGE
769CYGPATH_W
770am__isrc
771INSTALL_DATA
772INSTALL_SCRIPT
773INSTALL_PROGRAM
774target_os
775target_vendor
776target_cpu
777target
778host_os
779host_vendor
780host_cpu
781host
782build_os
783build_vendor
784build_cpu
785build
786target_alias
787host_alias
788build_alias
789LIBS
790ECHO_T
791ECHO_N
792ECHO_C
793DEFS
794mandir
795localedir
796libdir
797psdir
798pdfdir
799dvidir
800htmldir
801infodir
802docdir
803oldincludedir
804includedir
805localstatedir
806sharedstatedir
807sysconfdir
808datadir
809datarootdir
810libexecdir
811sbindir
812bindir
813program_transform_name
814prefix
815exec_prefix
816PACKAGE_URL
817PACKAGE_BUGREPORT
818PACKAGE_STRING
819PACKAGE_VERSION
820PACKAGE_TARNAME
821PACKAGE_NAME
822PATH_SEPARATOR
823SHELL'
824ac_subst_files=''
825ac_user_opts='
826enable_option_checking
827enable_silent_rules
828enable_shared
829enable_dependency_tracking
830enable_static
831with_pic
832enable_fast_install
833with_gnu_ld
834enable_libtool_lock
835enable_plugins
836enable_largefile
837enable_checking
838enable_64_bit_bfd
839enable_targets
840enable_64_bit_archive
841with_mmap
842enable_secureplt
843enable_separate_code
844enable_leading_mingw64_underscores
845with_separate_debug_dir
846with_pkgversion
847with_bugurl
848enable_werror
849enable_build_warnings
850enable_maintainer_mode
851enable_install_libbfd
852enable_nls
853enable_rpath
854with_libiconv_prefix
855with_libiconv_type
856with_libintl_prefix
857with_libintl_type
858with_system_zlib
859with_zstd
860'
861      ac_precious_vars='build_alias
862host_alias
863target_alias
864CC
865CFLAGS
866LDFLAGS
867LIBS
868CPPFLAGS
869CPP
870PKG_CONFIG
871PKG_CONFIG_PATH
872PKG_CONFIG_LIBDIR
873ZSTD_CFLAGS
874ZSTD_LIBS'
875
876
877# Initialize some variables set by options.
878ac_init_help=
879ac_init_version=false
880ac_unrecognized_opts=
881ac_unrecognized_sep=
882# The variables have the same names as the options, with
883# dashes changed to underlines.
884cache_file=/dev/null
885exec_prefix=NONE
886no_create=
887no_recursion=
888prefix=NONE
889program_prefix=NONE
890program_suffix=NONE
891program_transform_name=s,x,x,
892silent=
893site=
894srcdir=
895verbose=
896x_includes=NONE
897x_libraries=NONE
898
899# Installation directory options.
900# These are left unexpanded so users can "make install exec_prefix=/foo"
901# and all the variables that are supposed to be based on exec_prefix
902# by default will actually change.
903# Use braces instead of parens because sh, perl, etc. also accept them.
904# (The list follows the same order as the GNU Coding Standards.)
905bindir='${exec_prefix}/bin'
906sbindir='${exec_prefix}/sbin'
907libexecdir='${exec_prefix}/libexec'
908datarootdir='${prefix}/share'
909datadir='${datarootdir}'
910sysconfdir='${prefix}/etc'
911sharedstatedir='${prefix}/com'
912localstatedir='${prefix}/var'
913includedir='${prefix}/include'
914oldincludedir='/usr/include'
915docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
916infodir='${datarootdir}/info'
917htmldir='${docdir}'
918dvidir='${docdir}'
919pdfdir='${docdir}'
920psdir='${docdir}'
921libdir='${exec_prefix}/lib'
922localedir='${datarootdir}/locale'
923mandir='${datarootdir}/man'
924
925ac_prev=
926ac_dashdash=
927for ac_option
928do
929  # If the previous option needs an argument, assign it.
930  if test -n "$ac_prev"; then
931    eval $ac_prev=\$ac_option
932    ac_prev=
933    continue
934  fi
935
936  case $ac_option in
937  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
938  *=)   ac_optarg= ;;
939  *)    ac_optarg=yes ;;
940  esac
941
942  # Accept the important Cygnus configure options, so we can diagnose typos.
943
944  case $ac_dashdash$ac_option in
945  --)
946    ac_dashdash=yes ;;
947
948  -bindir | --bindir | --bindi | --bind | --bin | --bi)
949    ac_prev=bindir ;;
950  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
951    bindir=$ac_optarg ;;
952
953  -build | --build | --buil | --bui | --bu)
954    ac_prev=build_alias ;;
955  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
956    build_alias=$ac_optarg ;;
957
958  -cache-file | --cache-file | --cache-fil | --cache-fi \
959  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
960    ac_prev=cache_file ;;
961  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
962  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
963    cache_file=$ac_optarg ;;
964
965  --config-cache | -C)
966    cache_file=config.cache ;;
967
968  -datadir | --datadir | --datadi | --datad)
969    ac_prev=datadir ;;
970  -datadir=* | --datadir=* | --datadi=* | --datad=*)
971    datadir=$ac_optarg ;;
972
973  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
974  | --dataroo | --dataro | --datar)
975    ac_prev=datarootdir ;;
976  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
977  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
978    datarootdir=$ac_optarg ;;
979
980  -disable-* | --disable-*)
981    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
982    # Reject names that are not valid shell variable names.
983    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
984      as_fn_error $? "invalid feature name: $ac_useropt"
985    ac_useropt_orig=$ac_useropt
986    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
987    case $ac_user_opts in
988      *"
989"enable_$ac_useropt"
990"*) ;;
991      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
992	 ac_unrecognized_sep=', ';;
993    esac
994    eval enable_$ac_useropt=no ;;
995
996  -docdir | --docdir | --docdi | --doc | --do)
997    ac_prev=docdir ;;
998  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
999    docdir=$ac_optarg ;;
1000
1001  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1002    ac_prev=dvidir ;;
1003  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1004    dvidir=$ac_optarg ;;
1005
1006  -enable-* | --enable-*)
1007    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1008    # Reject names that are not valid shell variable names.
1009    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1010      as_fn_error $? "invalid feature name: $ac_useropt"
1011    ac_useropt_orig=$ac_useropt
1012    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1013    case $ac_user_opts in
1014      *"
1015"enable_$ac_useropt"
1016"*) ;;
1017      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1018	 ac_unrecognized_sep=', ';;
1019    esac
1020    eval enable_$ac_useropt=\$ac_optarg ;;
1021
1022  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1023  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1024  | --exec | --exe | --ex)
1025    ac_prev=exec_prefix ;;
1026  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1027  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1028  | --exec=* | --exe=* | --ex=*)
1029    exec_prefix=$ac_optarg ;;
1030
1031  -gas | --gas | --ga | --g)
1032    # Obsolete; use --with-gas.
1033    with_gas=yes ;;
1034
1035  -help | --help | --hel | --he | -h)
1036    ac_init_help=long ;;
1037  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1038    ac_init_help=recursive ;;
1039  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1040    ac_init_help=short ;;
1041
1042  -host | --host | --hos | --ho)
1043    ac_prev=host_alias ;;
1044  -host=* | --host=* | --hos=* | --ho=*)
1045    host_alias=$ac_optarg ;;
1046
1047  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1048    ac_prev=htmldir ;;
1049  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1050  | --ht=*)
1051    htmldir=$ac_optarg ;;
1052
1053  -includedir | --includedir | --includedi | --included | --include \
1054  | --includ | --inclu | --incl | --inc)
1055    ac_prev=includedir ;;
1056  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1057  | --includ=* | --inclu=* | --incl=* | --inc=*)
1058    includedir=$ac_optarg ;;
1059
1060  -infodir | --infodir | --infodi | --infod | --info | --inf)
1061    ac_prev=infodir ;;
1062  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1063    infodir=$ac_optarg ;;
1064
1065  -libdir | --libdir | --libdi | --libd)
1066    ac_prev=libdir ;;
1067  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1068    libdir=$ac_optarg ;;
1069
1070  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1071  | --libexe | --libex | --libe)
1072    ac_prev=libexecdir ;;
1073  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1074  | --libexe=* | --libex=* | --libe=*)
1075    libexecdir=$ac_optarg ;;
1076
1077  -localedir | --localedir | --localedi | --localed | --locale)
1078    ac_prev=localedir ;;
1079  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1080    localedir=$ac_optarg ;;
1081
1082  -localstatedir | --localstatedir | --localstatedi | --localstated \
1083  | --localstate | --localstat | --localsta | --localst | --locals)
1084    ac_prev=localstatedir ;;
1085  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1086  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1087    localstatedir=$ac_optarg ;;
1088
1089  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1090    ac_prev=mandir ;;
1091  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1092    mandir=$ac_optarg ;;
1093
1094  -nfp | --nfp | --nf)
1095    # Obsolete; use --without-fp.
1096    with_fp=no ;;
1097
1098  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1099  | --no-cr | --no-c | -n)
1100    no_create=yes ;;
1101
1102  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1103  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1104    no_recursion=yes ;;
1105
1106  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1107  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1108  | --oldin | --oldi | --old | --ol | --o)
1109    ac_prev=oldincludedir ;;
1110  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1111  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1112  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1113    oldincludedir=$ac_optarg ;;
1114
1115  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1116    ac_prev=prefix ;;
1117  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1118    prefix=$ac_optarg ;;
1119
1120  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1121  | --program-pre | --program-pr | --program-p)
1122    ac_prev=program_prefix ;;
1123  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1124  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1125    program_prefix=$ac_optarg ;;
1126
1127  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1128  | --program-suf | --program-su | --program-s)
1129    ac_prev=program_suffix ;;
1130  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1131  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1132    program_suffix=$ac_optarg ;;
1133
1134  -program-transform-name | --program-transform-name \
1135  | --program-transform-nam | --program-transform-na \
1136  | --program-transform-n | --program-transform- \
1137  | --program-transform | --program-transfor \
1138  | --program-transfo | --program-transf \
1139  | --program-trans | --program-tran \
1140  | --progr-tra | --program-tr | --program-t)
1141    ac_prev=program_transform_name ;;
1142  -program-transform-name=* | --program-transform-name=* \
1143  | --program-transform-nam=* | --program-transform-na=* \
1144  | --program-transform-n=* | --program-transform-=* \
1145  | --program-transform=* | --program-transfor=* \
1146  | --program-transfo=* | --program-transf=* \
1147  | --program-trans=* | --program-tran=* \
1148  | --progr-tra=* | --program-tr=* | --program-t=*)
1149    program_transform_name=$ac_optarg ;;
1150
1151  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1152    ac_prev=pdfdir ;;
1153  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1154    pdfdir=$ac_optarg ;;
1155
1156  -psdir | --psdir | --psdi | --psd | --ps)
1157    ac_prev=psdir ;;
1158  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1159    psdir=$ac_optarg ;;
1160
1161  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1162  | -silent | --silent | --silen | --sile | --sil)
1163    silent=yes ;;
1164
1165  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1166    ac_prev=sbindir ;;
1167  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1168  | --sbi=* | --sb=*)
1169    sbindir=$ac_optarg ;;
1170
1171  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1172  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1173  | --sharedst | --shareds | --shared | --share | --shar \
1174  | --sha | --sh)
1175    ac_prev=sharedstatedir ;;
1176  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1177  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1178  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1179  | --sha=* | --sh=*)
1180    sharedstatedir=$ac_optarg ;;
1181
1182  -site | --site | --sit)
1183    ac_prev=site ;;
1184  -site=* | --site=* | --sit=*)
1185    site=$ac_optarg ;;
1186
1187  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1188    ac_prev=srcdir ;;
1189  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1190    srcdir=$ac_optarg ;;
1191
1192  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1193  | --syscon | --sysco | --sysc | --sys | --sy)
1194    ac_prev=sysconfdir ;;
1195  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1196  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1197    sysconfdir=$ac_optarg ;;
1198
1199  -target | --target | --targe | --targ | --tar | --ta | --t)
1200    ac_prev=target_alias ;;
1201  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1202    target_alias=$ac_optarg ;;
1203
1204  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1205    verbose=yes ;;
1206
1207  -version | --version | --versio | --versi | --vers | -V)
1208    ac_init_version=: ;;
1209
1210  -with-* | --with-*)
1211    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1212    # Reject names that are not valid shell variable names.
1213    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1214      as_fn_error $? "invalid package name: $ac_useropt"
1215    ac_useropt_orig=$ac_useropt
1216    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1217    case $ac_user_opts in
1218      *"
1219"with_$ac_useropt"
1220"*) ;;
1221      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1222	 ac_unrecognized_sep=', ';;
1223    esac
1224    eval with_$ac_useropt=\$ac_optarg ;;
1225
1226  -without-* | --without-*)
1227    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1228    # Reject names that are not valid shell variable names.
1229    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1230      as_fn_error $? "invalid package name: $ac_useropt"
1231    ac_useropt_orig=$ac_useropt
1232    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1233    case $ac_user_opts in
1234      *"
1235"with_$ac_useropt"
1236"*) ;;
1237      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1238	 ac_unrecognized_sep=', ';;
1239    esac
1240    eval with_$ac_useropt=no ;;
1241
1242  --x)
1243    # Obsolete; use --with-x.
1244    with_x=yes ;;
1245
1246  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1247  | --x-incl | --x-inc | --x-in | --x-i)
1248    ac_prev=x_includes ;;
1249  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1250  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1251    x_includes=$ac_optarg ;;
1252
1253  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1254  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1255    ac_prev=x_libraries ;;
1256  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1257  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1258    x_libraries=$ac_optarg ;;
1259
1260  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1261Try \`$0 --help' for more information"
1262    ;;
1263
1264  *=*)
1265    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1266    # Reject names that are not valid shell variable names.
1267    case $ac_envvar in #(
1268      '' | [0-9]* | *[!_$as_cr_alnum]* )
1269      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1270    esac
1271    eval $ac_envvar=\$ac_optarg
1272    export $ac_envvar ;;
1273
1274  *)
1275    # FIXME: should be removed in autoconf 3.0.
1276    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1277    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1278      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1279    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1280    ;;
1281
1282  esac
1283done
1284
1285if test -n "$ac_prev"; then
1286  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1287  as_fn_error $? "missing argument to $ac_option"
1288fi
1289
1290if test -n "$ac_unrecognized_opts"; then
1291  case $enable_option_checking in
1292    no) ;;
1293    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1294    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1295  esac
1296fi
1297
1298# Check all directory arguments for consistency.
1299for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1300		datadir sysconfdir sharedstatedir localstatedir includedir \
1301		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1302		libdir localedir mandir
1303do
1304  eval ac_val=\$$ac_var
1305  # Remove trailing slashes.
1306  case $ac_val in
1307    */ )
1308      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1309      eval $ac_var=\$ac_val;;
1310  esac
1311  # Be sure to have absolute directory names.
1312  case $ac_val in
1313    [\\/$]* | ?:[\\/]* )  continue;;
1314    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1315  esac
1316  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1317done
1318
1319# There might be people who depend on the old broken behavior: `$host'
1320# used to hold the argument of --host etc.
1321# FIXME: To remove some day.
1322build=$build_alias
1323host=$host_alias
1324target=$target_alias
1325
1326# FIXME: To remove some day.
1327if test "x$host_alias" != x; then
1328  if test "x$build_alias" = x; then
1329    cross_compiling=maybe
1330  elif test "x$build_alias" != "x$host_alias"; then
1331    cross_compiling=yes
1332  fi
1333fi
1334
1335ac_tool_prefix=
1336test -n "$host_alias" && ac_tool_prefix=$host_alias-
1337
1338test "$silent" = yes && exec 6>/dev/null
1339
1340
1341ac_pwd=`pwd` && test -n "$ac_pwd" &&
1342ac_ls_di=`ls -di .` &&
1343ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1344  as_fn_error $? "working directory cannot be determined"
1345test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1346  as_fn_error $? "pwd does not report name of working directory"
1347
1348
1349# Find the source files, if location was not specified.
1350if test -z "$srcdir"; then
1351  ac_srcdir_defaulted=yes
1352  # Try the directory containing this script, then the parent directory.
1353  ac_confdir=`$as_dirname -- "$as_myself" ||
1354$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1355	 X"$as_myself" : 'X\(//\)[^/]' \| \
1356	 X"$as_myself" : 'X\(//\)$' \| \
1357	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1358$as_echo X"$as_myself" |
1359    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1360	    s//\1/
1361	    q
1362	  }
1363	  /^X\(\/\/\)[^/].*/{
1364	    s//\1/
1365	    q
1366	  }
1367	  /^X\(\/\/\)$/{
1368	    s//\1/
1369	    q
1370	  }
1371	  /^X\(\/\).*/{
1372	    s//\1/
1373	    q
1374	  }
1375	  s/.*/./; q'`
1376  srcdir=$ac_confdir
1377  if test ! -r "$srcdir/$ac_unique_file"; then
1378    srcdir=..
1379  fi
1380else
1381  ac_srcdir_defaulted=no
1382fi
1383if test ! -r "$srcdir/$ac_unique_file"; then
1384  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1385  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1386fi
1387ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1388ac_abs_confdir=`(
1389	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1390	pwd)`
1391# When building in place, set srcdir=.
1392if test "$ac_abs_confdir" = "$ac_pwd"; then
1393  srcdir=.
1394fi
1395# Remove unnecessary trailing slashes from srcdir.
1396# Double slashes in file names in object file debugging info
1397# mess up M-x gdb in Emacs.
1398case $srcdir in
1399*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1400esac
1401for ac_var in $ac_precious_vars; do
1402  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1403  eval ac_env_${ac_var}_value=\$${ac_var}
1404  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1405  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1406done
1407
1408#
1409# Report the --help message.
1410#
1411if test "$ac_init_help" = "long"; then
1412  # Omit some internal or obsolete options to make the list less imposing.
1413  # This message is too long to be a string in the A/UX 3.1 sh.
1414  cat <<_ACEOF
1415\`configure' configures bfd 2.42.50 to adapt to many kinds of systems.
1416
1417Usage: $0 [OPTION]... [VAR=VALUE]...
1418
1419To assign environment variables (e.g., CC, CFLAGS...), specify them as
1420VAR=VALUE.  See below for descriptions of some of the useful variables.
1421
1422Defaults for the options are specified in brackets.
1423
1424Configuration:
1425  -h, --help              display this help and exit
1426      --help=short        display options specific to this package
1427      --help=recursive    display the short help of all the included packages
1428  -V, --version           display version information and exit
1429  -q, --quiet, --silent   do not print \`checking ...' messages
1430      --cache-file=FILE   cache test results in FILE [disabled]
1431  -C, --config-cache      alias for \`--cache-file=config.cache'
1432  -n, --no-create         do not create output files
1433      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1434
1435Installation directories:
1436  --prefix=PREFIX         install architecture-independent files in PREFIX
1437                          [$ac_default_prefix]
1438  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1439                          [PREFIX]
1440
1441By default, \`make install' will install all the files in
1442\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1443an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1444for instance \`--prefix=\$HOME'.
1445
1446For better control, use the options below.
1447
1448Fine tuning of the installation directories:
1449  --bindir=DIR            user executables [EPREFIX/bin]
1450  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1451  --libexecdir=DIR        program executables [EPREFIX/libexec]
1452  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1453  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1454  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1455  --libdir=DIR            object code libraries [EPREFIX/lib]
1456  --includedir=DIR        C header files [PREFIX/include]
1457  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1458  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1459  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1460  --infodir=DIR           info documentation [DATAROOTDIR/info]
1461  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1462  --mandir=DIR            man documentation [DATAROOTDIR/man]
1463  --docdir=DIR            documentation root [DATAROOTDIR/doc/bfd]
1464  --htmldir=DIR           html documentation [DOCDIR]
1465  --dvidir=DIR            dvi documentation [DOCDIR]
1466  --pdfdir=DIR            pdf documentation [DOCDIR]
1467  --psdir=DIR             ps documentation [DOCDIR]
1468_ACEOF
1469
1470  cat <<\_ACEOF
1471
1472Program names:
1473  --program-prefix=PREFIX            prepend PREFIX to installed program names
1474  --program-suffix=SUFFIX            append SUFFIX to installed program names
1475  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1476
1477System types:
1478  --build=BUILD     configure for building on BUILD [guessed]
1479  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1480  --target=TARGET   configure for building compilers for TARGET [HOST]
1481_ACEOF
1482fi
1483
1484if test -n "$ac_init_help"; then
1485  case $ac_init_help in
1486     short | recursive ) echo "Configuration of bfd 2.42.50:";;
1487   esac
1488  cat <<\_ACEOF
1489
1490Optional Features:
1491  --disable-option-checking  ignore unrecognized --enable/--with options
1492  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1493  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1494  --enable-silent-rules   less verbose build output (undo: "make V=1")
1495  --disable-silent-rules  verbose build output (undo: "make V=0")
1496  --enable-shared[=PKGS]  build shared libraries [default=no]
1497  --enable-dependency-tracking
1498                          do not reject slow dependency extractors
1499  --disable-dependency-tracking
1500                          speeds up one-time build
1501  --enable-static[=PKGS]  build static libraries [default=yes]
1502  --enable-fast-install[=PKGS]
1503                          optimize for fast installation [default=yes]
1504  --disable-libtool-lock  avoid locking (might break parallel builds)
1505  --enable-plugins        Enable support for plugins
1506  --disable-largefile     omit support for large files
1507  --enable-checking       enable run-time checks
1508  --enable-64-bit-bfd     64-bit support (on hosts with narrower word sizes)
1509  --enable-targets        alternative target configurations
1510  --enable-64-bit-archive force 64-bit archives
1511  --enable-secureplt      Default to creating read-only plt entries
1512  --enable-separate-code  enable -z separate-code in ELF linker by default
1513  --enable-leading-mingw64-underscores
1514                          Enable leading underscores on 64 bit mingw targets
1515  --enable-werror         treat compile warnings as errors
1516  --enable-build-warnings enable build-time compiler warnings
1517  --enable-maintainer-mode
1518                          enable make rules and dependencies not useful (and
1519                          sometimes confusing) to the casual installer
1520  --enable-install-libbfd controls installation of libbfd and related headers
1521  --disable-nls           do not use Native Language Support
1522  --disable-rpath         do not hardcode runtime library paths
1523
1524Optional Packages:
1525  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1526  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1527  --with-pic              try to use only PIC/non-PIC objects [default=use
1528                          both]
1529  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1530  --with-mmap             try using mmap for BFD input files if available
1531  --with-separate-debug-dir=DIR
1532                          Look for global separate debug info in DIR
1533                          [[default=LIBDIR/debug]]
1534  --with-pkgversion=PKG   Use PKG in the version string in place of "GNU
1535                          Binutils"
1536  --with-bugurl=URL       Direct users to URL to report a bug
1537  --with-gnu-ld           assume the C compiler uses GNU ld default=no
1538  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1539  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1540  --with-libiconv-type=TYPE     type of library to search for (auto/static/shared)
1541  --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1542  --without-libintl-prefix     don't search for libintl in includedir and libdir
1543  --with-libintl-type=TYPE     type of library to search for (auto/static/shared)
1544  --with-system-zlib      use installed libz
1545  --with-zstd             support zstd compressed debug sections
1546                          (default=auto)
1547
1548Some influential environment variables:
1549  CC          C compiler command
1550  CFLAGS      C compiler flags
1551  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1552              nonstandard directory <lib dir>
1553  LIBS        libraries to pass to the linker, e.g. -l<library>
1554  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1555              you have headers in a nonstandard directory <include dir>
1556  CPP         C preprocessor
1557  PKG_CONFIG  path to pkg-config utility
1558  PKG_CONFIG_PATH
1559              directories to add to pkg-config's search path
1560  PKG_CONFIG_LIBDIR
1561              path overriding pkg-config's built-in search path
1562  ZSTD_CFLAGS C compiler flags for ZSTD, overriding pkg-config
1563  ZSTD_LIBS   linker flags for ZSTD, overriding pkg-config
1564
1565Use these variables to override the choices made by `configure' or to help
1566it to find libraries and programs with nonstandard names/locations.
1567
1568Report bugs to the package provider.
1569_ACEOF
1570ac_status=$?
1571fi
1572
1573if test "$ac_init_help" = "recursive"; then
1574  # If there are subdirs, report their specific --help.
1575  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1576    test -d "$ac_dir" ||
1577      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1578      continue
1579    ac_builddir=.
1580
1581case "$ac_dir" in
1582.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1583*)
1584  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1585  # A ".." for each directory in $ac_dir_suffix.
1586  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1587  case $ac_top_builddir_sub in
1588  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1589  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1590  esac ;;
1591esac
1592ac_abs_top_builddir=$ac_pwd
1593ac_abs_builddir=$ac_pwd$ac_dir_suffix
1594# for backward compatibility:
1595ac_top_builddir=$ac_top_build_prefix
1596
1597case $srcdir in
1598  .)  # We are building in place.
1599    ac_srcdir=.
1600    ac_top_srcdir=$ac_top_builddir_sub
1601    ac_abs_top_srcdir=$ac_pwd ;;
1602  [\\/]* | ?:[\\/]* )  # Absolute name.
1603    ac_srcdir=$srcdir$ac_dir_suffix;
1604    ac_top_srcdir=$srcdir
1605    ac_abs_top_srcdir=$srcdir ;;
1606  *) # Relative name.
1607    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1608    ac_top_srcdir=$ac_top_build_prefix$srcdir
1609    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1610esac
1611ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1612
1613    cd "$ac_dir" || { ac_status=$?; continue; }
1614    # Check for guested configure.
1615    if test -f "$ac_srcdir/configure.gnu"; then
1616      echo &&
1617      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1618    elif test -f "$ac_srcdir/configure"; then
1619      echo &&
1620      $SHELL "$ac_srcdir/configure" --help=recursive
1621    else
1622      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1623    fi || ac_status=$?
1624    cd "$ac_pwd" || { ac_status=$?; break; }
1625  done
1626fi
1627
1628test -n "$ac_init_help" && exit $ac_status
1629if $ac_init_version; then
1630  cat <<\_ACEOF
1631bfd configure 2.42.50
1632generated by GNU Autoconf 2.69
1633
1634Copyright (C) 2012 Free Software Foundation, Inc.
1635This configure script is free software; the Free Software Foundation
1636gives unlimited permission to copy, distribute and modify it.
1637_ACEOF
1638  exit
1639fi
1640
1641## ------------------------ ##
1642## Autoconf initialization. ##
1643## ------------------------ ##
1644
1645# ac_fn_c_try_compile LINENO
1646# --------------------------
1647# Try to compile conftest.$ac_ext, and return whether this succeeded.
1648ac_fn_c_try_compile ()
1649{
1650  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1651  rm -f conftest.$ac_objext
1652  if { { ac_try="$ac_compile"
1653case "(($ac_try" in
1654  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1655  *) ac_try_echo=$ac_try;;
1656esac
1657eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1658$as_echo "$ac_try_echo"; } >&5
1659  (eval "$ac_compile") 2>conftest.err
1660  ac_status=$?
1661  if test -s conftest.err; then
1662    grep -v '^ *+' conftest.err >conftest.er1
1663    cat conftest.er1 >&5
1664    mv -f conftest.er1 conftest.err
1665  fi
1666  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1667  test $ac_status = 0; } && {
1668	 test -z "$ac_c_werror_flag" ||
1669	 test ! -s conftest.err
1670       } && test -s conftest.$ac_objext; then :
1671  ac_retval=0
1672else
1673  $as_echo "$as_me: failed program was:" >&5
1674sed 's/^/| /' conftest.$ac_ext >&5
1675
1676	ac_retval=1
1677fi
1678  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1679  as_fn_set_status $ac_retval
1680
1681} # ac_fn_c_try_compile
1682
1683# ac_fn_c_try_cpp LINENO
1684# ----------------------
1685# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1686ac_fn_c_try_cpp ()
1687{
1688  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1689  if { { ac_try="$ac_cpp conftest.$ac_ext"
1690case "(($ac_try" in
1691  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1692  *) ac_try_echo=$ac_try;;
1693esac
1694eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1695$as_echo "$ac_try_echo"; } >&5
1696  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1697  ac_status=$?
1698  if test -s conftest.err; then
1699    grep -v '^ *+' conftest.err >conftest.er1
1700    cat conftest.er1 >&5
1701    mv -f conftest.er1 conftest.err
1702  fi
1703  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1704  test $ac_status = 0; } > conftest.i && {
1705	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1706	 test ! -s conftest.err
1707       }; then :
1708  ac_retval=0
1709else
1710  $as_echo "$as_me: failed program was:" >&5
1711sed 's/^/| /' conftest.$ac_ext >&5
1712
1713    ac_retval=1
1714fi
1715  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1716  as_fn_set_status $ac_retval
1717
1718} # ac_fn_c_try_cpp
1719
1720# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1721# -------------------------------------------------------
1722# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1723# the include files in INCLUDES and setting the cache variable VAR
1724# accordingly.
1725ac_fn_c_check_header_mongrel ()
1726{
1727  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1728  if eval \${$3+:} false; then :
1729  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1730$as_echo_n "checking for $2... " >&6; }
1731if eval \${$3+:} false; then :
1732  $as_echo_n "(cached) " >&6
1733fi
1734eval ac_res=\$$3
1735	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1736$as_echo "$ac_res" >&6; }
1737else
1738  # Is the header compilable?
1739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1740$as_echo_n "checking $2 usability... " >&6; }
1741cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1742/* end confdefs.h.  */
1743$4
1744#include <$2>
1745_ACEOF
1746if ac_fn_c_try_compile "$LINENO"; then :
1747  ac_header_compiler=yes
1748else
1749  ac_header_compiler=no
1750fi
1751rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1753$as_echo "$ac_header_compiler" >&6; }
1754
1755# Is the header present?
1756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1757$as_echo_n "checking $2 presence... " >&6; }
1758cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1759/* end confdefs.h.  */
1760#include <$2>
1761_ACEOF
1762if ac_fn_c_try_cpp "$LINENO"; then :
1763  ac_header_preproc=yes
1764else
1765  ac_header_preproc=no
1766fi
1767rm -f conftest.err conftest.i conftest.$ac_ext
1768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1769$as_echo "$ac_header_preproc" >&6; }
1770
1771# So?  What about this header?
1772case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1773  yes:no: )
1774    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1775$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1776    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1777$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1778    ;;
1779  no:yes:* )
1780    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1781$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1782    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1783$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1784    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1785$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1786    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1787$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1788    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1789$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1790    ;;
1791esac
1792  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1793$as_echo_n "checking for $2... " >&6; }
1794if eval \${$3+:} false; then :
1795  $as_echo_n "(cached) " >&6
1796else
1797  eval "$3=\$ac_header_compiler"
1798fi
1799eval ac_res=\$$3
1800	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1801$as_echo "$ac_res" >&6; }
1802fi
1803  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1804
1805} # ac_fn_c_check_header_mongrel
1806
1807# ac_fn_c_try_run LINENO
1808# ----------------------
1809# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1810# that executables *can* be run.
1811ac_fn_c_try_run ()
1812{
1813  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1814  if { { ac_try="$ac_link"
1815case "(($ac_try" in
1816  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1817  *) ac_try_echo=$ac_try;;
1818esac
1819eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1820$as_echo "$ac_try_echo"; } >&5
1821  (eval "$ac_link") 2>&5
1822  ac_status=$?
1823  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1824  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1825  { { case "(($ac_try" in
1826  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1827  *) ac_try_echo=$ac_try;;
1828esac
1829eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1830$as_echo "$ac_try_echo"; } >&5
1831  (eval "$ac_try") 2>&5
1832  ac_status=$?
1833  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1834  test $ac_status = 0; }; }; then :
1835  ac_retval=0
1836else
1837  $as_echo "$as_me: program exited with status $ac_status" >&5
1838       $as_echo "$as_me: failed program was:" >&5
1839sed 's/^/| /' conftest.$ac_ext >&5
1840
1841       ac_retval=$ac_status
1842fi
1843  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1844  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1845  as_fn_set_status $ac_retval
1846
1847} # ac_fn_c_try_run
1848
1849# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1850# -------------------------------------------------------
1851# Tests whether HEADER exists and can be compiled using the include files in
1852# INCLUDES, setting the cache variable VAR accordingly.
1853ac_fn_c_check_header_compile ()
1854{
1855  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1856  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1857$as_echo_n "checking for $2... " >&6; }
1858if eval \${$3+:} false; then :
1859  $as_echo_n "(cached) " >&6
1860else
1861  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1862/* end confdefs.h.  */
1863$4
1864#include <$2>
1865_ACEOF
1866if ac_fn_c_try_compile "$LINENO"; then :
1867  eval "$3=yes"
1868else
1869  eval "$3=no"
1870fi
1871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1872fi
1873eval ac_res=\$$3
1874	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1875$as_echo "$ac_res" >&6; }
1876  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1877
1878} # ac_fn_c_check_header_compile
1879
1880# ac_fn_c_try_link LINENO
1881# -----------------------
1882# Try to link conftest.$ac_ext, and return whether this succeeded.
1883ac_fn_c_try_link ()
1884{
1885  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1886  rm -f conftest.$ac_objext conftest$ac_exeext
1887  if { { ac_try="$ac_link"
1888case "(($ac_try" in
1889  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1890  *) ac_try_echo=$ac_try;;
1891esac
1892eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1893$as_echo "$ac_try_echo"; } >&5
1894  (eval "$ac_link") 2>conftest.err
1895  ac_status=$?
1896  if test -s conftest.err; then
1897    grep -v '^ *+' conftest.err >conftest.er1
1898    cat conftest.er1 >&5
1899    mv -f conftest.er1 conftest.err
1900  fi
1901  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1902  test $ac_status = 0; } && {
1903	 test -z "$ac_c_werror_flag" ||
1904	 test ! -s conftest.err
1905       } && test -s conftest$ac_exeext && {
1906	 test "$cross_compiling" = yes ||
1907	 test -x conftest$ac_exeext
1908       }; then :
1909  ac_retval=0
1910else
1911  $as_echo "$as_me: failed program was:" >&5
1912sed 's/^/| /' conftest.$ac_ext >&5
1913
1914	ac_retval=1
1915fi
1916  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1917  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1918  # interfere with the next link command; also delete a directory that is
1919  # left behind by Apple's compiler.  We do this before executing the actions.
1920  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1921  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1922  as_fn_set_status $ac_retval
1923
1924} # ac_fn_c_try_link
1925
1926# ac_fn_c_check_func LINENO FUNC VAR
1927# ----------------------------------
1928# Tests whether FUNC exists, setting the cache variable VAR accordingly
1929ac_fn_c_check_func ()
1930{
1931  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1932  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1933$as_echo_n "checking for $2... " >&6; }
1934if eval \${$3+:} false; then :
1935  $as_echo_n "(cached) " >&6
1936else
1937  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1938/* end confdefs.h.  */
1939/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1940   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1941#define $2 innocuous_$2
1942
1943/* System header to define __stub macros and hopefully few prototypes,
1944    which can conflict with char $2 (); below.
1945    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1946    <limits.h> exists even on freestanding compilers.  */
1947
1948#ifdef __STDC__
1949# include <limits.h>
1950#else
1951# include <assert.h>
1952#endif
1953
1954#undef $2
1955
1956/* Override any GCC internal prototype to avoid an error.
1957   Use char because int might match the return type of a GCC
1958   builtin and then its argument prototype would still apply.  */
1959#ifdef __cplusplus
1960extern "C"
1961#endif
1962char $2 ();
1963/* The GNU C library defines this for functions which it implements
1964    to always fail with ENOSYS.  Some functions are actually named
1965    something starting with __ and the normal name is an alias.  */
1966#if defined __stub_$2 || defined __stub___$2
1967choke me
1968#endif
1969
1970int
1971main ()
1972{
1973return $2 ();
1974  ;
1975  return 0;
1976}
1977_ACEOF
1978if ac_fn_c_try_link "$LINENO"; then :
1979  eval "$3=yes"
1980else
1981  eval "$3=no"
1982fi
1983rm -f core conftest.err conftest.$ac_objext \
1984    conftest$ac_exeext conftest.$ac_ext
1985fi
1986eval ac_res=\$$3
1987	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1988$as_echo "$ac_res" >&6; }
1989  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1990
1991} # ac_fn_c_check_func
1992
1993# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1994# --------------------------------------------
1995# Tries to find the compile-time value of EXPR in a program that includes
1996# INCLUDES, setting VAR accordingly. Returns whether the value could be
1997# computed
1998ac_fn_c_compute_int ()
1999{
2000  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2001  if test "$cross_compiling" = yes; then
2002    # Depending upon the size, compute the lo and hi bounds.
2003cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2004/* end confdefs.h.  */
2005$4
2006int
2007main ()
2008{
2009static int test_array [1 - 2 * !(($2) >= 0)];
2010test_array [0] = 0;
2011return test_array [0];
2012
2013  ;
2014  return 0;
2015}
2016_ACEOF
2017if ac_fn_c_try_compile "$LINENO"; then :
2018  ac_lo=0 ac_mid=0
2019  while :; do
2020    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2021/* end confdefs.h.  */
2022$4
2023int
2024main ()
2025{
2026static int test_array [1 - 2 * !(($2) <= $ac_mid)];
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_hi=$ac_mid; break
2036else
2037  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2038			if test $ac_lo -le $ac_mid; then
2039			  ac_lo= ac_hi=
2040			  break
2041			fi
2042			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2043fi
2044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2045  done
2046else
2047  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2048/* end confdefs.h.  */
2049$4
2050int
2051main ()
2052{
2053static int test_array [1 - 2 * !(($2) < 0)];
2054test_array [0] = 0;
2055return test_array [0];
2056
2057  ;
2058  return 0;
2059}
2060_ACEOF
2061if ac_fn_c_try_compile "$LINENO"; then :
2062  ac_hi=-1 ac_mid=-1
2063  while :; do
2064    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2065/* end confdefs.h.  */
2066$4
2067int
2068main ()
2069{
2070static int test_array [1 - 2 * !(($2) >= $ac_mid)];
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_lo=$ac_mid; break
2080else
2081  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2082			if test $ac_mid -le $ac_hi; then
2083			  ac_lo= ac_hi=
2084			  break
2085			fi
2086			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2087fi
2088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2089  done
2090else
2091  ac_lo= ac_hi=
2092fi
2093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2094fi
2095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2096# Binary search between lo and hi bounds.
2097while test "x$ac_lo" != "x$ac_hi"; do
2098  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2099  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2100/* end confdefs.h.  */
2101$4
2102int
2103main ()
2104{
2105static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2106test_array [0] = 0;
2107return test_array [0];
2108
2109  ;
2110  return 0;
2111}
2112_ACEOF
2113if ac_fn_c_try_compile "$LINENO"; then :
2114  ac_hi=$ac_mid
2115else
2116  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2117fi
2118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2119done
2120case $ac_lo in #((
2121?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2122'') ac_retval=1 ;;
2123esac
2124  else
2125    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2126/* end confdefs.h.  */
2127$4
2128static long int longval () { return $2; }
2129static unsigned long int ulongval () { return $2; }
2130#include <stdio.h>
2131#include <stdlib.h>
2132int
2133main ()
2134{
2135
2136  FILE *f = fopen ("conftest.val", "w");
2137  if (! f)
2138    return 1;
2139  if (($2) < 0)
2140    {
2141      long int i = longval ();
2142      if (i != ($2))
2143	return 1;
2144      fprintf (f, "%ld", i);
2145    }
2146  else
2147    {
2148      unsigned long int i = ulongval ();
2149      if (i != ($2))
2150	return 1;
2151      fprintf (f, "%lu", i);
2152    }
2153  /* Do not output a trailing newline, as this causes \r\n confusion
2154     on some platforms.  */
2155  return ferror (f) || fclose (f) != 0;
2156
2157  ;
2158  return 0;
2159}
2160_ACEOF
2161if ac_fn_c_try_run "$LINENO"; then :
2162  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2163else
2164  ac_retval=1
2165fi
2166rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2167  conftest.$ac_objext conftest.beam conftest.$ac_ext
2168rm -f conftest.val
2169
2170  fi
2171  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2172  as_fn_set_status $ac_retval
2173
2174} # ac_fn_c_compute_int
2175
2176# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2177# ---------------------------------------------
2178# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2179# accordingly.
2180ac_fn_c_check_decl ()
2181{
2182  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2183  as_decl_name=`echo $2|sed 's/ *(.*//'`
2184  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2185  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2186$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2187if eval \${$3+:} false; then :
2188  $as_echo_n "(cached) " >&6
2189else
2190  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2191/* end confdefs.h.  */
2192$4
2193int
2194main ()
2195{
2196#ifndef $as_decl_name
2197#ifdef __cplusplus
2198  (void) $as_decl_use;
2199#else
2200  (void) $as_decl_name;
2201#endif
2202#endif
2203
2204  ;
2205  return 0;
2206}
2207_ACEOF
2208if ac_fn_c_try_compile "$LINENO"; then :
2209  eval "$3=yes"
2210else
2211  eval "$3=no"
2212fi
2213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2214fi
2215eval ac_res=\$$3
2216	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2217$as_echo "$ac_res" >&6; }
2218  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2219
2220} # ac_fn_c_check_decl
2221cat >config.log <<_ACEOF
2222This file contains any messages produced by compilers while
2223running configure, to aid debugging if configure makes a mistake.
2224
2225It was created by bfd $as_me 2.42.50, which was
2226generated by GNU Autoconf 2.69.  Invocation command line was
2227
2228  $ $0 $@
2229
2230_ACEOF
2231exec 5>>config.log
2232{
2233cat <<_ASUNAME
2234## --------- ##
2235## Platform. ##
2236## --------- ##
2237
2238hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2239uname -m = `(uname -m) 2>/dev/null || echo unknown`
2240uname -r = `(uname -r) 2>/dev/null || echo unknown`
2241uname -s = `(uname -s) 2>/dev/null || echo unknown`
2242uname -v = `(uname -v) 2>/dev/null || echo unknown`
2243
2244/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2245/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2246
2247/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2248/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2249/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2250/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2251/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2252/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2253/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2254
2255_ASUNAME
2256
2257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2258for as_dir in $PATH
2259do
2260  IFS=$as_save_IFS
2261  test -z "$as_dir" && as_dir=.
2262    $as_echo "PATH: $as_dir"
2263  done
2264IFS=$as_save_IFS
2265
2266} >&5
2267
2268cat >&5 <<_ACEOF
2269
2270
2271## ----------- ##
2272## Core tests. ##
2273## ----------- ##
2274
2275_ACEOF
2276
2277
2278# Keep a trace of the command line.
2279# Strip out --no-create and --no-recursion so they do not pile up.
2280# Strip out --silent because we don't want to record it for future runs.
2281# Also quote any args containing shell meta-characters.
2282# Make two passes to allow for proper duplicate-argument suppression.
2283ac_configure_args=
2284ac_configure_args0=
2285ac_configure_args1=
2286ac_must_keep_next=false
2287for ac_pass in 1 2
2288do
2289  for ac_arg
2290  do
2291    case $ac_arg in
2292    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2293    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2294    | -silent | --silent | --silen | --sile | --sil)
2295      continue ;;
2296    *\'*)
2297      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2298    esac
2299    case $ac_pass in
2300    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2301    2)
2302      as_fn_append ac_configure_args1 " '$ac_arg'"
2303      if test $ac_must_keep_next = true; then
2304	ac_must_keep_next=false # Got value, back to normal.
2305      else
2306	case $ac_arg in
2307	  *=* | --config-cache | -C | -disable-* | --disable-* \
2308	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2309	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2310	  | -with-* | --with-* | -without-* | --without-* | --x)
2311	    case "$ac_configure_args0 " in
2312	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2313	    esac
2314	    ;;
2315	  -* ) ac_must_keep_next=true ;;
2316	esac
2317      fi
2318      as_fn_append ac_configure_args " '$ac_arg'"
2319      ;;
2320    esac
2321  done
2322done
2323{ ac_configure_args0=; unset ac_configure_args0;}
2324{ ac_configure_args1=; unset ac_configure_args1;}
2325
2326# When interrupted or exit'd, cleanup temporary files, and complete
2327# config.log.  We remove comments because anyway the quotes in there
2328# would cause problems or look ugly.
2329# WARNING: Use '\'' to represent an apostrophe within the trap.
2330# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2331trap 'exit_status=$?
2332  # Save into config.log some information that might help in debugging.
2333  {
2334    echo
2335
2336    $as_echo "## ---------------- ##
2337## Cache variables. ##
2338## ---------------- ##"
2339    echo
2340    # The following way of writing the cache mishandles newlines in values,
2341(
2342  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2343    eval ac_val=\$$ac_var
2344    case $ac_val in #(
2345    *${as_nl}*)
2346      case $ac_var in #(
2347      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2348$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2349      esac
2350      case $ac_var in #(
2351      _ | IFS | as_nl) ;; #(
2352      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2353      *) { eval $ac_var=; unset $ac_var;} ;;
2354      esac ;;
2355    esac
2356  done
2357  (set) 2>&1 |
2358    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2359    *${as_nl}ac_space=\ *)
2360      sed -n \
2361	"s/'\''/'\''\\\\'\'''\''/g;
2362	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2363      ;; #(
2364    *)
2365      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2366      ;;
2367    esac |
2368    sort
2369)
2370    echo
2371
2372    $as_echo "## ----------------- ##
2373## Output variables. ##
2374## ----------------- ##"
2375    echo
2376    for ac_var in $ac_subst_vars
2377    do
2378      eval ac_val=\$$ac_var
2379      case $ac_val in
2380      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2381      esac
2382      $as_echo "$ac_var='\''$ac_val'\''"
2383    done | sort
2384    echo
2385
2386    if test -n "$ac_subst_files"; then
2387      $as_echo "## ------------------- ##
2388## File substitutions. ##
2389## ------------------- ##"
2390      echo
2391      for ac_var in $ac_subst_files
2392      do
2393	eval ac_val=\$$ac_var
2394	case $ac_val in
2395	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2396	esac
2397	$as_echo "$ac_var='\''$ac_val'\''"
2398      done | sort
2399      echo
2400    fi
2401
2402    if test -s confdefs.h; then
2403      $as_echo "## ----------- ##
2404## confdefs.h. ##
2405## ----------- ##"
2406      echo
2407      cat confdefs.h
2408      echo
2409    fi
2410    test "$ac_signal" != 0 &&
2411      $as_echo "$as_me: caught signal $ac_signal"
2412    $as_echo "$as_me: exit $exit_status"
2413  } >&5
2414  rm -f core *.core core.conftest.* &&
2415    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2416    exit $exit_status
2417' 0
2418for ac_signal in 1 2 13 15; do
2419  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2420done
2421ac_signal=0
2422
2423# confdefs.h avoids OS command line length limits that DEFS can exceed.
2424rm -f -r conftest* confdefs.h
2425
2426$as_echo "/* confdefs.h */" > confdefs.h
2427
2428# Predefined preprocessor variables.
2429
2430cat >>confdefs.h <<_ACEOF
2431#define PACKAGE_NAME "$PACKAGE_NAME"
2432_ACEOF
2433
2434cat >>confdefs.h <<_ACEOF
2435#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2436_ACEOF
2437
2438cat >>confdefs.h <<_ACEOF
2439#define PACKAGE_VERSION "$PACKAGE_VERSION"
2440_ACEOF
2441
2442cat >>confdefs.h <<_ACEOF
2443#define PACKAGE_STRING "$PACKAGE_STRING"
2444_ACEOF
2445
2446cat >>confdefs.h <<_ACEOF
2447#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2448_ACEOF
2449
2450cat >>confdefs.h <<_ACEOF
2451#define PACKAGE_URL "$PACKAGE_URL"
2452_ACEOF
2453
2454
2455# Let the site file select an alternate cache file if it wants to.
2456# Prefer an explicitly selected file to automatically selected ones.
2457ac_site_file1=NONE
2458ac_site_file2=NONE
2459if test -n "$CONFIG_SITE"; then
2460  # We do not want a PATH search for config.site.
2461  case $CONFIG_SITE in #((
2462    -*)  ac_site_file1=./$CONFIG_SITE;;
2463    */*) ac_site_file1=$CONFIG_SITE;;
2464    *)   ac_site_file1=./$CONFIG_SITE;;
2465  esac
2466elif test "x$prefix" != xNONE; then
2467  ac_site_file1=$prefix/share/config.site
2468  ac_site_file2=$prefix/etc/config.site
2469else
2470  ac_site_file1=$ac_default_prefix/share/config.site
2471  ac_site_file2=$ac_default_prefix/etc/config.site
2472fi
2473for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2474do
2475  test "x$ac_site_file" = xNONE && continue
2476  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2477    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2478$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2479    sed 's/^/| /' "$ac_site_file" >&5
2480    . "$ac_site_file" \
2481      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2482$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2483as_fn_error $? "failed to load site script $ac_site_file
2484See \`config.log' for more details" "$LINENO" 5; }
2485  fi
2486done
2487
2488if test -r "$cache_file"; then
2489  # Some versions of bash will fail to source /dev/null (special files
2490  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2491  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2492    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2493$as_echo "$as_me: loading cache $cache_file" >&6;}
2494    case $cache_file in
2495      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2496      *)                      . "./$cache_file";;
2497    esac
2498  fi
2499else
2500  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2501$as_echo "$as_me: creating cache $cache_file" >&6;}
2502  >$cache_file
2503fi
2504
2505gt_needs="$gt_needs "
2506as_fn_append ac_header_list " stdlib.h"
2507as_fn_append ac_header_list " unistd.h"
2508as_fn_append ac_header_list " sys/param.h"
2509# Check that the precious variables saved in the cache have kept the same
2510# value.
2511ac_cache_corrupted=false
2512for ac_var in $ac_precious_vars; do
2513  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2514  eval ac_new_set=\$ac_env_${ac_var}_set
2515  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2516  eval ac_new_val=\$ac_env_${ac_var}_value
2517  case $ac_old_set,$ac_new_set in
2518    set,)
2519      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2520$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2521      ac_cache_corrupted=: ;;
2522    ,set)
2523      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2524$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2525      ac_cache_corrupted=: ;;
2526    ,);;
2527    *)
2528      if test "x$ac_old_val" != "x$ac_new_val"; then
2529	# differences in whitespace do not lead to failure.
2530	ac_old_val_w=`echo x $ac_old_val`
2531	ac_new_val_w=`echo x $ac_new_val`
2532	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2533	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2534$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2535	  ac_cache_corrupted=:
2536	else
2537	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2538$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2539	  eval $ac_var=\$ac_old_val
2540	fi
2541	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2542$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2543	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2544$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2545      fi;;
2546  esac
2547  # Pass precious variables to config.status.
2548  if test "$ac_new_set" = set; then
2549    case $ac_new_val in
2550    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2551    *) ac_arg=$ac_var=$ac_new_val ;;
2552    esac
2553    case " $ac_configure_args " in
2554      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2555      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2556    esac
2557  fi
2558done
2559if $ac_cache_corrupted; then
2560  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2561$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2562  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2563$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2564  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2565fi
2566## -------------------- ##
2567## Main body of script. ##
2568## -------------------- ##
2569
2570ac_ext=c
2571ac_cpp='$CPP $CPPFLAGS'
2572ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2573ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2574ac_compiler_gnu=$ac_cv_c_compiler_gnu
2575
2576
2577
2578
2579
2580
2581
2582ac_aux_dir=
2583for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2584  if test -f "$ac_dir/install-sh"; then
2585    ac_aux_dir=$ac_dir
2586    ac_install_sh="$ac_aux_dir/install-sh -c"
2587    break
2588  elif test -f "$ac_dir/install.sh"; then
2589    ac_aux_dir=$ac_dir
2590    ac_install_sh="$ac_aux_dir/install.sh -c"
2591    break
2592  elif test -f "$ac_dir/shtool"; then
2593    ac_aux_dir=$ac_dir
2594    ac_install_sh="$ac_aux_dir/shtool install -c"
2595    break
2596  fi
2597done
2598if test -z "$ac_aux_dir"; then
2599  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2600fi
2601
2602# These three variables are undocumented and unsupported,
2603# and are intended to be withdrawn in a future Autoconf release.
2604# They can cause serious problems if a builder's source tree is in a directory
2605# whose full name contains unusual characters.
2606ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2607ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2608ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2609
2610
2611# Make sure we can run config.sub.
2612$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2613  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2614
2615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2616$as_echo_n "checking build system type... " >&6; }
2617if ${ac_cv_build+:} false; then :
2618  $as_echo_n "(cached) " >&6
2619else
2620  ac_build_alias=$build_alias
2621test "x$ac_build_alias" = x &&
2622  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2623test "x$ac_build_alias" = x &&
2624  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2625ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2626  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2627
2628fi
2629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2630$as_echo "$ac_cv_build" >&6; }
2631case $ac_cv_build in
2632*-*-*) ;;
2633*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2634esac
2635build=$ac_cv_build
2636ac_save_IFS=$IFS; IFS='-'
2637set x $ac_cv_build
2638shift
2639build_cpu=$1
2640build_vendor=$2
2641shift; shift
2642# Remember, the first character of IFS is used to create $*,
2643# except with old shells:
2644build_os=$*
2645IFS=$ac_save_IFS
2646case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2647
2648
2649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2650$as_echo_n "checking host system type... " >&6; }
2651if ${ac_cv_host+:} false; then :
2652  $as_echo_n "(cached) " >&6
2653else
2654  if test "x$host_alias" = x; then
2655  ac_cv_host=$ac_cv_build
2656else
2657  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2658    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2659fi
2660
2661fi
2662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2663$as_echo "$ac_cv_host" >&6; }
2664case $ac_cv_host in
2665*-*-*) ;;
2666*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2667esac
2668host=$ac_cv_host
2669ac_save_IFS=$IFS; IFS='-'
2670set x $ac_cv_host
2671shift
2672host_cpu=$1
2673host_vendor=$2
2674shift; shift
2675# Remember, the first character of IFS is used to create $*,
2676# except with old shells:
2677host_os=$*
2678IFS=$ac_save_IFS
2679case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2680
2681
2682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2683$as_echo_n "checking target system type... " >&6; }
2684if ${ac_cv_target+:} false; then :
2685  $as_echo_n "(cached) " >&6
2686else
2687  if test "x$target_alias" = x; then
2688  ac_cv_target=$ac_cv_host
2689else
2690  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2691    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2692fi
2693
2694fi
2695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2696$as_echo "$ac_cv_target" >&6; }
2697case $ac_cv_target in
2698*-*-*) ;;
2699*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2700esac
2701target=$ac_cv_target
2702ac_save_IFS=$IFS; IFS='-'
2703set x $ac_cv_target
2704shift
2705target_cpu=$1
2706target_vendor=$2
2707shift; shift
2708# Remember, the first character of IFS is used to create $*,
2709# except with old shells:
2710target_os=$*
2711IFS=$ac_save_IFS
2712case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2713
2714
2715# The aliases save the names the user supplied, while $host etc.
2716# will get canonicalized.
2717test -n "$target_alias" &&
2718  test "$program_prefix$program_suffix$program_transform_name" = \
2719    NONENONEs,x,x, &&
2720  program_prefix=${target_alias}-
2721
2722am__api_version='1.15'
2723
2724# Find a good install program.  We prefer a C program (faster),
2725# so one script is as good as another.  But avoid the broken or
2726# incompatible versions:
2727# SysV /etc/install, /usr/sbin/install
2728# SunOS /usr/etc/install
2729# IRIX /sbin/install
2730# AIX /bin/install
2731# AmigaOS /C/install, which installs bootblocks on floppy discs
2732# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2733# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2734# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2735# OS/2's system install, which has a completely different semantic
2736# ./install, which can be erroneously created by make from ./install.sh.
2737# Reject install programs that cannot install multiple files.
2738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2739$as_echo_n "checking for a BSD-compatible install... " >&6; }
2740if test -z "$INSTALL"; then
2741if ${ac_cv_path_install+:} false; then :
2742  $as_echo_n "(cached) " >&6
2743else
2744  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2745for as_dir in $PATH
2746do
2747  IFS=$as_save_IFS
2748  test -z "$as_dir" && as_dir=.
2749    # Account for people who put trailing slashes in PATH elements.
2750case $as_dir/ in #((
2751  ./ | .// | /[cC]/* | \
2752  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2753  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2754  /usr/ucb/* ) ;;
2755  *)
2756    # OSF1 and SCO ODT 3.0 have their own names for install.
2757    # Don't use installbsd from OSF since it installs stuff as root
2758    # by default.
2759    for ac_prog in ginstall scoinst install; do
2760      for ac_exec_ext in '' $ac_executable_extensions; do
2761	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2762	  if test $ac_prog = install &&
2763	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2764	    # AIX install.  It has an incompatible calling convention.
2765	    :
2766	  elif test $ac_prog = install &&
2767	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2768	    # program-specific install script used by HP pwplus--don't use.
2769	    :
2770	  else
2771	    rm -rf conftest.one conftest.two conftest.dir
2772	    echo one > conftest.one
2773	    echo two > conftest.two
2774	    mkdir conftest.dir
2775	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2776	      test -s conftest.one && test -s conftest.two &&
2777	      test -s conftest.dir/conftest.one &&
2778	      test -s conftest.dir/conftest.two
2779	    then
2780	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2781	      break 3
2782	    fi
2783	  fi
2784	fi
2785      done
2786    done
2787    ;;
2788esac
2789
2790  done
2791IFS=$as_save_IFS
2792
2793rm -rf conftest.one conftest.two conftest.dir
2794
2795fi
2796  if test "${ac_cv_path_install+set}" = set; then
2797    INSTALL=$ac_cv_path_install
2798  else
2799    # As a last resort, use the slow shell script.  Don't cache a
2800    # value for INSTALL within a source directory, because that will
2801    # break other packages using the cache if that directory is
2802    # removed, or if the value is a relative name.
2803    INSTALL=$ac_install_sh
2804  fi
2805fi
2806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2807$as_echo "$INSTALL" >&6; }
2808
2809# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2810# It thinks the first close brace ends the variable substitution.
2811test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2812
2813test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2814
2815test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2816
2817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2818$as_echo_n "checking whether build environment is sane... " >&6; }
2819# Reject unsafe characters in $srcdir or the absolute working directory
2820# name.  Accept space and tab only in the latter.
2821am_lf='
2822'
2823case `pwd` in
2824  *[\\\"\#\$\&\'\`$am_lf]*)
2825    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2826esac
2827case $srcdir in
2828  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2829    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2830esac
2831
2832# Do 'set' in a subshell so we don't clobber the current shell's
2833# arguments.  Must try -L first in case configure is actually a
2834# symlink; some systems play weird games with the mod time of symlinks
2835# (eg FreeBSD returns the mod time of the symlink's containing
2836# directory).
2837if (
2838   am_has_slept=no
2839   for am_try in 1 2; do
2840     echo "timestamp, slept: $am_has_slept" > conftest.file
2841     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2842     if test "$*" = "X"; then
2843	# -L didn't work.
2844	set X `ls -t "$srcdir/configure" conftest.file`
2845     fi
2846     if test "$*" != "X $srcdir/configure conftest.file" \
2847	&& test "$*" != "X conftest.file $srcdir/configure"; then
2848
2849	# If neither matched, then we have a broken ls.  This can happen
2850	# if, for instance, CONFIG_SHELL is bash and it inherits a
2851	# broken ls alias from the environment.  This has actually
2852	# happened.  Such a system could not be considered "sane".
2853	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2854  alias in your environment" "$LINENO" 5
2855     fi
2856     if test "$2" = conftest.file || test $am_try -eq 2; then
2857       break
2858     fi
2859     # Just in case.
2860     sleep 1
2861     am_has_slept=yes
2862   done
2863   test "$2" = conftest.file
2864   )
2865then
2866   # Ok.
2867   :
2868else
2869   as_fn_error $? "newly created file is older than distributed files!
2870Check your system clock" "$LINENO" 5
2871fi
2872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2873$as_echo "yes" >&6; }
2874# If we didn't sleep, we still need to ensure time stamps of config.status and
2875# generated files are strictly newer.
2876am_sleep_pid=
2877if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2878  ( sleep 1 ) &
2879  am_sleep_pid=$!
2880fi
2881
2882rm -f conftest.file
2883
2884test "$program_prefix" != NONE &&
2885  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2886# Use a double $ so make ignores it.
2887test "$program_suffix" != NONE &&
2888  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2889# Double any \ or $.
2890# By default was `s,x,x', remove it if useless.
2891ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2892program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2893
2894# Expand $ac_aux_dir to an absolute path.
2895am_aux_dir=`cd "$ac_aux_dir" && pwd`
2896
2897if test x"${MISSING+set}" != xset; then
2898  case $am_aux_dir in
2899  *\ * | *\	*)
2900    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2901  *)
2902    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2903  esac
2904fi
2905# Use eval to expand $SHELL
2906if eval "$MISSING --is-lightweight"; then
2907  am_missing_run="$MISSING "
2908else
2909  am_missing_run=
2910  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2911$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2912fi
2913
2914if test x"${install_sh+set}" != xset; then
2915  case $am_aux_dir in
2916  *\ * | *\	*)
2917    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2918  *)
2919    install_sh="\${SHELL} $am_aux_dir/install-sh"
2920  esac
2921fi
2922
2923# Installed binaries are usually stripped using 'strip' when the user
2924# run "make install-strip".  However 'strip' might not be the right
2925# tool to use in cross-compilation environments, therefore Automake
2926# will honor the 'STRIP' environment variable to overrule this program.
2927if test "$cross_compiling" != no; then
2928  if test -n "$ac_tool_prefix"; then
2929  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2930set dummy ${ac_tool_prefix}strip; ac_word=$2
2931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2932$as_echo_n "checking for $ac_word... " >&6; }
2933if ${ac_cv_prog_STRIP+:} false; then :
2934  $as_echo_n "(cached) " >&6
2935else
2936  if test -n "$STRIP"; then
2937  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2938else
2939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2940for as_dir in $PATH
2941do
2942  IFS=$as_save_IFS
2943  test -z "$as_dir" && as_dir=.
2944    for ac_exec_ext in '' $ac_executable_extensions; do
2945  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2946    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2947    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2948    break 2
2949  fi
2950done
2951  done
2952IFS=$as_save_IFS
2953
2954fi
2955fi
2956STRIP=$ac_cv_prog_STRIP
2957if test -n "$STRIP"; then
2958  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2959$as_echo "$STRIP" >&6; }
2960else
2961  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2962$as_echo "no" >&6; }
2963fi
2964
2965
2966fi
2967if test -z "$ac_cv_prog_STRIP"; then
2968  ac_ct_STRIP=$STRIP
2969  # Extract the first word of "strip", so it can be a program name with args.
2970set dummy strip; ac_word=$2
2971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2972$as_echo_n "checking for $ac_word... " >&6; }
2973if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2974  $as_echo_n "(cached) " >&6
2975else
2976  if test -n "$ac_ct_STRIP"; then
2977  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2978else
2979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2980for as_dir in $PATH
2981do
2982  IFS=$as_save_IFS
2983  test -z "$as_dir" && as_dir=.
2984    for ac_exec_ext in '' $ac_executable_extensions; do
2985  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2986    ac_cv_prog_ac_ct_STRIP="strip"
2987    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2988    break 2
2989  fi
2990done
2991  done
2992IFS=$as_save_IFS
2993
2994fi
2995fi
2996ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2997if test -n "$ac_ct_STRIP"; then
2998  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2999$as_echo "$ac_ct_STRIP" >&6; }
3000else
3001  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3002$as_echo "no" >&6; }
3003fi
3004
3005  if test "x$ac_ct_STRIP" = x; then
3006    STRIP=":"
3007  else
3008    case $cross_compiling:$ac_tool_warned in
3009yes:)
3010{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3011$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3012ac_tool_warned=yes ;;
3013esac
3014    STRIP=$ac_ct_STRIP
3015  fi
3016else
3017  STRIP="$ac_cv_prog_STRIP"
3018fi
3019
3020fi
3021INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3022
3023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3024$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3025if test -z "$MKDIR_P"; then
3026  if ${ac_cv_path_mkdir+:} false; then :
3027  $as_echo_n "(cached) " >&6
3028else
3029  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3030for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3031do
3032  IFS=$as_save_IFS
3033  test -z "$as_dir" && as_dir=.
3034    for ac_prog in mkdir gmkdir; do
3035	 for ac_exec_ext in '' $ac_executable_extensions; do
3036	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3037	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3038	     'mkdir (GNU coreutils) '* | \
3039	     'mkdir (coreutils) '* | \
3040	     'mkdir (fileutils) '4.1*)
3041	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3042	       break 3;;
3043	   esac
3044	 done
3045       done
3046  done
3047IFS=$as_save_IFS
3048
3049fi
3050
3051  test -d ./--version && rmdir ./--version
3052  if test "${ac_cv_path_mkdir+set}" = set; then
3053    MKDIR_P="$ac_cv_path_mkdir -p"
3054  else
3055    # As a last resort, use the slow shell script.  Don't cache a
3056    # value for MKDIR_P within a source directory, because that will
3057    # break other packages using the cache if that directory is
3058    # removed, or if the value is a relative name.
3059    MKDIR_P="$ac_install_sh -d"
3060  fi
3061fi
3062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3063$as_echo "$MKDIR_P" >&6; }
3064
3065for ac_prog in gawk mawk nawk awk
3066do
3067  # Extract the first word of "$ac_prog", so it can be a program name with args.
3068set dummy $ac_prog; ac_word=$2
3069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3070$as_echo_n "checking for $ac_word... " >&6; }
3071if ${ac_cv_prog_AWK+:} false; then :
3072  $as_echo_n "(cached) " >&6
3073else
3074  if test -n "$AWK"; then
3075  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3076else
3077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3078for as_dir in $PATH
3079do
3080  IFS=$as_save_IFS
3081  test -z "$as_dir" && as_dir=.
3082    for ac_exec_ext in '' $ac_executable_extensions; do
3083  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3084    ac_cv_prog_AWK="$ac_prog"
3085    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3086    break 2
3087  fi
3088done
3089  done
3090IFS=$as_save_IFS
3091
3092fi
3093fi
3094AWK=$ac_cv_prog_AWK
3095if test -n "$AWK"; then
3096  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3097$as_echo "$AWK" >&6; }
3098else
3099  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3100$as_echo "no" >&6; }
3101fi
3102
3103
3104  test -n "$AWK" && break
3105done
3106
3107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3108$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3109set x ${MAKE-make}
3110ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3111if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3112  $as_echo_n "(cached) " >&6
3113else
3114  cat >conftest.make <<\_ACEOF
3115SHELL = /bin/sh
3116all:
3117	@echo '@@@%%%=$(MAKE)=@@@%%%'
3118_ACEOF
3119# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3120case `${MAKE-make} -f conftest.make 2>/dev/null` in
3121  *@@@%%%=?*=@@@%%%*)
3122    eval ac_cv_prog_make_${ac_make}_set=yes;;
3123  *)
3124    eval ac_cv_prog_make_${ac_make}_set=no;;
3125esac
3126rm -f conftest.make
3127fi
3128if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3129  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3130$as_echo "yes" >&6; }
3131  SET_MAKE=
3132else
3133  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3134$as_echo "no" >&6; }
3135  SET_MAKE="MAKE=${MAKE-make}"
3136fi
3137
3138rm -rf .tst 2>/dev/null
3139mkdir .tst 2>/dev/null
3140if test -d .tst; then
3141  am__leading_dot=.
3142else
3143  am__leading_dot=_
3144fi
3145rmdir .tst 2>/dev/null
3146
3147# Check whether --enable-silent-rules was given.
3148if test "${enable_silent_rules+set}" = set; then :
3149  enableval=$enable_silent_rules;
3150fi
3151
3152case $enable_silent_rules in # (((
3153  yes) AM_DEFAULT_VERBOSITY=0;;
3154   no) AM_DEFAULT_VERBOSITY=1;;
3155    *) AM_DEFAULT_VERBOSITY=1;;
3156esac
3157am_make=${MAKE-make}
3158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3159$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3160if ${am_cv_make_support_nested_variables+:} false; then :
3161  $as_echo_n "(cached) " >&6
3162else
3163  if $as_echo 'TRUE=$(BAR$(V))
3164BAR0=false
3165BAR1=true
3166V=1
3167am__doit:
3168	@$(TRUE)
3169.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3170  am_cv_make_support_nested_variables=yes
3171else
3172  am_cv_make_support_nested_variables=no
3173fi
3174fi
3175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3176$as_echo "$am_cv_make_support_nested_variables" >&6; }
3177if test $am_cv_make_support_nested_variables = yes; then
3178    AM_V='$(V)'
3179  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3180else
3181  AM_V=$AM_DEFAULT_VERBOSITY
3182  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3183fi
3184AM_BACKSLASH='\'
3185
3186if test "`cd $srcdir && pwd`" != "`pwd`"; then
3187  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3188  # is not polluted with repeated "-I."
3189  am__isrc=' -I$(srcdir)'
3190  # test to see if srcdir already configured
3191  if test -f $srcdir/config.status; then
3192    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3193  fi
3194fi
3195
3196# test whether we have cygpath
3197if test -z "$CYGPATH_W"; then
3198  if (cygpath --version) >/dev/null 2>/dev/null; then
3199    CYGPATH_W='cygpath -w'
3200  else
3201    CYGPATH_W=echo
3202  fi
3203fi
3204
3205
3206# Define the identity of the package.
3207 PACKAGE='bfd'
3208 VERSION='2.42.50'
3209
3210
3211cat >>confdefs.h <<_ACEOF
3212#define PACKAGE "$PACKAGE"
3213_ACEOF
3214
3215
3216cat >>confdefs.h <<_ACEOF
3217#define VERSION "$VERSION"
3218_ACEOF
3219
3220# Some tools Automake needs.
3221
3222ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3223
3224
3225AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3226
3227
3228AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3229
3230
3231AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3232
3233
3234MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3235
3236# For better backward compatibility.  To be removed once Automake 1.9.x
3237# dies out for good.  For more background, see:
3238# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3239# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3240mkdir_p='$(MKDIR_P)'
3241
3242# We need awk for the "check" target (and possibly the TAP driver).  The
3243# system "awk" is bad on some platforms.
3244# Always define AMTAR for backward compatibility.  Yes, it's still used
3245# in the wild :-(  We should find a proper way to deprecate it ...
3246AMTAR='$${TAR-tar}'
3247
3248
3249# We'll loop over all known methods to create a tar archive until one works.
3250_am_tools='gnutar  pax cpio none'
3251
3252am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3253
3254
3255
3256
3257
3258
3259# POSIX will say in a future version that running "rm -f" with no argument
3260# is OK; and we want to be able to make that assumption in our Makefile
3261# recipes.  So use an aggressive probe to check that the usage we want is
3262# actually supported "in the wild" to an acceptable degree.
3263# See automake bug#10828.
3264# To make any issue more visible, cause the running configure to be aborted
3265# by default if the 'rm' program in use doesn't match our expectations; the
3266# user can still override this though.
3267if rm -f && rm -fr && rm -rf; then : OK; else
3268  cat >&2 <<'END'
3269Oops!
3270
3271Your 'rm' program seems unable to run without file operands specified
3272on the command line, even when the '-f' option is present.  This is contrary
3273to the behaviour of most rm programs out there, and not conforming with
3274the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3275
3276Please tell bug-automake@gnu.org about your system, including the value
3277of your $PATH and any error possibly output before this message.  This
3278can help us improve future automake versions.
3279
3280END
3281  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3282    echo 'Configuration will proceed anyway, since you have set the' >&2
3283    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3284    echo >&2
3285  else
3286    cat >&2 <<'END'
3287Aborting the configuration process, to ensure you take notice of the issue.
3288
3289You can download and install GNU coreutils to get an 'rm' implementation
3290that behaves properly: <http://www.gnu.org/software/coreutils/>.
3291
3292If you want to complete the configuration process using your problematic
3293'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3294to "yes", and re-run configure.
3295
3296END
3297    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3298  fi
3299fi
3300
3301# Check whether --enable-silent-rules was given.
3302if test "${enable_silent_rules+set}" = set; then :
3303  enableval=$enable_silent_rules;
3304fi
3305
3306case $enable_silent_rules in # (((
3307  yes) AM_DEFAULT_VERBOSITY=0;;
3308   no) AM_DEFAULT_VERBOSITY=1;;
3309    *) AM_DEFAULT_VERBOSITY=0;;
3310esac
3311am_make=${MAKE-make}
3312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3313$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3314if ${am_cv_make_support_nested_variables+:} false; then :
3315  $as_echo_n "(cached) " >&6
3316else
3317  if $as_echo 'TRUE=$(BAR$(V))
3318BAR0=false
3319BAR1=true
3320V=1
3321am__doit:
3322	@$(TRUE)
3323.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3324  am_cv_make_support_nested_variables=yes
3325else
3326  am_cv_make_support_nested_variables=no
3327fi
3328fi
3329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3330$as_echo "$am_cv_make_support_nested_variables" >&6; }
3331if test $am_cv_make_support_nested_variables = yes; then
3332    AM_V='$(V)'
3333  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3334else
3335  AM_V=$AM_DEFAULT_VERBOSITY
3336  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3337fi
3338AM_BACKSLASH='\'
3339
3340
3341if test -n "$ac_tool_prefix"; then
3342  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3343set dummy ${ac_tool_prefix}ar; ac_word=$2
3344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3345$as_echo_n "checking for $ac_word... " >&6; }
3346if ${ac_cv_prog_AR+:} false; then :
3347  $as_echo_n "(cached) " >&6
3348else
3349  if test -n "$AR"; then
3350  ac_cv_prog_AR="$AR" # Let the user override the test.
3351else
3352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3353for as_dir in $PATH
3354do
3355  IFS=$as_save_IFS
3356  test -z "$as_dir" && as_dir=.
3357    for ac_exec_ext in '' $ac_executable_extensions; do
3358  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3359    ac_cv_prog_AR="${ac_tool_prefix}ar"
3360    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3361    break 2
3362  fi
3363done
3364  done
3365IFS=$as_save_IFS
3366
3367fi
3368fi
3369AR=$ac_cv_prog_AR
3370if test -n "$AR"; then
3371  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3372$as_echo "$AR" >&6; }
3373else
3374  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3375$as_echo "no" >&6; }
3376fi
3377
3378
3379fi
3380if test -z "$ac_cv_prog_AR"; then
3381  ac_ct_AR=$AR
3382  # Extract the first word of "ar", so it can be a program name with args.
3383set dummy ar; ac_word=$2
3384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3385$as_echo_n "checking for $ac_word... " >&6; }
3386if ${ac_cv_prog_ac_ct_AR+:} false; then :
3387  $as_echo_n "(cached) " >&6
3388else
3389  if test -n "$ac_ct_AR"; then
3390  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3391else
3392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3393for as_dir in $PATH
3394do
3395  IFS=$as_save_IFS
3396  test -z "$as_dir" && as_dir=.
3397    for ac_exec_ext in '' $ac_executable_extensions; do
3398  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3399    ac_cv_prog_ac_ct_AR="ar"
3400    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3401    break 2
3402  fi
3403done
3404  done
3405IFS=$as_save_IFS
3406
3407fi
3408fi
3409ac_ct_AR=$ac_cv_prog_ac_ct_AR
3410if test -n "$ac_ct_AR"; then
3411  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
3412$as_echo "$ac_ct_AR" >&6; }
3413else
3414  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3415$as_echo "no" >&6; }
3416fi
3417
3418  if test "x$ac_ct_AR" = x; then
3419    AR=""
3420  else
3421    case $cross_compiling:$ac_tool_warned in
3422yes:)
3423{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3424$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3425ac_tool_warned=yes ;;
3426esac
3427    AR=$ac_ct_AR
3428  fi
3429else
3430  AR="$ac_cv_prog_AR"
3431fi
3432
3433if test -n "$ac_tool_prefix"; then
3434  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3435set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3437$as_echo_n "checking for $ac_word... " >&6; }
3438if ${ac_cv_prog_RANLIB+:} false; then :
3439  $as_echo_n "(cached) " >&6
3440else
3441  if test -n "$RANLIB"; then
3442  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3443else
3444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3445for as_dir in $PATH
3446do
3447  IFS=$as_save_IFS
3448  test -z "$as_dir" && as_dir=.
3449    for ac_exec_ext in '' $ac_executable_extensions; do
3450  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3451    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3452    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3453    break 2
3454  fi
3455done
3456  done
3457IFS=$as_save_IFS
3458
3459fi
3460fi
3461RANLIB=$ac_cv_prog_RANLIB
3462if test -n "$RANLIB"; then
3463  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3464$as_echo "$RANLIB" >&6; }
3465else
3466  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3467$as_echo "no" >&6; }
3468fi
3469
3470
3471fi
3472if test -z "$ac_cv_prog_RANLIB"; then
3473  ac_ct_RANLIB=$RANLIB
3474  # Extract the first word of "ranlib", so it can be a program name with args.
3475set dummy ranlib; ac_word=$2
3476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3477$as_echo_n "checking for $ac_word... " >&6; }
3478if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
3479  $as_echo_n "(cached) " >&6
3480else
3481  if test -n "$ac_ct_RANLIB"; then
3482  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3483else
3484as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3485for as_dir in $PATH
3486do
3487  IFS=$as_save_IFS
3488  test -z "$as_dir" && as_dir=.
3489    for ac_exec_ext in '' $ac_executable_extensions; do
3490  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3491    ac_cv_prog_ac_ct_RANLIB="ranlib"
3492    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3493    break 2
3494  fi
3495done
3496  done
3497IFS=$as_save_IFS
3498
3499fi
3500fi
3501ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3502if test -n "$ac_ct_RANLIB"; then
3503  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3504$as_echo "$ac_ct_RANLIB" >&6; }
3505else
3506  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3507$as_echo "no" >&6; }
3508fi
3509
3510  if test "x$ac_ct_RANLIB" = x; then
3511    RANLIB=":"
3512  else
3513    case $cross_compiling:$ac_tool_warned in
3514yes:)
3515{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3516$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3517ac_tool_warned=yes ;;
3518esac
3519    RANLIB=$ac_ct_RANLIB
3520  fi
3521else
3522  RANLIB="$ac_cv_prog_RANLIB"
3523fi
3524
3525
3526# Check whether --enable-shared was given.
3527if test "${enable_shared+set}" = set; then :
3528  enableval=$enable_shared; p=${PACKAGE-default}
3529    case $enableval in
3530    yes) enable_shared=yes ;;
3531    no) enable_shared=no ;;
3532    *)
3533      enable_shared=no
3534      # Look at the argument we got.  We use all the common list separators.
3535      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3536      for pkg in $enableval; do
3537	IFS="$lt_save_ifs"
3538	if test "X$pkg" = "X$p"; then
3539	  enable_shared=yes
3540	fi
3541      done
3542      IFS="$lt_save_ifs"
3543      ;;
3544    esac
3545else
3546  enable_shared=no
3547fi
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558ac_ext=c
3559ac_cpp='$CPP $CPPFLAGS'
3560ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3561ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3562ac_compiler_gnu=$ac_cv_c_compiler_gnu
3563if test -n "$ac_tool_prefix"; then
3564  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3565set dummy ${ac_tool_prefix}gcc; ac_word=$2
3566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3567$as_echo_n "checking for $ac_word... " >&6; }
3568if ${ac_cv_prog_CC+:} false; then :
3569  $as_echo_n "(cached) " >&6
3570else
3571  if test -n "$CC"; then
3572  ac_cv_prog_CC="$CC" # Let the user override the test.
3573else
3574as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3575for as_dir in $PATH
3576do
3577  IFS=$as_save_IFS
3578  test -z "$as_dir" && as_dir=.
3579    for ac_exec_ext in '' $ac_executable_extensions; do
3580  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3581    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3582    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3583    break 2
3584  fi
3585done
3586  done
3587IFS=$as_save_IFS
3588
3589fi
3590fi
3591CC=$ac_cv_prog_CC
3592if test -n "$CC"; then
3593  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3594$as_echo "$CC" >&6; }
3595else
3596  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3597$as_echo "no" >&6; }
3598fi
3599
3600
3601fi
3602if test -z "$ac_cv_prog_CC"; then
3603  ac_ct_CC=$CC
3604  # Extract the first word of "gcc", so it can be a program name with args.
3605set dummy gcc; ac_word=$2
3606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3607$as_echo_n "checking for $ac_word... " >&6; }
3608if ${ac_cv_prog_ac_ct_CC+:} false; then :
3609  $as_echo_n "(cached) " >&6
3610else
3611  if test -n "$ac_ct_CC"; then
3612  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3613else
3614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3615for as_dir in $PATH
3616do
3617  IFS=$as_save_IFS
3618  test -z "$as_dir" && as_dir=.
3619    for ac_exec_ext in '' $ac_executable_extensions; do
3620  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3621    ac_cv_prog_ac_ct_CC="gcc"
3622    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3623    break 2
3624  fi
3625done
3626  done
3627IFS=$as_save_IFS
3628
3629fi
3630fi
3631ac_ct_CC=$ac_cv_prog_ac_ct_CC
3632if test -n "$ac_ct_CC"; then
3633  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3634$as_echo "$ac_ct_CC" >&6; }
3635else
3636  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3637$as_echo "no" >&6; }
3638fi
3639
3640  if test "x$ac_ct_CC" = x; then
3641    CC=""
3642  else
3643    case $cross_compiling:$ac_tool_warned in
3644yes:)
3645{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3646$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3647ac_tool_warned=yes ;;
3648esac
3649    CC=$ac_ct_CC
3650  fi
3651else
3652  CC="$ac_cv_prog_CC"
3653fi
3654
3655if test -z "$CC"; then
3656          if test -n "$ac_tool_prefix"; then
3657    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3658set dummy ${ac_tool_prefix}cc; ac_word=$2
3659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3660$as_echo_n "checking for $ac_word... " >&6; }
3661if ${ac_cv_prog_CC+:} false; then :
3662  $as_echo_n "(cached) " >&6
3663else
3664  if test -n "$CC"; then
3665  ac_cv_prog_CC="$CC" # Let the user override the test.
3666else
3667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3668for as_dir in $PATH
3669do
3670  IFS=$as_save_IFS
3671  test -z "$as_dir" && as_dir=.
3672    for ac_exec_ext in '' $ac_executable_extensions; do
3673  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3674    ac_cv_prog_CC="${ac_tool_prefix}cc"
3675    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3676    break 2
3677  fi
3678done
3679  done
3680IFS=$as_save_IFS
3681
3682fi
3683fi
3684CC=$ac_cv_prog_CC
3685if test -n "$CC"; then
3686  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3687$as_echo "$CC" >&6; }
3688else
3689  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3690$as_echo "no" >&6; }
3691fi
3692
3693
3694  fi
3695fi
3696if test -z "$CC"; then
3697  # Extract the first word of "cc", so it can be a program name with args.
3698set dummy cc; ac_word=$2
3699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3700$as_echo_n "checking for $ac_word... " >&6; }
3701if ${ac_cv_prog_CC+:} false; then :
3702  $as_echo_n "(cached) " >&6
3703else
3704  if test -n "$CC"; then
3705  ac_cv_prog_CC="$CC" # Let the user override the test.
3706else
3707  ac_prog_rejected=no
3708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3709for as_dir in $PATH
3710do
3711  IFS=$as_save_IFS
3712  test -z "$as_dir" && as_dir=.
3713    for ac_exec_ext in '' $ac_executable_extensions; do
3714  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3715    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3716       ac_prog_rejected=yes
3717       continue
3718     fi
3719    ac_cv_prog_CC="cc"
3720    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3721    break 2
3722  fi
3723done
3724  done
3725IFS=$as_save_IFS
3726
3727if test $ac_prog_rejected = yes; then
3728  # We found a bogon in the path, so make sure we never use it.
3729  set dummy $ac_cv_prog_CC
3730  shift
3731  if test $# != 0; then
3732    # We chose a different compiler from the bogus one.
3733    # However, it has the same basename, so the bogon will be chosen
3734    # first if we set CC to just the basename; use the full file name.
3735    shift
3736    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3737  fi
3738fi
3739fi
3740fi
3741CC=$ac_cv_prog_CC
3742if test -n "$CC"; then
3743  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3744$as_echo "$CC" >&6; }
3745else
3746  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3747$as_echo "no" >&6; }
3748fi
3749
3750
3751fi
3752if test -z "$CC"; then
3753  if test -n "$ac_tool_prefix"; then
3754  for ac_prog in cl.exe
3755  do
3756    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3757set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3759$as_echo_n "checking for $ac_word... " >&6; }
3760if ${ac_cv_prog_CC+:} false; then :
3761  $as_echo_n "(cached) " >&6
3762else
3763  if test -n "$CC"; then
3764  ac_cv_prog_CC="$CC" # Let the user override the test.
3765else
3766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3767for as_dir in $PATH
3768do
3769  IFS=$as_save_IFS
3770  test -z "$as_dir" && as_dir=.
3771    for ac_exec_ext in '' $ac_executable_extensions; do
3772  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3773    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3774    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3775    break 2
3776  fi
3777done
3778  done
3779IFS=$as_save_IFS
3780
3781fi
3782fi
3783CC=$ac_cv_prog_CC
3784if test -n "$CC"; then
3785  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3786$as_echo "$CC" >&6; }
3787else
3788  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3789$as_echo "no" >&6; }
3790fi
3791
3792
3793    test -n "$CC" && break
3794  done
3795fi
3796if test -z "$CC"; then
3797  ac_ct_CC=$CC
3798  for ac_prog in cl.exe
3799do
3800  # Extract the first word of "$ac_prog", so it can be a program name with args.
3801set dummy $ac_prog; ac_word=$2
3802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3803$as_echo_n "checking for $ac_word... " >&6; }
3804if ${ac_cv_prog_ac_ct_CC+:} false; then :
3805  $as_echo_n "(cached) " >&6
3806else
3807  if test -n "$ac_ct_CC"; then
3808  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3809else
3810as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3811for as_dir in $PATH
3812do
3813  IFS=$as_save_IFS
3814  test -z "$as_dir" && as_dir=.
3815    for ac_exec_ext in '' $ac_executable_extensions; do
3816  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3817    ac_cv_prog_ac_ct_CC="$ac_prog"
3818    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3819    break 2
3820  fi
3821done
3822  done
3823IFS=$as_save_IFS
3824
3825fi
3826fi
3827ac_ct_CC=$ac_cv_prog_ac_ct_CC
3828if test -n "$ac_ct_CC"; then
3829  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3830$as_echo "$ac_ct_CC" >&6; }
3831else
3832  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3833$as_echo "no" >&6; }
3834fi
3835
3836
3837  test -n "$ac_ct_CC" && break
3838done
3839
3840  if test "x$ac_ct_CC" = x; then
3841    CC=""
3842  else
3843    case $cross_compiling:$ac_tool_warned in
3844yes:)
3845{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3846$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3847ac_tool_warned=yes ;;
3848esac
3849    CC=$ac_ct_CC
3850  fi
3851fi
3852
3853fi
3854
3855
3856test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3857$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3858as_fn_error $? "no acceptable C compiler found in \$PATH
3859See \`config.log' for more details" "$LINENO" 5; }
3860
3861# Provide some information about the compiler.
3862$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3863set X $ac_compile
3864ac_compiler=$2
3865for ac_option in --version -v -V -qversion; do
3866  { { ac_try="$ac_compiler $ac_option >&5"
3867case "(($ac_try" in
3868  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3869  *) ac_try_echo=$ac_try;;
3870esac
3871eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3872$as_echo "$ac_try_echo"; } >&5
3873  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3874  ac_status=$?
3875  if test -s conftest.err; then
3876    sed '10a\
3877... rest of stderr output deleted ...
3878         10q' conftest.err >conftest.er1
3879    cat conftest.er1 >&5
3880  fi
3881  rm -f conftest.er1 conftest.err
3882  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3883  test $ac_status = 0; }
3884done
3885
3886cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3887/* end confdefs.h.  */
3888
3889int
3890main ()
3891{
3892
3893  ;
3894  return 0;
3895}
3896_ACEOF
3897ac_clean_files_save=$ac_clean_files
3898ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3899# Try to create an executable without -o first, disregard a.out.
3900# It will help us diagnose broken compilers, and finding out an intuition
3901# of exeext.
3902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3903$as_echo_n "checking whether the C compiler works... " >&6; }
3904ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3905
3906# The possible output files:
3907ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3908
3909ac_rmfiles=
3910for ac_file in $ac_files
3911do
3912  case $ac_file in
3913    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3914    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3915  esac
3916done
3917rm -f $ac_rmfiles
3918
3919if { { ac_try="$ac_link_default"
3920case "(($ac_try" in
3921  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3922  *) ac_try_echo=$ac_try;;
3923esac
3924eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3925$as_echo "$ac_try_echo"; } >&5
3926  (eval "$ac_link_default") 2>&5
3927  ac_status=$?
3928  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3929  test $ac_status = 0; }; then :
3930  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3931# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3932# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3933# so that the user can short-circuit this test for compilers unknown to
3934# Autoconf.
3935for ac_file in $ac_files ''
3936do
3937  test -f "$ac_file" || continue
3938  case $ac_file in
3939    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3940	;;
3941    [ab].out )
3942	# We found the default executable, but exeext='' is most
3943	# certainly right.
3944	break;;
3945    *.* )
3946	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3947	then :; else
3948	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3949	fi
3950	# We set ac_cv_exeext here because the later test for it is not
3951	# safe: cross compilers may not add the suffix if given an `-o'
3952	# argument, so we may need to know it at that point already.
3953	# Even if this section looks crufty: it has the advantage of
3954	# actually working.
3955	break;;
3956    * )
3957	break;;
3958  esac
3959done
3960test "$ac_cv_exeext" = no && ac_cv_exeext=
3961
3962else
3963  ac_file=''
3964fi
3965if test -z "$ac_file"; then :
3966  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3967$as_echo "no" >&6; }
3968$as_echo "$as_me: failed program was:" >&5
3969sed 's/^/| /' conftest.$ac_ext >&5
3970
3971{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3972$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3973as_fn_error 77 "C compiler cannot create executables
3974See \`config.log' for more details" "$LINENO" 5; }
3975else
3976  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3977$as_echo "yes" >&6; }
3978fi
3979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3980$as_echo_n "checking for C compiler default output file name... " >&6; }
3981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3982$as_echo "$ac_file" >&6; }
3983ac_exeext=$ac_cv_exeext
3984
3985rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3986ac_clean_files=$ac_clean_files_save
3987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3988$as_echo_n "checking for suffix of executables... " >&6; }
3989if { { ac_try="$ac_link"
3990case "(($ac_try" in
3991  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3992  *) ac_try_echo=$ac_try;;
3993esac
3994eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3995$as_echo "$ac_try_echo"; } >&5
3996  (eval "$ac_link") 2>&5
3997  ac_status=$?
3998  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3999  test $ac_status = 0; }; then :
4000  # If both `conftest.exe' and `conftest' are `present' (well, observable)
4001# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4002# work properly (i.e., refer to `conftest.exe'), while it won't with
4003# `rm'.
4004for ac_file in conftest.exe conftest conftest.*; do
4005  test -f "$ac_file" || continue
4006  case $ac_file in
4007    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4008    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4009	  break;;
4010    * ) break;;
4011  esac
4012done
4013else
4014  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4015$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4016as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4017See \`config.log' for more details" "$LINENO" 5; }
4018fi
4019rm -f conftest conftest$ac_cv_exeext
4020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4021$as_echo "$ac_cv_exeext" >&6; }
4022
4023rm -f conftest.$ac_ext
4024EXEEXT=$ac_cv_exeext
4025ac_exeext=$EXEEXT
4026cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4027/* end confdefs.h.  */
4028#include <stdio.h>
4029int
4030main ()
4031{
4032FILE *f = fopen ("conftest.out", "w");
4033 return ferror (f) || fclose (f) != 0;
4034
4035  ;
4036  return 0;
4037}
4038_ACEOF
4039ac_clean_files="$ac_clean_files conftest.out"
4040# Check that the compiler produces executables we can run.  If not, either
4041# the compiler is broken, or we cross compile.
4042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4043$as_echo_n "checking whether we are cross compiling... " >&6; }
4044if test "$cross_compiling" != yes; then
4045  { { ac_try="$ac_link"
4046case "(($ac_try" in
4047  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4048  *) ac_try_echo=$ac_try;;
4049esac
4050eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4051$as_echo "$ac_try_echo"; } >&5
4052  (eval "$ac_link") 2>&5
4053  ac_status=$?
4054  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4055  test $ac_status = 0; }
4056  if { ac_try='./conftest$ac_cv_exeext'
4057  { { case "(($ac_try" in
4058  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4059  *) ac_try_echo=$ac_try;;
4060esac
4061eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4062$as_echo "$ac_try_echo"; } >&5
4063  (eval "$ac_try") 2>&5
4064  ac_status=$?
4065  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4066  test $ac_status = 0; }; }; then
4067    cross_compiling=no
4068  else
4069    if test "$cross_compiling" = maybe; then
4070	cross_compiling=yes
4071    else
4072	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4073$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4074as_fn_error $? "cannot run C compiled programs.
4075If you meant to cross compile, use \`--host'.
4076See \`config.log' for more details" "$LINENO" 5; }
4077    fi
4078  fi
4079fi
4080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4081$as_echo "$cross_compiling" >&6; }
4082
4083rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4084ac_clean_files=$ac_clean_files_save
4085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4086$as_echo_n "checking for suffix of object files... " >&6; }
4087if ${ac_cv_objext+:} false; then :
4088  $as_echo_n "(cached) " >&6
4089else
4090  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4091/* end confdefs.h.  */
4092
4093int
4094main ()
4095{
4096
4097  ;
4098  return 0;
4099}
4100_ACEOF
4101rm -f conftest.o conftest.obj
4102if { { ac_try="$ac_compile"
4103case "(($ac_try" in
4104  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4105  *) ac_try_echo=$ac_try;;
4106esac
4107eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4108$as_echo "$ac_try_echo"; } >&5
4109  (eval "$ac_compile") 2>&5
4110  ac_status=$?
4111  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4112  test $ac_status = 0; }; then :
4113  for ac_file in conftest.o conftest.obj conftest.*; do
4114  test -f "$ac_file" || continue;
4115  case $ac_file in
4116    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4117    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4118       break;;
4119  esac
4120done
4121else
4122  $as_echo "$as_me: failed program was:" >&5
4123sed 's/^/| /' conftest.$ac_ext >&5
4124
4125{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4126$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4127as_fn_error $? "cannot compute suffix of object files: cannot compile
4128See \`config.log' for more details" "$LINENO" 5; }
4129fi
4130rm -f conftest.$ac_cv_objext conftest.$ac_ext
4131fi
4132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4133$as_echo "$ac_cv_objext" >&6; }
4134OBJEXT=$ac_cv_objext
4135ac_objext=$OBJEXT
4136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4137$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4138if ${ac_cv_c_compiler_gnu+:} false; then :
4139  $as_echo_n "(cached) " >&6
4140else
4141  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4142/* end confdefs.h.  */
4143
4144int
4145main ()
4146{
4147#ifndef __GNUC__
4148       choke me
4149#endif
4150
4151  ;
4152  return 0;
4153}
4154_ACEOF
4155if ac_fn_c_try_compile "$LINENO"; then :
4156  ac_compiler_gnu=yes
4157else
4158  ac_compiler_gnu=no
4159fi
4160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4161ac_cv_c_compiler_gnu=$ac_compiler_gnu
4162
4163fi
4164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4165$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4166if test $ac_compiler_gnu = yes; then
4167  GCC=yes
4168else
4169  GCC=
4170fi
4171ac_test_CFLAGS=${CFLAGS+set}
4172ac_save_CFLAGS=$CFLAGS
4173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4174$as_echo_n "checking whether $CC accepts -g... " >&6; }
4175if ${ac_cv_prog_cc_g+:} false; then :
4176  $as_echo_n "(cached) " >&6
4177else
4178  ac_save_c_werror_flag=$ac_c_werror_flag
4179   ac_c_werror_flag=yes
4180   ac_cv_prog_cc_g=no
4181   CFLAGS="-g"
4182   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4183/* end confdefs.h.  */
4184
4185int
4186main ()
4187{
4188
4189  ;
4190  return 0;
4191}
4192_ACEOF
4193if ac_fn_c_try_compile "$LINENO"; then :
4194  ac_cv_prog_cc_g=yes
4195else
4196  CFLAGS=""
4197      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4198/* end confdefs.h.  */
4199
4200int
4201main ()
4202{
4203
4204  ;
4205  return 0;
4206}
4207_ACEOF
4208if ac_fn_c_try_compile "$LINENO"; then :
4209
4210else
4211  ac_c_werror_flag=$ac_save_c_werror_flag
4212	 CFLAGS="-g"
4213	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4214/* end confdefs.h.  */
4215
4216int
4217main ()
4218{
4219
4220  ;
4221  return 0;
4222}
4223_ACEOF
4224if ac_fn_c_try_compile "$LINENO"; then :
4225  ac_cv_prog_cc_g=yes
4226fi
4227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4228fi
4229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4230fi
4231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4232   ac_c_werror_flag=$ac_save_c_werror_flag
4233fi
4234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4235$as_echo "$ac_cv_prog_cc_g" >&6; }
4236if test "$ac_test_CFLAGS" = set; then
4237  CFLAGS=$ac_save_CFLAGS
4238elif test $ac_cv_prog_cc_g = yes; then
4239  if test "$GCC" = yes; then
4240    CFLAGS="-g -O2"
4241  else
4242    CFLAGS="-g"
4243  fi
4244else
4245  if test "$GCC" = yes; then
4246    CFLAGS="-O2"
4247  else
4248    CFLAGS=
4249  fi
4250fi
4251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4252$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4253if ${ac_cv_prog_cc_c89+:} false; then :
4254  $as_echo_n "(cached) " >&6
4255else
4256  ac_cv_prog_cc_c89=no
4257ac_save_CC=$CC
4258cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4259/* end confdefs.h.  */
4260#include <stdarg.h>
4261#include <stdio.h>
4262struct stat;
4263/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4264struct buf { int x; };
4265FILE * (*rcsopen) (struct buf *, struct stat *, int);
4266static char *e (p, i)
4267     char **p;
4268     int i;
4269{
4270  return p[i];
4271}
4272static char *f (char * (*g) (char **, int), char **p, ...)
4273{
4274  char *s;
4275  va_list v;
4276  va_start (v,p);
4277  s = g (p, va_arg (v,int));
4278  va_end (v);
4279  return s;
4280}
4281
4282/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4283   function prototypes and stuff, but not '\xHH' hex character constants.
4284   These don't provoke an error unfortunately, instead are silently treated
4285   as 'x'.  The following induces an error, until -std is added to get
4286   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4287   array size at least.  It's necessary to write '\x00'==0 to get something
4288   that's true only with -std.  */
4289int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4290
4291/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4292   inside strings and character constants.  */
4293#define FOO(x) 'x'
4294int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4295
4296int test (int i, double x);
4297struct s1 {int (*f) (int a);};
4298struct s2 {int (*f) (double a);};
4299int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4300int argc;
4301char **argv;
4302int
4303main ()
4304{
4305return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4306  ;
4307  return 0;
4308}
4309_ACEOF
4310for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4311	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4312do
4313  CC="$ac_save_CC $ac_arg"
4314  if ac_fn_c_try_compile "$LINENO"; then :
4315  ac_cv_prog_cc_c89=$ac_arg
4316fi
4317rm -f core conftest.err conftest.$ac_objext
4318  test "x$ac_cv_prog_cc_c89" != "xno" && break
4319done
4320rm -f conftest.$ac_ext
4321CC=$ac_save_CC
4322
4323fi
4324# AC_CACHE_VAL
4325case "x$ac_cv_prog_cc_c89" in
4326  x)
4327    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4328$as_echo "none needed" >&6; } ;;
4329  xno)
4330    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4331$as_echo "unsupported" >&6; } ;;
4332  *)
4333    CC="$CC $ac_cv_prog_cc_c89"
4334    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4335$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4336esac
4337if test "x$ac_cv_prog_cc_c89" != xno; then :
4338
4339fi
4340
4341ac_ext=c
4342ac_cpp='$CPP $CPPFLAGS'
4343ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4344ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4345ac_compiler_gnu=$ac_cv_c_compiler_gnu
4346
4347ac_ext=c
4348ac_cpp='$CPP $CPPFLAGS'
4349ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4350ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4351ac_compiler_gnu=$ac_cv_c_compiler_gnu
4352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4353$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4354if ${am_cv_prog_cc_c_o+:} false; then :
4355  $as_echo_n "(cached) " >&6
4356else
4357  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4358/* end confdefs.h.  */
4359
4360int
4361main ()
4362{
4363
4364  ;
4365  return 0;
4366}
4367_ACEOF
4368  # Make sure it works both with $CC and with simple cc.
4369  # Following AC_PROG_CC_C_O, we do the test twice because some
4370  # compilers refuse to overwrite an existing .o file with -o,
4371  # though they will create one.
4372  am_cv_prog_cc_c_o=yes
4373  for am_i in 1 2; do
4374    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4375   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4376   ac_status=$?
4377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4378   (exit $ac_status); } \
4379         && test -f conftest2.$ac_objext; then
4380      : OK
4381    else
4382      am_cv_prog_cc_c_o=no
4383      break
4384    fi
4385  done
4386  rm -f core conftest*
4387  unset am_i
4388fi
4389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4390$as_echo "$am_cv_prog_cc_c_o" >&6; }
4391if test "$am_cv_prog_cc_c_o" != yes; then
4392   # Losing compiler, so override with the script.
4393   # FIXME: It is wrong to rewrite CC.
4394   # But if we don't then we get into trouble of one sort or another.
4395   # A longer-term fix would be to have automake use am__CC in this case,
4396   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4397   CC="$am_aux_dir/compile $CC"
4398fi
4399ac_ext=c
4400ac_cpp='$CPP $CPPFLAGS'
4401ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4402ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4403ac_compiler_gnu=$ac_cv_c_compiler_gnu
4404
4405DEPDIR="${am__leading_dot}deps"
4406
4407ac_config_commands="$ac_config_commands depfiles"
4408
4409
4410am_make=${MAKE-make}
4411cat > confinc << 'END'
4412am__doit:
4413	@echo this is the am__doit target
4414.PHONY: am__doit
4415END
4416# If we don't find an include directive, just comment out the code.
4417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4418$as_echo_n "checking for style of include used by $am_make... " >&6; }
4419am__include="#"
4420am__quote=
4421_am_result=none
4422# First try GNU make style include.
4423echo "include confinc" > confmf
4424# Ignore all kinds of additional output from 'make'.
4425case `$am_make -s -f confmf 2> /dev/null` in #(
4426*the\ am__doit\ target*)
4427  am__include=include
4428  am__quote=
4429  _am_result=GNU
4430  ;;
4431esac
4432# Now try BSD make style include.
4433if test "$am__include" = "#"; then
4434   echo '.include "confinc"' > confmf
4435   case `$am_make -s -f confmf 2> /dev/null` in #(
4436   *the\ am__doit\ target*)
4437     am__include=.include
4438     am__quote="\""
4439     _am_result=BSD
4440     ;;
4441   esac
4442fi
4443
4444
4445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4446$as_echo "$_am_result" >&6; }
4447rm -f confinc confmf
4448
4449# Check whether --enable-dependency-tracking was given.
4450if test "${enable_dependency_tracking+set}" = set; then :
4451  enableval=$enable_dependency_tracking;
4452fi
4453
4454if test "x$enable_dependency_tracking" != xno; then
4455  am_depcomp="$ac_aux_dir/depcomp"
4456  AMDEPBACKSLASH='\'
4457  am__nodep='_no'
4458fi
4459 if test "x$enable_dependency_tracking" != xno; then
4460  AMDEP_TRUE=
4461  AMDEP_FALSE='#'
4462else
4463  AMDEP_TRUE='#'
4464  AMDEP_FALSE=
4465fi
4466
4467
4468
4469depcc="$CC"   am_compiler_list=
4470
4471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4472$as_echo_n "checking dependency style of $depcc... " >&6; }
4473if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4474  $as_echo_n "(cached) " >&6
4475else
4476  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4477  # We make a subdir and do the tests there.  Otherwise we can end up
4478  # making bogus files that we don't know about and never remove.  For
4479  # instance it was reported that on HP-UX the gcc test will end up
4480  # making a dummy file named 'D' -- because '-MD' means "put the output
4481  # in D".
4482  rm -rf conftest.dir
4483  mkdir conftest.dir
4484  # Copy depcomp to subdir because otherwise we won't find it if we're
4485  # using a relative directory.
4486  cp "$am_depcomp" conftest.dir
4487  cd conftest.dir
4488  # We will build objects and dependencies in a subdirectory because
4489  # it helps to detect inapplicable dependency modes.  For instance
4490  # both Tru64's cc and ICC support -MD to output dependencies as a
4491  # side effect of compilation, but ICC will put the dependencies in
4492  # the current directory while Tru64 will put them in the object
4493  # directory.
4494  mkdir sub
4495
4496  am_cv_CC_dependencies_compiler_type=none
4497  if test "$am_compiler_list" = ""; then
4498     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4499  fi
4500  am__universal=false
4501  case " $depcc " in #(
4502     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4503     esac
4504
4505  for depmode in $am_compiler_list; do
4506    # Setup a source with many dependencies, because some compilers
4507    # like to wrap large dependency lists on column 80 (with \), and
4508    # we should not choose a depcomp mode which is confused by this.
4509    #
4510    # We need to recreate these files for each test, as the compiler may
4511    # overwrite some of them when testing with obscure command lines.
4512    # This happens at least with the AIX C compiler.
4513    : > sub/conftest.c
4514    for i in 1 2 3 4 5 6; do
4515      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4516      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4517      # Solaris 10 /bin/sh.
4518      echo '/* dummy */' > sub/conftst$i.h
4519    done
4520    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4521
4522    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4523    # mode.  It turns out that the SunPro C++ compiler does not properly
4524    # handle '-M -o', and we need to detect this.  Also, some Intel
4525    # versions had trouble with output in subdirs.
4526    am__obj=sub/conftest.${OBJEXT-o}
4527    am__minus_obj="-o $am__obj"
4528    case $depmode in
4529    gcc)
4530      # This depmode causes a compiler race in universal mode.
4531      test "$am__universal" = false || continue
4532      ;;
4533    nosideeffect)
4534      # After this tag, mechanisms are not by side-effect, so they'll
4535      # only be used when explicitly requested.
4536      if test "x$enable_dependency_tracking" = xyes; then
4537	continue
4538      else
4539	break
4540      fi
4541      ;;
4542    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4543      # This compiler won't grok '-c -o', but also, the minuso test has
4544      # not run yet.  These depmodes are late enough in the game, and
4545      # so weak that their functioning should not be impacted.
4546      am__obj=conftest.${OBJEXT-o}
4547      am__minus_obj=
4548      ;;
4549    none) break ;;
4550    esac
4551    if depmode=$depmode \
4552       source=sub/conftest.c object=$am__obj \
4553       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4554       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4555         >/dev/null 2>conftest.err &&
4556       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4557       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4558       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4559       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4560      # icc doesn't choke on unknown options, it will just issue warnings
4561      # or remarks (even with -Werror).  So we grep stderr for any message
4562      # that says an option was ignored or not supported.
4563      # When given -MP, icc 7.0 and 7.1 complain thusly:
4564      #   icc: Command line warning: ignoring option '-M'; no argument required
4565      # The diagnosis changed in icc 8.0:
4566      #   icc: Command line remark: option '-MP' not supported
4567      if (grep 'ignoring option' conftest.err ||
4568          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4569        am_cv_CC_dependencies_compiler_type=$depmode
4570        break
4571      fi
4572    fi
4573  done
4574
4575  cd ..
4576  rm -rf conftest.dir
4577else
4578  am_cv_CC_dependencies_compiler_type=none
4579fi
4580
4581fi
4582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4583$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4584CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4585
4586 if
4587  test "x$enable_dependency_tracking" != xno \
4588  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4589  am__fastdepCC_TRUE=
4590  am__fastdepCC_FALSE='#'
4591else
4592  am__fastdepCC_TRUE='#'
4593  am__fastdepCC_FALSE=
4594fi
4595
4596
4597
4598ac_ext=c
4599ac_cpp='$CPP $CPPFLAGS'
4600ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4601ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4602ac_compiler_gnu=$ac_cv_c_compiler_gnu
4603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4604$as_echo_n "checking how to run the C preprocessor... " >&6; }
4605# On Suns, sometimes $CPP names a directory.
4606if test -n "$CPP" && test -d "$CPP"; then
4607  CPP=
4608fi
4609if test -z "$CPP"; then
4610  if ${ac_cv_prog_CPP+:} false; then :
4611  $as_echo_n "(cached) " >&6
4612else
4613      # Double quotes because CPP needs to be expanded
4614    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4615    do
4616      ac_preproc_ok=false
4617for ac_c_preproc_warn_flag in '' yes
4618do
4619  # Use a header file that comes with gcc, so configuring glibc
4620  # with a fresh cross-compiler works.
4621  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4622  # <limits.h> exists even on freestanding compilers.
4623  # On the NeXT, cc -E runs the code through the compiler's parser,
4624  # not just through cpp. "Syntax error" is here to catch this case.
4625  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4626/* end confdefs.h.  */
4627#ifdef __STDC__
4628# include <limits.h>
4629#else
4630# include <assert.h>
4631#endif
4632		     Syntax error
4633_ACEOF
4634if ac_fn_c_try_cpp "$LINENO"; then :
4635
4636else
4637  # Broken: fails on valid input.
4638continue
4639fi
4640rm -f conftest.err conftest.i conftest.$ac_ext
4641
4642  # OK, works on sane cases.  Now check whether nonexistent headers
4643  # can be detected and how.
4644  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4645/* end confdefs.h.  */
4646#include <ac_nonexistent.h>
4647_ACEOF
4648if ac_fn_c_try_cpp "$LINENO"; then :
4649  # Broken: success on invalid input.
4650continue
4651else
4652  # Passes both tests.
4653ac_preproc_ok=:
4654break
4655fi
4656rm -f conftest.err conftest.i conftest.$ac_ext
4657
4658done
4659# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4660rm -f conftest.i conftest.err conftest.$ac_ext
4661if $ac_preproc_ok; then :
4662  break
4663fi
4664
4665    done
4666    ac_cv_prog_CPP=$CPP
4667
4668fi
4669  CPP=$ac_cv_prog_CPP
4670else
4671  ac_cv_prog_CPP=$CPP
4672fi
4673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4674$as_echo "$CPP" >&6; }
4675ac_preproc_ok=false
4676for ac_c_preproc_warn_flag in '' yes
4677do
4678  # Use a header file that comes with gcc, so configuring glibc
4679  # with a fresh cross-compiler works.
4680  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4681  # <limits.h> exists even on freestanding compilers.
4682  # On the NeXT, cc -E runs the code through the compiler's parser,
4683  # not just through cpp. "Syntax error" is here to catch this case.
4684  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4685/* end confdefs.h.  */
4686#ifdef __STDC__
4687# include <limits.h>
4688#else
4689# include <assert.h>
4690#endif
4691		     Syntax error
4692_ACEOF
4693if ac_fn_c_try_cpp "$LINENO"; then :
4694
4695else
4696  # Broken: fails on valid input.
4697continue
4698fi
4699rm -f conftest.err conftest.i conftest.$ac_ext
4700
4701  # OK, works on sane cases.  Now check whether nonexistent headers
4702  # can be detected and how.
4703  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4704/* end confdefs.h.  */
4705#include <ac_nonexistent.h>
4706_ACEOF
4707if ac_fn_c_try_cpp "$LINENO"; then :
4708  # Broken: success on invalid input.
4709continue
4710else
4711  # Passes both tests.
4712ac_preproc_ok=:
4713break
4714fi
4715rm -f conftest.err conftest.i conftest.$ac_ext
4716
4717done
4718# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4719rm -f conftest.i conftest.err conftest.$ac_ext
4720if $ac_preproc_ok; then :
4721
4722else
4723  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4724$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4725as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4726See \`config.log' for more details" "$LINENO" 5; }
4727fi
4728
4729ac_ext=c
4730ac_cpp='$CPP $CPPFLAGS'
4731ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4732ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4733ac_compiler_gnu=$ac_cv_c_compiler_gnu
4734
4735
4736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4737$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4738if ${ac_cv_path_GREP+:} false; then :
4739  $as_echo_n "(cached) " >&6
4740else
4741  if test -z "$GREP"; then
4742  ac_path_GREP_found=false
4743  # Loop through the user's path and test for each of PROGNAME-LIST
4744  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4745for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4746do
4747  IFS=$as_save_IFS
4748  test -z "$as_dir" && as_dir=.
4749    for ac_prog in grep ggrep; do
4750    for ac_exec_ext in '' $ac_executable_extensions; do
4751      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4752      as_fn_executable_p "$ac_path_GREP" || continue
4753# Check for GNU ac_path_GREP and select it if it is found.
4754  # Check for GNU $ac_path_GREP
4755case `"$ac_path_GREP" --version 2>&1` in
4756*GNU*)
4757  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4758*)
4759  ac_count=0
4760  $as_echo_n 0123456789 >"conftest.in"
4761  while :
4762  do
4763    cat "conftest.in" "conftest.in" >"conftest.tmp"
4764    mv "conftest.tmp" "conftest.in"
4765    cp "conftest.in" "conftest.nl"
4766    $as_echo 'GREP' >> "conftest.nl"
4767    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4768    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4769    as_fn_arith $ac_count + 1 && ac_count=$as_val
4770    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4771      # Best one so far, save it but keep looking for a better one
4772      ac_cv_path_GREP="$ac_path_GREP"
4773      ac_path_GREP_max=$ac_count
4774    fi
4775    # 10*(2^10) chars as input seems more than enough
4776    test $ac_count -gt 10 && break
4777  done
4778  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4779esac
4780
4781      $ac_path_GREP_found && break 3
4782    done
4783  done
4784  done
4785IFS=$as_save_IFS
4786  if test -z "$ac_cv_path_GREP"; then
4787    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4788  fi
4789else
4790  ac_cv_path_GREP=$GREP
4791fi
4792
4793fi
4794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4795$as_echo "$ac_cv_path_GREP" >&6; }
4796 GREP="$ac_cv_path_GREP"
4797
4798
4799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4800$as_echo_n "checking for egrep... " >&6; }
4801if ${ac_cv_path_EGREP+:} false; then :
4802  $as_echo_n "(cached) " >&6
4803else
4804  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4805   then ac_cv_path_EGREP="$GREP -E"
4806   else
4807     if test -z "$EGREP"; then
4808  ac_path_EGREP_found=false
4809  # Loop through the user's path and test for each of PROGNAME-LIST
4810  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4811for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4812do
4813  IFS=$as_save_IFS
4814  test -z "$as_dir" && as_dir=.
4815    for ac_prog in egrep; do
4816    for ac_exec_ext in '' $ac_executable_extensions; do
4817      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4818      as_fn_executable_p "$ac_path_EGREP" || continue
4819# Check for GNU ac_path_EGREP and select it if it is found.
4820  # Check for GNU $ac_path_EGREP
4821case `"$ac_path_EGREP" --version 2>&1` in
4822*GNU*)
4823  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4824*)
4825  ac_count=0
4826  $as_echo_n 0123456789 >"conftest.in"
4827  while :
4828  do
4829    cat "conftest.in" "conftest.in" >"conftest.tmp"
4830    mv "conftest.tmp" "conftest.in"
4831    cp "conftest.in" "conftest.nl"
4832    $as_echo 'EGREP' >> "conftest.nl"
4833    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4834    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4835    as_fn_arith $ac_count + 1 && ac_count=$as_val
4836    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4837      # Best one so far, save it but keep looking for a better one
4838      ac_cv_path_EGREP="$ac_path_EGREP"
4839      ac_path_EGREP_max=$ac_count
4840    fi
4841    # 10*(2^10) chars as input seems more than enough
4842    test $ac_count -gt 10 && break
4843  done
4844  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4845esac
4846
4847      $ac_path_EGREP_found && break 3
4848    done
4849  done
4850  done
4851IFS=$as_save_IFS
4852  if test -z "$ac_cv_path_EGREP"; then
4853    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4854  fi
4855else
4856  ac_cv_path_EGREP=$EGREP
4857fi
4858
4859   fi
4860fi
4861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4862$as_echo "$ac_cv_path_EGREP" >&6; }
4863 EGREP="$ac_cv_path_EGREP"
4864
4865
4866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4867$as_echo_n "checking for ANSI C header files... " >&6; }
4868if ${ac_cv_header_stdc+:} false; then :
4869  $as_echo_n "(cached) " >&6
4870else
4871  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4872/* end confdefs.h.  */
4873#include <stdlib.h>
4874#include <stdarg.h>
4875#include <string.h>
4876#include <float.h>
4877
4878int
4879main ()
4880{
4881
4882  ;
4883  return 0;
4884}
4885_ACEOF
4886if ac_fn_c_try_compile "$LINENO"; then :
4887  ac_cv_header_stdc=yes
4888else
4889  ac_cv_header_stdc=no
4890fi
4891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4892
4893if test $ac_cv_header_stdc = yes; then
4894  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4895  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4896/* end confdefs.h.  */
4897#include <string.h>
4898
4899_ACEOF
4900if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4901  $EGREP "memchr" >/dev/null 2>&1; then :
4902
4903else
4904  ac_cv_header_stdc=no
4905fi
4906rm -f conftest*
4907
4908fi
4909
4910if test $ac_cv_header_stdc = yes; then
4911  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4912  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4913/* end confdefs.h.  */
4914#include <stdlib.h>
4915
4916_ACEOF
4917if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4918  $EGREP "free" >/dev/null 2>&1; then :
4919
4920else
4921  ac_cv_header_stdc=no
4922fi
4923rm -f conftest*
4924
4925fi
4926
4927if test $ac_cv_header_stdc = yes; then
4928  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4929  if test "$cross_compiling" = yes; then :
4930  :
4931else
4932  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4933/* end confdefs.h.  */
4934#include <ctype.h>
4935#include <stdlib.h>
4936#if ((' ' & 0x0FF) == 0x020)
4937# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4938# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4939#else
4940# define ISLOWER(c) \
4941		   (('a' <= (c) && (c) <= 'i') \
4942		     || ('j' <= (c) && (c) <= 'r') \
4943		     || ('s' <= (c) && (c) <= 'z'))
4944# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4945#endif
4946
4947#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4948int
4949main ()
4950{
4951  int i;
4952  for (i = 0; i < 256; i++)
4953    if (XOR (islower (i), ISLOWER (i))
4954	|| toupper (i) != TOUPPER (i))
4955      return 2;
4956  return 0;
4957}
4958_ACEOF
4959if ac_fn_c_try_run "$LINENO"; then :
4960
4961else
4962  ac_cv_header_stdc=no
4963fi
4964rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4965  conftest.$ac_objext conftest.beam conftest.$ac_ext
4966fi
4967
4968fi
4969fi
4970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4971$as_echo "$ac_cv_header_stdc" >&6; }
4972if test $ac_cv_header_stdc = yes; then
4973
4974$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4975
4976fi
4977
4978# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4979for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4980		  inttypes.h stdint.h unistd.h
4981do :
4982  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4983ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4984"
4985if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4986  cat >>confdefs.h <<_ACEOF
4987#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4988_ACEOF
4989
4990fi
4991
4992done
4993
4994
4995
4996  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4997if test "x$ac_cv_header_minix_config_h" = xyes; then :
4998  MINIX=yes
4999else
5000  MINIX=
5001fi
5002
5003
5004  if test "$MINIX" = yes; then
5005
5006$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5007
5008
5009$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5010
5011
5012$as_echo "#define _MINIX 1" >>confdefs.h
5013
5014  fi
5015
5016
5017  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5018$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5019if ${ac_cv_safe_to_define___extensions__+:} false; then :
5020  $as_echo_n "(cached) " >&6
5021else
5022  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5023/* end confdefs.h.  */
5024
5025#         define __EXTENSIONS__ 1
5026          $ac_includes_default
5027int
5028main ()
5029{
5030
5031  ;
5032  return 0;
5033}
5034_ACEOF
5035if ac_fn_c_try_compile "$LINENO"; then :
5036  ac_cv_safe_to_define___extensions__=yes
5037else
5038  ac_cv_safe_to_define___extensions__=no
5039fi
5040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5041fi
5042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5043$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5044  test $ac_cv_safe_to_define___extensions__ = yes &&
5045    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5046
5047  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5048
5049  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5050
5051  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5052
5053  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5054
5055
5056
5057
5058
5059case `pwd` in
5060  *\ * | *\	*)
5061    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5062$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5063esac
5064
5065
5066
5067macro_version='2.2.7a'
5068macro_revision='1.3134'
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082ltmain="$ac_aux_dir/ltmain.sh"
5083
5084# Backslashify metacharacters that are still active within
5085# double-quoted strings.
5086sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5087
5088# Same as above, but do not quote variable references.
5089double_quote_subst='s/\(["`\\]\)/\\\1/g'
5090
5091# Sed substitution to delay expansion of an escaped shell variable in a
5092# double_quote_subst'ed string.
5093delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5094
5095# Sed substitution to delay expansion of an escaped single quote.
5096delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5097
5098# Sed substitution to avoid accidental globbing in evaled expressions
5099no_glob_subst='s/\*/\\\*/g'
5100
5101ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5102ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5103ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5104
5105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5106$as_echo_n "checking how to print strings... " >&6; }
5107# Test print first, because it will be a builtin if present.
5108if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5109   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5110  ECHO='print -r --'
5111elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5112  ECHO='printf %s\n'
5113else
5114  # Use this function as a fallback that always works.
5115  func_fallback_echo ()
5116  {
5117    eval 'cat <<_LTECHO_EOF
5118$1
5119_LTECHO_EOF'
5120  }
5121  ECHO='func_fallback_echo'
5122fi
5123
5124# func_echo_all arg...
5125# Invoke $ECHO with all args, space-separated.
5126func_echo_all ()
5127{
5128    $ECHO ""
5129}
5130
5131case "$ECHO" in
5132  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5133$as_echo "printf" >&6; } ;;
5134  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5135$as_echo "print -r" >&6; } ;;
5136  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5137$as_echo "cat" >&6; } ;;
5138esac
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5154$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5155if ${ac_cv_path_SED+:} false; then :
5156  $as_echo_n "(cached) " >&6
5157else
5158            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5159     for ac_i in 1 2 3 4 5 6 7; do
5160       ac_script="$ac_script$as_nl$ac_script"
5161     done
5162     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5163     { ac_script=; unset ac_script;}
5164     if test -z "$SED"; then
5165  ac_path_SED_found=false
5166  # Loop through the user's path and test for each of PROGNAME-LIST
5167  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5168for as_dir in $PATH
5169do
5170  IFS=$as_save_IFS
5171  test -z "$as_dir" && as_dir=.
5172    for ac_prog in sed gsed; do
5173    for ac_exec_ext in '' $ac_executable_extensions; do
5174      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5175      as_fn_executable_p "$ac_path_SED" || continue
5176# Check for GNU ac_path_SED and select it if it is found.
5177  # Check for GNU $ac_path_SED
5178case `"$ac_path_SED" --version 2>&1` in
5179*GNU*)
5180  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5181*)
5182  ac_count=0
5183  $as_echo_n 0123456789 >"conftest.in"
5184  while :
5185  do
5186    cat "conftest.in" "conftest.in" >"conftest.tmp"
5187    mv "conftest.tmp" "conftest.in"
5188    cp "conftest.in" "conftest.nl"
5189    $as_echo '' >> "conftest.nl"
5190    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5191    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5192    as_fn_arith $ac_count + 1 && ac_count=$as_val
5193    if test $ac_count -gt ${ac_path_SED_max-0}; then
5194      # Best one so far, save it but keep looking for a better one
5195      ac_cv_path_SED="$ac_path_SED"
5196      ac_path_SED_max=$ac_count
5197    fi
5198    # 10*(2^10) chars as input seems more than enough
5199    test $ac_count -gt 10 && break
5200  done
5201  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5202esac
5203
5204      $ac_path_SED_found && break 3
5205    done
5206  done
5207  done
5208IFS=$as_save_IFS
5209  if test -z "$ac_cv_path_SED"; then
5210    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5211  fi
5212else
5213  ac_cv_path_SED=$SED
5214fi
5215
5216fi
5217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5218$as_echo "$ac_cv_path_SED" >&6; }
5219 SED="$ac_cv_path_SED"
5220  rm -f conftest.sed
5221
5222test -z "$SED" && SED=sed
5223Xsed="$SED -e 1s/^X//"
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5236$as_echo_n "checking for fgrep... " >&6; }
5237if ${ac_cv_path_FGREP+:} false; then :
5238  $as_echo_n "(cached) " >&6
5239else
5240  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5241   then ac_cv_path_FGREP="$GREP -F"
5242   else
5243     if test -z "$FGREP"; then
5244  ac_path_FGREP_found=false
5245  # Loop through the user's path and test for each of PROGNAME-LIST
5246  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5247for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5248do
5249  IFS=$as_save_IFS
5250  test -z "$as_dir" && as_dir=.
5251    for ac_prog in fgrep; do
5252    for ac_exec_ext in '' $ac_executable_extensions; do
5253      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5254      as_fn_executable_p "$ac_path_FGREP" || continue
5255# Check for GNU ac_path_FGREP and select it if it is found.
5256  # Check for GNU $ac_path_FGREP
5257case `"$ac_path_FGREP" --version 2>&1` in
5258*GNU*)
5259  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5260*)
5261  ac_count=0
5262  $as_echo_n 0123456789 >"conftest.in"
5263  while :
5264  do
5265    cat "conftest.in" "conftest.in" >"conftest.tmp"
5266    mv "conftest.tmp" "conftest.in"
5267    cp "conftest.in" "conftest.nl"
5268    $as_echo 'FGREP' >> "conftest.nl"
5269    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5270    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5271    as_fn_arith $ac_count + 1 && ac_count=$as_val
5272    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5273      # Best one so far, save it but keep looking for a better one
5274      ac_cv_path_FGREP="$ac_path_FGREP"
5275      ac_path_FGREP_max=$ac_count
5276    fi
5277    # 10*(2^10) chars as input seems more than enough
5278    test $ac_count -gt 10 && break
5279  done
5280  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5281esac
5282
5283      $ac_path_FGREP_found && break 3
5284    done
5285  done
5286  done
5287IFS=$as_save_IFS
5288  if test -z "$ac_cv_path_FGREP"; then
5289    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5290  fi
5291else
5292  ac_cv_path_FGREP=$FGREP
5293fi
5294
5295   fi
5296fi
5297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5298$as_echo "$ac_cv_path_FGREP" >&6; }
5299 FGREP="$ac_cv_path_FGREP"
5300
5301
5302test -z "$GREP" && GREP=grep
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322# Check whether --with-gnu-ld was given.
5323if test "${with_gnu_ld+set}" = set; then :
5324  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5325else
5326  with_gnu_ld=no
5327fi
5328
5329ac_prog=ld
5330if test "$GCC" = yes; then
5331  # Check if gcc -print-prog-name=ld gives a path.
5332  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5333$as_echo_n "checking for ld used by $CC... " >&6; }
5334  case $host in
5335  *-*-mingw*)
5336    # gcc leaves a trailing carriage return which upsets mingw
5337    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5338  *)
5339    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5340  esac
5341  case $ac_prog in
5342    # Accept absolute paths.
5343    [\\/]* | ?:[\\/]*)
5344      re_direlt='/[^/][^/]*/\.\./'
5345      # Canonicalize the pathname of ld
5346      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5347      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5348	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5349      done
5350      test -z "$LD" && LD="$ac_prog"
5351      ;;
5352  "")
5353    # If it fails, then pretend we aren't using GCC.
5354    ac_prog=ld
5355    ;;
5356  *)
5357    # If it is relative, then search for the first ld in PATH.
5358    with_gnu_ld=unknown
5359    ;;
5360  esac
5361elif test "$with_gnu_ld" = yes; then
5362  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5363$as_echo_n "checking for GNU ld... " >&6; }
5364else
5365  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5366$as_echo_n "checking for non-GNU ld... " >&6; }
5367fi
5368if ${lt_cv_path_LD+:} false; then :
5369  $as_echo_n "(cached) " >&6
5370else
5371  if test -z "$LD"; then
5372  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5373  for ac_dir in $PATH; do
5374    IFS="$lt_save_ifs"
5375    test -z "$ac_dir" && ac_dir=.
5376    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5377      lt_cv_path_LD="$ac_dir/$ac_prog"
5378      # Check to see if the program is GNU ld.  I'd rather use --version,
5379      # but apparently some variants of GNU ld only accept -v.
5380      # Break only if it was the GNU/non-GNU ld that we prefer.
5381      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5382      *GNU* | *'with BFD'*)
5383	test "$with_gnu_ld" != no && break
5384	;;
5385      *)
5386	test "$with_gnu_ld" != yes && break
5387	;;
5388      esac
5389    fi
5390  done
5391  IFS="$lt_save_ifs"
5392else
5393  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5394fi
5395fi
5396
5397LD="$lt_cv_path_LD"
5398if test -n "$LD"; then
5399  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5400$as_echo "$LD" >&6; }
5401else
5402  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5403$as_echo "no" >&6; }
5404fi
5405test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5407$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5408if ${lt_cv_prog_gnu_ld+:} false; then :
5409  $as_echo_n "(cached) " >&6
5410else
5411  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5412case `$LD -v 2>&1 </dev/null` in
5413*GNU* | *'with BFD'*)
5414  lt_cv_prog_gnu_ld=yes
5415  ;;
5416*)
5417  lt_cv_prog_gnu_ld=no
5418  ;;
5419esac
5420fi
5421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5422$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5423with_gnu_ld=$lt_cv_prog_gnu_ld
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5434$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5435if ${lt_cv_path_NM+:} false; then :
5436  $as_echo_n "(cached) " >&6
5437else
5438  if test -n "$NM"; then
5439   # Let the user override the nm to test.
5440   lt_nm_to_check="$NM"
5441 else
5442   lt_nm_to_check="${ac_tool_prefix}nm"
5443   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5444     lt_nm_to_check="$lt_nm_to_check nm"
5445   fi
5446 fi
5447 for lt_tmp_nm in "$lt_nm_to_check"; do
5448   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5449   for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5450     IFS="$lt_save_ifs"
5451     test -z "$ac_dir" && ac_dir=.
5452     # Strip out any user-provided options from the nm to test twice,
5453     # the first time to test to see if nm (rather than its options) has
5454     # an explicit path, the second time to yield a file which can be
5455     # nm'ed itself.
5456     tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
5457     case "$tmp_nm_path" in
5458     */*|*\\*) tmp_nm="$lt_tmp_nm";;
5459     *) tmp_nm="$ac_dir/$lt_tmp_nm";;
5460     esac
5461     tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
5462     if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then
5463       # Check to see if the nm accepts a BSD-compat flag.
5464       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5465       #   nm: unknown option "B" ignored
5466       case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
5467       *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B"
5468	 break
5469	 ;;
5470       *)
5471	 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
5472	 *$tmp_nm*)
5473	   lt_cv_path_NM="$tmp_nm -p"
5474	   break
5475	   ;;
5476	 *)
5477	   lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5478	   continue # so that we can try to find one that supports BSD flags
5479	   ;;
5480	 esac
5481	 ;;
5482       esac
5483     fi
5484   done
5485   IFS="$lt_save_ifs"
5486 done
5487 : ${lt_cv_path_NM=no}
5488fi
5489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5490$as_echo "$lt_cv_path_NM" >&6; }
5491if test "$lt_cv_path_NM" != "no"; then
5492  NM="$lt_cv_path_NM"
5493else
5494  # Didn't find any BSD compatible name lister, look for dumpbin.
5495  if test -n "$DUMPBIN"; then :
5496    # Let the user override the test.
5497  else
5498    if test -n "$ac_tool_prefix"; then
5499  for ac_prog in dumpbin "link -dump"
5500  do
5501    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5502set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5504$as_echo_n "checking for $ac_word... " >&6; }
5505if ${ac_cv_prog_DUMPBIN+:} false; then :
5506  $as_echo_n "(cached) " >&6
5507else
5508  if test -n "$DUMPBIN"; then
5509  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5510else
5511as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5512for as_dir in $PATH
5513do
5514  IFS=$as_save_IFS
5515  test -z "$as_dir" && as_dir=.
5516    for ac_exec_ext in '' $ac_executable_extensions; do
5517  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5518    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5519    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5520    break 2
5521  fi
5522done
5523  done
5524IFS=$as_save_IFS
5525
5526fi
5527fi
5528DUMPBIN=$ac_cv_prog_DUMPBIN
5529if test -n "$DUMPBIN"; then
5530  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5531$as_echo "$DUMPBIN" >&6; }
5532else
5533  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5534$as_echo "no" >&6; }
5535fi
5536
5537
5538    test -n "$DUMPBIN" && break
5539  done
5540fi
5541if test -z "$DUMPBIN"; then
5542  ac_ct_DUMPBIN=$DUMPBIN
5543  for ac_prog in dumpbin "link -dump"
5544do
5545  # Extract the first word of "$ac_prog", so it can be a program name with args.
5546set dummy $ac_prog; ac_word=$2
5547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5548$as_echo_n "checking for $ac_word... " >&6; }
5549if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5550  $as_echo_n "(cached) " >&6
5551else
5552  if test -n "$ac_ct_DUMPBIN"; then
5553  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5554else
5555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5556for as_dir in $PATH
5557do
5558  IFS=$as_save_IFS
5559  test -z "$as_dir" && as_dir=.
5560    for ac_exec_ext in '' $ac_executable_extensions; do
5561  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5562    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5563    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5564    break 2
5565  fi
5566done
5567  done
5568IFS=$as_save_IFS
5569
5570fi
5571fi
5572ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5573if test -n "$ac_ct_DUMPBIN"; then
5574  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5575$as_echo "$ac_ct_DUMPBIN" >&6; }
5576else
5577  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5578$as_echo "no" >&6; }
5579fi
5580
5581
5582  test -n "$ac_ct_DUMPBIN" && break
5583done
5584
5585  if test "x$ac_ct_DUMPBIN" = x; then
5586    DUMPBIN=":"
5587  else
5588    case $cross_compiling:$ac_tool_warned in
5589yes:)
5590{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5591$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5592ac_tool_warned=yes ;;
5593esac
5594    DUMPBIN=$ac_ct_DUMPBIN
5595  fi
5596fi
5597
5598    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5599    *COFF*)
5600      DUMPBIN="$DUMPBIN -symbols"
5601      ;;
5602    *)
5603      DUMPBIN=:
5604      ;;
5605    esac
5606  fi
5607
5608  if test "$DUMPBIN" != ":"; then
5609    NM="$DUMPBIN"
5610  fi
5611fi
5612test -z "$NM" && NM=nm
5613
5614
5615
5616
5617
5618
5619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5620$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5621if ${lt_cv_nm_interface+:} false; then :
5622  $as_echo_n "(cached) " >&6
5623else
5624  lt_cv_nm_interface="BSD nm"
5625  echo "int some_variable = 0;" > conftest.$ac_ext
5626  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5627  (eval "$ac_compile" 2>conftest.err)
5628  cat conftest.err >&5
5629  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5630  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5631  cat conftest.err >&5
5632  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5633  cat conftest.out >&5
5634  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5635    lt_cv_nm_interface="MS dumpbin"
5636  fi
5637  rm -f conftest*
5638fi
5639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5640$as_echo "$lt_cv_nm_interface" >&6; }
5641
5642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5643$as_echo_n "checking whether ln -s works... " >&6; }
5644LN_S=$as_ln_s
5645if test "$LN_S" = "ln -s"; then
5646  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5647$as_echo "yes" >&6; }
5648else
5649  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5650$as_echo "no, using $LN_S" >&6; }
5651fi
5652
5653# find the maximum length of command line arguments
5654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5655$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5656if ${lt_cv_sys_max_cmd_len+:} false; then :
5657  $as_echo_n "(cached) " >&6
5658else
5659    i=0
5660  teststring="ABCD"
5661
5662  case $build_os in
5663  msdosdjgpp*)
5664    # On DJGPP, this test can blow up pretty badly due to problems in libc
5665    # (any single argument exceeding 2000 bytes causes a buffer overrun
5666    # during glob expansion).  Even if it were fixed, the result of this
5667    # check would be larger than it should be.
5668    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5669    ;;
5670
5671  gnu*)
5672    # Under GNU Hurd, this test is not required because there is
5673    # no limit to the length of command line arguments.
5674    # Libtool will interpret -1 as no limit whatsoever
5675    lt_cv_sys_max_cmd_len=-1;
5676    ;;
5677
5678  cygwin* | mingw* | cegcc*)
5679    # On Win9x/ME, this test blows up -- it succeeds, but takes
5680    # about 5 minutes as the teststring grows exponentially.
5681    # Worse, since 9x/ME are not pre-emptively multitasking,
5682    # you end up with a "frozen" computer, even though with patience
5683    # the test eventually succeeds (with a max line length of 256k).
5684    # Instead, let's just punt: use the minimum linelength reported by
5685    # all of the supported platforms: 8192 (on NT/2K/XP).
5686    lt_cv_sys_max_cmd_len=8192;
5687    ;;
5688
5689  mint*)
5690    # On MiNT this can take a long time and run out of memory.
5691    lt_cv_sys_max_cmd_len=8192;
5692    ;;
5693
5694  amigaos*)
5695    # On AmigaOS with pdksh, this test takes hours, literally.
5696    # So we just punt and use a minimum line length of 8192.
5697    lt_cv_sys_max_cmd_len=8192;
5698    ;;
5699
5700  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5701    # This has been around since 386BSD, at least.  Likely further.
5702    if test -x /sbin/sysctl; then
5703      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5704    elif test -x /usr/sbin/sysctl; then
5705      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5706    else
5707      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5708    fi
5709    # And add a safety zone
5710    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5711    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5712    ;;
5713
5714  interix*)
5715    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5716    lt_cv_sys_max_cmd_len=196608
5717    ;;
5718
5719  osf*)
5720    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5721    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5722    # nice to cause kernel panics so lets avoid the loop below.
5723    # First set a reasonable default.
5724    lt_cv_sys_max_cmd_len=16384
5725    #
5726    if test -x /sbin/sysconfig; then
5727      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5728        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5729      esac
5730    fi
5731    ;;
5732  sco3.2v5*)
5733    lt_cv_sys_max_cmd_len=102400
5734    ;;
5735  sysv5* | sco5v6* | sysv4.2uw2*)
5736    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5737    if test -n "$kargmax"; then
5738      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5739    else
5740      lt_cv_sys_max_cmd_len=32768
5741    fi
5742    ;;
5743  *)
5744    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5745    if test -n "$lt_cv_sys_max_cmd_len"; then
5746      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5747      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5748    else
5749      # Make teststring a little bigger before we do anything with it.
5750      # a 1K string should be a reasonable start.
5751      for i in 1 2 3 4 5 6 7 8 ; do
5752        teststring=$teststring$teststring
5753      done
5754      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5755      # If test is not a shell built-in, we'll probably end up computing a
5756      # maximum length that is only half of the actual maximum length, but
5757      # we can't tell.
5758      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5759	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5760	      test $i != 17 # 1/2 MB should be enough
5761      do
5762        i=`expr $i + 1`
5763        teststring=$teststring$teststring
5764      done
5765      # Only check the string length outside the loop.
5766      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5767      teststring=
5768      # Add a significant safety factor because C++ compilers can tack on
5769      # massive amounts of additional arguments before passing them to the
5770      # linker.  It appears as though 1/2 is a usable value.
5771      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5772    fi
5773    ;;
5774  esac
5775
5776fi
5777
5778if test -n $lt_cv_sys_max_cmd_len ; then
5779  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5780$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5781else
5782  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5783$as_echo "none" >&6; }
5784fi
5785max_cmd_len=$lt_cv_sys_max_cmd_len
5786
5787
5788
5789
5790
5791
5792: ${CP="cp -f"}
5793: ${MV="mv -f"}
5794: ${RM="rm -f"}
5795
5796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5797$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5798# Try some XSI features
5799xsi_shell=no
5800( _lt_dummy="a/b/c"
5801  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5802      = c,a/b,, \
5803    && eval 'test $(( 1 + 1 )) -eq 2 \
5804    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5805  && xsi_shell=yes
5806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5807$as_echo "$xsi_shell" >&6; }
5808
5809
5810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5811$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5812lt_shell_append=no
5813( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5814    >/dev/null 2>&1 \
5815  && lt_shell_append=yes
5816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5817$as_echo "$lt_shell_append" >&6; }
5818
5819
5820if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5821  lt_unset=unset
5822else
5823  lt_unset=false
5824fi
5825
5826
5827
5828
5829
5830# test EBCDIC or ASCII
5831case `echo X|tr X '\101'` in
5832 A) # ASCII based system
5833    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5834  lt_SP2NL='tr \040 \012'
5835  lt_NL2SP='tr \015\012 \040\040'
5836  ;;
5837 *) # EBCDIC based system
5838  lt_SP2NL='tr \100 \n'
5839  lt_NL2SP='tr \r\n \100\100'
5840  ;;
5841esac
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5852$as_echo_n "checking for $LD option to reload object files... " >&6; }
5853if ${lt_cv_ld_reload_flag+:} false; then :
5854  $as_echo_n "(cached) " >&6
5855else
5856  lt_cv_ld_reload_flag='-r'
5857fi
5858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5859$as_echo "$lt_cv_ld_reload_flag" >&6; }
5860reload_flag=$lt_cv_ld_reload_flag
5861case $reload_flag in
5862"" | " "*) ;;
5863*) reload_flag=" $reload_flag" ;;
5864esac
5865reload_cmds='$LD$reload_flag -o $output$reload_objs'
5866case $host_os in
5867  darwin*)
5868    if test "$GCC" = yes; then
5869      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5870    else
5871      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5872    fi
5873    ;;
5874esac
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884if test -n "$ac_tool_prefix"; then
5885  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5886set dummy ${ac_tool_prefix}objdump; ac_word=$2
5887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5888$as_echo_n "checking for $ac_word... " >&6; }
5889if ${ac_cv_prog_OBJDUMP+:} false; then :
5890  $as_echo_n "(cached) " >&6
5891else
5892  if test -n "$OBJDUMP"; then
5893  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5894else
5895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5896for as_dir in $PATH
5897do
5898  IFS=$as_save_IFS
5899  test -z "$as_dir" && as_dir=.
5900    for ac_exec_ext in '' $ac_executable_extensions; do
5901  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5902    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5903    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5904    break 2
5905  fi
5906done
5907  done
5908IFS=$as_save_IFS
5909
5910fi
5911fi
5912OBJDUMP=$ac_cv_prog_OBJDUMP
5913if test -n "$OBJDUMP"; then
5914  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5915$as_echo "$OBJDUMP" >&6; }
5916else
5917  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5918$as_echo "no" >&6; }
5919fi
5920
5921
5922fi
5923if test -z "$ac_cv_prog_OBJDUMP"; then
5924  ac_ct_OBJDUMP=$OBJDUMP
5925  # Extract the first word of "objdump", so it can be a program name with args.
5926set dummy objdump; ac_word=$2
5927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5928$as_echo_n "checking for $ac_word... " >&6; }
5929if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5930  $as_echo_n "(cached) " >&6
5931else
5932  if test -n "$ac_ct_OBJDUMP"; then
5933  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5934else
5935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5936for as_dir in $PATH
5937do
5938  IFS=$as_save_IFS
5939  test -z "$as_dir" && as_dir=.
5940    for ac_exec_ext in '' $ac_executable_extensions; do
5941  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5942    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5943    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5944    break 2
5945  fi
5946done
5947  done
5948IFS=$as_save_IFS
5949
5950fi
5951fi
5952ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5953if test -n "$ac_ct_OBJDUMP"; then
5954  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5955$as_echo "$ac_ct_OBJDUMP" >&6; }
5956else
5957  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5958$as_echo "no" >&6; }
5959fi
5960
5961  if test "x$ac_ct_OBJDUMP" = x; then
5962    OBJDUMP="false"
5963  else
5964    case $cross_compiling:$ac_tool_warned in
5965yes:)
5966{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5967$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5968ac_tool_warned=yes ;;
5969esac
5970    OBJDUMP=$ac_ct_OBJDUMP
5971  fi
5972else
5973  OBJDUMP="$ac_cv_prog_OBJDUMP"
5974fi
5975
5976test -z "$OBJDUMP" && OBJDUMP=objdump
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5987$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5988if ${lt_cv_deplibs_check_method+:} false; then :
5989  $as_echo_n "(cached) " >&6
5990else
5991  lt_cv_file_magic_cmd='$MAGIC_CMD'
5992lt_cv_file_magic_test_file=
5993lt_cv_deplibs_check_method='unknown'
5994# Need to set the preceding variable on all platforms that support
5995# interlibrary dependencies.
5996# 'none' -- dependencies not supported.
5997# `unknown' -- same as none, but documents that we really don't know.
5998# 'pass_all' -- all dependencies passed with no checks.
5999# 'test_compile' -- check by making test program.
6000# 'file_magic [[regex]]' -- check by looking for files in library path
6001# which responds to the $file_magic_cmd with a given extended regex.
6002# If you have `file' or equivalent on your system and you're not sure
6003# whether `pass_all' will *always* work, you probably want this one.
6004
6005case $host_os in
6006aix[4-9]*)
6007  lt_cv_deplibs_check_method=pass_all
6008  ;;
6009
6010beos*)
6011  lt_cv_deplibs_check_method=pass_all
6012  ;;
6013
6014bsdi[45]*)
6015  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6016  lt_cv_file_magic_cmd='/usr/bin/file -L'
6017  lt_cv_file_magic_test_file=/shlib/libc.so
6018  ;;
6019
6020cygwin*)
6021  # func_win32_libid is a shell function defined in ltmain.sh
6022  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6023  lt_cv_file_magic_cmd='func_win32_libid'
6024  ;;
6025
6026mingw* | pw32*)
6027  # Base MSYS/MinGW do not provide the 'file' command needed by
6028  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6029  # unless we find 'file', for example because we are cross-compiling.
6030  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6031  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6032    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6033    lt_cv_file_magic_cmd='func_win32_libid'
6034  else
6035    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6036    lt_cv_file_magic_cmd='$OBJDUMP -f'
6037  fi
6038  ;;
6039
6040cegcc*)
6041  # use the weaker test based on 'objdump'. See mingw*.
6042  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6043  lt_cv_file_magic_cmd='$OBJDUMP -f'
6044  ;;
6045
6046darwin* | rhapsody*)
6047  lt_cv_deplibs_check_method=pass_all
6048  ;;
6049
6050freebsd* | dragonfly*)
6051  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6052    case $host_cpu in
6053    i*86 )
6054      # Not sure whether the presence of OpenBSD here was a mistake.
6055      # Let's accept both of them until this is cleared up.
6056      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6057      lt_cv_file_magic_cmd=/usr/bin/file
6058      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6059      ;;
6060    esac
6061  else
6062    lt_cv_deplibs_check_method=pass_all
6063  fi
6064  ;;
6065
6066gnu*)
6067  lt_cv_deplibs_check_method=pass_all
6068  ;;
6069
6070haiku*)
6071  lt_cv_deplibs_check_method=pass_all
6072  ;;
6073
6074hpux10.20* | hpux11*)
6075  lt_cv_file_magic_cmd=/usr/bin/file
6076  case $host_cpu in
6077  ia64*)
6078    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6079    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6080    ;;
6081  hppa*64*)
6082    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]'
6083    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6084    ;;
6085  *)
6086    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6087    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6088    ;;
6089  esac
6090  ;;
6091
6092interix[3-9]*)
6093  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6094  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6095  ;;
6096
6097irix5* | irix6* | nonstopux*)
6098  case $LD in
6099  *-32|*"-32 ") libmagic=32-bit;;
6100  *-n32|*"-n32 ") libmagic=N32;;
6101  *-64|*"-64 ") libmagic=64-bit;;
6102  *) libmagic=never-match;;
6103  esac
6104  lt_cv_deplibs_check_method=pass_all
6105  ;;
6106
6107# This must be Linux ELF.
6108linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
6109  lt_cv_deplibs_check_method=pass_all
6110  ;;
6111
6112netbsd*)
6113  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6114    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6115  else
6116    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6117  fi
6118  ;;
6119
6120newos6*)
6121  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6122  lt_cv_file_magic_cmd=/usr/bin/file
6123  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6124  ;;
6125
6126*nto* | *qnx*)
6127  lt_cv_deplibs_check_method=pass_all
6128  ;;
6129
6130openbsd*)
6131  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6132    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6133  else
6134    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6135  fi
6136  ;;
6137
6138osf3* | osf4* | osf5*)
6139  lt_cv_deplibs_check_method=pass_all
6140  ;;
6141
6142rdos*)
6143  lt_cv_deplibs_check_method=pass_all
6144  ;;
6145
6146solaris*)
6147  lt_cv_deplibs_check_method=pass_all
6148  ;;
6149
6150sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6151  lt_cv_deplibs_check_method=pass_all
6152  ;;
6153
6154sysv4 | sysv4.3*)
6155  case $host_vendor in
6156  motorola)
6157    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]'
6158    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6159    ;;
6160  ncr)
6161    lt_cv_deplibs_check_method=pass_all
6162    ;;
6163  sequent)
6164    lt_cv_file_magic_cmd='/bin/file'
6165    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6166    ;;
6167  sni)
6168    lt_cv_file_magic_cmd='/bin/file'
6169    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6170    lt_cv_file_magic_test_file=/lib/libc.so
6171    ;;
6172  siemens)
6173    lt_cv_deplibs_check_method=pass_all
6174    ;;
6175  pc)
6176    lt_cv_deplibs_check_method=pass_all
6177    ;;
6178  esac
6179  ;;
6180
6181tpf*)
6182  lt_cv_deplibs_check_method=pass_all
6183  ;;
6184vxworks*)
6185  # Assume VxWorks cross toolchains are built on Linux, possibly
6186  # as canadian for Windows hosts.
6187  lt_cv_deplibs_check_method=pass_all
6188  ;;
6189esac
6190
6191fi
6192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6193$as_echo "$lt_cv_deplibs_check_method" >&6; }
6194file_magic_cmd=$lt_cv_file_magic_cmd
6195deplibs_check_method=$lt_cv_deplibs_check_method
6196test -z "$deplibs_check_method" && deplibs_check_method=unknown
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209plugin_option=
6210plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
6211for plugin in $plugin_names; do
6212  plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
6213  if test x$plugin_so = x$plugin; then
6214    plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
6215  fi
6216  if test x$plugin_so != x$plugin; then
6217    plugin_option="--plugin $plugin_so"
6218    break
6219  fi
6220done
6221
6222if test -n "$ac_tool_prefix"; then
6223  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6224set dummy ${ac_tool_prefix}ar; ac_word=$2
6225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6226$as_echo_n "checking for $ac_word... " >&6; }
6227if ${ac_cv_prog_AR+:} false; then :
6228  $as_echo_n "(cached) " >&6
6229else
6230  if test -n "$AR"; then
6231  ac_cv_prog_AR="$AR" # Let the user override the test.
6232else
6233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6234for as_dir in $PATH
6235do
6236  IFS=$as_save_IFS
6237  test -z "$as_dir" && as_dir=.
6238    for ac_exec_ext in '' $ac_executable_extensions; do
6239  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6240    ac_cv_prog_AR="${ac_tool_prefix}ar"
6241    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6242    break 2
6243  fi
6244done
6245  done
6246IFS=$as_save_IFS
6247
6248fi
6249fi
6250AR=$ac_cv_prog_AR
6251if test -n "$AR"; then
6252  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6253$as_echo "$AR" >&6; }
6254else
6255  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6256$as_echo "no" >&6; }
6257fi
6258
6259
6260fi
6261if test -z "$ac_cv_prog_AR"; then
6262  ac_ct_AR=$AR
6263  # Extract the first word of "ar", so it can be a program name with args.
6264set dummy ar; ac_word=$2
6265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6266$as_echo_n "checking for $ac_word... " >&6; }
6267if ${ac_cv_prog_ac_ct_AR+:} false; then :
6268  $as_echo_n "(cached) " >&6
6269else
6270  if test -n "$ac_ct_AR"; then
6271  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6272else
6273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6274for as_dir in $PATH
6275do
6276  IFS=$as_save_IFS
6277  test -z "$as_dir" && as_dir=.
6278    for ac_exec_ext in '' $ac_executable_extensions; do
6279  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6280    ac_cv_prog_ac_ct_AR="ar"
6281    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6282    break 2
6283  fi
6284done
6285  done
6286IFS=$as_save_IFS
6287
6288fi
6289fi
6290ac_ct_AR=$ac_cv_prog_ac_ct_AR
6291if test -n "$ac_ct_AR"; then
6292  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6293$as_echo "$ac_ct_AR" >&6; }
6294else
6295  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6296$as_echo "no" >&6; }
6297fi
6298
6299  if test "x$ac_ct_AR" = x; then
6300    AR="false"
6301  else
6302    case $cross_compiling:$ac_tool_warned in
6303yes:)
6304{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6305$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6306ac_tool_warned=yes ;;
6307esac
6308    AR=$ac_ct_AR
6309  fi
6310else
6311  AR="$ac_cv_prog_AR"
6312fi
6313
6314test -z "$AR" && AR=ar
6315if test -n "$plugin_option"; then
6316  if $AR --help 2>&1 | grep -q "\--plugin"; then
6317    touch conftest.c
6318    $AR $plugin_option rc conftest.a conftest.c
6319    if test "$?" != 0; then
6320      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
6321$as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
6322    else
6323      AR="$AR $plugin_option"
6324    fi
6325    rm -f conftest.*
6326  fi
6327fi
6328test -z "$AR_FLAGS" && AR_FLAGS=cru
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340if test -n "$ac_tool_prefix"; then
6341  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6342set dummy ${ac_tool_prefix}strip; ac_word=$2
6343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6344$as_echo_n "checking for $ac_word... " >&6; }
6345if ${ac_cv_prog_STRIP+:} false; then :
6346  $as_echo_n "(cached) " >&6
6347else
6348  if test -n "$STRIP"; then
6349  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6350else
6351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6352for as_dir in $PATH
6353do
6354  IFS=$as_save_IFS
6355  test -z "$as_dir" && as_dir=.
6356    for ac_exec_ext in '' $ac_executable_extensions; do
6357  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6358    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6359    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6360    break 2
6361  fi
6362done
6363  done
6364IFS=$as_save_IFS
6365
6366fi
6367fi
6368STRIP=$ac_cv_prog_STRIP
6369if test -n "$STRIP"; then
6370  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6371$as_echo "$STRIP" >&6; }
6372else
6373  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6374$as_echo "no" >&6; }
6375fi
6376
6377
6378fi
6379if test -z "$ac_cv_prog_STRIP"; then
6380  ac_ct_STRIP=$STRIP
6381  # Extract the first word of "strip", so it can be a program name with args.
6382set dummy strip; ac_word=$2
6383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6384$as_echo_n "checking for $ac_word... " >&6; }
6385if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6386  $as_echo_n "(cached) " >&6
6387else
6388  if test -n "$ac_ct_STRIP"; then
6389  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6390else
6391as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6392for as_dir in $PATH
6393do
6394  IFS=$as_save_IFS
6395  test -z "$as_dir" && as_dir=.
6396    for ac_exec_ext in '' $ac_executable_extensions; do
6397  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6398    ac_cv_prog_ac_ct_STRIP="strip"
6399    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6400    break 2
6401  fi
6402done
6403  done
6404IFS=$as_save_IFS
6405
6406fi
6407fi
6408ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6409if test -n "$ac_ct_STRIP"; then
6410  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6411$as_echo "$ac_ct_STRIP" >&6; }
6412else
6413  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6414$as_echo "no" >&6; }
6415fi
6416
6417  if test "x$ac_ct_STRIP" = x; then
6418    STRIP=":"
6419  else
6420    case $cross_compiling:$ac_tool_warned in
6421yes:)
6422{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6423$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6424ac_tool_warned=yes ;;
6425esac
6426    STRIP=$ac_ct_STRIP
6427  fi
6428else
6429  STRIP="$ac_cv_prog_STRIP"
6430fi
6431
6432test -z "$STRIP" && STRIP=:
6433
6434
6435
6436
6437
6438
6439if test -n "$ac_tool_prefix"; then
6440  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6441set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6443$as_echo_n "checking for $ac_word... " >&6; }
6444if ${ac_cv_prog_RANLIB+:} false; then :
6445  $as_echo_n "(cached) " >&6
6446else
6447  if test -n "$RANLIB"; then
6448  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6449else
6450as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6451for as_dir in $PATH
6452do
6453  IFS=$as_save_IFS
6454  test -z "$as_dir" && as_dir=.
6455    for ac_exec_ext in '' $ac_executable_extensions; do
6456  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6457    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6458    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6459    break 2
6460  fi
6461done
6462  done
6463IFS=$as_save_IFS
6464
6465fi
6466fi
6467RANLIB=$ac_cv_prog_RANLIB
6468if test -n "$RANLIB"; then
6469  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6470$as_echo "$RANLIB" >&6; }
6471else
6472  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6473$as_echo "no" >&6; }
6474fi
6475
6476
6477fi
6478if test -z "$ac_cv_prog_RANLIB"; then
6479  ac_ct_RANLIB=$RANLIB
6480  # Extract the first word of "ranlib", so it can be a program name with args.
6481set dummy ranlib; ac_word=$2
6482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6483$as_echo_n "checking for $ac_word... " >&6; }
6484if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6485  $as_echo_n "(cached) " >&6
6486else
6487  if test -n "$ac_ct_RANLIB"; then
6488  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6489else
6490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6491for as_dir in $PATH
6492do
6493  IFS=$as_save_IFS
6494  test -z "$as_dir" && as_dir=.
6495    for ac_exec_ext in '' $ac_executable_extensions; do
6496  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6497    ac_cv_prog_ac_ct_RANLIB="ranlib"
6498    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6499    break 2
6500  fi
6501done
6502  done
6503IFS=$as_save_IFS
6504
6505fi
6506fi
6507ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6508if test -n "$ac_ct_RANLIB"; then
6509  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6510$as_echo "$ac_ct_RANLIB" >&6; }
6511else
6512  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6513$as_echo "no" >&6; }
6514fi
6515
6516  if test "x$ac_ct_RANLIB" = x; then
6517    RANLIB=":"
6518  else
6519    case $cross_compiling:$ac_tool_warned in
6520yes:)
6521{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6522$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6523ac_tool_warned=yes ;;
6524esac
6525    RANLIB=$ac_ct_RANLIB
6526  fi
6527else
6528  RANLIB="$ac_cv_prog_RANLIB"
6529fi
6530
6531test -z "$RANLIB" && RANLIB=:
6532if test -n "$plugin_option" && test "$RANLIB" != ":"; then
6533  if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
6534    RANLIB="$RANLIB $plugin_option"
6535  fi
6536fi
6537
6538
6539
6540
6541
6542
6543# Determine commands to create old-style static archives.
6544old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6545old_postinstall_cmds='chmod 644 $oldlib'
6546old_postuninstall_cmds=
6547
6548if test -n "$RANLIB"; then
6549  case $host_os in
6550  openbsd*)
6551    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6552    ;;
6553  *)
6554    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6555    ;;
6556  esac
6557  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6558fi
6559
6560case $host_os in
6561  darwin*)
6562    lock_old_archive_extraction=yes ;;
6563  *)
6564    lock_old_archive_extraction=no ;;
6565esac
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605# If no C compiler was specified, use CC.
6606LTCC=${LTCC-"$CC"}
6607
6608# If no C compiler flags were specified, use CFLAGS.
6609LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6610
6611# Allow CC to be a program name with arguments.
6612compiler=$CC
6613
6614
6615# Check for command to grab the raw symbol name followed by C symbol from nm.
6616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6617$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6618if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6619  $as_echo_n "(cached) " >&6
6620else
6621
6622# These are sane defaults that work on at least a few old systems.
6623# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6624
6625# Character class describing NM global symbol codes.
6626symcode='[BCDEGRST]'
6627
6628# Regexp to match symbols that can be accessed directly from C.
6629sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6630
6631# Define system-specific variables.
6632case $host_os in
6633aix*)
6634  symcode='[BCDT]'
6635  ;;
6636cygwin* | mingw* | pw32* | cegcc*)
6637  symcode='[ABCDGISTW]'
6638  ;;
6639hpux*)
6640  if test "$host_cpu" = ia64; then
6641    symcode='[ABCDEGRST]'
6642  fi
6643  ;;
6644irix* | nonstopux*)
6645  symcode='[BCDEGRST]'
6646  ;;
6647osf*)
6648  symcode='[BCDEGQRST]'
6649  ;;
6650solaris*)
6651  symcode='[BCDRT]'
6652  ;;
6653sco3.2v5*)
6654  symcode='[DT]'
6655  ;;
6656sysv4.2uw2*)
6657  symcode='[DT]'
6658  ;;
6659sysv5* | sco5v6* | unixware* | OpenUNIX*)
6660  symcode='[ABDT]'
6661  ;;
6662sysv4)
6663  symcode='[DFNSTU]'
6664  ;;
6665esac
6666
6667# If we're using GNU nm, then use its standard symbol codes.
6668case `$NM -V 2>&1` in
6669*GNU* | *'with BFD'*)
6670  symcode='[ABCDGIRSTW]' ;;
6671esac
6672
6673# Transform an extracted symbol line into a proper C declaration.
6674# Some systems (esp. on ia64) link data and code symbols differently,
6675# so use this general approach.
6676lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6677
6678# Transform an extracted symbol line into symbol name and symbol address
6679lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6680lt_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'"
6681
6682# Handle CRLF in mingw tool chain
6683opt_cr=
6684case $build_os in
6685mingw*)
6686  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6687  ;;
6688esac
6689
6690# Try without a prefix underscore, then with it.
6691for ac_symprfx in "" "_"; do
6692
6693  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6694  symxfrm="\\1 $ac_symprfx\\2 \\2"
6695
6696  # Write the raw and C identifiers.
6697  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6698    # Fake it for dumpbin and say T for any non-static function
6699    # and D for any global variable.
6700    # Also find C++ and __fastcall symbols from MSVC++,
6701    # which start with @ or ?.
6702    lt_cv_sys_global_symbol_pipe="$AWK '"\
6703"     {last_section=section; section=\$ 3};"\
6704"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6705"     \$ 0!~/External *\|/{next};"\
6706"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6707"     {if(hide[section]) next};"\
6708"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6709"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6710"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6711"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6712"     ' prfx=^$ac_symprfx"
6713  else
6714    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6715  fi
6716
6717  # Check to see that the pipe works correctly.
6718  pipe_works=no
6719
6720  rm -f conftest*
6721  cat > conftest.$ac_ext <<_LT_EOF
6722#ifdef __cplusplus
6723extern "C" {
6724#endif
6725char nm_test_var;
6726void nm_test_func(void);
6727void nm_test_func(void){}
6728#ifdef __cplusplus
6729}
6730#endif
6731int main(){nm_test_var='a';nm_test_func();return(0);}
6732_LT_EOF
6733
6734  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6735  (eval $ac_compile) 2>&5
6736  ac_status=$?
6737  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6738  test $ac_status = 0; }; then
6739    # Now try to grab the symbols.
6740    nlist=conftest.nm
6741    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6742  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6743  ac_status=$?
6744  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6745  test $ac_status = 0; } && test -s "$nlist"; then
6746      # Try sorting and uniquifying the output.
6747      if sort "$nlist" | uniq > "$nlist"T; then
6748	mv -f "$nlist"T "$nlist"
6749      else
6750	rm -f "$nlist"T
6751      fi
6752
6753      # Make sure that we snagged all the symbols we need.
6754      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6755	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6756	  cat <<_LT_EOF > conftest.$ac_ext
6757#ifdef __cplusplus
6758extern "C" {
6759#endif
6760
6761_LT_EOF
6762	  # Now generate the symbol file.
6763	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6764
6765	  cat <<_LT_EOF >> conftest.$ac_ext
6766
6767/* The mapping between symbol names and symbols.  */
6768const struct {
6769  const char *name;
6770  void       *address;
6771}
6772lt__PROGRAM__LTX_preloaded_symbols[] =
6773{
6774  { "@PROGRAM@", (void *) 0 },
6775_LT_EOF
6776	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6777	  cat <<\_LT_EOF >> conftest.$ac_ext
6778  {0, (void *) 0}
6779};
6780
6781/* This works around a problem in FreeBSD linker */
6782#ifdef FREEBSD_WORKAROUND
6783static const void *lt_preloaded_setup() {
6784  return lt__PROGRAM__LTX_preloaded_symbols;
6785}
6786#endif
6787
6788#ifdef __cplusplus
6789}
6790#endif
6791_LT_EOF
6792	  # Now try linking the two files.
6793	  mv conftest.$ac_objext conftstm.$ac_objext
6794	  lt_save_LIBS="$LIBS"
6795	  lt_save_CFLAGS="$CFLAGS"
6796	  LIBS="conftstm.$ac_objext"
6797	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6798	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6799  (eval $ac_link) 2>&5
6800  ac_status=$?
6801  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6802  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6803	    pipe_works=yes
6804	  fi
6805	  LIBS="$lt_save_LIBS"
6806	  CFLAGS="$lt_save_CFLAGS"
6807	else
6808	  echo "cannot find nm_test_func in $nlist" >&5
6809	fi
6810      else
6811	echo "cannot find nm_test_var in $nlist" >&5
6812      fi
6813    else
6814      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6815    fi
6816  else
6817    echo "$progname: failed program was:" >&5
6818    cat conftest.$ac_ext >&5
6819  fi
6820  rm -rf conftest* conftst*
6821
6822  # Do not use the global_symbol_pipe unless it works.
6823  if test "$pipe_works" = yes; then
6824    break
6825  else
6826    lt_cv_sys_global_symbol_pipe=
6827  fi
6828done
6829
6830fi
6831
6832if test -z "$lt_cv_sys_global_symbol_pipe"; then
6833  lt_cv_sys_global_symbol_to_cdecl=
6834fi
6835if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6836  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6837$as_echo "failed" >&6; }
6838else
6839  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6840$as_echo "ok" >&6; }
6841fi
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864# Check whether --enable-libtool-lock was given.
6865if test "${enable_libtool_lock+set}" = set; then :
6866  enableval=$enable_libtool_lock;
6867fi
6868
6869test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6870
6871# Some flags need to be propagated to the compiler or linker for good
6872# libtool support.
6873case $host in
6874ia64-*-hpux*)
6875  # Find out which ABI we are using.
6876  echo 'int i;' > conftest.$ac_ext
6877  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6878  (eval $ac_compile) 2>&5
6879  ac_status=$?
6880  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6881  test $ac_status = 0; }; then
6882    case `/usr/bin/file conftest.$ac_objext` in
6883      *ELF-32*)
6884	HPUX_IA64_MODE="32"
6885	;;
6886      *ELF-64*)
6887	HPUX_IA64_MODE="64"
6888	;;
6889    esac
6890  fi
6891  rm -rf conftest*
6892  ;;
6893*-*-irix6*)
6894  # Find out which ABI we are using.
6895  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6896  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6897  (eval $ac_compile) 2>&5
6898  ac_status=$?
6899  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6900  test $ac_status = 0; }; then
6901    if test "$lt_cv_prog_gnu_ld" = yes; then
6902      case `/usr/bin/file conftest.$ac_objext` in
6903	*32-bit*)
6904	  LD="${LD-ld} -melf32bsmip"
6905	  ;;
6906	*N32*)
6907	  LD="${LD-ld} -melf32bmipn32"
6908	  ;;
6909	*64-bit*)
6910	  LD="${LD-ld} -melf64bmip"
6911	;;
6912      esac
6913    else
6914      case `/usr/bin/file conftest.$ac_objext` in
6915	*32-bit*)
6916	  LD="${LD-ld} -32"
6917	  ;;
6918	*N32*)
6919	  LD="${LD-ld} -n32"
6920	  ;;
6921	*64-bit*)
6922	  LD="${LD-ld} -64"
6923	  ;;
6924      esac
6925    fi
6926  fi
6927  rm -rf conftest*
6928  ;;
6929
6930x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6931s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6932  # Find out which ABI we are using.
6933  echo 'int i;' > conftest.$ac_ext
6934  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6935  (eval $ac_compile) 2>&5
6936  ac_status=$?
6937  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6938  test $ac_status = 0; }; then
6939    case `/usr/bin/file conftest.o` in
6940      *32-bit*)
6941	case $host in
6942	  x86_64-*kfreebsd*-gnu)
6943	    LD="${LD-ld} -m elf_i386_fbsd"
6944	    ;;
6945	  x86_64-*linux*)
6946	    case `/usr/bin/file conftest.o` in
6947	      *x86-64*)
6948		LD="${LD-ld} -m elf32_x86_64"
6949		;;
6950	      *)
6951		LD="${LD-ld} -m elf_i386"
6952		;;
6953	    esac
6954	    ;;
6955	  powerpc64le-*linux*)
6956	    LD="${LD-ld} -m elf32lppclinux"
6957	    ;;
6958	  powerpc64-*linux*)
6959	    LD="${LD-ld} -m elf32ppclinux"
6960	    ;;
6961	  s390x-*linux*)
6962	    LD="${LD-ld} -m elf_s390"
6963	    ;;
6964	  sparc64-*linux*)
6965	    LD="${LD-ld} -m elf32_sparc"
6966	    ;;
6967	esac
6968	;;
6969      *64-bit*)
6970	case $host in
6971	  x86_64-*kfreebsd*-gnu)
6972	    LD="${LD-ld} -m elf_x86_64_fbsd"
6973	    ;;
6974	  x86_64-*linux*)
6975	    LD="${LD-ld} -m elf_x86_64"
6976	    ;;
6977	  powerpcle-*linux*)
6978	    LD="${LD-ld} -m elf64lppc"
6979	    ;;
6980	  powerpc-*linux*)
6981	    LD="${LD-ld} -m elf64ppc"
6982	    ;;
6983	  s390*-*linux*|s390*-*tpf*)
6984	    LD="${LD-ld} -m elf64_s390"
6985	    ;;
6986	  sparc*-*linux*)
6987	    LD="${LD-ld} -m elf64_sparc"
6988	    ;;
6989	esac
6990	;;
6991    esac
6992  fi
6993  rm -rf conftest*
6994  ;;
6995
6996*-*-sco3.2v5*)
6997  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6998  SAVE_CFLAGS="$CFLAGS"
6999  CFLAGS="$CFLAGS -belf"
7000  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7001$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7002if ${lt_cv_cc_needs_belf+:} false; then :
7003  $as_echo_n "(cached) " >&6
7004else
7005  ac_ext=c
7006ac_cpp='$CPP $CPPFLAGS'
7007ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7008ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7009ac_compiler_gnu=$ac_cv_c_compiler_gnu
7010
7011     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7012/* end confdefs.h.  */
7013
7014int
7015main ()
7016{
7017
7018  ;
7019  return 0;
7020}
7021_ACEOF
7022if ac_fn_c_try_link "$LINENO"; then :
7023  lt_cv_cc_needs_belf=yes
7024else
7025  lt_cv_cc_needs_belf=no
7026fi
7027rm -f core conftest.err conftest.$ac_objext \
7028    conftest$ac_exeext conftest.$ac_ext
7029     ac_ext=c
7030ac_cpp='$CPP $CPPFLAGS'
7031ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7032ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7033ac_compiler_gnu=$ac_cv_c_compiler_gnu
7034
7035fi
7036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7037$as_echo "$lt_cv_cc_needs_belf" >&6; }
7038  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7039    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7040    CFLAGS="$SAVE_CFLAGS"
7041  fi
7042  ;;
7043sparc*-*solaris*)
7044  # Find out which ABI we are using.
7045  echo 'int i;' > conftest.$ac_ext
7046  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7047  (eval $ac_compile) 2>&5
7048  ac_status=$?
7049  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7050  test $ac_status = 0; }; then
7051    case `/usr/bin/file conftest.o` in
7052    *64-bit*)
7053      case $lt_cv_prog_gnu_ld in
7054      yes*) LD="${LD-ld} -m elf64_sparc" ;;
7055      *)
7056	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7057	  LD="${LD-ld} -64"
7058	fi
7059	;;
7060      esac
7061      ;;
7062    esac
7063  fi
7064  rm -rf conftest*
7065  ;;
7066esac
7067
7068need_locks="$enable_libtool_lock"
7069
7070
7071  case $host_os in
7072    rhapsody* | darwin*)
7073    if test -n "$ac_tool_prefix"; then
7074  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7075set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7077$as_echo_n "checking for $ac_word... " >&6; }
7078if ${ac_cv_prog_DSYMUTIL+:} false; then :
7079  $as_echo_n "(cached) " >&6
7080else
7081  if test -n "$DSYMUTIL"; then
7082  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7083else
7084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7085for as_dir in $PATH
7086do
7087  IFS=$as_save_IFS
7088  test -z "$as_dir" && as_dir=.
7089    for ac_exec_ext in '' $ac_executable_extensions; do
7090  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7091    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7092    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7093    break 2
7094  fi
7095done
7096  done
7097IFS=$as_save_IFS
7098
7099fi
7100fi
7101DSYMUTIL=$ac_cv_prog_DSYMUTIL
7102if test -n "$DSYMUTIL"; then
7103  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7104$as_echo "$DSYMUTIL" >&6; }
7105else
7106  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7107$as_echo "no" >&6; }
7108fi
7109
7110
7111fi
7112if test -z "$ac_cv_prog_DSYMUTIL"; then
7113  ac_ct_DSYMUTIL=$DSYMUTIL
7114  # Extract the first word of "dsymutil", so it can be a program name with args.
7115set dummy dsymutil; ac_word=$2
7116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7117$as_echo_n "checking for $ac_word... " >&6; }
7118if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7119  $as_echo_n "(cached) " >&6
7120else
7121  if test -n "$ac_ct_DSYMUTIL"; then
7122  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7123else
7124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7125for as_dir in $PATH
7126do
7127  IFS=$as_save_IFS
7128  test -z "$as_dir" && as_dir=.
7129    for ac_exec_ext in '' $ac_executable_extensions; do
7130  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7131    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7132    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7133    break 2
7134  fi
7135done
7136  done
7137IFS=$as_save_IFS
7138
7139fi
7140fi
7141ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7142if test -n "$ac_ct_DSYMUTIL"; then
7143  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7144$as_echo "$ac_ct_DSYMUTIL" >&6; }
7145else
7146  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7147$as_echo "no" >&6; }
7148fi
7149
7150  if test "x$ac_ct_DSYMUTIL" = x; then
7151    DSYMUTIL=":"
7152  else
7153    case $cross_compiling:$ac_tool_warned in
7154yes:)
7155{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7156$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7157ac_tool_warned=yes ;;
7158esac
7159    DSYMUTIL=$ac_ct_DSYMUTIL
7160  fi
7161else
7162  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7163fi
7164
7165    if test -n "$ac_tool_prefix"; then
7166  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7167set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7169$as_echo_n "checking for $ac_word... " >&6; }
7170if ${ac_cv_prog_NMEDIT+:} false; then :
7171  $as_echo_n "(cached) " >&6
7172else
7173  if test -n "$NMEDIT"; then
7174  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7175else
7176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7177for as_dir in $PATH
7178do
7179  IFS=$as_save_IFS
7180  test -z "$as_dir" && as_dir=.
7181    for ac_exec_ext in '' $ac_executable_extensions; do
7182  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7183    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7184    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7185    break 2
7186  fi
7187done
7188  done
7189IFS=$as_save_IFS
7190
7191fi
7192fi
7193NMEDIT=$ac_cv_prog_NMEDIT
7194if test -n "$NMEDIT"; then
7195  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7196$as_echo "$NMEDIT" >&6; }
7197else
7198  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7199$as_echo "no" >&6; }
7200fi
7201
7202
7203fi
7204if test -z "$ac_cv_prog_NMEDIT"; then
7205  ac_ct_NMEDIT=$NMEDIT
7206  # Extract the first word of "nmedit", so it can be a program name with args.
7207set dummy nmedit; ac_word=$2
7208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7209$as_echo_n "checking for $ac_word... " >&6; }
7210if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7211  $as_echo_n "(cached) " >&6
7212else
7213  if test -n "$ac_ct_NMEDIT"; then
7214  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7215else
7216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7217for as_dir in $PATH
7218do
7219  IFS=$as_save_IFS
7220  test -z "$as_dir" && as_dir=.
7221    for ac_exec_ext in '' $ac_executable_extensions; do
7222  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7223    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7224    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7225    break 2
7226  fi
7227done
7228  done
7229IFS=$as_save_IFS
7230
7231fi
7232fi
7233ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7234if test -n "$ac_ct_NMEDIT"; then
7235  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7236$as_echo "$ac_ct_NMEDIT" >&6; }
7237else
7238  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7239$as_echo "no" >&6; }
7240fi
7241
7242  if test "x$ac_ct_NMEDIT" = x; then
7243    NMEDIT=":"
7244  else
7245    case $cross_compiling:$ac_tool_warned in
7246yes:)
7247{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7248$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7249ac_tool_warned=yes ;;
7250esac
7251    NMEDIT=$ac_ct_NMEDIT
7252  fi
7253else
7254  NMEDIT="$ac_cv_prog_NMEDIT"
7255fi
7256
7257    if test -n "$ac_tool_prefix"; then
7258  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7259set dummy ${ac_tool_prefix}lipo; ac_word=$2
7260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7261$as_echo_n "checking for $ac_word... " >&6; }
7262if ${ac_cv_prog_LIPO+:} false; then :
7263  $as_echo_n "(cached) " >&6
7264else
7265  if test -n "$LIPO"; then
7266  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7267else
7268as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7269for as_dir in $PATH
7270do
7271  IFS=$as_save_IFS
7272  test -z "$as_dir" && as_dir=.
7273    for ac_exec_ext in '' $ac_executable_extensions; do
7274  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7275    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7276    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7277    break 2
7278  fi
7279done
7280  done
7281IFS=$as_save_IFS
7282
7283fi
7284fi
7285LIPO=$ac_cv_prog_LIPO
7286if test -n "$LIPO"; then
7287  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7288$as_echo "$LIPO" >&6; }
7289else
7290  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7291$as_echo "no" >&6; }
7292fi
7293
7294
7295fi
7296if test -z "$ac_cv_prog_LIPO"; then
7297  ac_ct_LIPO=$LIPO
7298  # Extract the first word of "lipo", so it can be a program name with args.
7299set dummy lipo; ac_word=$2
7300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7301$as_echo_n "checking for $ac_word... " >&6; }
7302if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7303  $as_echo_n "(cached) " >&6
7304else
7305  if test -n "$ac_ct_LIPO"; then
7306  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7307else
7308as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7309for as_dir in $PATH
7310do
7311  IFS=$as_save_IFS
7312  test -z "$as_dir" && as_dir=.
7313    for ac_exec_ext in '' $ac_executable_extensions; do
7314  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7315    ac_cv_prog_ac_ct_LIPO="lipo"
7316    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7317    break 2
7318  fi
7319done
7320  done
7321IFS=$as_save_IFS
7322
7323fi
7324fi
7325ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7326if test -n "$ac_ct_LIPO"; then
7327  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7328$as_echo "$ac_ct_LIPO" >&6; }
7329else
7330  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7331$as_echo "no" >&6; }
7332fi
7333
7334  if test "x$ac_ct_LIPO" = x; then
7335    LIPO=":"
7336  else
7337    case $cross_compiling:$ac_tool_warned in
7338yes:)
7339{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7340$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7341ac_tool_warned=yes ;;
7342esac
7343    LIPO=$ac_ct_LIPO
7344  fi
7345else
7346  LIPO="$ac_cv_prog_LIPO"
7347fi
7348
7349    if test -n "$ac_tool_prefix"; then
7350  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7351set dummy ${ac_tool_prefix}otool; ac_word=$2
7352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7353$as_echo_n "checking for $ac_word... " >&6; }
7354if ${ac_cv_prog_OTOOL+:} false; then :
7355  $as_echo_n "(cached) " >&6
7356else
7357  if test -n "$OTOOL"; then
7358  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7359else
7360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7361for as_dir in $PATH
7362do
7363  IFS=$as_save_IFS
7364  test -z "$as_dir" && as_dir=.
7365    for ac_exec_ext in '' $ac_executable_extensions; do
7366  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7367    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7368    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7369    break 2
7370  fi
7371done
7372  done
7373IFS=$as_save_IFS
7374
7375fi
7376fi
7377OTOOL=$ac_cv_prog_OTOOL
7378if test -n "$OTOOL"; then
7379  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7380$as_echo "$OTOOL" >&6; }
7381else
7382  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7383$as_echo "no" >&6; }
7384fi
7385
7386
7387fi
7388if test -z "$ac_cv_prog_OTOOL"; then
7389  ac_ct_OTOOL=$OTOOL
7390  # Extract the first word of "otool", so it can be a program name with args.
7391set dummy otool; ac_word=$2
7392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7393$as_echo_n "checking for $ac_word... " >&6; }
7394if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7395  $as_echo_n "(cached) " >&6
7396else
7397  if test -n "$ac_ct_OTOOL"; then
7398  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7399else
7400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7401for as_dir in $PATH
7402do
7403  IFS=$as_save_IFS
7404  test -z "$as_dir" && as_dir=.
7405    for ac_exec_ext in '' $ac_executable_extensions; do
7406  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7407    ac_cv_prog_ac_ct_OTOOL="otool"
7408    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7409    break 2
7410  fi
7411done
7412  done
7413IFS=$as_save_IFS
7414
7415fi
7416fi
7417ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7418if test -n "$ac_ct_OTOOL"; then
7419  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7420$as_echo "$ac_ct_OTOOL" >&6; }
7421else
7422  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7423$as_echo "no" >&6; }
7424fi
7425
7426  if test "x$ac_ct_OTOOL" = x; then
7427    OTOOL=":"
7428  else
7429    case $cross_compiling:$ac_tool_warned in
7430yes:)
7431{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7432$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7433ac_tool_warned=yes ;;
7434esac
7435    OTOOL=$ac_ct_OTOOL
7436  fi
7437else
7438  OTOOL="$ac_cv_prog_OTOOL"
7439fi
7440
7441    if test -n "$ac_tool_prefix"; then
7442  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7443set dummy ${ac_tool_prefix}otool64; ac_word=$2
7444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7445$as_echo_n "checking for $ac_word... " >&6; }
7446if ${ac_cv_prog_OTOOL64+:} false; then :
7447  $as_echo_n "(cached) " >&6
7448else
7449  if test -n "$OTOOL64"; then
7450  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7451else
7452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7453for as_dir in $PATH
7454do
7455  IFS=$as_save_IFS
7456  test -z "$as_dir" && as_dir=.
7457    for ac_exec_ext in '' $ac_executable_extensions; do
7458  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7459    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7460    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7461    break 2
7462  fi
7463done
7464  done
7465IFS=$as_save_IFS
7466
7467fi
7468fi
7469OTOOL64=$ac_cv_prog_OTOOL64
7470if test -n "$OTOOL64"; then
7471  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7472$as_echo "$OTOOL64" >&6; }
7473else
7474  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7475$as_echo "no" >&6; }
7476fi
7477
7478
7479fi
7480if test -z "$ac_cv_prog_OTOOL64"; then
7481  ac_ct_OTOOL64=$OTOOL64
7482  # Extract the first word of "otool64", so it can be a program name with args.
7483set dummy otool64; ac_word=$2
7484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7485$as_echo_n "checking for $ac_word... " >&6; }
7486if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7487  $as_echo_n "(cached) " >&6
7488else
7489  if test -n "$ac_ct_OTOOL64"; then
7490  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7491else
7492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7493for as_dir in $PATH
7494do
7495  IFS=$as_save_IFS
7496  test -z "$as_dir" && as_dir=.
7497    for ac_exec_ext in '' $ac_executable_extensions; do
7498  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7499    ac_cv_prog_ac_ct_OTOOL64="otool64"
7500    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7501    break 2
7502  fi
7503done
7504  done
7505IFS=$as_save_IFS
7506
7507fi
7508fi
7509ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7510if test -n "$ac_ct_OTOOL64"; then
7511  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7512$as_echo "$ac_ct_OTOOL64" >&6; }
7513else
7514  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7515$as_echo "no" >&6; }
7516fi
7517
7518  if test "x$ac_ct_OTOOL64" = x; then
7519    OTOOL64=":"
7520  else
7521    case $cross_compiling:$ac_tool_warned in
7522yes:)
7523{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7524$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7525ac_tool_warned=yes ;;
7526esac
7527    OTOOL64=$ac_ct_OTOOL64
7528  fi
7529else
7530  OTOOL64="$ac_cv_prog_OTOOL64"
7531fi
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7560$as_echo_n "checking for -single_module linker flag... " >&6; }
7561if ${lt_cv_apple_cc_single_mod+:} false; then :
7562  $as_echo_n "(cached) " >&6
7563else
7564  lt_cv_apple_cc_single_mod=no
7565      if test -z "${LT_MULTI_MODULE}"; then
7566	# By default we will add the -single_module flag. You can override
7567	# by either setting the environment variable LT_MULTI_MODULE
7568	# non-empty at configure time, or by adding -multi_module to the
7569	# link flags.
7570	rm -rf libconftest.dylib*
7571	echo "int foo(void){return 1;}" > conftest.c
7572	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7573-dynamiclib -Wl,-single_module conftest.c" >&5
7574	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7575	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7576        _lt_result=$?
7577	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7578	  lt_cv_apple_cc_single_mod=yes
7579	else
7580	  cat conftest.err >&5
7581	fi
7582	rm -rf libconftest.dylib*
7583	rm -f conftest.*
7584      fi
7585fi
7586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7587$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7588    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7589$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7590if ${lt_cv_ld_exported_symbols_list+:} false; then :
7591  $as_echo_n "(cached) " >&6
7592else
7593  lt_cv_ld_exported_symbols_list=no
7594      save_LDFLAGS=$LDFLAGS
7595      echo "_main" > conftest.sym
7596      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7597      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7598/* end confdefs.h.  */
7599
7600int
7601main ()
7602{
7603
7604  ;
7605  return 0;
7606}
7607_ACEOF
7608if ac_fn_c_try_link "$LINENO"; then :
7609  lt_cv_ld_exported_symbols_list=yes
7610else
7611  lt_cv_ld_exported_symbols_list=no
7612fi
7613rm -f core conftest.err conftest.$ac_objext \
7614    conftest$ac_exeext conftest.$ac_ext
7615	LDFLAGS="$save_LDFLAGS"
7616
7617fi
7618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7619$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7620    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7621$as_echo_n "checking for -force_load linker flag... " >&6; }
7622if ${lt_cv_ld_force_load+:} false; then :
7623  $as_echo_n "(cached) " >&6
7624else
7625  lt_cv_ld_force_load=no
7626      cat > conftest.c << _LT_EOF
7627int forced_loaded() { return 2;}
7628_LT_EOF
7629      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7630      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7631      echo "$AR cru libconftest.a conftest.o" >&5
7632      $AR cru libconftest.a conftest.o 2>&5
7633      cat > conftest.c << _LT_EOF
7634int main() { return 0;}
7635_LT_EOF
7636      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7637      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7638      _lt_result=$?
7639      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7640	lt_cv_ld_force_load=yes
7641      else
7642	cat conftest.err >&5
7643      fi
7644        rm -f conftest.err libconftest.a conftest conftest.c
7645        rm -rf conftest.dSYM
7646
7647fi
7648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7649$as_echo "$lt_cv_ld_force_load" >&6; }
7650    # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
7651    # build without first building modern cctools / linker.
7652    case $host_cpu-$host_os in
7653    *-rhapsody* | *-darwin1.[012])
7654      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7655    *-darwin1.*)
7656      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7657    *-darwin*)
7658      # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
7659      # deployment target is forced to an earlier version.
7660      case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
7661	UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
7662	  ;;
7663	10.[012][,.]*)
7664	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7665	  ;;
7666	*)
7667	  ;;
7668     esac
7669    ;;
7670  esac
7671    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7672      _lt_dar_single_mod='$single_module'
7673    fi
7674    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7675      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7676    else
7677      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7678    fi
7679    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7680      _lt_dsymutil='~$DSYMUTIL $lib || :'
7681    else
7682      _lt_dsymutil=
7683    fi
7684    ;;
7685  esac
7686
7687for ac_header in dlfcn.h
7688do :
7689  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7690"
7691if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7692  cat >>confdefs.h <<_ACEOF
7693#define HAVE_DLFCN_H 1
7694_ACEOF
7695
7696fi
7697
7698done
7699
7700
7701
7702
7703
7704# Set options
7705enable_dlopen=yes
7706
7707
7708
7709
7710  enable_win32_dll=no
7711
7712
7713
7714  # Check whether --enable-static was given.
7715if test "${enable_static+set}" = set; then :
7716  enableval=$enable_static; p=${PACKAGE-default}
7717    case $enableval in
7718    yes) enable_static=yes ;;
7719    no) enable_static=no ;;
7720    *)
7721     enable_static=no
7722      # Look at the argument we got.  We use all the common list separators.
7723      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7724      for pkg in $enableval; do
7725	IFS="$lt_save_ifs"
7726	if test "X$pkg" = "X$p"; then
7727	  enable_static=yes
7728	fi
7729      done
7730      IFS="$lt_save_ifs"
7731      ;;
7732    esac
7733else
7734  enable_static=yes
7735fi
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746# Check whether --with-pic was given.
7747if test "${with_pic+set}" = set; then :
7748  withval=$with_pic; pic_mode="$withval"
7749else
7750  pic_mode=default
7751fi
7752
7753
7754test -z "$pic_mode" && pic_mode=default
7755
7756
7757
7758
7759
7760
7761
7762  # Check whether --enable-fast-install was given.
7763if test "${enable_fast_install+set}" = set; then :
7764  enableval=$enable_fast_install; p=${PACKAGE-default}
7765    case $enableval in
7766    yes) enable_fast_install=yes ;;
7767    no) enable_fast_install=no ;;
7768    *)
7769      enable_fast_install=no
7770      # Look at the argument we got.  We use all the common list separators.
7771      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7772      for pkg in $enableval; do
7773	IFS="$lt_save_ifs"
7774	if test "X$pkg" = "X$p"; then
7775	  enable_fast_install=yes
7776	fi
7777      done
7778      IFS="$lt_save_ifs"
7779      ;;
7780    esac
7781else
7782  enable_fast_install=yes
7783fi
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795# This can be used to rebuild libtool when needed
7796LIBTOOL_DEPS="$ltmain"
7797
7798# Always use our own libtool.
7799LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826test -z "$LN_S" && LN_S="ln -s"
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841if test -n "${ZSH_VERSION+set}" ; then
7842   setopt NO_GLOB_SUBST
7843fi
7844
7845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7846$as_echo_n "checking for objdir... " >&6; }
7847if ${lt_cv_objdir+:} false; then :
7848  $as_echo_n "(cached) " >&6
7849else
7850  rm -f .libs 2>/dev/null
7851mkdir .libs 2>/dev/null
7852if test -d .libs; then
7853  lt_cv_objdir=.libs
7854else
7855  # MS-DOS does not allow filenames that begin with a dot.
7856  lt_cv_objdir=_libs
7857fi
7858rmdir .libs 2>/dev/null
7859fi
7860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7861$as_echo "$lt_cv_objdir" >&6; }
7862objdir=$lt_cv_objdir
7863
7864
7865
7866
7867
7868cat >>confdefs.h <<_ACEOF
7869#define LT_OBJDIR "$lt_cv_objdir/"
7870_ACEOF
7871
7872
7873
7874
7875case $host_os in
7876aix3*)
7877  # AIX sometimes has problems with the GCC collect2 program.  For some
7878  # reason, if we set the COLLECT_NAMES environment variable, the problems
7879  # vanish in a puff of smoke.
7880  if test "X${COLLECT_NAMES+set}" != Xset; then
7881    COLLECT_NAMES=
7882    export COLLECT_NAMES
7883  fi
7884  ;;
7885esac
7886
7887# Global variables:
7888ofile=libtool
7889can_build_shared=yes
7890
7891# All known linkers require a `.a' archive for static linking (except MSVC,
7892# which needs '.lib').
7893libext=a
7894
7895with_gnu_ld="$lt_cv_prog_gnu_ld"
7896
7897old_CC="$CC"
7898old_CFLAGS="$CFLAGS"
7899
7900# Set sane defaults for various variables
7901test -z "$CC" && CC=cc
7902test -z "$LTCC" && LTCC=$CC
7903test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7904test -z "$LD" && LD=ld
7905test -z "$ac_objext" && ac_objext=o
7906
7907for cc_temp in $compiler""; do
7908  case $cc_temp in
7909    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7910    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7911    \-*) ;;
7912    *) break;;
7913  esac
7914done
7915cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7916
7917
7918# Only perform the check for file, if the check method requires it
7919test -z "$MAGIC_CMD" && MAGIC_CMD=file
7920case $deplibs_check_method in
7921file_magic*)
7922  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7923    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7924$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7925if ${lt_cv_path_MAGIC_CMD+:} false; then :
7926  $as_echo_n "(cached) " >&6
7927else
7928  case $MAGIC_CMD in
7929[\\/*] |  ?:[\\/]*)
7930  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7931  ;;
7932*)
7933  lt_save_MAGIC_CMD="$MAGIC_CMD"
7934  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7935  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7936  for ac_dir in $ac_dummy; do
7937    IFS="$lt_save_ifs"
7938    test -z "$ac_dir" && ac_dir=.
7939    if test -f $ac_dir/${ac_tool_prefix}file; then
7940      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7941      if test -n "$file_magic_test_file"; then
7942	case $deplibs_check_method in
7943	"file_magic "*)
7944	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7945	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7946	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7947	    $EGREP "$file_magic_regex" > /dev/null; then
7948	    :
7949	  else
7950	    cat <<_LT_EOF 1>&2
7951
7952*** Warning: the command libtool uses to detect shared libraries,
7953*** $file_magic_cmd, produces output that libtool cannot recognize.
7954*** The result is that libtool may fail to recognize shared libraries
7955*** as such.  This will affect the creation of libtool libraries that
7956*** depend on shared libraries, but programs linked with such libtool
7957*** libraries will work regardless of this problem.  Nevertheless, you
7958*** may want to report the problem to your system manager and/or to
7959*** bug-libtool@gnu.org
7960
7961_LT_EOF
7962	  fi ;;
7963	esac
7964      fi
7965      break
7966    fi
7967  done
7968  IFS="$lt_save_ifs"
7969  MAGIC_CMD="$lt_save_MAGIC_CMD"
7970  ;;
7971esac
7972fi
7973
7974MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7975if test -n "$MAGIC_CMD"; then
7976  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7977$as_echo "$MAGIC_CMD" >&6; }
7978else
7979  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7980$as_echo "no" >&6; }
7981fi
7982
7983
7984
7985
7986
7987if test -z "$lt_cv_path_MAGIC_CMD"; then
7988  if test -n "$ac_tool_prefix"; then
7989    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7990$as_echo_n "checking for file... " >&6; }
7991if ${lt_cv_path_MAGIC_CMD+:} false; then :
7992  $as_echo_n "(cached) " >&6
7993else
7994  case $MAGIC_CMD in
7995[\\/*] |  ?:[\\/]*)
7996  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7997  ;;
7998*)
7999  lt_save_MAGIC_CMD="$MAGIC_CMD"
8000  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8001  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8002  for ac_dir in $ac_dummy; do
8003    IFS="$lt_save_ifs"
8004    test -z "$ac_dir" && ac_dir=.
8005    if test -f $ac_dir/file; then
8006      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8007      if test -n "$file_magic_test_file"; then
8008	case $deplibs_check_method in
8009	"file_magic "*)
8010	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8011	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8012	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8013	    $EGREP "$file_magic_regex" > /dev/null; then
8014	    :
8015	  else
8016	    cat <<_LT_EOF 1>&2
8017
8018*** Warning: the command libtool uses to detect shared libraries,
8019*** $file_magic_cmd, produces output that libtool cannot recognize.
8020*** The result is that libtool may fail to recognize shared libraries
8021*** as such.  This will affect the creation of libtool libraries that
8022*** depend on shared libraries, but programs linked with such libtool
8023*** libraries will work regardless of this problem.  Nevertheless, you
8024*** may want to report the problem to your system manager and/or to
8025*** bug-libtool@gnu.org
8026
8027_LT_EOF
8028	  fi ;;
8029	esac
8030      fi
8031      break
8032    fi
8033  done
8034  IFS="$lt_save_ifs"
8035  MAGIC_CMD="$lt_save_MAGIC_CMD"
8036  ;;
8037esac
8038fi
8039
8040MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8041if test -n "$MAGIC_CMD"; then
8042  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8043$as_echo "$MAGIC_CMD" >&6; }
8044else
8045  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8046$as_echo "no" >&6; }
8047fi
8048
8049
8050  else
8051    MAGIC_CMD=:
8052  fi
8053fi
8054
8055  fi
8056  ;;
8057esac
8058
8059# Use C for the default configuration in the libtool script
8060
8061lt_save_CC="$CC"
8062ac_ext=c
8063ac_cpp='$CPP $CPPFLAGS'
8064ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8065ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8066ac_compiler_gnu=$ac_cv_c_compiler_gnu
8067
8068
8069# Source file extension for C test sources.
8070ac_ext=c
8071
8072# Object file extension for compiled C test sources.
8073objext=o
8074objext=$objext
8075
8076# Code to be used in simple compile tests
8077lt_simple_compile_test_code="int some_variable = 0;"
8078
8079# Code to be used in simple link tests
8080lt_simple_link_test_code='int main(){return(0);}'
8081
8082
8083
8084
8085
8086
8087
8088# If no C compiler was specified, use CC.
8089LTCC=${LTCC-"$CC"}
8090
8091# If no C compiler flags were specified, use CFLAGS.
8092LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8093
8094# Allow CC to be a program name with arguments.
8095compiler=$CC
8096
8097# Save the default compiler, since it gets overwritten when the other
8098# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8099compiler_DEFAULT=$CC
8100
8101# save warnings/boilerplate of simple test code
8102ac_outfile=conftest.$ac_objext
8103echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8104eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8105_lt_compiler_boilerplate=`cat conftest.err`
8106$RM conftest*
8107
8108ac_outfile=conftest.$ac_objext
8109echo "$lt_simple_link_test_code" >conftest.$ac_ext
8110eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8111_lt_linker_boilerplate=`cat conftest.err`
8112$RM -r conftest*
8113
8114
8115## CAVEAT EMPTOR:
8116## There is no encapsulation within the following macros, do not change
8117## the running order or otherwise move them around unless you know exactly
8118## what you are doing...
8119if test -n "$compiler"; then
8120
8121lt_prog_compiler_no_builtin_flag=
8122
8123if test "$GCC" = yes; then
8124  case $cc_basename in
8125  nvcc*)
8126    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8127  *)
8128    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8129  esac
8130
8131  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8132$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8133if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8134  $as_echo_n "(cached) " >&6
8135else
8136  lt_cv_prog_compiler_rtti_exceptions=no
8137   ac_outfile=conftest.$ac_objext
8138   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8139   lt_compiler_flag="-fno-rtti -fno-exceptions"
8140   # Insert the option either (1) after the last *FLAGS variable, or
8141   # (2) before a word containing "conftest.", or (3) at the end.
8142   # Note that $ac_compile itself does not contain backslashes and begins
8143   # with a dollar sign (not a hyphen), so the echo should work correctly.
8144   # The option is referenced via a variable to avoid confusing sed.
8145   lt_compile=`echo "$ac_compile" | $SED \
8146   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8147   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8148   -e 's:$: $lt_compiler_flag:'`
8149   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8150   (eval "$lt_compile" 2>conftest.err)
8151   ac_status=$?
8152   cat conftest.err >&5
8153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8154   if (exit $ac_status) && test -s "$ac_outfile"; then
8155     # The compiler can only warn and ignore the option if not recognized
8156     # So say no if there are warnings other than the usual output.
8157     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8158     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8159     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8160       lt_cv_prog_compiler_rtti_exceptions=yes
8161     fi
8162   fi
8163   $RM conftest*
8164
8165fi
8166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8167$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8168
8169if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8170    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8171else
8172    :
8173fi
8174
8175fi
8176
8177
8178
8179
8180
8181
8182  lt_prog_compiler_wl=
8183lt_prog_compiler_pic=
8184lt_prog_compiler_static=
8185
8186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8187$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8188
8189  if test "$GCC" = yes; then
8190    lt_prog_compiler_wl='-Wl,'
8191    lt_prog_compiler_static='-static'
8192
8193    case $host_os in
8194      aix*)
8195      # All AIX code is PIC.
8196      if test "$host_cpu" = ia64; then
8197	# AIX 5 now supports IA64 processor
8198	lt_prog_compiler_static='-Bstatic'
8199      fi
8200      lt_prog_compiler_pic='-fPIC'
8201      ;;
8202
8203    amigaos*)
8204      case $host_cpu in
8205      powerpc)
8206            # see comment about AmigaOS4 .so support
8207            lt_prog_compiler_pic='-fPIC'
8208        ;;
8209      m68k)
8210            # FIXME: we need at least 68020 code to build shared libraries, but
8211            # adding the `-m68020' flag to GCC prevents building anything better,
8212            # like `-m68040'.
8213            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8214        ;;
8215      esac
8216      ;;
8217
8218    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8219      # PIC is the default for these OSes.
8220      ;;
8221
8222    mingw* | cygwin* | pw32* | os2* | cegcc*)
8223      # This hack is so that the source file can tell whether it is being
8224      # built for inclusion in a dll (and should export symbols for example).
8225      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8226      # (--disable-auto-import) libraries
8227      lt_prog_compiler_pic='-DDLL_EXPORT'
8228      ;;
8229
8230    darwin* | rhapsody*)
8231      # PIC is the default on this platform
8232      # Common symbols not allowed in MH_DYLIB files
8233      lt_prog_compiler_pic='-fno-common'
8234      ;;
8235
8236    haiku*)
8237      # PIC is the default for Haiku.
8238      # The "-static" flag exists, but is broken.
8239      lt_prog_compiler_static=
8240      ;;
8241
8242    hpux*)
8243      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8244      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8245      # sets the default TLS model and affects inlining.
8246      case $host_cpu in
8247      hppa*64*)
8248	# +Z the default
8249	;;
8250      *)
8251	lt_prog_compiler_pic='-fPIC'
8252	;;
8253      esac
8254      ;;
8255
8256    interix[3-9]*)
8257      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8258      # Instead, we relocate shared libraries at runtime.
8259      ;;
8260
8261    msdosdjgpp*)
8262      # Just because we use GCC doesn't mean we suddenly get shared libraries
8263      # on systems that don't support them.
8264      lt_prog_compiler_can_build_shared=no
8265      enable_shared=no
8266      ;;
8267
8268    *nto* | *qnx*)
8269      # QNX uses GNU C++, but need to define -shared option too, otherwise
8270      # it will coredump.
8271      lt_prog_compiler_pic='-fPIC -shared'
8272      ;;
8273
8274    sysv4*MP*)
8275      if test -d /usr/nec; then
8276	lt_prog_compiler_pic=-Kconform_pic
8277      fi
8278      ;;
8279
8280    *)
8281      lt_prog_compiler_pic='-fPIC'
8282      ;;
8283    esac
8284
8285    case $cc_basename in
8286    nvcc*) # Cuda Compiler Driver 2.2
8287      lt_prog_compiler_wl='-Xlinker '
8288      lt_prog_compiler_pic='-Xcompiler -fPIC'
8289      ;;
8290    esac
8291  else
8292    # PORTME Check for flag to pass linker flags through the system compiler.
8293    case $host_os in
8294    aix*)
8295      lt_prog_compiler_wl='-Wl,'
8296      if test "$host_cpu" = ia64; then
8297	# AIX 5 now supports IA64 processor
8298	lt_prog_compiler_static='-Bstatic'
8299      else
8300	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8301      fi
8302      ;;
8303
8304    mingw* | cygwin* | pw32* | os2* | cegcc*)
8305      # This hack is so that the source file can tell whether it is being
8306      # built for inclusion in a dll (and should export symbols for example).
8307      lt_prog_compiler_pic='-DDLL_EXPORT'
8308      ;;
8309
8310    hpux9* | hpux10* | hpux11*)
8311      lt_prog_compiler_wl='-Wl,'
8312      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8313      # not for PA HP-UX.
8314      case $host_cpu in
8315      hppa*64*|ia64*)
8316	# +Z the default
8317	;;
8318      *)
8319	lt_prog_compiler_pic='+Z'
8320	;;
8321      esac
8322      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8323      lt_prog_compiler_static='${wl}-a ${wl}archive'
8324      ;;
8325
8326    irix5* | irix6* | nonstopux*)
8327      lt_prog_compiler_wl='-Wl,'
8328      # PIC (with -KPIC) is the default.
8329      lt_prog_compiler_static='-non_shared'
8330      ;;
8331
8332    linux* | k*bsd*-gnu | kopensolaris*-gnu)
8333      case $cc_basename in
8334      # old Intel for x86_64 which still supported -KPIC.
8335      ecc*)
8336	lt_prog_compiler_wl='-Wl,'
8337	lt_prog_compiler_pic='-KPIC'
8338	lt_prog_compiler_static='-static'
8339        ;;
8340      # icc used to be incompatible with GCC.
8341      # ICC 10 doesn't accept -KPIC any more.
8342      icc* | ifort*)
8343	lt_prog_compiler_wl='-Wl,'
8344	lt_prog_compiler_pic='-fPIC'
8345	lt_prog_compiler_static='-static'
8346        ;;
8347      # Lahey Fortran 8.1.
8348      lf95*)
8349	lt_prog_compiler_wl='-Wl,'
8350	lt_prog_compiler_pic='--shared'
8351	lt_prog_compiler_static='--static'
8352	;;
8353      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8354        # Portland Group compilers (*not* the Pentium gcc compiler,
8355	# which looks to be a dead project)
8356	lt_prog_compiler_wl='-Wl,'
8357	lt_prog_compiler_pic='-fpic'
8358	lt_prog_compiler_static='-Bstatic'
8359        ;;
8360      ccc*)
8361        lt_prog_compiler_wl='-Wl,'
8362        # All Alpha code is PIC.
8363        lt_prog_compiler_static='-non_shared'
8364        ;;
8365      xl* | bgxl* | bgf* | mpixl*)
8366	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8367	lt_prog_compiler_wl='-Wl,'
8368	lt_prog_compiler_pic='-qpic'
8369	lt_prog_compiler_static='-qstaticlink'
8370	;;
8371      *)
8372	case `$CC -V 2>&1 | sed 5q` in
8373	*Sun\ F* | *Sun*Fortran*)
8374	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8375	  lt_prog_compiler_pic='-KPIC'
8376	  lt_prog_compiler_static='-Bstatic'
8377	  lt_prog_compiler_wl=''
8378	  ;;
8379	*Sun\ C*)
8380	  # Sun C 5.9
8381	  lt_prog_compiler_pic='-KPIC'
8382	  lt_prog_compiler_static='-Bstatic'
8383	  lt_prog_compiler_wl='-Wl,'
8384	  ;;
8385	esac
8386	;;
8387      esac
8388      ;;
8389
8390    newsos6)
8391      lt_prog_compiler_pic='-KPIC'
8392      lt_prog_compiler_static='-Bstatic'
8393      ;;
8394
8395    *nto* | *qnx*)
8396      # QNX uses GNU C++, but need to define -shared option too, otherwise
8397      # it will coredump.
8398      lt_prog_compiler_pic='-fPIC -shared'
8399      ;;
8400
8401    osf3* | osf4* | osf5*)
8402      lt_prog_compiler_wl='-Wl,'
8403      # All OSF/1 code is PIC.
8404      lt_prog_compiler_static='-non_shared'
8405      ;;
8406
8407    rdos*)
8408      lt_prog_compiler_static='-non_shared'
8409      ;;
8410
8411    solaris*)
8412      lt_prog_compiler_pic='-KPIC'
8413      lt_prog_compiler_static='-Bstatic'
8414      case $cc_basename in
8415      f77* | f90* | f95*)
8416	lt_prog_compiler_wl='-Qoption ld ';;
8417      *)
8418	lt_prog_compiler_wl='-Wl,';;
8419      esac
8420      ;;
8421
8422    sunos4*)
8423      lt_prog_compiler_wl='-Qoption ld '
8424      lt_prog_compiler_pic='-PIC'
8425      lt_prog_compiler_static='-Bstatic'
8426      ;;
8427
8428    sysv4 | sysv4.2uw2* | sysv4.3*)
8429      lt_prog_compiler_wl='-Wl,'
8430      lt_prog_compiler_pic='-KPIC'
8431      lt_prog_compiler_static='-Bstatic'
8432      ;;
8433
8434    sysv4*MP*)
8435      if test -d /usr/nec ;then
8436	lt_prog_compiler_pic='-Kconform_pic'
8437	lt_prog_compiler_static='-Bstatic'
8438      fi
8439      ;;
8440
8441    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8442      lt_prog_compiler_wl='-Wl,'
8443      lt_prog_compiler_pic='-KPIC'
8444      lt_prog_compiler_static='-Bstatic'
8445      ;;
8446
8447    unicos*)
8448      lt_prog_compiler_wl='-Wl,'
8449      lt_prog_compiler_can_build_shared=no
8450      ;;
8451
8452    uts4*)
8453      lt_prog_compiler_pic='-pic'
8454      lt_prog_compiler_static='-Bstatic'
8455      ;;
8456
8457    *)
8458      lt_prog_compiler_can_build_shared=no
8459      ;;
8460    esac
8461  fi
8462
8463case $host_os in
8464  # For platforms which do not support PIC, -DPIC is meaningless:
8465  *djgpp*)
8466    lt_prog_compiler_pic=
8467    ;;
8468  *)
8469    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8470    ;;
8471esac
8472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8473$as_echo "$lt_prog_compiler_pic" >&6; }
8474
8475
8476
8477
8478
8479
8480#
8481# Check to make sure the PIC flag actually works.
8482#
8483if test -n "$lt_prog_compiler_pic"; then
8484  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8485$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8486if ${lt_cv_prog_compiler_pic_works+:} false; then :
8487  $as_echo_n "(cached) " >&6
8488else
8489  lt_cv_prog_compiler_pic_works=no
8490   ac_outfile=conftest.$ac_objext
8491   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8492   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8493   # Insert the option either (1) after the last *FLAGS variable, or
8494   # (2) before a word containing "conftest.", or (3) at the end.
8495   # Note that $ac_compile itself does not contain backslashes and begins
8496   # with a dollar sign (not a hyphen), so the echo should work correctly.
8497   # The option is referenced via a variable to avoid confusing sed.
8498   lt_compile=`echo "$ac_compile" | $SED \
8499   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8500   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8501   -e 's:$: $lt_compiler_flag:'`
8502   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8503   (eval "$lt_compile" 2>conftest.err)
8504   ac_status=$?
8505   cat conftest.err >&5
8506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8507   if (exit $ac_status) && test -s "$ac_outfile"; then
8508     # The compiler can only warn and ignore the option if not recognized
8509     # So say no if there are warnings other than the usual output.
8510     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8511     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8512     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8513       lt_cv_prog_compiler_pic_works=yes
8514     fi
8515   fi
8516   $RM conftest*
8517
8518fi
8519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8520$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8521
8522if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8523    case $lt_prog_compiler_pic in
8524     "" | " "*) ;;
8525     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8526     esac
8527else
8528    lt_prog_compiler_pic=
8529     lt_prog_compiler_can_build_shared=no
8530fi
8531
8532fi
8533
8534
8535
8536
8537
8538
8539#
8540# Check to make sure the static flag actually works.
8541#
8542wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8544$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8545if ${lt_cv_prog_compiler_static_works+:} false; then :
8546  $as_echo_n "(cached) " >&6
8547else
8548  lt_cv_prog_compiler_static_works=no
8549   save_LDFLAGS="$LDFLAGS"
8550   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8551   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8552   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8553     # The linker can only warn and ignore the option if not recognized
8554     # So say no if there are warnings
8555     if test -s conftest.err; then
8556       # Append any errors to the config.log.
8557       cat conftest.err 1>&5
8558       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8559       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8560       if diff conftest.exp conftest.er2 >/dev/null; then
8561         lt_cv_prog_compiler_static_works=yes
8562       fi
8563     else
8564       lt_cv_prog_compiler_static_works=yes
8565     fi
8566   fi
8567   $RM -r conftest*
8568   LDFLAGS="$save_LDFLAGS"
8569
8570fi
8571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8572$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8573
8574if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8575    :
8576else
8577    lt_prog_compiler_static=
8578fi
8579
8580
8581
8582
8583
8584
8585
8586  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8587$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8588if ${lt_cv_prog_compiler_c_o+:} false; then :
8589  $as_echo_n "(cached) " >&6
8590else
8591  lt_cv_prog_compiler_c_o=no
8592   $RM -r conftest 2>/dev/null
8593   mkdir conftest
8594   cd conftest
8595   mkdir out
8596   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8597
8598   lt_compiler_flag="-o out/conftest2.$ac_objext"
8599   # Insert the option either (1) after the last *FLAGS variable, or
8600   # (2) before a word containing "conftest.", or (3) at the end.
8601   # Note that $ac_compile itself does not contain backslashes and begins
8602   # with a dollar sign (not a hyphen), so the echo should work correctly.
8603   lt_compile=`echo "$ac_compile" | $SED \
8604   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8605   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8606   -e 's:$: $lt_compiler_flag:'`
8607   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8608   (eval "$lt_compile" 2>out/conftest.err)
8609   ac_status=$?
8610   cat out/conftest.err >&5
8611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8612   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8613   then
8614     # The compiler can only warn and ignore the option if not recognized
8615     # So say no if there are warnings
8616     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8617     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8618     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8619       lt_cv_prog_compiler_c_o=yes
8620     fi
8621   fi
8622   chmod u+w . 2>&5
8623   $RM conftest*
8624   # SGI C++ compiler will create directory out/ii_files/ for
8625   # template instantiation
8626   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8627   $RM out/* && rmdir out
8628   cd ..
8629   $RM -r conftest
8630   $RM conftest*
8631
8632fi
8633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8634$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8635
8636
8637
8638
8639
8640
8641  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8642$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8643if ${lt_cv_prog_compiler_c_o+:} false; then :
8644  $as_echo_n "(cached) " >&6
8645else
8646  lt_cv_prog_compiler_c_o=no
8647   $RM -r conftest 2>/dev/null
8648   mkdir conftest
8649   cd conftest
8650   mkdir out
8651   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8652
8653   lt_compiler_flag="-o out/conftest2.$ac_objext"
8654   # Insert the option either (1) after the last *FLAGS variable, or
8655   # (2) before a word containing "conftest.", or (3) at the end.
8656   # Note that $ac_compile itself does not contain backslashes and begins
8657   # with a dollar sign (not a hyphen), so the echo should work correctly.
8658   lt_compile=`echo "$ac_compile" | $SED \
8659   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8660   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8661   -e 's:$: $lt_compiler_flag:'`
8662   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8663   (eval "$lt_compile" 2>out/conftest.err)
8664   ac_status=$?
8665   cat out/conftest.err >&5
8666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8667   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8668   then
8669     # The compiler can only warn and ignore the option if not recognized
8670     # So say no if there are warnings
8671     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8672     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8673     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8674       lt_cv_prog_compiler_c_o=yes
8675     fi
8676   fi
8677   chmod u+w . 2>&5
8678   $RM conftest*
8679   # SGI C++ compiler will create directory out/ii_files/ for
8680   # template instantiation
8681   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8682   $RM out/* && rmdir out
8683   cd ..
8684   $RM -r conftest
8685   $RM conftest*
8686
8687fi
8688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8689$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8690
8691
8692
8693
8694hard_links="nottested"
8695if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8696  # do not overwrite the value of need_locks provided by the user
8697  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8698$as_echo_n "checking if we can lock with hard links... " >&6; }
8699  hard_links=yes
8700  $RM conftest*
8701  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8702  touch conftest.a
8703  ln conftest.a conftest.b 2>&5 || hard_links=no
8704  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8705  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8706$as_echo "$hard_links" >&6; }
8707  if test "$hard_links" = no; then
8708    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8709$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8710    need_locks=warn
8711  fi
8712else
8713  need_locks=no
8714fi
8715
8716
8717
8718
8719
8720
8721  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8722$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8723
8724  runpath_var=
8725  allow_undefined_flag=
8726  always_export_symbols=no
8727  archive_cmds=
8728  archive_expsym_cmds=
8729  compiler_needs_object=no
8730  enable_shared_with_static_runtimes=no
8731  export_dynamic_flag_spec=
8732  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8733  hardcode_automatic=no
8734  hardcode_direct=no
8735  hardcode_direct_absolute=no
8736  hardcode_libdir_flag_spec=
8737  hardcode_libdir_flag_spec_ld=
8738  hardcode_libdir_separator=
8739  hardcode_minus_L=no
8740  hardcode_shlibpath_var=unsupported
8741  inherit_rpath=no
8742  link_all_deplibs=unknown
8743  module_cmds=
8744  module_expsym_cmds=
8745  old_archive_from_new_cmds=
8746  old_archive_from_expsyms_cmds=
8747  thread_safe_flag_spec=
8748  whole_archive_flag_spec=
8749  # include_expsyms should be a list of space-separated symbols to be *always*
8750  # included in the symbol list
8751  include_expsyms=
8752  # exclude_expsyms can be an extended regexp of symbols to exclude
8753  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8754  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8755  # as well as any symbol that contains `d'.
8756  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8757  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8758  # platforms (ab)use it in PIC code, but their linkers get confused if
8759  # the symbol is explicitly referenced.  Since portable code cannot
8760  # rely on this symbol name, it's probably fine to never include it in
8761  # preloaded symbol tables.
8762  # Exclude shared library initialization/finalization symbols.
8763  extract_expsyms_cmds=
8764
8765  case $host_os in
8766  cygwin* | mingw* | pw32* | cegcc*)
8767    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8768    # When not using gcc, we currently assume that we are using
8769    # Microsoft Visual C++.
8770    if test "$GCC" != yes; then
8771      with_gnu_ld=no
8772    fi
8773    ;;
8774  interix*)
8775    # we just hope/assume this is gcc and not c89 (= MSVC++)
8776    with_gnu_ld=yes
8777    ;;
8778  openbsd*)
8779    with_gnu_ld=no
8780    ;;
8781  esac
8782
8783  ld_shlibs=yes
8784
8785  # On some targets, GNU ld is compatible enough with the native linker
8786  # that we're better off using the native interface for both.
8787  lt_use_gnu_ld_interface=no
8788  if test "$with_gnu_ld" = yes; then
8789    case $host_os in
8790      aix*)
8791	# The AIX port of GNU ld has always aspired to compatibility
8792	# with the native linker.  However, as the warning in the GNU ld
8793	# block says, versions before 2.19.5* couldn't really create working
8794	# shared libraries, regardless of the interface used.
8795	case `$LD -v 2>&1` in
8796	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8797	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8798	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8799	  *)
8800	    lt_use_gnu_ld_interface=yes
8801	    ;;
8802	esac
8803	;;
8804      *)
8805	lt_use_gnu_ld_interface=yes
8806	;;
8807    esac
8808  fi
8809
8810  if test "$lt_use_gnu_ld_interface" = yes; then
8811    # If archive_cmds runs LD, not CC, wlarc should be empty
8812    wlarc='${wl}'
8813
8814    # Set some defaults for GNU ld with shared library support. These
8815    # are reset later if shared libraries are not supported. Putting them
8816    # here allows them to be overridden if necessary.
8817    runpath_var=LD_RUN_PATH
8818    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8819    export_dynamic_flag_spec='${wl}--export-dynamic'
8820    # ancient GNU ld didn't support --whole-archive et. al.
8821    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8822      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8823    else
8824      whole_archive_flag_spec=
8825    fi
8826    supports_anon_versioning=no
8827    case `$LD -v 2>&1` in
8828      *GNU\ gold*) supports_anon_versioning=yes ;;
8829      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8830      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8831      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8832      *\ 2.11.*) ;; # other 2.11 versions
8833      *) supports_anon_versioning=yes ;;
8834    esac
8835
8836    # See if GNU ld supports shared libraries.
8837    case $host_os in
8838    aix[3-9]*)
8839      # On AIX/PPC, the GNU linker is very broken
8840      if test "$host_cpu" != ia64; then
8841	ld_shlibs=no
8842	cat <<_LT_EOF 1>&2
8843
8844*** Warning: the GNU linker, at least up to release 2.19, is reported
8845*** to be unable to reliably create shared libraries on AIX.
8846*** Therefore, libtool is disabling shared libraries support.  If you
8847*** really care for shared libraries, you may want to install binutils
8848*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8849*** You will then need to restart the configuration process.
8850
8851_LT_EOF
8852      fi
8853      ;;
8854
8855    amigaos*)
8856      case $host_cpu in
8857      powerpc)
8858            # see comment about AmigaOS4 .so support
8859            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8860            archive_expsym_cmds=''
8861        ;;
8862      m68k)
8863            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)'
8864            hardcode_libdir_flag_spec='-L$libdir'
8865            hardcode_minus_L=yes
8866        ;;
8867      esac
8868      ;;
8869
8870    beos*)
8871      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8872	allow_undefined_flag=unsupported
8873	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8874	# support --undefined.  This deserves some investigation.  FIXME
8875	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8876      else
8877	ld_shlibs=no
8878      fi
8879      ;;
8880
8881    cygwin* | mingw* | pw32* | cegcc*)
8882      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8883      # as there is no search path for DLLs.
8884      hardcode_libdir_flag_spec='-L$libdir'
8885      export_dynamic_flag_spec='${wl}--export-all-symbols'
8886      allow_undefined_flag=unsupported
8887      always_export_symbols=no
8888      enable_shared_with_static_runtimes=yes
8889      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8890
8891      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8892        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8893	# If the export-symbols file already is a .def file (1st line
8894	# is EXPORTS), use it as is; otherwise, prepend...
8895	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8896	  cp $export_symbols $output_objdir/$soname.def;
8897	else
8898	  echo EXPORTS > $output_objdir/$soname.def;
8899	  cat $export_symbols >> $output_objdir/$soname.def;
8900	fi~
8901	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8902      else
8903	ld_shlibs=no
8904      fi
8905      ;;
8906
8907    haiku*)
8908      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8909      link_all_deplibs=yes
8910      ;;
8911
8912    interix[3-9]*)
8913      hardcode_direct=no
8914      hardcode_shlibpath_var=no
8915      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8916      export_dynamic_flag_spec='${wl}-E'
8917      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8918      # Instead, shared libraries are loaded at an image base (0x10000000 by
8919      # default) and relocated if they conflict, which is a slow very memory
8920      # consuming and fragmenting process.  To avoid this, we pick a random,
8921      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8922      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8923      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8924      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'
8925      ;;
8926
8927    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
8928      tmp_diet=no
8929      if test "$host_os" = linux-dietlibc; then
8930	case $cc_basename in
8931	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
8932	esac
8933      fi
8934      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8935	 && test "$tmp_diet" = no
8936      then
8937	tmp_addflag=' $pic_flag'
8938	tmp_sharedflag='-shared'
8939	case $cc_basename,$host_cpu in
8940        pgcc*)				# Portland Group C compiler
8941	  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'
8942	  tmp_addflag=' $pic_flag'
8943	  ;;
8944	pgf77* | pgf90* | pgf95* | pgfortran*)
8945					# Portland Group f77 and f90 compilers
8946	  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'
8947	  tmp_addflag=' $pic_flag -Mnomain' ;;
8948	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
8949	  tmp_addflag=' -i_dynamic' ;;
8950	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8951	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8952	ifc* | ifort*)			# Intel Fortran compiler
8953	  tmp_addflag=' -nofor_main' ;;
8954	lf95*)				# Lahey Fortran 8.1
8955	  whole_archive_flag_spec=
8956	  tmp_sharedflag='--shared' ;;
8957	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8958	  tmp_sharedflag='-qmkshrobj'
8959	  tmp_addflag= ;;
8960	nvcc*)	# Cuda Compiler Driver 2.2
8961	  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'
8962	  compiler_needs_object=yes
8963	  ;;
8964	esac
8965	case `$CC -V 2>&1 | sed 5q` in
8966	*Sun\ C*)			# Sun C 5.9
8967	  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'
8968	  compiler_needs_object=yes
8969	  tmp_sharedflag='-G' ;;
8970	*Sun\ F*)			# Sun Fortran 8.3
8971	  tmp_sharedflag='-G' ;;
8972	esac
8973	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8974
8975        if test "x$supports_anon_versioning" = xyes; then
8976          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8977	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8978	    echo "local: *; };" >> $output_objdir/$libname.ver~
8979	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8980        fi
8981
8982	case $cc_basename in
8983	xlf* | bgf* | bgxlf* | mpixlf*)
8984	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8985	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8986	  hardcode_libdir_flag_spec=
8987	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
8988	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8989	  if test "x$supports_anon_versioning" = xyes; then
8990	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8991	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8992	      echo "local: *; };" >> $output_objdir/$libname.ver~
8993	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8994	  fi
8995	  ;;
8996	esac
8997      else
8998        ld_shlibs=no
8999      fi
9000      ;;
9001
9002    netbsd*)
9003      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9004	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9005	wlarc=
9006      else
9007	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9008	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9009      fi
9010      ;;
9011
9012    solaris*)
9013      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9014	ld_shlibs=no
9015	cat <<_LT_EOF 1>&2
9016
9017*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9018*** create shared libraries on Solaris systems.  Therefore, libtool
9019*** is disabling shared libraries support.  We urge you to upgrade GNU
9020*** binutils to release 2.9.1 or newer.  Another option is to modify
9021*** your PATH or compiler configuration so that the native linker is
9022*** used, and then restart.
9023
9024_LT_EOF
9025      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9026	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9027	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9028      else
9029	ld_shlibs=no
9030      fi
9031      ;;
9032
9033    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9034      case `$LD -v 2>&1` in
9035        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9036	ld_shlibs=no
9037	cat <<_LT_EOF 1>&2
9038
9039*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9040*** reliably create shared libraries on SCO systems.  Therefore, libtool
9041*** is disabling shared libraries support.  We urge you to upgrade GNU
9042*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9043*** your PATH or compiler configuration so that the native linker is
9044*** used, and then restart.
9045
9046_LT_EOF
9047	;;
9048	*)
9049	  # For security reasons, it is highly recommended that you always
9050	  # use absolute paths for naming shared libraries, and exclude the
9051	  # DT_RUNPATH tag from executables and libraries.  But doing so
9052	  # requires that you compile everything twice, which is a pain.
9053	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9054	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9055	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9056	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9057	  else
9058	    ld_shlibs=no
9059	  fi
9060	;;
9061      esac
9062      ;;
9063
9064    sunos4*)
9065      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9066      wlarc=
9067      hardcode_direct=yes
9068      hardcode_shlibpath_var=no
9069      ;;
9070
9071    *)
9072      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9073	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9074	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9075      else
9076	ld_shlibs=no
9077      fi
9078      ;;
9079    esac
9080
9081    if test "$ld_shlibs" = no; then
9082      runpath_var=
9083      hardcode_libdir_flag_spec=
9084      export_dynamic_flag_spec=
9085      whole_archive_flag_spec=
9086    fi
9087  else
9088    # PORTME fill in a description of your system's linker (not GNU ld)
9089    case $host_os in
9090    aix3*)
9091      allow_undefined_flag=unsupported
9092      always_export_symbols=yes
9093      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'
9094      # Note: this linker hardcodes the directories in LIBPATH if there
9095      # are no directories specified by -L.
9096      hardcode_minus_L=yes
9097      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9098	# Neither direct hardcoding nor static linking is supported with a
9099	# broken collect2.
9100	hardcode_direct=unsupported
9101      fi
9102      ;;
9103
9104    aix[4-9]*)
9105      if test "$host_cpu" = ia64; then
9106	# On IA64, the linker does run time linking by default, so we don't
9107	# have to do anything special.
9108	aix_use_runtimelinking=no
9109	exp_sym_flag='-Bexport'
9110	no_entry_flag=""
9111      else
9112	# If we're using GNU nm, then we don't want the "-C" option.
9113	# -C means demangle to AIX nm, but means don't demangle with GNU nm
9114	# Also, AIX nm treats weak defined symbols like other global
9115	# defined symbols, whereas GNU nm marks them as "W".
9116	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9117	  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'
9118	else
9119	  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'
9120	fi
9121	aix_use_runtimelinking=no
9122
9123	# Test if we are trying to use run time linking or normal
9124	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9125	# need to do runtime linking.
9126	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9127	  for ld_flag in $LDFLAGS; do
9128	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9129	    aix_use_runtimelinking=yes
9130	    break
9131	  fi
9132	  done
9133	  ;;
9134	esac
9135
9136	exp_sym_flag='-bexport'
9137	no_entry_flag='-bnoentry'
9138      fi
9139
9140      # When large executables or shared objects are built, AIX ld can
9141      # have problems creating the table of contents.  If linking a library
9142      # or program results in "error TOC overflow" add -mminimal-toc to
9143      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9144      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9145
9146      archive_cmds=''
9147      hardcode_direct=yes
9148      hardcode_direct_absolute=yes
9149      hardcode_libdir_separator=':'
9150      link_all_deplibs=yes
9151      file_list_spec='${wl}-f,'
9152
9153      if test "$GCC" = yes; then
9154	case $host_os in aix4.[012]|aix4.[012].*)
9155	# We only want to do this on AIX 4.2 and lower, the check
9156	# below for broken collect2 doesn't work under 4.3+
9157	  collect2name=`${CC} -print-prog-name=collect2`
9158	  if test -f "$collect2name" &&
9159	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9160	  then
9161	  # We have reworked collect2
9162	  :
9163	  else
9164	  # We have old collect2
9165	  hardcode_direct=unsupported
9166	  # It fails to find uninstalled libraries when the uninstalled
9167	  # path is not listed in the libpath.  Setting hardcode_minus_L
9168	  # to unsupported forces relinking
9169	  hardcode_minus_L=yes
9170	  hardcode_libdir_flag_spec='-L$libdir'
9171	  hardcode_libdir_separator=
9172	  fi
9173	  ;;
9174	esac
9175	shared_flag='-shared'
9176	if test "$aix_use_runtimelinking" = yes; then
9177	  shared_flag="$shared_flag "'${wl}-G'
9178	fi
9179      else
9180	# not using gcc
9181	if test "$host_cpu" = ia64; then
9182	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9183	# chokes on -Wl,-G. The following line is correct:
9184	  shared_flag='-G'
9185	else
9186	  if test "$aix_use_runtimelinking" = yes; then
9187	    shared_flag='${wl}-G'
9188	  else
9189	    shared_flag='${wl}-bM:SRE'
9190	  fi
9191	fi
9192      fi
9193
9194      export_dynamic_flag_spec='${wl}-bexpall'
9195      # It seems that -bexpall does not export symbols beginning with
9196      # underscore (_), so it is better to generate a list of symbols to export.
9197      always_export_symbols=yes
9198      if test "$aix_use_runtimelinking" = yes; then
9199	# Warning - without using the other runtime loading flags (-brtl),
9200	# -berok will link without error, but may produce a broken library.
9201	allow_undefined_flag='-berok'
9202        # Determine the default libpath from the value encoded in an
9203        # empty executable.
9204        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9205/* end confdefs.h.  */
9206
9207int
9208main ()
9209{
9210
9211  ;
9212  return 0;
9213}
9214_ACEOF
9215if ac_fn_c_try_link "$LINENO"; then :
9216
9217lt_aix_libpath_sed='
9218    /Import File Strings/,/^$/ {
9219	/^0/ {
9220	    s/^0  *\(.*\)$/\1/
9221	    p
9222	}
9223    }'
9224aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9225# Check for a 64-bit object if we didn't find anything.
9226if test -z "$aix_libpath"; then
9227  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9228fi
9229fi
9230rm -f core conftest.err conftest.$ac_objext \
9231    conftest$ac_exeext conftest.$ac_ext
9232if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9233
9234        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9235        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"
9236      else
9237	if test "$host_cpu" = ia64; then
9238	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9239	  allow_undefined_flag="-z nodefs"
9240	  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"
9241	else
9242	 # Determine the default libpath from the value encoded in an
9243	 # empty executable.
9244	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9245/* end confdefs.h.  */
9246
9247int
9248main ()
9249{
9250
9251  ;
9252  return 0;
9253}
9254_ACEOF
9255if ac_fn_c_try_link "$LINENO"; then :
9256
9257lt_aix_libpath_sed='
9258    /Import File Strings/,/^$/ {
9259	/^0/ {
9260	    s/^0  *\(.*\)$/\1/
9261	    p
9262	}
9263    }'
9264aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9265# Check for a 64-bit object if we didn't find anything.
9266if test -z "$aix_libpath"; then
9267  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9268fi
9269fi
9270rm -f core conftest.err conftest.$ac_objext \
9271    conftest$ac_exeext conftest.$ac_ext
9272if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9273
9274	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9275	  # Warning - without using the other run time loading flags,
9276	  # -berok will link without error, but may produce a broken library.
9277	  no_undefined_flag=' ${wl}-bernotok'
9278	  allow_undefined_flag=' ${wl}-berok'
9279	  if test "$with_gnu_ld" = yes; then
9280	    # We only use this code for GNU lds that support --whole-archive.
9281	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9282	  else
9283	    # Exported symbols can be pulled into shared objects from archives
9284	    whole_archive_flag_spec='$convenience'
9285	  fi
9286	  archive_cmds_need_lc=yes
9287	  # This is similar to how AIX traditionally builds its shared libraries.
9288	  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'
9289	fi
9290      fi
9291      ;;
9292
9293    amigaos*)
9294      case $host_cpu in
9295      powerpc)
9296            # see comment about AmigaOS4 .so support
9297            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9298            archive_expsym_cmds=''
9299        ;;
9300      m68k)
9301            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)'
9302            hardcode_libdir_flag_spec='-L$libdir'
9303            hardcode_minus_L=yes
9304        ;;
9305      esac
9306      ;;
9307
9308    bsdi[45]*)
9309      export_dynamic_flag_spec=-rdynamic
9310      ;;
9311
9312    cygwin* | mingw* | pw32* | cegcc*)
9313      # When not using gcc, we currently assume that we are using
9314      # Microsoft Visual C++.
9315      # hardcode_libdir_flag_spec is actually meaningless, as there is
9316      # no search path for DLLs.
9317      hardcode_libdir_flag_spec=' '
9318      allow_undefined_flag=unsupported
9319      # Tell ltmain to make .lib files, not .a files.
9320      libext=lib
9321      # Tell ltmain to make .dll files, not .so files.
9322      shrext_cmds=".dll"
9323      # FIXME: Setting linknames here is a bad hack.
9324      archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9325      # The linker will automatically build a .lib file if we build a DLL.
9326      old_archive_from_new_cmds='true'
9327      # FIXME: Should let the user specify the lib program.
9328      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9329      fix_srcfile_path='`cygpath -w "$srcfile"`'
9330      enable_shared_with_static_runtimes=yes
9331      ;;
9332
9333    darwin* | rhapsody*)
9334
9335
9336  archive_cmds_need_lc=no
9337  hardcode_direct=no
9338  hardcode_automatic=yes
9339  hardcode_shlibpath_var=unsupported
9340  if test "$lt_cv_ld_force_load" = "yes"; then
9341    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\"`'
9342  else
9343    whole_archive_flag_spec=''
9344  fi
9345  link_all_deplibs=yes
9346  allow_undefined_flag="$_lt_dar_allow_undefined"
9347  case $cc_basename in
9348     ifort*) _lt_dar_can_shared=yes ;;
9349     *) _lt_dar_can_shared=$GCC ;;
9350  esac
9351  if test "$_lt_dar_can_shared" = "yes"; then
9352    output_verbose_link_cmd=func_echo_all
9353    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9354    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9355    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}"
9356    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}"
9357
9358  else
9359  ld_shlibs=no
9360  fi
9361
9362      ;;
9363
9364    dgux*)
9365      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9366      hardcode_libdir_flag_spec='-L$libdir'
9367      hardcode_shlibpath_var=no
9368      ;;
9369
9370    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9371    # support.  Future versions do this automatically, but an explicit c++rt0.o
9372    # does not break anything, and helps significantly (at the cost of a little
9373    # extra space).
9374    freebsd2.2*)
9375      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9376      hardcode_libdir_flag_spec='-R$libdir'
9377      hardcode_direct=yes
9378      hardcode_shlibpath_var=no
9379      ;;
9380
9381    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9382    freebsd2.*)
9383      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9384      hardcode_direct=yes
9385      hardcode_minus_L=yes
9386      hardcode_shlibpath_var=no
9387      ;;
9388
9389    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9390    freebsd* | dragonfly*)
9391      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9392      hardcode_libdir_flag_spec='-R$libdir'
9393      hardcode_direct=yes
9394      hardcode_shlibpath_var=no
9395      ;;
9396
9397    hpux9*)
9398      if test "$GCC" = yes; then
9399	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'
9400      else
9401	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'
9402      fi
9403      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9404      hardcode_libdir_separator=:
9405      hardcode_direct=yes
9406
9407      # hardcode_minus_L: Not really in the search PATH,
9408      # but as the default location of the library.
9409      hardcode_minus_L=yes
9410      export_dynamic_flag_spec='${wl}-E'
9411      ;;
9412
9413    hpux10*)
9414      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9415	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9416      else
9417	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9418      fi
9419      if test "$with_gnu_ld" = no; then
9420	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9421	hardcode_libdir_flag_spec_ld='+b $libdir'
9422	hardcode_libdir_separator=:
9423	hardcode_direct=yes
9424	hardcode_direct_absolute=yes
9425	export_dynamic_flag_spec='${wl}-E'
9426	# hardcode_minus_L: Not really in the search PATH,
9427	# but as the default location of the library.
9428	hardcode_minus_L=yes
9429      fi
9430      ;;
9431
9432    hpux11*)
9433      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9434	case $host_cpu in
9435	hppa*64*)
9436	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9437	  ;;
9438	ia64*)
9439	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9440	  ;;
9441	*)
9442	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9443	  ;;
9444	esac
9445      else
9446	case $host_cpu in
9447	hppa*64*)
9448	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9449	  ;;
9450	ia64*)
9451	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9452	  ;;
9453	*)
9454
9455	  # Older versions of the 11.00 compiler do not understand -b yet
9456	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9457	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9458$as_echo_n "checking if $CC understands -b... " >&6; }
9459if ${lt_cv_prog_compiler__b+:} false; then :
9460  $as_echo_n "(cached) " >&6
9461else
9462  lt_cv_prog_compiler__b=no
9463   save_LDFLAGS="$LDFLAGS"
9464   LDFLAGS="$LDFLAGS -b"
9465   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9466   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9467     # The linker can only warn and ignore the option if not recognized
9468     # So say no if there are warnings
9469     if test -s conftest.err; then
9470       # Append any errors to the config.log.
9471       cat conftest.err 1>&5
9472       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9473       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9474       if diff conftest.exp conftest.er2 >/dev/null; then
9475         lt_cv_prog_compiler__b=yes
9476       fi
9477     else
9478       lt_cv_prog_compiler__b=yes
9479     fi
9480   fi
9481   $RM -r conftest*
9482   LDFLAGS="$save_LDFLAGS"
9483
9484fi
9485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9486$as_echo "$lt_cv_prog_compiler__b" >&6; }
9487
9488if test x"$lt_cv_prog_compiler__b" = xyes; then
9489    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9490else
9491    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9492fi
9493
9494	  ;;
9495	esac
9496      fi
9497      if test "$with_gnu_ld" = no; then
9498	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9499	hardcode_libdir_separator=:
9500
9501	case $host_cpu in
9502	hppa*64*|ia64*)
9503	  hardcode_direct=no
9504	  hardcode_shlibpath_var=no
9505	  ;;
9506	*)
9507	  hardcode_direct=yes
9508	  hardcode_direct_absolute=yes
9509	  export_dynamic_flag_spec='${wl}-E'
9510
9511	  # hardcode_minus_L: Not really in the search PATH,
9512	  # but as the default location of the library.
9513	  hardcode_minus_L=yes
9514	  ;;
9515	esac
9516      fi
9517      ;;
9518
9519    irix5* | irix6* | nonstopux*)
9520      if test "$GCC" = yes; then
9521	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'
9522	# Try to use the -exported_symbol ld option, if it does not
9523	# work, assume that -exports_file does not work either and
9524	# implicitly export all symbols.
9525        save_LDFLAGS="$LDFLAGS"
9526        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9527        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9528/* end confdefs.h.  */
9529int foo(void) {}
9530_ACEOF
9531if ac_fn_c_try_link "$LINENO"; then :
9532  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'
9533
9534fi
9535rm -f core conftest.err conftest.$ac_objext \
9536    conftest$ac_exeext conftest.$ac_ext
9537        LDFLAGS="$save_LDFLAGS"
9538      else
9539	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'
9540	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'
9541      fi
9542      archive_cmds_need_lc='no'
9543      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9544      hardcode_libdir_separator=:
9545      inherit_rpath=yes
9546      link_all_deplibs=yes
9547      ;;
9548
9549    netbsd*)
9550      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9551	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9552      else
9553	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9554      fi
9555      hardcode_libdir_flag_spec='-R$libdir'
9556      hardcode_direct=yes
9557      hardcode_shlibpath_var=no
9558      ;;
9559
9560    newsos6)
9561      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9562      hardcode_direct=yes
9563      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9564      hardcode_libdir_separator=:
9565      hardcode_shlibpath_var=no
9566      ;;
9567
9568    *nto* | *qnx*)
9569      ;;
9570
9571    openbsd*)
9572      if test -f /usr/libexec/ld.so; then
9573	hardcode_direct=yes
9574	hardcode_shlibpath_var=no
9575	hardcode_direct_absolute=yes
9576	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9577	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9578	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9579	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9580	  export_dynamic_flag_spec='${wl}-E'
9581	else
9582	  case $host_os in
9583	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9584	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9585	     hardcode_libdir_flag_spec='-R$libdir'
9586	     ;;
9587	   *)
9588	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9589	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9590	     ;;
9591	  esac
9592	fi
9593      else
9594	ld_shlibs=no
9595      fi
9596      ;;
9597
9598    os2*)
9599      hardcode_libdir_flag_spec='-L$libdir'
9600      hardcode_minus_L=yes
9601      allow_undefined_flag=unsupported
9602      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'
9603      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9604      ;;
9605
9606    osf3*)
9607      if test "$GCC" = yes; then
9608	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9609	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'
9610      else
9611	allow_undefined_flag=' -expect_unresolved \*'
9612	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'
9613      fi
9614      archive_cmds_need_lc='no'
9615      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9616      hardcode_libdir_separator=:
9617      ;;
9618
9619    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9620      if test "$GCC" = yes; then
9621	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9622	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'
9623	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9624      else
9625	allow_undefined_flag=' -expect_unresolved \*'
9626	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'
9627	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~
9628	$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'
9629
9630	# Both c and cxx compiler support -rpath directly
9631	hardcode_libdir_flag_spec='-rpath $libdir'
9632      fi
9633      archive_cmds_need_lc='no'
9634      hardcode_libdir_separator=:
9635      ;;
9636
9637    solaris*)
9638      no_undefined_flag=' -z defs'
9639      if test "$GCC" = yes; then
9640	wlarc='${wl}'
9641	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9642	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9643	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9644      else
9645	case `$CC -V 2>&1` in
9646	*"Compilers 5.0"*)
9647	  wlarc=''
9648	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9649	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9650	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9651	  ;;
9652	*)
9653	  wlarc='${wl}'
9654	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9655	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9656	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9657	  ;;
9658	esac
9659      fi
9660      hardcode_libdir_flag_spec='-R$libdir'
9661      hardcode_shlibpath_var=no
9662      case $host_os in
9663      solaris2.[0-5] | solaris2.[0-5].*) ;;
9664      *)
9665	# The compiler driver will combine and reorder linker options,
9666	# but understands `-z linker_flag'.  GCC discards it without `$wl',
9667	# but is careful enough not to reorder.
9668	# Supported since Solaris 2.6 (maybe 2.5.1?)
9669	if test "$GCC" = yes; then
9670	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9671	else
9672	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9673	fi
9674	;;
9675      esac
9676      link_all_deplibs=yes
9677      ;;
9678
9679    sunos4*)
9680      if test "x$host_vendor" = xsequent; then
9681	# Use $CC to link under sequent, because it throws in some extra .o
9682	# files that make .init and .fini sections work.
9683	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9684      else
9685	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9686      fi
9687      hardcode_libdir_flag_spec='-L$libdir'
9688      hardcode_direct=yes
9689      hardcode_minus_L=yes
9690      hardcode_shlibpath_var=no
9691      ;;
9692
9693    sysv4)
9694      case $host_vendor in
9695	sni)
9696	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9697	  hardcode_direct=yes # is this really true???
9698	;;
9699	siemens)
9700	  ## LD is ld it makes a PLAMLIB
9701	  ## CC just makes a GrossModule.
9702	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9703	  reload_cmds='$CC -r -o $output$reload_objs'
9704	  hardcode_direct=no
9705        ;;
9706	motorola)
9707	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9708	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9709	;;
9710      esac
9711      runpath_var='LD_RUN_PATH'
9712      hardcode_shlibpath_var=no
9713      ;;
9714
9715    sysv4.3*)
9716      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9717      hardcode_shlibpath_var=no
9718      export_dynamic_flag_spec='-Bexport'
9719      ;;
9720
9721    sysv4*MP*)
9722      if test -d /usr/nec; then
9723	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9724	hardcode_shlibpath_var=no
9725	runpath_var=LD_RUN_PATH
9726	hardcode_runpath_var=yes
9727	ld_shlibs=yes
9728      fi
9729      ;;
9730
9731    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9732      no_undefined_flag='${wl}-z,text'
9733      archive_cmds_need_lc=no
9734      hardcode_shlibpath_var=no
9735      runpath_var='LD_RUN_PATH'
9736
9737      if test "$GCC" = yes; then
9738	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9739	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9740      else
9741	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9742	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9743      fi
9744      ;;
9745
9746    sysv5* | sco3.2v5* | sco5v6*)
9747      # Note: We can NOT use -z defs as we might desire, because we do not
9748      # link with -lc, and that would cause any symbols used from libc to
9749      # always be unresolved, which means just about no library would
9750      # ever link correctly.  If we're not using GNU ld we use -z text
9751      # though, which does catch some bad symbols but isn't as heavy-handed
9752      # as -z defs.
9753      no_undefined_flag='${wl}-z,text'
9754      allow_undefined_flag='${wl}-z,nodefs'
9755      archive_cmds_need_lc=no
9756      hardcode_shlibpath_var=no
9757      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9758      hardcode_libdir_separator=':'
9759      link_all_deplibs=yes
9760      export_dynamic_flag_spec='${wl}-Bexport'
9761      runpath_var='LD_RUN_PATH'
9762
9763      if test "$GCC" = yes; then
9764	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9765	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9766      else
9767	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9768	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9769      fi
9770      ;;
9771
9772    uts4*)
9773      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9774      hardcode_libdir_flag_spec='-L$libdir'
9775      hardcode_shlibpath_var=no
9776      ;;
9777
9778    *)
9779      ld_shlibs=no
9780      ;;
9781    esac
9782
9783    if test x$host_vendor = xsni; then
9784      case $host in
9785      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9786	export_dynamic_flag_spec='${wl}-Blargedynsym'
9787	;;
9788      esac
9789    fi
9790  fi
9791
9792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9793$as_echo "$ld_shlibs" >&6; }
9794test "$ld_shlibs" = no && can_build_shared=no
9795
9796with_gnu_ld=$with_gnu_ld
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812#
9813# Do we need to explicitly link libc?
9814#
9815case "x$archive_cmds_need_lc" in
9816x|xyes)
9817  # Assume -lc should be added
9818  archive_cmds_need_lc=yes
9819
9820  if test "$enable_shared" = yes && test "$GCC" = yes; then
9821    case $archive_cmds in
9822    *'~'*)
9823      # FIXME: we may have to deal with multi-command sequences.
9824      ;;
9825    '$CC '*)
9826      # Test whether the compiler implicitly links with -lc since on some
9827      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9828      # to ld, don't add -lc before -lgcc.
9829      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9830$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9831if ${lt_cv_archive_cmds_need_lc+:} false; then :
9832  $as_echo_n "(cached) " >&6
9833else
9834  $RM conftest*
9835	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9836
9837	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9838  (eval $ac_compile) 2>&5
9839  ac_status=$?
9840  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9841  test $ac_status = 0; } 2>conftest.err; then
9842	  soname=conftest
9843	  lib=conftest
9844	  libobjs=conftest.$ac_objext
9845	  deplibs=
9846	  wl=$lt_prog_compiler_wl
9847	  pic_flag=$lt_prog_compiler_pic
9848	  compiler_flags=-v
9849	  linker_flags=-v
9850	  verstring=
9851	  output_objdir=.
9852	  libname=conftest
9853	  lt_save_allow_undefined_flag=$allow_undefined_flag
9854	  allow_undefined_flag=
9855	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9856  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9857  ac_status=$?
9858  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9859  test $ac_status = 0; }
9860	  then
9861	    lt_cv_archive_cmds_need_lc=no
9862	  else
9863	    lt_cv_archive_cmds_need_lc=yes
9864	  fi
9865	  allow_undefined_flag=$lt_save_allow_undefined_flag
9866	else
9867	  cat conftest.err 1>&5
9868	fi
9869	$RM conftest*
9870
9871fi
9872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9873$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9874      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9875      ;;
9876    esac
9877  fi
9878  ;;
9879esac
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10038$as_echo_n "checking dynamic linker characteristics... " >&6; }
10039
10040if test "$GCC" = yes; then
10041  case $host_os in
10042    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10043    *) lt_awk_arg="/^libraries:/" ;;
10044  esac
10045  case $host_os in
10046    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10047    *) lt_sed_strip_eq="s,=/,/,g" ;;
10048  esac
10049  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10050  case $lt_search_path_spec in
10051  *\;*)
10052    # if the path contains ";" then we assume it to be the separator
10053    # otherwise default to the standard path separator (i.e. ":") - it is
10054    # assumed that no part of a normal pathname contains ";" but that should
10055    # okay in the real world where ";" in dirpaths is itself problematic.
10056    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10057    ;;
10058  *)
10059    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10060    ;;
10061  esac
10062  # Ok, now we have the path, separated by spaces, we can step through it
10063  # and add multilib dir if necessary.
10064  lt_tmp_lt_search_path_spec=
10065  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10066  for lt_sys_path in $lt_search_path_spec; do
10067    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10068      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10069    else
10070      test -d "$lt_sys_path" && \
10071	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10072    fi
10073  done
10074  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10075BEGIN {RS=" "; FS="/|\n";} {
10076  lt_foo="";
10077  lt_count=0;
10078  for (lt_i = NF; lt_i > 0; lt_i--) {
10079    if ($lt_i != "" && $lt_i != ".") {
10080      if ($lt_i == "..") {
10081        lt_count++;
10082      } else {
10083        if (lt_count == 0) {
10084          lt_foo="/" $lt_i lt_foo;
10085        } else {
10086          lt_count--;
10087        }
10088      }
10089    }
10090  }
10091  if (lt_foo != "") { lt_freq[lt_foo]++; }
10092  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10093}'`
10094  # AWK program above erroneously prepends '/' to C:/dos/paths
10095  # for these hosts.
10096  case $host_os in
10097    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10098      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10099  esac
10100  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10101else
10102  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10103fi
10104library_names_spec=
10105libname_spec='lib$name'
10106soname_spec=
10107shrext_cmds=".so"
10108postinstall_cmds=
10109postuninstall_cmds=
10110finish_cmds=
10111finish_eval=
10112shlibpath_var=
10113shlibpath_overrides_runpath=unknown
10114version_type=none
10115dynamic_linker="$host_os ld.so"
10116sys_lib_dlsearch_path_spec="/lib /usr/lib"
10117need_lib_prefix=unknown
10118hardcode_into_libs=no
10119
10120# when you set need_version to no, make sure it does not cause -set_version
10121# flags to be left without arguments
10122need_version=unknown
10123
10124case $host_os in
10125aix3*)
10126  version_type=linux
10127  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10128  shlibpath_var=LIBPATH
10129
10130  # AIX 3 has no versioning support, so we append a major version to the name.
10131  soname_spec='${libname}${release}${shared_ext}$major'
10132  ;;
10133
10134aix[4-9]*)
10135  version_type=linux
10136  need_lib_prefix=no
10137  need_version=no
10138  hardcode_into_libs=yes
10139  if test "$host_cpu" = ia64; then
10140    # AIX 5 supports IA64
10141    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10142    shlibpath_var=LD_LIBRARY_PATH
10143  else
10144    # With GCC up to 2.95.x, collect2 would create an import file
10145    # for dependence libraries.  The import file would start with
10146    # the line `#! .'.  This would cause the generated library to
10147    # depend on `.', always an invalid library.  This was fixed in
10148    # development snapshots of GCC prior to 3.0.
10149    case $host_os in
10150      aix4 | aix4.[01] | aix4.[01].*)
10151      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10152	   echo ' yes '
10153	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10154	:
10155      else
10156	can_build_shared=no
10157      fi
10158      ;;
10159    esac
10160    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10161    # soname into executable. Probably we can add versioning support to
10162    # collect2, so additional links can be useful in future.
10163    if test "$aix_use_runtimelinking" = yes; then
10164      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10165      # instead of lib<name>.a to let people know that these are not
10166      # typical AIX shared libraries.
10167      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10168    else
10169      # We preserve .a as extension for shared libraries through AIX4.2
10170      # and later when we are not doing run time linking.
10171      library_names_spec='${libname}${release}.a $libname.a'
10172      soname_spec='${libname}${release}${shared_ext}$major'
10173    fi
10174    shlibpath_var=LIBPATH
10175  fi
10176  ;;
10177
10178amigaos*)
10179  case $host_cpu in
10180  powerpc)
10181    # Since July 2007 AmigaOS4 officially supports .so libraries.
10182    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10183    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10184    ;;
10185  m68k)
10186    library_names_spec='$libname.ixlibrary $libname.a'
10187    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10188    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'
10189    ;;
10190  esac
10191  ;;
10192
10193beos*)
10194  library_names_spec='${libname}${shared_ext}'
10195  dynamic_linker="$host_os ld.so"
10196  shlibpath_var=LIBRARY_PATH
10197  ;;
10198
10199bsdi[45]*)
10200  version_type=linux
10201  need_version=no
10202  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10203  soname_spec='${libname}${release}${shared_ext}$major'
10204  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10205  shlibpath_var=LD_LIBRARY_PATH
10206  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10207  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10208  # the default ld.so.conf also contains /usr/contrib/lib and
10209  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10210  # libtool to hard-code these into programs
10211  ;;
10212
10213cygwin* | mingw* | pw32* | cegcc*)
10214  version_type=windows
10215  shrext_cmds=".dll"
10216  need_version=no
10217  need_lib_prefix=no
10218
10219  case $GCC,$host_os in
10220  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10221    library_names_spec='$libname.dll.a'
10222    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10223    postinstall_cmds='base_file=`basename \${file}`~
10224      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10225      dldir=$destdir/`dirname \$dlpath`~
10226      test -d \$dldir || mkdir -p \$dldir~
10227      $install_prog $dir/$dlname \$dldir/$dlname~
10228      chmod a+x \$dldir/$dlname~
10229      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10230        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10231      fi'
10232    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10233      dlpath=$dir/\$dldll~
10234       $RM \$dlpath'
10235    shlibpath_overrides_runpath=yes
10236
10237    case $host_os in
10238    cygwin*)
10239      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10240      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10241
10242      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10243      ;;
10244    mingw* | cegcc*)
10245      # MinGW DLLs use traditional 'lib' prefix
10246      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10247      ;;
10248    pw32*)
10249      # pw32 DLLs use 'pw' prefix rather than 'lib'
10250      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10251      ;;
10252    esac
10253    ;;
10254
10255  *)
10256    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10257    ;;
10258  esac
10259  dynamic_linker='Win32 ld.exe'
10260  # FIXME: first we should search . and the directory the executable is in
10261  shlibpath_var=PATH
10262  ;;
10263
10264darwin* | rhapsody*)
10265  dynamic_linker="$host_os dyld"
10266  version_type=darwin
10267  need_lib_prefix=no
10268  need_version=no
10269  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10270  soname_spec='${libname}${release}${major}$shared_ext'
10271  shlibpath_overrides_runpath=yes
10272  shlibpath_var=DYLD_LIBRARY_PATH
10273  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10274
10275  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10276  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10277  ;;
10278
10279dgux*)
10280  version_type=linux
10281  need_lib_prefix=no
10282  need_version=no
10283  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10284  soname_spec='${libname}${release}${shared_ext}$major'
10285  shlibpath_var=LD_LIBRARY_PATH
10286  ;;
10287
10288freebsd* | dragonfly*)
10289  # DragonFly does not have aout.  When/if they implement a new
10290  # versioning mechanism, adjust this.
10291  if test -x /usr/bin/objformat; then
10292    objformat=`/usr/bin/objformat`
10293  else
10294    case $host_os in
10295    freebsd[23].*) objformat=aout ;;
10296    *) objformat=elf ;;
10297    esac
10298  fi
10299  version_type=freebsd-$objformat
10300  case $version_type in
10301    freebsd-elf*)
10302      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10303      need_version=no
10304      need_lib_prefix=no
10305      ;;
10306    freebsd-*)
10307      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10308      need_version=yes
10309      ;;
10310  esac
10311  shlibpath_var=LD_LIBRARY_PATH
10312  case $host_os in
10313  freebsd2.*)
10314    shlibpath_overrides_runpath=yes
10315    ;;
10316  freebsd3.[01]* | freebsdelf3.[01]*)
10317    shlibpath_overrides_runpath=yes
10318    hardcode_into_libs=yes
10319    ;;
10320  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10321  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10322    shlibpath_overrides_runpath=no
10323    hardcode_into_libs=yes
10324    ;;
10325  *) # from 4.6 on, and DragonFly
10326    shlibpath_overrides_runpath=yes
10327    hardcode_into_libs=yes
10328    ;;
10329  esac
10330  ;;
10331
10332haiku*)
10333  version_type=linux
10334  need_lib_prefix=no
10335  need_version=no
10336  dynamic_linker="$host_os runtime_loader"
10337  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10338  soname_spec='${libname}${release}${shared_ext}$major'
10339  shlibpath_var=LIBRARY_PATH
10340  shlibpath_overrides_runpath=yes
10341  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10342  hardcode_into_libs=yes
10343  ;;
10344
10345hpux9* | hpux10* | hpux11*)
10346  # Give a soname corresponding to the major version so that dld.sl refuses to
10347  # link against other versions.
10348  version_type=sunos
10349  need_lib_prefix=no
10350  need_version=no
10351  case $host_cpu in
10352  ia64*)
10353    shrext_cmds='.so'
10354    hardcode_into_libs=yes
10355    dynamic_linker="$host_os dld.so"
10356    shlibpath_var=LD_LIBRARY_PATH
10357    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10358    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10359    soname_spec='${libname}${release}${shared_ext}$major'
10360    if test "X$HPUX_IA64_MODE" = X32; then
10361      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10362    else
10363      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10364    fi
10365    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10366    ;;
10367  hppa*64*)
10368    shrext_cmds='.sl'
10369    hardcode_into_libs=yes
10370    dynamic_linker="$host_os dld.sl"
10371    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10372    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10373    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10374    soname_spec='${libname}${release}${shared_ext}$major'
10375    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10376    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10377    ;;
10378  *)
10379    shrext_cmds='.sl'
10380    dynamic_linker="$host_os dld.sl"
10381    shlibpath_var=SHLIB_PATH
10382    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10383    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10384    soname_spec='${libname}${release}${shared_ext}$major'
10385    ;;
10386  esac
10387  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10388  postinstall_cmds='chmod 555 $lib'
10389  # or fails outright, so override atomically:
10390  install_override_mode=555
10391  ;;
10392
10393interix[3-9]*)
10394  version_type=linux
10395  need_lib_prefix=no
10396  need_version=no
10397  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10398  soname_spec='${libname}${release}${shared_ext}$major'
10399  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10400  shlibpath_var=LD_LIBRARY_PATH
10401  shlibpath_overrides_runpath=no
10402  hardcode_into_libs=yes
10403  ;;
10404
10405irix5* | irix6* | nonstopux*)
10406  case $host_os in
10407    nonstopux*) version_type=nonstopux ;;
10408    *)
10409	if test "$lt_cv_prog_gnu_ld" = yes; then
10410		version_type=linux
10411	else
10412		version_type=irix
10413	fi ;;
10414  esac
10415  need_lib_prefix=no
10416  need_version=no
10417  soname_spec='${libname}${release}${shared_ext}$major'
10418  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10419  case $host_os in
10420  irix5* | nonstopux*)
10421    libsuff= shlibsuff=
10422    ;;
10423  *)
10424    case $LD in # libtool.m4 will add one of these switches to LD
10425    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10426      libsuff= shlibsuff= libmagic=32-bit;;
10427    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10428      libsuff=32 shlibsuff=N32 libmagic=N32;;
10429    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10430      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10431    *) libsuff= shlibsuff= libmagic=never-match;;
10432    esac
10433    ;;
10434  esac
10435  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10436  shlibpath_overrides_runpath=no
10437  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10438  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10439  hardcode_into_libs=yes
10440  ;;
10441
10442# No shared lib support for Linux oldld, aout, or coff.
10443linux*oldld* | linux*aout* | linux*coff*)
10444  dynamic_linker=no
10445  ;;
10446
10447# This must be Linux ELF.
10448
10449# uclinux* changes (here and below) have been submitted to the libtool
10450# project, but have not yet been accepted: they are GCC-local changes
10451# for the time being.  (See
10452# https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
10453linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
10454  version_type=linux
10455  need_lib_prefix=no
10456  need_version=no
10457  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10458  soname_spec='${libname}${release}${shared_ext}$major'
10459  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10460  shlibpath_var=LD_LIBRARY_PATH
10461  shlibpath_overrides_runpath=no
10462
10463  # Some binutils ld are patched to set DT_RUNPATH
10464  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10465  $as_echo_n "(cached) " >&6
10466else
10467  lt_cv_shlibpath_overrides_runpath=no
10468    save_LDFLAGS=$LDFLAGS
10469    save_libdir=$libdir
10470    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10471	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10472    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10473/* end confdefs.h.  */
10474
10475int
10476main ()
10477{
10478
10479  ;
10480  return 0;
10481}
10482_ACEOF
10483if ac_fn_c_try_link "$LINENO"; then :
10484  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10485  lt_cv_shlibpath_overrides_runpath=yes
10486fi
10487fi
10488rm -f core conftest.err conftest.$ac_objext \
10489    conftest$ac_exeext conftest.$ac_ext
10490    LDFLAGS=$save_LDFLAGS
10491    libdir=$save_libdir
10492
10493fi
10494
10495  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10496
10497  # This implies no fast_install, which is unacceptable.
10498  # Some rework will be needed to allow for fast_install
10499  # before this can be enabled.
10500  hardcode_into_libs=yes
10501
10502  # Append ld.so.conf contents to the search path
10503  if test -f /etc/ld.so.conf; then
10504    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' ' '`
10505    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10506  fi
10507
10508  # We used to test for /lib/ld.so.1 and disable shared libraries on
10509  # powerpc, because MkLinux only supported shared libraries with the
10510  # GNU dynamic linker.  Since this was broken with cross compilers,
10511  # most powerpc-linux boxes support dynamic linking these days and
10512  # people can always --disable-shared, the test was removed, and we
10513  # assume the GNU/Linux dynamic linker is in use.
10514  dynamic_linker='GNU/Linux ld.so'
10515  ;;
10516
10517netbsd*)
10518  version_type=sunos
10519  need_lib_prefix=no
10520  need_version=no
10521  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10522    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10523    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10524    dynamic_linker='NetBSD (a.out) ld.so'
10525  else
10526    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10527    soname_spec='${libname}${release}${shared_ext}$major'
10528    dynamic_linker='NetBSD ld.elf_so'
10529  fi
10530  shlibpath_var=LD_LIBRARY_PATH
10531  shlibpath_overrides_runpath=yes
10532  hardcode_into_libs=yes
10533  ;;
10534
10535newsos6)
10536  version_type=linux
10537  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10538  shlibpath_var=LD_LIBRARY_PATH
10539  shlibpath_overrides_runpath=yes
10540  ;;
10541
10542*nto* | *qnx*)
10543  version_type=qnx
10544  need_lib_prefix=no
10545  need_version=no
10546  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10547  soname_spec='${libname}${release}${shared_ext}$major'
10548  shlibpath_var=LD_LIBRARY_PATH
10549  shlibpath_overrides_runpath=no
10550  hardcode_into_libs=yes
10551  dynamic_linker='ldqnx.so'
10552  ;;
10553
10554openbsd*)
10555  version_type=sunos
10556  sys_lib_dlsearch_path_spec="/usr/lib"
10557  need_lib_prefix=no
10558  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10559  case $host_os in
10560    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
10561    *)				need_version=no  ;;
10562  esac
10563  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10564  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10565  shlibpath_var=LD_LIBRARY_PATH
10566  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10567    case $host_os in
10568      openbsd2.[89] | openbsd2.[89].*)
10569	shlibpath_overrides_runpath=no
10570	;;
10571      *)
10572	shlibpath_overrides_runpath=yes
10573	;;
10574      esac
10575  else
10576    shlibpath_overrides_runpath=yes
10577  fi
10578  ;;
10579
10580os2*)
10581  libname_spec='$name'
10582  shrext_cmds=".dll"
10583  need_lib_prefix=no
10584  library_names_spec='$libname${shared_ext} $libname.a'
10585  dynamic_linker='OS/2 ld.exe'
10586  shlibpath_var=LIBPATH
10587  ;;
10588
10589osf3* | osf4* | osf5*)
10590  version_type=osf
10591  need_lib_prefix=no
10592  need_version=no
10593  soname_spec='${libname}${release}${shared_ext}$major'
10594  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10595  shlibpath_var=LD_LIBRARY_PATH
10596  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10597  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10598  ;;
10599
10600rdos*)
10601  dynamic_linker=no
10602  ;;
10603
10604solaris*)
10605  version_type=linux
10606  need_lib_prefix=no
10607  need_version=no
10608  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10609  soname_spec='${libname}${release}${shared_ext}$major'
10610  shlibpath_var=LD_LIBRARY_PATH
10611  shlibpath_overrides_runpath=yes
10612  hardcode_into_libs=yes
10613  # ldd complains unless libraries are executable
10614  postinstall_cmds='chmod +x $lib'
10615  ;;
10616
10617sunos4*)
10618  version_type=sunos
10619  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10620  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10621  shlibpath_var=LD_LIBRARY_PATH
10622  shlibpath_overrides_runpath=yes
10623  if test "$with_gnu_ld" = yes; then
10624    need_lib_prefix=no
10625  fi
10626  need_version=yes
10627  ;;
10628
10629sysv4 | sysv4.3*)
10630  version_type=linux
10631  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10632  soname_spec='${libname}${release}${shared_ext}$major'
10633  shlibpath_var=LD_LIBRARY_PATH
10634  case $host_vendor in
10635    sni)
10636      shlibpath_overrides_runpath=no
10637      need_lib_prefix=no
10638      runpath_var=LD_RUN_PATH
10639      ;;
10640    siemens)
10641      need_lib_prefix=no
10642      ;;
10643    motorola)
10644      need_lib_prefix=no
10645      need_version=no
10646      shlibpath_overrides_runpath=no
10647      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10648      ;;
10649  esac
10650  ;;
10651
10652sysv4*MP*)
10653  if test -d /usr/nec ;then
10654    version_type=linux
10655    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10656    soname_spec='$libname${shared_ext}.$major'
10657    shlibpath_var=LD_LIBRARY_PATH
10658  fi
10659  ;;
10660
10661sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10662  version_type=freebsd-elf
10663  need_lib_prefix=no
10664  need_version=no
10665  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10666  soname_spec='${libname}${release}${shared_ext}$major'
10667  shlibpath_var=LD_LIBRARY_PATH
10668  shlibpath_overrides_runpath=yes
10669  hardcode_into_libs=yes
10670  if test "$with_gnu_ld" = yes; then
10671    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10672  else
10673    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10674    case $host_os in
10675      sco3.2v5*)
10676        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10677	;;
10678    esac
10679  fi
10680  sys_lib_dlsearch_path_spec='/usr/lib'
10681  ;;
10682
10683tpf*)
10684  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10685  version_type=linux
10686  need_lib_prefix=no
10687  need_version=no
10688  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10689  shlibpath_var=LD_LIBRARY_PATH
10690  shlibpath_overrides_runpath=no
10691  hardcode_into_libs=yes
10692  ;;
10693
10694uts4*)
10695  version_type=linux
10696  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10697  soname_spec='${libname}${release}${shared_ext}$major'
10698  shlibpath_var=LD_LIBRARY_PATH
10699  ;;
10700
10701# Shared libraries for VwWorks, >= 7 only at this stage
10702# and (fpic) still incompatible with "large" code models
10703# in a few configurations. Only for RTP mode in any case,
10704# and upon explicit request at configure time.
10705vxworks7*)
10706  dynamic_linker=no
10707  case ${with_multisubdir}-${enable_shared} in
10708    *large*)
10709      ;;
10710    *mrtp*-yes)
10711      version_type=linux
10712      need_lib_prefix=no
10713      need_version=no
10714      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10715      soname_spec='${libname}${release}${shared_ext}$major'
10716      dynamic_linker="$host_os module_loader"
10717      ;;
10718  esac
10719  ;;
10720*)
10721  dynamic_linker=no
10722  ;;
10723esac
10724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10725$as_echo "$dynamic_linker" >&6; }
10726test "$dynamic_linker" = no && can_build_shared=no
10727
10728variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10729if test "$GCC" = yes; then
10730  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10731fi
10732
10733if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10734  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10735fi
10736if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10737  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10738fi
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10832$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10833hardcode_action=
10834if test -n "$hardcode_libdir_flag_spec" ||
10835   test -n "$runpath_var" ||
10836   test "X$hardcode_automatic" = "Xyes" ; then
10837
10838  # We can hardcode non-existent directories.
10839  if test "$hardcode_direct" != no &&
10840     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10841     # have to relink, otherwise we might link with an installed library
10842     # when we should be linking with a yet-to-be-installed one
10843     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10844     test "$hardcode_minus_L" != no; then
10845    # Linking always hardcodes the temporary library directory.
10846    hardcode_action=relink
10847  else
10848    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10849    hardcode_action=immediate
10850  fi
10851else
10852  # We cannot hardcode anything, or else we can only hardcode existing
10853  # directories.
10854  hardcode_action=unsupported
10855fi
10856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10857$as_echo "$hardcode_action" >&6; }
10858
10859if test "$hardcode_action" = relink ||
10860   test "$inherit_rpath" = yes; then
10861  # Fast installation is not supported
10862  enable_fast_install=no
10863elif test "$shlibpath_overrides_runpath" = yes ||
10864     test "$enable_shared" = no; then
10865  # Fast installation is not necessary
10866  enable_fast_install=needless
10867fi
10868
10869
10870
10871
10872
10873
10874  if test "x$enable_dlopen" != xyes; then
10875  enable_dlopen=unknown
10876  enable_dlopen_self=unknown
10877  enable_dlopen_self_static=unknown
10878else
10879  lt_cv_dlopen=no
10880  lt_cv_dlopen_libs=
10881
10882  case $host_os in
10883  beos*)
10884    lt_cv_dlopen="load_add_on"
10885    lt_cv_dlopen_libs=
10886    lt_cv_dlopen_self=yes
10887    ;;
10888
10889  mingw* | pw32* | cegcc*)
10890    lt_cv_dlopen="LoadLibrary"
10891    lt_cv_dlopen_libs=
10892    ;;
10893
10894  cygwin*)
10895    lt_cv_dlopen="dlopen"
10896    lt_cv_dlopen_libs=
10897    ;;
10898
10899  darwin*)
10900  # if libdl is installed we need to link against it
10901    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10902$as_echo_n "checking for dlopen in -ldl... " >&6; }
10903if ${ac_cv_lib_dl_dlopen+:} false; then :
10904  $as_echo_n "(cached) " >&6
10905else
10906  ac_check_lib_save_LIBS=$LIBS
10907LIBS="-ldl  $LIBS"
10908cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10909/* end confdefs.h.  */
10910
10911/* Override any GCC internal prototype to avoid an error.
10912   Use char because int might match the return type of a GCC
10913   builtin and then its argument prototype would still apply.  */
10914#ifdef __cplusplus
10915extern "C"
10916#endif
10917char dlopen ();
10918int
10919main ()
10920{
10921return dlopen ();
10922  ;
10923  return 0;
10924}
10925_ACEOF
10926if ac_fn_c_try_link "$LINENO"; then :
10927  ac_cv_lib_dl_dlopen=yes
10928else
10929  ac_cv_lib_dl_dlopen=no
10930fi
10931rm -f core conftest.err conftest.$ac_objext \
10932    conftest$ac_exeext conftest.$ac_ext
10933LIBS=$ac_check_lib_save_LIBS
10934fi
10935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10936$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10937if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10938  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10939else
10940
10941    lt_cv_dlopen="dyld"
10942    lt_cv_dlopen_libs=
10943    lt_cv_dlopen_self=yes
10944
10945fi
10946
10947    ;;
10948
10949  *)
10950    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10951if test "x$ac_cv_func_shl_load" = xyes; then :
10952  lt_cv_dlopen="shl_load"
10953else
10954  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10955$as_echo_n "checking for shl_load in -ldld... " >&6; }
10956if ${ac_cv_lib_dld_shl_load+:} false; then :
10957  $as_echo_n "(cached) " >&6
10958else
10959  ac_check_lib_save_LIBS=$LIBS
10960LIBS="-ldld  $LIBS"
10961cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10962/* end confdefs.h.  */
10963
10964/* Override any GCC internal prototype to avoid an error.
10965   Use char because int might match the return type of a GCC
10966   builtin and then its argument prototype would still apply.  */
10967#ifdef __cplusplus
10968extern "C"
10969#endif
10970char shl_load ();
10971int
10972main ()
10973{
10974return shl_load ();
10975  ;
10976  return 0;
10977}
10978_ACEOF
10979if ac_fn_c_try_link "$LINENO"; then :
10980  ac_cv_lib_dld_shl_load=yes
10981else
10982  ac_cv_lib_dld_shl_load=no
10983fi
10984rm -f core conftest.err conftest.$ac_objext \
10985    conftest$ac_exeext conftest.$ac_ext
10986LIBS=$ac_check_lib_save_LIBS
10987fi
10988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10989$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10990if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10991  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10992else
10993  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10994if test "x$ac_cv_func_dlopen" = xyes; then :
10995  lt_cv_dlopen="dlopen"
10996else
10997  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10998$as_echo_n "checking for dlopen in -ldl... " >&6; }
10999if ${ac_cv_lib_dl_dlopen+:} false; then :
11000  $as_echo_n "(cached) " >&6
11001else
11002  ac_check_lib_save_LIBS=$LIBS
11003LIBS="-ldl  $LIBS"
11004cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11005/* end confdefs.h.  */
11006
11007/* Override any GCC internal prototype to avoid an error.
11008   Use char because int might match the return type of a GCC
11009   builtin and then its argument prototype would still apply.  */
11010#ifdef __cplusplus
11011extern "C"
11012#endif
11013char dlopen ();
11014int
11015main ()
11016{
11017return dlopen ();
11018  ;
11019  return 0;
11020}
11021_ACEOF
11022if ac_fn_c_try_link "$LINENO"; then :
11023  ac_cv_lib_dl_dlopen=yes
11024else
11025  ac_cv_lib_dl_dlopen=no
11026fi
11027rm -f core conftest.err conftest.$ac_objext \
11028    conftest$ac_exeext conftest.$ac_ext
11029LIBS=$ac_check_lib_save_LIBS
11030fi
11031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11032$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11033if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11034  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11035else
11036  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11037$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11038if ${ac_cv_lib_svld_dlopen+:} false; then :
11039  $as_echo_n "(cached) " >&6
11040else
11041  ac_check_lib_save_LIBS=$LIBS
11042LIBS="-lsvld  $LIBS"
11043cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11044/* end confdefs.h.  */
11045
11046/* Override any GCC internal prototype to avoid an error.
11047   Use char because int might match the return type of a GCC
11048   builtin and then its argument prototype would still apply.  */
11049#ifdef __cplusplus
11050extern "C"
11051#endif
11052char dlopen ();
11053int
11054main ()
11055{
11056return dlopen ();
11057  ;
11058  return 0;
11059}
11060_ACEOF
11061if ac_fn_c_try_link "$LINENO"; then :
11062  ac_cv_lib_svld_dlopen=yes
11063else
11064  ac_cv_lib_svld_dlopen=no
11065fi
11066rm -f core conftest.err conftest.$ac_objext \
11067    conftest$ac_exeext conftest.$ac_ext
11068LIBS=$ac_check_lib_save_LIBS
11069fi
11070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11071$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11072if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11073  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11074else
11075  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11076$as_echo_n "checking for dld_link in -ldld... " >&6; }
11077if ${ac_cv_lib_dld_dld_link+:} false; then :
11078  $as_echo_n "(cached) " >&6
11079else
11080  ac_check_lib_save_LIBS=$LIBS
11081LIBS="-ldld  $LIBS"
11082cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11083/* end confdefs.h.  */
11084
11085/* Override any GCC internal prototype to avoid an error.
11086   Use char because int might match the return type of a GCC
11087   builtin and then its argument prototype would still apply.  */
11088#ifdef __cplusplus
11089extern "C"
11090#endif
11091char dld_link ();
11092int
11093main ()
11094{
11095return dld_link ();
11096  ;
11097  return 0;
11098}
11099_ACEOF
11100if ac_fn_c_try_link "$LINENO"; then :
11101  ac_cv_lib_dld_dld_link=yes
11102else
11103  ac_cv_lib_dld_dld_link=no
11104fi
11105rm -f core conftest.err conftest.$ac_objext \
11106    conftest$ac_exeext conftest.$ac_ext
11107LIBS=$ac_check_lib_save_LIBS
11108fi
11109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11110$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11111if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11112  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11113fi
11114
11115
11116fi
11117
11118
11119fi
11120
11121
11122fi
11123
11124
11125fi
11126
11127
11128fi
11129
11130    ;;
11131  esac
11132
11133  if test "x$lt_cv_dlopen" != xno; then
11134    enable_dlopen=yes
11135  else
11136    enable_dlopen=no
11137  fi
11138
11139  case $lt_cv_dlopen in
11140  dlopen)
11141    save_CPPFLAGS="$CPPFLAGS"
11142    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11143
11144    save_LDFLAGS="$LDFLAGS"
11145    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11146
11147    save_LIBS="$LIBS"
11148    LIBS="$lt_cv_dlopen_libs $LIBS"
11149
11150    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11151$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11152if ${lt_cv_dlopen_self+:} false; then :
11153  $as_echo_n "(cached) " >&6
11154else
11155  	  if test "$cross_compiling" = yes; then :
11156  lt_cv_dlopen_self=cross
11157else
11158  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11159  lt_status=$lt_dlunknown
11160  cat > conftest.$ac_ext <<_LT_EOF
11161#line 11160 "configure"
11162#include "confdefs.h"
11163
11164#if HAVE_DLFCN_H
11165#include <dlfcn.h>
11166#endif
11167
11168#include <stdio.h>
11169
11170#ifdef RTLD_GLOBAL
11171#  define LT_DLGLOBAL		RTLD_GLOBAL
11172#else
11173#  ifdef DL_GLOBAL
11174#    define LT_DLGLOBAL		DL_GLOBAL
11175#  else
11176#    define LT_DLGLOBAL		0
11177#  endif
11178#endif
11179
11180/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11181   find out it does not work in some platform. */
11182#ifndef LT_DLLAZY_OR_NOW
11183#  ifdef RTLD_LAZY
11184#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11185#  else
11186#    ifdef DL_LAZY
11187#      define LT_DLLAZY_OR_NOW		DL_LAZY
11188#    else
11189#      ifdef RTLD_NOW
11190#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11191#      else
11192#        ifdef DL_NOW
11193#          define LT_DLLAZY_OR_NOW	DL_NOW
11194#        else
11195#          define LT_DLLAZY_OR_NOW	0
11196#        endif
11197#      endif
11198#    endif
11199#  endif
11200#endif
11201
11202/* When -fvisbility=hidden is used, assume the code has been annotated
11203   correspondingly for the symbols needed.  */
11204#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11205void fnord () __attribute__((visibility("default")));
11206#endif
11207
11208void fnord () { int i=42; }
11209int main ()
11210{
11211  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11212  int status = $lt_dlunknown;
11213
11214  if (self)
11215    {
11216      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11217      else
11218        {
11219	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11220          else puts (dlerror ());
11221	}
11222      /* dlclose (self); */
11223    }
11224  else
11225    puts (dlerror ());
11226
11227  return status;
11228}
11229_LT_EOF
11230  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11231  (eval $ac_link) 2>&5
11232  ac_status=$?
11233  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11234  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11235    (./conftest; exit; ) >&5 2>/dev/null
11236    lt_status=$?
11237    case x$lt_status in
11238      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11239      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11240      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11241    esac
11242  else :
11243    # compilation failed
11244    lt_cv_dlopen_self=no
11245  fi
11246fi
11247rm -fr conftest*
11248
11249
11250fi
11251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11252$as_echo "$lt_cv_dlopen_self" >&6; }
11253
11254    if test "x$lt_cv_dlopen_self" = xyes; then
11255      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11256      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11257$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11258if ${lt_cv_dlopen_self_static+:} false; then :
11259  $as_echo_n "(cached) " >&6
11260else
11261  	  if test "$cross_compiling" = yes; then :
11262  lt_cv_dlopen_self_static=cross
11263else
11264  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11265  lt_status=$lt_dlunknown
11266  cat > conftest.$ac_ext <<_LT_EOF
11267#line 11266 "configure"
11268#include "confdefs.h"
11269
11270#if HAVE_DLFCN_H
11271#include <dlfcn.h>
11272#endif
11273
11274#include <stdio.h>
11275
11276#ifdef RTLD_GLOBAL
11277#  define LT_DLGLOBAL		RTLD_GLOBAL
11278#else
11279#  ifdef DL_GLOBAL
11280#    define LT_DLGLOBAL		DL_GLOBAL
11281#  else
11282#    define LT_DLGLOBAL		0
11283#  endif
11284#endif
11285
11286/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11287   find out it does not work in some platform. */
11288#ifndef LT_DLLAZY_OR_NOW
11289#  ifdef RTLD_LAZY
11290#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11291#  else
11292#    ifdef DL_LAZY
11293#      define LT_DLLAZY_OR_NOW		DL_LAZY
11294#    else
11295#      ifdef RTLD_NOW
11296#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11297#      else
11298#        ifdef DL_NOW
11299#          define LT_DLLAZY_OR_NOW	DL_NOW
11300#        else
11301#          define LT_DLLAZY_OR_NOW	0
11302#        endif
11303#      endif
11304#    endif
11305#  endif
11306#endif
11307
11308/* When -fvisbility=hidden is used, assume the code has been annotated
11309   correspondingly for the symbols needed.  */
11310#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11311void fnord () __attribute__((visibility("default")));
11312#endif
11313
11314void fnord () { int i=42; }
11315int main ()
11316{
11317  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11318  int status = $lt_dlunknown;
11319
11320  if (self)
11321    {
11322      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11323      else
11324        {
11325	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11326          else puts (dlerror ());
11327	}
11328      /* dlclose (self); */
11329    }
11330  else
11331    puts (dlerror ());
11332
11333  return status;
11334}
11335_LT_EOF
11336  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11337  (eval $ac_link) 2>&5
11338  ac_status=$?
11339  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11340  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11341    (./conftest; exit; ) >&5 2>/dev/null
11342    lt_status=$?
11343    case x$lt_status in
11344      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11345      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11346      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11347    esac
11348  else :
11349    # compilation failed
11350    lt_cv_dlopen_self_static=no
11351  fi
11352fi
11353rm -fr conftest*
11354
11355
11356fi
11357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11358$as_echo "$lt_cv_dlopen_self_static" >&6; }
11359    fi
11360
11361    CPPFLAGS="$save_CPPFLAGS"
11362    LDFLAGS="$save_LDFLAGS"
11363    LIBS="$save_LIBS"
11364    ;;
11365  esac
11366
11367  case $lt_cv_dlopen_self in
11368  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11369  *) enable_dlopen_self=unknown ;;
11370  esac
11371
11372  case $lt_cv_dlopen_self_static in
11373  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11374  *) enable_dlopen_self_static=unknown ;;
11375  esac
11376fi
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394striplib=
11395old_striplib=
11396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11397$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11398if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11399  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11400  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11401  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11402$as_echo "yes" >&6; }
11403else
11404# FIXME - insert some real tests, host_os isn't really good enough
11405  case $host_os in
11406  darwin*)
11407    if test -n "$STRIP" ; then
11408      striplib="$STRIP -x"
11409      old_striplib="$STRIP -S"
11410      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11411$as_echo "yes" >&6; }
11412    else
11413      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11414$as_echo "no" >&6; }
11415    fi
11416    ;;
11417  *)
11418    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11419$as_echo "no" >&6; }
11420    ;;
11421  esac
11422fi
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435  # Report which library types will actually be built
11436  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11437$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11438  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11439$as_echo "$can_build_shared" >&6; }
11440
11441  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11442$as_echo_n "checking whether to build shared libraries... " >&6; }
11443  test "$can_build_shared" = "no" && enable_shared=no
11444
11445  # On AIX, shared libraries and static libraries use the same namespace, and
11446  # are all built from PIC.
11447  case $host_os in
11448  aix3*)
11449    test "$enable_shared" = yes && enable_static=no
11450    if test -n "$RANLIB"; then
11451      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11452      postinstall_cmds='$RANLIB $lib'
11453    fi
11454    ;;
11455
11456  aix[4-9]*)
11457    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11458      test "$enable_shared" = yes && enable_static=no
11459    fi
11460    ;;
11461  esac
11462  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11463$as_echo "$enable_shared" >&6; }
11464
11465  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11466$as_echo_n "checking whether to build static libraries... " >&6; }
11467  # Make sure either enable_shared or enable_static is yes.
11468  test "$enable_shared" = yes || enable_static=yes
11469  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11470$as_echo "$enable_static" >&6; }
11471
11472
11473
11474
11475fi
11476ac_ext=c
11477ac_cpp='$CPP $CPPFLAGS'
11478ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11479ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11480ac_compiler_gnu=$ac_cv_c_compiler_gnu
11481
11482CC="$lt_save_CC"
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496        ac_config_commands="$ac_config_commands libtool"
11497
11498
11499
11500
11501# Only expand once:
11502
11503
11504
11505# AC_PLUGINS setting $plugins is called by ACX_LARGEFILE.
11506
11507# The tests for host and target for $enable_largefile require
11508# canonical names.
11509
11510
11511
11512# As the $enable_largefile decision depends on --enable-plugins we must set it
11513# even in directories otherwise not depending on the $plugins option.
11514
11515
11516  maybe_plugins=no
11517  for ac_header in dlfcn.h
11518do :
11519  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11520"
11521if test "x$ac_cv_header_dlfcn_h" = xyes; then :
11522  cat >>confdefs.h <<_ACEOF
11523#define HAVE_DLFCN_H 1
11524_ACEOF
11525 maybe_plugins=yes
11526fi
11527
11528done
11529
11530  for ac_header in windows.h
11531do :
11532  ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
11533"
11534if test "x$ac_cv_header_windows_h" = xyes; then :
11535  cat >>confdefs.h <<_ACEOF
11536#define HAVE_WINDOWS_H 1
11537_ACEOF
11538 maybe_plugins=yes
11539fi
11540
11541done
11542
11543
11544  # Check whether --enable-plugins was given.
11545if test "${enable_plugins+set}" = set; then :
11546  enableval=$enable_plugins; case "${enableval}" in
11547      no) plugins=no ;;
11548      *) plugins=yes
11549         if test "$maybe_plugins" != "yes" ; then
11550	   as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
11551	 fi ;;
11552     esac
11553else
11554  plugins=$maybe_plugins
11555
11556fi
11557
11558  if test "$plugins" = "yes"; then
11559    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
11560$as_echo_n "checking for library containing dlsym... " >&6; }
11561if ${ac_cv_search_dlsym+:} false; then :
11562  $as_echo_n "(cached) " >&6
11563else
11564  ac_func_search_save_LIBS=$LIBS
11565cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11566/* end confdefs.h.  */
11567
11568/* Override any GCC internal prototype to avoid an error.
11569   Use char because int might match the return type of a GCC
11570   builtin and then its argument prototype would still apply.  */
11571#ifdef __cplusplus
11572extern "C"
11573#endif
11574char dlsym ();
11575int
11576main ()
11577{
11578return dlsym ();
11579  ;
11580  return 0;
11581}
11582_ACEOF
11583for ac_lib in '' dl; do
11584  if test -z "$ac_lib"; then
11585    ac_res="none required"
11586  else
11587    ac_res=-l$ac_lib
11588    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11589  fi
11590  if ac_fn_c_try_link "$LINENO"; then :
11591  ac_cv_search_dlsym=$ac_res
11592fi
11593rm -f core conftest.err conftest.$ac_objext \
11594    conftest$ac_exeext
11595  if ${ac_cv_search_dlsym+:} false; then :
11596  break
11597fi
11598done
11599if ${ac_cv_search_dlsym+:} false; then :
11600
11601else
11602  ac_cv_search_dlsym=no
11603fi
11604rm conftest.$ac_ext
11605LIBS=$ac_func_search_save_LIBS
11606fi
11607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
11608$as_echo "$ac_cv_search_dlsym" >&6; }
11609ac_res=$ac_cv_search_dlsym
11610if test "$ac_res" != no; then :
11611  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11612
11613fi
11614
11615  fi
11616
11617
11618case "${host}" in
11619  sparc-*-solaris*|i?86-*-solaris*)
11620    # On native 32-bit Solaris/SPARC and x86, large-file and procfs support
11621    # were mutually exclusive until Solaris 11.3.  Without procfs support,
11622    # the bfd/ elf module cannot provide certain routines such as
11623    # elfcore_write_prpsinfo or elfcore_write_prstatus.  So unless the user
11624    # explicitly requested large-file support through the
11625    # --enable-largefile switch, disable large-file support in favor of
11626    # procfs support.
11627    #
11628    # Check if <sys/procfs.h> is incompatible with large-file support.
11629    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11630/* end confdefs.h.  */
11631#define _FILE_OFFSET_BITS 64
11632#define _STRUCTURED_PROC 1
11633#include <sys/procfs.h>
11634int
11635main ()
11636{
11637
11638  ;
11639  return 0;
11640}
11641_ACEOF
11642if ac_fn_c_try_compile "$LINENO"; then :
11643  acx_cv_procfs_lfs=yes
11644else
11645  acx_cv_procfs_lfs=no
11646fi
11647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11648    #
11649    # Forcefully disable large-file support only if necessary, gdb is in
11650    # tree and enabled.
11651    if test "${target}" = "${host}" -a "$acx_cv_procfs_lfs" = no \
11652         -a -d $srcdir/../gdb -a "$enable_gdb" != no; then
11653      : ${enable_largefile="no"}
11654      if test "$plugins" = yes; then
11655	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
11656plugin support disabled; require large-file support which is incompatible with GDB." >&5
11657$as_echo "$as_me: WARNING:
11658plugin support disabled; require large-file support which is incompatible with GDB." >&2;}
11659	plugins=no
11660      fi
11661    fi
11662    #
11663    # Explicitly undef _FILE_OFFSET_BITS if enable_largefile=no for the
11664    # benefit of g++ 9+ which predefines it on Solaris.
11665    if test "$enable_largefile" = no; then
11666      LARGEFILE_CPPFLAGS="-U_FILE_OFFSET_BITS"
11667
11668    fi
11669    ;;
11670esac
11671
11672# Check whether --enable-largefile was given.
11673if test "${enable_largefile+set}" = set; then :
11674  enableval=$enable_largefile;
11675fi
11676
11677if test "$enable_largefile" != no; then
11678
11679  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
11680$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
11681if ${ac_cv_sys_largefile_CC+:} false; then :
11682  $as_echo_n "(cached) " >&6
11683else
11684  ac_cv_sys_largefile_CC=no
11685     if test "$GCC" != yes; then
11686       ac_save_CC=$CC
11687       while :; do
11688	 # IRIX 6.2 and later do not support large files by default,
11689	 # so use the C compiler's -n32 option if that helps.
11690	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11691/* end confdefs.h.  */
11692#include <sys/types.h>
11693 /* Check that off_t can represent 2**63 - 1 correctly.
11694    We can't simply define LARGE_OFF_T to be 9223372036854775807,
11695    since some C++ compilers masquerading as C compilers
11696    incorrectly reject 9223372036854775807.  */
11697#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11698  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11699		       && LARGE_OFF_T % 2147483647 == 1)
11700		      ? 1 : -1];
11701int
11702main ()
11703{
11704
11705  ;
11706  return 0;
11707}
11708_ACEOF
11709	 if ac_fn_c_try_compile "$LINENO"; then :
11710  break
11711fi
11712rm -f core conftest.err conftest.$ac_objext
11713	 CC="$CC -n32"
11714	 if ac_fn_c_try_compile "$LINENO"; then :
11715  ac_cv_sys_largefile_CC=' -n32'; break
11716fi
11717rm -f core conftest.err conftest.$ac_objext
11718	 break
11719       done
11720       CC=$ac_save_CC
11721       rm -f conftest.$ac_ext
11722    fi
11723fi
11724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
11725$as_echo "$ac_cv_sys_largefile_CC" >&6; }
11726  if test "$ac_cv_sys_largefile_CC" != no; then
11727    CC=$CC$ac_cv_sys_largefile_CC
11728  fi
11729
11730  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
11731$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
11732if ${ac_cv_sys_file_offset_bits+:} false; then :
11733  $as_echo_n "(cached) " >&6
11734else
11735  while :; do
11736  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11737/* end confdefs.h.  */
11738#include <sys/types.h>
11739 /* Check that off_t can represent 2**63 - 1 correctly.
11740    We can't simply define LARGE_OFF_T to be 9223372036854775807,
11741    since some C++ compilers masquerading as C compilers
11742    incorrectly reject 9223372036854775807.  */
11743#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11744  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11745		       && LARGE_OFF_T % 2147483647 == 1)
11746		      ? 1 : -1];
11747int
11748main ()
11749{
11750
11751  ;
11752  return 0;
11753}
11754_ACEOF
11755if ac_fn_c_try_compile "$LINENO"; then :
11756  ac_cv_sys_file_offset_bits=no; break
11757fi
11758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11759  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11760/* end confdefs.h.  */
11761#define _FILE_OFFSET_BITS 64
11762#include <sys/types.h>
11763 /* Check that off_t can represent 2**63 - 1 correctly.
11764    We can't simply define LARGE_OFF_T to be 9223372036854775807,
11765    since some C++ compilers masquerading as C compilers
11766    incorrectly reject 9223372036854775807.  */
11767#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11768  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11769		       && LARGE_OFF_T % 2147483647 == 1)
11770		      ? 1 : -1];
11771int
11772main ()
11773{
11774
11775  ;
11776  return 0;
11777}
11778_ACEOF
11779if ac_fn_c_try_compile "$LINENO"; then :
11780  ac_cv_sys_file_offset_bits=64; break
11781fi
11782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11783  ac_cv_sys_file_offset_bits=unknown
11784  break
11785done
11786fi
11787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
11788$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
11789case $ac_cv_sys_file_offset_bits in #(
11790  no | unknown) ;;
11791  *)
11792cat >>confdefs.h <<_ACEOF
11793#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
11794_ACEOF
11795;;
11796esac
11797rm -rf conftest*
11798  if test $ac_cv_sys_file_offset_bits = unknown; then
11799    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
11800$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
11801if ${ac_cv_sys_large_files+:} false; then :
11802  $as_echo_n "(cached) " >&6
11803else
11804  while :; do
11805  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11806/* end confdefs.h.  */
11807#include <sys/types.h>
11808 /* Check that off_t can represent 2**63 - 1 correctly.
11809    We can't simply define LARGE_OFF_T to be 9223372036854775807,
11810    since some C++ compilers masquerading as C compilers
11811    incorrectly reject 9223372036854775807.  */
11812#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11813  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11814		       && LARGE_OFF_T % 2147483647 == 1)
11815		      ? 1 : -1];
11816int
11817main ()
11818{
11819
11820  ;
11821  return 0;
11822}
11823_ACEOF
11824if ac_fn_c_try_compile "$LINENO"; then :
11825  ac_cv_sys_large_files=no; break
11826fi
11827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11828  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11829/* end confdefs.h.  */
11830#define _LARGE_FILES 1
11831#include <sys/types.h>
11832 /* Check that off_t can represent 2**63 - 1 correctly.
11833    We can't simply define LARGE_OFF_T to be 9223372036854775807,
11834    since some C++ compilers masquerading as C compilers
11835    incorrectly reject 9223372036854775807.  */
11836#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11837  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11838		       && LARGE_OFF_T % 2147483647 == 1)
11839		      ? 1 : -1];
11840int
11841main ()
11842{
11843
11844  ;
11845  return 0;
11846}
11847_ACEOF
11848if ac_fn_c_try_compile "$LINENO"; then :
11849  ac_cv_sys_large_files=1; break
11850fi
11851rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11852  ac_cv_sys_large_files=unknown
11853  break
11854done
11855fi
11856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
11857$as_echo "$ac_cv_sys_large_files" >&6; }
11858case $ac_cv_sys_large_files in #(
11859  no | unknown) ;;
11860  *)
11861cat >>confdefs.h <<_ACEOF
11862#define _LARGE_FILES $ac_cv_sys_large_files
11863_ACEOF
11864;;
11865esac
11866rm -rf conftest*
11867  fi
11868
11869
11870fi
11871
11872
11873
11874case "${target}" in
11875    hppa*64*-*-*) ;;
11876    *-*-*aout*| i[3-7]86-*-msdos* | ns32k-*-* | pdp11-*-*)
11877	if test "$plugins" = "yes"; then
11878	    if test "${enable_plugins+set}" = set; then
11879		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Enabling plugins for AOUT is experimental" >&5
11880$as_echo "$as_me: WARNING: Enabling plugins for AOUT is experimental" >&2;}
11881	    else
11882		plugins=no
11883	    fi
11884	fi ;;
11885    hppa*-*-hpux* | *-*-*vms* | \
11886    powerpc*-*-aix* | powerpc-*-beos* | powerpc-*-macos* | rs6000-*-*)
11887	if test "$plugins" = "yes"; then
11888	    if test "${enable_plugins+set}" = set; then
11889		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Enabling plugins may result in ar creating non-standard archives for ${target}" >&5
11890$as_echo "$as_me: WARNING: Enabling plugins may result in ar creating non-standard archives for ${target}" >&2;}
11891	    else
11892		plugins=no
11893	    fi
11894	fi ;;
11895esac
11896
11897 if test "$plugins" = "yes"; then
11898  PLUGINS_TRUE=
11899  PLUGINS_FALSE='#'
11900else
11901  PLUGINS_TRUE='#'
11902  PLUGINS_FALSE=
11903fi
11904
11905
11906ac_checking=
11907. ${srcdir}/development.sh
11908test "$development" = true && ac_checking=yes
11909# Check whether --enable-checking was given.
11910if test "${enable_checking+set}" = set; then :
11911  enableval=$enable_checking; case "${enableval}" in
11912  no|none)  ac_checking= ;;
11913  *)	    ac_checking=yes ;;
11914esac
11915fi
11916if test x$ac_checking != x ; then
11917
11918$as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
11919
11920fi
11921
11922# Check whether --enable-64-bit-bfd was given.
11923if test "${enable_64_bit_bfd+set}" = set; then :
11924  enableval=$enable_64_bit_bfd; case $enableval in #(
11925  yes|no) :
11926     ;; #(
11927  *) :
11928    as_fn_error $? "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;; #(
11929  *) :
11930     ;;
11931esac
11932else
11933  enable_64_bit_bfd=no
11934fi
11935
11936
11937if test "x$enable_64_bit_bfd" = "xno"; then :
11938    # The cast to long int works around a bug in the HP C Compiler
11939# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11940# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11941# This bug is HP SR number 8606223364.
11942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
11943$as_echo_n "checking size of void *... " >&6; }
11944if ${ac_cv_sizeof_void_p+:} false; then :
11945  $as_echo_n "(cached) " >&6
11946else
11947  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
11948
11949else
11950  if test "$ac_cv_type_void_p" = yes; then
11951     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11952$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11953as_fn_error 77 "cannot compute sizeof (void *)
11954See \`config.log' for more details" "$LINENO" 5; }
11955   else
11956     ac_cv_sizeof_void_p=0
11957   fi
11958fi
11959
11960fi
11961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
11962$as_echo "$ac_cv_sizeof_void_p" >&6; }
11963
11964
11965
11966cat >>confdefs.h <<_ACEOF
11967#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
11968_ACEOF
11969
11970
11971  if test "x$ac_cv_sizeof_void_p" = "x8"; then :
11972  enable_64_bit_bfd=yes
11973fi
11974
11975fi
11976
11977 if test "x$enable_64_bit_bfd" = "xyes"; then
11978  ENABLE_BFD_64_BIT_TRUE=
11979  ENABLE_BFD_64_BIT_FALSE='#'
11980else
11981  ENABLE_BFD_64_BIT_TRUE='#'
11982  ENABLE_BFD_64_BIT_FALSE=
11983fi
11984
11985
11986if test $enable_64_bit_bfd = yes ; then
11987  want64=true
11988else
11989  want64=false
11990fi
11991
11992# Check whether --enable-targets was given.
11993if test "${enable_targets+set}" = set; then :
11994  enableval=$enable_targets; case "${enableval}" in
11995  yes | "") as_fn_error $? "enable-targets option must specify target names or 'all'" "$LINENO" 5
11996            ;;
11997  no)       enable_targets= ;;
11998  *)        enable_targets=$enableval ;;
11999esac
12000fi
12001
12002# Check whether --enable-64_bit_archive was given.
12003if test "${enable_64_bit_archive+set}" = set; then :
12004  enableval=$enable_64_bit_archive; case "${enableval}" in
12005  yes)  want_64_bit_archive=true  ;;
12006  no)   want_64_bit_archive=false ;;
12007  *)    as_fn_error $? "bad value ${enableval} for 64-bit-archive option" "$LINENO" 5 ;;
12008esac
12009else
12010  want_64_bit_archive=unset
12011fi
12012
12013
12014# Check whether --with-mmap was given.
12015if test "${with_mmap+set}" = set; then :
12016  withval=$with_mmap; case "${withval}" in
12017  yes)  want_mmap=true ;;
12018  no)   want_mmap=false ;;
12019  *)    as_fn_error $? "bad value ${withval} for BFD with-mmap option" "$LINENO" 5 ;;
12020esac
12021else
12022  want_mmap=true
12023fi
12024
12025# Check whether --enable-secureplt was given.
12026if test "${enable_secureplt+set}" = set; then :
12027  enableval=$enable_secureplt; case "${enableval}" in
12028  yes)  use_secureplt=true  ;;
12029  no)   use_secureplt=false ;;
12030  *)    as_fn_error $? "bad value ${enableval} for secureplt option" "$LINENO" 5 ;;
12031esac
12032else
12033  use_secureplt=false	# XXX port-alpha/57511
12034fi
12035if test $use_secureplt = true; then
12036
12037$as_echo "#define USE_SECUREPLT 1" >>confdefs.h
12038
12039fi
12040
12041# Decide if -z separate-code should be enabled in ELF linker by default.
12042ac_default_ld_z_separate_code=unset
12043# Check whether --enable-separate-code was given.
12044if test "${enable_separate_code+set}" = set; then :
12045  enableval=$enable_separate_code; case "${enableval}" in
12046  yes) ac_default_ld_z_separate_code=1 ;;
12047  no) ac_default_ld_z_separate_code=0 ;;
12048esac
12049fi
12050
12051# Enable -z separate-code by default for Linux/x86.
12052case "${target}" in
12053i[3-7]86-*-linux-* | x86_64-*-linux-*)
12054  if test ${ac_default_ld_z_separate_code} = unset; then
12055    ac_default_ld_z_separate_code=1
12056  fi
12057  ;;
12058esac
12059if test "${ac_default_ld_z_separate_code}" = unset; then
12060  ac_default_ld_z_separate_code=0
12061fi
12062
12063cat >>confdefs.h <<_ACEOF
12064#define DEFAULT_LD_Z_SEPARATE_CODE $ac_default_ld_z_separate_code
12065_ACEOF
12066
12067
12068# Check whether --enable-leading-mingw64-underscores was given.
12069if test "${enable_leading_mingw64_underscores+set}" = set; then :
12070  enableval=$enable_leading_mingw64_underscores;
12071fi
12072
12073if  test x"$enable_leading_mingw64_underscores" = xyes ; then :
12074
12075$as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
12076
12077fi
12078
12079DEBUGDIR=${libdir}/debug
12080
12081# Check whether --with-separate-debug-dir was given.
12082if test "${with_separate_debug_dir+set}" = set; then :
12083  withval=$with_separate_debug_dir; DEBUGDIR="${withval}"
12084fi
12085
12086
12087
12088
12089
12090# Check whether --with-pkgversion was given.
12091if test "${with_pkgversion+set}" = set; then :
12092  withval=$with_pkgversion; case "$withval" in
12093      yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
12094      no)  PKGVERSION= ;;
12095      *)   PKGVERSION="($withval) " ;;
12096     esac
12097else
12098  PKGVERSION="(GNU Binutils) "
12099
12100fi
12101
12102
12103
12104
12105
12106# Check whether --with-bugurl was given.
12107if test "${with_bugurl+set}" = set; then :
12108  withval=$with_bugurl; case "$withval" in
12109      yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
12110      no)  BUGURL=
12111	   ;;
12112      *)   BUGURL="$withval"
12113	   ;;
12114     esac
12115else
12116  BUGURL="https://sourceware.org/bugzilla/"
12117
12118fi
12119
12120  case ${BUGURL} in
12121  "")
12122    REPORT_BUGS_TO=
12123    REPORT_BUGS_TEXI=
12124    ;;
12125  *)
12126    REPORT_BUGS_TO="<$BUGURL>"
12127    REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
12128    ;;
12129  esac;
12130
12131
12132
12133
12134
12135# Set the 'development' global.
12136. $srcdir/../bfd/development.sh
12137
12138# Set acp_cpp_for_build variable
12139ac_cpp_for_build="$CC_FOR_BUILD -E $CPPFLAGS_FOR_BUILD"
12140
12141# Default set of GCC warnings to enable.
12142GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
12143GCC_WARN_CFLAGS_FOR_BUILD="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
12144
12145# Add -Wshadow if the compiler is a sufficiently recent version of GCC.
12146cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12147/* end confdefs.h.  */
12148__GNUC__
12149_ACEOF
12150if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12151  $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
12152
12153else
12154  GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
12155fi
12156rm -f conftest*
12157
12158
12159# Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
12160cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12161/* end confdefs.h.  */
12162__GNUC__
12163_ACEOF
12164if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12165  $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
12166
12167else
12168  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12169/* end confdefs.h.  */
12170__clang__
12171_ACEOF
12172if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12173  $EGREP "^__clang__$" >/dev/null 2>&1; then :
12174  GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144"
12175fi
12176rm -f conftest*
12177
12178fi
12179rm -f conftest*
12180
12181
12182# Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings.
12183WARN_WRITE_STRINGS=""
12184cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12185/* end confdefs.h.  */
12186__GNUC__
12187_ACEOF
12188if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12189  $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
12190
12191else
12192  WARN_WRITE_STRINGS="-Wwrite-strings"
12193fi
12194rm -f conftest*
12195
12196
12197# Verify CC_FOR_BUILD to be compatible with warning flags
12198
12199# Add -Wshadow if the compiler is a sufficiently recent version of GCC.
12200cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12201/* end confdefs.h.  */
12202__GNUC__
12203_ACEOF
12204if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
12205  $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
12206
12207else
12208  GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wshadow"
12209fi
12210rm -f conftest*
12211
12212
12213# Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
12214cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12215/* end confdefs.h.  */
12216__GNUC__
12217_ACEOF
12218if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
12219  $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
12220
12221else
12222  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12223/* end confdefs.h.  */
12224__clang__
12225_ACEOF
12226if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
12227  $EGREP "^__clang__$" >/dev/null 2>&1; then :
12228  GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wstack-usage=262144"
12229fi
12230rm -f conftest*
12231
12232fi
12233rm -f conftest*
12234
12235
12236# Check whether --enable-werror was given.
12237if test "${enable_werror+set}" = set; then :
12238  enableval=$enable_werror; case "${enableval}" in
12239     yes | y) ERROR_ON_WARNING="yes" ;;
12240     no | n)  ERROR_ON_WARNING="no" ;;
12241     *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
12242   esac
12243fi
12244
12245
12246# Disable -Wformat by default when using gcc on mingw
12247case "${host}" in
12248  *-*-mingw32*)
12249    if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
12250      GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
12251      GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wno-format"
12252    fi
12253    ;;
12254  *) ;;
12255esac
12256
12257# Enable -Werror by default when using gcc.  Turn it off for releases.
12258if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then
12259    ERROR_ON_WARNING=yes
12260fi
12261
12262NO_WERROR=
12263if test "${ERROR_ON_WARNING}" = yes ; then
12264    GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
12265    GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Werror"
12266    NO_WERROR="-Wno-error"
12267fi
12268
12269if test "${GCC}" = yes ; then
12270  WARN_CFLAGS="${GCC_WARN_CFLAGS}"
12271  WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}"
12272fi
12273
12274# Check whether --enable-build-warnings was given.
12275if test "${enable_build_warnings+set}" = set; then :
12276  enableval=$enable_build_warnings; case "${enableval}" in
12277  yes)	WARN_CFLAGS="${GCC_WARN_CFLAGS}"
12278        WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}";;
12279  no)	if test "${GCC}" = yes ; then
12280	  WARN_CFLAGS="-w"
12281      WARN_CFLAGS_FOR_BUILD="-w"
12282	fi;;
12283  ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
12284        WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}"
12285        WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD} ${t}";;
12286  *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
12287        WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}"
12288        WARN_CFLAGS_FOR_BUILD="${t} ${GCC_WARN_CFLAGS_FOR_BUILD}";;
12289  *)    WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`
12290        WARN_CFLAGS_FOR_BUILD=`echo "${enableval}" | sed -e "s/,/ /g"`;;
12291esac
12292fi
12293
12294
12295if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
12296  echo "Setting warning flags = $WARN_CFLAGS" 6>&1
12297fi
12298
12299
12300
12301
12302
12303
12304
12305ac_config_headers="$ac_config_headers config.h:config.in"
12306
12307
12308# PR 14072
12309
12310
12311if test -z "$target" ; then
12312    as_fn_error $? "Unrecognized target system type; please check config.sub." "$LINENO" 5
12313fi
12314
12315
12316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
12317$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
12318    # Check whether --enable-maintainer-mode was given.
12319if test "${enable_maintainer_mode+set}" = set; then :
12320  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
12321else
12322  USE_MAINTAINER_MODE=no
12323fi
12324
12325  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
12326$as_echo "$USE_MAINTAINER_MODE" >&6; }
12327   if test $USE_MAINTAINER_MODE = yes; then
12328  MAINTAINER_MODE_TRUE=
12329  MAINTAINER_MODE_FALSE='#'
12330else
12331  MAINTAINER_MODE_TRUE='#'
12332  MAINTAINER_MODE_FALSE=
12333fi
12334
12335  MAINT=$MAINTAINER_MODE_TRUE
12336
12337
12338 if false; then
12339  GENINSRC_NEVER_TRUE=
12340  GENINSRC_NEVER_FALSE='#'
12341else
12342  GENINSRC_NEVER_TRUE='#'
12343  GENINSRC_NEVER_FALSE=
12344fi
12345
12346 case ${build_alias} in
12347  "") build_noncanonical=${build} ;;
12348  *) build_noncanonical=${build_alias} ;;
12349esac
12350
12351 case ${host_alias} in
12352  "") host_noncanonical=${build_noncanonical} ;;
12353  *) host_noncanonical=${host_alias} ;;
12354esac
12355
12356 case ${target_alias} in
12357  "") target_noncanonical=${host_noncanonical} ;;
12358  *) target_noncanonical=${target_alias} ;;
12359esac
12360
12361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install libbfd" >&5
12362$as_echo_n "checking whether to install libbfd... " >&6; }
12363  # Check whether --enable-install-libbfd was given.
12364if test "${enable_install_libbfd+set}" = set; then :
12365  enableval=$enable_install_libbfd; install_libbfd_p=$enableval
12366else
12367  if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
12368        install_libbfd_p=yes
12369      else
12370        install_libbfd_p=no
12371      fi
12372fi
12373
12374  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $install_libbfd_p" >&5
12375$as_echo "$install_libbfd_p" >&6; }
12376   if test $install_libbfd_p = yes; then
12377  INSTALL_LIBBFD_TRUE=
12378  INSTALL_LIBBFD_FALSE='#'
12379else
12380  INSTALL_LIBBFD_TRUE='#'
12381  INSTALL_LIBBFD_FALSE=
12382fi
12383
12384  # Need _noncanonical variables for this.
12385
12386
12387
12388
12389  # libbfd.a is a host library containing target dependent code
12390  bfdlibdir='$(libdir)'
12391  bfdincludedir='$(includedir)'
12392  if test "${host}" != "${target}"; then
12393    bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
12394    bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
12395  fi
12396
12397
12398
12399
12400
12401
12402
12403
12404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12405$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12406if ${ac_cv_c_bigendian+:} false; then :
12407  $as_echo_n "(cached) " >&6
12408else
12409  ac_cv_c_bigendian=unknown
12410    # See if we're dealing with a universal compiler.
12411    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12412/* end confdefs.h.  */
12413#ifndef __APPLE_CC__
12414	       not a universal capable compiler
12415	     #endif
12416	     typedef int dummy;
12417
12418_ACEOF
12419if ac_fn_c_try_compile "$LINENO"; then :
12420
12421	# Check for potential -arch flags.  It is not universal unless
12422	# there are at least two -arch flags with different values.
12423	ac_arch=
12424	ac_prev=
12425	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12426	 if test -n "$ac_prev"; then
12427	   case $ac_word in
12428	     i?86 | x86_64 | ppc | ppc64)
12429	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12430		 ac_arch=$ac_word
12431	       else
12432		 ac_cv_c_bigendian=universal
12433		 break
12434	       fi
12435	       ;;
12436	   esac
12437	   ac_prev=
12438	 elif test "x$ac_word" = "x-arch"; then
12439	   ac_prev=arch
12440	 fi
12441       done
12442fi
12443rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12444    if test $ac_cv_c_bigendian = unknown; then
12445      # See if sys/param.h defines the BYTE_ORDER macro.
12446      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12447/* end confdefs.h.  */
12448#include <sys/types.h>
12449	     #include <sys/param.h>
12450
12451int
12452main ()
12453{
12454#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12455		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12456		     && LITTLE_ENDIAN)
12457	      bogus endian macros
12458	     #endif
12459
12460  ;
12461  return 0;
12462}
12463_ACEOF
12464if ac_fn_c_try_compile "$LINENO"; then :
12465  # It does; now see whether it defined to BIG_ENDIAN or not.
12466	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12467/* end confdefs.h.  */
12468#include <sys/types.h>
12469		#include <sys/param.h>
12470
12471int
12472main ()
12473{
12474#if BYTE_ORDER != BIG_ENDIAN
12475		 not big endian
12476		#endif
12477
12478  ;
12479  return 0;
12480}
12481_ACEOF
12482if ac_fn_c_try_compile "$LINENO"; then :
12483  ac_cv_c_bigendian=yes
12484else
12485  ac_cv_c_bigendian=no
12486fi
12487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12488fi
12489rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12490    fi
12491    if test $ac_cv_c_bigendian = unknown; then
12492      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12493      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12494/* end confdefs.h.  */
12495#include <limits.h>
12496
12497int
12498main ()
12499{
12500#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12501	      bogus endian macros
12502	     #endif
12503
12504  ;
12505  return 0;
12506}
12507_ACEOF
12508if ac_fn_c_try_compile "$LINENO"; then :
12509  # It does; now see whether it defined to _BIG_ENDIAN or not.
12510	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12511/* end confdefs.h.  */
12512#include <limits.h>
12513
12514int
12515main ()
12516{
12517#ifndef _BIG_ENDIAN
12518		 not big endian
12519		#endif
12520
12521  ;
12522  return 0;
12523}
12524_ACEOF
12525if ac_fn_c_try_compile "$LINENO"; then :
12526  ac_cv_c_bigendian=yes
12527else
12528  ac_cv_c_bigendian=no
12529fi
12530rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12531fi
12532rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12533    fi
12534    if test $ac_cv_c_bigendian = unknown; then
12535      # Compile a test program.
12536      if test "$cross_compiling" = yes; then :
12537  # Try to guess by grepping values from an object file.
12538	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12539/* end confdefs.h.  */
12540short int ascii_mm[] =
12541		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12542		short int ascii_ii[] =
12543		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12544		int use_ascii (int i) {
12545		  return ascii_mm[i] + ascii_ii[i];
12546		}
12547		short int ebcdic_ii[] =
12548		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12549		short int ebcdic_mm[] =
12550		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12551		int use_ebcdic (int i) {
12552		  return ebcdic_mm[i] + ebcdic_ii[i];
12553		}
12554		extern int foo;
12555
12556int
12557main ()
12558{
12559return use_ascii (foo) == use_ebcdic (foo);
12560  ;
12561  return 0;
12562}
12563_ACEOF
12564if ac_fn_c_try_compile "$LINENO"; then :
12565  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12566	      ac_cv_c_bigendian=yes
12567	    fi
12568	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12569	      if test "$ac_cv_c_bigendian" = unknown; then
12570		ac_cv_c_bigendian=no
12571	      else
12572		# finding both strings is unlikely to happen, but who knows?
12573		ac_cv_c_bigendian=unknown
12574	      fi
12575	    fi
12576fi
12577rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12578else
12579  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12580/* end confdefs.h.  */
12581$ac_includes_default
12582int
12583main ()
12584{
12585
12586	     /* Are we little or big endian?  From Harbison&Steele.  */
12587	     union
12588	     {
12589	       long int l;
12590	       char c[sizeof (long int)];
12591	     } u;
12592	     u.l = 1;
12593	     return u.c[sizeof (long int) - 1] == 1;
12594
12595  ;
12596  return 0;
12597}
12598_ACEOF
12599if ac_fn_c_try_run "$LINENO"; then :
12600  ac_cv_c_bigendian=no
12601else
12602  ac_cv_c_bigendian=yes
12603fi
12604rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12605  conftest.$ac_objext conftest.beam conftest.$ac_ext
12606fi
12607
12608    fi
12609fi
12610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12611$as_echo "$ac_cv_c_bigendian" >&6; }
12612 case $ac_cv_c_bigendian in #(
12613   yes)
12614     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12615;; #(
12616   no)
12617      ;; #(
12618   universal)
12619
12620$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12621
12622     ;; #(
12623   *)
12624     as_fn_error $? "unknown endianness
12625 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12626 esac
12627
12628
12629host64=false
12630target64=false
12631bfd_default_target_size=32
12632
12633# host stuff:
12634
12635ALL_LINGUAS="da es fi fr hr id ja ro ru rw sr sv tr uk vi zh_CN pt"
12636
12637        MKINSTALLDIRS=
12638  if test -n "$ac_aux_dir"; then
12639    case "$ac_aux_dir" in
12640      /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
12641      *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
12642    esac
12643  fi
12644  if test -z "$MKINSTALLDIRS"; then
12645    MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
12646  fi
12647
12648
12649
12650  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12651$as_echo_n "checking whether NLS is requested... " >&6; }
12652    # Check whether --enable-nls was given.
12653if test "${enable_nls+set}" = set; then :
12654  enableval=$enable_nls; USE_NLS=$enableval
12655else
12656  USE_NLS=yes
12657fi
12658
12659  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
12660$as_echo "$USE_NLS" >&6; }
12661
12662
12663
12664
12665
12666
12667# Prepare PATH_SEPARATOR.
12668# The user is always right.
12669if test "${PATH_SEPARATOR+set}" != set; then
12670  echo "#! /bin/sh" >conf$$.sh
12671  echo  "exit 0"   >>conf$$.sh
12672  chmod +x conf$$.sh
12673  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12674    PATH_SEPARATOR=';'
12675  else
12676    PATH_SEPARATOR=:
12677  fi
12678  rm -f conf$$.sh
12679fi
12680
12681# Find out how to test for executable files. Don't use a zero-byte file,
12682# as systems may use methods other than mode bits to determine executability.
12683cat >conf$$.file <<_ASEOF
12684#! /bin/sh
12685exit 0
12686_ASEOF
12687chmod +x conf$$.file
12688if test -x conf$$.file >/dev/null 2>&1; then
12689  ac_executable_p="test -x"
12690else
12691  ac_executable_p="test -f"
12692fi
12693rm -f conf$$.file
12694
12695# Extract the first word of "msgfmt", so it can be a program name with args.
12696set dummy msgfmt; ac_word=$2
12697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12698$as_echo_n "checking for $ac_word... " >&6; }
12699if ${ac_cv_path_MSGFMT+:} false; then :
12700  $as_echo_n "(cached) " >&6
12701else
12702  case "$MSGFMT" in
12703  [\\/]* | ?:[\\/]*)
12704    ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12705    ;;
12706  *)
12707    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12708    for ac_dir in $PATH; do
12709      IFS="$ac_save_IFS"
12710      test -z "$ac_dir" && ac_dir=.
12711      for ac_exec_ext in '' $ac_executable_extensions; do
12712        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12713          if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
12714     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12715            ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
12716            break 2
12717          fi
12718        fi
12719      done
12720    done
12721    IFS="$ac_save_IFS"
12722  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
12723    ;;
12724esac
12725fi
12726MSGFMT="$ac_cv_path_MSGFMT"
12727if test "$MSGFMT" != ":"; then
12728  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
12729$as_echo "$MSGFMT" >&6; }
12730else
12731  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12732$as_echo "no" >&6; }
12733fi
12734
12735  # Extract the first word of "gmsgfmt", so it can be a program name with args.
12736set dummy gmsgfmt; ac_word=$2
12737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12738$as_echo_n "checking for $ac_word... " >&6; }
12739if ${ac_cv_path_GMSGFMT+:} false; then :
12740  $as_echo_n "(cached) " >&6
12741else
12742  case $GMSGFMT in
12743  [\\/]* | ?:[\\/]*)
12744  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12745  ;;
12746  *)
12747  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12748for as_dir in $PATH
12749do
12750  IFS=$as_save_IFS
12751  test -z "$as_dir" && as_dir=.
12752    for ac_exec_ext in '' $ac_executable_extensions; do
12753  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12754    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
12755    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12756    break 2
12757  fi
12758done
12759  done
12760IFS=$as_save_IFS
12761
12762  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12763  ;;
12764esac
12765fi
12766GMSGFMT=$ac_cv_path_GMSGFMT
12767if test -n "$GMSGFMT"; then
12768  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
12769$as_echo "$GMSGFMT" >&6; }
12770else
12771  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12772$as_echo "no" >&6; }
12773fi
12774
12775
12776
12777
12778# Prepare PATH_SEPARATOR.
12779# The user is always right.
12780if test "${PATH_SEPARATOR+set}" != set; then
12781  echo "#! /bin/sh" >conf$$.sh
12782  echo  "exit 0"   >>conf$$.sh
12783  chmod +x conf$$.sh
12784  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12785    PATH_SEPARATOR=';'
12786  else
12787    PATH_SEPARATOR=:
12788  fi
12789  rm -f conf$$.sh
12790fi
12791
12792# Find out how to test for executable files. Don't use a zero-byte file,
12793# as systems may use methods other than mode bits to determine executability.
12794cat >conf$$.file <<_ASEOF
12795#! /bin/sh
12796exit 0
12797_ASEOF
12798chmod +x conf$$.file
12799if test -x conf$$.file >/dev/null 2>&1; then
12800  ac_executable_p="test -x"
12801else
12802  ac_executable_p="test -f"
12803fi
12804rm -f conf$$.file
12805
12806# Extract the first word of "xgettext", so it can be a program name with args.
12807set dummy xgettext; ac_word=$2
12808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12809$as_echo_n "checking for $ac_word... " >&6; }
12810if ${ac_cv_path_XGETTEXT+:} false; then :
12811  $as_echo_n "(cached) " >&6
12812else
12813  case "$XGETTEXT" in
12814  [\\/]* | ?:[\\/]*)
12815    ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12816    ;;
12817  *)
12818    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12819    for ac_dir in $PATH; do
12820      IFS="$ac_save_IFS"
12821      test -z "$ac_dir" && ac_dir=.
12822      for ac_exec_ext in '' $ac_executable_extensions; do
12823        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12824          if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12825     (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
12826            ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
12827            break 2
12828          fi
12829        fi
12830      done
12831    done
12832    IFS="$ac_save_IFS"
12833  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12834    ;;
12835esac
12836fi
12837XGETTEXT="$ac_cv_path_XGETTEXT"
12838if test "$XGETTEXT" != ":"; then
12839  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
12840$as_echo "$XGETTEXT" >&6; }
12841else
12842  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12843$as_echo "no" >&6; }
12844fi
12845
12846    rm -f messages.po
12847
12848
12849# Prepare PATH_SEPARATOR.
12850# The user is always right.
12851if test "${PATH_SEPARATOR+set}" != set; then
12852  echo "#! /bin/sh" >conf$$.sh
12853  echo  "exit 0"   >>conf$$.sh
12854  chmod +x conf$$.sh
12855  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12856    PATH_SEPARATOR=';'
12857  else
12858    PATH_SEPARATOR=:
12859  fi
12860  rm -f conf$$.sh
12861fi
12862
12863# Find out how to test for executable files. Don't use a zero-byte file,
12864# as systems may use methods other than mode bits to determine executability.
12865cat >conf$$.file <<_ASEOF
12866#! /bin/sh
12867exit 0
12868_ASEOF
12869chmod +x conf$$.file
12870if test -x conf$$.file >/dev/null 2>&1; then
12871  ac_executable_p="test -x"
12872else
12873  ac_executable_p="test -f"
12874fi
12875rm -f conf$$.file
12876
12877# Extract the first word of "msgmerge", so it can be a program name with args.
12878set dummy msgmerge; ac_word=$2
12879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12880$as_echo_n "checking for $ac_word... " >&6; }
12881if ${ac_cv_path_MSGMERGE+:} false; then :
12882  $as_echo_n "(cached) " >&6
12883else
12884  case "$MSGMERGE" in
12885  [\\/]* | ?:[\\/]*)
12886    ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12887    ;;
12888  *)
12889    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12890    for ac_dir in $PATH; do
12891      IFS="$ac_save_IFS"
12892      test -z "$ac_dir" && ac_dir=.
12893      for ac_exec_ext in '' $ac_executable_extensions; do
12894        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12895          if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
12896            ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
12897            break 2
12898          fi
12899        fi
12900      done
12901    done
12902    IFS="$ac_save_IFS"
12903  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12904    ;;
12905esac
12906fi
12907MSGMERGE="$ac_cv_path_MSGMERGE"
12908if test "$MSGMERGE" != ":"; then
12909  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
12910$as_echo "$MSGMERGE" >&6; }
12911else
12912  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12913$as_echo "no" >&6; }
12914fi
12915
12916
12917      if test "$GMSGFMT" != ":"; then
12918            if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
12919       (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12920      : ;
12921    else
12922      GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
12923      { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
12924$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
12925      GMSGFMT=":"
12926    fi
12927  fi
12928
12929      if test "$XGETTEXT" != ":"; then
12930            if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12931       (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
12932      : ;
12933    else
12934      { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
12935$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
12936      XGETTEXT=":"
12937    fi
12938        rm -f messages.po
12939  fi
12940
12941  ac_config_commands="$ac_config_commands default-1"
12942
12943
12944
12945      if test "X$prefix" = "XNONE"; then
12946    acl_final_prefix="$ac_default_prefix"
12947  else
12948    acl_final_prefix="$prefix"
12949  fi
12950  if test "X$exec_prefix" = "XNONE"; then
12951    acl_final_exec_prefix='${prefix}'
12952  else
12953    acl_final_exec_prefix="$exec_prefix"
12954  fi
12955  acl_save_prefix="$prefix"
12956  prefix="$acl_final_prefix"
12957  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
12958  prefix="$acl_save_prefix"
12959
12960
12961# Check whether --with-gnu-ld was given.
12962if test "${with_gnu_ld+set}" = set; then :
12963  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12964else
12965  with_gnu_ld=no
12966fi
12967
12968# Prepare PATH_SEPARATOR.
12969# The user is always right.
12970if test "${PATH_SEPARATOR+set}" != set; then
12971  echo "#! /bin/sh" >conf$$.sh
12972  echo  "exit 0"   >>conf$$.sh
12973  chmod +x conf$$.sh
12974  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12975    PATH_SEPARATOR=';'
12976  else
12977    PATH_SEPARATOR=:
12978  fi
12979  rm -f conf$$.sh
12980fi
12981ac_prog=ld
12982if test "$GCC" = yes; then
12983  # Check if gcc -print-prog-name=ld gives a path.
12984  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
12985$as_echo_n "checking for ld used by GCC... " >&6; }
12986  case $host in
12987  *-*-mingw*)
12988    # gcc leaves a trailing carriage return which upsets mingw
12989    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12990  *)
12991    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12992  esac
12993  case $ac_prog in
12994    # Accept absolute paths.
12995    [\\/]* | [A-Za-z]:[\\/]*)
12996      re_direlt='/[^/][^/]*/\.\./'
12997      # Canonicalize the path of ld
12998      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
12999      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
13000	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
13001      done
13002      test -z "$LD" && LD="$ac_prog"
13003      ;;
13004  "")
13005    # If it fails, then pretend we aren't using GCC.
13006    ac_prog=ld
13007    ;;
13008  *)
13009    # If it is relative, then search for the first ld in PATH.
13010    with_gnu_ld=unknown
13011    ;;
13012  esac
13013elif test "$with_gnu_ld" = yes; then
13014  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13015$as_echo_n "checking for GNU ld... " >&6; }
13016else
13017  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13018$as_echo_n "checking for non-GNU ld... " >&6; }
13019fi
13020if ${acl_cv_path_LD+:} false; then :
13021  $as_echo_n "(cached) " >&6
13022else
13023  if test -z "$LD"; then
13024  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
13025  for ac_dir in $PATH; do
13026    test -z "$ac_dir" && ac_dir=.
13027    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13028      acl_cv_path_LD="$ac_dir/$ac_prog"
13029      # Check to see if the program is GNU ld.  I'd rather use --version,
13030      # but apparently some GNU ld's only accept -v.
13031      # Break only if it was the GNU/non-GNU ld that we prefer.
13032      if "$acl_cv_path_LD" -v 2>&1 < /dev/null | $EGREP '(GNU|with BFD)' > /dev/null; then
13033	test "$with_gnu_ld" != no && break
13034      else
13035	test "$with_gnu_ld" != yes && break
13036      fi
13037    fi
13038  done
13039  IFS="$ac_save_ifs"
13040else
13041  acl_cv_path_LD="$LD" # Let the user override the test with a path.
13042fi
13043fi
13044
13045LD="$acl_cv_path_LD"
13046if test -n "$LD"; then
13047  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13048$as_echo "$LD" >&6; }
13049else
13050  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13051$as_echo "no" >&6; }
13052fi
13053test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13055$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13056if ${acl_cv_prog_gnu_ld+:} false; then :
13057  $as_echo_n "(cached) " >&6
13058else
13059  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
13060if $LD -v 2>&1 </dev/null | $EGREP '(GNU|with BFD)' 1>&5; then
13061  acl_cv_prog_gnu_ld=yes
13062else
13063  acl_cv_prog_gnu_ld=no
13064fi
13065fi
13066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
13067$as_echo "$acl_cv_prog_gnu_ld" >&6; }
13068with_gnu_ld=$acl_cv_prog_gnu_ld
13069
13070
13071
13072                                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
13073$as_echo_n "checking for shared library run path origin... " >&6; }
13074if ${acl_cv_rpath+:} false; then :
13075  $as_echo_n "(cached) " >&6
13076else
13077
13078    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
13079    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
13080    . ./conftest.sh
13081    rm -f ./conftest.sh
13082    acl_cv_rpath=done
13083
13084fi
13085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
13086$as_echo "$acl_cv_rpath" >&6; }
13087  wl="$acl_cv_wl"
13088  libext="$acl_cv_libext"
13089  shlibext="$acl_cv_shlibext"
13090  hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
13091  hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
13092  hardcode_direct="$acl_cv_hardcode_direct"
13093  hardcode_minus_L="$acl_cv_hardcode_minus_L"
13094    # Check whether --enable-rpath was given.
13095if test "${enable_rpath+set}" = set; then :
13096  enableval=$enable_rpath; :
13097else
13098  enable_rpath=yes
13099fi
13100
13101
13102
13103
13104
13105
13106
13107
13108    use_additional=yes
13109
13110  acl_save_prefix="$prefix"
13111  prefix="$acl_final_prefix"
13112  acl_save_exec_prefix="$exec_prefix"
13113  exec_prefix="$acl_final_exec_prefix"
13114
13115    eval additional_includedir=\"$includedir\"
13116    eval additional_libdir=\"$libdir\"
13117
13118  exec_prefix="$acl_save_exec_prefix"
13119  prefix="$acl_save_prefix"
13120
13121
13122# Check whether --with-libiconv-prefix was given.
13123if test "${with_libiconv_prefix+set}" = set; then :
13124  withval=$with_libiconv_prefix;
13125    if test "X$withval" = "Xno"; then
13126      use_additional=no
13127    else
13128      if test "X$withval" = "X"; then
13129
13130  acl_save_prefix="$prefix"
13131  prefix="$acl_final_prefix"
13132  acl_save_exec_prefix="$exec_prefix"
13133  exec_prefix="$acl_final_exec_prefix"
13134
13135          eval additional_includedir=\"$includedir\"
13136          eval additional_libdir=\"$libdir\"
13137
13138  exec_prefix="$acl_save_exec_prefix"
13139  prefix="$acl_save_prefix"
13140
13141      else
13142        additional_includedir="$withval/include"
13143        additional_libdir="$withval/lib"
13144      fi
13145    fi
13146
13147fi
13148
13149
13150# Check whether --with-libiconv-type was given.
13151if test "${with_libiconv_type+set}" = set; then :
13152  withval=$with_libiconv_type;  with_libiconv_type=$withval
13153else
13154   with_libiconv_type=auto
13155fi
13156
13157  lib_type=`eval echo \$with_libiconv_type`
13158
13159      LIBICONV=
13160  LTLIBICONV=
13161  INCICONV=
13162  rpathdirs=
13163  ltrpathdirs=
13164  names_already_handled=
13165  names_next_round='iconv '
13166  while test -n "$names_next_round"; do
13167    names_this_round="$names_next_round"
13168    names_next_round=
13169    for name in $names_this_round; do
13170      already_handled=
13171      for n in $names_already_handled; do
13172        if test "$n" = "$name"; then
13173          already_handled=yes
13174          break
13175        fi
13176      done
13177      if test -z "$already_handled"; then
13178        names_already_handled="$names_already_handled $name"
13179                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13180        eval value=\"\$HAVE_LIB$uppername\"
13181        if test -n "$value"; then
13182          if test "$value" = yes; then
13183            eval value=\"\$LIB$uppername\"
13184            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
13185            eval value=\"\$LTLIB$uppername\"
13186            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
13187          else
13188                                    :
13189          fi
13190        else
13191                              found_dir=
13192          found_la=
13193          found_so=
13194          found_a=
13195          if test $use_additional = yes; then
13196            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
13197              found_dir="$additional_libdir"
13198              found_so="$additional_libdir/lib$name.$shlibext"
13199              if test -f "$additional_libdir/lib$name.la"; then
13200                found_la="$additional_libdir/lib$name.la"
13201              fi
13202            elif test x$lib_type != xshared; then
13203              if test -f "$additional_libdir/lib$name.$libext"; then
13204                found_dir="$additional_libdir"
13205                found_a="$additional_libdir/lib$name.$libext"
13206                if test -f "$additional_libdir/lib$name.la"; then
13207                  found_la="$additional_libdir/lib$name.la"
13208                fi
13209              fi
13210            fi
13211          fi
13212          if test "X$found_dir" = "X"; then
13213            for x in $LDFLAGS $LTLIBICONV; do
13214
13215  acl_save_prefix="$prefix"
13216  prefix="$acl_final_prefix"
13217  acl_save_exec_prefix="$exec_prefix"
13218  exec_prefix="$acl_final_exec_prefix"
13219  eval x=\"$x\"
13220  exec_prefix="$acl_save_exec_prefix"
13221  prefix="$acl_save_prefix"
13222
13223              case "$x" in
13224                -L*)
13225                  dir=`echo "X$x" | sed -e 's/^X-L//'`
13226                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
13227                    found_dir="$dir"
13228                    found_so="$dir/lib$name.$shlibext"
13229                    if test -f "$dir/lib$name.la"; then
13230                      found_la="$dir/lib$name.la"
13231                    fi
13232                  elif test x$lib_type != xshared; then
13233                    if test -f "$dir/lib$name.$libext"; then
13234                      found_dir="$dir"
13235                      found_a="$dir/lib$name.$libext"
13236                      if test -f "$dir/lib$name.la"; then
13237                        found_la="$dir/lib$name.la"
13238                      fi
13239                    fi
13240                  fi
13241                  ;;
13242              esac
13243              if test "X$found_dir" != "X"; then
13244                break
13245              fi
13246            done
13247          fi
13248          if test "X$found_dir" != "X"; then
13249                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
13250            if test "X$found_so" != "X"; then
13251                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
13252                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13253              else
13254                                                                                haveit=
13255                for x in $ltrpathdirs; do
13256                  if test "X$x" = "X$found_dir"; then
13257                    haveit=yes
13258                    break
13259                  fi
13260                done
13261                if test -z "$haveit"; then
13262                  ltrpathdirs="$ltrpathdirs $found_dir"
13263                fi
13264                                if test "$hardcode_direct" = yes; then
13265                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13266                else
13267                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
13268                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13269                                                            haveit=
13270                    for x in $rpathdirs; do
13271                      if test "X$x" = "X$found_dir"; then
13272                        haveit=yes
13273                        break
13274                      fi
13275                    done
13276                    if test -z "$haveit"; then
13277                      rpathdirs="$rpathdirs $found_dir"
13278                    fi
13279                  else
13280                                                                                haveit=
13281                    for x in $LDFLAGS $LIBICONV; do
13282
13283  acl_save_prefix="$prefix"
13284  prefix="$acl_final_prefix"
13285  acl_save_exec_prefix="$exec_prefix"
13286  exec_prefix="$acl_final_exec_prefix"
13287  eval x=\"$x\"
13288  exec_prefix="$acl_save_exec_prefix"
13289  prefix="$acl_save_prefix"
13290
13291                      if test "X$x" = "X-L$found_dir"; then
13292                        haveit=yes
13293                        break
13294                      fi
13295                    done
13296                    if test -z "$haveit"; then
13297                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
13298                    fi
13299                    if test "$hardcode_minus_L" != no; then
13300                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13301                    else
13302                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
13303                    fi
13304                  fi
13305                fi
13306              fi
13307            else
13308              if test "X$found_a" != "X"; then
13309                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
13310              else
13311                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
13312              fi
13313            fi
13314                        additional_includedir=
13315            case "$found_dir" in
13316              */lib | */lib/)
13317                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
13318                additional_includedir="$basedir/include"
13319                ;;
13320            esac
13321            if test "X$additional_includedir" != "X"; then
13322                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
13323                haveit=
13324                if test "X$additional_includedir" = "X/usr/local/include"; then
13325                  if test -n "$GCC"; then
13326                    case $host_os in
13327                      linux*) haveit=yes;;
13328                    esac
13329                  fi
13330                fi
13331                if test -z "$haveit"; then
13332                  for x in $CPPFLAGS $INCICONV; do
13333
13334  acl_save_prefix="$prefix"
13335  prefix="$acl_final_prefix"
13336  acl_save_exec_prefix="$exec_prefix"
13337  exec_prefix="$acl_final_exec_prefix"
13338  eval x=\"$x\"
13339  exec_prefix="$acl_save_exec_prefix"
13340  prefix="$acl_save_prefix"
13341
13342                    if test "X$x" = "X-I$additional_includedir"; then
13343                      haveit=yes
13344                      break
13345                    fi
13346                  done
13347                  if test -z "$haveit"; then
13348                    if test -d "$additional_includedir"; then
13349                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
13350                    fi
13351                  fi
13352                fi
13353              fi
13354            fi
13355                        if test -n "$found_la"; then
13356                                                        save_libdir="$libdir"
13357              case "$found_la" in
13358                */* | *\\*) . "$found_la" ;;
13359                *) . "./$found_la" ;;
13360              esac
13361              libdir="$save_libdir"
13362                            for dep in $dependency_libs; do
13363                case "$dep" in
13364                  -L*)
13365                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13366                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
13367                      haveit=
13368                      if test "X$additional_libdir" = "X/usr/local/lib"; then
13369                        if test -n "$GCC"; then
13370                          case $host_os in
13371                            linux*) haveit=yes;;
13372                          esac
13373                        fi
13374                      fi
13375                      if test -z "$haveit"; then
13376                        haveit=
13377                        for x in $LDFLAGS $LIBICONV; do
13378
13379  acl_save_prefix="$prefix"
13380  prefix="$acl_final_prefix"
13381  acl_save_exec_prefix="$exec_prefix"
13382  exec_prefix="$acl_final_exec_prefix"
13383  eval x=\"$x\"
13384  exec_prefix="$acl_save_exec_prefix"
13385  prefix="$acl_save_prefix"
13386
13387                          if test "X$x" = "X-L$additional_libdir"; then
13388                            haveit=yes
13389                            break
13390                          fi
13391                        done
13392                        if test -z "$haveit"; then
13393                          if test -d "$additional_libdir"; then
13394                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
13395                          fi
13396                        fi
13397                        haveit=
13398                        for x in $LDFLAGS $LTLIBICONV; do
13399
13400  acl_save_prefix="$prefix"
13401  prefix="$acl_final_prefix"
13402  acl_save_exec_prefix="$exec_prefix"
13403  exec_prefix="$acl_final_exec_prefix"
13404  eval x=\"$x\"
13405  exec_prefix="$acl_save_exec_prefix"
13406  prefix="$acl_save_prefix"
13407
13408                          if test "X$x" = "X-L$additional_libdir"; then
13409                            haveit=yes
13410                            break
13411                          fi
13412                        done
13413                        if test -z "$haveit"; then
13414                          if test -d "$additional_libdir"; then
13415                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
13416                          fi
13417                        fi
13418                      fi
13419                    fi
13420                    ;;
13421                  -R*)
13422                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
13423                    if test "$enable_rpath" != no; then
13424                                                                  haveit=
13425                      for x in $rpathdirs; do
13426                        if test "X$x" = "X$dir"; then
13427                          haveit=yes
13428                          break
13429                        fi
13430                      done
13431                      if test -z "$haveit"; then
13432                        rpathdirs="$rpathdirs $dir"
13433                      fi
13434                                                                  haveit=
13435                      for x in $ltrpathdirs; do
13436                        if test "X$x" = "X$dir"; then
13437                          haveit=yes
13438                          break
13439                        fi
13440                      done
13441                      if test -z "$haveit"; then
13442                        ltrpathdirs="$ltrpathdirs $dir"
13443                      fi
13444                    fi
13445                    ;;
13446                  -l*)
13447                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13448                    ;;
13449                  *.la)
13450                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13451                    ;;
13452                  *)
13453                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
13454                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
13455                    ;;
13456                esac
13457              done
13458            fi
13459          else
13460                                                            if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
13461              LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
13462              LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
13463            else
13464              LIBICONV="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
13465              LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
13466            fi
13467          fi
13468        fi
13469      fi
13470    done
13471  done
13472  if test "X$rpathdirs" != "X"; then
13473    if test -n "$hardcode_libdir_separator"; then
13474                        alldirs=
13475      for found_dir in $rpathdirs; do
13476        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
13477      done
13478            acl_save_libdir="$libdir"
13479      libdir="$alldirs"
13480      eval flag=\"$hardcode_libdir_flag_spec\"
13481      libdir="$acl_save_libdir"
13482      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
13483    else
13484            for found_dir in $rpathdirs; do
13485        acl_save_libdir="$libdir"
13486        libdir="$found_dir"
13487        eval flag=\"$hardcode_libdir_flag_spec\"
13488        libdir="$acl_save_libdir"
13489        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
13490      done
13491    fi
13492  fi
13493  if test "X$ltrpathdirs" != "X"; then
13494            for found_dir in $ltrpathdirs; do
13495      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
13496    done
13497  fi
13498
13499
13500
13501
13502
13503if test -f ../gettext/uninstalled-config.sh; then
13504  relative_builddir='$(top_builddir)/../gettext'
13505  .  ../gettext/uninstalled-config.sh
13506else
13507  # The sister gettext directory doesn't exist and won't collect information on
13508  # using gettext for us.  Call a bundled AM_GNU_GETTEXT.
13509
13510
13511
13512
13513
13514
13515
13516
13517
13518
13519
13520
13521
13522
13523
13524
13525
13526
13527
13528
13529
13530
13531
13532    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
13533$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
13534if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
13535  $as_echo_n "(cached) " >&6
13536else
13537  gt_save_LIBS="$LIBS"
13538     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
13539     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13540/* end confdefs.h.  */
13541#include <CoreFoundation/CFPreferences.h>
13542int
13543main ()
13544{
13545CFPreferencesCopyAppValue(NULL, NULL)
13546  ;
13547  return 0;
13548}
13549_ACEOF
13550if ac_fn_c_try_link "$LINENO"; then :
13551  gt_cv_func_CFPreferencesCopyAppValue=yes
13552else
13553  gt_cv_func_CFPreferencesCopyAppValue=no
13554fi
13555rm -f core conftest.err conftest.$ac_objext \
13556    conftest$ac_exeext conftest.$ac_ext
13557     LIBS="$gt_save_LIBS"
13558fi
13559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
13560$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
13561  if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
13562
13563$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
13564
13565  fi
13566                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5
13567$as_echo_n "checking for CFLocaleCopyPreferredLanguages... " >&6; }
13568if ${gt_cv_func_CFLocaleCopyPreferredLanguages+:} false; then :
13569  $as_echo_n "(cached) " >&6
13570else
13571  gt_save_LIBS="$LIBS"
13572     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
13573     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13574/* end confdefs.h.  */
13575#include <CoreFoundation/CFLocale.h>
13576int
13577main ()
13578{
13579CFLocaleCopyPreferredLanguages();
13580  ;
13581  return 0;
13582}
13583_ACEOF
13584if ac_fn_c_try_link "$LINENO"; then :
13585  gt_cv_func_CFLocaleCopyPreferredLanguages=yes
13586else
13587  gt_cv_func_CFLocaleCopyPreferredLanguages=no
13588fi
13589rm -f core conftest.err conftest.$ac_objext \
13590    conftest$ac_exeext conftest.$ac_ext
13591     LIBS="$gt_save_LIBS"
13592fi
13593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5
13594$as_echo "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; }
13595  if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
13596
13597$as_echo "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h
13598
13599  fi
13600  INTL_MACOSX_LIBS=
13601  if test $gt_cv_func_CFPreferencesCopyAppValue = yes \
13602     || test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
13603                    INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation -Wl,-framework -Wl,CoreServices"
13604  fi
13605
13606
13607
13608
13609
13610
13611  LIBINTL=
13612  LTLIBINTL=
13613  POSUB=
13614
13615    case " $gt_needs " in
13616    *" need-formatstring-macros "*) gt_api_version=3 ;;
13617    *" need-ngettext "*) gt_api_version=2 ;;
13618    *) gt_api_version=1 ;;
13619  esac
13620  gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
13621  gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
13622
13623    if test "$USE_NLS" = "yes"; then
13624    gt_use_preinstalled_gnugettext=no
13625
13626
13627        if test $gt_api_version -ge 3; then
13628          gt_revision_test_code='
13629#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
13630#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
13631#endif
13632typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
13633'
13634        else
13635          gt_revision_test_code=
13636        fi
13637        if test $gt_api_version -ge 2; then
13638          gt_expression_test_code=' + * ngettext ("", "", 0)'
13639        else
13640          gt_expression_test_code=
13641        fi
13642
13643        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
13644$as_echo_n "checking for GNU gettext in libc... " >&6; }
13645if eval \${$gt_func_gnugettext_libc+:} false; then :
13646  $as_echo_n "(cached) " >&6
13647else
13648  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13649/* end confdefs.h.  */
13650
13651#include <libintl.h>
13652#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
13653extern int _nl_msg_cat_cntr;
13654extern int *_nl_domain_bindings;
13655#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
13656#else
13657#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
13658#endif
13659$gt_revision_test_code
13660
13661int
13662main ()
13663{
13664
13665bindtextdomain ("", "");
13666return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
13667
13668  ;
13669  return 0;
13670}
13671_ACEOF
13672if ac_fn_c_try_link "$LINENO"; then :
13673  eval "$gt_func_gnugettext_libc=yes"
13674else
13675  eval "$gt_func_gnugettext_libc=no"
13676fi
13677rm -f core conftest.err conftest.$ac_objext \
13678    conftest$ac_exeext conftest.$ac_ext
13679fi
13680eval ac_res=\$$gt_func_gnugettext_libc
13681	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13682$as_echo "$ac_res" >&6; }
13683
13684        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
13685
13686
13687
13688
13689
13690          am_save_CPPFLAGS="$CPPFLAGS"
13691
13692  for element in $INCICONV; do
13693    haveit=
13694    for x in $CPPFLAGS; do
13695
13696  acl_save_prefix="$prefix"
13697  prefix="$acl_final_prefix"
13698  acl_save_exec_prefix="$exec_prefix"
13699  exec_prefix="$acl_final_exec_prefix"
13700  eval x=\"$x\"
13701  exec_prefix="$acl_save_exec_prefix"
13702  prefix="$acl_save_prefix"
13703
13704      if test "X$x" = "X$element"; then
13705        haveit=yes
13706        break
13707      fi
13708    done
13709    if test -z "$haveit"; then
13710      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13711    fi
13712  done
13713
13714
13715  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
13716$as_echo_n "checking for iconv... " >&6; }
13717if ${am_cv_func_iconv+:} false; then :
13718  $as_echo_n "(cached) " >&6
13719else
13720
13721    am_cv_func_iconv="no, consider installing GNU libiconv"
13722    am_cv_lib_iconv=no
13723    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13724/* end confdefs.h.  */
13725
13726#include <stdlib.h>
13727#include <iconv.h>
13728
13729int
13730main ()
13731{
13732iconv_t cd = iconv_open("","");
13733           iconv(cd,NULL,NULL,NULL,NULL);
13734           iconv_close(cd);
13735  ;
13736  return 0;
13737}
13738_ACEOF
13739if ac_fn_c_try_link "$LINENO"; then :
13740  am_cv_func_iconv=yes
13741fi
13742rm -f core conftest.err conftest.$ac_objext \
13743    conftest$ac_exeext conftest.$ac_ext
13744    if test "$am_cv_func_iconv" != yes; then
13745      am_save_LIBS="$LIBS"
13746      LIBS="$LIBS $LIBICONV"
13747      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13748/* end confdefs.h.  */
13749
13750#include <stdlib.h>
13751#include <iconv.h>
13752
13753int
13754main ()
13755{
13756iconv_t cd = iconv_open("","");
13757             iconv(cd,NULL,NULL,NULL,NULL);
13758             iconv_close(cd);
13759  ;
13760  return 0;
13761}
13762_ACEOF
13763if ac_fn_c_try_link "$LINENO"; then :
13764  am_cv_lib_iconv=yes
13765        am_cv_func_iconv=yes
13766fi
13767rm -f core conftest.err conftest.$ac_objext \
13768    conftest$ac_exeext conftest.$ac_ext
13769      LIBS="$am_save_LIBS"
13770    fi
13771
13772fi
13773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
13774$as_echo "$am_cv_func_iconv" >&6; }
13775  if test "$am_cv_func_iconv" = yes; then
13776    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
13777$as_echo_n "checking for working iconv... " >&6; }
13778if ${am_cv_func_iconv_works+:} false; then :
13779  $as_echo_n "(cached) " >&6
13780else
13781
13782                  am_save_LIBS="$LIBS"
13783      if test $am_cv_lib_iconv = yes; then
13784        LIBS="$LIBS $LIBICONV"
13785      fi
13786      am_cv_func_iconv_works=no
13787      for ac_iconv_const in '' 'const'; do
13788        if test "$cross_compiling" = yes; then :
13789  case "$host_os" in
13790             aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
13791             *)            am_cv_func_iconv_works="guessing yes" ;;
13792           esac
13793else
13794  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13795/* end confdefs.h.  */
13796
13797#include <iconv.h>
13798#include <string.h>
13799
13800#ifndef ICONV_CONST
13801# define ICONV_CONST $ac_iconv_const
13802#endif
13803
13804int
13805main ()
13806{
13807int result = 0;
13808  /* Test against AIX 5.1...7.2 bug: Failures are not distinguishable from
13809     successful returns.  This is even documented in
13810     <https://www.ibm.com/support/knowledgecenter/ssw_aix_72/i_bostechref/iconv.html> */
13811  {
13812    iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
13813    if (cd_utf8_to_88591 != (iconv_t)(-1))
13814      {
13815        static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
13816        char buf[10];
13817        ICONV_CONST char *inptr = input;
13818        size_t inbytesleft = strlen (input);
13819        char *outptr = buf;
13820        size_t outbytesleft = sizeof (buf);
13821        size_t res = iconv (cd_utf8_to_88591,
13822                            &inptr, &inbytesleft,
13823                            &outptr, &outbytesleft);
13824        if (res == 0)
13825          result |= 1;
13826        iconv_close (cd_utf8_to_88591);
13827      }
13828  }
13829  /* Test against Solaris 10 bug: Failures are not distinguishable from
13830     successful returns.  */
13831  {
13832    iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
13833    if (cd_ascii_to_88591 != (iconv_t)(-1))
13834      {
13835        static ICONV_CONST char input[] = "\263";
13836        char buf[10];
13837        ICONV_CONST char *inptr = input;
13838        size_t inbytesleft = strlen (input);
13839        char *outptr = buf;
13840        size_t outbytesleft = sizeof (buf);
13841        size_t res = iconv (cd_ascii_to_88591,
13842                            &inptr, &inbytesleft,
13843                            &outptr, &outbytesleft);
13844        if (res == 0)
13845          result |= 2;
13846        iconv_close (cd_ascii_to_88591);
13847      }
13848  }
13849  /* Test against AIX 6.1..7.1 bug: Buffer overrun.  */
13850  {
13851    iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
13852    if (cd_88591_to_utf8 != (iconv_t)(-1))
13853      {
13854        static ICONV_CONST char input[] = "\304";
13855        static char buf[2] = { (char)0xDE, (char)0xAD };
13856        ICONV_CONST char *inptr = input;
13857        size_t inbytesleft = 1;
13858        char *outptr = buf;
13859        size_t outbytesleft = 1;
13860        size_t res = iconv (cd_88591_to_utf8,
13861                            &inptr, &inbytesleft,
13862                            &outptr, &outbytesleft);
13863        if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
13864          result |= 4;
13865        iconv_close (cd_88591_to_utf8);
13866      }
13867  }
13868#if 0 /* This bug could be worked around by the caller.  */
13869  /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
13870  {
13871    iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
13872    if (cd_88591_to_utf8 != (iconv_t)(-1))
13873      {
13874        static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
13875        char buf[50];
13876        ICONV_CONST char *inptr = input;
13877        size_t inbytesleft = strlen (input);
13878        char *outptr = buf;
13879        size_t outbytesleft = sizeof (buf);
13880        size_t res = iconv (cd_88591_to_utf8,
13881                            &inptr, &inbytesleft,
13882                            &outptr, &outbytesleft);
13883        if ((int)res > 0)
13884          result |= 8;
13885        iconv_close (cd_88591_to_utf8);
13886      }
13887  }
13888#endif
13889  /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
13890     provided.  */
13891  {
13892    /* Try standardized names.  */
13893    iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
13894    /* Try IRIX, OSF/1 names.  */
13895    iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
13896    /* Try AIX names.  */
13897    iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
13898    /* Try HP-UX names.  */
13899    iconv_t cd4 = iconv_open ("utf8", "eucJP");
13900    if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
13901        && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
13902      result |= 16;
13903    if (cd1 != (iconv_t)(-1))
13904      iconv_close (cd1);
13905    if (cd2 != (iconv_t)(-1))
13906      iconv_close (cd2);
13907    if (cd3 != (iconv_t)(-1))
13908      iconv_close (cd3);
13909    if (cd4 != (iconv_t)(-1))
13910      iconv_close (cd4);
13911  }
13912  return result;
13913
13914  ;
13915  return 0;
13916}
13917_ACEOF
13918if ac_fn_c_try_run "$LINENO"; then :
13919  am_cv_func_iconv_works=yes
13920fi
13921rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13922  conftest.$ac_objext conftest.beam conftest.$ac_ext
13923fi
13924
13925        test "$am_cv_func_iconv_works" = no || break
13926      done
13927      LIBS="$am_save_LIBS"
13928
13929fi
13930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
13931$as_echo "$am_cv_func_iconv_works" >&6; }
13932    case "$am_cv_func_iconv_works" in
13933      *no) am_func_iconv=no am_cv_lib_iconv=no ;;
13934      *)   am_func_iconv=yes ;;
13935    esac
13936  else
13937    am_func_iconv=no am_cv_lib_iconv=no
13938  fi
13939  if test "$am_func_iconv" = yes; then
13940
13941$as_echo "#define HAVE_ICONV 1" >>confdefs.h
13942
13943  fi
13944  if test "$am_cv_lib_iconv" = yes; then
13945    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
13946$as_echo_n "checking how to link with libiconv... " >&6; }
13947    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
13948$as_echo "$LIBICONV" >&6; }
13949  else
13950            CPPFLAGS="$am_save_CPPFLAGS"
13951    LIBICONV=
13952    LTLIBICONV=
13953  fi
13954
13955
13956
13957
13958
13959
13960    use_additional=yes
13961
13962  acl_save_prefix="$prefix"
13963  prefix="$acl_final_prefix"
13964  acl_save_exec_prefix="$exec_prefix"
13965  exec_prefix="$acl_final_exec_prefix"
13966
13967    eval additional_includedir=\"$includedir\"
13968    eval additional_libdir=\"$libdir\"
13969
13970  exec_prefix="$acl_save_exec_prefix"
13971  prefix="$acl_save_prefix"
13972
13973
13974# Check whether --with-libintl-prefix was given.
13975if test "${with_libintl_prefix+set}" = set; then :
13976  withval=$with_libintl_prefix;
13977    if test "X$withval" = "Xno"; then
13978      use_additional=no
13979    else
13980      if test "X$withval" = "X"; then
13981
13982  acl_save_prefix="$prefix"
13983  prefix="$acl_final_prefix"
13984  acl_save_exec_prefix="$exec_prefix"
13985  exec_prefix="$acl_final_exec_prefix"
13986
13987          eval additional_includedir=\"$includedir\"
13988          eval additional_libdir=\"$libdir\"
13989
13990  exec_prefix="$acl_save_exec_prefix"
13991  prefix="$acl_save_prefix"
13992
13993      else
13994        additional_includedir="$withval/include"
13995        additional_libdir="$withval/lib"
13996      fi
13997    fi
13998
13999fi
14000
14001
14002# Check whether --with-libintl-type was given.
14003if test "${with_libintl_type+set}" = set; then :
14004  withval=$with_libintl_type;  with_libintl_type=$withval
14005else
14006   with_libintl_type=auto
14007fi
14008
14009  lib_type=`eval echo \$with_libintl_type`
14010
14011      LIBINTL=
14012  LTLIBINTL=
14013  INCINTL=
14014  rpathdirs=
14015  ltrpathdirs=
14016  names_already_handled=
14017  names_next_round='intl '
14018  while test -n "$names_next_round"; do
14019    names_this_round="$names_next_round"
14020    names_next_round=
14021    for name in $names_this_round; do
14022      already_handled=
14023      for n in $names_already_handled; do
14024        if test "$n" = "$name"; then
14025          already_handled=yes
14026          break
14027        fi
14028      done
14029      if test -z "$already_handled"; then
14030        names_already_handled="$names_already_handled $name"
14031                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14032        eval value=\"\$HAVE_LIB$uppername\"
14033        if test -n "$value"; then
14034          if test "$value" = yes; then
14035            eval value=\"\$LIB$uppername\"
14036            test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
14037            eval value=\"\$LTLIB$uppername\"
14038            test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
14039          else
14040                                    :
14041          fi
14042        else
14043                              found_dir=
14044          found_la=
14045          found_so=
14046          found_a=
14047          if test $use_additional = yes; then
14048            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
14049              found_dir="$additional_libdir"
14050              found_so="$additional_libdir/lib$name.$shlibext"
14051              if test -f "$additional_libdir/lib$name.la"; then
14052                found_la="$additional_libdir/lib$name.la"
14053              fi
14054            elif test x$lib_type != xshared; then
14055              if test -f "$additional_libdir/lib$name.$libext"; then
14056                found_dir="$additional_libdir"
14057                found_a="$additional_libdir/lib$name.$libext"
14058                if test -f "$additional_libdir/lib$name.la"; then
14059                  found_la="$additional_libdir/lib$name.la"
14060                fi
14061              fi
14062            fi
14063          fi
14064          if test "X$found_dir" = "X"; then
14065            for x in $LDFLAGS $LTLIBINTL; do
14066
14067  acl_save_prefix="$prefix"
14068  prefix="$acl_final_prefix"
14069  acl_save_exec_prefix="$exec_prefix"
14070  exec_prefix="$acl_final_exec_prefix"
14071  eval x=\"$x\"
14072  exec_prefix="$acl_save_exec_prefix"
14073  prefix="$acl_save_prefix"
14074
14075              case "$x" in
14076                -L*)
14077                  dir=`echo "X$x" | sed -e 's/^X-L//'`
14078                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
14079                    found_dir="$dir"
14080                    found_so="$dir/lib$name.$shlibext"
14081                    if test -f "$dir/lib$name.la"; then
14082                      found_la="$dir/lib$name.la"
14083                    fi
14084                  elif test x$lib_type != xshared; then
14085                    if test -f "$dir/lib$name.$libext"; then
14086                      found_dir="$dir"
14087                      found_a="$dir/lib$name.$libext"
14088                      if test -f "$dir/lib$name.la"; then
14089                        found_la="$dir/lib$name.la"
14090                      fi
14091                    fi
14092                  fi
14093                  ;;
14094              esac
14095              if test "X$found_dir" != "X"; then
14096                break
14097              fi
14098            done
14099          fi
14100          if test "X$found_dir" != "X"; then
14101                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
14102            if test "X$found_so" != "X"; then
14103                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
14104                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14105              else
14106                                                                                haveit=
14107                for x in $ltrpathdirs; do
14108                  if test "X$x" = "X$found_dir"; then
14109                    haveit=yes
14110                    break
14111                  fi
14112                done
14113                if test -z "$haveit"; then
14114                  ltrpathdirs="$ltrpathdirs $found_dir"
14115                fi
14116                                if test "$hardcode_direct" = yes; then
14117                                                      LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14118                else
14119                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
14120                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14121                                                            haveit=
14122                    for x in $rpathdirs; do
14123                      if test "X$x" = "X$found_dir"; then
14124                        haveit=yes
14125                        break
14126                      fi
14127                    done
14128                    if test -z "$haveit"; then
14129                      rpathdirs="$rpathdirs $found_dir"
14130                    fi
14131                  else
14132                                                                                haveit=
14133                    for x in $LDFLAGS $LIBINTL; do
14134
14135  acl_save_prefix="$prefix"
14136  prefix="$acl_final_prefix"
14137  acl_save_exec_prefix="$exec_prefix"
14138  exec_prefix="$acl_final_exec_prefix"
14139  eval x=\"$x\"
14140  exec_prefix="$acl_save_exec_prefix"
14141  prefix="$acl_save_prefix"
14142
14143                      if test "X$x" = "X-L$found_dir"; then
14144                        haveit=yes
14145                        break
14146                      fi
14147                    done
14148                    if test -z "$haveit"; then
14149                      LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
14150                    fi
14151                    if test "$hardcode_minus_L" != no; then
14152                                                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14153                    else
14154                                                                                                                                                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14155                    fi
14156                  fi
14157                fi
14158              fi
14159            else
14160              if test "X$found_a" != "X"; then
14161                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
14162              else
14163                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
14164              fi
14165            fi
14166                        additional_includedir=
14167            case "$found_dir" in
14168              */lib | */lib/)
14169                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
14170                additional_includedir="$basedir/include"
14171                ;;
14172            esac
14173            if test "X$additional_includedir" != "X"; then
14174                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
14175                haveit=
14176                if test "X$additional_includedir" = "X/usr/local/include"; then
14177                  if test -n "$GCC"; then
14178                    case $host_os in
14179                      linux*) haveit=yes;;
14180                    esac
14181                  fi
14182                fi
14183                if test -z "$haveit"; then
14184                  for x in $CPPFLAGS $INCINTL; do
14185
14186  acl_save_prefix="$prefix"
14187  prefix="$acl_final_prefix"
14188  acl_save_exec_prefix="$exec_prefix"
14189  exec_prefix="$acl_final_exec_prefix"
14190  eval x=\"$x\"
14191  exec_prefix="$acl_save_exec_prefix"
14192  prefix="$acl_save_prefix"
14193
14194                    if test "X$x" = "X-I$additional_includedir"; then
14195                      haveit=yes
14196                      break
14197                    fi
14198                  done
14199                  if test -z "$haveit"; then
14200                    if test -d "$additional_includedir"; then
14201                                            INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
14202                    fi
14203                  fi
14204                fi
14205              fi
14206            fi
14207                        if test -n "$found_la"; then
14208                                                        save_libdir="$libdir"
14209              case "$found_la" in
14210                */* | *\\*) . "$found_la" ;;
14211                *) . "./$found_la" ;;
14212              esac
14213              libdir="$save_libdir"
14214                            for dep in $dependency_libs; do
14215                case "$dep" in
14216                  -L*)
14217                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14218                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
14219                      haveit=
14220                      if test "X$additional_libdir" = "X/usr/local/lib"; then
14221                        if test -n "$GCC"; then
14222                          case $host_os in
14223                            linux*) haveit=yes;;
14224                          esac
14225                        fi
14226                      fi
14227                      if test -z "$haveit"; then
14228                        haveit=
14229                        for x in $LDFLAGS $LIBINTL; do
14230
14231  acl_save_prefix="$prefix"
14232  prefix="$acl_final_prefix"
14233  acl_save_exec_prefix="$exec_prefix"
14234  exec_prefix="$acl_final_exec_prefix"
14235  eval x=\"$x\"
14236  exec_prefix="$acl_save_exec_prefix"
14237  prefix="$acl_save_prefix"
14238
14239                          if test "X$x" = "X-L$additional_libdir"; then
14240                            haveit=yes
14241                            break
14242                          fi
14243                        done
14244                        if test -z "$haveit"; then
14245                          if test -d "$additional_libdir"; then
14246                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
14247                          fi
14248                        fi
14249                        haveit=
14250                        for x in $LDFLAGS $LTLIBINTL; do
14251
14252  acl_save_prefix="$prefix"
14253  prefix="$acl_final_prefix"
14254  acl_save_exec_prefix="$exec_prefix"
14255  exec_prefix="$acl_final_exec_prefix"
14256  eval x=\"$x\"
14257  exec_prefix="$acl_save_exec_prefix"
14258  prefix="$acl_save_prefix"
14259
14260                          if test "X$x" = "X-L$additional_libdir"; then
14261                            haveit=yes
14262                            break
14263                          fi
14264                        done
14265                        if test -z "$haveit"; then
14266                          if test -d "$additional_libdir"; then
14267                                                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
14268                          fi
14269                        fi
14270                      fi
14271                    fi
14272                    ;;
14273                  -R*)
14274                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
14275                    if test "$enable_rpath" != no; then
14276                                                                  haveit=
14277                      for x in $rpathdirs; do
14278                        if test "X$x" = "X$dir"; then
14279                          haveit=yes
14280                          break
14281                        fi
14282                      done
14283                      if test -z "$haveit"; then
14284                        rpathdirs="$rpathdirs $dir"
14285                      fi
14286                                                                  haveit=
14287                      for x in $ltrpathdirs; do
14288                        if test "X$x" = "X$dir"; then
14289                          haveit=yes
14290                          break
14291                        fi
14292                      done
14293                      if test -z "$haveit"; then
14294                        ltrpathdirs="$ltrpathdirs $dir"
14295                      fi
14296                    fi
14297                    ;;
14298                  -l*)
14299                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14300                    ;;
14301                  *.la)
14302                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14303                    ;;
14304                  *)
14305                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
14306                    LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
14307                    ;;
14308                esac
14309              done
14310            fi
14311          else
14312                                                            if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
14313              LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14314              LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
14315            else
14316              LIBINTL="${LIBINTL}${LIBINTL:+ }-l:lib$name.$libext"
14317              LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l:lib$name.$libext"
14318            fi
14319          fi
14320        fi
14321      fi
14322    done
14323  done
14324  if test "X$rpathdirs" != "X"; then
14325    if test -n "$hardcode_libdir_separator"; then
14326                        alldirs=
14327      for found_dir in $rpathdirs; do
14328        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14329      done
14330            acl_save_libdir="$libdir"
14331      libdir="$alldirs"
14332      eval flag=\"$hardcode_libdir_flag_spec\"
14333      libdir="$acl_save_libdir"
14334      LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14335    else
14336            for found_dir in $rpathdirs; do
14337        acl_save_libdir="$libdir"
14338        libdir="$found_dir"
14339        eval flag=\"$hardcode_libdir_flag_spec\"
14340        libdir="$acl_save_libdir"
14341        LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14342      done
14343    fi
14344  fi
14345  if test "X$ltrpathdirs" != "X"; then
14346            for found_dir in $ltrpathdirs; do
14347      LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
14348    done
14349  fi
14350
14351          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
14352$as_echo_n "checking for GNU gettext in libintl... " >&6; }
14353if eval \${$gt_func_gnugettext_libintl+:} false; then :
14354  $as_echo_n "(cached) " >&6
14355else
14356  gt_save_CPPFLAGS="$CPPFLAGS"
14357            CPPFLAGS="$CPPFLAGS $INCINTL"
14358            gt_save_LIBS="$LIBS"
14359            LIBS="$LIBS $LIBINTL"
14360                        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14361/* end confdefs.h.  */
14362
14363#include <libintl.h>
14364#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
14365extern int _nl_msg_cat_cntr;
14366extern
14367#ifdef __cplusplus
14368"C"
14369#endif
14370const char *_nl_expand_alias (const char *);
14371#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
14372#else
14373#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
14374#endif
14375$gt_revision_test_code
14376
14377int
14378main ()
14379{
14380
14381bindtextdomain ("", "");
14382return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
14383
14384  ;
14385  return 0;
14386}
14387_ACEOF
14388if ac_fn_c_try_link "$LINENO"; then :
14389  eval "$gt_func_gnugettext_libintl=yes"
14390else
14391  eval "$gt_func_gnugettext_libintl=no"
14392fi
14393rm -f core conftest.err conftest.$ac_objext \
14394    conftest$ac_exeext conftest.$ac_ext
14395                        if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
14396              LIBS="$LIBS $LIBICONV"
14397              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14398/* end confdefs.h.  */
14399
14400#include <libintl.h>
14401#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
14402extern int _nl_msg_cat_cntr;
14403extern
14404#ifdef __cplusplus
14405"C"
14406#endif
14407const char *_nl_expand_alias (const char *);
14408#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
14409#else
14410#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
14411#endif
14412$gt_revision_test_code
14413
14414int
14415main ()
14416{
14417
14418bindtextdomain ("", "");
14419return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
14420
14421  ;
14422  return 0;
14423}
14424_ACEOF
14425if ac_fn_c_try_link "$LINENO"; then :
14426  LIBINTL="$LIBINTL $LIBICONV"
14427                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
14428                 eval "$gt_func_gnugettext_libintl=yes"
14429
14430fi
14431rm -f core conftest.err conftest.$ac_objext \
14432    conftest$ac_exeext conftest.$ac_ext
14433            fi
14434            CPPFLAGS="$gt_save_CPPFLAGS"
14435            LIBS="$gt_save_LIBS"
14436fi
14437eval ac_res=\$$gt_func_gnugettext_libintl
14438	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14439$as_echo "$ac_res" >&6; }
14440        fi
14441
14442                                        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
14443           || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
14444                && test "$PACKAGE" != gettext-runtime \
14445                && test "$PACKAGE" != gettext-tools; }; then
14446          gt_use_preinstalled_gnugettext=yes
14447        else
14448                    LIBINTL=
14449          LTLIBINTL=
14450          INCINTL=
14451        fi
14452
14453
14454
14455    if test -n "$INTL_MACOSX_LIBS"; then
14456      if test "$gt_use_preinstalled_gnugettext" = "yes" \
14457         || test "$nls_cv_use_gnu_gettext" = "yes"; then
14458                LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
14459        LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
14460      fi
14461    fi
14462
14463    if test "$gt_use_preinstalled_gnugettext" = "yes" \
14464       || test "$nls_cv_use_gnu_gettext" = "yes"; then
14465
14466$as_echo "#define ENABLE_NLS 1" >>confdefs.h
14467
14468    else
14469      USE_NLS=no
14470    fi
14471  fi
14472
14473  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
14474$as_echo_n "checking whether to use NLS... " >&6; }
14475  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
14476$as_echo "$USE_NLS" >&6; }
14477  if test "$USE_NLS" = "yes"; then
14478    { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
14479$as_echo_n "checking where the gettext function comes from... " >&6; }
14480    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14481      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
14482        gt_source="external libintl"
14483      else
14484        gt_source="libc"
14485      fi
14486    else
14487      gt_source="included intl directory"
14488    fi
14489    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
14490$as_echo "$gt_source" >&6; }
14491  fi
14492
14493  if test "$USE_NLS" = "yes"; then
14494
14495    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14496      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
14497        { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
14498$as_echo_n "checking how to link with libintl... " >&6; }
14499        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
14500$as_echo "$LIBINTL" >&6; }
14501
14502  for element in $INCINTL; do
14503    haveit=
14504    for x in $CPPFLAGS; do
14505
14506  acl_save_prefix="$prefix"
14507  prefix="$acl_final_prefix"
14508  acl_save_exec_prefix="$exec_prefix"
14509  exec_prefix="$acl_final_exec_prefix"
14510  eval x=\"$x\"
14511  exec_prefix="$acl_save_exec_prefix"
14512  prefix="$acl_save_prefix"
14513
14514      if test "X$x" = "X$element"; then
14515        haveit=yes
14516        break
14517      fi
14518    done
14519    if test -z "$haveit"; then
14520      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14521    fi
14522  done
14523
14524      fi
14525
14526
14527$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
14528
14529
14530$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
14531
14532    fi
14533
14534        POSUB=po
14535  fi
14536
14537
14538
14539    INTLLIBS="$LIBINTL"
14540
14541
14542
14543
14544
14545
14546fi
14547
14548
14549
14550
14551
14552
14553
14554
14555
14556
14557
14558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
14559$as_echo_n "checking whether NLS is requested... " >&6; }
14560if test x"$USE_NLS" != xyes; then
14561  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14562$as_echo "no" >&6; }
14563else
14564  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14565$as_echo "yes" >&6; }
14566
14567$as_echo "#define ENABLE_NLS 1" >>confdefs.h
14568
14569
14570  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
14571$as_echo_n "checking for catalogs to be installed... " >&6; }
14572  # Look for .po and .gmo files in the source directory.
14573  CATALOGS=
14574  XLINGUAS=
14575  for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
14576    # If there aren't any .gmo files the shell will give us the
14577    # literal string "../path/to/srcdir/po/*.gmo" which has to be
14578    # weeded out.
14579    case "$cat" in *\**)
14580      continue;;
14581    esac
14582    # The quadruple backslash is collapsed to a double backslash
14583    # by the backticks, then collapsed again by the double quotes,
14584    # leaving us with one backslash in the sed expression (right
14585    # before the dot that mustn't act as a wildcard).
14586    cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
14587    lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
14588    # The user is allowed to set LINGUAS to a list of languages to
14589    # install catalogs for.  If it's empty that means "all of them."
14590    if test "x$LINGUAS" = x; then
14591      CATALOGS="$CATALOGS $cat"
14592      XLINGUAS="$XLINGUAS $lang"
14593    else
14594      case "$LINGUAS" in *$lang*)
14595        CATALOGS="$CATALOGS $cat"
14596        XLINGUAS="$XLINGUAS $lang"
14597        ;;
14598      esac
14599    fi
14600  done
14601  LINGUAS="$XLINGUAS"
14602  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
14603$as_echo "$LINGUAS" >&6; }
14604
14605
14606    DATADIRNAME=share
14607
14608  INSTOBJEXT=.mo
14609
14610  GENCAT=gencat
14611
14612  CATOBJEXT=.gmo
14613
14614fi
14615
14616
14617
14618
14619# Prepare PATH_SEPARATOR.
14620# The user is always right.
14621if test "${PATH_SEPARATOR+set}" != set; then
14622  echo "#! /bin/sh" >conf$$.sh
14623  echo  "exit 0"   >>conf$$.sh
14624  chmod +x conf$$.sh
14625  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14626    PATH_SEPARATOR=';'
14627  else
14628    PATH_SEPARATOR=:
14629  fi
14630  rm -f conf$$.sh
14631fi
14632
14633# Find out how to test for executable files. Don't use a zero-byte file,
14634# as systems may use methods other than mode bits to determine executability.
14635cat >conf$$.file <<_ASEOF
14636#! /bin/sh
14637exit 0
14638_ASEOF
14639chmod +x conf$$.file
14640if test -x conf$$.file >/dev/null 2>&1; then
14641  ac_executable_p="test -x"
14642else
14643  ac_executable_p="test -f"
14644fi
14645rm -f conf$$.file
14646
14647# Extract the first word of "msgfmt", so it can be a program name with args.
14648set dummy msgfmt; ac_word=$2
14649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14650$as_echo_n "checking for $ac_word... " >&6; }
14651if ${ac_cv_path_MSGFMT+:} false; then :
14652  $as_echo_n "(cached) " >&6
14653else
14654  case "$MSGFMT" in
14655  [\\/]* | ?:[\\/]*)
14656    ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
14657    ;;
14658  *)
14659    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
14660    for ac_dir in $PATH; do
14661      IFS="$ac_save_IFS"
14662      test -z "$ac_dir" && ac_dir=.
14663      for ac_exec_ext in '' $ac_executable_extensions; do
14664        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
14665          if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
14666     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
14667            ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
14668            break 2
14669          fi
14670        fi
14671      done
14672    done
14673    IFS="$ac_save_IFS"
14674  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
14675    ;;
14676esac
14677fi
14678MSGFMT="$ac_cv_path_MSGFMT"
14679if test "$MSGFMT" != ":"; then
14680  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
14681$as_echo "$MSGFMT" >&6; }
14682else
14683  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14684$as_echo "no" >&6; }
14685fi
14686
14687  # Extract the first word of "gmsgfmt", so it can be a program name with args.
14688set dummy gmsgfmt; ac_word=$2
14689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14690$as_echo_n "checking for $ac_word... " >&6; }
14691if ${ac_cv_path_GMSGFMT+:} false; then :
14692  $as_echo_n "(cached) " >&6
14693else
14694  case $GMSGFMT in
14695  [\\/]* | ?:[\\/]*)
14696  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
14697  ;;
14698  *)
14699  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14700for as_dir in $PATH
14701do
14702  IFS=$as_save_IFS
14703  test -z "$as_dir" && as_dir=.
14704    for ac_exec_ext in '' $ac_executable_extensions; do
14705  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14706    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
14707    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14708    break 2
14709  fi
14710done
14711  done
14712IFS=$as_save_IFS
14713
14714  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
14715  ;;
14716esac
14717fi
14718GMSGFMT=$ac_cv_path_GMSGFMT
14719if test -n "$GMSGFMT"; then
14720  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
14721$as_echo "$GMSGFMT" >&6; }
14722else
14723  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14724$as_echo "no" >&6; }
14725fi
14726
14727
14728
14729
14730# Prepare PATH_SEPARATOR.
14731# The user is always right.
14732if test "${PATH_SEPARATOR+set}" != set; then
14733  echo "#! /bin/sh" >conf$$.sh
14734  echo  "exit 0"   >>conf$$.sh
14735  chmod +x conf$$.sh
14736  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14737    PATH_SEPARATOR=';'
14738  else
14739    PATH_SEPARATOR=:
14740  fi
14741  rm -f conf$$.sh
14742fi
14743
14744# Find out how to test for executable files. Don't use a zero-byte file,
14745# as systems may use methods other than mode bits to determine executability.
14746cat >conf$$.file <<_ASEOF
14747#! /bin/sh
14748exit 0
14749_ASEOF
14750chmod +x conf$$.file
14751if test -x conf$$.file >/dev/null 2>&1; then
14752  ac_executable_p="test -x"
14753else
14754  ac_executable_p="test -f"
14755fi
14756rm -f conf$$.file
14757
14758# Extract the first word of "xgettext", so it can be a program name with args.
14759set dummy xgettext; ac_word=$2
14760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14761$as_echo_n "checking for $ac_word... " >&6; }
14762if ${ac_cv_path_XGETTEXT+:} false; then :
14763  $as_echo_n "(cached) " >&6
14764else
14765  case "$XGETTEXT" in
14766  [\\/]* | ?:[\\/]*)
14767    ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
14768    ;;
14769  *)
14770    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
14771    for ac_dir in $PATH; do
14772      IFS="$ac_save_IFS"
14773      test -z "$ac_dir" && ac_dir=.
14774      for ac_exec_ext in '' $ac_executable_extensions; do
14775        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
14776          if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
14777     (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
14778            ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
14779            break 2
14780          fi
14781        fi
14782      done
14783    done
14784    IFS="$ac_save_IFS"
14785  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
14786    ;;
14787esac
14788fi
14789XGETTEXT="$ac_cv_path_XGETTEXT"
14790if test "$XGETTEXT" != ":"; then
14791  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
14792$as_echo "$XGETTEXT" >&6; }
14793else
14794  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14795$as_echo "no" >&6; }
14796fi
14797
14798    rm -f messages.po
14799
14800
14801# Prepare PATH_SEPARATOR.
14802# The user is always right.
14803if test "${PATH_SEPARATOR+set}" != set; then
14804  echo "#! /bin/sh" >conf$$.sh
14805  echo  "exit 0"   >>conf$$.sh
14806  chmod +x conf$$.sh
14807  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14808    PATH_SEPARATOR=';'
14809  else
14810    PATH_SEPARATOR=:
14811  fi
14812  rm -f conf$$.sh
14813fi
14814
14815# Find out how to test for executable files. Don't use a zero-byte file,
14816# as systems may use methods other than mode bits to determine executability.
14817cat >conf$$.file <<_ASEOF
14818#! /bin/sh
14819exit 0
14820_ASEOF
14821chmod +x conf$$.file
14822if test -x conf$$.file >/dev/null 2>&1; then
14823  ac_executable_p="test -x"
14824else
14825  ac_executable_p="test -f"
14826fi
14827rm -f conf$$.file
14828
14829# Extract the first word of "msgmerge", so it can be a program name with args.
14830set dummy msgmerge; ac_word=$2
14831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14832$as_echo_n "checking for $ac_word... " >&6; }
14833if ${ac_cv_path_MSGMERGE+:} false; then :
14834  $as_echo_n "(cached) " >&6
14835else
14836  case "$MSGMERGE" in
14837  [\\/]* | ?:[\\/]*)
14838    ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
14839    ;;
14840  *)
14841    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
14842    for ac_dir in $PATH; do
14843      IFS="$ac_save_IFS"
14844      test -z "$ac_dir" && ac_dir=.
14845      for ac_exec_ext in '' $ac_executable_extensions; do
14846        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
14847          if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
14848            ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
14849            break 2
14850          fi
14851        fi
14852      done
14853    done
14854    IFS="$ac_save_IFS"
14855  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
14856    ;;
14857esac
14858fi
14859MSGMERGE="$ac_cv_path_MSGMERGE"
14860if test "$MSGMERGE" != ":"; then
14861  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
14862$as_echo "$MSGMERGE" >&6; }
14863else
14864  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14865$as_echo "no" >&6; }
14866fi
14867
14868
14869      if test "$GMSGFMT" != ":"; then
14870            if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
14871       (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
14872      : ;
14873    else
14874      GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
14875      { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
14876$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
14877      GMSGFMT=":"
14878    fi
14879  fi
14880
14881      if test "$XGETTEXT" != ":"; then
14882            if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
14883       (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
14884      : ;
14885    else
14886      { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
14887$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
14888      XGETTEXT=":"
14889    fi
14890        rm -f messages.po
14891  fi
14892
14893  ac_config_commands="$ac_config_commands default-2"
14894
14895
14896
14897# Permit host specific settings.
14898. ${srcdir}/configure.host
14899
14900
14901
14902
14903# The cast to long int works around a bug in the HP C Compiler
14904# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14905# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14906# This bug is HP SR number 8606223364.
14907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
14908$as_echo_n "checking size of long long... " >&6; }
14909if ${ac_cv_sizeof_long_long+:} false; then :
14910  $as_echo_n "(cached) " >&6
14911else
14912  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
14913
14914else
14915  if test "$ac_cv_type_long_long" = yes; then
14916     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14917$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14918as_fn_error 77 "cannot compute sizeof (long long)
14919See \`config.log' for more details" "$LINENO" 5; }
14920   else
14921     ac_cv_sizeof_long_long=0
14922   fi
14923fi
14924
14925fi
14926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
14927$as_echo "$ac_cv_sizeof_long_long" >&6; }
14928
14929
14930
14931cat >>confdefs.h <<_ACEOF
14932#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
14933_ACEOF
14934
14935
14936# The cast to long int works around a bug in the HP C Compiler
14937# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14938# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14939# This bug is HP SR number 8606223364.
14940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
14941$as_echo_n "checking size of void *... " >&6; }
14942if ${ac_cv_sizeof_void_p+:} false; then :
14943  $as_echo_n "(cached) " >&6
14944else
14945  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
14946
14947else
14948  if test "$ac_cv_type_void_p" = yes; then
14949     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14950$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14951as_fn_error 77 "cannot compute sizeof (void *)
14952See \`config.log' for more details" "$LINENO" 5; }
14953   else
14954     ac_cv_sizeof_void_p=0
14955   fi
14956fi
14957
14958fi
14959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
14960$as_echo "$ac_cv_sizeof_void_p" >&6; }
14961
14962
14963
14964cat >>confdefs.h <<_ACEOF
14965#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14966_ACEOF
14967
14968
14969# The cast to long int works around a bug in the HP C Compiler
14970# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14971# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14972# This bug is HP SR number 8606223364.
14973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
14974$as_echo_n "checking size of long... " >&6; }
14975if ${ac_cv_sizeof_long+:} false; then :
14976  $as_echo_n "(cached) " >&6
14977else
14978  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
14979
14980else
14981  if test "$ac_cv_type_long" = yes; then
14982     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14983$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14984as_fn_error 77 "cannot compute sizeof (long)
14985See \`config.log' for more details" "$LINENO" 5; }
14986   else
14987     ac_cv_sizeof_long=0
14988   fi
14989fi
14990
14991fi
14992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
14993$as_echo "$ac_cv_sizeof_long" >&6; }
14994
14995
14996
14997cat >>confdefs.h <<_ACEOF
14998#define SIZEOF_LONG $ac_cv_sizeof_long
14999_ACEOF
15000
15001
15002# The cast to long int works around a bug in the HP C Compiler
15003# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15004# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15005# This bug is HP SR number 8606223364.
15006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
15007$as_echo_n "checking size of int... " >&6; }
15008if ${ac_cv_sizeof_int+:} false; then :
15009  $as_echo_n "(cached) " >&6
15010else
15011  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
15012
15013else
15014  if test "$ac_cv_type_int" = yes; then
15015     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15016$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15017as_fn_error 77 "cannot compute sizeof (int)
15018See \`config.log' for more details" "$LINENO" 5; }
15019   else
15020     ac_cv_sizeof_int=0
15021   fi
15022fi
15023
15024fi
15025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
15026$as_echo "$ac_cv_sizeof_int" >&6; }
15027
15028
15029
15030cat >>confdefs.h <<_ACEOF
15031#define SIZEOF_INT $ac_cv_sizeof_int
15032_ACEOF
15033
15034
15035
15036if test "x${ac_cv_sizeof_void_p}" = "x8"; then
15037  host64=true
15038fi
15039
15040# Put a plausible default for CC_FOR_BUILD in Makefile.
15041if test -z "$CC_FOR_BUILD"; then
15042  if test "x$cross_compiling" = "xno"; then
15043    CC_FOR_BUILD='$(CC)'
15044  else
15045    CC_FOR_BUILD=gcc
15046  fi
15047fi
15048
15049# Also set EXEEXT_FOR_BUILD.
15050if test "x$cross_compiling" = "xno"; then
15051  EXEEXT_FOR_BUILD='$(EXEEXT)'
15052else
15053  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build system executable suffix" >&5
15054$as_echo_n "checking for build system executable suffix... " >&6; }
15055if ${bfd_cv_build_exeext+:} false; then :
15056  $as_echo_n "(cached) " >&6
15057else
15058  rm -f conftest*
15059     echo 'int main () { return 0; }' > conftest.c
15060     bfd_cv_build_exeext=
15061     ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
15062     for file in conftest.*; do
15063       case $file in
15064       *.c | *.o | *.obj | *.ilk | *.pdb) ;;
15065       *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
15066       esac
15067     done
15068     rm -f conftest*
15069     test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
15070fi
15071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_build_exeext" >&5
15072$as_echo "$bfd_cv_build_exeext" >&6; }
15073  EXEEXT_FOR_BUILD=""
15074  test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
15075fi
15076
15077
15078for ac_header in fcntl.h sys/file.h sys/resource.h sys/stat.h sys/types.h \
15079		 unistd.h
15080do :
15081  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15082ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15083if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15084  cat >>confdefs.h <<_ACEOF
15085#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15086_ACEOF
15087
15088fi
15089
15090done
15091
15092
15093for ac_func in fcntl fdopen fileno fls getgid getpagesize getrlimit getuid \
15094	       sysconf
15095do :
15096  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15097ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15098if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15099  cat >>confdefs.h <<_ACEOF
15100#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15101_ACEOF
15102
15103fi
15104done
15105
15106
15107ac_fn_c_check_decl "$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default"
15108if test "x$ac_cv_have_decl_basename" = xyes; then :
15109  ac_have_decl=1
15110else
15111  ac_have_decl=0
15112fi
15113
15114cat >>confdefs.h <<_ACEOF
15115#define HAVE_DECL_BASENAME $ac_have_decl
15116_ACEOF
15117ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
15118if test "x$ac_cv_have_decl_ffs" = xyes; then :
15119  ac_have_decl=1
15120else
15121  ac_have_decl=0
15122fi
15123
15124cat >>confdefs.h <<_ACEOF
15125#define HAVE_DECL_FFS $ac_have_decl
15126_ACEOF
15127ac_fn_c_check_decl "$LINENO" "stpcpy" "ac_cv_have_decl_stpcpy" "$ac_includes_default"
15128if test "x$ac_cv_have_decl_stpcpy" = xyes; then :
15129  ac_have_decl=1
15130else
15131  ac_have_decl=0
15132fi
15133
15134cat >>confdefs.h <<_ACEOF
15135#define HAVE_DECL_STPCPY $ac_have_decl
15136_ACEOF
15137ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
15138if test "x$ac_cv_have_decl_asprintf" = xyes; then :
15139  ac_have_decl=1
15140else
15141  ac_have_decl=0
15142fi
15143
15144cat >>confdefs.h <<_ACEOF
15145#define HAVE_DECL_ASPRINTF $ac_have_decl
15146_ACEOF
15147ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
15148if test "x$ac_cv_have_decl_vasprintf" = xyes; then :
15149  ac_have_decl=1
15150else
15151  ac_have_decl=0
15152fi
15153
15154cat >>confdefs.h <<_ACEOF
15155#define HAVE_DECL_VASPRINTF $ac_have_decl
15156_ACEOF
15157ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
15158if test "x$ac_cv_have_decl_strnlen" = xyes; then :
15159  ac_have_decl=1
15160else
15161  ac_have_decl=0
15162fi
15163
15164cat >>confdefs.h <<_ACEOF
15165#define HAVE_DECL_STRNLEN $ac_have_decl
15166_ACEOF
15167
15168ac_fn_c_check_decl "$LINENO" "___lc_codepage_func" "ac_cv_have_decl____lc_codepage_func" "#include <locale.h>
15169"
15170if test "x$ac_cv_have_decl____lc_codepage_func" = xyes; then :
15171  ac_have_decl=1
15172else
15173  ac_have_decl=0
15174fi
15175
15176cat >>confdefs.h <<_ACEOF
15177#define HAVE_DECL____LC_CODEPAGE_FUNC $ac_have_decl
15178_ACEOF
15179
15180
15181
15182case "${host}" in
15183*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
15184
15185$as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
15186 ;;
15187esac
15188
15189
15190  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
15191$as_echo_n "checking for thread local storage (TLS) class... " >&6; }
15192  if ${ac_cv_tls+:} false; then :
15193  $as_echo_n "(cached) " >&6
15194else
15195  for ax_tls_keyword in thread_local _Thread_local __thread '__declspec(thread)' none; do
15196       case $ax_tls_keyword in #(
15197  none) :
15198    ac_cv_tls=none ; break ;; #(
15199  *) :
15200    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15201/* end confdefs.h.  */
15202#include <stdlib.h>
15203int
15204main ()
15205{
15206static  $ax_tls_keyword  int bar;
15207
15208  ;
15209  return 0;
15210}
15211_ACEOF
15212if ac_fn_c_try_compile "$LINENO"; then :
15213  ac_cv_tls=$ax_tls_keyword ; break
15214else
15215  ac_cv_tls=none
15216
15217fi
15218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15219         ;;
15220esac
15221    done
15222
15223fi
15224
15225  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
15226$as_echo "$ac_cv_tls" >&6; }
15227
15228  if test "$ac_cv_tls" != "none"; then :
15229
15230cat >>confdefs.h <<_ACEOF
15231#define TLS $ac_cv_tls
15232_ACEOF
15233
15234     :
15235else
15236  :
15237fi
15238
15239
15240# Link in zlib/zstd if we can.  This allows us to read compressed debug sections.
15241# This is used only by compress.c.
15242
15243  # Use the system's zlib library.
15244  zlibdir="-L\$(top_builddir)/../zlib"
15245  zlibinc="-I\$(top_srcdir)/../zlib"
15246
15247# Check whether --with-system-zlib was given.
15248if test "${with_system_zlib+set}" = set; then :
15249  withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
15250    zlibdir=
15251    zlibinc=
15252  fi
15253
15254fi
15255
15256
15257
15258
15259
15260
15261
15262
15263
15264
15265
15266if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
15267	if test -n "$ac_tool_prefix"; then
15268  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
15269set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
15270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15271$as_echo_n "checking for $ac_word... " >&6; }
15272if ${ac_cv_path_PKG_CONFIG+:} false; then :
15273  $as_echo_n "(cached) " >&6
15274else
15275  case $PKG_CONFIG in
15276  [\\/]* | ?:[\\/]*)
15277  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
15278  ;;
15279  *)
15280  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15281for as_dir in $PATH
15282do
15283  IFS=$as_save_IFS
15284  test -z "$as_dir" && as_dir=.
15285    for ac_exec_ext in '' $ac_executable_extensions; do
15286  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15287    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15288    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15289    break 2
15290  fi
15291done
15292  done
15293IFS=$as_save_IFS
15294
15295  ;;
15296esac
15297fi
15298PKG_CONFIG=$ac_cv_path_PKG_CONFIG
15299if test -n "$PKG_CONFIG"; then
15300  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
15301$as_echo "$PKG_CONFIG" >&6; }
15302else
15303  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15304$as_echo "no" >&6; }
15305fi
15306
15307
15308fi
15309if test -z "$ac_cv_path_PKG_CONFIG"; then
15310  ac_pt_PKG_CONFIG=$PKG_CONFIG
15311  # Extract the first word of "pkg-config", so it can be a program name with args.
15312set dummy pkg-config; ac_word=$2
15313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15314$as_echo_n "checking for $ac_word... " >&6; }
15315if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
15316  $as_echo_n "(cached) " >&6
15317else
15318  case $ac_pt_PKG_CONFIG in
15319  [\\/]* | ?:[\\/]*)
15320  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
15321  ;;
15322  *)
15323  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15324for as_dir in $PATH
15325do
15326  IFS=$as_save_IFS
15327  test -z "$as_dir" && as_dir=.
15328    for ac_exec_ext in '' $ac_executable_extensions; do
15329  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15330    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15331    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15332    break 2
15333  fi
15334done
15335  done
15336IFS=$as_save_IFS
15337
15338  ;;
15339esac
15340fi
15341ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
15342if test -n "$ac_pt_PKG_CONFIG"; then
15343  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
15344$as_echo "$ac_pt_PKG_CONFIG" >&6; }
15345else
15346  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15347$as_echo "no" >&6; }
15348fi
15349
15350  if test "x$ac_pt_PKG_CONFIG" = x; then
15351    PKG_CONFIG=""
15352  else
15353    case $cross_compiling:$ac_tool_warned in
15354yes:)
15355{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15356$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15357ac_tool_warned=yes ;;
15358esac
15359    PKG_CONFIG=$ac_pt_PKG_CONFIG
15360  fi
15361else
15362  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
15363fi
15364
15365fi
15366if test -n "$PKG_CONFIG"; then
15367	_pkg_min_version=0.9.0
15368	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
15369$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
15370	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
15371		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15372$as_echo "yes" >&6; }
15373	else
15374		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15375$as_echo "no" >&6; }
15376		PKG_CONFIG=""
15377	fi
15378fi
15379
15380
15381# Check whether --with-zstd was given.
15382if test "${with_zstd+set}" = set; then :
15383  withval=$with_zstd;
15384else
15385  with_zstd=auto
15386fi
15387
15388
15389if test "$with_zstd" != no; then :
15390
15391pkg_failed=no
15392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libzstd >= 1.4.0" >&5
15393$as_echo_n "checking for libzstd >= 1.4.0... " >&6; }
15394
15395if test -n "$ZSTD_CFLAGS"; then
15396    pkg_cv_ZSTD_CFLAGS="$ZSTD_CFLAGS"
15397 elif test -n "$PKG_CONFIG"; then
15398    if test -n "$PKG_CONFIG" && \
15399    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd >= 1.4.0\""; } >&5
15400  ($PKG_CONFIG --exists --print-errors "libzstd >= 1.4.0") 2>&5
15401  ac_status=$?
15402  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15403  test $ac_status = 0; }; then
15404  pkg_cv_ZSTD_CFLAGS=`$PKG_CONFIG --cflags "libzstd >= 1.4.0" 2>/dev/null`
15405		      test "x$?" != "x0" && pkg_failed=yes
15406else
15407  pkg_failed=yes
15408fi
15409 else
15410    pkg_failed=untried
15411fi
15412if test -n "$ZSTD_LIBS"; then
15413    pkg_cv_ZSTD_LIBS="$ZSTD_LIBS"
15414 elif test -n "$PKG_CONFIG"; then
15415    if test -n "$PKG_CONFIG" && \
15416    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd >= 1.4.0\""; } >&5
15417  ($PKG_CONFIG --exists --print-errors "libzstd >= 1.4.0") 2>&5
15418  ac_status=$?
15419  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15420  test $ac_status = 0; }; then
15421  pkg_cv_ZSTD_LIBS=`$PKG_CONFIG --libs "libzstd >= 1.4.0" 2>/dev/null`
15422		      test "x$?" != "x0" && pkg_failed=yes
15423else
15424  pkg_failed=yes
15425fi
15426 else
15427    pkg_failed=untried
15428fi
15429
15430if test $pkg_failed = no; then
15431  pkg_save_LDFLAGS="$LDFLAGS"
15432  LDFLAGS="$LDFLAGS $pkg_cv_ZSTD_LIBS"
15433  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15434/* end confdefs.h.  */
15435
15436int
15437main ()
15438{
15439
15440  ;
15441  return 0;
15442}
15443_ACEOF
15444if ac_fn_c_try_link "$LINENO"; then :
15445
15446else
15447  pkg_failed=yes
15448fi
15449rm -f core conftest.err conftest.$ac_objext \
15450    conftest$ac_exeext conftest.$ac_ext
15451  LDFLAGS=$pkg_save_LDFLAGS
15452fi
15453
15454
15455
15456if test $pkg_failed = yes; then
15457        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15458$as_echo "no" >&6; }
15459
15460if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15461        _pkg_short_errors_supported=yes
15462else
15463        _pkg_short_errors_supported=no
15464fi
15465        if test $_pkg_short_errors_supported = yes; then
15466	        ZSTD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libzstd >= 1.4.0" 2>&1`
15467        else
15468	        ZSTD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libzstd >= 1.4.0" 2>&1`
15469        fi
15470	# Put the nasty error message in config.log where it belongs
15471	echo "$ZSTD_PKG_ERRORS" >&5
15472
15473
15474    if test "$with_zstd" = yes; then
15475      as_fn_error $? "--with-zstd was given, but pkgconfig/libzstd.pc is not found" "$LINENO" 5
15476    fi
15477
15478elif test $pkg_failed = untried; then
15479        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15480$as_echo "no" >&6; }
15481
15482    if test "$with_zstd" = yes; then
15483      as_fn_error $? "--with-zstd was given, but pkgconfig/libzstd.pc is not found" "$LINENO" 5
15484    fi
15485
15486else
15487	ZSTD_CFLAGS=$pkg_cv_ZSTD_CFLAGS
15488	ZSTD_LIBS=$pkg_cv_ZSTD_LIBS
15489        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15490$as_echo "yes" >&6; }
15491
15492
15493$as_echo "#define HAVE_ZSTD 1" >>confdefs.h
15494
15495
15496fi
15497
15498fi
15499
15500
15501save_CFLAGS="$CFLAGS"
15502CFLAGS="$CFLAGS -Werror"
15503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler support for hidden visibility" >&5
15504$as_echo_n "checking compiler support for hidden visibility... " >&6; }
15505if ${bfd_cv_hidden+:} false; then :
15506  $as_echo_n "(cached) " >&6
15507else
15508  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15509/* end confdefs.h.  */
15510
15511const char hw[] __attribute__ ((__visibility__ ("hidden"))) = "Hello, World\n";
15512extern void print (const char *) __attribute__ ((__visibility__ ("hidden")));
15513int
15514main ()
15515{
15516print (hw);
15517  ;
15518  return 0;
15519}
15520_ACEOF
15521if ac_fn_c_try_compile "$LINENO"; then :
15522  bfd_cv_hidden=yes
15523else
15524  bfd_cv_hidden=no
15525fi
15526rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15527fi
15528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_hidden" >&5
15529$as_echo "$bfd_cv_hidden" >&6; }
15530CFLAGS="$save_CFLAGS"
15531if test $bfd_cv_hidden = yes; then
15532
15533$as_echo "#define HAVE_HIDDEN 1" >>confdefs.h
15534
15535fi
15536
15537# Check if linker supports --as-needed and --no-as-needed options
15538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
15539$as_echo_n "checking linker --as-needed support... " >&6; }
15540if ${bfd_cv_ld_as_needed+:} false; then :
15541  $as_echo_n "(cached) " >&6
15542else
15543  bfd_cv_ld_as_needed=no
15544	if $LD --help 2>/dev/null | grep as-needed > /dev/null; then
15545		bfd_cv_ld_as_needed=yes
15546	fi
15547
15548fi
15549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_ld_as_needed" >&5
15550$as_echo "$bfd_cv_ld_as_needed" >&6; }
15551
15552LIBM=
15553case $host in
15554*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
15555  # These system don't have libm, or don't need it
15556  ;;
15557*-ncr-sysv4.3*)
15558  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
15559$as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
15560if ${ac_cv_lib_mw__mwvalidcheckl+:} false; then :
15561  $as_echo_n "(cached) " >&6
15562else
15563  ac_check_lib_save_LIBS=$LIBS
15564LIBS="-lmw  $LIBS"
15565cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15566/* end confdefs.h.  */
15567
15568/* Override any GCC internal prototype to avoid an error.
15569   Use char because int might match the return type of a GCC
15570   builtin and then its argument prototype would still apply.  */
15571#ifdef __cplusplus
15572extern "C"
15573#endif
15574char _mwvalidcheckl ();
15575int
15576main ()
15577{
15578return _mwvalidcheckl ();
15579  ;
15580  return 0;
15581}
15582_ACEOF
15583if ac_fn_c_try_link "$LINENO"; then :
15584  ac_cv_lib_mw__mwvalidcheckl=yes
15585else
15586  ac_cv_lib_mw__mwvalidcheckl=no
15587fi
15588rm -f core conftest.err conftest.$ac_objext \
15589    conftest$ac_exeext conftest.$ac_ext
15590LIBS=$ac_check_lib_save_LIBS
15591fi
15592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
15593$as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
15594if test "x$ac_cv_lib_mw__mwvalidcheckl" = xyes; then :
15595  LIBM="-lmw"
15596fi
15597
15598  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
15599$as_echo_n "checking for cos in -lm... " >&6; }
15600if ${ac_cv_lib_m_cos+:} false; then :
15601  $as_echo_n "(cached) " >&6
15602else
15603  ac_check_lib_save_LIBS=$LIBS
15604LIBS="-lm  $LIBS"
15605cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15606/* end confdefs.h.  */
15607
15608/* Override any GCC internal prototype to avoid an error.
15609   Use char because int might match the return type of a GCC
15610   builtin and then its argument prototype would still apply.  */
15611#ifdef __cplusplus
15612extern "C"
15613#endif
15614char cos ();
15615int
15616main ()
15617{
15618return cos ();
15619  ;
15620  return 0;
15621}
15622_ACEOF
15623if ac_fn_c_try_link "$LINENO"; then :
15624  ac_cv_lib_m_cos=yes
15625else
15626  ac_cv_lib_m_cos=no
15627fi
15628rm -f core conftest.err conftest.$ac_objext \
15629    conftest$ac_exeext conftest.$ac_ext
15630LIBS=$ac_check_lib_save_LIBS
15631fi
15632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
15633$as_echo "$ac_cv_lib_m_cos" >&6; }
15634if test "x$ac_cv_lib_m_cos" = xyes; then :
15635  LIBM="$LIBM -lm"
15636fi
15637
15638  ;;
15639*)
15640  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
15641$as_echo_n "checking for cos in -lm... " >&6; }
15642if ${ac_cv_lib_m_cos+:} false; then :
15643  $as_echo_n "(cached) " >&6
15644else
15645  ac_check_lib_save_LIBS=$LIBS
15646LIBS="-lm  $LIBS"
15647cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15648/* end confdefs.h.  */
15649
15650/* Override any GCC internal prototype to avoid an error.
15651   Use char because int might match the return type of a GCC
15652   builtin and then its argument prototype would still apply.  */
15653#ifdef __cplusplus
15654extern "C"
15655#endif
15656char cos ();
15657int
15658main ()
15659{
15660return cos ();
15661  ;
15662  return 0;
15663}
15664_ACEOF
15665if ac_fn_c_try_link "$LINENO"; then :
15666  ac_cv_lib_m_cos=yes
15667else
15668  ac_cv_lib_m_cos=no
15669fi
15670rm -f core conftest.err conftest.$ac_objext \
15671    conftest$ac_exeext conftest.$ac_ext
15672LIBS=$ac_check_lib_save_LIBS
15673fi
15674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
15675$as_echo "$ac_cv_lib_m_cos" >&6; }
15676if test "x$ac_cv_lib_m_cos" = xyes; then :
15677  LIBM="-lm"
15678fi
15679
15680  ;;
15681esac
15682
15683
15684
15685# When building a shared libbfd, link against the pic version of libiberty
15686# so that apps that use libbfd won't need libiberty just to satisfy any
15687# libbfd references.
15688# We can't do that if a pic libiberty is unavailable since including non-pic
15689# code would insert text relocations into libbfd.
15690SHARED_LIBADD=
15691SHARED_LDFLAGS=
15692if test "$enable_shared" = "yes"; then
15693  x=`sed -n -e 's/^[ 	]*PICFLAG[ 	]*=[ 	]*//p' < ../libiberty/Makefile | sed -n '$p'`
15694  if test -n "$x"; then
15695    SHARED_LIBADD="-L`pwd`/../libiberty/pic -liberty"
15696  fi
15697fi
15698
15699SHARED_LIBADD="$SHARED_LIBADD $LTLIBINTL"
15700
15701if test "$enable_shared" = "yes"; then
15702  case "${host}" in
15703  # More hacks to build DLLs on Windows.
15704  *-*-cygwin*)
15705    SHARED_LDFLAGS="-no-undefined"
15706    SHARED_LIBADD="-L`pwd`/../libiberty -liberty $SHARED_LIBADD -lcygwin -lkernel32"
15707  ;;
15708  esac
15709
15710  if test -n "$SHARED_LIBADD"; then
15711    if test -n "$LIBM"; then
15712      if test x"$bfd_cv_ld_as_needed" = xyes; then
15713	# Link against libm only when needed.  Put -lc, -lm inside -Wl
15714	# to stop libtool reordering these options.
15715	SHARED_LIBADD="$SHARED_LIBADD -Wl,-lc,--as-needed,`echo $LIBM | sed 's/ /,/g'`,--no-as-needed"
15716      else
15717	SHARED_LIBADD="$SHARED_LIBADD $LIBM"
15718      fi
15719    fi
15720  fi
15721fi
15722
15723
15724
15725# target stuff:
15726
15727# Canonicalize the secondary target names.
15728if test -n "$enable_targets" ; then
15729    for targ in `echo $enable_targets | sed 's/,/ /g'`
15730    do
15731	result=`$ac_config_sub $targ 2>/dev/null`
15732	if test -n "$result" ; then
15733	    canon_targets="$canon_targets $result"
15734	else
15735	    # Allow targets that config.sub doesn't recognize, like "all".
15736	    canon_targets="$canon_targets $targ"
15737	fi
15738    done
15739fi
15740
15741all_targets=false
15742defvec=
15743selvecs=
15744assocvecs=
15745selarchs=
15746TDEFINES=
15747for targ in $target $canon_targets
15748do
15749    if test $targ = all; then
15750        all_targets=true
15751	assocvecs="$assocvecs $targ_defvec $targ_selvecs"
15752    elif test $targ != plugin; then
15753	. $srcdir/config.bfd
15754	if test $targ = $target; then
15755	    defvec=$targ_defvec
15756	fi
15757	selvecs="$selvecs $targ_defvec $targ_selvecs"
15758	selarchs="$selarchs $targ_archs"
15759	TDEFINES="$TDEFINES $targ_cflags"
15760    fi
15761done
15762
15763
15764# This processing still needs to be done if we're to decide properly whether
15765# 64-bit support needs to be compiled in.  Currently, it will be included if
15766# the default or any other explicitly requested target requires it; it
15767# will not be included on a 32-bit host if no 64-bit target is requested, and
15768# no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
15769# used.
15770
15771# uniq the default and selected vectors in all the configured targets.
15772f=""
15773for i in $selvecs ; do
15774    case " $f " in
15775    *" $i "*) ;;
15776    *) f="$f $i" ;;
15777    esac
15778done
15779selvecs="$f"
15780
15781
15782# uniq the associated vectors in all the configured targets.
15783f=""
15784for i in $assocvecs ; do
15785    case " $f " in
15786    *" $i "*) ;;
15787    *) f="$f $i" ;;
15788    esac
15789done
15790assocvecs="$f"
15791
15792
15793# uniq the architectures in all the configured targets.
15794f=""
15795for i in $selarchs ; do
15796    case " $f " in
15797    *" $i "*) ;;
15798    *) f="$f $i" ;;
15799    esac
15800done
15801selarchs="$f"
15802
15803# Target backend .o files.
15804tb=
15805
15806elf="elf.lo elflink.lo elf-attrs.lo elf-strtab.lo elf-eh-frame.lo
15807     elf-sframe.lo dwarf1.lo dwarf2.lo"
15808coffgen="coffgen.lo dwarf2.lo"
15809coff="cofflink.lo $coffgen"
15810ecoff="ecofflink.lo $coffgen"
15811xcoff="xcofflink.lo $coffgen"
15812
15813elfxx_x86="elfxx-x86.lo elf-ifunc.lo elf-vxworks.lo"
15814for vec in $selvecs
15815do
15816    target_size=32
15817    case "$vec" in
15818    # This list is alphabetized to make it easy to compare
15819    # with the two vector lists in targets.c.  For the same reason,
15820    # use one entry per line, even though this leads to long lines.
15821    aarch64_elf32_be_vec)	 tb="$tb elf32-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf32.lo $elf"; target_size=64 ;;
15822    aarch64_elf32_le_vec)	 tb="$tb elf32-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf32.lo $elf"; target_size=64 ;;
15823    aarch64_elf64_be_vec)	   tb="$tb elf64-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
15824    aarch64_elf64_be_cloudabi_vec) tb="$tb elf64-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
15825    aarch64_elf64_le_vec)	   tb="$tb elf64-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
15826    aarch64_elf64_le_cloudabi_vec) tb="$tb elf64-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
15827    aarch64_mach_o_vec)		 tb="$tb mach-o-aarch64.lo"; target_size=64 ;;
15828    aarch64_pei_le_vec)		 tb="$tb pei-aarch64.lo pe-aarch64igen.lo $coff"; target_size=64 ;;
15829    aarch64_pe_le_vec)		 tb="$tb pe-aarch64.lo pe-aarch64igen.lo $coff"; target_size=64 ;;
15830    alpha_ecoff_le_vec)		 tb="$tb coff-alpha.lo ecoff.lo $ecoff"; target_size=64 ;;
15831    alpha_elf64_vec)		 tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
15832    alpha_elf64_fbsd_vec)	 tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
15833    alpha_vms_vec)		 tb="$tb vms-alpha.lo vms-misc.lo vms-lib.lo"; target_size=64 ;;
15834    alpha_vms_lib_txt_vec)	 tb="$tb vms-lib.lo vms-misc.lo" ;;
15835    am33_elf32_linux_vec)	 tb="$tb elf32-am33lin.lo elf32.lo $elf" ;;
15836    amdgcn_elf64_le_vec)	 tb="$tb elf64-amdgcn.lo elf64.lo $elf"; target_size=64 ;;
15837    aout0_be_vec)		 tb="$tb aout0.lo aout32.lo" ;;
15838    aout64_vec)			 tb="$tb demo64.lo aout64.lo"; target_size=64 ;;
15839    aout_vec)			 tb="$tb host-aout.lo aout32.lo" ;;
15840    arc_elf32_be_vec)		 tb="$tb elf32-arc.lo elf32.lo $elf" ;;
15841    arc_elf32_le_vec)		 tb="$tb elf32-arc.lo elf32.lo $elf" ;;
15842    arm_elf32_be_vec)		 tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
15843    arm_elf32_le_vec)		 tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
15844    arm_elf32_fdpic_be_vec)	 tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
15845    arm_elf32_fdpic_le_vec)	 tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
15846    arm_elf32_nacl_be_vec)	 tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
15847    arm_elf32_nacl_le_vec)	 tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
15848    arm_elf32_vxworks_be_vec)	 tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
15849    arm_elf32_vxworks_le_vec)	 tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
15850    arm_pe_be_vec)		 tb="$tb pe-arm.lo peigen.lo $coff" ;;
15851    arm_pe_le_vec)		 tb="$tb pe-arm.lo peigen.lo $coff" ;;
15852    arm_pe_wince_be_vec)	 tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo $coff" ;;
15853    arm_pe_wince_le_vec)	 tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo $coff" ;;
15854    arm_pei_be_vec)		 tb="$tb pei-arm.lo peigen.lo $coff" ;;
15855    arm_pei_le_vec)		 tb="$tb pei-arm.lo peigen.lo $coff" ;;
15856    arm_pei_wince_be_vec)	 tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo $coff" ;;
15857    arm_pei_wince_le_vec)	 tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo $coff" ;;
15858    arm_mach_o_vec)		 tb="$tb mach-o-arm.lo" ;;
15859    avr_elf32_vec)		 tb="$tb elf32-avr.lo elf32.lo $elf" ;;
15860    bfin_elf32_vec)		 tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
15861    bfin_elf32_fdpic_vec)	 tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
15862    cr16_elf32_vec)		 tb="$tb elf32-cr16.lo elf32.lo $elf" ;;
15863    cris_aout_vec)		 tb="$tb aout-cris.lo" ;;
15864    cris_elf32_vec)		 tb="$tb elf32-cris.lo elf32.lo $elf" ;;
15865    cris_elf32_us_vec)		 tb="$tb elf32-cris.lo elf32.lo $elf" ;;
15866    crx_elf32_vec)		 tb="$tb elf32-crx.lo elf32.lo $elf" ;;
15867    csky_elf32_be_vec)		 tb="$tb elf32-csky.lo elf32.lo $elf" ;;
15868    csky_elf32_le_vec)		 tb="$tb elf32-csky.lo elf32.lo $elf" ;;
15869    d10v_elf32_vec)		 tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
15870    d30v_elf32_vec)		 tb="$tb elf32-d30v.lo elf32.lo $elf" ;;
15871    dlx_elf32_be_vec)		 tb="$tb elf32-dlx.lo elf32.lo $elf" ;;
15872    elf32_be_vec)		 tb="$tb elf32-gen.lo elf32.lo $elf" ;;
15873    elf32_le_vec)		 tb="$tb elf32-gen.lo elf32.lo $elf" ;;
15874    elf64_be_vec)		 tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
15875    elf64_le_vec)		 tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
15876    bpf_elf64_le_vec)		 tb="$tb elf64-bpf.lo elf64.lo $elf"; target_size=64;;
15877    bpf_elf64_be_vec)		 tb="$tb elf64-bpf.lo elf64.lo $elf"; target_size=64 ;;
15878    epiphany_elf32_vec)		 tb="$tb elf32-epiphany.lo elf32.lo $elf" ;;
15879    fr30_elf32_vec)		 tb="$tb elf32-fr30.lo elf32.lo $elf" ;;
15880    frv_elf32_vec)		 tb="$tb elf32-frv.lo elf32.lo $elf" ;;
15881    frv_elf32_fdpic_vec)	 tb="$tb elf32-frv.lo elf32.lo $elf" ;;
15882    h8300_elf32_vec)		 tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
15883    h8300_elf32_linux_vec)	 tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
15884    hppa_elf32_vec)		 tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
15885    hppa_elf32_linux_vec)	 tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
15886    hppa_elf32_nbsd_vec)	 tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
15887    hppa_elf64_vec)		 tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
15888    hppa_elf64_linux_vec)	 tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
15889    hppa_som_vec)		 tb="$tb som.lo" ;;
15890    i386_aout_vec)		 tb="$tb i386aout.lo aout32.lo" ;;
15891    i386_aout_bsd_vec)		 tb="$tb i386bsd.lo aout32.lo" ;;
15892    i386_aout_lynx_vec)		 tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
15893    i386_coff_vec)		 tb="$tb coff-i386.lo $coff" ;;
15894    i386_coff_go32_vec)		 tb="$tb coff-go32.lo $coff" ;;
15895    i386_coff_go32stubbed_vec)	 tb="$tb coff-stgo32.lo $coff" ;;
15896    i386_coff_lynx_vec)		 tb="$tb cf-i386lynx.lo lynx-core.lo $coff" ;;
15897    i386_elf32_vec)		 tb="$tb elf32-i386.lo $elfxx_x86 elf32.lo $elf" ;;
15898    i386_elf32_fbsd_vec)	 tb="$tb elf32-i386.lo $elfxx_x86 elf32.lo $elf" ;;
15899    i386_elf32_sol2_vec)	 tb="$tb elf32-i386.lo $elfxx_x86 elf32.lo $elf" ;;
15900    i386_elf32_vxworks_vec)	 tb="$tb elf32-i386.lo $elfxx_x86 elf32.lo $elf" ;;
15901    i386_mach_o_vec)		 tb="$tb mach-o-i386.lo" ;;
15902    i386_msdos_vec)		 tb="$tb i386msdos.lo" ;;
15903    i386_pe_vec)		 tb="$tb pe-i386.lo peigen.lo $coff" ;;
15904    i386_pe_big_vec)		 tb="$tb pe-i386.lo peigen.lo $coff" ;;
15905    i386_pei_vec)		 tb="$tb pei-i386.lo peigen.lo $coff" ;;
15906    iamcu_elf32_vec)		 tb="$tb elf32-i386.lo $elfxx_x86 elf32.lo $elf" ;;
15907    ia64_elf32_be_vec)		 tb="$tb elf32-ia64.lo elfxx-ia64.lo elf32.lo $elf" ;;
15908    ia64_elf32_hpux_be_vec)	 tb="$tb elf32-ia64.lo elfxx-ia64.lo elf32.lo $elf" ;;
15909    ia64_elf64_be_vec)		 tb="$tb elf64-ia64.lo elfxx-ia64.lo elf64.lo $elf"; target_size=64 ;;
15910    ia64_elf64_le_vec)		 tb="$tb elf64-ia64.lo elfxx-ia64.lo elf64.lo $elf"; target_size=64 ;;
15911    ia64_elf64_hpux_be_vec)	 tb="$tb elf64-ia64.lo elfxx-ia64.lo elf64.lo $elf"; target_size=64 ;;
15912    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 ;;
15913    ia64_pei_vec)		 tb="$tb pei-ia64.lo pepigen.lo $coff"; target_size=64 ;;
15914    ip2k_elf32_vec)		 tb="$tb elf32-ip2k.lo elf32.lo $elf" ;;
15915    iq2000_elf32_vec)		 tb="$tb elf32-iq2000.lo elf32.lo $elf" ;;
15916    kvx_elf32_vec)		 tb="$tb elf32-kvx.lo elfxx-kvx.lo elf32.lo $elf $ipa" ;;
15917    kvx_elf64_vec)		 tb="$tb elf64-kvx.lo elfxx-kvx.lo elf64.lo $elf $ipa"; target_size=64 ;;
15918    lm32_elf32_vec)		 tb="$tb elf32-lm32.lo elf32.lo $elf" ;;
15919    lm32_elf32_fdpic_vec)	 tb="$tb elf32-lm32.lo elf32.lo $elf" ;;
15920    loongarch_elf32_vec)	 tb="$tb elf32-loongarch.lo elfxx-loongarch.lo elf32.lo elf-ifunc.lo $elf" ;;
15921    loongarch_elf64_vec)	 tb="$tb elf64-loongarch.lo elf64.lo elfxx-loongarch.lo elf32.lo elf-ifunc.lo $elf"; target_size=64 ;;
15922    loongarch64_pei_vec)	 tb="$tb pei-loongarch64.lo pe-loongarch64igen.lo $coff"; target_size=64 ;;
15923    m32c_elf32_vec)		 tb="$tb elf32-m32c.lo elf32.lo $elf" ;;
15924    m32r_elf32_vec)		 tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
15925    m32r_elf32_le_vec)		 tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
15926    m32r_elf32_linux_vec)	 tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
15927    m32r_elf32_linux_le_vec)	 tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
15928    m68hc11_elf32_vec)		 tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
15929    m68hc12_elf32_vec)		 tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
15930    m68k_elf32_vec)		 tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
15931    s12z_elf32_vec)		 tb="$tb elf32-s12z.lo elf32.lo $elf" ;;
15932    mach_o_be_vec)		 tb="$tb mach-o.lo dwarf2.lo" ;;
15933    mach_o_le_vec)		 tb="$tb mach-o.lo dwarf2.lo" ;;
15934    mach_o_fat_vec)		 tb="$tb mach-o.lo dwarf2.lo" ;;
15935    mcore_elf32_be_vec)		 tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
15936    mcore_elf32_le_vec)		 tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
15937    mcore_pe_be_vec)		 tb="$tb pe-mcore.lo peigen.lo $coff" ;;
15938    mcore_pe_le_vec)		 tb="$tb pe-mcore.lo peigen.lo $coff" ;;
15939    mcore_pei_be_vec)		 tb="$tb pei-mcore.lo peigen.lo $coff" ;;
15940    mcore_pei_le_vec)		 tb="$tb pei-mcore.lo peigen.lo $coff" ;;
15941    mep_elf32_vec)		 tb="$tb elf32-mep.lo elf32.lo $elf" ;;
15942    mep_elf32_le_vec)		 tb="$tb elf32-mep.lo elf32.lo $elf" ;;
15943    metag_elf32_vec)		 tb="$tb elf32-metag.lo elf32.lo $elf" ;;
15944    microblaze_elf32_vec)	 tb="$tb elf32-microblaze.lo elf32.lo $elf" ;;
15945    microblaze_elf32_le_vec)	 tb="$tb elf32-microblaze.lo elf32.lo $elf" ;;
15946    mips_ecoff_be_vec)		 tb="$tb coff-mips.lo ecoff.lo $ecoff" ;;
15947    mips_ecoff_le_vec)		 tb="$tb coff-mips.lo ecoff.lo $ecoff" ;;
15948    mips_ecoff_bele_vec)	 tb="$tb coff-mips.lo ecoff.lo $ecoff" ;;
15949    mips_elf32_be_vec)		 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
15950    mips_elf32_le_vec)		 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
15951    mips_elf32_n_be_vec)	 tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
15952    mips_elf32_n_le_vec)	 tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
15953    mips_elf32_ntrad_be_vec)	 tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; ;;
15954    mips_elf32_ntrad_le_vec)	 tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; ;;
15955    mips_elf32_ntradfbsd_be_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
15956    mips_elf32_ntradfbsd_le_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
15957    mips_elf32_trad_be_vec)	 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
15958    mips_elf32_trad_le_vec)	 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
15959    mips_elf32_tradfbsd_be_vec)  tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
15960    mips_elf32_tradfbsd_le_vec)  tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
15961    mips_elf32_vxworks_be_vec)	 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
15962    mips_elf32_vxworks_le_vec)	 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
15963    mips_elf64_be_vec)		 tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
15964    mips_elf64_le_vec)		 tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
15965    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 ;;
15966    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 ;;
15967    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 ;;
15968    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 ;;
15969    mmix_elf64_vec)		 tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;;
15970    mmix_mmo_vec)			 tb="$tb mmo.lo" target_size=64 ;;
15971    mn10200_elf32_vec)		 tb="$tb elf-m10200.lo elf32.lo $elf" ;;
15972    mn10300_elf32_vec)		 tb="$tb elf-m10300.lo elf32.lo $elf" ;;
15973    moxie_elf32_be_vec)		 tb="$tb elf32-moxie.lo elf32.lo $elf" ;;
15974    moxie_elf32_le_vec)		 tb="$tb elf32-moxie.lo elf32.lo $elf" ;;
15975    msp430_elf32_vec)		 tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
15976    msp430_elf32_ti_vec)	 tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
15977    mt_elf32_vec)		 tb="$tb elf32-mt.lo elf32.lo $elf" ;;
15978    nds32_elf32_be_vec)		 tb="$tb elf32-nds32.lo elf32.lo $elf" ;;
15979    nds32_elf32_le_vec)		 tb="$tb elf32-nds32.lo elf32.lo $elf" ;;
15980    nds32_elf32_linux_be_vec)	 tb="$tb elf32-nds32.lo elf32.lo $elf" ;;
15981    nds32_elf32_linux_le_vec)	 tb="$tb elf32-nds32.lo elf32.lo $elf" ;;
15982    nfp_elf64_vec)		 tb="$tb elf64-nfp.lo elf64.lo $elf" ;;
15983    nios2_elf32_be_vec)		 tb="$tb elf32-nios2.lo elf32.lo $elf" ;;
15984    nios2_elf32_le_vec)		 tb="$tb elf32-nios2.lo elf32.lo $elf" ;;
15985    ns32k_aout_pc532mach_vec)	 tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
15986    ns32k_aout_pc532nbsd_vec)	 tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
15987    or1k_elf32_vec)		 tb="$tb elf32-or1k.lo elf32.lo $elf" ;;
15988    pdb_vec)			 tb="$tb pdb.lo" ;;
15989    pdp11_aout_vec)		 tb="$tb pdp11.lo" ;;
15990    pef_vec)			 tb="$tb pef.lo" ;;
15991    pef_xlib_vec)		 tb="$tb pef.lo" ;;
15992    pj_elf32_vec)		 tb="$tb elf32-pj.lo elf32.lo $elf" ;;
15993    pj_elf32_le_vec)		 tb="$tb elf32-pj.lo elf32.lo $elf" ;;
15994    powerpc_boot_vec)		 tb="$tb ppcboot.lo" ;;
15995    powerpc_elf32_vec)		 tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
15996    powerpc_elf32_le_vec)	 tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
15997    powerpc_elf32_fbsd_vec)	 tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
15998    powerpc_elf32_vxworks_vec)	 tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
15999    powerpc_elf64_vec)		 tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
16000    powerpc_elf64_le_vec)	 tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
16001    powerpc_elf64_fbsd_vec)	 tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
16002    powerpc_elf64_fbsd_le_vec)	 tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
16003    powerpc_xcoff_vec)		 tb="$tb coff-rs6000.lo $xcoff" ;;
16004    pru_elf32_vec)		 tb="$tb elf32-pru.lo elf32.lo $elf" ;;
16005    riscv_elf32_vec)		 tb="$tb elf32-riscv.lo elfxx-riscv.lo elf-ifunc.lo elf32.lo $elf" ;;
16006    riscv_elf64_vec)		 tb="$tb elf64-riscv.lo elf64.lo elfxx-riscv.lo elf-ifunc.lo elf32.lo $elf"; target_size=64 ;;
16007    riscv_elf32_be_vec)		 tb="$tb elf32-riscv.lo elfxx-riscv.lo elf-ifunc.lo elf32.lo $elf" ;;
16008    riscv_elf64_be_vec)		 tb="$tb elf64-riscv.lo elf64.lo elfxx-riscv.lo elf-ifunc.lo elf32.lo $elf"; target_size=64 ;;
16009    riscv64_pei_vec)		 tb="$tb pei-riscv64.lo pe-riscv64igen.lo $coff"; target_size=64 ;;
16010    rl78_elf32_vec)		 tb="$tb elf32-rl78.lo elf32.lo $elf" ;;
16011    rs6000_xcoff64_vec)		 tb="$tb coff64-rs6000.lo aix5ppc-core.lo $xcoff"; target_size=64 ;;
16012    rs6000_xcoff64_aix_vec)	 tb="$tb coff64-rs6000.lo aix5ppc-core.lo $xcoff"; target_size=64 ;;
16013    rs6000_xcoff_vec)		 tb="$tb coff-rs6000.lo $xcoff" ;;
16014    rx_elf32_be_vec)		 tb="$tb elf32-rx.lo elf32.lo $elf" ;;
16015    rx_elf32_be_ns_vec)		 tb="$tb elf32-rx.lo elf32.lo $elf" ;;
16016    rx_elf32_le_vec)		 tb="$tb elf32-rx.lo elf32.lo $elf" ;;
16017    rx_elf32_linux_le_vec)	 tb="$tb elf32-rx.lo elf32.lo $elf" ;;
16018    s390_elf32_vec)		 tb="$tb elf32-s390.lo elf32.lo $elf" ;;
16019    s390_elf64_vec)		 tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;;
16020    score_elf32_be_vec)		 tb="$tb elf32-score.lo elf32-score7.lo elf32.lo elf64.lo $elf"; want64=true; target_size=64 ;;
16021    score_elf32_le_vec)		 tb="$tb elf32-score.lo elf32-score7.lo elf32.lo elf64.lo $elf"; want64=true; target_size=64 ;;
16022    sh_coff_vec)		 tb="$tb coff-sh.lo $coff" ;;
16023    sh_coff_le_vec)		 tb="$tb coff-sh.lo $coff" ;;
16024    sh_coff_small_vec)		 tb="$tb coff-sh.lo $coff" ;;
16025    sh_coff_small_le_vec)	 tb="$tb coff-sh.lo $coff" ;;
16026    sh_elf32_vec)		 tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
16027    sh_elf32_le_vec)		 tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
16028    sh_elf32_fdpic_be_vec)	 tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
16029    sh_elf32_fdpic_le_vec)	 tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
16030    sh_elf32_linux_vec)		 tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
16031    sh_elf32_linux_be_vec)	 tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
16032    sh_elf32_nbsd_vec)		 tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
16033    sh_elf32_nbsd_le_vec)	 tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
16034    sh_elf32_vxworks_vec)	 tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
16035    sh_elf32_vxworks_le_vec)	 tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
16036    sh_pe_le_vec)		 tb="$tb pe-sh.lo coff-sh.lo peigen.lo $coff" ;;
16037    sh_pei_le_vec)		 tb="$tb pei-sh.lo coff-sh.lo peigen.lo $coff" ;;
16038    sparc_elf32_vec)		 tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
16039    sparc_elf32_sol2_vec)	 tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
16040    sparc_elf32_vxworks_vec)	 tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
16041    sparc_elf64_vec)		 tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
16042    sparc_elf64_fbsd_vec)	 tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
16043    sparc_elf64_sol2_vec)	 tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
16044    spu_elf32_vec)		 tb="$tb elf32-spu.lo elf32.lo $elf" ;;
16045    sym_vec)			 tb="$tb xsym.lo" ;;
16046    tic30_coff_vec)		 tb="$tb coff-tic30.lo $coffgen" ;;
16047    tic4x_coff0_vec)		 tb="$tb coff-tic4x.lo $coffgen" ;;
16048    tic4x_coff0_beh_vec)	 tb="$tb coff-tic4x.lo $coffgen" ;;
16049    tic4x_coff1_vec)		 tb="$tb coff-tic4x.lo $coffgen" ;;
16050    tic4x_coff1_beh_vec)	 tb="$tb coff-tic4x.lo $coffgen" ;;
16051    tic4x_coff2_vec)		 tb="$tb coff-tic4x.lo $coffgen" ;;
16052    tic4x_coff2_beh_vec)	 tb="$tb coff-tic4x.lo $coffgen" ;;
16053    tic54x_coff0_vec)		 tb="$tb coff-tic54x.lo $coffgen" ;;
16054    tic54x_coff0_beh_vec)	 tb="$tb coff-tic54x.lo $coffgen" ;;
16055    tic54x_coff1_vec)		 tb="$tb coff-tic54x.lo $coffgen" ;;
16056    tic54x_coff1_beh_vec)	 tb="$tb coff-tic54x.lo $coffgen" ;;
16057    tic54x_coff2_vec)		 tb="$tb coff-tic54x.lo $coffgen" ;;
16058    tic54x_coff2_beh_vec)	 tb="$tb coff-tic54x.lo $coffgen" ;;
16059    tic6x_elf32_be_vec)		 tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
16060    tic6x_elf32_le_vec)		 tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
16061    tic6x_elf32_c6000_be_vec)	 tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
16062    tic6x_elf32_c6000_le_vec)	 tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
16063    tic6x_elf32_linux_be_vec)	 tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
16064    tic6x_elf32_linux_le_vec)	 tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
16065    tilegx_elf32_be_vec)	 tb="$tb elf32-tilegx.lo elfxx-tilegx.lo elf32.lo $elf" ; target_size=32 ;;
16066    tilegx_elf32_le_vec)	 tb="$tb elf32-tilegx.lo elfxx-tilegx.lo elf32.lo $elf" ; target_size=32 ;;
16067    tilegx_elf64_be_vec)	 tb="$tb elf64-tilegx.lo elfxx-tilegx.lo elf64.lo $elf" ; target_size=64 ;;
16068    tilegx_elf64_le_vec)	 tb="$tb elf64-tilegx.lo elfxx-tilegx.lo elf64.lo $elf" ; target_size=64 ;;
16069    tilepro_elf32_vec)		 tb="$tb elf32-tilepro.lo elf32.lo $elf" ;;
16070    v800_elf32_vec)		 tb="$tb elf32-v850.lo elf32.lo $elf" ;;
16071    v850_elf32_vec)		 tb="$tb elf32-v850.lo elf32.lo $elf" ;;
16072    vax_aout_1knbsd_vec)	 tb="$tb vax1knetbsd.lo aout32.lo" ;;
16073    vax_aout_nbsd_vec)		 tb="$tb vaxnetbsd.lo aout32.lo" ;;
16074    vax_elf32_vec)		 tb="$tb elf32-vax.lo elf32.lo $elf" ;;
16075    ft32_elf32_vec)		 tb="$tb elf32-ft32.lo elf32.lo $elf" ;;
16076    visium_elf32_vec)		 tb="$tb elf32-visium.lo elf32.lo $elf" ;;
16077    wasm_vec)                    tb="$tb wasm-module.lo" ;;
16078    wasm32_elf32_vec)            tb="$tb elf32-wasm32.lo elf32.lo $elf" ;;
16079    x86_64_coff_vec)		 tb="$tb coff-x86_64.lo $coff"; target_size=64 ;;
16080    x86_64_elf32_vec)		 tb="$tb elf64-x86-64.lo $elfxx_x86 elf64.lo elf32.lo $elf"; target_size=64 ;;
16081    x86_64_elf64_vec)		 tb="$tb elf64-x86-64.lo $elfxx_x86 elf64.lo $elf"; target_size=64 ;;
16082    x86_64_elf64_cloudabi_vec)	 tb="$tb elf64-x86-64.lo $elfxx_x86 elf64.lo $elf"; target_size=64 ;;
16083    x86_64_elf64_fbsd_vec)	 tb="$tb elf64-x86-64.lo $elfxx_x86 elf64.lo $elf"; target_size=64 ;;
16084    x86_64_elf64_sol2_vec)	 tb="$tb elf64-x86-64.lo $elfxx_x86 elf64.lo $elf"; target_size=64 ;;
16085    x86_64_mach_o_vec)		 tb="$tb mach-o-x86-64.lo" ;;
16086    x86_64_pe_vec)		 tb="$tb pe-x86_64.lo pex64igen.lo $coff"; target_size=64 ;;
16087    x86_64_pe_big_vec)		 tb="$tb pe-x86_64.lo pex64igen.lo $coff"; target_size=64 ;;
16088    x86_64_pei_vec)		 tb="$tb pei-x86_64.lo pex64igen.lo $coff"; target_size=64 ;;
16089    xgate_elf32_vec)		 tb="$tb elf32-xgate.lo elf32.lo $elf" ;;
16090    xstormy16_elf32_vec)	 tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;;
16091    xtensa_elf32_be_vec)	 tb="$tb xtensa-dynconfig.lo xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
16092    xtensa_elf32_le_vec)	 tb="$tb xtensa-dynconfig.lo xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
16093    z80_coff_vec)		 tb="$tb coff-z80.lo reloc16.lo $coffgen" ;;
16094    z80_elf32_vec)		 tb="$tb elf32-z80.lo elf32.lo $elf" ;;
16095    z8k_coff_vec)		 tb="$tb coff-z8k.lo reloc16.lo $coff" ;;
16096
16097    # These appear out of order in targets.c
16098    srec_vec)			 tb="$tb srec.lo" ;;
16099    symbolsrec_vec)		 tb="$tb srec.lo" ;;
16100    tekhex_vec)			 tb="$tb tekhex.lo" ;;
16101    core_cisco_be_vec)		 tb="$tb cisco-core.lo" ;;
16102    core_cisco_le_vec)		 tb="$tb cisco-core.lo" ;;
16103
16104    "")				 ;;
16105    *) as_fn_error $? "*** unknown target vector $vec" "$LINENO" 5 ;;
16106    esac
16107
16108    if test ${target_size} = 64; then
16109	target64=true
16110    fi
16111    if test x"${vec}" = x"${defvec}"; then
16112	bfd_default_target_size=${target_size}
16113    fi
16114done
16115
16116if test "$plugins" = "yes"; then
16117     tb="$tb plugin.lo"
16118fi
16119
16120# Target architecture .o files.
16121# A couple of CPUs use shorter file names to avoid problems on DOS
16122# filesystems.
16123ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
16124
16125# Weed out duplicate .o files.
16126f=""
16127for i in $tb ; do
16128    case " $f " in
16129    *" $i "*) ;;
16130    *) f="$f $i" ;;
16131    esac
16132done
16133tb="$f"
16134
16135f=""
16136for i in $ta ; do
16137    case " $f " in
16138    *" $i "*) ;;
16139    *) f="$f $i" ;;
16140    esac
16141done
16142ta="$f"
16143
16144bfd_backends="$tb"
16145bfd_machines="$ta"
16146
16147if test x${all_targets} = xtrue ; then
16148  bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
16149  bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
16150  selvecs=
16151  havevecs=-DHAVE_all_vecs
16152  selarchs=
16153  test -n "$assocvecs" &&
16154    assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
16155else	# all_targets is true
16156  # Only set these if they will be nonempty, for the clever echo.
16157  havevecs=
16158  assocvecs=
16159  test -n "$selvecs" &&
16160    havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
16161  test -n "$selvecs" &&
16162    selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
16163  test -n "$selarchs" &&
16164    selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
16165fi	# all_targets is true
16166
16167# 64-bit archives need a 64-bit bfd_vma.
16168if test "x$want_64_bit_archive" = xtrue; then
16169  want64=true
16170
16171$as_echo "#define USE_64_BIT_ARCHIVE 1" >>confdefs.h
16172
16173fi
16174
16175case ${host64}-${target64}-${want64} in
16176  *true*)
16177    wordsize=64
16178    bfd64_libs='$(BFD64_LIBS)'
16179    all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
16180    if test -n "$GCC" ; then
16181       bad_64bit_gcc=no;
16182       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc version with buggy 64-bit support" >&5
16183$as_echo_n "checking for gcc version with buggy 64-bit support... " >&6; }
16184       # Add more tests for gcc versions with non-working 64-bit support here.
16185       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16186/* end confdefs.h.  */
16187:__GNUC__:__GNUC_MINOR__:__i386__:
16188_ACEOF
16189if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16190  $EGREP ": 2 : 91 : 1 :" >/dev/null 2>&1; then :
16191  bad_64bit_gcc=yes;
16192		    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes: egcs-1.1.2 on ix86 spotted" >&5
16193$as_echo "yes: egcs-1.1.2 on ix86 spotted" >&6; }
16194else
16195  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16196$as_echo "no" >&6; }
16197fi
16198rm -f conftest*
16199
16200       if test $bad_64bit_gcc = yes ; then
16201	 as_fn_error $? "A newer version of gcc is needed for the requested 64-bit BFD configuration" "$LINENO" 5
16202       fi
16203    fi
16204    ;;
16205  false-false-false)
16206    wordsize=32
16207    all_backends='$(BFD32_BACKENDS)'
16208    ;;
16209esac
16210
16211tdefaults=""
16212test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
16213test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
16214test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'"
16215test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
16216
16217
16218
16219
16220
16221
16222
16223
16224
16225
16226# If we are configured native, pick a core file support file.
16227COREFILE=
16228COREFLAG=
16229CORE_HEADER=
16230TRAD_HEADER=
16231if test "${target}" = "${host}"; then
16232  case "${host}" in
16233  alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu | alpha*-*-*vms*)
16234	COREFILE=''
16235	;;
16236  alpha*-*-linux-*)
16237	COREFILE=trad-core.lo
16238	TRAD_HEADER='"hosts/alphalinux.h"'
16239	;;
16240  alpha*-*-netbsd* | alpha*-*-openbsd*)
16241	COREFILE=netbsd-core.lo
16242	;;
16243  alpha*-*-*)
16244        COREFILE=osf-core.lo
16245	;;
16246  arm-*-freebsd* | arm-*-kfreebsd*-gnu)
16247	COREFILE='' ;;
16248  arm*-*-netbsd* | arm-*-openbsd*)
16249	COREFILE=netbsd-core.lo
16250	;;
16251  hppa*-*-hpux*)	COREFILE=hpux-core.lo ;;
16252  hppa*-*-hiux*)	COREFILE=hpux-core.lo ;;
16253  hppa*-*-mpeix*)	COREFILE=hpux-core.lo ;;
16254  hppa*-*-bsd*)		COREFILE="hpux-core.lo hppabsd-core.lo"
16255			COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
16256  hppa*-*-netbsd* | hppa*-*-openbsd*)
16257	COREFILE=netbsd-core.lo
16258	;;
16259
16260  i[3-7]86-*-bsdi)
16261	COREFILE=
16262	;;
16263  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]\.*)
16264	COREFILE=trad-core.lo
16265	TRAD_HEADER='"hosts/i386bsd.h"'
16266	;;
16267  i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu | i[3-7]86-*-dragonfly*)
16268	COREFILE=''
16269	TRAD_HEADER='"hosts/i386bsd.h"'
16270	;;
16271  i[3-7]86-*-netbsd* | i[3-7]86-*-knetbsd*-gnu | i[3-7]86-*-openbsd*)
16272	COREFILE=netbsd-core.lo
16273	;;
16274  i[3-7]86-esix-sysv3*)
16275	COREFILE=trad-core.lo
16276	TRAD_HEADER='"hosts/esix.h"'
16277	;;
16278  i[3-7]86-*-mach3*)
16279	COREFILE=trad-core.lo
16280	TRAD_HEADER='"hosts/i386mach3.h"'
16281	;;
16282  i[3-7]86-*-linux-*)
16283	COREFILE=trad-core.lo
16284	TRAD_HEADER='"hosts/i386linux.h"'
16285	case "$enable_targets"-"$want64" in
16286	*x86_64-*linux*|*-true)
16287	  CORE_HEADER='"hosts/x86-64linux.h"'
16288	esac
16289	;;
16290  mips*-*-netbsd* | mips*-*-openbsd*)
16291	COREFILE=netbsd-core.lo
16292	;;
16293  mips-*-irix*)
16294	COREFILE=irix-core.lo
16295	;;
16296  m68*-*-linux-*)
16297	COREFILE=trad-core.lo
16298	TRAD_HEADER='"hosts/m68klinux.h"'
16299	;;
16300  m68*-*-netbsd*)
16301	COREFILE=netbsd-core.lo
16302	;;
16303  ns32k-pc532-mach)
16304	COREFILE=trad-core.lo
16305	TRAD_HEADER='"hosts/pc532mach.h"'
16306	;;
16307  ns32k-*-netbsd* | ns32k-*-openbsd*)
16308	COREFILE=netbsd-core.lo
16309	;;
16310  riscv*-*-netbsd*)
16311	COREFILE=netbsd-core.lo
16312	;;
16313  rs6000-*-lynx*)
16314	COREFILE=lynx-core.lo
16315	;;
16316  rs6000-*-aix[5-9].* | powerpc-*-aix[5-9].* | powerpc64-*-aix[5-9].*)
16317        COREFILE=rs6000-core.lo
16318	COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE"
16319	;;
16320  rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*)
16321        COREFILE=rs6000-core.lo
16322	COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
16323	# Not all versions of AIX with -DAIX_CORE_DUMPX_CORE
16324	# have c_impl as a member of struct core_dumpx
16325	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for c_impl in struct core_dumpx" >&5
16326$as_echo_n "checking for c_impl in struct core_dumpx... " >&6; }
16327	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16328/* end confdefs.h.  */
16329#include <core.h>
16330int
16331main ()
16332{
16333struct core_dumpx c; c.c_impl = 0;
16334  ;
16335  return 0;
16336}
16337_ACEOF
16338if ac_fn_c_try_compile "$LINENO"; then :
16339
16340$as_echo "#define HAVE_ST_C_IMPL 1" >>confdefs.h
16341
16342	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16343$as_echo "yes" >&6; }
16344else
16345  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16346$as_echo "no" >&6; }
16347fi
16348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16349	;;
16350  rs6000-*-aix4*)	COREFILE=rs6000-core.lo ;;
16351  rs6000-*-*)		COREFILE=rs6000-core.lo ;;
16352  powerpc64-*-aix*)	COREFILE=rs6000-core.lo ;;
16353  powerpc-*-aix4*)	COREFILE=rs6000-core.lo ;;
16354  powerpc-*-aix*)	COREFILE=rs6000-core.lo ;;
16355  powerpc-*-beos*)	;;
16356  powerpc-*-freebsd* | powerpc-*-kfreebsd*-gnu)
16357		        COREFILE='' ;;
16358  powerpc-*-netbsd*)	COREFILE=netbsd-core.lo ;;
16359  powerpc-*-*bsd*)	COREFILE=netbsd-core.lo ;;
16360  s390*-*-*)            COREFILE=trad-core.lo ;;
16361  sh*-*-netbsd* | sh*-*-openbsd*)
16362	COREFILE=netbsd-core.lo
16363	;;
16364  sparc-*-netbsd* | sparc*-*-openbsd*)
16365	COREFILE=netbsd-core.lo
16366	;;
16367  vax-*-netbsd* | vax-*-openbsd*)
16368	COREFILE=netbsd-core.lo
16369	;;
16370  vax-*-linux-*)
16371	COREFILE=trad-core.lo
16372	TRAD_HEADER='"hosts/vaxlinux.h"'
16373	;;
16374  vax-*-*)
16375	COREFILE=trad-core.lo
16376	TRAD_HEADER='"hosts/vaxbsd.h"'
16377	;;
16378  x86_64-*-linux*)
16379	CORE_HEADER='"hosts/x86-64linux.h"'
16380	;;
16381  x86_64-*-netbsd* | x86_64-*-openbsd*)
16382	COREFILE=netbsd-core.lo
16383	;;
16384  esac
16385
16386  case "$COREFILE" in
16387  hppabsd-core.lo)	COREFLAG=-DHPPABSD_CORE ;;
16388  hpux-core.lo)		COREFLAG=-DHPUX_CORE ;;
16389  irix-core.lo)		COREFLAG=-DIRIX_CORE ;;
16390  lynx-core.lo)		COREFLAG=-DLYNX_CORE ;;
16391  netbsd-core.lo)	COREFLAG=-DNETBSD_CORE ;;
16392  osf-core.lo)		COREFLAG=-DOSF_CORE ;;
16393  ptrace-core.lo)	COREFLAG=-DPTRACE_CORE ;;
16394  rs6000-core.lo)	COREFLAG="$COREFLAG -DAIX_CORE" ;;
16395  trad-core.lo)		COREFLAG="$COREFLAG -DTRAD_CORE" ;;
16396  esac
16397
16398  # ELF corefile support has several flavors, but all of
16399  # them use something called <sys/procfs.h>
16400
16401$as_echo "#define _STRUCTURED_PROC 1" >>confdefs.h
16402
16403 for ac_header in sys/procfs.h
16404do :
16405  ac_fn_c_check_header_mongrel "$LINENO" "sys/procfs.h" "ac_cv_header_sys_procfs_h" "$ac_includes_default"
16406if test "x$ac_cv_header_sys_procfs_h" = xyes; then :
16407  cat >>confdefs.h <<_ACEOF
16408#define HAVE_SYS_PROCFS_H 1
16409_ACEOF
16410
16411fi
16412
16413done
16414
16415  if test "$ac_cv_header_sys_procfs_h" = yes; then
16416
16417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prstatus_t in sys/procfs.h" >&5
16418$as_echo_n "checking for prstatus_t in sys/procfs.h... " >&6; }
16419 if ${bfd_cv_have_sys_procfs_type_prstatus_t+:} false; then :
16420  $as_echo_n "(cached) " >&6
16421else
16422  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16423/* end confdefs.h.  */
16424
16425#define _SYSCALL32
16426#include <sys/procfs.h>
16427int
16428main ()
16429{
16430prstatus_t avar
16431  ;
16432  return 0;
16433}
16434_ACEOF
16435if ac_fn_c_try_compile "$LINENO"; then :
16436  bfd_cv_have_sys_procfs_type_prstatus_t=yes
16437else
16438  bfd_cv_have_sys_procfs_type_prstatus_t=no
16439
16440fi
16441rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16442fi
16443
16444 if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
16445
16446$as_echo "#define HAVE_PRSTATUS_T 1" >>confdefs.h
16447
16448 fi
16449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prstatus_t" >&5
16450$as_echo "$bfd_cv_have_sys_procfs_type_prstatus_t" >&6; }
16451
16452
16453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prstatus32_t in sys/procfs.h" >&5
16454$as_echo_n "checking for prstatus32_t in sys/procfs.h... " >&6; }
16455 if ${bfd_cv_have_sys_procfs_type_prstatus32_t+:} false; then :
16456  $as_echo_n "(cached) " >&6
16457else
16458  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16459/* end confdefs.h.  */
16460
16461#define _SYSCALL32
16462#include <sys/procfs.h>
16463int
16464main ()
16465{
16466prstatus32_t avar
16467  ;
16468  return 0;
16469}
16470_ACEOF
16471if ac_fn_c_try_compile "$LINENO"; then :
16472  bfd_cv_have_sys_procfs_type_prstatus32_t=yes
16473else
16474  bfd_cv_have_sys_procfs_type_prstatus32_t=no
16475
16476fi
16477rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16478fi
16479
16480 if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then
16481
16482$as_echo "#define HAVE_PRSTATUS32_T 1" >>confdefs.h
16483
16484 fi
16485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prstatus32_t" >&5
16486$as_echo "$bfd_cv_have_sys_procfs_type_prstatus32_t" >&6; }
16487
16488
16489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prstatus_t.pr_who in sys/procfs.h" >&5
16490$as_echo_n "checking for prstatus_t.pr_who in sys/procfs.h... " >&6; }
16491 if ${bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who+:} false; then :
16492  $as_echo_n "(cached) " >&6
16493else
16494  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16495/* end confdefs.h.  */
16496
16497#define _SYSCALL32
16498#include <sys/procfs.h>
16499int
16500main ()
16501{
16502prstatus_t avar; void* aref = (void*) &avar.pr_who
16503  ;
16504  return 0;
16505}
16506_ACEOF
16507if ac_fn_c_try_compile "$LINENO"; then :
16508  bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes
16509else
16510  bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no
16511
16512fi
16513rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16514fi
16515
16516 if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then
16517
16518$as_echo "#define HAVE_PRSTATUS_T_PR_WHO 1" >>confdefs.h
16519
16520 fi
16521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&5
16522$as_echo "$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&6; }
16523
16524
16525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prstatus32_t.pr_who in sys/procfs.h" >&5
16526$as_echo_n "checking for prstatus32_t.pr_who in sys/procfs.h... " >&6; }
16527 if ${bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who+:} false; then :
16528  $as_echo_n "(cached) " >&6
16529else
16530  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16531/* end confdefs.h.  */
16532
16533#define _SYSCALL32
16534#include <sys/procfs.h>
16535int
16536main ()
16537{
16538prstatus32_t avar; void* aref = (void*) &avar.pr_who
16539  ;
16540  return 0;
16541}
16542_ACEOF
16543if ac_fn_c_try_compile "$LINENO"; then :
16544  bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes
16545else
16546  bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no
16547
16548fi
16549rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16550fi
16551
16552 if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then
16553
16554$as_echo "#define HAVE_PRSTATUS32_T_PR_WHO 1" >>confdefs.h
16555
16556 fi
16557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&5
16558$as_echo "$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&6; }
16559
16560
16561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pstatus_t in sys/procfs.h" >&5
16562$as_echo_n "checking for pstatus_t in sys/procfs.h... " >&6; }
16563 if ${bfd_cv_have_sys_procfs_type_pstatus_t+:} false; then :
16564  $as_echo_n "(cached) " >&6
16565else
16566  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16567/* end confdefs.h.  */
16568
16569#define _SYSCALL32
16570#include <sys/procfs.h>
16571int
16572main ()
16573{
16574pstatus_t avar
16575  ;
16576  return 0;
16577}
16578_ACEOF
16579if ac_fn_c_try_compile "$LINENO"; then :
16580  bfd_cv_have_sys_procfs_type_pstatus_t=yes
16581else
16582  bfd_cv_have_sys_procfs_type_pstatus_t=no
16583
16584fi
16585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16586fi
16587
16588 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
16589
16590$as_echo "#define HAVE_PSTATUS_T 1" >>confdefs.h
16591
16592 fi
16593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
16594$as_echo "$bfd_cv_have_sys_procfs_type_pstatus_t" >&6; }
16595
16596
16597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pxstatus_t in sys/procfs.h" >&5
16598$as_echo_n "checking for pxstatus_t in sys/procfs.h... " >&6; }
16599 if ${bfd_cv_have_sys_procfs_type_pxstatus_t+:} false; then :
16600  $as_echo_n "(cached) " >&6
16601else
16602  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16603/* end confdefs.h.  */
16604
16605#define _SYSCALL32
16606#include <sys/procfs.h>
16607int
16608main ()
16609{
16610pxstatus_t avar
16611  ;
16612  return 0;
16613}
16614_ACEOF
16615if ac_fn_c_try_compile "$LINENO"; then :
16616  bfd_cv_have_sys_procfs_type_pxstatus_t=yes
16617else
16618  bfd_cv_have_sys_procfs_type_pxstatus_t=no
16619
16620fi
16621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16622fi
16623
16624 if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then
16625
16626$as_echo "#define HAVE_PXSTATUS_T 1" >>confdefs.h
16627
16628 fi
16629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pxstatus_t" >&5
16630$as_echo "$bfd_cv_have_sys_procfs_type_pxstatus_t" >&6; }
16631
16632
16633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pstatus32_t in sys/procfs.h" >&5
16634$as_echo_n "checking for pstatus32_t in sys/procfs.h... " >&6; }
16635 if ${bfd_cv_have_sys_procfs_type_pstatus32_t+:} false; then :
16636  $as_echo_n "(cached) " >&6
16637else
16638  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16639/* end confdefs.h.  */
16640
16641#define _SYSCALL32
16642#include <sys/procfs.h>
16643int
16644main ()
16645{
16646pstatus32_t avar
16647  ;
16648  return 0;
16649}
16650_ACEOF
16651if ac_fn_c_try_compile "$LINENO"; then :
16652  bfd_cv_have_sys_procfs_type_pstatus32_t=yes
16653else
16654  bfd_cv_have_sys_procfs_type_pstatus32_t=no
16655
16656fi
16657rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16658fi
16659
16660 if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then
16661
16662$as_echo "#define HAVE_PSTATUS32_T 1" >>confdefs.h
16663
16664 fi
16665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pstatus32_t" >&5
16666$as_echo "$bfd_cv_have_sys_procfs_type_pstatus32_t" >&6; }
16667
16668
16669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prpsinfo_t in sys/procfs.h" >&5
16670$as_echo_n "checking for prpsinfo_t in sys/procfs.h... " >&6; }
16671 if ${bfd_cv_have_sys_procfs_type_prpsinfo_t+:} false; then :
16672  $as_echo_n "(cached) " >&6
16673else
16674  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16675/* end confdefs.h.  */
16676
16677#define _SYSCALL32
16678#include <sys/procfs.h>
16679int
16680main ()
16681{
16682prpsinfo_t avar
16683  ;
16684  return 0;
16685}
16686_ACEOF
16687if ac_fn_c_try_compile "$LINENO"; then :
16688  bfd_cv_have_sys_procfs_type_prpsinfo_t=yes
16689else
16690  bfd_cv_have_sys_procfs_type_prpsinfo_t=no
16691
16692fi
16693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16694fi
16695
16696 if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
16697
16698$as_echo "#define HAVE_PRPSINFO_T 1" >>confdefs.h
16699
16700 fi
16701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prpsinfo_t" >&5
16702$as_echo "$bfd_cv_have_sys_procfs_type_prpsinfo_t" >&6; }
16703
16704
16705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prpsinfo_t.pr_pid in sys/procfs.h" >&5
16706$as_echo_n "checking for prpsinfo_t.pr_pid in sys/procfs.h... " >&6; }
16707 if ${bfd_cv_have_sys_procfs_type_member_prpsinfo_t_pr_pid+:} false; then :
16708  $as_echo_n "(cached) " >&6
16709else
16710  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16711/* end confdefs.h.  */
16712
16713#define _SYSCALL32
16714#include <sys/procfs.h>
16715int
16716main ()
16717{
16718prpsinfo_t avar; void* aref = (void*) &avar.pr_pid
16719  ;
16720  return 0;
16721}
16722_ACEOF
16723if ac_fn_c_try_compile "$LINENO"; then :
16724  bfd_cv_have_sys_procfs_type_member_prpsinfo_t_pr_pid=yes
16725else
16726  bfd_cv_have_sys_procfs_type_member_prpsinfo_t_pr_pid=no
16727
16728fi
16729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16730fi
16731
16732 if test $bfd_cv_have_sys_procfs_type_member_prpsinfo_t_pr_pid = yes; then
16733
16734$as_echo "#define HAVE_PRPSINFO_T_PR_PID 1" >>confdefs.h
16735
16736 fi
16737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_prpsinfo_t_pr_pid" >&5
16738$as_echo "$bfd_cv_have_sys_procfs_type_member_prpsinfo_t_pr_pid" >&6; }
16739
16740
16741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prpsinfo32_t in sys/procfs.h" >&5
16742$as_echo_n "checking for prpsinfo32_t in sys/procfs.h... " >&6; }
16743 if ${bfd_cv_have_sys_procfs_type_prpsinfo32_t+:} false; then :
16744  $as_echo_n "(cached) " >&6
16745else
16746  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16747/* end confdefs.h.  */
16748
16749#define _SYSCALL32
16750#include <sys/procfs.h>
16751int
16752main ()
16753{
16754prpsinfo32_t avar
16755  ;
16756  return 0;
16757}
16758_ACEOF
16759if ac_fn_c_try_compile "$LINENO"; then :
16760  bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes
16761else
16762  bfd_cv_have_sys_procfs_type_prpsinfo32_t=no
16763
16764fi
16765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16766fi
16767
16768 if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then
16769
16770$as_echo "#define HAVE_PRPSINFO32_T 1" >>confdefs.h
16771
16772 fi
16773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&5
16774$as_echo "$bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&6; }
16775
16776
16777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prpsinfo32_t.pr_pid in sys/procfs.h" >&5
16778$as_echo_n "checking for prpsinfo32_t.pr_pid in sys/procfs.h... " >&6; }
16779 if ${bfd_cv_have_sys_procfs_type_member_prpsinfo32_t_pr_pid+:} false; then :
16780  $as_echo_n "(cached) " >&6
16781else
16782  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16783/* end confdefs.h.  */
16784
16785#define _SYSCALL32
16786#include <sys/procfs.h>
16787int
16788main ()
16789{
16790prpsinfo32_t avar; void* aref = (void*) &avar.pr_pid
16791  ;
16792  return 0;
16793}
16794_ACEOF
16795if ac_fn_c_try_compile "$LINENO"; then :
16796  bfd_cv_have_sys_procfs_type_member_prpsinfo32_t_pr_pid=yes
16797else
16798  bfd_cv_have_sys_procfs_type_member_prpsinfo32_t_pr_pid=no
16799
16800fi
16801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16802fi
16803
16804 if test $bfd_cv_have_sys_procfs_type_member_prpsinfo32_t_pr_pid = yes; then
16805
16806$as_echo "#define HAVE_PRPSINFO32_T_PR_PID 1" >>confdefs.h
16807
16808 fi
16809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_prpsinfo32_t_pr_pid" >&5
16810$as_echo "$bfd_cv_have_sys_procfs_type_member_prpsinfo32_t_pr_pid" >&6; }
16811
16812
16813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psinfo_t in sys/procfs.h" >&5
16814$as_echo_n "checking for psinfo_t in sys/procfs.h... " >&6; }
16815 if ${bfd_cv_have_sys_procfs_type_psinfo_t+:} false; then :
16816  $as_echo_n "(cached) " >&6
16817else
16818  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16819/* end confdefs.h.  */
16820
16821#define _SYSCALL32
16822#include <sys/procfs.h>
16823int
16824main ()
16825{
16826psinfo_t avar
16827  ;
16828  return 0;
16829}
16830_ACEOF
16831if ac_fn_c_try_compile "$LINENO"; then :
16832  bfd_cv_have_sys_procfs_type_psinfo_t=yes
16833else
16834  bfd_cv_have_sys_procfs_type_psinfo_t=no
16835
16836fi
16837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16838fi
16839
16840 if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
16841
16842$as_echo "#define HAVE_PSINFO_T 1" >>confdefs.h
16843
16844 fi
16845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psinfo_t" >&5
16846$as_echo "$bfd_cv_have_sys_procfs_type_psinfo_t" >&6; }
16847
16848
16849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psinfo_t.pr_pid in sys/procfs.h" >&5
16850$as_echo_n "checking for psinfo_t.pr_pid in sys/procfs.h... " >&6; }
16851 if ${bfd_cv_have_sys_procfs_type_member_psinfo_t_pr_pid+:} false; then :
16852  $as_echo_n "(cached) " >&6
16853else
16854  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16855/* end confdefs.h.  */
16856
16857#define _SYSCALL32
16858#include <sys/procfs.h>
16859int
16860main ()
16861{
16862psinfo_t avar; void* aref = (void*) &avar.pr_pid
16863  ;
16864  return 0;
16865}
16866_ACEOF
16867if ac_fn_c_try_compile "$LINENO"; then :
16868  bfd_cv_have_sys_procfs_type_member_psinfo_t_pr_pid=yes
16869else
16870  bfd_cv_have_sys_procfs_type_member_psinfo_t_pr_pid=no
16871
16872fi
16873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16874fi
16875
16876 if test $bfd_cv_have_sys_procfs_type_member_psinfo_t_pr_pid = yes; then
16877
16878$as_echo "#define HAVE_PSINFO_T_PR_PID 1" >>confdefs.h
16879
16880 fi
16881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_psinfo_t_pr_pid" >&5
16882$as_echo "$bfd_cv_have_sys_procfs_type_member_psinfo_t_pr_pid" >&6; }
16883
16884
16885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psinfo32_t in sys/procfs.h" >&5
16886$as_echo_n "checking for psinfo32_t in sys/procfs.h... " >&6; }
16887 if ${bfd_cv_have_sys_procfs_type_psinfo32_t+:} false; then :
16888  $as_echo_n "(cached) " >&6
16889else
16890  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16891/* end confdefs.h.  */
16892
16893#define _SYSCALL32
16894#include <sys/procfs.h>
16895int
16896main ()
16897{
16898psinfo32_t avar
16899  ;
16900  return 0;
16901}
16902_ACEOF
16903if ac_fn_c_try_compile "$LINENO"; then :
16904  bfd_cv_have_sys_procfs_type_psinfo32_t=yes
16905else
16906  bfd_cv_have_sys_procfs_type_psinfo32_t=no
16907
16908fi
16909rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16910fi
16911
16912 if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then
16913
16914$as_echo "#define HAVE_PSINFO32_T 1" >>confdefs.h
16915
16916 fi
16917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psinfo32_t" >&5
16918$as_echo "$bfd_cv_have_sys_procfs_type_psinfo32_t" >&6; }
16919
16920
16921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psinfo32_t.pr_pid in sys/procfs.h" >&5
16922$as_echo_n "checking for psinfo32_t.pr_pid in sys/procfs.h... " >&6; }
16923 if ${bfd_cv_have_sys_procfs_type_member_psinfo32_t_pr_pid+:} false; then :
16924  $as_echo_n "(cached) " >&6
16925else
16926  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16927/* end confdefs.h.  */
16928
16929#define _SYSCALL32
16930#include <sys/procfs.h>
16931int
16932main ()
16933{
16934psinfo32_t avar; void* aref = (void*) &avar.pr_pid
16935  ;
16936  return 0;
16937}
16938_ACEOF
16939if ac_fn_c_try_compile "$LINENO"; then :
16940  bfd_cv_have_sys_procfs_type_member_psinfo32_t_pr_pid=yes
16941else
16942  bfd_cv_have_sys_procfs_type_member_psinfo32_t_pr_pid=no
16943
16944fi
16945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16946fi
16947
16948 if test $bfd_cv_have_sys_procfs_type_member_psinfo32_t_pr_pid = yes; then
16949
16950$as_echo "#define HAVE_PSINFO32_T_PR_PID 1" >>confdefs.h
16951
16952 fi
16953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_psinfo32_t_pr_pid" >&5
16954$as_echo "$bfd_cv_have_sys_procfs_type_member_psinfo32_t_pr_pid" >&6; }
16955
16956
16957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpstatus_t in sys/procfs.h" >&5
16958$as_echo_n "checking for lwpstatus_t in sys/procfs.h... " >&6; }
16959 if ${bfd_cv_have_sys_procfs_type_lwpstatus_t+:} false; then :
16960  $as_echo_n "(cached) " >&6
16961else
16962  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16963/* end confdefs.h.  */
16964
16965#define _SYSCALL32
16966#include <sys/procfs.h>
16967int
16968main ()
16969{
16970lwpstatus_t avar
16971  ;
16972  return 0;
16973}
16974_ACEOF
16975if ac_fn_c_try_compile "$LINENO"; then :
16976  bfd_cv_have_sys_procfs_type_lwpstatus_t=yes
16977else
16978  bfd_cv_have_sys_procfs_type_lwpstatus_t=no
16979
16980fi
16981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16982fi
16983
16984 if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
16985
16986$as_echo "#define HAVE_LWPSTATUS_T 1" >>confdefs.h
16987
16988 fi
16989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpstatus_t" >&5
16990$as_echo "$bfd_cv_have_sys_procfs_type_lwpstatus_t" >&6; }
16991
16992
16993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpxstatus_t in sys/procfs.h" >&5
16994$as_echo_n "checking for lwpxstatus_t in sys/procfs.h... " >&6; }
16995 if ${bfd_cv_have_sys_procfs_type_lwpxstatus_t+:} false; then :
16996  $as_echo_n "(cached) " >&6
16997else
16998  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16999/* end confdefs.h.  */
17000
17001#define _SYSCALL32
17002#include <sys/procfs.h>
17003int
17004main ()
17005{
17006lwpxstatus_t avar
17007  ;
17008  return 0;
17009}
17010_ACEOF
17011if ac_fn_c_try_compile "$LINENO"; then :
17012  bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes
17013else
17014  bfd_cv_have_sys_procfs_type_lwpxstatus_t=no
17015
17016fi
17017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17018fi
17019
17020 if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then
17021
17022$as_echo "#define HAVE_LWPXSTATUS_T 1" >>confdefs.h
17023
17024 fi
17025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&5
17026$as_echo "$bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&6; }
17027
17028
17029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
17030$as_echo_n "checking for lwpstatus_t.pr_context in sys/procfs.h... " >&6; }
17031 if ${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context+:} false; then :
17032  $as_echo_n "(cached) " >&6
17033else
17034  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17035/* end confdefs.h.  */
17036
17037#define _SYSCALL32
17038#include <sys/procfs.h>
17039int
17040main ()
17041{
17042lwpstatus_t avar; void* aref = (void*) &avar.pr_context
17043  ;
17044  return 0;
17045}
17046_ACEOF
17047if ac_fn_c_try_compile "$LINENO"; then :
17048  bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes
17049else
17050  bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no
17051
17052fi
17053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17054fi
17055
17056 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
17057
17058$as_echo "#define HAVE_LWPSTATUS_T_PR_CONTEXT 1" >>confdefs.h
17059
17060 fi
17061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&5
17062$as_echo "$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&6; }
17063
17064
17065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
17066$as_echo_n "checking for lwpstatus_t.pr_reg in sys/procfs.h... " >&6; }
17067 if ${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg+:} false; then :
17068  $as_echo_n "(cached) " >&6
17069else
17070  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17071/* end confdefs.h.  */
17072
17073#define _SYSCALL32
17074#include <sys/procfs.h>
17075int
17076main ()
17077{
17078lwpstatus_t avar; void* aref = (void*) &avar.pr_reg
17079  ;
17080  return 0;
17081}
17082_ACEOF
17083if ac_fn_c_try_compile "$LINENO"; then :
17084  bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes
17085else
17086  bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no
17087
17088fi
17089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17090fi
17091
17092 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
17093
17094$as_echo "#define HAVE_LWPSTATUS_T_PR_REG 1" >>confdefs.h
17095
17096 fi
17097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&5
17098$as_echo "$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&6; }
17099
17100
17101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpstatus_t.pr_fpreg in sys/procfs.h" >&5
17102$as_echo_n "checking for lwpstatus_t.pr_fpreg in sys/procfs.h... " >&6; }
17103 if ${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg+:} false; then :
17104  $as_echo_n "(cached) " >&6
17105else
17106  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17107/* end confdefs.h.  */
17108
17109#define _SYSCALL32
17110#include <sys/procfs.h>
17111int
17112main ()
17113{
17114lwpstatus_t avar; void* aref = (void*) &avar.pr_fpreg
17115  ;
17116  return 0;
17117}
17118_ACEOF
17119if ac_fn_c_try_compile "$LINENO"; then :
17120  bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg=yes
17121else
17122  bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg=no
17123
17124fi
17125rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17126fi
17127
17128 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg = yes; then
17129
17130$as_echo "#define HAVE_LWPSTATUS_T_PR_FPREG 1" >>confdefs.h
17131
17132 fi
17133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg" >&5
17134$as_echo "$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg" >&6; }
17135
17136
17137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for win32_pstatus_t in sys/procfs.h" >&5
17138$as_echo_n "checking for win32_pstatus_t in sys/procfs.h... " >&6; }
17139 if ${bfd_cv_have_sys_procfs_type_win32_pstatus_t+:} false; then :
17140  $as_echo_n "(cached) " >&6
17141else
17142  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17143/* end confdefs.h.  */
17144
17145#define _SYSCALL32
17146#include <sys/procfs.h>
17147int
17148main ()
17149{
17150win32_pstatus_t avar
17151  ;
17152  return 0;
17153}
17154_ACEOF
17155if ac_fn_c_try_compile "$LINENO"; then :
17156  bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes
17157else
17158  bfd_cv_have_sys_procfs_type_win32_pstatus_t=no
17159
17160fi
17161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17162fi
17163
17164 if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then
17165
17166$as_echo "#define HAVE_WIN32_PSTATUS_T 1" >>confdefs.h
17167
17168 fi
17169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&5
17170$as_echo "$bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&6; }
17171
17172  fi
17173fi
17174
17175
17176if test -n "$CORE_HEADER"; then
17177
17178cat >>confdefs.h <<_ACEOF
17179#define CORE_HEADER $CORE_HEADER
17180_ACEOF
17181
17182fi
17183if test -n "$TRAD_HEADER"; then
17184
17185cat >>confdefs.h <<_ACEOF
17186#define TRAD_HEADER $TRAD_HEADER
17187_ACEOF
17188
17189fi
17190
17191if test "$plugins" = "yes"; then
17192  supports_plugins=1
17193else
17194  supports_plugins=0
17195fi
17196
17197
17198
17199# Determine the host dependent file_ptr a.k.a. off_t type.  In order
17200# prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and
17201# fseeko, long.  This assumes that sizeof off_t is .ge. sizeof long.
17202# Hopefully a reasonable assumption since fseeko et.al. should be
17203# upward compatible.
17204for ac_func in ftello ftello64 fseeko fseeko64 fopen64
17205do :
17206  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17207ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17208if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17209  cat >>confdefs.h <<_ACEOF
17210#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17211_ACEOF
17212
17213fi
17214done
17215
17216ac_fn_c_check_decl "$LINENO" "ftello" "ac_cv_have_decl_ftello" "$ac_includes_default"
17217if test "x$ac_cv_have_decl_ftello" = xyes; then :
17218  ac_have_decl=1
17219else
17220  ac_have_decl=0
17221fi
17222
17223cat >>confdefs.h <<_ACEOF
17224#define HAVE_DECL_FTELLO $ac_have_decl
17225_ACEOF
17226ac_fn_c_check_decl "$LINENO" "ftello64" "ac_cv_have_decl_ftello64" "$ac_includes_default"
17227if test "x$ac_cv_have_decl_ftello64" = xyes; then :
17228  ac_have_decl=1
17229else
17230  ac_have_decl=0
17231fi
17232
17233cat >>confdefs.h <<_ACEOF
17234#define HAVE_DECL_FTELLO64 $ac_have_decl
17235_ACEOF
17236ac_fn_c_check_decl "$LINENO" "fseeko" "ac_cv_have_decl_fseeko" "$ac_includes_default"
17237if test "x$ac_cv_have_decl_fseeko" = xyes; then :
17238  ac_have_decl=1
17239else
17240  ac_have_decl=0
17241fi
17242
17243cat >>confdefs.h <<_ACEOF
17244#define HAVE_DECL_FSEEKO $ac_have_decl
17245_ACEOF
17246ac_fn_c_check_decl "$LINENO" "fseeko64" "ac_cv_have_decl_fseeko64" "$ac_includes_default"
17247if test "x$ac_cv_have_decl_fseeko64" = xyes; then :
17248  ac_have_decl=1
17249else
17250  ac_have_decl=0
17251fi
17252
17253cat >>confdefs.h <<_ACEOF
17254#define HAVE_DECL_FSEEKO64 $ac_have_decl
17255_ACEOF
17256ac_fn_c_check_decl "$LINENO" "fopen64" "ac_cv_have_decl_fopen64" "$ac_includes_default"
17257if test "x$ac_cv_have_decl_fopen64" = xyes; then :
17258  ac_have_decl=1
17259else
17260  ac_have_decl=0
17261fi
17262
17263cat >>confdefs.h <<_ACEOF
17264#define HAVE_DECL_FOPEN64 $ac_have_decl
17265_ACEOF
17266
17267if test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then
17268    # The cast to long int works around a bug in the HP C Compiler
17269# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17270# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17271# This bug is HP SR number 8606223364.
17272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
17273$as_echo_n "checking size of off_t... " >&6; }
17274if ${ac_cv_sizeof_off_t+:} false; then :
17275  $as_echo_n "(cached) " >&6
17276else
17277  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        "$ac_includes_default"; then :
17278
17279else
17280  if test "$ac_cv_type_off_t" = yes; then
17281     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17282$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17283as_fn_error 77 "cannot compute sizeof (off_t)
17284See \`config.log' for more details" "$LINENO" 5; }
17285   else
17286     ac_cv_sizeof_off_t=0
17287   fi
17288fi
17289
17290fi
17291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
17292$as_echo "$ac_cv_sizeof_off_t" >&6; }
17293
17294
17295
17296cat >>confdefs.h <<_ACEOF
17297#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
17298_ACEOF
17299
17300
17301fi
17302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking file_ptr type" >&5
17303$as_echo_n "checking file_ptr type... " >&6; }
17304bfd_file_ptr="long"
17305bfd_ufile_ptr="unsigned long"
17306if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \
17307	-o x"${ac_cv_sizeof_off_t}" = x8; then
17308    bfd_file_ptr=int64_t
17309    bfd_ufile_ptr=uint64_t
17310fi
17311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_file_ptr" >&5
17312$as_echo "$bfd_file_ptr" >&6; }
17313
17314
17315
17316
17317
17318
17319  for ac_header in $ac_header_list
17320do :
17321  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17322ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
17323"
17324if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17325  cat >>confdefs.h <<_ACEOF
17326#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17327_ACEOF
17328
17329fi
17330
17331done
17332
17333
17334
17335
17336
17337
17338
17339save_ASAN_OPTIONS="$ASAN_OPTIONS"
17340  ASAN_OPTIONS=detect_leaks=0
17341  export ASAN_OPTIONS
17342
17343for ac_func in getpagesize
17344do :
17345  ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
17346if test "x$ac_cv_func_getpagesize" = xyes; then :
17347  cat >>confdefs.h <<_ACEOF
17348#define HAVE_GETPAGESIZE 1
17349_ACEOF
17350
17351fi
17352done
17353
17354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
17355$as_echo_n "checking for working mmap... " >&6; }
17356if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
17357  $as_echo_n "(cached) " >&6
17358else
17359  if test "$cross_compiling" = yes; then :
17360  ac_cv_func_mmap_fixed_mapped=no
17361else
17362  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17363/* end confdefs.h.  */
17364$ac_includes_default
17365/* malloc might have been renamed as rpl_malloc. */
17366#undef malloc
17367
17368/* Thanks to Mike Haertel and Jim Avera for this test.
17369   Here is a matrix of mmap possibilities:
17370	mmap private not fixed
17371	mmap private fixed at somewhere currently unmapped
17372	mmap private fixed at somewhere already mapped
17373	mmap shared not fixed
17374	mmap shared fixed at somewhere currently unmapped
17375	mmap shared fixed at somewhere already mapped
17376   For private mappings, we should verify that changes cannot be read()
17377   back from the file, nor mmap's back from the file at a different
17378   address.  (There have been systems where private was not correctly
17379   implemented like the infamous i386 svr4.0, and systems where the
17380   VM page cache was not coherent with the file system buffer cache
17381   like early versions of FreeBSD and possibly contemporary NetBSD.)
17382   For shared mappings, we should conversely verify that changes get
17383   propagated back to all the places they're supposed to be.
17384
17385   Grep wants private fixed already mapped.
17386   The main things grep needs to know about mmap are:
17387   * does it exist and is it safe to write into the mmap'd area
17388   * how to use it (BSD variants)  */
17389
17390#include <fcntl.h>
17391#include <sys/mman.h>
17392
17393#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
17394char *malloc ();
17395#endif
17396
17397/* This mess was copied from the GNU getpagesize.h.  */
17398#ifndef HAVE_GETPAGESIZE
17399# ifdef _SC_PAGESIZE
17400#  define getpagesize() sysconf(_SC_PAGESIZE)
17401# else /* no _SC_PAGESIZE */
17402#  ifdef HAVE_SYS_PARAM_H
17403#   include <sys/param.h>
17404#   ifdef EXEC_PAGESIZE
17405#    define getpagesize() EXEC_PAGESIZE
17406#   else /* no EXEC_PAGESIZE */
17407#    ifdef NBPG
17408#     define getpagesize() NBPG * CLSIZE
17409#     ifndef CLSIZE
17410#      define CLSIZE 1
17411#     endif /* no CLSIZE */
17412#    else /* no NBPG */
17413#     ifdef NBPC
17414#      define getpagesize() NBPC
17415#     else /* no NBPC */
17416#      ifdef PAGESIZE
17417#       define getpagesize() PAGESIZE
17418#      endif /* PAGESIZE */
17419#     endif /* no NBPC */
17420#    endif /* no NBPG */
17421#   endif /* no EXEC_PAGESIZE */
17422#  else /* no HAVE_SYS_PARAM_H */
17423#   define getpagesize() 8192	/* punt totally */
17424#  endif /* no HAVE_SYS_PARAM_H */
17425# endif /* no _SC_PAGESIZE */
17426
17427#endif /* no HAVE_GETPAGESIZE */
17428
17429int
17430main ()
17431{
17432  char *data, *data2, *data3;
17433  const char *cdata2;
17434  int i, pagesize;
17435  int fd, fd2;
17436
17437  pagesize = getpagesize ();
17438
17439  /* First, make a file with some known garbage in it. */
17440  data = (char *) malloc (pagesize);
17441  if (!data)
17442    return 1;
17443  for (i = 0; i < pagesize; ++i)
17444    *(data + i) = rand ();
17445  umask (0);
17446  fd = creat ("conftest.mmap", 0600);
17447  if (fd < 0)
17448    return 2;
17449  if (write (fd, data, pagesize) != pagesize)
17450    return 3;
17451  close (fd);
17452
17453  /* Next, check that the tail of a page is zero-filled.  File must have
17454     non-zero length, otherwise we risk SIGBUS for entire page.  */
17455  fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
17456  if (fd2 < 0)
17457    return 4;
17458  cdata2 = "";
17459  if (write (fd2, cdata2, 1) != 1)
17460    return 5;
17461  data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
17462  if (data2 == MAP_FAILED)
17463    return 6;
17464  for (i = 0; i < pagesize; ++i)
17465    if (*(data2 + i))
17466      return 7;
17467  close (fd2);
17468  if (munmap (data2, pagesize))
17469    return 8;
17470
17471  /* Next, try to mmap the file at a fixed address which already has
17472     something else allocated at it.  If we can, also make sure that
17473     we see the same garbage.  */
17474  fd = open ("conftest.mmap", O_RDWR);
17475  if (fd < 0)
17476    return 9;
17477  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
17478		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
17479    return 10;
17480  for (i = 0; i < pagesize; ++i)
17481    if (*(data + i) != *(data2 + i))
17482      return 11;
17483
17484  /* Finally, make sure that changes to the mapped area do not
17485     percolate back to the file as seen by read().  (This is a bug on
17486     some variants of i386 svr4.0.)  */
17487  for (i = 0; i < pagesize; ++i)
17488    *(data2 + i) = *(data2 + i) + 1;
17489  data3 = (char *) malloc (pagesize);
17490  if (!data3)
17491    return 12;
17492  if (read (fd, data3, pagesize) != pagesize)
17493    return 13;
17494  for (i = 0; i < pagesize; ++i)
17495    if (*(data + i) != *(data3 + i))
17496      return 14;
17497  close (fd);
17498  return 0;
17499}
17500_ACEOF
17501if ac_fn_c_try_run "$LINENO"; then :
17502  ac_cv_func_mmap_fixed_mapped=yes
17503else
17504  ac_cv_func_mmap_fixed_mapped=no
17505fi
17506rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17507  conftest.$ac_objext conftest.beam conftest.$ac_ext
17508fi
17509
17510fi
17511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
17512$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
17513if test $ac_cv_func_mmap_fixed_mapped = yes; then
17514
17515$as_echo "#define HAVE_MMAP 1" >>confdefs.h
17516
17517fi
17518rm -f conftest.mmap conftest.txt
17519
17520  ASAN_OPTIONS="$save_ASAN_OPTIONS"
17521
17522for ac_func in madvise mprotect
17523do :
17524  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17525ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17526if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17527  cat >>confdefs.h <<_ACEOF
17528#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17529_ACEOF
17530
17531fi
17532done
17533
17534case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
17535  true+yes )
17536$as_echo "#define USE_MMAP 1" >>confdefs.h
17537 ;;
17538esac
17539
17540ac_config_files="$ac_config_files Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in"
17541
17542
17543ac_config_commands="$ac_config_commands default"
17544
17545
17546
17547
17548
17549
17550
17551cat >confcache <<\_ACEOF
17552# This file is a shell script that caches the results of configure
17553# tests run on this system so they can be shared between configure
17554# scripts and configure runs, see configure's option --config-cache.
17555# It is not useful on other systems.  If it contains results you don't
17556# want to keep, you may remove or edit it.
17557#
17558# config.status only pays attention to the cache file if you give it
17559# the --recheck option to rerun configure.
17560#
17561# `ac_cv_env_foo' variables (set or unset) will be overridden when
17562# loading this file, other *unset* `ac_cv_foo' will be assigned the
17563# following values.
17564
17565_ACEOF
17566
17567# The following way of writing the cache mishandles newlines in values,
17568# but we know of no workaround that is simple, portable, and efficient.
17569# So, we kill variables containing newlines.
17570# Ultrix sh set writes to stderr and can't be redirected directly,
17571# and sets the high bit in the cache file unless we assign to the vars.
17572(
17573  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17574    eval ac_val=\$$ac_var
17575    case $ac_val in #(
17576    *${as_nl}*)
17577      case $ac_var in #(
17578      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17579$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17580      esac
17581      case $ac_var in #(
17582      _ | IFS | as_nl) ;; #(
17583      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17584      *) { eval $ac_var=; unset $ac_var;} ;;
17585      esac ;;
17586    esac
17587  done
17588
17589  (set) 2>&1 |
17590    case $as_nl`(ac_space=' '; set) 2>&1` in #(
17591    *${as_nl}ac_space=\ *)
17592      # `set' does not quote correctly, so add quotes: double-quote
17593      # substitution turns \\\\ into \\, and sed turns \\ into \.
17594      sed -n \
17595	"s/'/'\\\\''/g;
17596	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17597      ;; #(
17598    *)
17599      # `set' quotes correctly as required by POSIX, so do not add quotes.
17600      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17601      ;;
17602    esac |
17603    sort
17604) |
17605  sed '
17606     /^ac_cv_env_/b end
17607     t clear
17608     :clear
17609     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17610     t end
17611     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17612     :end' >>confcache
17613if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17614  if test -w "$cache_file"; then
17615    if test "x$cache_file" != "x/dev/null"; then
17616      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17617$as_echo "$as_me: updating cache $cache_file" >&6;}
17618      if test ! -f "$cache_file" || test -h "$cache_file"; then
17619	cat confcache >"$cache_file"
17620      else
17621        case $cache_file in #(
17622        */* | ?:*)
17623	  mv -f confcache "$cache_file"$$ &&
17624	  mv -f "$cache_file"$$ "$cache_file" ;; #(
17625        *)
17626	  mv -f confcache "$cache_file" ;;
17627	esac
17628      fi
17629    fi
17630  else
17631    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17632$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17633  fi
17634fi
17635rm -f confcache
17636
17637test "x$prefix" = xNONE && prefix=$ac_default_prefix
17638# Let make expand exec_prefix.
17639test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17640
17641DEFS=-DHAVE_CONFIG_H
17642
17643ac_libobjs=
17644ac_ltlibobjs=
17645U=
17646for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17647  # 1. Remove the extension, and $U if already installed.
17648  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17649  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17650  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
17651  #    will be set to the directory where LIBOBJS objects are built.
17652  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17653  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17654done
17655LIBOBJS=$ac_libobjs
17656
17657LTLIBOBJS=$ac_ltlibobjs
17658
17659
17660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17661$as_echo_n "checking that generated files are newer than configure... " >&6; }
17662   if test -n "$am_sleep_pid"; then
17663     # Hide warnings about reused PIDs.
17664     wait $am_sleep_pid 2>/dev/null
17665   fi
17666   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17667$as_echo "done" >&6; }
17668 if test -n "$EXEEXT"; then
17669  am__EXEEXT_TRUE=
17670  am__EXEEXT_FALSE='#'
17671else
17672  am__EXEEXT_TRUE='#'
17673  am__EXEEXT_FALSE=
17674fi
17675
17676if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17677  as_fn_error $? "conditional \"AMDEP\" was never defined.
17678Usually this means the macro was only invoked conditionally." "$LINENO" 5
17679fi
17680if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17681  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17682Usually this means the macro was only invoked conditionally." "$LINENO" 5
17683fi
17684if test -z "${PLUGINS_TRUE}" && test -z "${PLUGINS_FALSE}"; then
17685  as_fn_error $? "conditional \"PLUGINS\" was never defined.
17686Usually this means the macro was only invoked conditionally." "$LINENO" 5
17687fi
17688if test -z "${ENABLE_BFD_64_BIT_TRUE}" && test -z "${ENABLE_BFD_64_BIT_FALSE}"; then
17689  as_fn_error $? "conditional \"ENABLE_BFD_64_BIT\" was never defined.
17690Usually this means the macro was only invoked conditionally." "$LINENO" 5
17691fi
17692if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17693  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
17694Usually this means the macro was only invoked conditionally." "$LINENO" 5
17695fi
17696if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
17697  as_fn_error $? "conditional \"GENINSRC_NEVER\" was never defined.
17698Usually this means the macro was only invoked conditionally." "$LINENO" 5
17699fi
17700if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then
17701  as_fn_error $? "conditional \"INSTALL_LIBBFD\" was never defined.
17702Usually this means the macro was only invoked conditionally." "$LINENO" 5
17703fi
17704
17705
17706: "${CONFIG_STATUS=./config.status}"
17707ac_write_fail=0
17708ac_clean_files_save=$ac_clean_files
17709ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17710{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17711$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17712as_write_fail=0
17713cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17714#! $SHELL
17715# Generated by $as_me.
17716# Run this file to recreate the current configuration.
17717# Compiler output produced by configure, useful for debugging
17718# configure, is in config.log if it exists.
17719
17720debug=false
17721ac_cs_recheck=false
17722ac_cs_silent=false
17723
17724SHELL=\${CONFIG_SHELL-$SHELL}
17725export SHELL
17726_ASEOF
17727cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17728## -------------------- ##
17729## M4sh Initialization. ##
17730## -------------------- ##
17731
17732# Be more Bourne compatible
17733DUALCASE=1; export DUALCASE # for MKS sh
17734if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17735  emulate sh
17736  NULLCMD=:
17737  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17738  # is contrary to our usage.  Disable this feature.
17739  alias -g '${1+"$@"}'='"$@"'
17740  setopt NO_GLOB_SUBST
17741else
17742  case `(set -o) 2>/dev/null` in #(
17743  *posix*) :
17744    set -o posix ;; #(
17745  *) :
17746     ;;
17747esac
17748fi
17749
17750
17751as_nl='
17752'
17753export as_nl
17754# Printing a long string crashes Solaris 7 /usr/bin/printf.
17755as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17756as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17757as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17758# Prefer a ksh shell builtin over an external printf program on Solaris,
17759# but without wasting forks for bash or zsh.
17760if test -z "$BASH_VERSION$ZSH_VERSION" \
17761    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17762  as_echo='print -r --'
17763  as_echo_n='print -rn --'
17764elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17765  as_echo='printf %s\n'
17766  as_echo_n='printf %s'
17767else
17768  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17769    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17770    as_echo_n='/usr/ucb/echo -n'
17771  else
17772    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17773    as_echo_n_body='eval
17774      arg=$1;
17775      case $arg in #(
17776      *"$as_nl"*)
17777	expr "X$arg" : "X\\(.*\\)$as_nl";
17778	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17779      esac;
17780      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17781    '
17782    export as_echo_n_body
17783    as_echo_n='sh -c $as_echo_n_body as_echo'
17784  fi
17785  export as_echo_body
17786  as_echo='sh -c $as_echo_body as_echo'
17787fi
17788
17789# The user is always right.
17790if test "${PATH_SEPARATOR+set}" != set; then
17791  PATH_SEPARATOR=:
17792  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17793    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17794      PATH_SEPARATOR=';'
17795  }
17796fi
17797
17798
17799# IFS
17800# We need space, tab and new line, in precisely that order.  Quoting is
17801# there to prevent editors from complaining about space-tab.
17802# (If _AS_PATH_WALK were called with IFS unset, it would disable word
17803# splitting by setting IFS to empty value.)
17804IFS=" ""	$as_nl"
17805
17806# Find who we are.  Look in the path if we contain no directory separator.
17807as_myself=
17808case $0 in #((
17809  *[\\/]* ) as_myself=$0 ;;
17810  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17811for as_dir in $PATH
17812do
17813  IFS=$as_save_IFS
17814  test -z "$as_dir" && as_dir=.
17815    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17816  done
17817IFS=$as_save_IFS
17818
17819     ;;
17820esac
17821# We did not find ourselves, most probably we were run as `sh COMMAND'
17822# in which case we are not to be found in the path.
17823if test "x$as_myself" = x; then
17824  as_myself=$0
17825fi
17826if test ! -f "$as_myself"; then
17827  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17828  exit 1
17829fi
17830
17831# Unset variables that we do not need and which cause bugs (e.g. in
17832# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
17833# suppresses any "Segmentation fault" message there.  '((' could
17834# trigger a bug in pdksh 5.2.14.
17835for as_var in BASH_ENV ENV MAIL MAILPATH
17836do eval test x\${$as_var+set} = xset \
17837  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17838done
17839PS1='$ '
17840PS2='> '
17841PS4='+ '
17842
17843# NLS nuisances.
17844LC_ALL=C
17845export LC_ALL
17846LANGUAGE=C
17847export LANGUAGE
17848
17849# CDPATH.
17850(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17851
17852
17853# as_fn_error STATUS ERROR [LINENO LOG_FD]
17854# ----------------------------------------
17855# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17856# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17857# script with STATUS, using 1 if that was 0.
17858as_fn_error ()
17859{
17860  as_status=$1; test $as_status -eq 0 && as_status=1
17861  if test "$4"; then
17862    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17863    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17864  fi
17865  $as_echo "$as_me: error: $2" >&2
17866  as_fn_exit $as_status
17867} # as_fn_error
17868
17869
17870# as_fn_set_status STATUS
17871# -----------------------
17872# Set $? to STATUS, without forking.
17873as_fn_set_status ()
17874{
17875  return $1
17876} # as_fn_set_status
17877
17878# as_fn_exit STATUS
17879# -----------------
17880# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17881as_fn_exit ()
17882{
17883  set +e
17884  as_fn_set_status $1
17885  exit $1
17886} # as_fn_exit
17887
17888# as_fn_unset VAR
17889# ---------------
17890# Portably unset VAR.
17891as_fn_unset ()
17892{
17893  { eval $1=; unset $1;}
17894}
17895as_unset=as_fn_unset
17896# as_fn_append VAR VALUE
17897# ----------------------
17898# Append the text in VALUE to the end of the definition contained in VAR. Take
17899# advantage of any shell optimizations that allow amortized linear growth over
17900# repeated appends, instead of the typical quadratic growth present in naive
17901# implementations.
17902if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17903  eval 'as_fn_append ()
17904  {
17905    eval $1+=\$2
17906  }'
17907else
17908  as_fn_append ()
17909  {
17910    eval $1=\$$1\$2
17911  }
17912fi # as_fn_append
17913
17914# as_fn_arith ARG...
17915# ------------------
17916# Perform arithmetic evaluation on the ARGs, and store the result in the
17917# global $as_val. Take advantage of shells that can avoid forks. The arguments
17918# must be portable across $(()) and expr.
17919if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17920  eval 'as_fn_arith ()
17921  {
17922    as_val=$(( $* ))
17923  }'
17924else
17925  as_fn_arith ()
17926  {
17927    as_val=`expr "$@" || test $? -eq 1`
17928  }
17929fi # as_fn_arith
17930
17931
17932if expr a : '\(a\)' >/dev/null 2>&1 &&
17933   test "X`expr 00001 : '.*\(...\)'`" = X001; then
17934  as_expr=expr
17935else
17936  as_expr=false
17937fi
17938
17939if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17940  as_basename=basename
17941else
17942  as_basename=false
17943fi
17944
17945if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17946  as_dirname=dirname
17947else
17948  as_dirname=false
17949fi
17950
17951as_me=`$as_basename -- "$0" ||
17952$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17953	 X"$0" : 'X\(//\)$' \| \
17954	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17955$as_echo X/"$0" |
17956    sed '/^.*\/\([^/][^/]*\)\/*$/{
17957	    s//\1/
17958	    q
17959	  }
17960	  /^X\/\(\/\/\)$/{
17961	    s//\1/
17962	    q
17963	  }
17964	  /^X\/\(\/\).*/{
17965	    s//\1/
17966	    q
17967	  }
17968	  s/.*/./; q'`
17969
17970# Avoid depending upon Character Ranges.
17971as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17972as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17973as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17974as_cr_digits='0123456789'
17975as_cr_alnum=$as_cr_Letters$as_cr_digits
17976
17977ECHO_C= ECHO_N= ECHO_T=
17978case `echo -n x` in #(((((
17979-n*)
17980  case `echo 'xy\c'` in
17981  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
17982  xy)  ECHO_C='\c';;
17983  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
17984       ECHO_T='	';;
17985  esac;;
17986*)
17987  ECHO_N='-n';;
17988esac
17989
17990rm -f conf$$ conf$$.exe conf$$.file
17991if test -d conf$$.dir; then
17992  rm -f conf$$.dir/conf$$.file
17993else
17994  rm -f conf$$.dir
17995  mkdir conf$$.dir 2>/dev/null
17996fi
17997if (echo >conf$$.file) 2>/dev/null; then
17998  if ln -s conf$$.file conf$$ 2>/dev/null; then
17999    as_ln_s='ln -s'
18000    # ... but there are two gotchas:
18001    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18002    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18003    # In both cases, we have to default to `cp -pR'.
18004    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18005      as_ln_s='cp -pR'
18006  elif ln conf$$.file conf$$ 2>/dev/null; then
18007    as_ln_s=ln
18008  else
18009    as_ln_s='cp -pR'
18010  fi
18011else
18012  as_ln_s='cp -pR'
18013fi
18014rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18015rmdir conf$$.dir 2>/dev/null
18016
18017
18018# as_fn_mkdir_p
18019# -------------
18020# Create "$as_dir" as a directory, including parents if necessary.
18021as_fn_mkdir_p ()
18022{
18023
18024  case $as_dir in #(
18025  -*) as_dir=./$as_dir;;
18026  esac
18027  test -d "$as_dir" || eval $as_mkdir_p || {
18028    as_dirs=
18029    while :; do
18030      case $as_dir in #(
18031      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18032      *) as_qdir=$as_dir;;
18033      esac
18034      as_dirs="'$as_qdir' $as_dirs"
18035      as_dir=`$as_dirname -- "$as_dir" ||
18036$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18037	 X"$as_dir" : 'X\(//\)[^/]' \| \
18038	 X"$as_dir" : 'X\(//\)$' \| \
18039	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18040$as_echo X"$as_dir" |
18041    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18042	    s//\1/
18043	    q
18044	  }
18045	  /^X\(\/\/\)[^/].*/{
18046	    s//\1/
18047	    q
18048	  }
18049	  /^X\(\/\/\)$/{
18050	    s//\1/
18051	    q
18052	  }
18053	  /^X\(\/\).*/{
18054	    s//\1/
18055	    q
18056	  }
18057	  s/.*/./; q'`
18058      test -d "$as_dir" && break
18059    done
18060    test -z "$as_dirs" || eval "mkdir $as_dirs"
18061  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18062
18063
18064} # as_fn_mkdir_p
18065if mkdir -p . 2>/dev/null; then
18066  as_mkdir_p='mkdir -p "$as_dir"'
18067else
18068  test -d ./-p && rmdir ./-p
18069  as_mkdir_p=false
18070fi
18071
18072
18073# as_fn_executable_p FILE
18074# -----------------------
18075# Test if FILE is an executable regular file.
18076as_fn_executable_p ()
18077{
18078  test -f "$1" && test -x "$1"
18079} # as_fn_executable_p
18080as_test_x='test -x'
18081as_executable_p=as_fn_executable_p
18082
18083# Sed expression to map a string onto a valid CPP name.
18084as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18085
18086# Sed expression to map a string onto a valid variable name.
18087as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18088
18089
18090exec 6>&1
18091## ----------------------------------- ##
18092## Main body of $CONFIG_STATUS script. ##
18093## ----------------------------------- ##
18094_ASEOF
18095test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18096
18097cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18098# Save the log message, to keep $0 and so on meaningful, and to
18099# report actual input values of CONFIG_FILES etc. instead of their
18100# values after options handling.
18101ac_log="
18102This file was extended by bfd $as_me 2.42.50, which was
18103generated by GNU Autoconf 2.69.  Invocation command line was
18104
18105  CONFIG_FILES    = $CONFIG_FILES
18106  CONFIG_HEADERS  = $CONFIG_HEADERS
18107  CONFIG_LINKS    = $CONFIG_LINKS
18108  CONFIG_COMMANDS = $CONFIG_COMMANDS
18109  $ $0 $@
18110
18111on `(hostname || uname -n) 2>/dev/null | sed 1q`
18112"
18113
18114_ACEOF
18115
18116case $ac_config_files in *"
18117"*) set x $ac_config_files; shift; ac_config_files=$*;;
18118esac
18119
18120case $ac_config_headers in *"
18121"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18122esac
18123
18124
18125cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18126# Files that config.status was made for.
18127config_files="$ac_config_files"
18128config_headers="$ac_config_headers"
18129config_commands="$ac_config_commands"
18130
18131_ACEOF
18132
18133cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18134ac_cs_usage="\
18135\`$as_me' instantiates files and other configuration actions
18136from templates according to the current configuration.  Unless the files
18137and actions are specified as TAGs, all are instantiated by default.
18138
18139Usage: $0 [OPTION]... [TAG]...
18140
18141  -h, --help       print this help, then exit
18142  -V, --version    print version number and configuration settings, then exit
18143      --config     print configuration, then exit
18144  -q, --quiet, --silent
18145                   do not print progress messages
18146  -d, --debug      don't remove temporary files
18147      --recheck    update $as_me by reconfiguring in the same conditions
18148      --file=FILE[:TEMPLATE]
18149                   instantiate the configuration file FILE
18150      --header=FILE[:TEMPLATE]
18151                   instantiate the configuration header FILE
18152
18153Configuration files:
18154$config_files
18155
18156Configuration headers:
18157$config_headers
18158
18159Configuration commands:
18160$config_commands
18161
18162Report bugs to the package provider."
18163
18164_ACEOF
18165cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18166ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18167ac_cs_version="\\
18168bfd config.status 2.42.50
18169configured by $0, generated by GNU Autoconf 2.69,
18170  with options \\"\$ac_cs_config\\"
18171
18172Copyright (C) 2012 Free Software Foundation, Inc.
18173This config.status script is free software; the Free Software Foundation
18174gives unlimited permission to copy, distribute and modify it."
18175
18176ac_pwd='$ac_pwd'
18177srcdir='$srcdir'
18178INSTALL='$INSTALL'
18179MKDIR_P='$MKDIR_P'
18180AWK='$AWK'
18181test -n "\$AWK" || AWK=awk
18182_ACEOF
18183
18184cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18185# The default lists apply if the user does not specify any file.
18186ac_need_defaults=:
18187while test $# != 0
18188do
18189  case $1 in
18190  --*=?*)
18191    ac_option=`expr "X$1" : 'X\([^=]*\)='`
18192    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18193    ac_shift=:
18194    ;;
18195  --*=)
18196    ac_option=`expr "X$1" : 'X\([^=]*\)='`
18197    ac_optarg=
18198    ac_shift=:
18199    ;;
18200  *)
18201    ac_option=$1
18202    ac_optarg=$2
18203    ac_shift=shift
18204    ;;
18205  esac
18206
18207  case $ac_option in
18208  # Handling of the options.
18209  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18210    ac_cs_recheck=: ;;
18211  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18212    $as_echo "$ac_cs_version"; exit ;;
18213  --config | --confi | --conf | --con | --co | --c )
18214    $as_echo "$ac_cs_config"; exit ;;
18215  --debug | --debu | --deb | --de | --d | -d )
18216    debug=: ;;
18217  --file | --fil | --fi | --f )
18218    $ac_shift
18219    case $ac_optarg in
18220    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18221    '') as_fn_error $? "missing file argument" ;;
18222    esac
18223    as_fn_append CONFIG_FILES " '$ac_optarg'"
18224    ac_need_defaults=false;;
18225  --header | --heade | --head | --hea )
18226    $ac_shift
18227    case $ac_optarg in
18228    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18229    esac
18230    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18231    ac_need_defaults=false;;
18232  --he | --h)
18233    # Conflict between --help and --header
18234    as_fn_error $? "ambiguous option: \`$1'
18235Try \`$0 --help' for more information.";;
18236  --help | --hel | -h )
18237    $as_echo "$ac_cs_usage"; exit ;;
18238  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18239  | -silent | --silent | --silen | --sile | --sil | --si | --s)
18240    ac_cs_silent=: ;;
18241
18242  # This is an error.
18243  -*) as_fn_error $? "unrecognized option: \`$1'
18244Try \`$0 --help' for more information." ;;
18245
18246  *) as_fn_append ac_config_targets " $1"
18247     ac_need_defaults=false ;;
18248
18249  esac
18250  shift
18251done
18252
18253ac_configure_extra_args=
18254
18255if $ac_cs_silent; then
18256  exec 6>/dev/null
18257  ac_configure_extra_args="$ac_configure_extra_args --silent"
18258fi
18259
18260_ACEOF
18261cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18262if \$ac_cs_recheck; then
18263  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18264  shift
18265  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18266  CONFIG_SHELL='$SHELL'
18267  export CONFIG_SHELL
18268  exec "\$@"
18269fi
18270
18271_ACEOF
18272cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18273exec 5>>config.log
18274{
18275  echo
18276  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18277## Running $as_me. ##
18278_ASBOX
18279  $as_echo "$ac_log"
18280} >&5
18281
18282_ACEOF
18283cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18284#
18285# INIT-COMMANDS
18286#
18287AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18288
18289
18290# The HP-UX ksh and POSIX shell print the target directory to stdout
18291# if CDPATH is set.
18292(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18293
18294sed_quote_subst='$sed_quote_subst'
18295double_quote_subst='$double_quote_subst'
18296delay_variable_subst='$delay_variable_subst'
18297enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18298macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18299macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18300enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18301pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18302enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18303SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18304ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18305host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18306host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18307host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18308build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18309build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18310build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18311SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18312Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18313GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18314EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18315FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18316LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18317NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18318LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18319max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18320ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18321exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18322lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18323lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18324lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18325reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18326reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18327OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18328deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18329file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18330AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18331AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18332STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18333RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18334old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18335old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18336old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18337lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18338CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18339CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18340compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18341GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18342lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18343lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18344lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18345lt_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"`'
18346objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18347MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18348lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18349lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18350lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18351lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18352lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18353need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18354DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18355NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18356LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18357OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18358OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18359libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18360shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18361extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18362archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18363enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18364export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18365whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18366compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18367old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18368old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18369archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18370archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18371module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18372module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18373with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18374allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18375no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18376hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18377hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
18378hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18379hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18380hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18381hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18382hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18383hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18384inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18385link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18386fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
18387always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18388export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18389exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18390include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18391prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18392file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18393variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18394need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18395need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18396version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18397runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18398shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18399shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18400libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18401library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18402soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18403install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18404postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18405postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18406finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18407finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18408hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18409sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18410sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18411hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18412enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18413enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18414enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18415old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18416striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18417
18418LTCC='$LTCC'
18419LTCFLAGS='$LTCFLAGS'
18420compiler='$compiler_DEFAULT'
18421
18422# A function that is used when there is no print builtin or printf.
18423func_fallback_echo ()
18424{
18425  eval 'cat <<_LTECHO_EOF
18426\$1
18427_LTECHO_EOF'
18428}
18429
18430# Quote evaled strings.
18431for var in SHELL \
18432ECHO \
18433SED \
18434GREP \
18435EGREP \
18436FGREP \
18437LD \
18438NM \
18439LN_S \
18440lt_SP2NL \
18441lt_NL2SP \
18442reload_flag \
18443OBJDUMP \
18444deplibs_check_method \
18445file_magic_cmd \
18446AR \
18447AR_FLAGS \
18448STRIP \
18449RANLIB \
18450CC \
18451CFLAGS \
18452compiler \
18453lt_cv_sys_global_symbol_pipe \
18454lt_cv_sys_global_symbol_to_cdecl \
18455lt_cv_sys_global_symbol_to_c_name_address \
18456lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18457lt_prog_compiler_no_builtin_flag \
18458lt_prog_compiler_wl \
18459lt_prog_compiler_pic \
18460lt_prog_compiler_static \
18461lt_cv_prog_compiler_c_o \
18462need_locks \
18463DSYMUTIL \
18464NMEDIT \
18465LIPO \
18466OTOOL \
18467OTOOL64 \
18468shrext_cmds \
18469export_dynamic_flag_spec \
18470whole_archive_flag_spec \
18471compiler_needs_object \
18472with_gnu_ld \
18473allow_undefined_flag \
18474no_undefined_flag \
18475hardcode_libdir_flag_spec \
18476hardcode_libdir_flag_spec_ld \
18477hardcode_libdir_separator \
18478fix_srcfile_path \
18479exclude_expsyms \
18480include_expsyms \
18481file_list_spec \
18482variables_saved_for_relink \
18483libname_spec \
18484library_names_spec \
18485soname_spec \
18486install_override_mode \
18487finish_eval \
18488old_striplib \
18489striplib; do
18490    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18491    *[\\\\\\\`\\"\\\$]*)
18492      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18493      ;;
18494    *)
18495      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18496      ;;
18497    esac
18498done
18499
18500# Double-quote double-evaled strings.
18501for var in reload_cmds \
18502old_postinstall_cmds \
18503old_postuninstall_cmds \
18504old_archive_cmds \
18505extract_expsyms_cmds \
18506old_archive_from_new_cmds \
18507old_archive_from_expsyms_cmds \
18508archive_cmds \
18509archive_expsym_cmds \
18510module_cmds \
18511module_expsym_cmds \
18512export_symbols_cmds \
18513prelink_cmds \
18514postinstall_cmds \
18515postuninstall_cmds \
18516finish_cmds \
18517sys_lib_search_path_spec \
18518sys_lib_dlsearch_path_spec; do
18519    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18520    *[\\\\\\\`\\"\\\$]*)
18521      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18522      ;;
18523    *)
18524      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18525      ;;
18526    esac
18527done
18528
18529ac_aux_dir='$ac_aux_dir'
18530xsi_shell='$xsi_shell'
18531lt_shell_append='$lt_shell_append'
18532
18533# See if we are running on zsh, and set the options which allow our
18534# commands through without removal of \ escapes INIT.
18535if test -n "\${ZSH_VERSION+set}" ; then
18536   setopt NO_GLOB_SUBST
18537fi
18538
18539
18540    PACKAGE='$PACKAGE'
18541    VERSION='$VERSION'
18542    TIMESTAMP='$TIMESTAMP'
18543    RM='$RM'
18544    ofile='$ofile'
18545
18546
18547
18548# Capture the value of obsolete ALL_LINGUAS because we need it to compute
18549    # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
18550    # from automake.
18551    eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
18552    # Capture the value of LINGUAS because we need it to compute CATALOGS.
18553    LINGUAS="${LINGUAS-%UNSET%}"
18554
18555# Capture the value of obsolete ALL_LINGUAS because we need it to compute
18556    # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
18557    # from automake.
18558    eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
18559    # Capture the value of LINGUAS because we need it to compute CATALOGS.
18560    LINGUAS="${LINGUAS-%UNSET%}"
18561
18562
18563
18564_ACEOF
18565
18566cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18567
18568# Handling of arguments.
18569for ac_config_target in $ac_config_targets
18570do
18571  case $ac_config_target in
18572    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18573    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18574    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
18575    "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
18576    "default-2") CONFIG_COMMANDS="$CONFIG_COMMANDS default-2" ;;
18577    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18578    "bfd-in3.h") CONFIG_FILES="$CONFIG_FILES bfd-in3.h:bfd-in2.h" ;;
18579    "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
18580    "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
18581
18582  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18583  esac
18584done
18585
18586
18587# If the user did not use the arguments to specify the items to instantiate,
18588# then the envvar interface is used.  Set only those that are not.
18589# We use the long form for the default assignment because of an extremely
18590# bizarre bug on SunOS 4.1.3.
18591if $ac_need_defaults; then
18592  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18593  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18594  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18595fi
18596
18597# Have a temporary directory for convenience.  Make it in the build tree
18598# simply because there is no reason against having it here, and in addition,
18599# creating and moving files from /tmp can sometimes cause problems.
18600# Hook for its removal unless debugging.
18601# Note that there is a small window in which the directory will not be cleaned:
18602# after its creation but before its name has been assigned to `$tmp'.
18603$debug ||
18604{
18605  tmp= ac_tmp=
18606  trap 'exit_status=$?
18607  : "${ac_tmp:=$tmp}"
18608  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18609' 0
18610  trap 'as_fn_exit 1' 1 2 13 15
18611}
18612# Create a (secure) tmp directory for tmp files.
18613
18614{
18615  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18616  test -d "$tmp"
18617}  ||
18618{
18619  tmp=./conf$$-$RANDOM
18620  (umask 077 && mkdir "$tmp")
18621} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18622ac_tmp=$tmp
18623
18624# Set up the scripts for CONFIG_FILES section.
18625# No need to generate them if there are no CONFIG_FILES.
18626# This happens for instance with `./config.status config.h'.
18627if test -n "$CONFIG_FILES"; then
18628
18629
18630ac_cr=`echo X | tr X '\015'`
18631# On cygwin, bash can eat \r inside `` if the user requested igncr.
18632# But we know of no other shell where ac_cr would be empty at this
18633# point, so we can use a bashism as a fallback.
18634if test "x$ac_cr" = x; then
18635  eval ac_cr=\$\'\\r\'
18636fi
18637ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18638if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18639  ac_cs_awk_cr='\\r'
18640else
18641  ac_cs_awk_cr=$ac_cr
18642fi
18643
18644echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18645_ACEOF
18646
18647
18648{
18649  echo "cat >conf$$subs.awk <<_ACEOF" &&
18650  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18651  echo "_ACEOF"
18652} >conf$$subs.sh ||
18653  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18654ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18655ac_delim='%!_!# '
18656for ac_last_try in false false false false false :; do
18657  . ./conf$$subs.sh ||
18658    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18659
18660  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18661  if test $ac_delim_n = $ac_delim_num; then
18662    break
18663  elif $ac_last_try; then
18664    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18665  else
18666    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18667  fi
18668done
18669rm -f conf$$subs.sh
18670
18671cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18672cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18673_ACEOF
18674sed -n '
18675h
18676s/^/S["/; s/!.*/"]=/
18677p
18678g
18679s/^[^!]*!//
18680:repl
18681t repl
18682s/'"$ac_delim"'$//
18683t delim
18684:nl
18685h
18686s/\(.\{148\}\)..*/\1/
18687t more1
18688s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18689p
18690n
18691b repl
18692:more1
18693s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18694p
18695g
18696s/.\{148\}//
18697t nl
18698:delim
18699h
18700s/\(.\{148\}\)..*/\1/
18701t more2
18702s/["\\]/\\&/g; s/^/"/; s/$/"/
18703p
18704b
18705:more2
18706s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18707p
18708g
18709s/.\{148\}//
18710t delim
18711' <conf$$subs.awk | sed '
18712/^[^""]/{
18713  N
18714  s/\n//
18715}
18716' >>$CONFIG_STATUS || ac_write_fail=1
18717rm -f conf$$subs.awk
18718cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18719_ACAWK
18720cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18721  for (key in S) S_is_set[key] = 1
18722  FS = ""
18723
18724}
18725{
18726  line = $ 0
18727  nfields = split(line, field, "@")
18728  substed = 0
18729  len = length(field[1])
18730  for (i = 2; i < nfields; i++) {
18731    key = field[i]
18732    keylen = length(key)
18733    if (S_is_set[key]) {
18734      value = S[key]
18735      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18736      len += length(value) + length(field[++i])
18737      substed = 1
18738    } else
18739      len += 1 + keylen
18740  }
18741
18742  print line
18743}
18744
18745_ACAWK
18746_ACEOF
18747cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18748if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18749  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18750else
18751  cat
18752fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18753  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18754_ACEOF
18755
18756# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18757# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18758# trailing colons and then remove the whole line if VPATH becomes empty
18759# (actually we leave an empty line to preserve line numbers).
18760if test "x$srcdir" = x.; then
18761  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
18762h
18763s///
18764s/^/:/
18765s/[	 ]*$/:/
18766s/:\$(srcdir):/:/g
18767s/:\${srcdir}:/:/g
18768s/:@srcdir@:/:/g
18769s/^:*//
18770s/:*$//
18771x
18772s/\(=[	 ]*\).*/\1/
18773G
18774s/\n//
18775s/^[^=]*=[	 ]*$//
18776}'
18777fi
18778
18779cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18780fi # test -n "$CONFIG_FILES"
18781
18782# Set up the scripts for CONFIG_HEADERS section.
18783# No need to generate them if there are no CONFIG_HEADERS.
18784# This happens for instance with `./config.status Makefile'.
18785if test -n "$CONFIG_HEADERS"; then
18786cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18787BEGIN {
18788_ACEOF
18789
18790# Transform confdefs.h into an awk script `defines.awk', embedded as
18791# here-document in config.status, that substitutes the proper values into
18792# config.h.in to produce config.h.
18793
18794# Create a delimiter string that does not exist in confdefs.h, to ease
18795# handling of long lines.
18796ac_delim='%!_!# '
18797for ac_last_try in false false :; do
18798  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18799  if test -z "$ac_tt"; then
18800    break
18801  elif $ac_last_try; then
18802    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18803  else
18804    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18805  fi
18806done
18807
18808# For the awk script, D is an array of macro values keyed by name,
18809# likewise P contains macro parameters if any.  Preserve backslash
18810# newline sequences.
18811
18812ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18813sed -n '
18814s/.\{148\}/&'"$ac_delim"'/g
18815t rset
18816:rset
18817s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
18818t def
18819d
18820:def
18821s/\\$//
18822t bsnl
18823s/["\\]/\\&/g
18824s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
18825D["\1"]=" \3"/p
18826s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
18827d
18828:bsnl
18829s/["\\]/\\&/g
18830s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
18831D["\1"]=" \3\\\\\\n"\\/p
18832t cont
18833s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18834t cont
18835d
18836:cont
18837n
18838s/.\{148\}/&'"$ac_delim"'/g
18839t clear
18840:clear
18841s/\\$//
18842t bsnlc
18843s/["\\]/\\&/g; s/^/"/; s/$/"/p
18844d
18845:bsnlc
18846s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18847b cont
18848' <confdefs.h | sed '
18849s/'"$ac_delim"'/"\\\
18850"/g' >>$CONFIG_STATUS || ac_write_fail=1
18851
18852cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18853  for (key in D) D_is_set[key] = 1
18854  FS = ""
18855}
18856/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18857  line = \$ 0
18858  split(line, arg, " ")
18859  if (arg[1] == "#") {
18860    defundef = arg[2]
18861    mac1 = arg[3]
18862  } else {
18863    defundef = substr(arg[1], 2)
18864    mac1 = arg[2]
18865  }
18866  split(mac1, mac2, "(") #)
18867  macro = mac2[1]
18868  prefix = substr(line, 1, index(line, defundef) - 1)
18869  if (D_is_set[macro]) {
18870    # Preserve the white space surrounding the "#".
18871    print prefix "define", macro P[macro] D[macro]
18872    next
18873  } else {
18874    # Replace #undef with comments.  This is necessary, for example,
18875    # in the case of _POSIX_SOURCE, which is predefined and required
18876    # on some systems where configure will not decide to define it.
18877    if (defundef == "undef") {
18878      print "/*", prefix defundef, macro, "*/"
18879      next
18880    }
18881  }
18882}
18883{ print }
18884_ACAWK
18885_ACEOF
18886cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18887  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18888fi # test -n "$CONFIG_HEADERS"
18889
18890
18891eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
18892shift
18893for ac_tag
18894do
18895  case $ac_tag in
18896  :[FHLC]) ac_mode=$ac_tag; continue;;
18897  esac
18898  case $ac_mode$ac_tag in
18899  :[FHL]*:*);;
18900  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18901  :[FH]-) ac_tag=-:-;;
18902  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18903  esac
18904  ac_save_IFS=$IFS
18905  IFS=:
18906  set x $ac_tag
18907  IFS=$ac_save_IFS
18908  shift
18909  ac_file=$1
18910  shift
18911
18912  case $ac_mode in
18913  :L) ac_source=$1;;
18914  :[FH])
18915    ac_file_inputs=
18916    for ac_f
18917    do
18918      case $ac_f in
18919      -) ac_f="$ac_tmp/stdin";;
18920      *) # Look for the file first in the build tree, then in the source tree
18921	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
18922	 # because $ac_f cannot contain `:'.
18923	 test -f "$ac_f" ||
18924	   case $ac_f in
18925	   [\\/$]*) false;;
18926	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18927	   esac ||
18928	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18929      esac
18930      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18931      as_fn_append ac_file_inputs " '$ac_f'"
18932    done
18933
18934    # Let's still pretend it is `configure' which instantiates (i.e., don't
18935    # use $as_me), people would be surprised to read:
18936    #    /* config.h.  Generated by config.status.  */
18937    configure_input='Generated from '`
18938	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18939	`' by configure.'
18940    if test x"$ac_file" != x-; then
18941      configure_input="$ac_file.  $configure_input"
18942      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18943$as_echo "$as_me: creating $ac_file" >&6;}
18944    fi
18945    # Neutralize special characters interpreted by sed in replacement strings.
18946    case $configure_input in #(
18947    *\&* | *\|* | *\\* )
18948       ac_sed_conf_input=`$as_echo "$configure_input" |
18949       sed 's/[\\\\&|]/\\\\&/g'`;; #(
18950    *) ac_sed_conf_input=$configure_input;;
18951    esac
18952
18953    case $ac_tag in
18954    *:-:* | *:-) cat >"$ac_tmp/stdin" \
18955      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18956    esac
18957    ;;
18958  esac
18959
18960  ac_dir=`$as_dirname -- "$ac_file" ||
18961$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18962	 X"$ac_file" : 'X\(//\)[^/]' \| \
18963	 X"$ac_file" : 'X\(//\)$' \| \
18964	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18965$as_echo X"$ac_file" |
18966    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18967	    s//\1/
18968	    q
18969	  }
18970	  /^X\(\/\/\)[^/].*/{
18971	    s//\1/
18972	    q
18973	  }
18974	  /^X\(\/\/\)$/{
18975	    s//\1/
18976	    q
18977	  }
18978	  /^X\(\/\).*/{
18979	    s//\1/
18980	    q
18981	  }
18982	  s/.*/./; q'`
18983  as_dir="$ac_dir"; as_fn_mkdir_p
18984  ac_builddir=.
18985
18986case "$ac_dir" in
18987.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18988*)
18989  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18990  # A ".." for each directory in $ac_dir_suffix.
18991  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18992  case $ac_top_builddir_sub in
18993  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18994  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18995  esac ;;
18996esac
18997ac_abs_top_builddir=$ac_pwd
18998ac_abs_builddir=$ac_pwd$ac_dir_suffix
18999# for backward compatibility:
19000ac_top_builddir=$ac_top_build_prefix
19001
19002case $srcdir in
19003  .)  # We are building in place.
19004    ac_srcdir=.
19005    ac_top_srcdir=$ac_top_builddir_sub
19006    ac_abs_top_srcdir=$ac_pwd ;;
19007  [\\/]* | ?:[\\/]* )  # Absolute name.
19008    ac_srcdir=$srcdir$ac_dir_suffix;
19009    ac_top_srcdir=$srcdir
19010    ac_abs_top_srcdir=$srcdir ;;
19011  *) # Relative name.
19012    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19013    ac_top_srcdir=$ac_top_build_prefix$srcdir
19014    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19015esac
19016ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19017
19018
19019  case $ac_mode in
19020  :F)
19021  #
19022  # CONFIG_FILE
19023  #
19024
19025  case $INSTALL in
19026  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19027  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19028  esac
19029  ac_MKDIR_P=$MKDIR_P
19030  case $MKDIR_P in
19031  [\\/$]* | ?:[\\/]* ) ;;
19032  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19033  esac
19034_ACEOF
19035
19036cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19037# If the template does not know about datarootdir, expand it.
19038# FIXME: This hack should be removed a few years after 2.60.
19039ac_datarootdir_hack=; ac_datarootdir_seen=
19040ac_sed_dataroot='
19041/datarootdir/ {
19042  p
19043  q
19044}
19045/@datadir@/p
19046/@docdir@/p
19047/@infodir@/p
19048/@localedir@/p
19049/@mandir@/p'
19050case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19051*datarootdir*) ac_datarootdir_seen=yes;;
19052*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19053  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19054$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19055_ACEOF
19056cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19057  ac_datarootdir_hack='
19058  s&@datadir@&$datadir&g
19059  s&@docdir@&$docdir&g
19060  s&@infodir@&$infodir&g
19061  s&@localedir@&$localedir&g
19062  s&@mandir@&$mandir&g
19063  s&\\\${datarootdir}&$datarootdir&g' ;;
19064esac
19065_ACEOF
19066
19067# Neutralize VPATH when `$srcdir' = `.'.
19068# Shell code in configure.ac might set extrasub.
19069# FIXME: do we really want to maintain this feature?
19070cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19071ac_sed_extra="$ac_vpsub
19072$extrasub
19073_ACEOF
19074cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19075:t
19076/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19077s|@configure_input@|$ac_sed_conf_input|;t t
19078s&@top_builddir@&$ac_top_builddir_sub&;t t
19079s&@top_build_prefix@&$ac_top_build_prefix&;t t
19080s&@srcdir@&$ac_srcdir&;t t
19081s&@abs_srcdir@&$ac_abs_srcdir&;t t
19082s&@top_srcdir@&$ac_top_srcdir&;t t
19083s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19084s&@builddir@&$ac_builddir&;t t
19085s&@abs_builddir@&$ac_abs_builddir&;t t
19086s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19087s&@INSTALL@&$ac_INSTALL&;t t
19088s&@MKDIR_P@&$ac_MKDIR_P&;t t
19089$ac_datarootdir_hack
19090"
19091eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19092  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19093
19094test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19095  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19096  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
19097      "$ac_tmp/out"`; test -z "$ac_out"; } &&
19098  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19099which seems to be undefined.  Please make sure it is defined" >&5
19100$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19101which seems to be undefined.  Please make sure it is defined" >&2;}
19102
19103  rm -f "$ac_tmp/stdin"
19104  case $ac_file in
19105  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19106  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19107  esac \
19108  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19109 ;;
19110  :H)
19111  #
19112  # CONFIG_HEADER
19113  #
19114  if test x"$ac_file" != x-; then
19115    {
19116      $as_echo "/* $configure_input  */" \
19117      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19118    } >"$ac_tmp/config.h" \
19119      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19120    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19121      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19122$as_echo "$as_me: $ac_file is unchanged" >&6;}
19123    else
19124      rm -f "$ac_file"
19125      mv "$ac_tmp/config.h" "$ac_file" \
19126	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
19127    fi
19128  else
19129    $as_echo "/* $configure_input  */" \
19130      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19131      || as_fn_error $? "could not create -" "$LINENO" 5
19132  fi
19133# Compute "$ac_file"'s index in $config_headers.
19134_am_arg="$ac_file"
19135_am_stamp_count=1
19136for _am_header in $config_headers :; do
19137  case $_am_header in
19138    $_am_arg | $_am_arg:* )
19139      break ;;
19140    * )
19141      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19142  esac
19143done
19144echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19145$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19146	 X"$_am_arg" : 'X\(//\)[^/]' \| \
19147	 X"$_am_arg" : 'X\(//\)$' \| \
19148	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19149$as_echo X"$_am_arg" |
19150    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19151	    s//\1/
19152	    q
19153	  }
19154	  /^X\(\/\/\)[^/].*/{
19155	    s//\1/
19156	    q
19157	  }
19158	  /^X\(\/\/\)$/{
19159	    s//\1/
19160	    q
19161	  }
19162	  /^X\(\/\).*/{
19163	    s//\1/
19164	    q
19165	  }
19166	  s/.*/./; q'`/stamp-h$_am_stamp_count
19167 ;;
19168
19169  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19170$as_echo "$as_me: executing $ac_file commands" >&6;}
19171 ;;
19172  esac
19173
19174
19175  case $ac_file$ac_mode in
19176    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19177  # Older Autoconf quotes --file arguments for eval, but not when files
19178  # are listed without --file.  Let's play safe and only enable the eval
19179  # if we detect the quoting.
19180  case $CONFIG_FILES in
19181  *\'*) eval set x "$CONFIG_FILES" ;;
19182  *)   set x $CONFIG_FILES ;;
19183  esac
19184  shift
19185  for mf
19186  do
19187    # Strip MF so we end up with the name of the file.
19188    mf=`echo "$mf" | sed -e 's/:.*$//'`
19189    # Check whether this is an Automake generated Makefile or not.
19190    # We used to match only the files named 'Makefile.in', but
19191    # some people rename them; so instead we look at the file content.
19192    # Grep'ing the first line is not enough: some people post-process
19193    # each Makefile.in and add a new line on top of each file to say so.
19194    # Grep'ing the whole file is not good either: AIX grep has a line
19195    # limit of 2048, but all sed's we know have understand at least 4000.
19196    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19197      dirpart=`$as_dirname -- "$mf" ||
19198$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19199	 X"$mf" : 'X\(//\)[^/]' \| \
19200	 X"$mf" : 'X\(//\)$' \| \
19201	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19202$as_echo X"$mf" |
19203    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19204	    s//\1/
19205	    q
19206	  }
19207	  /^X\(\/\/\)[^/].*/{
19208	    s//\1/
19209	    q
19210	  }
19211	  /^X\(\/\/\)$/{
19212	    s//\1/
19213	    q
19214	  }
19215	  /^X\(\/\).*/{
19216	    s//\1/
19217	    q
19218	  }
19219	  s/.*/./; q'`
19220    else
19221      continue
19222    fi
19223    # Extract the definition of DEPDIR, am__include, and am__quote
19224    # from the Makefile without running 'make'.
19225    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19226    test -z "$DEPDIR" && continue
19227    am__include=`sed -n 's/^am__include = //p' < "$mf"`
19228    test -z "$am__include" && continue
19229    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19230    # Find all dependency output files, they are included files with
19231    # $(DEPDIR) in their names.  We invoke sed twice because it is the
19232    # simplest approach to changing $(DEPDIR) to its actual value in the
19233    # expansion.
19234    for file in `sed -n "
19235      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19236	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
19237      # Make sure the directory exists.
19238      test -f "$dirpart/$file" && continue
19239      fdir=`$as_dirname -- "$file" ||
19240$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19241	 X"$file" : 'X\(//\)[^/]' \| \
19242	 X"$file" : 'X\(//\)$' \| \
19243	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19244$as_echo X"$file" |
19245    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19246	    s//\1/
19247	    q
19248	  }
19249	  /^X\(\/\/\)[^/].*/{
19250	    s//\1/
19251	    q
19252	  }
19253	  /^X\(\/\/\)$/{
19254	    s//\1/
19255	    q
19256	  }
19257	  /^X\(\/\).*/{
19258	    s//\1/
19259	    q
19260	  }
19261	  s/.*/./; q'`
19262      as_dir=$dirpart/$fdir; as_fn_mkdir_p
19263      # echo "creating $dirpart/$file"
19264      echo '# dummy' > "$dirpart/$file"
19265    done
19266  done
19267}
19268 ;;
19269    "libtool":C)
19270
19271    # See if we are running on zsh, and set the options which allow our
19272    # commands through without removal of \ escapes.
19273    if test -n "${ZSH_VERSION+set}" ; then
19274      setopt NO_GLOB_SUBST
19275    fi
19276
19277    cfgfile="${ofile}T"
19278    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19279    $RM "$cfgfile"
19280
19281    cat <<_LT_EOF >> "$cfgfile"
19282#! $SHELL
19283
19284# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19285# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19286# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19287# NOTE: Changes made to this file will be lost: look at ltmain.sh.
19288#
19289#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19290#                 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
19291#   Written by Gordon Matzigkeit, 1996
19292#
19293#   This file is part of GNU Libtool.
19294#
19295# GNU Libtool is free software; you can redistribute it and/or
19296# modify it under the terms of the GNU General Public License as
19297# published by the Free Software Foundation; either version 2 of
19298# the License, or (at your option) any later version.
19299#
19300# As a special exception to the GNU General Public License,
19301# if you distribute this file as part of a program or library that
19302# is built using GNU Libtool, you may include this file under the
19303# same distribution terms that you use for the rest of that program.
19304#
19305# GNU Libtool is distributed in the hope that it will be useful,
19306# but WITHOUT ANY WARRANTY; without even the implied warranty of
19307# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19308# GNU General Public License for more details.
19309#
19310# You should have received a copy of the GNU General Public License
19311# along with GNU Libtool; see the file COPYING.  If not, a copy
19312# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19313# obtained by writing to the Free Software Foundation, Inc.,
19314# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19315
19316
19317# The names of the tagged configurations supported by this script.
19318available_tags=""
19319
19320# ### BEGIN LIBTOOL CONFIG
19321
19322# Whether or not to build shared libraries.
19323build_libtool_libs=$enable_shared
19324
19325# Which release of libtool.m4 was used?
19326macro_version=$macro_version
19327macro_revision=$macro_revision
19328
19329# Whether or not to build static libraries.
19330build_old_libs=$enable_static
19331
19332# What type of objects to build.
19333pic_mode=$pic_mode
19334
19335# Whether or not to optimize for fast installation.
19336fast_install=$enable_fast_install
19337
19338# Shell to use when invoking shell scripts.
19339SHELL=$lt_SHELL
19340
19341# An echo program that protects backslashes.
19342ECHO=$lt_ECHO
19343
19344# The host system.
19345host_alias=$host_alias
19346host=$host
19347host_os=$host_os
19348
19349# The build system.
19350build_alias=$build_alias
19351build=$build
19352build_os=$build_os
19353
19354# A sed program that does not truncate output.
19355SED=$lt_SED
19356
19357# Sed that helps us avoid accidentally triggering echo(1) options like -n.
19358Xsed="\$SED -e 1s/^X//"
19359
19360# A grep program that handles long lines.
19361GREP=$lt_GREP
19362
19363# An ERE matcher.
19364EGREP=$lt_EGREP
19365
19366# A literal string matcher.
19367FGREP=$lt_FGREP
19368
19369# A BSD- or MS-compatible name lister.
19370NM=$lt_NM
19371
19372# Whether we need soft or hard links.
19373LN_S=$lt_LN_S
19374
19375# What is the maximum length of a command?
19376max_cmd_len=$max_cmd_len
19377
19378# Object file suffix (normally "o").
19379objext=$ac_objext
19380
19381# Executable file suffix (normally "").
19382exeext=$exeext
19383
19384# whether the shell understands "unset".
19385lt_unset=$lt_unset
19386
19387# turn spaces into newlines.
19388SP2NL=$lt_lt_SP2NL
19389
19390# turn newlines into spaces.
19391NL2SP=$lt_lt_NL2SP
19392
19393# An object symbol dumper.
19394OBJDUMP=$lt_OBJDUMP
19395
19396# Method to check whether dependent libraries are shared objects.
19397deplibs_check_method=$lt_deplibs_check_method
19398
19399# Command to use when deplibs_check_method == "file_magic".
19400file_magic_cmd=$lt_file_magic_cmd
19401
19402# The archiver.
19403AR=$lt_AR
19404AR_FLAGS=$lt_AR_FLAGS
19405
19406# A symbol stripping program.
19407STRIP=$lt_STRIP
19408
19409# Commands used to install an old-style archive.
19410RANLIB=$lt_RANLIB
19411old_postinstall_cmds=$lt_old_postinstall_cmds
19412old_postuninstall_cmds=$lt_old_postuninstall_cmds
19413
19414# Whether to use a lock for old archive extraction.
19415lock_old_archive_extraction=$lock_old_archive_extraction
19416
19417# A C compiler.
19418LTCC=$lt_CC
19419
19420# LTCC compiler flags.
19421LTCFLAGS=$lt_CFLAGS
19422
19423# Take the output of nm and produce a listing of raw symbols and C names.
19424global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19425
19426# Transform the output of nm in a proper C declaration.
19427global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19428
19429# Transform the output of nm in a C name address pair.
19430global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19431
19432# Transform the output of nm in a C name address pair when lib prefix is needed.
19433global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19434
19435# The name of the directory that contains temporary libtool files.
19436objdir=$objdir
19437
19438# Used to examine libraries when file_magic_cmd begins with "file".
19439MAGIC_CMD=$MAGIC_CMD
19440
19441# Must we lock files when doing compilation?
19442need_locks=$lt_need_locks
19443
19444# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19445DSYMUTIL=$lt_DSYMUTIL
19446
19447# Tool to change global to local symbols on Mac OS X.
19448NMEDIT=$lt_NMEDIT
19449
19450# Tool to manipulate fat objects and archives on Mac OS X.
19451LIPO=$lt_LIPO
19452
19453# ldd/readelf like tool for Mach-O binaries on Mac OS X.
19454OTOOL=$lt_OTOOL
19455
19456# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19457OTOOL64=$lt_OTOOL64
19458
19459# Old archive suffix (normally "a").
19460libext=$libext
19461
19462# Shared library suffix (normally ".so").
19463shrext_cmds=$lt_shrext_cmds
19464
19465# The commands to extract the exported symbol list from a shared archive.
19466extract_expsyms_cmds=$lt_extract_expsyms_cmds
19467
19468# Variables whose values should be saved in libtool wrapper scripts and
19469# restored at link time.
19470variables_saved_for_relink=$lt_variables_saved_for_relink
19471
19472# Do we need the "lib" prefix for modules?
19473need_lib_prefix=$need_lib_prefix
19474
19475# Do we need a version for libraries?
19476need_version=$need_version
19477
19478# Library versioning type.
19479version_type=$version_type
19480
19481# Shared library runtime path variable.
19482runpath_var=$runpath_var
19483
19484# Shared library path variable.
19485shlibpath_var=$shlibpath_var
19486
19487# Is shlibpath searched before the hard-coded library search path?
19488shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19489
19490# Format of library name prefix.
19491libname_spec=$lt_libname_spec
19492
19493# List of archive names.  First name is the real one, the rest are links.
19494# The last name is the one that the linker finds with -lNAME
19495library_names_spec=$lt_library_names_spec
19496
19497# The coded name of the library, if different from the real name.
19498soname_spec=$lt_soname_spec
19499
19500# Permission mode override for installation of shared libraries.
19501install_override_mode=$lt_install_override_mode
19502
19503# Command to use after installation of a shared archive.
19504postinstall_cmds=$lt_postinstall_cmds
19505
19506# Command to use after uninstallation of a shared archive.
19507postuninstall_cmds=$lt_postuninstall_cmds
19508
19509# Commands used to finish a libtool library installation in a directory.
19510finish_cmds=$lt_finish_cmds
19511
19512# As "finish_cmds", except a single script fragment to be evaled but
19513# not shown.
19514finish_eval=$lt_finish_eval
19515
19516# Whether we should hardcode library paths into libraries.
19517hardcode_into_libs=$hardcode_into_libs
19518
19519# Compile-time system search path for libraries.
19520sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19521
19522# Run-time system search path for libraries.
19523sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19524
19525# Whether dlopen is supported.
19526dlopen_support=$enable_dlopen
19527
19528# Whether dlopen of programs is supported.
19529dlopen_self=$enable_dlopen_self
19530
19531# Whether dlopen of statically linked programs is supported.
19532dlopen_self_static=$enable_dlopen_self_static
19533
19534# Commands to strip libraries.
19535old_striplib=$lt_old_striplib
19536striplib=$lt_striplib
19537
19538
19539# The linker used to build libraries.
19540LD=$lt_LD
19541
19542# How to create reloadable object files.
19543reload_flag=$lt_reload_flag
19544reload_cmds=$lt_reload_cmds
19545
19546# Commands used to build an old-style archive.
19547old_archive_cmds=$lt_old_archive_cmds
19548
19549# A language specific compiler.
19550CC=$lt_compiler
19551
19552# Is the compiler the GNU compiler?
19553with_gcc=$GCC
19554
19555# Compiler flag to turn off builtin functions.
19556no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19557
19558# How to pass a linker flag through the compiler.
19559wl=$lt_lt_prog_compiler_wl
19560
19561# Additional compiler flags for building library objects.
19562pic_flag=$lt_lt_prog_compiler_pic
19563
19564# Compiler flag to prevent dynamic linking.
19565link_static_flag=$lt_lt_prog_compiler_static
19566
19567# Does compiler simultaneously support -c and -o options?
19568compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19569
19570# Whether or not to add -lc for building shared libraries.
19571build_libtool_need_lc=$archive_cmds_need_lc
19572
19573# Whether or not to disallow shared libs when runtime libs are static.
19574allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19575
19576# Compiler flag to allow reflexive dlopens.
19577export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19578
19579# Compiler flag to generate shared objects directly from archives.
19580whole_archive_flag_spec=$lt_whole_archive_flag_spec
19581
19582# Whether the compiler copes with passing no objects directly.
19583compiler_needs_object=$lt_compiler_needs_object
19584
19585# Create an old-style archive from a shared archive.
19586old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19587
19588# Create a temporary old-style archive to link instead of a shared archive.
19589old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19590
19591# Commands used to build a shared archive.
19592archive_cmds=$lt_archive_cmds
19593archive_expsym_cmds=$lt_archive_expsym_cmds
19594
19595# Commands used to build a loadable module if different from building
19596# a shared archive.
19597module_cmds=$lt_module_cmds
19598module_expsym_cmds=$lt_module_expsym_cmds
19599
19600# Whether we are building with GNU ld or not.
19601with_gnu_ld=$lt_with_gnu_ld
19602
19603# Flag that allows shared libraries with undefined symbols to be built.
19604allow_undefined_flag=$lt_allow_undefined_flag
19605
19606# Flag that enforces no undefined symbols.
19607no_undefined_flag=$lt_no_undefined_flag
19608
19609# Flag to hardcode \$libdir into a binary during linking.
19610# This must work even if \$libdir does not exist
19611hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19612
19613# If ld is used when linking, flag to hardcode \$libdir into a binary
19614# during linking.  This must work even if \$libdir does not exist.
19615hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19616
19617# Whether we need a single "-rpath" flag with a separated argument.
19618hardcode_libdir_separator=$lt_hardcode_libdir_separator
19619
19620# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19621# DIR into the resulting binary.
19622hardcode_direct=$hardcode_direct
19623
19624# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19625# DIR into the resulting binary and the resulting library dependency is
19626# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19627# library is relocated.
19628hardcode_direct_absolute=$hardcode_direct_absolute
19629
19630# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19631# into the resulting binary.
19632hardcode_minus_L=$hardcode_minus_L
19633
19634# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19635# into the resulting binary.
19636hardcode_shlibpath_var=$hardcode_shlibpath_var
19637
19638# Set to "yes" if building a shared library automatically hardcodes DIR
19639# into the library and all subsequent libraries and executables linked
19640# against it.
19641hardcode_automatic=$hardcode_automatic
19642
19643# Set to yes if linker adds runtime paths of dependent libraries
19644# to runtime path list.
19645inherit_rpath=$inherit_rpath
19646
19647# Whether libtool must link a program against all its dependency libraries.
19648link_all_deplibs=$link_all_deplibs
19649
19650# Fix the shell variable \$srcfile for the compiler.
19651fix_srcfile_path=$lt_fix_srcfile_path
19652
19653# Set to "yes" if exported symbols are required.
19654always_export_symbols=$always_export_symbols
19655
19656# The commands to list exported symbols.
19657export_symbols_cmds=$lt_export_symbols_cmds
19658
19659# Symbols that should not be listed in the preloaded symbols.
19660exclude_expsyms=$lt_exclude_expsyms
19661
19662# Symbols that must always be exported.
19663include_expsyms=$lt_include_expsyms
19664
19665# Commands necessary for linking programs (against libraries) with templates.
19666prelink_cmds=$lt_prelink_cmds
19667
19668# Specify filename containing input files.
19669file_list_spec=$lt_file_list_spec
19670
19671# How to hardcode a shared library path into an executable.
19672hardcode_action=$hardcode_action
19673
19674# ### END LIBTOOL CONFIG
19675
19676_LT_EOF
19677
19678  case $host_os in
19679  aix3*)
19680    cat <<\_LT_EOF >> "$cfgfile"
19681# AIX sometimes has problems with the GCC collect2 program.  For some
19682# reason, if we set the COLLECT_NAMES environment variable, the problems
19683# vanish in a puff of smoke.
19684if test "X${COLLECT_NAMES+set}" != Xset; then
19685  COLLECT_NAMES=
19686  export COLLECT_NAMES
19687fi
19688_LT_EOF
19689    ;;
19690  esac
19691
19692
19693ltmain="$ac_aux_dir/ltmain.sh"
19694
19695
19696  # We use sed instead of cat because bash on DJGPP gets confused if
19697  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
19698  # text mode, it properly converts lines to CR/LF.  This bash problem
19699  # is reportedly fixed, but why not run on old versions too?
19700  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19701    || (rm -f "$cfgfile"; exit 1)
19702
19703  case $xsi_shell in
19704  yes)
19705    cat << \_LT_EOF >> "$cfgfile"
19706
19707# func_dirname file append nondir_replacement
19708# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
19709# otherwise set result to NONDIR_REPLACEMENT.
19710func_dirname ()
19711{
19712  case ${1} in
19713    */*) func_dirname_result="${1%/*}${2}" ;;
19714    *  ) func_dirname_result="${3}" ;;
19715  esac
19716}
19717
19718# func_basename file
19719func_basename ()
19720{
19721  func_basename_result="${1##*/}"
19722}
19723
19724# func_dirname_and_basename file append nondir_replacement
19725# perform func_basename and func_dirname in a single function
19726# call:
19727#   dirname:  Compute the dirname of FILE.  If nonempty,
19728#             add APPEND to the result, otherwise set result
19729#             to NONDIR_REPLACEMENT.
19730#             value returned in "$func_dirname_result"
19731#   basename: Compute filename of FILE.
19732#             value retuned in "$func_basename_result"
19733# Implementation must be kept synchronized with func_dirname
19734# and func_basename. For efficiency, we do not delegate to
19735# those functions but instead duplicate the functionality here.
19736func_dirname_and_basename ()
19737{
19738  case ${1} in
19739    */*) func_dirname_result="${1%/*}${2}" ;;
19740    *  ) func_dirname_result="${3}" ;;
19741  esac
19742  func_basename_result="${1##*/}"
19743}
19744
19745# func_stripname prefix suffix name
19746# strip PREFIX and SUFFIX off of NAME.
19747# PREFIX and SUFFIX must not contain globbing or regex special
19748# characters, hashes, percent signs, but SUFFIX may contain a leading
19749# dot (in which case that matches only a dot).
19750func_stripname ()
19751{
19752  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19753  # positional parameters, so assign one to ordinary parameter first.
19754  func_stripname_result=${3}
19755  func_stripname_result=${func_stripname_result#"${1}"}
19756  func_stripname_result=${func_stripname_result%"${2}"}
19757}
19758
19759# func_opt_split
19760func_opt_split ()
19761{
19762  func_opt_split_opt=${1%%=*}
19763  func_opt_split_arg=${1#*=}
19764}
19765
19766# func_lo2o object
19767func_lo2o ()
19768{
19769  case ${1} in
19770    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19771    *)    func_lo2o_result=${1} ;;
19772  esac
19773}
19774
19775# func_xform libobj-or-source
19776func_xform ()
19777{
19778  func_xform_result=${1%.*}.lo
19779}
19780
19781# func_arith arithmetic-term...
19782func_arith ()
19783{
19784  func_arith_result=$(( $* ))
19785}
19786
19787# func_len string
19788# STRING may not start with a hyphen.
19789func_len ()
19790{
19791  func_len_result=${#1}
19792}
19793
19794_LT_EOF
19795    ;;
19796  *) # Bourne compatible functions.
19797    cat << \_LT_EOF >> "$cfgfile"
19798
19799# func_dirname file append nondir_replacement
19800# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
19801# otherwise set result to NONDIR_REPLACEMENT.
19802func_dirname ()
19803{
19804  # Extract subdirectory from the argument.
19805  func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
19806  if test "X$func_dirname_result" = "X${1}"; then
19807    func_dirname_result="${3}"
19808  else
19809    func_dirname_result="$func_dirname_result${2}"
19810  fi
19811}
19812
19813# func_basename file
19814func_basename ()
19815{
19816  func_basename_result=`$ECHO "${1}" | $SED "$basename"`
19817}
19818
19819
19820# func_stripname prefix suffix name
19821# strip PREFIX and SUFFIX off of NAME.
19822# PREFIX and SUFFIX must not contain globbing or regex special
19823# characters, hashes, percent signs, but SUFFIX may contain a leading
19824# dot (in which case that matches only a dot).
19825# func_strip_suffix prefix name
19826func_stripname ()
19827{
19828  case ${2} in
19829    .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
19830    *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
19831  esac
19832}
19833
19834# sed scripts:
19835my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19836my_sed_long_arg='1s/^-[^=]*=//'
19837
19838# func_opt_split
19839func_opt_split ()
19840{
19841  func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
19842  func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
19843}
19844
19845# func_lo2o object
19846func_lo2o ()
19847{
19848  func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
19849}
19850
19851# func_xform libobj-or-source
19852func_xform ()
19853{
19854  func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
19855}
19856
19857# func_arith arithmetic-term...
19858func_arith ()
19859{
19860  func_arith_result=`expr "$@"`
19861}
19862
19863# func_len string
19864# STRING may not start with a hyphen.
19865func_len ()
19866{
19867  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19868}
19869
19870_LT_EOF
19871esac
19872
19873case $lt_shell_append in
19874  yes)
19875    cat << \_LT_EOF >> "$cfgfile"
19876
19877# func_append var value
19878# Append VALUE to the end of shell variable VAR.
19879func_append ()
19880{
19881  eval "$1+=\$2"
19882}
19883_LT_EOF
19884    ;;
19885  *)
19886    cat << \_LT_EOF >> "$cfgfile"
19887
19888# func_append var value
19889# Append VALUE to the end of shell variable VAR.
19890func_append ()
19891{
19892  eval "$1=\$$1\$2"
19893}
19894
19895_LT_EOF
19896    ;;
19897  esac
19898
19899
19900  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19901    || (rm -f "$cfgfile"; exit 1)
19902
19903  mv -f "$cfgfile" "$ofile" ||
19904    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19905  chmod +x "$ofile"
19906
19907 ;;
19908    "default-1":C)
19909    for ac_file in $CONFIG_FILES; do
19910      # Support "outfile[:infile[:infile...]]"
19911      case "$ac_file" in
19912        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
19913      esac
19914      # PO directories have a Makefile.in generated from Makefile.in.in.
19915      case "$ac_file" in */Makefile.in)
19916        # Adjust a relative srcdir.
19917        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
19918        ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
19919        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
19920        # In autoconf-2.13 it is called $ac_given_srcdir.
19921        # In autoconf-2.50 it is called $srcdir.
19922        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
19923        case "$ac_given_srcdir" in
19924          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
19925          /*) top_srcdir="$ac_given_srcdir" ;;
19926          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
19927        esac
19928        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
19929          rm -f "$ac_dir/POTFILES"
19930          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
19931          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ 	]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
19932          POMAKEFILEDEPS="POTFILES.in"
19933          # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
19934          # on $ac_dir but don't depend on user-specified configuration
19935          # parameters.
19936          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
19937            # The LINGUAS file contains the set of available languages.
19938            if test -n "$OBSOLETE_ALL_LINGUAS"; then
19939              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete"
19940            fi
19941            ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
19942            # Hide the ALL_LINGUAS assigment from automake.
19943            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
19944            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
19945          else
19946            # The set of available languages was given in configure.ac.
19947            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
19948          fi
19949          case "$ac_given_srcdir" in
19950            .) srcdirpre= ;;
19951            *) srcdirpre='$(srcdir)/' ;;
19952          esac
19953          POFILES=
19954          GMOFILES=
19955          UPDATEPOFILES=
19956          DUMMYPOFILES=
19957          for lang in $ALL_LINGUAS; do
19958            POFILES="$POFILES $srcdirpre$lang.po"
19959            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
19960            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
19961            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
19962          done
19963          # CATALOGS depends on both $ac_dir and the user's LINGUAS
19964          # environment variable.
19965          INST_LINGUAS=
19966          if test -n "$ALL_LINGUAS"; then
19967            for presentlang in $ALL_LINGUAS; do
19968              useit=no
19969              if test "%UNSET%" != "$LINGUAS"; then
19970                desiredlanguages="$LINGUAS"
19971              else
19972                desiredlanguages="$ALL_LINGUAS"
19973              fi
19974              for desiredlang in $desiredlanguages; do
19975                # Use the presentlang catalog if desiredlang is
19976                #   a. equal to presentlang, or
19977                #   b. a variant of presentlang (because in this case,
19978                #      presentlang can be used as a fallback for messages
19979                #      which are not translated in the desiredlang catalog).
19980                case "$desiredlang" in
19981                  "$presentlang"*) useit=yes;;
19982                esac
19983              done
19984              if test $useit = yes; then
19985                INST_LINGUAS="$INST_LINGUAS $presentlang"
19986              fi
19987            done
19988          fi
19989          CATALOGS=
19990          if test -n "$INST_LINGUAS"; then
19991            for lang in $INST_LINGUAS; do
19992              CATALOGS="$CATALOGS $lang.gmo"
19993            done
19994          fi
19995          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
19996          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"
19997          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
19998            if test -f "$f"; then
19999              case "$f" in
20000                *.orig | *.bak | *~) ;;
20001                *) cat "$f" >> "$ac_dir/Makefile" ;;
20002              esac
20003            fi
20004          done
20005        fi
20006        ;;
20007      esac
20008    done ;;
20009    "default-2":C)
20010    for ac_file in $CONFIG_FILES; do
20011      # Support "outfile[:infile[:infile...]]"
20012      case "$ac_file" in
20013        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
20014      esac
20015      # PO directories have a Makefile.in generated from Makefile.in.in.
20016      case "$ac_file" in */Makefile.in)
20017        # Adjust a relative srcdir.
20018        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
20019        ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
20020        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
20021        # In autoconf-2.13 it is called $ac_given_srcdir.
20022        # In autoconf-2.50 it is called $srcdir.
20023        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
20024        case "$ac_given_srcdir" in
20025          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
20026          /*) top_srcdir="$ac_given_srcdir" ;;
20027          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
20028        esac
20029        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
20030          rm -f "$ac_dir/POTFILES"
20031          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
20032          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ 	]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
20033          POMAKEFILEDEPS="POTFILES.in"
20034          # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
20035          # on $ac_dir but don't depend on user-specified configuration
20036          # parameters.
20037          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
20038            # The LINGUAS file contains the set of available languages.
20039            if test -n "$OBSOLETE_ALL_LINGUAS"; then
20040              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete"
20041            fi
20042            ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
20043            # Hide the ALL_LINGUAS assigment from automake.
20044            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
20045            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
20046          else
20047            # The set of available languages was given in configure.ac.
20048            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
20049          fi
20050          case "$ac_given_srcdir" in
20051            .) srcdirpre= ;;
20052            *) srcdirpre='$(srcdir)/' ;;
20053          esac
20054          POFILES=
20055          GMOFILES=
20056          UPDATEPOFILES=
20057          DUMMYPOFILES=
20058          for lang in $ALL_LINGUAS; do
20059            POFILES="$POFILES $srcdirpre$lang.po"
20060            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
20061            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
20062            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
20063          done
20064          # CATALOGS depends on both $ac_dir and the user's LINGUAS
20065          # environment variable.
20066          INST_LINGUAS=
20067          if test -n "$ALL_LINGUAS"; then
20068            for presentlang in $ALL_LINGUAS; do
20069              useit=no
20070              if test "%UNSET%" != "$LINGUAS"; then
20071                desiredlanguages="$LINGUAS"
20072              else
20073                desiredlanguages="$ALL_LINGUAS"
20074              fi
20075              for desiredlang in $desiredlanguages; do
20076                # Use the presentlang catalog if desiredlang is
20077                #   a. equal to presentlang, or
20078                #   b. a variant of presentlang (because in this case,
20079                #      presentlang can be used as a fallback for messages
20080                #      which are not translated in the desiredlang catalog).
20081                case "$desiredlang" in
20082                  "$presentlang"*) useit=yes;;
20083                esac
20084              done
20085              if test $useit = yes; then
20086                INST_LINGUAS="$INST_LINGUAS $presentlang"
20087              fi
20088            done
20089          fi
20090          CATALOGS=
20091          if test -n "$INST_LINGUAS"; then
20092            for lang in $INST_LINGUAS; do
20093              CATALOGS="$CATALOGS $lang.gmo"
20094            done
20095          fi
20096          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
20097          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"
20098          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
20099            if test -f "$f"; then
20100              case "$f" in
20101                *.orig | *.bak | *~) ;;
20102                *) cat "$f" >> "$ac_dir/Makefile" ;;
20103              esac
20104            fi
20105          done
20106        fi
20107        ;;
20108      esac
20109    done ;;
20110    "default":C)
20111case "$srcdir" in
20112  .) srcdirpre= ;;
20113  *) srcdirpre='$(srcdir)/' ;;
20114esac
20115POFILES=
20116GMOFILES=
20117for lang in dummy $OBSOLETE_ALL_LINGUAS; do
20118  if test $lang != dummy; then
20119    POFILES="$POFILES $srcdirpre$lang.po"
20120    GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
20121  fi
20122done
20123sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' \
20124    -e '/BLD-POTFILES =/r po/BLD-POTFILES' \
20125    -e "s,@POFILES@,$POFILES," \
20126    -e "s,@GMOFILES@,$GMOFILES," \
20127    po/Makefile.in > po/Makefile ;;
20128
20129  esac
20130done # for ac_tag
20131
20132
20133as_fn_exit 0
20134_ACEOF
20135ac_clean_files=$ac_clean_files_save
20136
20137test $ac_write_fail = 0 ||
20138  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20139
20140
20141# configure is writing to config.log, and then calls config.status.
20142# config.status does its own redirection, appending to config.log.
20143# Unfortunately, on DOS this fails, as config.log is still kept open
20144# by configure, so config.status won't be able to write to it; its
20145# output is simply discarded.  So we exec the FD to /dev/null,
20146# effectively closing config.log, so it can be properly (re)opened and
20147# appended to by config.status.  When coming back to configure, we
20148# need to make the FD available again.
20149if test "$no_create" != yes; then
20150  ac_cs_success=:
20151  ac_config_status_args=
20152  test "$silent" = yes &&
20153    ac_config_status_args="$ac_config_status_args --quiet"
20154  exec 5>/dev/null
20155  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20156  exec 5>>config.log
20157  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20158  # would make configure fail if this is the last instruction.
20159  $ac_cs_success || as_fn_exit 1
20160fi
20161if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20162  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20163$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20164fi
20165
20166
20167
20168touch config.status.tmp
20169if touch --reference=config.status config.status.tmp > /dev/null 2>&1; then
20170  sed '/as_fn_exit 0/i \
20171sed -e \"s/^\t\\\(\\\$(AM_V_CCLD)\\\)/\t+ \\\1/\" Makefile > Makefile.tmp \
20172touch --reference=Makefile Makefile.tmp \
20173mv Makefile.tmp Makefile \
20174' config.status > config.status.tmp
20175  touch --reference=config.status config.status.tmp
20176  mv config.status.tmp config.status
20177  chmod +x config.status
20178  sed -e "s/^\t\(\$(AM_V_CCLD)\)/\t+ \1/" Makefile > Makefile.tmp
20179  touch --reference=Makefile Makefile.tmp
20180  mv Makefile.tmp Makefile
20181else
20182  rm -f config.status.tmp
20183fi
20184