configure revision 1.6
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for binutils 2.31.1.
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  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
478  sed -n '
479    p
480    /[$]LINENO/=
481  ' <$as_myself |
482    sed '
483      s/[$]LINENO.*/&-/
484      t lineno
485      b
486      :lineno
487      N
488      :loop
489      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490      t loop
491      s/-\n.*//
492    ' >$as_me.lineno &&
493  chmod +x "$as_me.lineno" ||
494    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497  # already done that, so ensure we don't try to do so again and fall
498  # in an infinite loop.  This has already happened in practice.
499  _as_can_reexec=no; export _as_can_reexec
500  # Don't try to exec as it changes $[0], causing all sort of problems
501  # (the dirname of $[0] is not the place where we might find the
502  # original and so on.  Autoconf is especially sensitive to this).
503  . "./$as_me.lineno"
504  # Exit status is that of the last command.
505  exit
506}
507
508ECHO_C= ECHO_N= ECHO_T=
509case `echo -n x` in #(((((
510-n*)
511  case `echo 'xy\c'` in
512  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
513  xy)  ECHO_C='\c';;
514  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
515       ECHO_T='	';;
516  esac;;
517*)
518  ECHO_N='-n';;
519esac
520
521rm -f conf$$ conf$$.exe conf$$.file
522if test -d conf$$.dir; then
523  rm -f conf$$.dir/conf$$.file
524else
525  rm -f conf$$.dir
526  mkdir conf$$.dir 2>/dev/null
527fi
528if (echo >conf$$.file) 2>/dev/null; then
529  if ln -s conf$$.file conf$$ 2>/dev/null; then
530    as_ln_s='ln -s'
531    # ... but there are two gotchas:
532    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534    # In both cases, we have to default to `cp -pR'.
535    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536      as_ln_s='cp -pR'
537  elif ln conf$$.file conf$$ 2>/dev/null; then
538    as_ln_s=ln
539  else
540    as_ln_s='cp -pR'
541  fi
542else
543  as_ln_s='cp -pR'
544fi
545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546rmdir conf$$.dir 2>/dev/null
547
548if mkdir -p . 2>/dev/null; then
549  as_mkdir_p='mkdir -p "$as_dir"'
550else
551  test -d ./-p && rmdir ./-p
552  as_mkdir_p=false
553fi
554
555as_test_x='test -x'
556as_executable_p=as_fn_executable_p
557
558# Sed expression to map a string onto a valid CPP name.
559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561# Sed expression to map a string onto a valid variable name.
562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567test -n "$DJDIR" || exec 7<&0 </dev/null
568exec 6>&1
569
570# Name of the host.
571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572# so uname gets run too.
573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575#
576# Initializations.
577#
578ac_default_prefix=/usr/local
579ac_clean_files=
580ac_config_libobj_dir=.
581LIBOBJS=
582cross_compiling=no
583subdirs=
584MFLAGS=
585MAKEFLAGS=
586
587# Identity of this package.
588PACKAGE_NAME='binutils'
589PACKAGE_TARNAME='binutils'
590PACKAGE_VERSION='2.31.1'
591PACKAGE_STRING='binutils 2.31.1'
592PACKAGE_BUGREPORT=''
593PACKAGE_URL=''
594
595ac_unique_file="ar.c"
596# Factoring default headers for most tests.
597ac_includes_default="\
598#include <stdio.h>
599#ifdef HAVE_SYS_TYPES_H
600# include <sys/types.h>
601#endif
602#ifdef HAVE_SYS_STAT_H
603# include <sys/stat.h>
604#endif
605#ifdef STDC_HEADERS
606# include <stdlib.h>
607# include <stddef.h>
608#else
609# ifdef HAVE_STDLIB_H
610#  include <stdlib.h>
611# endif
612#endif
613#ifdef HAVE_STRING_H
614# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615#  include <memory.h>
616# endif
617# include <string.h>
618#endif
619#ifdef HAVE_STRINGS_H
620# include <strings.h>
621#endif
622#ifdef HAVE_INTTYPES_H
623# include <inttypes.h>
624#endif
625#ifdef HAVE_STDINT_H
626# include <stdint.h>
627#endif
628#ifdef HAVE_UNISTD_H
629# include <unistd.h>
630#endif"
631
632ac_subst_vars='am__EXEEXT_FALSE
633am__EXEEXT_TRUE
634LTLIBOBJS
635LIBOBJS
636EMULATION_VECTOR
637EMULATION
638OBJDUMP_PRIVATE_OFILES
639OBJDUMP_DEFS
640BUILD_INSTALL_MISC
641BUILD_MISC
642BUILD_DLLWRAP
643BUILD_WINDMC
644BUILD_WINDRES
645DLLTOOL_DEFS
646BUILD_DLLTOOL
647BUILD_SRCONV
648LTLIBICONV
649LIBICONV
650zlibinc
651zlibdir
652ALLOCA
653DEMANGLER_NAME
654EXEEXT_FOR_BUILD
655CC_FOR_BUILD
656HDEFINES
657GENINSRC_NEVER_FALSE
658GENINSRC_NEVER_TRUE
659MAINT
660MAINTAINER_MODE_FALSE
661MAINTAINER_MODE_TRUE
662MSGMERGE
663MSGFMT
664MKINSTALLDIRS
665CATOBJEXT
666GENCAT
667INSTOBJEXT
668DATADIRNAME
669CATALOGS
670POSUB
671GMSGFMT
672XGETTEXT
673INCINTL
674LIBINTL_DEP
675LIBINTL
676USE_NLS
677LEXLIB
678LEX_OUTPUT_ROOT
679LEX
680YFLAGS
681YACC
682WARN_WRITE_STRINGS
683NO_WERROR
684WARN_CFLAGS_FOR_BUILD
685WARN_CFLAGS
686OTOOL64
687OTOOL
688LIPO
689NMEDIT
690DSYMUTIL
691RANLIB
692AR
693OBJDUMP
694LN_S
695NM
696ac_ct_DUMPBIN
697DUMPBIN
698LD
699FGREP
700SED
701LIBTOOL
702EGREP
703GREP
704CPP
705AM_BACKSLASH
706AM_DEFAULT_VERBOSITY
707AM_DEFAULT_V
708AM_V
709am__fastdepCC_FALSE
710am__fastdepCC_TRUE
711CCDEPMODE
712am__nodep
713AMDEPBACKSLASH
714AMDEP_FALSE
715AMDEP_TRUE
716am__quote
717am__include
718DEPDIR
719am__untar
720am__tar
721AMTAR
722am__leading_dot
723SET_MAKE
724AWK
725mkdir_p
726MKDIR_P
727INSTALL_STRIP_PROGRAM
728STRIP
729install_sh
730MAKEINFO
731AUTOHEADER
732AUTOMAKE
733AUTOCONF
734ACLOCAL
735VERSION
736PACKAGE
737CYGPATH_W
738am__isrc
739INSTALL_DATA
740INSTALL_SCRIPT
741INSTALL_PROGRAM
742OBJEXT
743EXEEXT
744ac_ct_CC
745CPPFLAGS
746LDFLAGS
747CFLAGS
748CC
749target_os
750target_vendor
751target_cpu
752target
753host_os
754host_vendor
755host_cpu
756host
757build_os
758build_vendor
759build_cpu
760build
761target_alias
762host_alias
763build_alias
764LIBS
765ECHO_T
766ECHO_N
767ECHO_C
768DEFS
769mandir
770localedir
771libdir
772psdir
773pdfdir
774dvidir
775htmldir
776infodir
777docdir
778oldincludedir
779includedir
780localstatedir
781sharedstatedir
782sysconfdir
783datadir
784datarootdir
785libexecdir
786sbindir
787bindir
788program_transform_name
789prefix
790exec_prefix
791PACKAGE_URL
792PACKAGE_BUGREPORT
793PACKAGE_STRING
794PACKAGE_VERSION
795PACKAGE_TARNAME
796PACKAGE_NAME
797PATH_SEPARATOR
798SHELL'
799ac_subst_files=''
800ac_user_opts='
801enable_option_checking
802enable_dependency_tracking
803enable_silent_rules
804enable_shared
805enable_static
806with_pic
807enable_fast_install
808with_gnu_ld
809enable_libtool_lock
810enable_plugins
811enable_largefile
812enable_targets
813enable_deterministic_archives
814enable_default_strings_all
815enable_werror
816enable_build_warnings
817enable_nls
818enable_maintainer_mode
819with_system_zlib
820enable_rpath
821with_libiconv_prefix
822'
823      ac_precious_vars='build_alias
824host_alias
825target_alias
826CC
827CFLAGS
828LDFLAGS
829LIBS
830CPPFLAGS
831CPP
832YACC
833YFLAGS'
834
835
836# Initialize some variables set by options.
837ac_init_help=
838ac_init_version=false
839ac_unrecognized_opts=
840ac_unrecognized_sep=
841# The variables have the same names as the options, with
842# dashes changed to underlines.
843cache_file=/dev/null
844exec_prefix=NONE
845no_create=
846no_recursion=
847prefix=NONE
848program_prefix=NONE
849program_suffix=NONE
850program_transform_name=s,x,x,
851silent=
852site=
853srcdir=
854verbose=
855x_includes=NONE
856x_libraries=NONE
857
858# Installation directory options.
859# These are left unexpanded so users can "make install exec_prefix=/foo"
860# and all the variables that are supposed to be based on exec_prefix
861# by default will actually change.
862# Use braces instead of parens because sh, perl, etc. also accept them.
863# (The list follows the same order as the GNU Coding Standards.)
864bindir='${exec_prefix}/bin'
865sbindir='${exec_prefix}/sbin'
866libexecdir='${exec_prefix}/libexec'
867datarootdir='${prefix}/share'
868datadir='${datarootdir}'
869sysconfdir='${prefix}/etc'
870sharedstatedir='${prefix}/com'
871localstatedir='${prefix}/var'
872includedir='${prefix}/include'
873oldincludedir='/usr/include'
874docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
875infodir='${datarootdir}/info'
876htmldir='${docdir}'
877dvidir='${docdir}'
878pdfdir='${docdir}'
879psdir='${docdir}'
880libdir='${exec_prefix}/lib'
881localedir='${datarootdir}/locale'
882mandir='${datarootdir}/man'
883
884ac_prev=
885ac_dashdash=
886for ac_option
887do
888  # If the previous option needs an argument, assign it.
889  if test -n "$ac_prev"; then
890    eval $ac_prev=\$ac_option
891    ac_prev=
892    continue
893  fi
894
895  case $ac_option in
896  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
897  *=)   ac_optarg= ;;
898  *)    ac_optarg=yes ;;
899  esac
900
901  # Accept the important Cygnus configure options, so we can diagnose typos.
902
903  case $ac_dashdash$ac_option in
904  --)
905    ac_dashdash=yes ;;
906
907  -bindir | --bindir | --bindi | --bind | --bin | --bi)
908    ac_prev=bindir ;;
909  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
910    bindir=$ac_optarg ;;
911
912  -build | --build | --buil | --bui | --bu)
913    ac_prev=build_alias ;;
914  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
915    build_alias=$ac_optarg ;;
916
917  -cache-file | --cache-file | --cache-fil | --cache-fi \
918  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
919    ac_prev=cache_file ;;
920  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
921  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
922    cache_file=$ac_optarg ;;
923
924  --config-cache | -C)
925    cache_file=config.cache ;;
926
927  -datadir | --datadir | --datadi | --datad)
928    ac_prev=datadir ;;
929  -datadir=* | --datadir=* | --datadi=* | --datad=*)
930    datadir=$ac_optarg ;;
931
932  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
933  | --dataroo | --dataro | --datar)
934    ac_prev=datarootdir ;;
935  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
936  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
937    datarootdir=$ac_optarg ;;
938
939  -disable-* | --disable-*)
940    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
941    # Reject names that are not valid shell variable names.
942    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
943      as_fn_error $? "invalid feature name: $ac_useropt"
944    ac_useropt_orig=$ac_useropt
945    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
946    case $ac_user_opts in
947      *"
948"enable_$ac_useropt"
949"*) ;;
950      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
951	 ac_unrecognized_sep=', ';;
952    esac
953    eval enable_$ac_useropt=no ;;
954
955  -docdir | --docdir | --docdi | --doc | --do)
956    ac_prev=docdir ;;
957  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
958    docdir=$ac_optarg ;;
959
960  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
961    ac_prev=dvidir ;;
962  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
963    dvidir=$ac_optarg ;;
964
965  -enable-* | --enable-*)
966    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
967    # Reject names that are not valid shell variable names.
968    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
969      as_fn_error $? "invalid feature name: $ac_useropt"
970    ac_useropt_orig=$ac_useropt
971    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
972    case $ac_user_opts in
973      *"
974"enable_$ac_useropt"
975"*) ;;
976      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
977	 ac_unrecognized_sep=', ';;
978    esac
979    eval enable_$ac_useropt=\$ac_optarg ;;
980
981  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
982  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
983  | --exec | --exe | --ex)
984    ac_prev=exec_prefix ;;
985  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
986  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
987  | --exec=* | --exe=* | --ex=*)
988    exec_prefix=$ac_optarg ;;
989
990  -gas | --gas | --ga | --g)
991    # Obsolete; use --with-gas.
992    with_gas=yes ;;
993
994  -help | --help | --hel | --he | -h)
995    ac_init_help=long ;;
996  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
997    ac_init_help=recursive ;;
998  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
999    ac_init_help=short ;;
1000
1001  -host | --host | --hos | --ho)
1002    ac_prev=host_alias ;;
1003  -host=* | --host=* | --hos=* | --ho=*)
1004    host_alias=$ac_optarg ;;
1005
1006  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1007    ac_prev=htmldir ;;
1008  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1009  | --ht=*)
1010    htmldir=$ac_optarg ;;
1011
1012  -includedir | --includedir | --includedi | --included | --include \
1013  | --includ | --inclu | --incl | --inc)
1014    ac_prev=includedir ;;
1015  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1016  | --includ=* | --inclu=* | --incl=* | --inc=*)
1017    includedir=$ac_optarg ;;
1018
1019  -infodir | --infodir | --infodi | --infod | --info | --inf)
1020    ac_prev=infodir ;;
1021  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1022    infodir=$ac_optarg ;;
1023
1024  -libdir | --libdir | --libdi | --libd)
1025    ac_prev=libdir ;;
1026  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1027    libdir=$ac_optarg ;;
1028
1029  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1030  | --libexe | --libex | --libe)
1031    ac_prev=libexecdir ;;
1032  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1033  | --libexe=* | --libex=* | --libe=*)
1034    libexecdir=$ac_optarg ;;
1035
1036  -localedir | --localedir | --localedi | --localed | --locale)
1037    ac_prev=localedir ;;
1038  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1039    localedir=$ac_optarg ;;
1040
1041  -localstatedir | --localstatedir | --localstatedi | --localstated \
1042  | --localstate | --localstat | --localsta | --localst | --locals)
1043    ac_prev=localstatedir ;;
1044  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1045  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1046    localstatedir=$ac_optarg ;;
1047
1048  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1049    ac_prev=mandir ;;
1050  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1051    mandir=$ac_optarg ;;
1052
1053  -nfp | --nfp | --nf)
1054    # Obsolete; use --without-fp.
1055    with_fp=no ;;
1056
1057  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1058  | --no-cr | --no-c | -n)
1059    no_create=yes ;;
1060
1061  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1062  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1063    no_recursion=yes ;;
1064
1065  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1066  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1067  | --oldin | --oldi | --old | --ol | --o)
1068    ac_prev=oldincludedir ;;
1069  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1070  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1071  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1072    oldincludedir=$ac_optarg ;;
1073
1074  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1075    ac_prev=prefix ;;
1076  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1077    prefix=$ac_optarg ;;
1078
1079  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1080  | --program-pre | --program-pr | --program-p)
1081    ac_prev=program_prefix ;;
1082  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1083  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1084    program_prefix=$ac_optarg ;;
1085
1086  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1087  | --program-suf | --program-su | --program-s)
1088    ac_prev=program_suffix ;;
1089  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1090  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1091    program_suffix=$ac_optarg ;;
1092
1093  -program-transform-name | --program-transform-name \
1094  | --program-transform-nam | --program-transform-na \
1095  | --program-transform-n | --program-transform- \
1096  | --program-transform | --program-transfor \
1097  | --program-transfo | --program-transf \
1098  | --program-trans | --program-tran \
1099  | --progr-tra | --program-tr | --program-t)
1100    ac_prev=program_transform_name ;;
1101  -program-transform-name=* | --program-transform-name=* \
1102  | --program-transform-nam=* | --program-transform-na=* \
1103  | --program-transform-n=* | --program-transform-=* \
1104  | --program-transform=* | --program-transfor=* \
1105  | --program-transfo=* | --program-transf=* \
1106  | --program-trans=* | --program-tran=* \
1107  | --progr-tra=* | --program-tr=* | --program-t=*)
1108    program_transform_name=$ac_optarg ;;
1109
1110  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1111    ac_prev=pdfdir ;;
1112  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1113    pdfdir=$ac_optarg ;;
1114
1115  -psdir | --psdir | --psdi | --psd | --ps)
1116    ac_prev=psdir ;;
1117  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1118    psdir=$ac_optarg ;;
1119
1120  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1121  | -silent | --silent | --silen | --sile | --sil)
1122    silent=yes ;;
1123
1124  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1125    ac_prev=sbindir ;;
1126  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1127  | --sbi=* | --sb=*)
1128    sbindir=$ac_optarg ;;
1129
1130  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1131  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1132  | --sharedst | --shareds | --shared | --share | --shar \
1133  | --sha | --sh)
1134    ac_prev=sharedstatedir ;;
1135  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1136  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1137  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1138  | --sha=* | --sh=*)
1139    sharedstatedir=$ac_optarg ;;
1140
1141  -site | --site | --sit)
1142    ac_prev=site ;;
1143  -site=* | --site=* | --sit=*)
1144    site=$ac_optarg ;;
1145
1146  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1147    ac_prev=srcdir ;;
1148  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1149    srcdir=$ac_optarg ;;
1150
1151  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1152  | --syscon | --sysco | --sysc | --sys | --sy)
1153    ac_prev=sysconfdir ;;
1154  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1155  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1156    sysconfdir=$ac_optarg ;;
1157
1158  -target | --target | --targe | --targ | --tar | --ta | --t)
1159    ac_prev=target_alias ;;
1160  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1161    target_alias=$ac_optarg ;;
1162
1163  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1164    verbose=yes ;;
1165
1166  -version | --version | --versio | --versi | --vers | -V)
1167    ac_init_version=: ;;
1168
1169  -with-* | --with-*)
1170    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1171    # Reject names that are not valid shell variable names.
1172    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1173      as_fn_error $? "invalid package name: $ac_useropt"
1174    ac_useropt_orig=$ac_useropt
1175    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1176    case $ac_user_opts in
1177      *"
1178"with_$ac_useropt"
1179"*) ;;
1180      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1181	 ac_unrecognized_sep=', ';;
1182    esac
1183    eval with_$ac_useropt=\$ac_optarg ;;
1184
1185  -without-* | --without-*)
1186    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1187    # Reject names that are not valid shell variable names.
1188    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1189      as_fn_error $? "invalid package name: $ac_useropt"
1190    ac_useropt_orig=$ac_useropt
1191    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1192    case $ac_user_opts in
1193      *"
1194"with_$ac_useropt"
1195"*) ;;
1196      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1197	 ac_unrecognized_sep=', ';;
1198    esac
1199    eval with_$ac_useropt=no ;;
1200
1201  --x)
1202    # Obsolete; use --with-x.
1203    with_x=yes ;;
1204
1205  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1206  | --x-incl | --x-inc | --x-in | --x-i)
1207    ac_prev=x_includes ;;
1208  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1209  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1210    x_includes=$ac_optarg ;;
1211
1212  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1213  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1214    ac_prev=x_libraries ;;
1215  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1216  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1217    x_libraries=$ac_optarg ;;
1218
1219  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1220Try \`$0 --help' for more information"
1221    ;;
1222
1223  *=*)
1224    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1225    # Reject names that are not valid shell variable names.
1226    case $ac_envvar in #(
1227      '' | [0-9]* | *[!_$as_cr_alnum]* )
1228      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1229    esac
1230    eval $ac_envvar=\$ac_optarg
1231    export $ac_envvar ;;
1232
1233  *)
1234    # FIXME: should be removed in autoconf 3.0.
1235    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1236    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1237      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1238    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1239    ;;
1240
1241  esac
1242done
1243
1244if test -n "$ac_prev"; then
1245  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1246  as_fn_error $? "missing argument to $ac_option"
1247fi
1248
1249if test -n "$ac_unrecognized_opts"; then
1250  case $enable_option_checking in
1251    no) ;;
1252    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1253    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1254  esac
1255fi
1256
1257# Check all directory arguments for consistency.
1258for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1259		datadir sysconfdir sharedstatedir localstatedir includedir \
1260		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1261		libdir localedir mandir
1262do
1263  eval ac_val=\$$ac_var
1264  # Remove trailing slashes.
1265  case $ac_val in
1266    */ )
1267      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1268      eval $ac_var=\$ac_val;;
1269  esac
1270  # Be sure to have absolute directory names.
1271  case $ac_val in
1272    [\\/$]* | ?:[\\/]* )  continue;;
1273    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1274  esac
1275  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1276done
1277
1278# There might be people who depend on the old broken behavior: `$host'
1279# used to hold the argument of --host etc.
1280# FIXME: To remove some day.
1281build=$build_alias
1282host=$host_alias
1283target=$target_alias
1284
1285# FIXME: To remove some day.
1286if test "x$host_alias" != x; then
1287  if test "x$build_alias" = x; then
1288    cross_compiling=maybe
1289  elif test "x$build_alias" != "x$host_alias"; then
1290    cross_compiling=yes
1291  fi
1292fi
1293
1294ac_tool_prefix=
1295test -n "$host_alias" && ac_tool_prefix=$host_alias-
1296
1297test "$silent" = yes && exec 6>/dev/null
1298
1299
1300ac_pwd=`pwd` && test -n "$ac_pwd" &&
1301ac_ls_di=`ls -di .` &&
1302ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1303  as_fn_error $? "working directory cannot be determined"
1304test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1305  as_fn_error $? "pwd does not report name of working directory"
1306
1307
1308# Find the source files, if location was not specified.
1309if test -z "$srcdir"; then
1310  ac_srcdir_defaulted=yes
1311  # Try the directory containing this script, then the parent directory.
1312  ac_confdir=`$as_dirname -- "$as_myself" ||
1313$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1314	 X"$as_myself" : 'X\(//\)[^/]' \| \
1315	 X"$as_myself" : 'X\(//\)$' \| \
1316	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1317$as_echo X"$as_myself" |
1318    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1319	    s//\1/
1320	    q
1321	  }
1322	  /^X\(\/\/\)[^/].*/{
1323	    s//\1/
1324	    q
1325	  }
1326	  /^X\(\/\/\)$/{
1327	    s//\1/
1328	    q
1329	  }
1330	  /^X\(\/\).*/{
1331	    s//\1/
1332	    q
1333	  }
1334	  s/.*/./; q'`
1335  srcdir=$ac_confdir
1336  if test ! -r "$srcdir/$ac_unique_file"; then
1337    srcdir=..
1338  fi
1339else
1340  ac_srcdir_defaulted=no
1341fi
1342if test ! -r "$srcdir/$ac_unique_file"; then
1343  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1344  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1345fi
1346ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1347ac_abs_confdir=`(
1348	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1349	pwd)`
1350# When building in place, set srcdir=.
1351if test "$ac_abs_confdir" = "$ac_pwd"; then
1352  srcdir=.
1353fi
1354# Remove unnecessary trailing slashes from srcdir.
1355# Double slashes in file names in object file debugging info
1356# mess up M-x gdb in Emacs.
1357case $srcdir in
1358*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1359esac
1360for ac_var in $ac_precious_vars; do
1361  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1362  eval ac_env_${ac_var}_value=\$${ac_var}
1363  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1364  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1365done
1366
1367#
1368# Report the --help message.
1369#
1370if test "$ac_init_help" = "long"; then
1371  # Omit some internal or obsolete options to make the list less imposing.
1372  # This message is too long to be a string in the A/UX 3.1 sh.
1373  cat <<_ACEOF
1374\`configure' configures binutils 2.31.1 to adapt to many kinds of systems.
1375
1376Usage: $0 [OPTION]... [VAR=VALUE]...
1377
1378To assign environment variables (e.g., CC, CFLAGS...), specify them as
1379VAR=VALUE.  See below for descriptions of some of the useful variables.
1380
1381Defaults for the options are specified in brackets.
1382
1383Configuration:
1384  -h, --help              display this help and exit
1385      --help=short        display options specific to this package
1386      --help=recursive    display the short help of all the included packages
1387  -V, --version           display version information and exit
1388  -q, --quiet, --silent   do not print \`checking ...' messages
1389      --cache-file=FILE   cache test results in FILE [disabled]
1390  -C, --config-cache      alias for \`--cache-file=config.cache'
1391  -n, --no-create         do not create output files
1392      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1393
1394Installation directories:
1395  --prefix=PREFIX         install architecture-independent files in PREFIX
1396                          [$ac_default_prefix]
1397  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1398                          [PREFIX]
1399
1400By default, \`make install' will install all the files in
1401\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1402an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1403for instance \`--prefix=\$HOME'.
1404
1405For better control, use the options below.
1406
1407Fine tuning of the installation directories:
1408  --bindir=DIR            user executables [EPREFIX/bin]
1409  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1410  --libexecdir=DIR        program executables [EPREFIX/libexec]
1411  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1412  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1413  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1414  --libdir=DIR            object code libraries [EPREFIX/lib]
1415  --includedir=DIR        C header files [PREFIX/include]
1416  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1417  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1418  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1419  --infodir=DIR           info documentation [DATAROOTDIR/info]
1420  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1421  --mandir=DIR            man documentation [DATAROOTDIR/man]
1422  --docdir=DIR            documentation root [DATAROOTDIR/doc/binutils]
1423  --htmldir=DIR           html documentation [DOCDIR]
1424  --dvidir=DIR            dvi documentation [DOCDIR]
1425  --pdfdir=DIR            pdf documentation [DOCDIR]
1426  --psdir=DIR             ps documentation [DOCDIR]
1427_ACEOF
1428
1429  cat <<\_ACEOF
1430
1431Program names:
1432  --program-prefix=PREFIX            prepend PREFIX to installed program names
1433  --program-suffix=SUFFIX            append SUFFIX to installed program names
1434  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1435
1436System types:
1437  --build=BUILD     configure for building on BUILD [guessed]
1438  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1439  --target=TARGET   configure for building compilers for TARGET [HOST]
1440_ACEOF
1441fi
1442
1443if test -n "$ac_init_help"; then
1444  case $ac_init_help in
1445     short | recursive ) echo "Configuration of binutils 2.31.1:";;
1446   esac
1447  cat <<\_ACEOF
1448
1449Optional Features:
1450  --disable-option-checking  ignore unrecognized --enable/--with options
1451  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1452  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1453  --enable-dependency-tracking
1454                          do not reject slow dependency extractors
1455  --disable-dependency-tracking
1456                          speeds up one-time build
1457  --enable-silent-rules   less verbose build output (undo: "make V=1")
1458  --disable-silent-rules  verbose build output (undo: "make V=0")
1459  --enable-shared[=PKGS]  build shared libraries [default=yes]
1460  --enable-static[=PKGS]  build static libraries [default=yes]
1461  --enable-fast-install[=PKGS]
1462                          optimize for fast installation [default=yes]
1463  --disable-libtool-lock  avoid locking (might break parallel builds)
1464  --enable-plugins        Enable support for plugins
1465  --disable-largefile     omit support for large files
1466  --enable-targets        alternative target configurations
1467  --enable-deterministic-archives
1468                          ar and ranlib default to -D behavior
1469  --disable-default-strings-all
1470                          strings defaults to --data behavior
1471  --enable-werror         treat compile warnings as errors
1472  --enable-build-warnings enable build-time compiler warnings
1473  --disable-nls           do not use Native Language Support
1474  --enable-maintainer-mode
1475                          enable make rules and dependencies not useful (and
1476                          sometimes confusing) to the casual installer
1477  --disable-rpath         do not hardcode runtime library paths
1478
1479Optional Packages:
1480  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1481  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1482  --with-pic              try to use only PIC/non-PIC objects [default=use
1483                          both]
1484  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1485  --with-system-zlib      use installed libz
1486  --with-gnu-ld           assume the C compiler uses GNU ld default=no
1487  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1488  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1489
1490Some influential environment variables:
1491  CC          C compiler command
1492  CFLAGS      C compiler flags
1493  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1494              nonstandard directory <lib dir>
1495  LIBS        libraries to pass to the linker, e.g. -l<library>
1496  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1497              you have headers in a nonstandard directory <include dir>
1498  CPP         C preprocessor
1499  YACC        The `Yet Another Compiler Compiler' implementation to use.
1500              Defaults to the first program found out of: `bison -y', `byacc',
1501              `yacc'.
1502  YFLAGS      The list of arguments that will be passed by default to $YACC.
1503              This script will default YFLAGS to the empty string to avoid a
1504              default value of `-d' given by some make applications.
1505
1506Use these variables to override the choices made by `configure' or to help
1507it to find libraries and programs with nonstandard names/locations.
1508
1509Report bugs to the package provider.
1510_ACEOF
1511ac_status=$?
1512fi
1513
1514if test "$ac_init_help" = "recursive"; then
1515  # If there are subdirs, report their specific --help.
1516  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1517    test -d "$ac_dir" ||
1518      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1519      continue
1520    ac_builddir=.
1521
1522case "$ac_dir" in
1523.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1524*)
1525  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1526  # A ".." for each directory in $ac_dir_suffix.
1527  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1528  case $ac_top_builddir_sub in
1529  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1530  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1531  esac ;;
1532esac
1533ac_abs_top_builddir=$ac_pwd
1534ac_abs_builddir=$ac_pwd$ac_dir_suffix
1535# for backward compatibility:
1536ac_top_builddir=$ac_top_build_prefix
1537
1538case $srcdir in
1539  .)  # We are building in place.
1540    ac_srcdir=.
1541    ac_top_srcdir=$ac_top_builddir_sub
1542    ac_abs_top_srcdir=$ac_pwd ;;
1543  [\\/]* | ?:[\\/]* )  # Absolute name.
1544    ac_srcdir=$srcdir$ac_dir_suffix;
1545    ac_top_srcdir=$srcdir
1546    ac_abs_top_srcdir=$srcdir ;;
1547  *) # Relative name.
1548    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1549    ac_top_srcdir=$ac_top_build_prefix$srcdir
1550    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1551esac
1552ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1553
1554    cd "$ac_dir" || { ac_status=$?; continue; }
1555    # Check for guested configure.
1556    if test -f "$ac_srcdir/configure.gnu"; then
1557      echo &&
1558      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1559    elif test -f "$ac_srcdir/configure"; then
1560      echo &&
1561      $SHELL "$ac_srcdir/configure" --help=recursive
1562    else
1563      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1564    fi || ac_status=$?
1565    cd "$ac_pwd" || { ac_status=$?; break; }
1566  done
1567fi
1568
1569test -n "$ac_init_help" && exit $ac_status
1570if $ac_init_version; then
1571  cat <<\_ACEOF
1572binutils configure 2.31.1
1573generated by GNU Autoconf 2.69
1574
1575Copyright (C) 2012 Free Software Foundation, Inc.
1576This configure script is free software; the Free Software Foundation
1577gives unlimited permission to copy, distribute and modify it.
1578_ACEOF
1579  exit
1580fi
1581
1582## ------------------------ ##
1583## Autoconf initialization. ##
1584## ------------------------ ##
1585
1586# ac_fn_c_try_compile LINENO
1587# --------------------------
1588# Try to compile conftest.$ac_ext, and return whether this succeeded.
1589ac_fn_c_try_compile ()
1590{
1591  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1592  rm -f conftest.$ac_objext
1593  if { { ac_try="$ac_compile"
1594case "(($ac_try" in
1595  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1596  *) ac_try_echo=$ac_try;;
1597esac
1598eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1599$as_echo "$ac_try_echo"; } >&5
1600  (eval "$ac_compile") 2>conftest.err
1601  ac_status=$?
1602  if test -s conftest.err; then
1603    grep -v '^ *+' conftest.err >conftest.er1
1604    cat conftest.er1 >&5
1605    mv -f conftest.er1 conftest.err
1606  fi
1607  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1608  test $ac_status = 0; } && {
1609	 test -z "$ac_c_werror_flag" ||
1610	 test ! -s conftest.err
1611       } && test -s conftest.$ac_objext; then :
1612  ac_retval=0
1613else
1614  $as_echo "$as_me: failed program was:" >&5
1615sed 's/^/| /' conftest.$ac_ext >&5
1616
1617	ac_retval=1
1618fi
1619  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1620  as_fn_set_status $ac_retval
1621
1622} # ac_fn_c_try_compile
1623
1624# ac_fn_c_try_link LINENO
1625# -----------------------
1626# Try to link conftest.$ac_ext, and return whether this succeeded.
1627ac_fn_c_try_link ()
1628{
1629  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1630  rm -f conftest.$ac_objext conftest$ac_exeext
1631  if { { ac_try="$ac_link"
1632case "(($ac_try" in
1633  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1634  *) ac_try_echo=$ac_try;;
1635esac
1636eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1637$as_echo "$ac_try_echo"; } >&5
1638  (eval "$ac_link") 2>conftest.err
1639  ac_status=$?
1640  if test -s conftest.err; then
1641    grep -v '^ *+' conftest.err >conftest.er1
1642    cat conftest.er1 >&5
1643    mv -f conftest.er1 conftest.err
1644  fi
1645  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1646  test $ac_status = 0; } && {
1647	 test -z "$ac_c_werror_flag" ||
1648	 test ! -s conftest.err
1649       } && test -s conftest$ac_exeext && {
1650	 test "$cross_compiling" = yes ||
1651	 test -x conftest$ac_exeext
1652       }; then :
1653  ac_retval=0
1654else
1655  $as_echo "$as_me: failed program was:" >&5
1656sed 's/^/| /' conftest.$ac_ext >&5
1657
1658	ac_retval=1
1659fi
1660  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1661  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1662  # interfere with the next link command; also delete a directory that is
1663  # left behind by Apple's compiler.  We do this before executing the actions.
1664  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1665  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1666  as_fn_set_status $ac_retval
1667
1668} # ac_fn_c_try_link
1669
1670# ac_fn_c_try_cpp LINENO
1671# ----------------------
1672# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1673ac_fn_c_try_cpp ()
1674{
1675  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1676  if { { ac_try="$ac_cpp conftest.$ac_ext"
1677case "(($ac_try" in
1678  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1679  *) ac_try_echo=$ac_try;;
1680esac
1681eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1682$as_echo "$ac_try_echo"; } >&5
1683  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1684  ac_status=$?
1685  if test -s conftest.err; then
1686    grep -v '^ *+' conftest.err >conftest.er1
1687    cat conftest.er1 >&5
1688    mv -f conftest.er1 conftest.err
1689  fi
1690  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1691  test $ac_status = 0; } > conftest.i && {
1692	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1693	 test ! -s conftest.err
1694       }; then :
1695  ac_retval=0
1696else
1697  $as_echo "$as_me: failed program was:" >&5
1698sed 's/^/| /' conftest.$ac_ext >&5
1699
1700    ac_retval=1
1701fi
1702  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1703  as_fn_set_status $ac_retval
1704
1705} # ac_fn_c_try_cpp
1706
1707# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1708# -------------------------------------------------------
1709# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1710# the include files in INCLUDES and setting the cache variable VAR
1711# accordingly.
1712ac_fn_c_check_header_mongrel ()
1713{
1714  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1715  if eval \${$3+:} false; then :
1716  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1717$as_echo_n "checking for $2... " >&6; }
1718if eval \${$3+:} false; then :
1719  $as_echo_n "(cached) " >&6
1720fi
1721eval ac_res=\$$3
1722	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1723$as_echo "$ac_res" >&6; }
1724else
1725  # Is the header compilable?
1726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1727$as_echo_n "checking $2 usability... " >&6; }
1728cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1729/* end confdefs.h.  */
1730$4
1731#include <$2>
1732_ACEOF
1733if ac_fn_c_try_compile "$LINENO"; then :
1734  ac_header_compiler=yes
1735else
1736  ac_header_compiler=no
1737fi
1738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1740$as_echo "$ac_header_compiler" >&6; }
1741
1742# Is the header present?
1743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1744$as_echo_n "checking $2 presence... " >&6; }
1745cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1746/* end confdefs.h.  */
1747#include <$2>
1748_ACEOF
1749if ac_fn_c_try_cpp "$LINENO"; then :
1750  ac_header_preproc=yes
1751else
1752  ac_header_preproc=no
1753fi
1754rm -f conftest.err conftest.i conftest.$ac_ext
1755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1756$as_echo "$ac_header_preproc" >&6; }
1757
1758# So?  What about this header?
1759case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1760  yes:no: )
1761    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1762$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1763    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1764$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1765    ;;
1766  no:yes:* )
1767    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1768$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1769    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1770$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1771    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1772$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1773    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1774$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1775    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1776$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1777    ;;
1778esac
1779  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1780$as_echo_n "checking for $2... " >&6; }
1781if eval \${$3+:} false; then :
1782  $as_echo_n "(cached) " >&6
1783else
1784  eval "$3=\$ac_header_compiler"
1785fi
1786eval ac_res=\$$3
1787	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1788$as_echo "$ac_res" >&6; }
1789fi
1790  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1791
1792} # ac_fn_c_check_header_mongrel
1793
1794# ac_fn_c_try_run LINENO
1795# ----------------------
1796# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1797# that executables *can* be run.
1798ac_fn_c_try_run ()
1799{
1800  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1801  if { { ac_try="$ac_link"
1802case "(($ac_try" in
1803  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1804  *) ac_try_echo=$ac_try;;
1805esac
1806eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1807$as_echo "$ac_try_echo"; } >&5
1808  (eval "$ac_link") 2>&5
1809  ac_status=$?
1810  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1811  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1812  { { case "(($ac_try" in
1813  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1814  *) ac_try_echo=$ac_try;;
1815esac
1816eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1817$as_echo "$ac_try_echo"; } >&5
1818  (eval "$ac_try") 2>&5
1819  ac_status=$?
1820  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1821  test $ac_status = 0; }; }; then :
1822  ac_retval=0
1823else
1824  $as_echo "$as_me: program exited with status $ac_status" >&5
1825       $as_echo "$as_me: failed program was:" >&5
1826sed 's/^/| /' conftest.$ac_ext >&5
1827
1828       ac_retval=$ac_status
1829fi
1830  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1831  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1832  as_fn_set_status $ac_retval
1833
1834} # ac_fn_c_try_run
1835
1836# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1837# -------------------------------------------------------
1838# Tests whether HEADER exists and can be compiled using the include files in
1839# INCLUDES, setting the cache variable VAR accordingly.
1840ac_fn_c_check_header_compile ()
1841{
1842  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1843  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1844$as_echo_n "checking for $2... " >&6; }
1845if eval \${$3+:} false; then :
1846  $as_echo_n "(cached) " >&6
1847else
1848  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1849/* end confdefs.h.  */
1850$4
1851#include <$2>
1852_ACEOF
1853if ac_fn_c_try_compile "$LINENO"; then :
1854  eval "$3=yes"
1855else
1856  eval "$3=no"
1857fi
1858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1859fi
1860eval ac_res=\$$3
1861	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1862$as_echo "$ac_res" >&6; }
1863  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1864
1865} # ac_fn_c_check_header_compile
1866
1867# ac_fn_c_check_func LINENO FUNC VAR
1868# ----------------------------------
1869# Tests whether FUNC exists, setting the cache variable VAR accordingly
1870ac_fn_c_check_func ()
1871{
1872  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1873  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1874$as_echo_n "checking for $2... " >&6; }
1875if eval \${$3+:} false; then :
1876  $as_echo_n "(cached) " >&6
1877else
1878  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1879/* end confdefs.h.  */
1880/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1881   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1882#define $2 innocuous_$2
1883
1884/* System header to define __stub macros and hopefully few prototypes,
1885    which can conflict with char $2 (); below.
1886    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1887    <limits.h> exists even on freestanding compilers.  */
1888
1889#ifdef __STDC__
1890# include <limits.h>
1891#else
1892# include <assert.h>
1893#endif
1894
1895#undef $2
1896
1897/* Override any GCC internal prototype to avoid an error.
1898   Use char because int might match the return type of a GCC
1899   builtin and then its argument prototype would still apply.  */
1900#ifdef __cplusplus
1901extern "C"
1902#endif
1903char $2 ();
1904/* The GNU C library defines this for functions which it implements
1905    to always fail with ENOSYS.  Some functions are actually named
1906    something starting with __ and the normal name is an alias.  */
1907#if defined __stub_$2 || defined __stub___$2
1908choke me
1909#endif
1910
1911int
1912main ()
1913{
1914return $2 ();
1915  ;
1916  return 0;
1917}
1918_ACEOF
1919if ac_fn_c_try_link "$LINENO"; then :
1920  eval "$3=yes"
1921else
1922  eval "$3=no"
1923fi
1924rm -f core conftest.err conftest.$ac_objext \
1925    conftest$ac_exeext conftest.$ac_ext
1926fi
1927eval ac_res=\$$3
1928	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1929$as_echo "$ac_res" >&6; }
1930  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1931
1932} # ac_fn_c_check_func
1933
1934# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1935# --------------------------------------------
1936# Tries to find the compile-time value of EXPR in a program that includes
1937# INCLUDES, setting VAR accordingly. Returns whether the value could be
1938# computed
1939ac_fn_c_compute_int ()
1940{
1941  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1942  if test "$cross_compiling" = yes; then
1943    # Depending upon the size, compute the lo and hi bounds.
1944cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1945/* end confdefs.h.  */
1946$4
1947int
1948main ()
1949{
1950static int test_array [1 - 2 * !(($2) >= 0)];
1951test_array [0] = 0;
1952return test_array [0];
1953
1954  ;
1955  return 0;
1956}
1957_ACEOF
1958if ac_fn_c_try_compile "$LINENO"; then :
1959  ac_lo=0 ac_mid=0
1960  while :; do
1961    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1962/* end confdefs.h.  */
1963$4
1964int
1965main ()
1966{
1967static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1968test_array [0] = 0;
1969return test_array [0];
1970
1971  ;
1972  return 0;
1973}
1974_ACEOF
1975if ac_fn_c_try_compile "$LINENO"; then :
1976  ac_hi=$ac_mid; break
1977else
1978  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1979			if test $ac_lo -le $ac_mid; then
1980			  ac_lo= ac_hi=
1981			  break
1982			fi
1983			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1984fi
1985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1986  done
1987else
1988  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1989/* end confdefs.h.  */
1990$4
1991int
1992main ()
1993{
1994static int test_array [1 - 2 * !(($2) < 0)];
1995test_array [0] = 0;
1996return test_array [0];
1997
1998  ;
1999  return 0;
2000}
2001_ACEOF
2002if ac_fn_c_try_compile "$LINENO"; then :
2003  ac_hi=-1 ac_mid=-1
2004  while :; do
2005    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2006/* end confdefs.h.  */
2007$4
2008int
2009main ()
2010{
2011static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2012test_array [0] = 0;
2013return test_array [0];
2014
2015  ;
2016  return 0;
2017}
2018_ACEOF
2019if ac_fn_c_try_compile "$LINENO"; then :
2020  ac_lo=$ac_mid; break
2021else
2022  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2023			if test $ac_mid -le $ac_hi; then
2024			  ac_lo= ac_hi=
2025			  break
2026			fi
2027			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2028fi
2029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2030  done
2031else
2032  ac_lo= ac_hi=
2033fi
2034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2035fi
2036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2037# Binary search between lo and hi bounds.
2038while test "x$ac_lo" != "x$ac_hi"; do
2039  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2040  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2041/* end confdefs.h.  */
2042$4
2043int
2044main ()
2045{
2046static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2047test_array [0] = 0;
2048return test_array [0];
2049
2050  ;
2051  return 0;
2052}
2053_ACEOF
2054if ac_fn_c_try_compile "$LINENO"; then :
2055  ac_hi=$ac_mid
2056else
2057  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2058fi
2059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2060done
2061case $ac_lo in #((
2062?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2063'') ac_retval=1 ;;
2064esac
2065  else
2066    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2067/* end confdefs.h.  */
2068$4
2069static long int longval () { return $2; }
2070static unsigned long int ulongval () { return $2; }
2071#include <stdio.h>
2072#include <stdlib.h>
2073int
2074main ()
2075{
2076
2077  FILE *f = fopen ("conftest.val", "w");
2078  if (! f)
2079    return 1;
2080  if (($2) < 0)
2081    {
2082      long int i = longval ();
2083      if (i != ($2))
2084	return 1;
2085      fprintf (f, "%ld", i);
2086    }
2087  else
2088    {
2089      unsigned long int i = ulongval ();
2090      if (i != ($2))
2091	return 1;
2092      fprintf (f, "%lu", i);
2093    }
2094  /* Do not output a trailing newline, as this causes \r\n confusion
2095     on some platforms.  */
2096  return ferror (f) || fclose (f) != 0;
2097
2098  ;
2099  return 0;
2100}
2101_ACEOF
2102if ac_fn_c_try_run "$LINENO"; then :
2103  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2104else
2105  ac_retval=1
2106fi
2107rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2108  conftest.$ac_objext conftest.beam conftest.$ac_ext
2109rm -f conftest.val
2110
2111  fi
2112  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2113  as_fn_set_status $ac_retval
2114
2115} # ac_fn_c_compute_int
2116
2117# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2118# -------------------------------------------
2119# Tests whether TYPE exists after having included INCLUDES, setting cache
2120# variable VAR accordingly.
2121ac_fn_c_check_type ()
2122{
2123  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2124  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2125$as_echo_n "checking for $2... " >&6; }
2126if eval \${$3+:} false; then :
2127  $as_echo_n "(cached) " >&6
2128else
2129  eval "$3=no"
2130  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2131/* end confdefs.h.  */
2132$4
2133int
2134main ()
2135{
2136if (sizeof ($2))
2137	 return 0;
2138  ;
2139  return 0;
2140}
2141_ACEOF
2142if ac_fn_c_try_compile "$LINENO"; then :
2143  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2144/* end confdefs.h.  */
2145$4
2146int
2147main ()
2148{
2149if (sizeof (($2)))
2150	    return 0;
2151  ;
2152  return 0;
2153}
2154_ACEOF
2155if ac_fn_c_try_compile "$LINENO"; then :
2156
2157else
2158  eval "$3=yes"
2159fi
2160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2161fi
2162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2163fi
2164eval ac_res=\$$3
2165	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2166$as_echo "$ac_res" >&6; }
2167  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2168
2169} # ac_fn_c_check_type
2170
2171# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2172# ---------------------------------------------
2173# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2174# accordingly.
2175ac_fn_c_check_decl ()
2176{
2177  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2178  as_decl_name=`echo $2|sed 's/ *(.*//'`
2179  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2180  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2181$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2182if eval \${$3+:} false; then :
2183  $as_echo_n "(cached) " >&6
2184else
2185  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2186/* end confdefs.h.  */
2187$4
2188int
2189main ()
2190{
2191#ifndef $as_decl_name
2192#ifdef __cplusplus
2193  (void) $as_decl_use;
2194#else
2195  (void) $as_decl_name;
2196#endif
2197#endif
2198
2199  ;
2200  return 0;
2201}
2202_ACEOF
2203if ac_fn_c_try_compile "$LINENO"; then :
2204  eval "$3=yes"
2205else
2206  eval "$3=no"
2207fi
2208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2209fi
2210eval ac_res=\$$3
2211	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2212$as_echo "$ac_res" >&6; }
2213  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2214
2215} # ac_fn_c_check_decl
2216cat >config.log <<_ACEOF
2217This file contains any messages produced by compilers while
2218running configure, to aid debugging if configure makes a mistake.
2219
2220It was created by binutils $as_me 2.31.1, which was
2221generated by GNU Autoconf 2.69.  Invocation command line was
2222
2223  $ $0 $@
2224
2225_ACEOF
2226exec 5>>config.log
2227{
2228cat <<_ASUNAME
2229## --------- ##
2230## Platform. ##
2231## --------- ##
2232
2233hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2234uname -m = `(uname -m) 2>/dev/null || echo unknown`
2235uname -r = `(uname -r) 2>/dev/null || echo unknown`
2236uname -s = `(uname -s) 2>/dev/null || echo unknown`
2237uname -v = `(uname -v) 2>/dev/null || echo unknown`
2238
2239/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2240/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2241
2242/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2243/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2244/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2245/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2246/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2247/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2248/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2249
2250_ASUNAME
2251
2252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2253for as_dir in $PATH
2254do
2255  IFS=$as_save_IFS
2256  test -z "$as_dir" && as_dir=.
2257    $as_echo "PATH: $as_dir"
2258  done
2259IFS=$as_save_IFS
2260
2261} >&5
2262
2263cat >&5 <<_ACEOF
2264
2265
2266## ----------- ##
2267## Core tests. ##
2268## ----------- ##
2269
2270_ACEOF
2271
2272
2273# Keep a trace of the command line.
2274# Strip out --no-create and --no-recursion so they do not pile up.
2275# Strip out --silent because we don't want to record it for future runs.
2276# Also quote any args containing shell meta-characters.
2277# Make two passes to allow for proper duplicate-argument suppression.
2278ac_configure_args=
2279ac_configure_args0=
2280ac_configure_args1=
2281ac_must_keep_next=false
2282for ac_pass in 1 2
2283do
2284  for ac_arg
2285  do
2286    case $ac_arg in
2287    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2288    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2289    | -silent | --silent | --silen | --sile | --sil)
2290      continue ;;
2291    *\'*)
2292      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2293    esac
2294    case $ac_pass in
2295    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2296    2)
2297      as_fn_append ac_configure_args1 " '$ac_arg'"
2298      if test $ac_must_keep_next = true; then
2299	ac_must_keep_next=false # Got value, back to normal.
2300      else
2301	case $ac_arg in
2302	  *=* | --config-cache | -C | -disable-* | --disable-* \
2303	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2304	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2305	  | -with-* | --with-* | -without-* | --without-* | --x)
2306	    case "$ac_configure_args0 " in
2307	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2308	    esac
2309	    ;;
2310	  -* ) ac_must_keep_next=true ;;
2311	esac
2312      fi
2313      as_fn_append ac_configure_args " '$ac_arg'"
2314      ;;
2315    esac
2316  done
2317done
2318{ ac_configure_args0=; unset ac_configure_args0;}
2319{ ac_configure_args1=; unset ac_configure_args1;}
2320
2321# When interrupted or exit'd, cleanup temporary files, and complete
2322# config.log.  We remove comments because anyway the quotes in there
2323# would cause problems or look ugly.
2324# WARNING: Use '\'' to represent an apostrophe within the trap.
2325# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2326trap 'exit_status=$?
2327  # Save into config.log some information that might help in debugging.
2328  {
2329    echo
2330
2331    $as_echo "## ---------------- ##
2332## Cache variables. ##
2333## ---------------- ##"
2334    echo
2335    # The following way of writing the cache mishandles newlines in values,
2336(
2337  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2338    eval ac_val=\$$ac_var
2339    case $ac_val in #(
2340    *${as_nl}*)
2341      case $ac_var in #(
2342      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2343$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2344      esac
2345      case $ac_var in #(
2346      _ | IFS | as_nl) ;; #(
2347      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2348      *) { eval $ac_var=; unset $ac_var;} ;;
2349      esac ;;
2350    esac
2351  done
2352  (set) 2>&1 |
2353    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2354    *${as_nl}ac_space=\ *)
2355      sed -n \
2356	"s/'\''/'\''\\\\'\'''\''/g;
2357	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2358      ;; #(
2359    *)
2360      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2361      ;;
2362    esac |
2363    sort
2364)
2365    echo
2366
2367    $as_echo "## ----------------- ##
2368## Output variables. ##
2369## ----------------- ##"
2370    echo
2371    for ac_var in $ac_subst_vars
2372    do
2373      eval ac_val=\$$ac_var
2374      case $ac_val in
2375      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2376      esac
2377      $as_echo "$ac_var='\''$ac_val'\''"
2378    done | sort
2379    echo
2380
2381    if test -n "$ac_subst_files"; then
2382      $as_echo "## ------------------- ##
2383## File substitutions. ##
2384## ------------------- ##"
2385      echo
2386      for ac_var in $ac_subst_files
2387      do
2388	eval ac_val=\$$ac_var
2389	case $ac_val in
2390	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2391	esac
2392	$as_echo "$ac_var='\''$ac_val'\''"
2393      done | sort
2394      echo
2395    fi
2396
2397    if test -s confdefs.h; then
2398      $as_echo "## ----------- ##
2399## confdefs.h. ##
2400## ----------- ##"
2401      echo
2402      cat confdefs.h
2403      echo
2404    fi
2405    test "$ac_signal" != 0 &&
2406      $as_echo "$as_me: caught signal $ac_signal"
2407    $as_echo "$as_me: exit $exit_status"
2408  } >&5
2409  rm -f core *.core core.conftest.* &&
2410    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2411    exit $exit_status
2412' 0
2413for ac_signal in 1 2 13 15; do
2414  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2415done
2416ac_signal=0
2417
2418# confdefs.h avoids OS command line length limits that DEFS can exceed.
2419rm -f -r conftest* confdefs.h
2420
2421$as_echo "/* confdefs.h */" > confdefs.h
2422
2423# Predefined preprocessor variables.
2424
2425cat >>confdefs.h <<_ACEOF
2426#define PACKAGE_NAME "$PACKAGE_NAME"
2427_ACEOF
2428
2429cat >>confdefs.h <<_ACEOF
2430#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2431_ACEOF
2432
2433cat >>confdefs.h <<_ACEOF
2434#define PACKAGE_VERSION "$PACKAGE_VERSION"
2435_ACEOF
2436
2437cat >>confdefs.h <<_ACEOF
2438#define PACKAGE_STRING "$PACKAGE_STRING"
2439_ACEOF
2440
2441cat >>confdefs.h <<_ACEOF
2442#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2443_ACEOF
2444
2445cat >>confdefs.h <<_ACEOF
2446#define PACKAGE_URL "$PACKAGE_URL"
2447_ACEOF
2448
2449
2450# Let the site file select an alternate cache file if it wants to.
2451# Prefer an explicitly selected file to automatically selected ones.
2452ac_site_file1=NONE
2453ac_site_file2=NONE
2454if test -n "$CONFIG_SITE"; then
2455  # We do not want a PATH search for config.site.
2456  case $CONFIG_SITE in #((
2457    -*)  ac_site_file1=./$CONFIG_SITE;;
2458    */*) ac_site_file1=$CONFIG_SITE;;
2459    *)   ac_site_file1=./$CONFIG_SITE;;
2460  esac
2461elif test "x$prefix" != xNONE; then
2462  ac_site_file1=$prefix/share/config.site
2463  ac_site_file2=$prefix/etc/config.site
2464else
2465  ac_site_file1=$ac_default_prefix/share/config.site
2466  ac_site_file2=$ac_default_prefix/etc/config.site
2467fi
2468for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2469do
2470  test "x$ac_site_file" = xNONE && continue
2471  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2472    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2473$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2474    sed 's/^/| /' "$ac_site_file" >&5
2475    . "$ac_site_file" \
2476      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2477$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2478as_fn_error $? "failed to load site script $ac_site_file
2479See \`config.log' for more details" "$LINENO" 5; }
2480  fi
2481done
2482
2483if test -r "$cache_file"; then
2484  # Some versions of bash will fail to source /dev/null (special files
2485  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2486  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2487    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2488$as_echo "$as_me: loading cache $cache_file" >&6;}
2489    case $cache_file in
2490      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2491      *)                      . "./$cache_file";;
2492    esac
2493  fi
2494else
2495  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2496$as_echo "$as_me: creating cache $cache_file" >&6;}
2497  >$cache_file
2498fi
2499
2500# Check that the precious variables saved in the cache have kept the same
2501# value.
2502ac_cache_corrupted=false
2503for ac_var in $ac_precious_vars; do
2504  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2505  eval ac_new_set=\$ac_env_${ac_var}_set
2506  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2507  eval ac_new_val=\$ac_env_${ac_var}_value
2508  case $ac_old_set,$ac_new_set in
2509    set,)
2510      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2511$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2512      ac_cache_corrupted=: ;;
2513    ,set)
2514      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2515$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2516      ac_cache_corrupted=: ;;
2517    ,);;
2518    *)
2519      if test "x$ac_old_val" != "x$ac_new_val"; then
2520	# differences in whitespace do not lead to failure.
2521	ac_old_val_w=`echo x $ac_old_val`
2522	ac_new_val_w=`echo x $ac_new_val`
2523	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2524	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2525$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2526	  ac_cache_corrupted=:
2527	else
2528	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2529$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2530	  eval $ac_var=\$ac_old_val
2531	fi
2532	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2533$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2534	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2535$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2536      fi;;
2537  esac
2538  # Pass precious variables to config.status.
2539  if test "$ac_new_set" = set; then
2540    case $ac_new_val in
2541    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2542    *) ac_arg=$ac_var=$ac_new_val ;;
2543    esac
2544    case " $ac_configure_args " in
2545      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2546      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2547    esac
2548  fi
2549done
2550if $ac_cache_corrupted; then
2551  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2552$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2553  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2554$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2555  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2556fi
2557## -------------------- ##
2558## Main body of script. ##
2559## -------------------- ##
2560
2561ac_ext=c
2562ac_cpp='$CPP $CPPFLAGS'
2563ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2564ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2565ac_compiler_gnu=$ac_cv_c_compiler_gnu
2566
2567
2568
2569
2570
2571
2572
2573ac_aux_dir=
2574for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2575  if test -f "$ac_dir/install-sh"; then
2576    ac_aux_dir=$ac_dir
2577    ac_install_sh="$ac_aux_dir/install-sh -c"
2578    break
2579  elif test -f "$ac_dir/install.sh"; then
2580    ac_aux_dir=$ac_dir
2581    ac_install_sh="$ac_aux_dir/install.sh -c"
2582    break
2583  elif test -f "$ac_dir/shtool"; then
2584    ac_aux_dir=$ac_dir
2585    ac_install_sh="$ac_aux_dir/shtool install -c"
2586    break
2587  fi
2588done
2589if test -z "$ac_aux_dir"; then
2590  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2591fi
2592
2593# These three variables are undocumented and unsupported,
2594# and are intended to be withdrawn in a future Autoconf release.
2595# They can cause serious problems if a builder's source tree is in a directory
2596# whose full name contains unusual characters.
2597ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2598ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2599ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2600
2601
2602# Make sure we can run config.sub.
2603$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2604  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2605
2606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2607$as_echo_n "checking build system type... " >&6; }
2608if ${ac_cv_build+:} false; then :
2609  $as_echo_n "(cached) " >&6
2610else
2611  ac_build_alias=$build_alias
2612test "x$ac_build_alias" = x &&
2613  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2614test "x$ac_build_alias" = x &&
2615  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2616ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2617  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2618
2619fi
2620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2621$as_echo "$ac_cv_build" >&6; }
2622case $ac_cv_build in
2623*-*-*) ;;
2624*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2625esac
2626build=$ac_cv_build
2627ac_save_IFS=$IFS; IFS='-'
2628set x $ac_cv_build
2629shift
2630build_cpu=$1
2631build_vendor=$2
2632shift; shift
2633# Remember, the first character of IFS is used to create $*,
2634# except with old shells:
2635build_os=$*
2636IFS=$ac_save_IFS
2637case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2638
2639
2640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2641$as_echo_n "checking host system type... " >&6; }
2642if ${ac_cv_host+:} false; then :
2643  $as_echo_n "(cached) " >&6
2644else
2645  if test "x$host_alias" = x; then
2646  ac_cv_host=$ac_cv_build
2647else
2648  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2649    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2650fi
2651
2652fi
2653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2654$as_echo "$ac_cv_host" >&6; }
2655case $ac_cv_host in
2656*-*-*) ;;
2657*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2658esac
2659host=$ac_cv_host
2660ac_save_IFS=$IFS; IFS='-'
2661set x $ac_cv_host
2662shift
2663host_cpu=$1
2664host_vendor=$2
2665shift; shift
2666# Remember, the first character of IFS is used to create $*,
2667# except with old shells:
2668host_os=$*
2669IFS=$ac_save_IFS
2670case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2671
2672
2673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2674$as_echo_n "checking target system type... " >&6; }
2675if ${ac_cv_target+:} false; then :
2676  $as_echo_n "(cached) " >&6
2677else
2678  if test "x$target_alias" = x; then
2679  ac_cv_target=$ac_cv_host
2680else
2681  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2682    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2683fi
2684
2685fi
2686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2687$as_echo "$ac_cv_target" >&6; }
2688case $ac_cv_target in
2689*-*-*) ;;
2690*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2691esac
2692target=$ac_cv_target
2693ac_save_IFS=$IFS; IFS='-'
2694set x $ac_cv_target
2695shift
2696target_cpu=$1
2697target_vendor=$2
2698shift; shift
2699# Remember, the first character of IFS is used to create $*,
2700# except with old shells:
2701target_os=$*
2702IFS=$ac_save_IFS
2703case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2704
2705
2706# The aliases save the names the user supplied, while $host etc.
2707# will get canonicalized.
2708test -n "$target_alias" &&
2709  test "$program_prefix$program_suffix$program_transform_name" = \
2710    NONENONEs,x,x, &&
2711  program_prefix=${target_alias}-
2712# Expand $ac_aux_dir to an absolute path.
2713am_aux_dir=`cd "$ac_aux_dir" && pwd`
2714
2715ac_ext=c
2716ac_cpp='$CPP $CPPFLAGS'
2717ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2718ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2719ac_compiler_gnu=$ac_cv_c_compiler_gnu
2720if test -n "$ac_tool_prefix"; then
2721  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2722set dummy ${ac_tool_prefix}gcc; ac_word=$2
2723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2724$as_echo_n "checking for $ac_word... " >&6; }
2725if ${ac_cv_prog_CC+:} false; then :
2726  $as_echo_n "(cached) " >&6
2727else
2728  if test -n "$CC"; then
2729  ac_cv_prog_CC="$CC" # Let the user override the test.
2730else
2731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2732for as_dir in $PATH
2733do
2734  IFS=$as_save_IFS
2735  test -z "$as_dir" && as_dir=.
2736    for ac_exec_ext in '' $ac_executable_extensions; do
2737  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2738    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2739    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2740    break 2
2741  fi
2742done
2743  done
2744IFS=$as_save_IFS
2745
2746fi
2747fi
2748CC=$ac_cv_prog_CC
2749if test -n "$CC"; then
2750  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2751$as_echo "$CC" >&6; }
2752else
2753  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2754$as_echo "no" >&6; }
2755fi
2756
2757
2758fi
2759if test -z "$ac_cv_prog_CC"; then
2760  ac_ct_CC=$CC
2761  # Extract the first word of "gcc", so it can be a program name with args.
2762set dummy gcc; ac_word=$2
2763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2764$as_echo_n "checking for $ac_word... " >&6; }
2765if ${ac_cv_prog_ac_ct_CC+:} false; then :
2766  $as_echo_n "(cached) " >&6
2767else
2768  if test -n "$ac_ct_CC"; then
2769  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2770else
2771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2772for as_dir in $PATH
2773do
2774  IFS=$as_save_IFS
2775  test -z "$as_dir" && as_dir=.
2776    for ac_exec_ext in '' $ac_executable_extensions; do
2777  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2778    ac_cv_prog_ac_ct_CC="gcc"
2779    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2780    break 2
2781  fi
2782done
2783  done
2784IFS=$as_save_IFS
2785
2786fi
2787fi
2788ac_ct_CC=$ac_cv_prog_ac_ct_CC
2789if test -n "$ac_ct_CC"; then
2790  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2791$as_echo "$ac_ct_CC" >&6; }
2792else
2793  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2794$as_echo "no" >&6; }
2795fi
2796
2797  if test "x$ac_ct_CC" = x; then
2798    CC=""
2799  else
2800    case $cross_compiling:$ac_tool_warned in
2801yes:)
2802{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2803$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2804ac_tool_warned=yes ;;
2805esac
2806    CC=$ac_ct_CC
2807  fi
2808else
2809  CC="$ac_cv_prog_CC"
2810fi
2811
2812if test -z "$CC"; then
2813          if test -n "$ac_tool_prefix"; then
2814    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2815set dummy ${ac_tool_prefix}cc; ac_word=$2
2816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2817$as_echo_n "checking for $ac_word... " >&6; }
2818if ${ac_cv_prog_CC+:} false; then :
2819  $as_echo_n "(cached) " >&6
2820else
2821  if test -n "$CC"; then
2822  ac_cv_prog_CC="$CC" # Let the user override the test.
2823else
2824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2825for as_dir in $PATH
2826do
2827  IFS=$as_save_IFS
2828  test -z "$as_dir" && as_dir=.
2829    for ac_exec_ext in '' $ac_executable_extensions; do
2830  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2831    ac_cv_prog_CC="${ac_tool_prefix}cc"
2832    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2833    break 2
2834  fi
2835done
2836  done
2837IFS=$as_save_IFS
2838
2839fi
2840fi
2841CC=$ac_cv_prog_CC
2842if test -n "$CC"; then
2843  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2844$as_echo "$CC" >&6; }
2845else
2846  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2847$as_echo "no" >&6; }
2848fi
2849
2850
2851  fi
2852fi
2853if test -z "$CC"; then
2854  # Extract the first word of "cc", so it can be a program name with args.
2855set dummy cc; ac_word=$2
2856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2857$as_echo_n "checking for $ac_word... " >&6; }
2858if ${ac_cv_prog_CC+:} false; then :
2859  $as_echo_n "(cached) " >&6
2860else
2861  if test -n "$CC"; then
2862  ac_cv_prog_CC="$CC" # Let the user override the test.
2863else
2864  ac_prog_rejected=no
2865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2866for as_dir in $PATH
2867do
2868  IFS=$as_save_IFS
2869  test -z "$as_dir" && as_dir=.
2870    for ac_exec_ext in '' $ac_executable_extensions; do
2871  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2872    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2873       ac_prog_rejected=yes
2874       continue
2875     fi
2876    ac_cv_prog_CC="cc"
2877    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2878    break 2
2879  fi
2880done
2881  done
2882IFS=$as_save_IFS
2883
2884if test $ac_prog_rejected = yes; then
2885  # We found a bogon in the path, so make sure we never use it.
2886  set dummy $ac_cv_prog_CC
2887  shift
2888  if test $# != 0; then
2889    # We chose a different compiler from the bogus one.
2890    # However, it has the same basename, so the bogon will be chosen
2891    # first if we set CC to just the basename; use the full file name.
2892    shift
2893    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2894  fi
2895fi
2896fi
2897fi
2898CC=$ac_cv_prog_CC
2899if test -n "$CC"; then
2900  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2901$as_echo "$CC" >&6; }
2902else
2903  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2904$as_echo "no" >&6; }
2905fi
2906
2907
2908fi
2909if test -z "$CC"; then
2910  if test -n "$ac_tool_prefix"; then
2911  for ac_prog in cl.exe
2912  do
2913    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2914set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2916$as_echo_n "checking for $ac_word... " >&6; }
2917if ${ac_cv_prog_CC+:} false; then :
2918  $as_echo_n "(cached) " >&6
2919else
2920  if test -n "$CC"; then
2921  ac_cv_prog_CC="$CC" # Let the user override the test.
2922else
2923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2924for as_dir in $PATH
2925do
2926  IFS=$as_save_IFS
2927  test -z "$as_dir" && as_dir=.
2928    for ac_exec_ext in '' $ac_executable_extensions; do
2929  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2930    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2931    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2932    break 2
2933  fi
2934done
2935  done
2936IFS=$as_save_IFS
2937
2938fi
2939fi
2940CC=$ac_cv_prog_CC
2941if test -n "$CC"; then
2942  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2943$as_echo "$CC" >&6; }
2944else
2945  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2946$as_echo "no" >&6; }
2947fi
2948
2949
2950    test -n "$CC" && break
2951  done
2952fi
2953if test -z "$CC"; then
2954  ac_ct_CC=$CC
2955  for ac_prog in cl.exe
2956do
2957  # Extract the first word of "$ac_prog", so it can be a program name with args.
2958set dummy $ac_prog; ac_word=$2
2959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2960$as_echo_n "checking for $ac_word... " >&6; }
2961if ${ac_cv_prog_ac_ct_CC+:} false; then :
2962  $as_echo_n "(cached) " >&6
2963else
2964  if test -n "$ac_ct_CC"; then
2965  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2966else
2967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2968for as_dir in $PATH
2969do
2970  IFS=$as_save_IFS
2971  test -z "$as_dir" && as_dir=.
2972    for ac_exec_ext in '' $ac_executable_extensions; do
2973  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2974    ac_cv_prog_ac_ct_CC="$ac_prog"
2975    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2976    break 2
2977  fi
2978done
2979  done
2980IFS=$as_save_IFS
2981
2982fi
2983fi
2984ac_ct_CC=$ac_cv_prog_ac_ct_CC
2985if test -n "$ac_ct_CC"; then
2986  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2987$as_echo "$ac_ct_CC" >&6; }
2988else
2989  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2990$as_echo "no" >&6; }
2991fi
2992
2993
2994  test -n "$ac_ct_CC" && break
2995done
2996
2997  if test "x$ac_ct_CC" = x; then
2998    CC=""
2999  else
3000    case $cross_compiling:$ac_tool_warned in
3001yes:)
3002{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3003$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3004ac_tool_warned=yes ;;
3005esac
3006    CC=$ac_ct_CC
3007  fi
3008fi
3009
3010fi
3011
3012
3013test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3014$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3015as_fn_error $? "no acceptable C compiler found in \$PATH
3016See \`config.log' for more details" "$LINENO" 5; }
3017
3018# Provide some information about the compiler.
3019$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3020set X $ac_compile
3021ac_compiler=$2
3022for ac_option in --version -v -V -qversion; do
3023  { { ac_try="$ac_compiler $ac_option >&5"
3024case "(($ac_try" in
3025  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3026  *) ac_try_echo=$ac_try;;
3027esac
3028eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3029$as_echo "$ac_try_echo"; } >&5
3030  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3031  ac_status=$?
3032  if test -s conftest.err; then
3033    sed '10a\
3034... rest of stderr output deleted ...
3035         10q' conftest.err >conftest.er1
3036    cat conftest.er1 >&5
3037  fi
3038  rm -f conftest.er1 conftest.err
3039  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3040  test $ac_status = 0; }
3041done
3042
3043cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3044/* end confdefs.h.  */
3045
3046int
3047main ()
3048{
3049
3050  ;
3051  return 0;
3052}
3053_ACEOF
3054ac_clean_files_save=$ac_clean_files
3055ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3056# Try to create an executable without -o first, disregard a.out.
3057# It will help us diagnose broken compilers, and finding out an intuition
3058# of exeext.
3059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3060$as_echo_n "checking whether the C compiler works... " >&6; }
3061ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3062
3063# The possible output files:
3064ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3065
3066ac_rmfiles=
3067for ac_file in $ac_files
3068do
3069  case $ac_file in
3070    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3071    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3072  esac
3073done
3074rm -f $ac_rmfiles
3075
3076if { { ac_try="$ac_link_default"
3077case "(($ac_try" in
3078  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3079  *) ac_try_echo=$ac_try;;
3080esac
3081eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3082$as_echo "$ac_try_echo"; } >&5
3083  (eval "$ac_link_default") 2>&5
3084  ac_status=$?
3085  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3086  test $ac_status = 0; }; then :
3087  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3088# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3089# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3090# so that the user can short-circuit this test for compilers unknown to
3091# Autoconf.
3092for ac_file in $ac_files ''
3093do
3094  test -f "$ac_file" || continue
3095  case $ac_file in
3096    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3097	;;
3098    [ab].out )
3099	# We found the default executable, but exeext='' is most
3100	# certainly right.
3101	break;;
3102    *.* )
3103	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3104	then :; else
3105	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3106	fi
3107	# We set ac_cv_exeext here because the later test for it is not
3108	# safe: cross compilers may not add the suffix if given an `-o'
3109	# argument, so we may need to know it at that point already.
3110	# Even if this section looks crufty: it has the advantage of
3111	# actually working.
3112	break;;
3113    * )
3114	break;;
3115  esac
3116done
3117test "$ac_cv_exeext" = no && ac_cv_exeext=
3118
3119else
3120  ac_file=''
3121fi
3122if test -z "$ac_file"; then :
3123  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3124$as_echo "no" >&6; }
3125$as_echo "$as_me: failed program was:" >&5
3126sed 's/^/| /' conftest.$ac_ext >&5
3127
3128{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3129$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3130as_fn_error 77 "C compiler cannot create executables
3131See \`config.log' for more details" "$LINENO" 5; }
3132else
3133  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3134$as_echo "yes" >&6; }
3135fi
3136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3137$as_echo_n "checking for C compiler default output file name... " >&6; }
3138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3139$as_echo "$ac_file" >&6; }
3140ac_exeext=$ac_cv_exeext
3141
3142rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3143ac_clean_files=$ac_clean_files_save
3144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3145$as_echo_n "checking for suffix of executables... " >&6; }
3146if { { ac_try="$ac_link"
3147case "(($ac_try" in
3148  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3149  *) ac_try_echo=$ac_try;;
3150esac
3151eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3152$as_echo "$ac_try_echo"; } >&5
3153  (eval "$ac_link") 2>&5
3154  ac_status=$?
3155  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3156  test $ac_status = 0; }; then :
3157  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3158# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3159# work properly (i.e., refer to `conftest.exe'), while it won't with
3160# `rm'.
3161for ac_file in conftest.exe conftest conftest.*; do
3162  test -f "$ac_file" || continue
3163  case $ac_file in
3164    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3165    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3166	  break;;
3167    * ) break;;
3168  esac
3169done
3170else
3171  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3172$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3173as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3174See \`config.log' for more details" "$LINENO" 5; }
3175fi
3176rm -f conftest conftest$ac_cv_exeext
3177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3178$as_echo "$ac_cv_exeext" >&6; }
3179
3180rm -f conftest.$ac_ext
3181EXEEXT=$ac_cv_exeext
3182ac_exeext=$EXEEXT
3183cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3184/* end confdefs.h.  */
3185#include <stdio.h>
3186int
3187main ()
3188{
3189FILE *f = fopen ("conftest.out", "w");
3190 return ferror (f) || fclose (f) != 0;
3191
3192  ;
3193  return 0;
3194}
3195_ACEOF
3196ac_clean_files="$ac_clean_files conftest.out"
3197# Check that the compiler produces executables we can run.  If not, either
3198# the compiler is broken, or we cross compile.
3199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3200$as_echo_n "checking whether we are cross compiling... " >&6; }
3201if test "$cross_compiling" != yes; then
3202  { { ac_try="$ac_link"
3203case "(($ac_try" in
3204  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3205  *) ac_try_echo=$ac_try;;
3206esac
3207eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3208$as_echo "$ac_try_echo"; } >&5
3209  (eval "$ac_link") 2>&5
3210  ac_status=$?
3211  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3212  test $ac_status = 0; }
3213  if { ac_try='./conftest$ac_cv_exeext'
3214  { { case "(($ac_try" in
3215  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3216  *) ac_try_echo=$ac_try;;
3217esac
3218eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3219$as_echo "$ac_try_echo"; } >&5
3220  (eval "$ac_try") 2>&5
3221  ac_status=$?
3222  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3223  test $ac_status = 0; }; }; then
3224    cross_compiling=no
3225  else
3226    if test "$cross_compiling" = maybe; then
3227	cross_compiling=yes
3228    else
3229	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3230$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3231as_fn_error $? "cannot run C compiled programs.
3232If you meant to cross compile, use \`--host'.
3233See \`config.log' for more details" "$LINENO" 5; }
3234    fi
3235  fi
3236fi
3237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3238$as_echo "$cross_compiling" >&6; }
3239
3240rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3241ac_clean_files=$ac_clean_files_save
3242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3243$as_echo_n "checking for suffix of object files... " >&6; }
3244if ${ac_cv_objext+:} false; then :
3245  $as_echo_n "(cached) " >&6
3246else
3247  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3248/* end confdefs.h.  */
3249
3250int
3251main ()
3252{
3253
3254  ;
3255  return 0;
3256}
3257_ACEOF
3258rm -f conftest.o conftest.obj
3259if { { ac_try="$ac_compile"
3260case "(($ac_try" in
3261  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3262  *) ac_try_echo=$ac_try;;
3263esac
3264eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3265$as_echo "$ac_try_echo"; } >&5
3266  (eval "$ac_compile") 2>&5
3267  ac_status=$?
3268  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3269  test $ac_status = 0; }; then :
3270  for ac_file in conftest.o conftest.obj conftest.*; do
3271  test -f "$ac_file" || continue;
3272  case $ac_file in
3273    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3274    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3275       break;;
3276  esac
3277done
3278else
3279  $as_echo "$as_me: failed program was:" >&5
3280sed 's/^/| /' conftest.$ac_ext >&5
3281
3282{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3283$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3284as_fn_error $? "cannot compute suffix of object files: cannot compile
3285See \`config.log' for more details" "$LINENO" 5; }
3286fi
3287rm -f conftest.$ac_cv_objext conftest.$ac_ext
3288fi
3289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3290$as_echo "$ac_cv_objext" >&6; }
3291OBJEXT=$ac_cv_objext
3292ac_objext=$OBJEXT
3293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3294$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3295if ${ac_cv_c_compiler_gnu+:} false; then :
3296  $as_echo_n "(cached) " >&6
3297else
3298  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3299/* end confdefs.h.  */
3300
3301int
3302main ()
3303{
3304#ifndef __GNUC__
3305       choke me
3306#endif
3307
3308  ;
3309  return 0;
3310}
3311_ACEOF
3312if ac_fn_c_try_compile "$LINENO"; then :
3313  ac_compiler_gnu=yes
3314else
3315  ac_compiler_gnu=no
3316fi
3317rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3318ac_cv_c_compiler_gnu=$ac_compiler_gnu
3319
3320fi
3321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3322$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3323if test $ac_compiler_gnu = yes; then
3324  GCC=yes
3325else
3326  GCC=
3327fi
3328ac_test_CFLAGS=${CFLAGS+set}
3329ac_save_CFLAGS=$CFLAGS
3330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3331$as_echo_n "checking whether $CC accepts -g... " >&6; }
3332if ${ac_cv_prog_cc_g+:} false; then :
3333  $as_echo_n "(cached) " >&6
3334else
3335  ac_save_c_werror_flag=$ac_c_werror_flag
3336   ac_c_werror_flag=yes
3337   ac_cv_prog_cc_g=no
3338   CFLAGS="-g"
3339   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3340/* end confdefs.h.  */
3341
3342int
3343main ()
3344{
3345
3346  ;
3347  return 0;
3348}
3349_ACEOF
3350if ac_fn_c_try_compile "$LINENO"; then :
3351  ac_cv_prog_cc_g=yes
3352else
3353  CFLAGS=""
3354      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3355/* end confdefs.h.  */
3356
3357int
3358main ()
3359{
3360
3361  ;
3362  return 0;
3363}
3364_ACEOF
3365if ac_fn_c_try_compile "$LINENO"; then :
3366
3367else
3368  ac_c_werror_flag=$ac_save_c_werror_flag
3369	 CFLAGS="-g"
3370	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3371/* end confdefs.h.  */
3372
3373int
3374main ()
3375{
3376
3377  ;
3378  return 0;
3379}
3380_ACEOF
3381if ac_fn_c_try_compile "$LINENO"; then :
3382  ac_cv_prog_cc_g=yes
3383fi
3384rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3385fi
3386rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3387fi
3388rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3389   ac_c_werror_flag=$ac_save_c_werror_flag
3390fi
3391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3392$as_echo "$ac_cv_prog_cc_g" >&6; }
3393if test "$ac_test_CFLAGS" = set; then
3394  CFLAGS=$ac_save_CFLAGS
3395elif test $ac_cv_prog_cc_g = yes; then
3396  if test "$GCC" = yes; then
3397    CFLAGS="-g -O2"
3398  else
3399    CFLAGS="-g"
3400  fi
3401else
3402  if test "$GCC" = yes; then
3403    CFLAGS="-O2"
3404  else
3405    CFLAGS=
3406  fi
3407fi
3408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3409$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3410if ${ac_cv_prog_cc_c89+:} false; then :
3411  $as_echo_n "(cached) " >&6
3412else
3413  ac_cv_prog_cc_c89=no
3414ac_save_CC=$CC
3415cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3416/* end confdefs.h.  */
3417#include <stdarg.h>
3418#include <stdio.h>
3419struct stat;
3420/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3421struct buf { int x; };
3422FILE * (*rcsopen) (struct buf *, struct stat *, int);
3423static char *e (p, i)
3424     char **p;
3425     int i;
3426{
3427  return p[i];
3428}
3429static char *f (char * (*g) (char **, int), char **p, ...)
3430{
3431  char *s;
3432  va_list v;
3433  va_start (v,p);
3434  s = g (p, va_arg (v,int));
3435  va_end (v);
3436  return s;
3437}
3438
3439/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3440   function prototypes and stuff, but not '\xHH' hex character constants.
3441   These don't provoke an error unfortunately, instead are silently treated
3442   as 'x'.  The following induces an error, until -std is added to get
3443   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3444   array size at least.  It's necessary to write '\x00'==0 to get something
3445   that's true only with -std.  */
3446int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3447
3448/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3449   inside strings and character constants.  */
3450#define FOO(x) 'x'
3451int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3452
3453int test (int i, double x);
3454struct s1 {int (*f) (int a);};
3455struct s2 {int (*f) (double a);};
3456int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3457int argc;
3458char **argv;
3459int
3460main ()
3461{
3462return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3463  ;
3464  return 0;
3465}
3466_ACEOF
3467for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3468	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3469do
3470  CC="$ac_save_CC $ac_arg"
3471  if ac_fn_c_try_compile "$LINENO"; then :
3472  ac_cv_prog_cc_c89=$ac_arg
3473fi
3474rm -f core conftest.err conftest.$ac_objext
3475  test "x$ac_cv_prog_cc_c89" != "xno" && break
3476done
3477rm -f conftest.$ac_ext
3478CC=$ac_save_CC
3479
3480fi
3481# AC_CACHE_VAL
3482case "x$ac_cv_prog_cc_c89" in
3483  x)
3484    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3485$as_echo "none needed" >&6; } ;;
3486  xno)
3487    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3488$as_echo "unsupported" >&6; } ;;
3489  *)
3490    CC="$CC $ac_cv_prog_cc_c89"
3491    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3492$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3493esac
3494if test "x$ac_cv_prog_cc_c89" != xno; then :
3495
3496fi
3497
3498ac_ext=c
3499ac_cpp='$CPP $CPPFLAGS'
3500ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3501ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3502ac_compiler_gnu=$ac_cv_c_compiler_gnu
3503
3504ac_ext=c
3505ac_cpp='$CPP $CPPFLAGS'
3506ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3507ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3508ac_compiler_gnu=$ac_cv_c_compiler_gnu
3509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3510$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3511if ${am_cv_prog_cc_c_o+:} false; then :
3512  $as_echo_n "(cached) " >&6
3513else
3514  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3515/* end confdefs.h.  */
3516
3517int
3518main ()
3519{
3520
3521  ;
3522  return 0;
3523}
3524_ACEOF
3525  # Make sure it works both with $CC and with simple cc.
3526  # Following AC_PROG_CC_C_O, we do the test twice because some
3527  # compilers refuse to overwrite an existing .o file with -o,
3528  # though they will create one.
3529  am_cv_prog_cc_c_o=yes
3530  for am_i in 1 2; do
3531    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3532   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3533   ac_status=$?
3534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3535   (exit $ac_status); } \
3536         && test -f conftest2.$ac_objext; then
3537      : OK
3538    else
3539      am_cv_prog_cc_c_o=no
3540      break
3541    fi
3542  done
3543  rm -f core conftest*
3544  unset am_i
3545fi
3546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3547$as_echo "$am_cv_prog_cc_c_o" >&6; }
3548if test "$am_cv_prog_cc_c_o" != yes; then
3549   # Losing compiler, so override with the script.
3550   # FIXME: It is wrong to rewrite CC.
3551   # But if we don't then we get into trouble of one sort or another.
3552   # A longer-term fix would be to have automake use am__CC in this case,
3553   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3554   CC="$am_aux_dir/compile $CC"
3555fi
3556ac_ext=c
3557ac_cpp='$CPP $CPPFLAGS'
3558ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3559ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3560ac_compiler_gnu=$ac_cv_c_compiler_gnu
3561
3562
3563
3564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3565$as_echo_n "checking for library containing strerror... " >&6; }
3566if ${ac_cv_search_strerror+:} false; then :
3567  $as_echo_n "(cached) " >&6
3568else
3569  ac_func_search_save_LIBS=$LIBS
3570cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3571/* end confdefs.h.  */
3572
3573/* Override any GCC internal prototype to avoid an error.
3574   Use char because int might match the return type of a GCC
3575   builtin and then its argument prototype would still apply.  */
3576#ifdef __cplusplus
3577extern "C"
3578#endif
3579char strerror ();
3580int
3581main ()
3582{
3583return strerror ();
3584  ;
3585  return 0;
3586}
3587_ACEOF
3588for ac_lib in '' cposix; do
3589  if test -z "$ac_lib"; then
3590    ac_res="none required"
3591  else
3592    ac_res=-l$ac_lib
3593    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3594  fi
3595  if ac_fn_c_try_link "$LINENO"; then :
3596  ac_cv_search_strerror=$ac_res
3597fi
3598rm -f core conftest.err conftest.$ac_objext \
3599    conftest$ac_exeext
3600  if ${ac_cv_search_strerror+:} false; then :
3601  break
3602fi
3603done
3604if ${ac_cv_search_strerror+:} false; then :
3605
3606else
3607  ac_cv_search_strerror=no
3608fi
3609rm conftest.$ac_ext
3610LIBS=$ac_func_search_save_LIBS
3611fi
3612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3613$as_echo "$ac_cv_search_strerror" >&6; }
3614ac_res=$ac_cv_search_strerror
3615if test "$ac_res" != no; then :
3616  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3617
3618fi
3619
3620
3621am__api_version='1.15'
3622
3623# Find a good install program.  We prefer a C program (faster),
3624# so one script is as good as another.  But avoid the broken or
3625# incompatible versions:
3626# SysV /etc/install, /usr/sbin/install
3627# SunOS /usr/etc/install
3628# IRIX /sbin/install
3629# AIX /bin/install
3630# AmigaOS /C/install, which installs bootblocks on floppy discs
3631# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3632# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3633# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3634# OS/2's system install, which has a completely different semantic
3635# ./install, which can be erroneously created by make from ./install.sh.
3636# Reject install programs that cannot install multiple files.
3637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3638$as_echo_n "checking for a BSD-compatible install... " >&6; }
3639if test -z "$INSTALL"; then
3640if ${ac_cv_path_install+:} false; then :
3641  $as_echo_n "(cached) " >&6
3642else
3643  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3644for as_dir in $PATH
3645do
3646  IFS=$as_save_IFS
3647  test -z "$as_dir" && as_dir=.
3648    # Account for people who put trailing slashes in PATH elements.
3649case $as_dir/ in #((
3650  ./ | .// | /[cC]/* | \
3651  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3652  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3653  /usr/ucb/* ) ;;
3654  *)
3655    # OSF1 and SCO ODT 3.0 have their own names for install.
3656    # Don't use installbsd from OSF since it installs stuff as root
3657    # by default.
3658    for ac_prog in ginstall scoinst install; do
3659      for ac_exec_ext in '' $ac_executable_extensions; do
3660	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3661	  if test $ac_prog = install &&
3662	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3663	    # AIX install.  It has an incompatible calling convention.
3664	    :
3665	  elif test $ac_prog = install &&
3666	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3667	    # program-specific install script used by HP pwplus--don't use.
3668	    :
3669	  else
3670	    rm -rf conftest.one conftest.two conftest.dir
3671	    echo one > conftest.one
3672	    echo two > conftest.two
3673	    mkdir conftest.dir
3674	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3675	      test -s conftest.one && test -s conftest.two &&
3676	      test -s conftest.dir/conftest.one &&
3677	      test -s conftest.dir/conftest.two
3678	    then
3679	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3680	      break 3
3681	    fi
3682	  fi
3683	fi
3684      done
3685    done
3686    ;;
3687esac
3688
3689  done
3690IFS=$as_save_IFS
3691
3692rm -rf conftest.one conftest.two conftest.dir
3693
3694fi
3695  if test "${ac_cv_path_install+set}" = set; then
3696    INSTALL=$ac_cv_path_install
3697  else
3698    # As a last resort, use the slow shell script.  Don't cache a
3699    # value for INSTALL within a source directory, because that will
3700    # break other packages using the cache if that directory is
3701    # removed, or if the value is a relative name.
3702    INSTALL=$ac_install_sh
3703  fi
3704fi
3705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3706$as_echo "$INSTALL" >&6; }
3707
3708# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3709# It thinks the first close brace ends the variable substitution.
3710test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3711
3712test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3713
3714test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3715
3716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3717$as_echo_n "checking whether build environment is sane... " >&6; }
3718# Reject unsafe characters in $srcdir or the absolute working directory
3719# name.  Accept space and tab only in the latter.
3720am_lf='
3721'
3722case `pwd` in
3723  *[\\\"\#\$\&\'\`$am_lf]*)
3724    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3725esac
3726case $srcdir in
3727  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
3728    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3729esac
3730
3731# Do 'set' in a subshell so we don't clobber the current shell's
3732# arguments.  Must try -L first in case configure is actually a
3733# symlink; some systems play weird games with the mod time of symlinks
3734# (eg FreeBSD returns the mod time of the symlink's containing
3735# directory).
3736if (
3737   am_has_slept=no
3738   for am_try in 1 2; do
3739     echo "timestamp, slept: $am_has_slept" > conftest.file
3740     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3741     if test "$*" = "X"; then
3742	# -L didn't work.
3743	set X `ls -t "$srcdir/configure" conftest.file`
3744     fi
3745     if test "$*" != "X $srcdir/configure conftest.file" \
3746	&& test "$*" != "X conftest.file $srcdir/configure"; then
3747
3748	# If neither matched, then we have a broken ls.  This can happen
3749	# if, for instance, CONFIG_SHELL is bash and it inherits a
3750	# broken ls alias from the environment.  This has actually
3751	# happened.  Such a system could not be considered "sane".
3752	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3753  alias in your environment" "$LINENO" 5
3754     fi
3755     if test "$2" = conftest.file || test $am_try -eq 2; then
3756       break
3757     fi
3758     # Just in case.
3759     sleep 1
3760     am_has_slept=yes
3761   done
3762   test "$2" = conftest.file
3763   )
3764then
3765   # Ok.
3766   :
3767else
3768   as_fn_error $? "newly created file is older than distributed files!
3769Check your system clock" "$LINENO" 5
3770fi
3771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3772$as_echo "yes" >&6; }
3773# If we didn't sleep, we still need to ensure time stamps of config.status and
3774# generated files are strictly newer.
3775am_sleep_pid=
3776if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3777  ( sleep 1 ) &
3778  am_sleep_pid=$!
3779fi
3780
3781rm -f conftest.file
3782
3783test "$program_prefix" != NONE &&
3784  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3785# Use a double $ so make ignores it.
3786test "$program_suffix" != NONE &&
3787  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3788# Double any \ or $.
3789# By default was `s,x,x', remove it if useless.
3790ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3791program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3792
3793if test x"${MISSING+set}" != xset; then
3794  case $am_aux_dir in
3795  *\ * | *\	*)
3796    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3797  *)
3798    MISSING="\${SHELL} $am_aux_dir/missing" ;;
3799  esac
3800fi
3801# Use eval to expand $SHELL
3802if eval "$MISSING --is-lightweight"; then
3803  am_missing_run="$MISSING "
3804else
3805  am_missing_run=
3806  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3807$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3808fi
3809
3810if test x"${install_sh+set}" != xset; then
3811  case $am_aux_dir in
3812  *\ * | *\	*)
3813    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3814  *)
3815    install_sh="\${SHELL} $am_aux_dir/install-sh"
3816  esac
3817fi
3818
3819# Installed binaries are usually stripped using 'strip' when the user
3820# run "make install-strip".  However 'strip' might not be the right
3821# tool to use in cross-compilation environments, therefore Automake
3822# will honor the 'STRIP' environment variable to overrule this program.
3823if test "$cross_compiling" != no; then
3824  if test -n "$ac_tool_prefix"; then
3825  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3826set dummy ${ac_tool_prefix}strip; ac_word=$2
3827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3828$as_echo_n "checking for $ac_word... " >&6; }
3829if ${ac_cv_prog_STRIP+:} false; then :
3830  $as_echo_n "(cached) " >&6
3831else
3832  if test -n "$STRIP"; then
3833  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3834else
3835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3836for as_dir in $PATH
3837do
3838  IFS=$as_save_IFS
3839  test -z "$as_dir" && as_dir=.
3840    for ac_exec_ext in '' $ac_executable_extensions; do
3841  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3842    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3843    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3844    break 2
3845  fi
3846done
3847  done
3848IFS=$as_save_IFS
3849
3850fi
3851fi
3852STRIP=$ac_cv_prog_STRIP
3853if test -n "$STRIP"; then
3854  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3855$as_echo "$STRIP" >&6; }
3856else
3857  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3858$as_echo "no" >&6; }
3859fi
3860
3861
3862fi
3863if test -z "$ac_cv_prog_STRIP"; then
3864  ac_ct_STRIP=$STRIP
3865  # Extract the first word of "strip", so it can be a program name with args.
3866set dummy strip; ac_word=$2
3867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3868$as_echo_n "checking for $ac_word... " >&6; }
3869if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3870  $as_echo_n "(cached) " >&6
3871else
3872  if test -n "$ac_ct_STRIP"; then
3873  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3874else
3875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3876for as_dir in $PATH
3877do
3878  IFS=$as_save_IFS
3879  test -z "$as_dir" && as_dir=.
3880    for ac_exec_ext in '' $ac_executable_extensions; do
3881  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3882    ac_cv_prog_ac_ct_STRIP="strip"
3883    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3884    break 2
3885  fi
3886done
3887  done
3888IFS=$as_save_IFS
3889
3890fi
3891fi
3892ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3893if test -n "$ac_ct_STRIP"; then
3894  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3895$as_echo "$ac_ct_STRIP" >&6; }
3896else
3897  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3898$as_echo "no" >&6; }
3899fi
3900
3901  if test "x$ac_ct_STRIP" = x; then
3902    STRIP=":"
3903  else
3904    case $cross_compiling:$ac_tool_warned in
3905yes:)
3906{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3907$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3908ac_tool_warned=yes ;;
3909esac
3910    STRIP=$ac_ct_STRIP
3911  fi
3912else
3913  STRIP="$ac_cv_prog_STRIP"
3914fi
3915
3916fi
3917INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3918
3919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3920$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3921if test -z "$MKDIR_P"; then
3922  if ${ac_cv_path_mkdir+:} false; then :
3923  $as_echo_n "(cached) " >&6
3924else
3925  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3926for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3927do
3928  IFS=$as_save_IFS
3929  test -z "$as_dir" && as_dir=.
3930    for ac_prog in mkdir gmkdir; do
3931	 for ac_exec_ext in '' $ac_executable_extensions; do
3932	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3933	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3934	     'mkdir (GNU coreutils) '* | \
3935	     'mkdir (coreutils) '* | \
3936	     'mkdir (fileutils) '4.1*)
3937	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3938	       break 3;;
3939	   esac
3940	 done
3941       done
3942  done
3943IFS=$as_save_IFS
3944
3945fi
3946
3947  test -d ./--version && rmdir ./--version
3948  if test "${ac_cv_path_mkdir+set}" = set; then
3949    MKDIR_P="$ac_cv_path_mkdir -p"
3950  else
3951    # As a last resort, use the slow shell script.  Don't cache a
3952    # value for MKDIR_P within a source directory, because that will
3953    # break other packages using the cache if that directory is
3954    # removed, or if the value is a relative name.
3955    MKDIR_P="$ac_install_sh -d"
3956  fi
3957fi
3958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3959$as_echo "$MKDIR_P" >&6; }
3960
3961for ac_prog in gawk mawk nawk awk
3962do
3963  # Extract the first word of "$ac_prog", so it can be a program name with args.
3964set dummy $ac_prog; ac_word=$2
3965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3966$as_echo_n "checking for $ac_word... " >&6; }
3967if ${ac_cv_prog_AWK+:} false; then :
3968  $as_echo_n "(cached) " >&6
3969else
3970  if test -n "$AWK"; then
3971  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3972else
3973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3974for as_dir in $PATH
3975do
3976  IFS=$as_save_IFS
3977  test -z "$as_dir" && as_dir=.
3978    for ac_exec_ext in '' $ac_executable_extensions; do
3979  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3980    ac_cv_prog_AWK="$ac_prog"
3981    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3982    break 2
3983  fi
3984done
3985  done
3986IFS=$as_save_IFS
3987
3988fi
3989fi
3990AWK=$ac_cv_prog_AWK
3991if test -n "$AWK"; then
3992  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3993$as_echo "$AWK" >&6; }
3994else
3995  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3996$as_echo "no" >&6; }
3997fi
3998
3999
4000  test -n "$AWK" && break
4001done
4002
4003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4004$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4005set x ${MAKE-make}
4006ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4007if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4008  $as_echo_n "(cached) " >&6
4009else
4010  cat >conftest.make <<\_ACEOF
4011SHELL = /bin/sh
4012all:
4013	@echo '@@@%%%=$(MAKE)=@@@%%%'
4014_ACEOF
4015# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4016case `${MAKE-make} -f conftest.make 2>/dev/null` in
4017  *@@@%%%=?*=@@@%%%*)
4018    eval ac_cv_prog_make_${ac_make}_set=yes;;
4019  *)
4020    eval ac_cv_prog_make_${ac_make}_set=no;;
4021esac
4022rm -f conftest.make
4023fi
4024if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4025  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4026$as_echo "yes" >&6; }
4027  SET_MAKE=
4028else
4029  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4030$as_echo "no" >&6; }
4031  SET_MAKE="MAKE=${MAKE-make}"
4032fi
4033
4034rm -rf .tst 2>/dev/null
4035mkdir .tst 2>/dev/null
4036if test -d .tst; then
4037  am__leading_dot=.
4038else
4039  am__leading_dot=_
4040fi
4041rmdir .tst 2>/dev/null
4042
4043DEPDIR="${am__leading_dot}deps"
4044
4045ac_config_commands="$ac_config_commands depfiles"
4046
4047
4048am_make=${MAKE-make}
4049cat > confinc << 'END'
4050am__doit:
4051	@echo this is the am__doit target
4052.PHONY: am__doit
4053END
4054# If we don't find an include directive, just comment out the code.
4055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4056$as_echo_n "checking for style of include used by $am_make... " >&6; }
4057am__include="#"
4058am__quote=
4059_am_result=none
4060# First try GNU make style include.
4061echo "include confinc" > confmf
4062# Ignore all kinds of additional output from 'make'.
4063case `$am_make -s -f confmf 2> /dev/null` in #(
4064*the\ am__doit\ target*)
4065  am__include=include
4066  am__quote=
4067  _am_result=GNU
4068  ;;
4069esac
4070# Now try BSD make style include.
4071if test "$am__include" = "#"; then
4072   echo '.include "confinc"' > confmf
4073   case `$am_make -s -f confmf 2> /dev/null` in #(
4074   *the\ am__doit\ target*)
4075     am__include=.include
4076     am__quote="\""
4077     _am_result=BSD
4078     ;;
4079   esac
4080fi
4081
4082
4083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4084$as_echo "$_am_result" >&6; }
4085rm -f confinc confmf
4086
4087# Check whether --enable-dependency-tracking was given.
4088if test "${enable_dependency_tracking+set}" = set; then :
4089  enableval=$enable_dependency_tracking;
4090fi
4091
4092if test "x$enable_dependency_tracking" != xno; then
4093  am_depcomp="$ac_aux_dir/depcomp"
4094  AMDEPBACKSLASH='\'
4095  am__nodep='_no'
4096fi
4097 if test "x$enable_dependency_tracking" != xno; then
4098  AMDEP_TRUE=
4099  AMDEP_FALSE='#'
4100else
4101  AMDEP_TRUE='#'
4102  AMDEP_FALSE=
4103fi
4104
4105
4106# Check whether --enable-silent-rules was given.
4107if test "${enable_silent_rules+set}" = set; then :
4108  enableval=$enable_silent_rules;
4109fi
4110
4111case $enable_silent_rules in # (((
4112  yes) AM_DEFAULT_VERBOSITY=0;;
4113   no) AM_DEFAULT_VERBOSITY=1;;
4114    *) AM_DEFAULT_VERBOSITY=1;;
4115esac
4116am_make=${MAKE-make}
4117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4118$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4119if ${am_cv_make_support_nested_variables+:} false; then :
4120  $as_echo_n "(cached) " >&6
4121else
4122  if $as_echo 'TRUE=$(BAR$(V))
4123BAR0=false
4124BAR1=true
4125V=1
4126am__doit:
4127	@$(TRUE)
4128.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4129  am_cv_make_support_nested_variables=yes
4130else
4131  am_cv_make_support_nested_variables=no
4132fi
4133fi
4134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4135$as_echo "$am_cv_make_support_nested_variables" >&6; }
4136if test $am_cv_make_support_nested_variables = yes; then
4137    AM_V='$(V)'
4138  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4139else
4140  AM_V=$AM_DEFAULT_VERBOSITY
4141  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4142fi
4143AM_BACKSLASH='\'
4144
4145if test "`cd $srcdir && pwd`" != "`pwd`"; then
4146  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4147  # is not polluted with repeated "-I."
4148  am__isrc=' -I$(srcdir)'
4149  # test to see if srcdir already configured
4150  if test -f $srcdir/config.status; then
4151    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4152  fi
4153fi
4154
4155# test whether we have cygpath
4156if test -z "$CYGPATH_W"; then
4157  if (cygpath --version) >/dev/null 2>/dev/null; then
4158    CYGPATH_W='cygpath -w'
4159  else
4160    CYGPATH_W=echo
4161  fi
4162fi
4163
4164
4165# Define the identity of the package.
4166 PACKAGE='binutils'
4167 VERSION='2.31.1'
4168
4169
4170cat >>confdefs.h <<_ACEOF
4171#define PACKAGE "$PACKAGE"
4172_ACEOF
4173
4174
4175cat >>confdefs.h <<_ACEOF
4176#define VERSION "$VERSION"
4177_ACEOF
4178
4179# Some tools Automake needs.
4180
4181ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4182
4183
4184AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4185
4186
4187AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4188
4189
4190AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4191
4192
4193MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4194
4195# For better backward compatibility.  To be removed once Automake 1.9.x
4196# dies out for good.  For more background, see:
4197# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4198# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4199mkdir_p='$(MKDIR_P)'
4200
4201# We need awk for the "check" target (and possibly the TAP driver).  The
4202# system "awk" is bad on some platforms.
4203# Always define AMTAR for backward compatibility.  Yes, it's still used
4204# in the wild :-(  We should find a proper way to deprecate it ...
4205AMTAR='$${TAR-tar}'
4206
4207
4208# We'll loop over all known methods to create a tar archive until one works.
4209_am_tools='gnutar  pax cpio none'
4210
4211am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4212
4213
4214
4215
4216
4217depcc="$CC"   am_compiler_list=
4218
4219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4220$as_echo_n "checking dependency style of $depcc... " >&6; }
4221if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4222  $as_echo_n "(cached) " >&6
4223else
4224  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4225  # We make a subdir and do the tests there.  Otherwise we can end up
4226  # making bogus files that we don't know about and never remove.  For
4227  # instance it was reported that on HP-UX the gcc test will end up
4228  # making a dummy file named 'D' -- because '-MD' means "put the output
4229  # in D".
4230  rm -rf conftest.dir
4231  mkdir conftest.dir
4232  # Copy depcomp to subdir because otherwise we won't find it if we're
4233  # using a relative directory.
4234  cp "$am_depcomp" conftest.dir
4235  cd conftest.dir
4236  # We will build objects and dependencies in a subdirectory because
4237  # it helps to detect inapplicable dependency modes.  For instance
4238  # both Tru64's cc and ICC support -MD to output dependencies as a
4239  # side effect of compilation, but ICC will put the dependencies in
4240  # the current directory while Tru64 will put them in the object
4241  # directory.
4242  mkdir sub
4243
4244  am_cv_CC_dependencies_compiler_type=none
4245  if test "$am_compiler_list" = ""; then
4246     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4247  fi
4248  am__universal=false
4249  case " $depcc " in #(
4250     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4251     esac
4252
4253  for depmode in $am_compiler_list; do
4254    # Setup a source with many dependencies, because some compilers
4255    # like to wrap large dependency lists on column 80 (with \), and
4256    # we should not choose a depcomp mode which is confused by this.
4257    #
4258    # We need to recreate these files for each test, as the compiler may
4259    # overwrite some of them when testing with obscure command lines.
4260    # This happens at least with the AIX C compiler.
4261    : > sub/conftest.c
4262    for i in 1 2 3 4 5 6; do
4263      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4264      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4265      # Solaris 10 /bin/sh.
4266      echo '/* dummy */' > sub/conftst$i.h
4267    done
4268    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4269
4270    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4271    # mode.  It turns out that the SunPro C++ compiler does not properly
4272    # handle '-M -o', and we need to detect this.  Also, some Intel
4273    # versions had trouble with output in subdirs.
4274    am__obj=sub/conftest.${OBJEXT-o}
4275    am__minus_obj="-o $am__obj"
4276    case $depmode in
4277    gcc)
4278      # This depmode causes a compiler race in universal mode.
4279      test "$am__universal" = false || continue
4280      ;;
4281    nosideeffect)
4282      # After this tag, mechanisms are not by side-effect, so they'll
4283      # only be used when explicitly requested.
4284      if test "x$enable_dependency_tracking" = xyes; then
4285	continue
4286      else
4287	break
4288      fi
4289      ;;
4290    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4291      # This compiler won't grok '-c -o', but also, the minuso test has
4292      # not run yet.  These depmodes are late enough in the game, and
4293      # so weak that their functioning should not be impacted.
4294      am__obj=conftest.${OBJEXT-o}
4295      am__minus_obj=
4296      ;;
4297    none) break ;;
4298    esac
4299    if depmode=$depmode \
4300       source=sub/conftest.c object=$am__obj \
4301       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4302       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4303         >/dev/null 2>conftest.err &&
4304       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4305       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4306       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4307       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4308      # icc doesn't choke on unknown options, it will just issue warnings
4309      # or remarks (even with -Werror).  So we grep stderr for any message
4310      # that says an option was ignored or not supported.
4311      # When given -MP, icc 7.0 and 7.1 complain thusly:
4312      #   icc: Command line warning: ignoring option '-M'; no argument required
4313      # The diagnosis changed in icc 8.0:
4314      #   icc: Command line remark: option '-MP' not supported
4315      if (grep 'ignoring option' conftest.err ||
4316          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4317        am_cv_CC_dependencies_compiler_type=$depmode
4318        break
4319      fi
4320    fi
4321  done
4322
4323  cd ..
4324  rm -rf conftest.dir
4325else
4326  am_cv_CC_dependencies_compiler_type=none
4327fi
4328
4329fi
4330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4331$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4332CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4333
4334 if
4335  test "x$enable_dependency_tracking" != xno \
4336  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4337  am__fastdepCC_TRUE=
4338  am__fastdepCC_FALSE='#'
4339else
4340  am__fastdepCC_TRUE='#'
4341  am__fastdepCC_FALSE=
4342fi
4343
4344
4345
4346# POSIX will say in a future version that running "rm -f" with no argument
4347# is OK; and we want to be able to make that assumption in our Makefile
4348# recipes.  So use an aggressive probe to check that the usage we want is
4349# actually supported "in the wild" to an acceptable degree.
4350# See automake bug#10828.
4351# To make any issue more visible, cause the running configure to be aborted
4352# by default if the 'rm' program in use doesn't match our expectations; the
4353# user can still override this though.
4354if rm -f && rm -fr && rm -rf; then : OK; else
4355  cat >&2 <<'END'
4356Oops!
4357
4358Your 'rm' program seems unable to run without file operands specified
4359on the command line, even when the '-f' option is present.  This is contrary
4360to the behaviour of most rm programs out there, and not conforming with
4361the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4362
4363Please tell bug-automake@gnu.org about your system, including the value
4364of your $PATH and any error possibly output before this message.  This
4365can help us improve future automake versions.
4366
4367END
4368  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4369    echo 'Configuration will proceed anyway, since you have set the' >&2
4370    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4371    echo >&2
4372  else
4373    cat >&2 <<'END'
4374Aborting the configuration process, to ensure you take notice of the issue.
4375
4376You can download and install GNU coreutils to get an 'rm' implementation
4377that behaves properly: <http://www.gnu.org/software/coreutils/>.
4378
4379If you want to complete the configuration process using your problematic
4380'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4381to "yes", and re-run configure.
4382
4383END
4384    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4385  fi
4386fi
4387
4388
4389ac_ext=c
4390ac_cpp='$CPP $CPPFLAGS'
4391ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4392ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4393ac_compiler_gnu=$ac_cv_c_compiler_gnu
4394if test -n "$ac_tool_prefix"; then
4395  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4396set dummy ${ac_tool_prefix}gcc; ac_word=$2
4397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4398$as_echo_n "checking for $ac_word... " >&6; }
4399if ${ac_cv_prog_CC+:} false; then :
4400  $as_echo_n "(cached) " >&6
4401else
4402  if test -n "$CC"; then
4403  ac_cv_prog_CC="$CC" # Let the user override the test.
4404else
4405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4406for as_dir in $PATH
4407do
4408  IFS=$as_save_IFS
4409  test -z "$as_dir" && as_dir=.
4410    for ac_exec_ext in '' $ac_executable_extensions; do
4411  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4412    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4413    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4414    break 2
4415  fi
4416done
4417  done
4418IFS=$as_save_IFS
4419
4420fi
4421fi
4422CC=$ac_cv_prog_CC
4423if test -n "$CC"; then
4424  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4425$as_echo "$CC" >&6; }
4426else
4427  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4428$as_echo "no" >&6; }
4429fi
4430
4431
4432fi
4433if test -z "$ac_cv_prog_CC"; then
4434  ac_ct_CC=$CC
4435  # Extract the first word of "gcc", so it can be a program name with args.
4436set dummy gcc; ac_word=$2
4437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4438$as_echo_n "checking for $ac_word... " >&6; }
4439if ${ac_cv_prog_ac_ct_CC+:} false; then :
4440  $as_echo_n "(cached) " >&6
4441else
4442  if test -n "$ac_ct_CC"; then
4443  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4444else
4445as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4446for as_dir in $PATH
4447do
4448  IFS=$as_save_IFS
4449  test -z "$as_dir" && as_dir=.
4450    for ac_exec_ext in '' $ac_executable_extensions; do
4451  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4452    ac_cv_prog_ac_ct_CC="gcc"
4453    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4454    break 2
4455  fi
4456done
4457  done
4458IFS=$as_save_IFS
4459
4460fi
4461fi
4462ac_ct_CC=$ac_cv_prog_ac_ct_CC
4463if test -n "$ac_ct_CC"; then
4464  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4465$as_echo "$ac_ct_CC" >&6; }
4466else
4467  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4468$as_echo "no" >&6; }
4469fi
4470
4471  if test "x$ac_ct_CC" = x; then
4472    CC=""
4473  else
4474    case $cross_compiling:$ac_tool_warned in
4475yes:)
4476{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4477$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4478ac_tool_warned=yes ;;
4479esac
4480    CC=$ac_ct_CC
4481  fi
4482else
4483  CC="$ac_cv_prog_CC"
4484fi
4485
4486if test -z "$CC"; then
4487          if test -n "$ac_tool_prefix"; then
4488    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4489set dummy ${ac_tool_prefix}cc; ac_word=$2
4490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4491$as_echo_n "checking for $ac_word... " >&6; }
4492if ${ac_cv_prog_CC+:} false; then :
4493  $as_echo_n "(cached) " >&6
4494else
4495  if test -n "$CC"; then
4496  ac_cv_prog_CC="$CC" # Let the user override the test.
4497else
4498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4499for as_dir in $PATH
4500do
4501  IFS=$as_save_IFS
4502  test -z "$as_dir" && as_dir=.
4503    for ac_exec_ext in '' $ac_executable_extensions; do
4504  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4505    ac_cv_prog_CC="${ac_tool_prefix}cc"
4506    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4507    break 2
4508  fi
4509done
4510  done
4511IFS=$as_save_IFS
4512
4513fi
4514fi
4515CC=$ac_cv_prog_CC
4516if test -n "$CC"; then
4517  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4518$as_echo "$CC" >&6; }
4519else
4520  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4521$as_echo "no" >&6; }
4522fi
4523
4524
4525  fi
4526fi
4527if test -z "$CC"; then
4528  # Extract the first word of "cc", so it can be a program name with args.
4529set dummy cc; ac_word=$2
4530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4531$as_echo_n "checking for $ac_word... " >&6; }
4532if ${ac_cv_prog_CC+:} false; then :
4533  $as_echo_n "(cached) " >&6
4534else
4535  if test -n "$CC"; then
4536  ac_cv_prog_CC="$CC" # Let the user override the test.
4537else
4538  ac_prog_rejected=no
4539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4540for as_dir in $PATH
4541do
4542  IFS=$as_save_IFS
4543  test -z "$as_dir" && as_dir=.
4544    for ac_exec_ext in '' $ac_executable_extensions; do
4545  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4546    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4547       ac_prog_rejected=yes
4548       continue
4549     fi
4550    ac_cv_prog_CC="cc"
4551    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4552    break 2
4553  fi
4554done
4555  done
4556IFS=$as_save_IFS
4557
4558if test $ac_prog_rejected = yes; then
4559  # We found a bogon in the path, so make sure we never use it.
4560  set dummy $ac_cv_prog_CC
4561  shift
4562  if test $# != 0; then
4563    # We chose a different compiler from the bogus one.
4564    # However, it has the same basename, so the bogon will be chosen
4565    # first if we set CC to just the basename; use the full file name.
4566    shift
4567    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4568  fi
4569fi
4570fi
4571fi
4572CC=$ac_cv_prog_CC
4573if test -n "$CC"; then
4574  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4575$as_echo "$CC" >&6; }
4576else
4577  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4578$as_echo "no" >&6; }
4579fi
4580
4581
4582fi
4583if test -z "$CC"; then
4584  if test -n "$ac_tool_prefix"; then
4585  for ac_prog in cl.exe
4586  do
4587    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4588set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4590$as_echo_n "checking for $ac_word... " >&6; }
4591if ${ac_cv_prog_CC+:} false; then :
4592  $as_echo_n "(cached) " >&6
4593else
4594  if test -n "$CC"; then
4595  ac_cv_prog_CC="$CC" # Let the user override the test.
4596else
4597as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4598for as_dir in $PATH
4599do
4600  IFS=$as_save_IFS
4601  test -z "$as_dir" && as_dir=.
4602    for ac_exec_ext in '' $ac_executable_extensions; do
4603  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4604    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4605    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4606    break 2
4607  fi
4608done
4609  done
4610IFS=$as_save_IFS
4611
4612fi
4613fi
4614CC=$ac_cv_prog_CC
4615if test -n "$CC"; then
4616  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4617$as_echo "$CC" >&6; }
4618else
4619  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4620$as_echo "no" >&6; }
4621fi
4622
4623
4624    test -n "$CC" && break
4625  done
4626fi
4627if test -z "$CC"; then
4628  ac_ct_CC=$CC
4629  for ac_prog in cl.exe
4630do
4631  # Extract the first word of "$ac_prog", so it can be a program name with args.
4632set dummy $ac_prog; ac_word=$2
4633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4634$as_echo_n "checking for $ac_word... " >&6; }
4635if ${ac_cv_prog_ac_ct_CC+:} false; then :
4636  $as_echo_n "(cached) " >&6
4637else
4638  if test -n "$ac_ct_CC"; then
4639  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4640else
4641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4642for as_dir in $PATH
4643do
4644  IFS=$as_save_IFS
4645  test -z "$as_dir" && as_dir=.
4646    for ac_exec_ext in '' $ac_executable_extensions; do
4647  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4648    ac_cv_prog_ac_ct_CC="$ac_prog"
4649    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4650    break 2
4651  fi
4652done
4653  done
4654IFS=$as_save_IFS
4655
4656fi
4657fi
4658ac_ct_CC=$ac_cv_prog_ac_ct_CC
4659if test -n "$ac_ct_CC"; then
4660  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4661$as_echo "$ac_ct_CC" >&6; }
4662else
4663  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4664$as_echo "no" >&6; }
4665fi
4666
4667
4668  test -n "$ac_ct_CC" && break
4669done
4670
4671  if test "x$ac_ct_CC" = x; then
4672    CC=""
4673  else
4674    case $cross_compiling:$ac_tool_warned in
4675yes:)
4676{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4677$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4678ac_tool_warned=yes ;;
4679esac
4680    CC=$ac_ct_CC
4681  fi
4682fi
4683
4684fi
4685
4686
4687test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4688$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4689as_fn_error $? "no acceptable C compiler found in \$PATH
4690See \`config.log' for more details" "$LINENO" 5; }
4691
4692# Provide some information about the compiler.
4693$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4694set X $ac_compile
4695ac_compiler=$2
4696for ac_option in --version -v -V -qversion; do
4697  { { ac_try="$ac_compiler $ac_option >&5"
4698case "(($ac_try" in
4699  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4700  *) ac_try_echo=$ac_try;;
4701esac
4702eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4703$as_echo "$ac_try_echo"; } >&5
4704  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4705  ac_status=$?
4706  if test -s conftest.err; then
4707    sed '10a\
4708... rest of stderr output deleted ...
4709         10q' conftest.err >conftest.er1
4710    cat conftest.er1 >&5
4711  fi
4712  rm -f conftest.er1 conftest.err
4713  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4714  test $ac_status = 0; }
4715done
4716
4717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4718$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4719if ${ac_cv_c_compiler_gnu+:} false; then :
4720  $as_echo_n "(cached) " >&6
4721else
4722  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4723/* end confdefs.h.  */
4724
4725int
4726main ()
4727{
4728#ifndef __GNUC__
4729       choke me
4730#endif
4731
4732  ;
4733  return 0;
4734}
4735_ACEOF
4736if ac_fn_c_try_compile "$LINENO"; then :
4737  ac_compiler_gnu=yes
4738else
4739  ac_compiler_gnu=no
4740fi
4741rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4742ac_cv_c_compiler_gnu=$ac_compiler_gnu
4743
4744fi
4745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4746$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4747if test $ac_compiler_gnu = yes; then
4748  GCC=yes
4749else
4750  GCC=
4751fi
4752ac_test_CFLAGS=${CFLAGS+set}
4753ac_save_CFLAGS=$CFLAGS
4754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4755$as_echo_n "checking whether $CC accepts -g... " >&6; }
4756if ${ac_cv_prog_cc_g+:} false; then :
4757  $as_echo_n "(cached) " >&6
4758else
4759  ac_save_c_werror_flag=$ac_c_werror_flag
4760   ac_c_werror_flag=yes
4761   ac_cv_prog_cc_g=no
4762   CFLAGS="-g"
4763   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4764/* end confdefs.h.  */
4765
4766int
4767main ()
4768{
4769
4770  ;
4771  return 0;
4772}
4773_ACEOF
4774if ac_fn_c_try_compile "$LINENO"; then :
4775  ac_cv_prog_cc_g=yes
4776else
4777  CFLAGS=""
4778      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4779/* end confdefs.h.  */
4780
4781int
4782main ()
4783{
4784
4785  ;
4786  return 0;
4787}
4788_ACEOF
4789if ac_fn_c_try_compile "$LINENO"; then :
4790
4791else
4792  ac_c_werror_flag=$ac_save_c_werror_flag
4793	 CFLAGS="-g"
4794	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4795/* end confdefs.h.  */
4796
4797int
4798main ()
4799{
4800
4801  ;
4802  return 0;
4803}
4804_ACEOF
4805if ac_fn_c_try_compile "$LINENO"; then :
4806  ac_cv_prog_cc_g=yes
4807fi
4808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4809fi
4810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4811fi
4812rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4813   ac_c_werror_flag=$ac_save_c_werror_flag
4814fi
4815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4816$as_echo "$ac_cv_prog_cc_g" >&6; }
4817if test "$ac_test_CFLAGS" = set; then
4818  CFLAGS=$ac_save_CFLAGS
4819elif test $ac_cv_prog_cc_g = yes; then
4820  if test "$GCC" = yes; then
4821    CFLAGS="-g -O2"
4822  else
4823    CFLAGS="-g"
4824  fi
4825else
4826  if test "$GCC" = yes; then
4827    CFLAGS="-O2"
4828  else
4829    CFLAGS=
4830  fi
4831fi
4832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4833$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4834if ${ac_cv_prog_cc_c89+:} false; then :
4835  $as_echo_n "(cached) " >&6
4836else
4837  ac_cv_prog_cc_c89=no
4838ac_save_CC=$CC
4839cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4840/* end confdefs.h.  */
4841#include <stdarg.h>
4842#include <stdio.h>
4843struct stat;
4844/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4845struct buf { int x; };
4846FILE * (*rcsopen) (struct buf *, struct stat *, int);
4847static char *e (p, i)
4848     char **p;
4849     int i;
4850{
4851  return p[i];
4852}
4853static char *f (char * (*g) (char **, int), char **p, ...)
4854{
4855  char *s;
4856  va_list v;
4857  va_start (v,p);
4858  s = g (p, va_arg (v,int));
4859  va_end (v);
4860  return s;
4861}
4862
4863/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4864   function prototypes and stuff, but not '\xHH' hex character constants.
4865   These don't provoke an error unfortunately, instead are silently treated
4866   as 'x'.  The following induces an error, until -std is added to get
4867   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4868   array size at least.  It's necessary to write '\x00'==0 to get something
4869   that's true only with -std.  */
4870int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4871
4872/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4873   inside strings and character constants.  */
4874#define FOO(x) 'x'
4875int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4876
4877int test (int i, double x);
4878struct s1 {int (*f) (int a);};
4879struct s2 {int (*f) (double a);};
4880int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4881int argc;
4882char **argv;
4883int
4884main ()
4885{
4886return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4887  ;
4888  return 0;
4889}
4890_ACEOF
4891for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4892	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4893do
4894  CC="$ac_save_CC $ac_arg"
4895  if ac_fn_c_try_compile "$LINENO"; then :
4896  ac_cv_prog_cc_c89=$ac_arg
4897fi
4898rm -f core conftest.err conftest.$ac_objext
4899  test "x$ac_cv_prog_cc_c89" != "xno" && break
4900done
4901rm -f conftest.$ac_ext
4902CC=$ac_save_CC
4903
4904fi
4905# AC_CACHE_VAL
4906case "x$ac_cv_prog_cc_c89" in
4907  x)
4908    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4909$as_echo "none needed" >&6; } ;;
4910  xno)
4911    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4912$as_echo "unsupported" >&6; } ;;
4913  *)
4914    CC="$CC $ac_cv_prog_cc_c89"
4915    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4916$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4917esac
4918if test "x$ac_cv_prog_cc_c89" != xno; then :
4919
4920fi
4921
4922ac_ext=c
4923ac_cpp='$CPP $CPPFLAGS'
4924ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4925ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4926ac_compiler_gnu=$ac_cv_c_compiler_gnu
4927
4928ac_ext=c
4929ac_cpp='$CPP $CPPFLAGS'
4930ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4931ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4932ac_compiler_gnu=$ac_cv_c_compiler_gnu
4933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4934$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4935if ${am_cv_prog_cc_c_o+:} false; then :
4936  $as_echo_n "(cached) " >&6
4937else
4938  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4939/* end confdefs.h.  */
4940
4941int
4942main ()
4943{
4944
4945  ;
4946  return 0;
4947}
4948_ACEOF
4949  # Make sure it works both with $CC and with simple cc.
4950  # Following AC_PROG_CC_C_O, we do the test twice because some
4951  # compilers refuse to overwrite an existing .o file with -o,
4952  # though they will create one.
4953  am_cv_prog_cc_c_o=yes
4954  for am_i in 1 2; do
4955    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4956   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4957   ac_status=$?
4958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4959   (exit $ac_status); } \
4960         && test -f conftest2.$ac_objext; then
4961      : OK
4962    else
4963      am_cv_prog_cc_c_o=no
4964      break
4965    fi
4966  done
4967  rm -f core conftest*
4968  unset am_i
4969fi
4970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4971$as_echo "$am_cv_prog_cc_c_o" >&6; }
4972if test "$am_cv_prog_cc_c_o" != yes; then
4973   # Losing compiler, so override with the script.
4974   # FIXME: It is wrong to rewrite CC.
4975   # But if we don't then we get into trouble of one sort or another.
4976   # A longer-term fix would be to have automake use am__CC in this case,
4977   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4978   CC="$am_aux_dir/compile $CC"
4979fi
4980ac_ext=c
4981ac_cpp='$CPP $CPPFLAGS'
4982ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4983ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4984ac_compiler_gnu=$ac_cv_c_compiler_gnu
4985
4986
4987ac_ext=c
4988ac_cpp='$CPP $CPPFLAGS'
4989ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4990ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4991ac_compiler_gnu=$ac_cv_c_compiler_gnu
4992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4993$as_echo_n "checking how to run the C preprocessor... " >&6; }
4994# On Suns, sometimes $CPP names a directory.
4995if test -n "$CPP" && test -d "$CPP"; then
4996  CPP=
4997fi
4998if test -z "$CPP"; then
4999  if ${ac_cv_prog_CPP+:} false; then :
5000  $as_echo_n "(cached) " >&6
5001else
5002      # Double quotes because CPP needs to be expanded
5003    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5004    do
5005      ac_preproc_ok=false
5006for ac_c_preproc_warn_flag in '' yes
5007do
5008  # Use a header file that comes with gcc, so configuring glibc
5009  # with a fresh cross-compiler works.
5010  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5011  # <limits.h> exists even on freestanding compilers.
5012  # On the NeXT, cc -E runs the code through the compiler's parser,
5013  # not just through cpp. "Syntax error" is here to catch this case.
5014  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5015/* end confdefs.h.  */
5016#ifdef __STDC__
5017# include <limits.h>
5018#else
5019# include <assert.h>
5020#endif
5021		     Syntax error
5022_ACEOF
5023if ac_fn_c_try_cpp "$LINENO"; then :
5024
5025else
5026  # Broken: fails on valid input.
5027continue
5028fi
5029rm -f conftest.err conftest.i conftest.$ac_ext
5030
5031  # OK, works on sane cases.  Now check whether nonexistent headers
5032  # can be detected and how.
5033  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5034/* end confdefs.h.  */
5035#include <ac_nonexistent.h>
5036_ACEOF
5037if ac_fn_c_try_cpp "$LINENO"; then :
5038  # Broken: success on invalid input.
5039continue
5040else
5041  # Passes both tests.
5042ac_preproc_ok=:
5043break
5044fi
5045rm -f conftest.err conftest.i conftest.$ac_ext
5046
5047done
5048# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5049rm -f conftest.i conftest.err conftest.$ac_ext
5050if $ac_preproc_ok; then :
5051  break
5052fi
5053
5054    done
5055    ac_cv_prog_CPP=$CPP
5056
5057fi
5058  CPP=$ac_cv_prog_CPP
5059else
5060  ac_cv_prog_CPP=$CPP
5061fi
5062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5063$as_echo "$CPP" >&6; }
5064ac_preproc_ok=false
5065for ac_c_preproc_warn_flag in '' yes
5066do
5067  # Use a header file that comes with gcc, so configuring glibc
5068  # with a fresh cross-compiler works.
5069  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5070  # <limits.h> exists even on freestanding compilers.
5071  # On the NeXT, cc -E runs the code through the compiler's parser,
5072  # not just through cpp. "Syntax error" is here to catch this case.
5073  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5074/* end confdefs.h.  */
5075#ifdef __STDC__
5076# include <limits.h>
5077#else
5078# include <assert.h>
5079#endif
5080		     Syntax error
5081_ACEOF
5082if ac_fn_c_try_cpp "$LINENO"; then :
5083
5084else
5085  # Broken: fails on valid input.
5086continue
5087fi
5088rm -f conftest.err conftest.i conftest.$ac_ext
5089
5090  # OK, works on sane cases.  Now check whether nonexistent headers
5091  # can be detected and how.
5092  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5093/* end confdefs.h.  */
5094#include <ac_nonexistent.h>
5095_ACEOF
5096if ac_fn_c_try_cpp "$LINENO"; then :
5097  # Broken: success on invalid input.
5098continue
5099else
5100  # Passes both tests.
5101ac_preproc_ok=:
5102break
5103fi
5104rm -f conftest.err conftest.i conftest.$ac_ext
5105
5106done
5107# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5108rm -f conftest.i conftest.err conftest.$ac_ext
5109if $ac_preproc_ok; then :
5110
5111else
5112  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5113$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5114as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5115See \`config.log' for more details" "$LINENO" 5; }
5116fi
5117
5118ac_ext=c
5119ac_cpp='$CPP $CPPFLAGS'
5120ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5121ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5122ac_compiler_gnu=$ac_cv_c_compiler_gnu
5123
5124
5125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5126$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5127if ${ac_cv_path_GREP+:} false; then :
5128  $as_echo_n "(cached) " >&6
5129else
5130  if test -z "$GREP"; then
5131  ac_path_GREP_found=false
5132  # Loop through the user's path and test for each of PROGNAME-LIST
5133  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5134for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5135do
5136  IFS=$as_save_IFS
5137  test -z "$as_dir" && as_dir=.
5138    for ac_prog in grep ggrep; do
5139    for ac_exec_ext in '' $ac_executable_extensions; do
5140      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5141      as_fn_executable_p "$ac_path_GREP" || continue
5142# Check for GNU ac_path_GREP and select it if it is found.
5143  # Check for GNU $ac_path_GREP
5144case `"$ac_path_GREP" --version 2>&1` in
5145*GNU*)
5146  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5147*)
5148  ac_count=0
5149  $as_echo_n 0123456789 >"conftest.in"
5150  while :
5151  do
5152    cat "conftest.in" "conftest.in" >"conftest.tmp"
5153    mv "conftest.tmp" "conftest.in"
5154    cp "conftest.in" "conftest.nl"
5155    $as_echo 'GREP' >> "conftest.nl"
5156    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5157    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5158    as_fn_arith $ac_count + 1 && ac_count=$as_val
5159    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5160      # Best one so far, save it but keep looking for a better one
5161      ac_cv_path_GREP="$ac_path_GREP"
5162      ac_path_GREP_max=$ac_count
5163    fi
5164    # 10*(2^10) chars as input seems more than enough
5165    test $ac_count -gt 10 && break
5166  done
5167  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5168esac
5169
5170      $ac_path_GREP_found && break 3
5171    done
5172  done
5173  done
5174IFS=$as_save_IFS
5175  if test -z "$ac_cv_path_GREP"; then
5176    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5177  fi
5178else
5179  ac_cv_path_GREP=$GREP
5180fi
5181
5182fi
5183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5184$as_echo "$ac_cv_path_GREP" >&6; }
5185 GREP="$ac_cv_path_GREP"
5186
5187
5188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5189$as_echo_n "checking for egrep... " >&6; }
5190if ${ac_cv_path_EGREP+:} false; then :
5191  $as_echo_n "(cached) " >&6
5192else
5193  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5194   then ac_cv_path_EGREP="$GREP -E"
5195   else
5196     if test -z "$EGREP"; then
5197  ac_path_EGREP_found=false
5198  # Loop through the user's path and test for each of PROGNAME-LIST
5199  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5200for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5201do
5202  IFS=$as_save_IFS
5203  test -z "$as_dir" && as_dir=.
5204    for ac_prog in egrep; do
5205    for ac_exec_ext in '' $ac_executable_extensions; do
5206      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5207      as_fn_executable_p "$ac_path_EGREP" || continue
5208# Check for GNU ac_path_EGREP and select it if it is found.
5209  # Check for GNU $ac_path_EGREP
5210case `"$ac_path_EGREP" --version 2>&1` in
5211*GNU*)
5212  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5213*)
5214  ac_count=0
5215  $as_echo_n 0123456789 >"conftest.in"
5216  while :
5217  do
5218    cat "conftest.in" "conftest.in" >"conftest.tmp"
5219    mv "conftest.tmp" "conftest.in"
5220    cp "conftest.in" "conftest.nl"
5221    $as_echo 'EGREP' >> "conftest.nl"
5222    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5223    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5224    as_fn_arith $ac_count + 1 && ac_count=$as_val
5225    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5226      # Best one so far, save it but keep looking for a better one
5227      ac_cv_path_EGREP="$ac_path_EGREP"
5228      ac_path_EGREP_max=$ac_count
5229    fi
5230    # 10*(2^10) chars as input seems more than enough
5231    test $ac_count -gt 10 && break
5232  done
5233  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5234esac
5235
5236      $ac_path_EGREP_found && break 3
5237    done
5238  done
5239  done
5240IFS=$as_save_IFS
5241  if test -z "$ac_cv_path_EGREP"; then
5242    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5243  fi
5244else
5245  ac_cv_path_EGREP=$EGREP
5246fi
5247
5248   fi
5249fi
5250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5251$as_echo "$ac_cv_path_EGREP" >&6; }
5252 EGREP="$ac_cv_path_EGREP"
5253
5254
5255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5256$as_echo_n "checking for ANSI C header files... " >&6; }
5257if ${ac_cv_header_stdc+:} false; then :
5258  $as_echo_n "(cached) " >&6
5259else
5260  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5261/* end confdefs.h.  */
5262#include <stdlib.h>
5263#include <stdarg.h>
5264#include <string.h>
5265#include <float.h>
5266
5267int
5268main ()
5269{
5270
5271  ;
5272  return 0;
5273}
5274_ACEOF
5275if ac_fn_c_try_compile "$LINENO"; then :
5276  ac_cv_header_stdc=yes
5277else
5278  ac_cv_header_stdc=no
5279fi
5280rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5281
5282if test $ac_cv_header_stdc = yes; then
5283  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5284  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5285/* end confdefs.h.  */
5286#include <string.h>
5287
5288_ACEOF
5289if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5290  $EGREP "memchr" >/dev/null 2>&1; then :
5291
5292else
5293  ac_cv_header_stdc=no
5294fi
5295rm -f conftest*
5296
5297fi
5298
5299if test $ac_cv_header_stdc = yes; then
5300  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5301  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5302/* end confdefs.h.  */
5303#include <stdlib.h>
5304
5305_ACEOF
5306if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5307  $EGREP "free" >/dev/null 2>&1; then :
5308
5309else
5310  ac_cv_header_stdc=no
5311fi
5312rm -f conftest*
5313
5314fi
5315
5316if test $ac_cv_header_stdc = yes; then
5317  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5318  if test "$cross_compiling" = yes; then :
5319  :
5320else
5321  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5322/* end confdefs.h.  */
5323#include <ctype.h>
5324#include <stdlib.h>
5325#if ((' ' & 0x0FF) == 0x020)
5326# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5327# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5328#else
5329# define ISLOWER(c) \
5330		   (('a' <= (c) && (c) <= 'i') \
5331		     || ('j' <= (c) && (c) <= 'r') \
5332		     || ('s' <= (c) && (c) <= 'z'))
5333# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5334#endif
5335
5336#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5337int
5338main ()
5339{
5340  int i;
5341  for (i = 0; i < 256; i++)
5342    if (XOR (islower (i), ISLOWER (i))
5343	|| toupper (i) != TOUPPER (i))
5344      return 2;
5345  return 0;
5346}
5347_ACEOF
5348if ac_fn_c_try_run "$LINENO"; then :
5349
5350else
5351  ac_cv_header_stdc=no
5352fi
5353rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5354  conftest.$ac_objext conftest.beam conftest.$ac_ext
5355fi
5356
5357fi
5358fi
5359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5360$as_echo "$ac_cv_header_stdc" >&6; }
5361if test $ac_cv_header_stdc = yes; then
5362
5363$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5364
5365fi
5366
5367# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5368for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5369		  inttypes.h stdint.h unistd.h
5370do :
5371  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5372ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5373"
5374if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5375  cat >>confdefs.h <<_ACEOF
5376#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5377_ACEOF
5378
5379fi
5380
5381done
5382
5383
5384
5385  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5386if test "x$ac_cv_header_minix_config_h" = xyes; then :
5387  MINIX=yes
5388else
5389  MINIX=
5390fi
5391
5392
5393  if test "$MINIX" = yes; then
5394
5395$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5396
5397
5398$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5399
5400
5401$as_echo "#define _MINIX 1" >>confdefs.h
5402
5403  fi
5404
5405
5406  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5407$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5408if ${ac_cv_safe_to_define___extensions__+:} false; then :
5409  $as_echo_n "(cached) " >&6
5410else
5411  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5412/* end confdefs.h.  */
5413
5414#         define __EXTENSIONS__ 1
5415          $ac_includes_default
5416int
5417main ()
5418{
5419
5420  ;
5421  return 0;
5422}
5423_ACEOF
5424if ac_fn_c_try_compile "$LINENO"; then :
5425  ac_cv_safe_to_define___extensions__=yes
5426else
5427  ac_cv_safe_to_define___extensions__=no
5428fi
5429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5430fi
5431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5432$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5433  test $ac_cv_safe_to_define___extensions__ = yes &&
5434    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5435
5436  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5437
5438  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5439
5440  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5441
5442  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5443
5444
5445
5446
5447
5448case `pwd` in
5449  *\ * | *\	*)
5450    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5451$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5452esac
5453
5454
5455
5456macro_version='2.2.7a'
5457macro_revision='1.3134'
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471ltmain="$ac_aux_dir/ltmain.sh"
5472
5473# Backslashify metacharacters that are still active within
5474# double-quoted strings.
5475sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5476
5477# Same as above, but do not quote variable references.
5478double_quote_subst='s/\(["`\\]\)/\\\1/g'
5479
5480# Sed substitution to delay expansion of an escaped shell variable in a
5481# double_quote_subst'ed string.
5482delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5483
5484# Sed substitution to delay expansion of an escaped single quote.
5485delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5486
5487# Sed substitution to avoid accidental globbing in evaled expressions
5488no_glob_subst='s/\*/\\\*/g'
5489
5490ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5491ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5492ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5493
5494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5495$as_echo_n "checking how to print strings... " >&6; }
5496# Test print first, because it will be a builtin if present.
5497if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5498   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5499  ECHO='print -r --'
5500elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5501  ECHO='printf %s\n'
5502else
5503  # Use this function as a fallback that always works.
5504  func_fallback_echo ()
5505  {
5506    eval 'cat <<_LTECHO_EOF
5507$1
5508_LTECHO_EOF'
5509  }
5510  ECHO='func_fallback_echo'
5511fi
5512
5513# func_echo_all arg...
5514# Invoke $ECHO with all args, space-separated.
5515func_echo_all ()
5516{
5517    $ECHO ""
5518}
5519
5520case "$ECHO" in
5521  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5522$as_echo "printf" >&6; } ;;
5523  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5524$as_echo "print -r" >&6; } ;;
5525  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5526$as_echo "cat" >&6; } ;;
5527esac
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5543$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5544if ${ac_cv_path_SED+:} false; then :
5545  $as_echo_n "(cached) " >&6
5546else
5547            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5548     for ac_i in 1 2 3 4 5 6 7; do
5549       ac_script="$ac_script$as_nl$ac_script"
5550     done
5551     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5552     { ac_script=; unset ac_script;}
5553     if test -z "$SED"; then
5554  ac_path_SED_found=false
5555  # Loop through the user's path and test for each of PROGNAME-LIST
5556  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5557for as_dir in $PATH
5558do
5559  IFS=$as_save_IFS
5560  test -z "$as_dir" && as_dir=.
5561    for ac_prog in sed gsed; do
5562    for ac_exec_ext in '' $ac_executable_extensions; do
5563      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5564      as_fn_executable_p "$ac_path_SED" || continue
5565# Check for GNU ac_path_SED and select it if it is found.
5566  # Check for GNU $ac_path_SED
5567case `"$ac_path_SED" --version 2>&1` in
5568*GNU*)
5569  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5570*)
5571  ac_count=0
5572  $as_echo_n 0123456789 >"conftest.in"
5573  while :
5574  do
5575    cat "conftest.in" "conftest.in" >"conftest.tmp"
5576    mv "conftest.tmp" "conftest.in"
5577    cp "conftest.in" "conftest.nl"
5578    $as_echo '' >> "conftest.nl"
5579    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5580    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5581    as_fn_arith $ac_count + 1 && ac_count=$as_val
5582    if test $ac_count -gt ${ac_path_SED_max-0}; then
5583      # Best one so far, save it but keep looking for a better one
5584      ac_cv_path_SED="$ac_path_SED"
5585      ac_path_SED_max=$ac_count
5586    fi
5587    # 10*(2^10) chars as input seems more than enough
5588    test $ac_count -gt 10 && break
5589  done
5590  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5591esac
5592
5593      $ac_path_SED_found && break 3
5594    done
5595  done
5596  done
5597IFS=$as_save_IFS
5598  if test -z "$ac_cv_path_SED"; then
5599    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5600  fi
5601else
5602  ac_cv_path_SED=$SED
5603fi
5604
5605fi
5606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5607$as_echo "$ac_cv_path_SED" >&6; }
5608 SED="$ac_cv_path_SED"
5609  rm -f conftest.sed
5610
5611test -z "$SED" && SED=sed
5612Xsed="$SED -e 1s/^X//"
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5625$as_echo_n "checking for fgrep... " >&6; }
5626if ${ac_cv_path_FGREP+:} false; then :
5627  $as_echo_n "(cached) " >&6
5628else
5629  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5630   then ac_cv_path_FGREP="$GREP -F"
5631   else
5632     if test -z "$FGREP"; then
5633  ac_path_FGREP_found=false
5634  # Loop through the user's path and test for each of PROGNAME-LIST
5635  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5636for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5637do
5638  IFS=$as_save_IFS
5639  test -z "$as_dir" && as_dir=.
5640    for ac_prog in fgrep; do
5641    for ac_exec_ext in '' $ac_executable_extensions; do
5642      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5643      as_fn_executable_p "$ac_path_FGREP" || continue
5644# Check for GNU ac_path_FGREP and select it if it is found.
5645  # Check for GNU $ac_path_FGREP
5646case `"$ac_path_FGREP" --version 2>&1` in
5647*GNU*)
5648  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5649*)
5650  ac_count=0
5651  $as_echo_n 0123456789 >"conftest.in"
5652  while :
5653  do
5654    cat "conftest.in" "conftest.in" >"conftest.tmp"
5655    mv "conftest.tmp" "conftest.in"
5656    cp "conftest.in" "conftest.nl"
5657    $as_echo 'FGREP' >> "conftest.nl"
5658    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5659    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5660    as_fn_arith $ac_count + 1 && ac_count=$as_val
5661    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5662      # Best one so far, save it but keep looking for a better one
5663      ac_cv_path_FGREP="$ac_path_FGREP"
5664      ac_path_FGREP_max=$ac_count
5665    fi
5666    # 10*(2^10) chars as input seems more than enough
5667    test $ac_count -gt 10 && break
5668  done
5669  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5670esac
5671
5672      $ac_path_FGREP_found && break 3
5673    done
5674  done
5675  done
5676IFS=$as_save_IFS
5677  if test -z "$ac_cv_path_FGREP"; then
5678    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5679  fi
5680else
5681  ac_cv_path_FGREP=$FGREP
5682fi
5683
5684   fi
5685fi
5686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5687$as_echo "$ac_cv_path_FGREP" >&6; }
5688 FGREP="$ac_cv_path_FGREP"
5689
5690
5691test -z "$GREP" && GREP=grep
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711# Check whether --with-gnu-ld was given.
5712if test "${with_gnu_ld+set}" = set; then :
5713  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5714else
5715  with_gnu_ld=no
5716fi
5717
5718ac_prog=ld
5719if test "$GCC" = yes; then
5720  # Check if gcc -print-prog-name=ld gives a path.
5721  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5722$as_echo_n "checking for ld used by $CC... " >&6; }
5723  case $host in
5724  *-*-mingw*)
5725    # gcc leaves a trailing carriage return which upsets mingw
5726    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5727  *)
5728    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5729  esac
5730  case $ac_prog in
5731    # Accept absolute paths.
5732    [\\/]* | ?:[\\/]*)
5733      re_direlt='/[^/][^/]*/\.\./'
5734      # Canonicalize the pathname of ld
5735      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5736      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5737	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5738      done
5739      test -z "$LD" && LD="$ac_prog"
5740      ;;
5741  "")
5742    # If it fails, then pretend we aren't using GCC.
5743    ac_prog=ld
5744    ;;
5745  *)
5746    # If it is relative, then search for the first ld in PATH.
5747    with_gnu_ld=unknown
5748    ;;
5749  esac
5750elif test "$with_gnu_ld" = yes; then
5751  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5752$as_echo_n "checking for GNU ld... " >&6; }
5753else
5754  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5755$as_echo_n "checking for non-GNU ld... " >&6; }
5756fi
5757if ${lt_cv_path_LD+:} false; then :
5758  $as_echo_n "(cached) " >&6
5759else
5760  if test -z "$LD"; then
5761  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5762  for ac_dir in $PATH; do
5763    IFS="$lt_save_ifs"
5764    test -z "$ac_dir" && ac_dir=.
5765    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5766      lt_cv_path_LD="$ac_dir/$ac_prog"
5767      # Check to see if the program is GNU ld.  I'd rather use --version,
5768      # but apparently some variants of GNU ld only accept -v.
5769      # Break only if it was the GNU/non-GNU ld that we prefer.
5770      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5771      *GNU* | *'with BFD'*)
5772	test "$with_gnu_ld" != no && break
5773	;;
5774      *)
5775	test "$with_gnu_ld" != yes && break
5776	;;
5777      esac
5778    fi
5779  done
5780  IFS="$lt_save_ifs"
5781else
5782  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5783fi
5784fi
5785
5786LD="$lt_cv_path_LD"
5787if test -n "$LD"; then
5788  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5789$as_echo "$LD" >&6; }
5790else
5791  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5792$as_echo "no" >&6; }
5793fi
5794test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5796$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5797if ${lt_cv_prog_gnu_ld+:} false; then :
5798  $as_echo_n "(cached) " >&6
5799else
5800  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5801case `$LD -v 2>&1 </dev/null` in
5802*GNU* | *'with BFD'*)
5803  lt_cv_prog_gnu_ld=yes
5804  ;;
5805*)
5806  lt_cv_prog_gnu_ld=no
5807  ;;
5808esac
5809fi
5810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5811$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5812with_gnu_ld=$lt_cv_prog_gnu_ld
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5823$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5824if ${lt_cv_path_NM+:} false; then :
5825  $as_echo_n "(cached) " >&6
5826else
5827  if test -n "$NM"; then
5828  # Let the user override the test.
5829  lt_cv_path_NM="$NM"
5830else
5831  lt_nm_to_check="${ac_tool_prefix}nm"
5832  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5833    lt_nm_to_check="$lt_nm_to_check nm"
5834  fi
5835  for lt_tmp_nm in $lt_nm_to_check; do
5836    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5837    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5838      IFS="$lt_save_ifs"
5839      test -z "$ac_dir" && ac_dir=.
5840      tmp_nm="$ac_dir/$lt_tmp_nm"
5841      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5842	# Check to see if the nm accepts a BSD-compat flag.
5843	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5844	#   nm: unknown option "B" ignored
5845	# Tru64's nm complains that /dev/null is an invalid object file
5846	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5847	*/dev/null* | *'Invalid file or object type'*)
5848	  lt_cv_path_NM="$tmp_nm -B"
5849	  break
5850	  ;;
5851	*)
5852	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5853	  */dev/null*)
5854	    lt_cv_path_NM="$tmp_nm -p"
5855	    break
5856	    ;;
5857	  *)
5858	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5859	    continue # so that we can try to find one that supports BSD flags
5860	    ;;
5861	  esac
5862	  ;;
5863	esac
5864      fi
5865    done
5866    IFS="$lt_save_ifs"
5867  done
5868  : ${lt_cv_path_NM=no}
5869fi
5870fi
5871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5872$as_echo "$lt_cv_path_NM" >&6; }
5873if test "$lt_cv_path_NM" != "no"; then
5874  NM="$lt_cv_path_NM"
5875else
5876  # Didn't find any BSD compatible name lister, look for dumpbin.
5877  if test -n "$DUMPBIN"; then :
5878    # Let the user override the test.
5879  else
5880    if test -n "$ac_tool_prefix"; then
5881  for ac_prog in dumpbin "link -dump"
5882  do
5883    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5884set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5886$as_echo_n "checking for $ac_word... " >&6; }
5887if ${ac_cv_prog_DUMPBIN+:} false; then :
5888  $as_echo_n "(cached) " >&6
5889else
5890  if test -n "$DUMPBIN"; then
5891  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5892else
5893as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5894for as_dir in $PATH
5895do
5896  IFS=$as_save_IFS
5897  test -z "$as_dir" && as_dir=.
5898    for ac_exec_ext in '' $ac_executable_extensions; do
5899  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5900    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5901    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5902    break 2
5903  fi
5904done
5905  done
5906IFS=$as_save_IFS
5907
5908fi
5909fi
5910DUMPBIN=$ac_cv_prog_DUMPBIN
5911if test -n "$DUMPBIN"; then
5912  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5913$as_echo "$DUMPBIN" >&6; }
5914else
5915  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5916$as_echo "no" >&6; }
5917fi
5918
5919
5920    test -n "$DUMPBIN" && break
5921  done
5922fi
5923if test -z "$DUMPBIN"; then
5924  ac_ct_DUMPBIN=$DUMPBIN
5925  for ac_prog in dumpbin "link -dump"
5926do
5927  # Extract the first word of "$ac_prog", so it can be a program name with args.
5928set dummy $ac_prog; ac_word=$2
5929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5930$as_echo_n "checking for $ac_word... " >&6; }
5931if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5932  $as_echo_n "(cached) " >&6
5933else
5934  if test -n "$ac_ct_DUMPBIN"; then
5935  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5936else
5937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5938for as_dir in $PATH
5939do
5940  IFS=$as_save_IFS
5941  test -z "$as_dir" && as_dir=.
5942    for ac_exec_ext in '' $ac_executable_extensions; do
5943  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5944    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5945    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5946    break 2
5947  fi
5948done
5949  done
5950IFS=$as_save_IFS
5951
5952fi
5953fi
5954ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5955if test -n "$ac_ct_DUMPBIN"; then
5956  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5957$as_echo "$ac_ct_DUMPBIN" >&6; }
5958else
5959  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5960$as_echo "no" >&6; }
5961fi
5962
5963
5964  test -n "$ac_ct_DUMPBIN" && break
5965done
5966
5967  if test "x$ac_ct_DUMPBIN" = x; then
5968    DUMPBIN=":"
5969  else
5970    case $cross_compiling:$ac_tool_warned in
5971yes:)
5972{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5973$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5974ac_tool_warned=yes ;;
5975esac
5976    DUMPBIN=$ac_ct_DUMPBIN
5977  fi
5978fi
5979
5980    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5981    *COFF*)
5982      DUMPBIN="$DUMPBIN -symbols"
5983      ;;
5984    *)
5985      DUMPBIN=:
5986      ;;
5987    esac
5988  fi
5989
5990  if test "$DUMPBIN" != ":"; then
5991    NM="$DUMPBIN"
5992  fi
5993fi
5994test -z "$NM" && NM=nm
5995
5996
5997
5998
5999
6000
6001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6002$as_echo_n "checking the name lister ($NM) interface... " >&6; }
6003if ${lt_cv_nm_interface+:} false; then :
6004  $as_echo_n "(cached) " >&6
6005else
6006  lt_cv_nm_interface="BSD nm"
6007  echo "int some_variable = 0;" > conftest.$ac_ext
6008  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6009  (eval "$ac_compile" 2>conftest.err)
6010  cat conftest.err >&5
6011  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6012  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6013  cat conftest.err >&5
6014  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6015  cat conftest.out >&5
6016  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6017    lt_cv_nm_interface="MS dumpbin"
6018  fi
6019  rm -f conftest*
6020fi
6021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6022$as_echo "$lt_cv_nm_interface" >&6; }
6023
6024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6025$as_echo_n "checking whether ln -s works... " >&6; }
6026LN_S=$as_ln_s
6027if test "$LN_S" = "ln -s"; then
6028  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6029$as_echo "yes" >&6; }
6030else
6031  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6032$as_echo "no, using $LN_S" >&6; }
6033fi
6034
6035# find the maximum length of command line arguments
6036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6037$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6038if ${lt_cv_sys_max_cmd_len+:} false; then :
6039  $as_echo_n "(cached) " >&6
6040else
6041    i=0
6042  teststring="ABCD"
6043
6044  case $build_os in
6045  msdosdjgpp*)
6046    # On DJGPP, this test can blow up pretty badly due to problems in libc
6047    # (any single argument exceeding 2000 bytes causes a buffer overrun
6048    # during glob expansion).  Even if it were fixed, the result of this
6049    # check would be larger than it should be.
6050    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6051    ;;
6052
6053  gnu*)
6054    # Under GNU Hurd, this test is not required because there is
6055    # no limit to the length of command line arguments.
6056    # Libtool will interpret -1 as no limit whatsoever
6057    lt_cv_sys_max_cmd_len=-1;
6058    ;;
6059
6060  cygwin* | mingw* | cegcc*)
6061    # On Win9x/ME, this test blows up -- it succeeds, but takes
6062    # about 5 minutes as the teststring grows exponentially.
6063    # Worse, since 9x/ME are not pre-emptively multitasking,
6064    # you end up with a "frozen" computer, even though with patience
6065    # the test eventually succeeds (with a max line length of 256k).
6066    # Instead, let's just punt: use the minimum linelength reported by
6067    # all of the supported platforms: 8192 (on NT/2K/XP).
6068    lt_cv_sys_max_cmd_len=8192;
6069    ;;
6070
6071  mint*)
6072    # On MiNT this can take a long time and run out of memory.
6073    lt_cv_sys_max_cmd_len=8192;
6074    ;;
6075
6076  amigaos*)
6077    # On AmigaOS with pdksh, this test takes hours, literally.
6078    # So we just punt and use a minimum line length of 8192.
6079    lt_cv_sys_max_cmd_len=8192;
6080    ;;
6081
6082  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6083    # This has been around since 386BSD, at least.  Likely further.
6084    if test -x /sbin/sysctl; then
6085      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6086    elif test -x /usr/sbin/sysctl; then
6087      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6088    else
6089      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6090    fi
6091    # And add a safety zone
6092    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6093    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6094    ;;
6095
6096  interix*)
6097    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6098    lt_cv_sys_max_cmd_len=196608
6099    ;;
6100
6101  osf*)
6102    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6103    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6104    # nice to cause kernel panics so lets avoid the loop below.
6105    # First set a reasonable default.
6106    lt_cv_sys_max_cmd_len=16384
6107    #
6108    if test -x /sbin/sysconfig; then
6109      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6110        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6111      esac
6112    fi
6113    ;;
6114  sco3.2v5*)
6115    lt_cv_sys_max_cmd_len=102400
6116    ;;
6117  sysv5* | sco5v6* | sysv4.2uw2*)
6118    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6119    if test -n "$kargmax"; then
6120      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
6121    else
6122      lt_cv_sys_max_cmd_len=32768
6123    fi
6124    ;;
6125  *)
6126    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6127    if test -n "$lt_cv_sys_max_cmd_len"; then
6128      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6129      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6130    else
6131      # Make teststring a little bigger before we do anything with it.
6132      # a 1K string should be a reasonable start.
6133      for i in 1 2 3 4 5 6 7 8 ; do
6134        teststring=$teststring$teststring
6135      done
6136      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6137      # If test is not a shell built-in, we'll probably end up computing a
6138      # maximum length that is only half of the actual maximum length, but
6139      # we can't tell.
6140      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6141	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6142	      test $i != 17 # 1/2 MB should be enough
6143      do
6144        i=`expr $i + 1`
6145        teststring=$teststring$teststring
6146      done
6147      # Only check the string length outside the loop.
6148      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6149      teststring=
6150      # Add a significant safety factor because C++ compilers can tack on
6151      # massive amounts of additional arguments before passing them to the
6152      # linker.  It appears as though 1/2 is a usable value.
6153      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6154    fi
6155    ;;
6156  esac
6157
6158fi
6159
6160if test -n $lt_cv_sys_max_cmd_len ; then
6161  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6162$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6163else
6164  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6165$as_echo "none" >&6; }
6166fi
6167max_cmd_len=$lt_cv_sys_max_cmd_len
6168
6169
6170
6171
6172
6173
6174: ${CP="cp -f"}
6175: ${MV="mv -f"}
6176: ${RM="rm -f"}
6177
6178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6179$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6180# Try some XSI features
6181xsi_shell=no
6182( _lt_dummy="a/b/c"
6183  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6184      = c,a/b,, \
6185    && eval 'test $(( 1 + 1 )) -eq 2 \
6186    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6187  && xsi_shell=yes
6188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6189$as_echo "$xsi_shell" >&6; }
6190
6191
6192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6193$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6194lt_shell_append=no
6195( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6196    >/dev/null 2>&1 \
6197  && lt_shell_append=yes
6198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6199$as_echo "$lt_shell_append" >&6; }
6200
6201
6202if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6203  lt_unset=unset
6204else
6205  lt_unset=false
6206fi
6207
6208
6209
6210
6211
6212# test EBCDIC or ASCII
6213case `echo X|tr X '\101'` in
6214 A) # ASCII based system
6215    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6216  lt_SP2NL='tr \040 \012'
6217  lt_NL2SP='tr \015\012 \040\040'
6218  ;;
6219 *) # EBCDIC based system
6220  lt_SP2NL='tr \100 \n'
6221  lt_NL2SP='tr \r\n \100\100'
6222  ;;
6223esac
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6234$as_echo_n "checking for $LD option to reload object files... " >&6; }
6235if ${lt_cv_ld_reload_flag+:} false; then :
6236  $as_echo_n "(cached) " >&6
6237else
6238  lt_cv_ld_reload_flag='-r'
6239fi
6240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6241$as_echo "$lt_cv_ld_reload_flag" >&6; }
6242reload_flag=$lt_cv_ld_reload_flag
6243case $reload_flag in
6244"" | " "*) ;;
6245*) reload_flag=" $reload_flag" ;;
6246esac
6247reload_cmds='$LD$reload_flag -o $output$reload_objs'
6248case $host_os in
6249  darwin*)
6250    if test "$GCC" = yes; then
6251      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6252    else
6253      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6254    fi
6255    ;;
6256esac
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266if test -n "$ac_tool_prefix"; then
6267  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6268set dummy ${ac_tool_prefix}objdump; ac_word=$2
6269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6270$as_echo_n "checking for $ac_word... " >&6; }
6271if ${ac_cv_prog_OBJDUMP+:} false; then :
6272  $as_echo_n "(cached) " >&6
6273else
6274  if test -n "$OBJDUMP"; then
6275  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6276else
6277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6278for as_dir in $PATH
6279do
6280  IFS=$as_save_IFS
6281  test -z "$as_dir" && as_dir=.
6282    for ac_exec_ext in '' $ac_executable_extensions; do
6283  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6284    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6285    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6286    break 2
6287  fi
6288done
6289  done
6290IFS=$as_save_IFS
6291
6292fi
6293fi
6294OBJDUMP=$ac_cv_prog_OBJDUMP
6295if test -n "$OBJDUMP"; then
6296  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6297$as_echo "$OBJDUMP" >&6; }
6298else
6299  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6300$as_echo "no" >&6; }
6301fi
6302
6303
6304fi
6305if test -z "$ac_cv_prog_OBJDUMP"; then
6306  ac_ct_OBJDUMP=$OBJDUMP
6307  # Extract the first word of "objdump", so it can be a program name with args.
6308set dummy objdump; ac_word=$2
6309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6310$as_echo_n "checking for $ac_word... " >&6; }
6311if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6312  $as_echo_n "(cached) " >&6
6313else
6314  if test -n "$ac_ct_OBJDUMP"; then
6315  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6316else
6317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6318for as_dir in $PATH
6319do
6320  IFS=$as_save_IFS
6321  test -z "$as_dir" && as_dir=.
6322    for ac_exec_ext in '' $ac_executable_extensions; do
6323  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6324    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6325    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6326    break 2
6327  fi
6328done
6329  done
6330IFS=$as_save_IFS
6331
6332fi
6333fi
6334ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6335if test -n "$ac_ct_OBJDUMP"; then
6336  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6337$as_echo "$ac_ct_OBJDUMP" >&6; }
6338else
6339  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6340$as_echo "no" >&6; }
6341fi
6342
6343  if test "x$ac_ct_OBJDUMP" = x; then
6344    OBJDUMP="false"
6345  else
6346    case $cross_compiling:$ac_tool_warned in
6347yes:)
6348{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6349$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6350ac_tool_warned=yes ;;
6351esac
6352    OBJDUMP=$ac_ct_OBJDUMP
6353  fi
6354else
6355  OBJDUMP="$ac_cv_prog_OBJDUMP"
6356fi
6357
6358test -z "$OBJDUMP" && OBJDUMP=objdump
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6369$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6370if ${lt_cv_deplibs_check_method+:} false; then :
6371  $as_echo_n "(cached) " >&6
6372else
6373  lt_cv_file_magic_cmd='$MAGIC_CMD'
6374lt_cv_file_magic_test_file=
6375lt_cv_deplibs_check_method='unknown'
6376# Need to set the preceding variable on all platforms that support
6377# interlibrary dependencies.
6378# 'none' -- dependencies not supported.
6379# `unknown' -- same as none, but documents that we really don't know.
6380# 'pass_all' -- all dependencies passed with no checks.
6381# 'test_compile' -- check by making test program.
6382# 'file_magic [[regex]]' -- check by looking for files in library path
6383# which responds to the $file_magic_cmd with a given extended regex.
6384# If you have `file' or equivalent on your system and you're not sure
6385# whether `pass_all' will *always* work, you probably want this one.
6386
6387case $host_os in
6388aix[4-9]*)
6389  lt_cv_deplibs_check_method=pass_all
6390  ;;
6391
6392beos*)
6393  lt_cv_deplibs_check_method=pass_all
6394  ;;
6395
6396bsdi[45]*)
6397  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6398  lt_cv_file_magic_cmd='/usr/bin/file -L'
6399  lt_cv_file_magic_test_file=/shlib/libc.so
6400  ;;
6401
6402cygwin*)
6403  # func_win32_libid is a shell function defined in ltmain.sh
6404  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6405  lt_cv_file_magic_cmd='func_win32_libid'
6406  ;;
6407
6408mingw* | pw32*)
6409  # Base MSYS/MinGW do not provide the 'file' command needed by
6410  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6411  # unless we find 'file', for example because we are cross-compiling.
6412  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6413  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6414    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6415    lt_cv_file_magic_cmd='func_win32_libid'
6416  else
6417    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6418    lt_cv_file_magic_cmd='$OBJDUMP -f'
6419  fi
6420  ;;
6421
6422cegcc*)
6423  # use the weaker test based on 'objdump'. See mingw*.
6424  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6425  lt_cv_file_magic_cmd='$OBJDUMP -f'
6426  ;;
6427
6428darwin* | rhapsody*)
6429  lt_cv_deplibs_check_method=pass_all
6430  ;;
6431
6432freebsd* | dragonfly*)
6433  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6434    case $host_cpu in
6435    i*86 )
6436      # Not sure whether the presence of OpenBSD here was a mistake.
6437      # Let's accept both of them until this is cleared up.
6438      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6439      lt_cv_file_magic_cmd=/usr/bin/file
6440      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6441      ;;
6442    esac
6443  else
6444    lt_cv_deplibs_check_method=pass_all
6445  fi
6446  ;;
6447
6448gnu*)
6449  lt_cv_deplibs_check_method=pass_all
6450  ;;
6451
6452haiku*)
6453  lt_cv_deplibs_check_method=pass_all
6454  ;;
6455
6456hpux10.20* | hpux11*)
6457  lt_cv_file_magic_cmd=/usr/bin/file
6458  case $host_cpu in
6459  ia64*)
6460    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6461    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6462    ;;
6463  hppa*64*)
6464    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]'
6465    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6466    ;;
6467  *)
6468    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6469    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6470    ;;
6471  esac
6472  ;;
6473
6474interix[3-9]*)
6475  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6476  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6477  ;;
6478
6479irix5* | irix6* | nonstopux*)
6480  case $LD in
6481  *-32|*"-32 ") libmagic=32-bit;;
6482  *-n32|*"-n32 ") libmagic=N32;;
6483  *-64|*"-64 ") libmagic=64-bit;;
6484  *) libmagic=never-match;;
6485  esac
6486  lt_cv_deplibs_check_method=pass_all
6487  ;;
6488
6489# This must be Linux ELF.
6490linux* | k*bsd*-gnu | kopensolaris*-gnu)
6491  lt_cv_deplibs_check_method=pass_all
6492  ;;
6493
6494netbsd*)
6495  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6496    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6497  else
6498    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6499  fi
6500  ;;
6501
6502newos6*)
6503  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6504  lt_cv_file_magic_cmd=/usr/bin/file
6505  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6506  ;;
6507
6508*nto* | *qnx*)
6509  lt_cv_deplibs_check_method=pass_all
6510  ;;
6511
6512openbsd*)
6513  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6514    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6515  else
6516    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6517  fi
6518  ;;
6519
6520osf3* | osf4* | osf5*)
6521  lt_cv_deplibs_check_method=pass_all
6522  ;;
6523
6524rdos*)
6525  lt_cv_deplibs_check_method=pass_all
6526  ;;
6527
6528solaris*)
6529  lt_cv_deplibs_check_method=pass_all
6530  ;;
6531
6532sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6533  lt_cv_deplibs_check_method=pass_all
6534  ;;
6535
6536sysv4 | sysv4.3*)
6537  case $host_vendor in
6538  motorola)
6539    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]'
6540    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6541    ;;
6542  ncr)
6543    lt_cv_deplibs_check_method=pass_all
6544    ;;
6545  sequent)
6546    lt_cv_file_magic_cmd='/bin/file'
6547    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6548    ;;
6549  sni)
6550    lt_cv_file_magic_cmd='/bin/file'
6551    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6552    lt_cv_file_magic_test_file=/lib/libc.so
6553    ;;
6554  siemens)
6555    lt_cv_deplibs_check_method=pass_all
6556    ;;
6557  pc)
6558    lt_cv_deplibs_check_method=pass_all
6559    ;;
6560  esac
6561  ;;
6562
6563tpf*)
6564  lt_cv_deplibs_check_method=pass_all
6565  ;;
6566esac
6567
6568fi
6569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6570$as_echo "$lt_cv_deplibs_check_method" >&6; }
6571file_magic_cmd=$lt_cv_file_magic_cmd
6572deplibs_check_method=$lt_cv_deplibs_check_method
6573test -z "$deplibs_check_method" && deplibs_check_method=unknown
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586if test -n "$ac_tool_prefix"; then
6587  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6588set dummy ${ac_tool_prefix}ar; ac_word=$2
6589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6590$as_echo_n "checking for $ac_word... " >&6; }
6591if ${ac_cv_prog_AR+:} false; then :
6592  $as_echo_n "(cached) " >&6
6593else
6594  if test -n "$AR"; then
6595  ac_cv_prog_AR="$AR" # Let the user override the test.
6596else
6597as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6598for as_dir in $PATH
6599do
6600  IFS=$as_save_IFS
6601  test -z "$as_dir" && as_dir=.
6602    for ac_exec_ext in '' $ac_executable_extensions; do
6603  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6604    ac_cv_prog_AR="${ac_tool_prefix}ar"
6605    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6606    break 2
6607  fi
6608done
6609  done
6610IFS=$as_save_IFS
6611
6612fi
6613fi
6614AR=$ac_cv_prog_AR
6615if test -n "$AR"; then
6616  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6617$as_echo "$AR" >&6; }
6618else
6619  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6620$as_echo "no" >&6; }
6621fi
6622
6623
6624fi
6625if test -z "$ac_cv_prog_AR"; then
6626  ac_ct_AR=$AR
6627  # Extract the first word of "ar", so it can be a program name with args.
6628set dummy ar; ac_word=$2
6629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6630$as_echo_n "checking for $ac_word... " >&6; }
6631if ${ac_cv_prog_ac_ct_AR+:} false; then :
6632  $as_echo_n "(cached) " >&6
6633else
6634  if test -n "$ac_ct_AR"; then
6635  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6636else
6637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6638for as_dir in $PATH
6639do
6640  IFS=$as_save_IFS
6641  test -z "$as_dir" && as_dir=.
6642    for ac_exec_ext in '' $ac_executable_extensions; do
6643  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6644    ac_cv_prog_ac_ct_AR="ar"
6645    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6646    break 2
6647  fi
6648done
6649  done
6650IFS=$as_save_IFS
6651
6652fi
6653fi
6654ac_ct_AR=$ac_cv_prog_ac_ct_AR
6655if test -n "$ac_ct_AR"; then
6656  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6657$as_echo "$ac_ct_AR" >&6; }
6658else
6659  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6660$as_echo "no" >&6; }
6661fi
6662
6663  if test "x$ac_ct_AR" = x; then
6664    AR="false"
6665  else
6666    case $cross_compiling:$ac_tool_warned in
6667yes:)
6668{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6669$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6670ac_tool_warned=yes ;;
6671esac
6672    AR=$ac_ct_AR
6673  fi
6674else
6675  AR="$ac_cv_prog_AR"
6676fi
6677
6678test -z "$AR" && AR=ar
6679test -z "$AR_FLAGS" && AR_FLAGS=cru
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691if test -n "$ac_tool_prefix"; then
6692  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6693set dummy ${ac_tool_prefix}strip; ac_word=$2
6694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6695$as_echo_n "checking for $ac_word... " >&6; }
6696if ${ac_cv_prog_STRIP+:} false; then :
6697  $as_echo_n "(cached) " >&6
6698else
6699  if test -n "$STRIP"; then
6700  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6701else
6702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6703for as_dir in $PATH
6704do
6705  IFS=$as_save_IFS
6706  test -z "$as_dir" && as_dir=.
6707    for ac_exec_ext in '' $ac_executable_extensions; do
6708  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6709    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6710    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6711    break 2
6712  fi
6713done
6714  done
6715IFS=$as_save_IFS
6716
6717fi
6718fi
6719STRIP=$ac_cv_prog_STRIP
6720if test -n "$STRIP"; then
6721  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6722$as_echo "$STRIP" >&6; }
6723else
6724  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6725$as_echo "no" >&6; }
6726fi
6727
6728
6729fi
6730if test -z "$ac_cv_prog_STRIP"; then
6731  ac_ct_STRIP=$STRIP
6732  # Extract the first word of "strip", so it can be a program name with args.
6733set dummy strip; ac_word=$2
6734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6735$as_echo_n "checking for $ac_word... " >&6; }
6736if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6737  $as_echo_n "(cached) " >&6
6738else
6739  if test -n "$ac_ct_STRIP"; then
6740  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6741else
6742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6743for as_dir in $PATH
6744do
6745  IFS=$as_save_IFS
6746  test -z "$as_dir" && as_dir=.
6747    for ac_exec_ext in '' $ac_executable_extensions; do
6748  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6749    ac_cv_prog_ac_ct_STRIP="strip"
6750    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6751    break 2
6752  fi
6753done
6754  done
6755IFS=$as_save_IFS
6756
6757fi
6758fi
6759ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6760if test -n "$ac_ct_STRIP"; then
6761  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6762$as_echo "$ac_ct_STRIP" >&6; }
6763else
6764  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6765$as_echo "no" >&6; }
6766fi
6767
6768  if test "x$ac_ct_STRIP" = x; then
6769    STRIP=":"
6770  else
6771    case $cross_compiling:$ac_tool_warned in
6772yes:)
6773{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6774$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6775ac_tool_warned=yes ;;
6776esac
6777    STRIP=$ac_ct_STRIP
6778  fi
6779else
6780  STRIP="$ac_cv_prog_STRIP"
6781fi
6782
6783test -z "$STRIP" && STRIP=:
6784
6785
6786
6787
6788
6789
6790if test -n "$ac_tool_prefix"; then
6791  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6792set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6794$as_echo_n "checking for $ac_word... " >&6; }
6795if ${ac_cv_prog_RANLIB+:} false; then :
6796  $as_echo_n "(cached) " >&6
6797else
6798  if test -n "$RANLIB"; then
6799  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6800else
6801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6802for as_dir in $PATH
6803do
6804  IFS=$as_save_IFS
6805  test -z "$as_dir" && as_dir=.
6806    for ac_exec_ext in '' $ac_executable_extensions; do
6807  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6808    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6809    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6810    break 2
6811  fi
6812done
6813  done
6814IFS=$as_save_IFS
6815
6816fi
6817fi
6818RANLIB=$ac_cv_prog_RANLIB
6819if test -n "$RANLIB"; then
6820  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6821$as_echo "$RANLIB" >&6; }
6822else
6823  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6824$as_echo "no" >&6; }
6825fi
6826
6827
6828fi
6829if test -z "$ac_cv_prog_RANLIB"; then
6830  ac_ct_RANLIB=$RANLIB
6831  # Extract the first word of "ranlib", so it can be a program name with args.
6832set dummy ranlib; ac_word=$2
6833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6834$as_echo_n "checking for $ac_word... " >&6; }
6835if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6836  $as_echo_n "(cached) " >&6
6837else
6838  if test -n "$ac_ct_RANLIB"; then
6839  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6840else
6841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6842for as_dir in $PATH
6843do
6844  IFS=$as_save_IFS
6845  test -z "$as_dir" && as_dir=.
6846    for ac_exec_ext in '' $ac_executable_extensions; do
6847  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6848    ac_cv_prog_ac_ct_RANLIB="ranlib"
6849    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6850    break 2
6851  fi
6852done
6853  done
6854IFS=$as_save_IFS
6855
6856fi
6857fi
6858ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6859if test -n "$ac_ct_RANLIB"; then
6860  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6861$as_echo "$ac_ct_RANLIB" >&6; }
6862else
6863  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6864$as_echo "no" >&6; }
6865fi
6866
6867  if test "x$ac_ct_RANLIB" = x; then
6868    RANLIB=":"
6869  else
6870    case $cross_compiling:$ac_tool_warned in
6871yes:)
6872{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6873$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6874ac_tool_warned=yes ;;
6875esac
6876    RANLIB=$ac_ct_RANLIB
6877  fi
6878else
6879  RANLIB="$ac_cv_prog_RANLIB"
6880fi
6881
6882test -z "$RANLIB" && RANLIB=:
6883
6884
6885
6886
6887
6888
6889# Determine commands to create old-style static archives.
6890old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6891old_postinstall_cmds='chmod 644 $oldlib'
6892old_postuninstall_cmds=
6893
6894if test -n "$RANLIB"; then
6895  case $host_os in
6896  openbsd*)
6897    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6898    ;;
6899  *)
6900    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6901    ;;
6902  esac
6903  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6904fi
6905
6906case $host_os in
6907  darwin*)
6908    lock_old_archive_extraction=yes ;;
6909  *)
6910    lock_old_archive_extraction=no ;;
6911esac
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951# If no C compiler was specified, use CC.
6952LTCC=${LTCC-"$CC"}
6953
6954# If no C compiler flags were specified, use CFLAGS.
6955LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6956
6957# Allow CC to be a program name with arguments.
6958compiler=$CC
6959
6960
6961# Check for command to grab the raw symbol name followed by C symbol from nm.
6962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6963$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6964if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6965  $as_echo_n "(cached) " >&6
6966else
6967
6968# These are sane defaults that work on at least a few old systems.
6969# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6970
6971# Character class describing NM global symbol codes.
6972symcode='[BCDEGRST]'
6973
6974# Regexp to match symbols that can be accessed directly from C.
6975sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6976
6977# Define system-specific variables.
6978case $host_os in
6979aix*)
6980  symcode='[BCDT]'
6981  ;;
6982cygwin* | mingw* | pw32* | cegcc*)
6983  symcode='[ABCDGISTW]'
6984  ;;
6985hpux*)
6986  if test "$host_cpu" = ia64; then
6987    symcode='[ABCDEGRST]'
6988  fi
6989  ;;
6990irix* | nonstopux*)
6991  symcode='[BCDEGRST]'
6992  ;;
6993osf*)
6994  symcode='[BCDEGQRST]'
6995  ;;
6996solaris*)
6997  symcode='[BDRT]'
6998  ;;
6999sco3.2v5*)
7000  symcode='[DT]'
7001  ;;
7002sysv4.2uw2*)
7003  symcode='[DT]'
7004  ;;
7005sysv5* | sco5v6* | unixware* | OpenUNIX*)
7006  symcode='[ABDT]'
7007  ;;
7008sysv4)
7009  symcode='[DFNSTU]'
7010  ;;
7011esac
7012
7013# If we're using GNU nm, then use its standard symbol codes.
7014case `$NM -V 2>&1` in
7015*GNU* | *'with BFD'*)
7016  symcode='[ABCDGIRSTW]' ;;
7017esac
7018
7019# Transform an extracted symbol line into a proper C declaration.
7020# Some systems (esp. on ia64) link data and code symbols differently,
7021# so use this general approach.
7022lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7023
7024# Transform an extracted symbol line into symbol name and symbol address
7025lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7026lt_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'"
7027
7028# Handle CRLF in mingw tool chain
7029opt_cr=
7030case $build_os in
7031mingw*)
7032  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7033  ;;
7034esac
7035
7036# Try without a prefix underscore, then with it.
7037for ac_symprfx in "" "_"; do
7038
7039  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7040  symxfrm="\\1 $ac_symprfx\\2 \\2"
7041
7042  # Write the raw and C identifiers.
7043  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7044    # Fake it for dumpbin and say T for any non-static function
7045    # and D for any global variable.
7046    # Also find C++ and __fastcall symbols from MSVC++,
7047    # which start with @ or ?.
7048    lt_cv_sys_global_symbol_pipe="$AWK '"\
7049"     {last_section=section; section=\$ 3};"\
7050"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7051"     \$ 0!~/External *\|/{next};"\
7052"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7053"     {if(hide[section]) next};"\
7054"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7055"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7056"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7057"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7058"     ' prfx=^$ac_symprfx"
7059  else
7060    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7061  fi
7062
7063  # Check to see that the pipe works correctly.
7064  pipe_works=no
7065
7066  rm -f conftest*
7067  cat > conftest.$ac_ext <<_LT_EOF
7068#ifdef __cplusplus
7069extern "C" {
7070#endif
7071char nm_test_var;
7072void nm_test_func(void);
7073void nm_test_func(void){}
7074#ifdef __cplusplus
7075}
7076#endif
7077int main(){nm_test_var='a';nm_test_func();return(0);}
7078_LT_EOF
7079
7080  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7081  (eval $ac_compile) 2>&5
7082  ac_status=$?
7083  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7084  test $ac_status = 0; }; then
7085    # Now try to grab the symbols.
7086    nlist=conftest.nm
7087    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7088  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7089  ac_status=$?
7090  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7091  test $ac_status = 0; } && test -s "$nlist"; then
7092      # Try sorting and uniquifying the output.
7093      if sort "$nlist" | uniq > "$nlist"T; then
7094	mv -f "$nlist"T "$nlist"
7095      else
7096	rm -f "$nlist"T
7097      fi
7098
7099      # Make sure that we snagged all the symbols we need.
7100      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7101	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7102	  cat <<_LT_EOF > conftest.$ac_ext
7103#ifdef __cplusplus
7104extern "C" {
7105#endif
7106
7107_LT_EOF
7108	  # Now generate the symbol file.
7109	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7110
7111	  cat <<_LT_EOF >> conftest.$ac_ext
7112
7113/* The mapping between symbol names and symbols.  */
7114const struct {
7115  const char *name;
7116  void       *address;
7117}
7118lt__PROGRAM__LTX_preloaded_symbols[] =
7119{
7120  { "@PROGRAM@", (void *) 0 },
7121_LT_EOF
7122	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7123	  cat <<\_LT_EOF >> conftest.$ac_ext
7124  {0, (void *) 0}
7125};
7126
7127/* This works around a problem in FreeBSD linker */
7128#ifdef FREEBSD_WORKAROUND
7129static const void *lt_preloaded_setup() {
7130  return lt__PROGRAM__LTX_preloaded_symbols;
7131}
7132#endif
7133
7134#ifdef __cplusplus
7135}
7136#endif
7137_LT_EOF
7138	  # Now try linking the two files.
7139	  mv conftest.$ac_objext conftstm.$ac_objext
7140	  lt_save_LIBS="$LIBS"
7141	  lt_save_CFLAGS="$CFLAGS"
7142	  LIBS="conftstm.$ac_objext"
7143	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7144	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7145  (eval $ac_link) 2>&5
7146  ac_status=$?
7147  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7148  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7149	    pipe_works=yes
7150	  fi
7151	  LIBS="$lt_save_LIBS"
7152	  CFLAGS="$lt_save_CFLAGS"
7153	else
7154	  echo "cannot find nm_test_func in $nlist" >&5
7155	fi
7156      else
7157	echo "cannot find nm_test_var in $nlist" >&5
7158      fi
7159    else
7160      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7161    fi
7162  else
7163    echo "$progname: failed program was:" >&5
7164    cat conftest.$ac_ext >&5
7165  fi
7166  rm -rf conftest* conftst*
7167
7168  # Do not use the global_symbol_pipe unless it works.
7169  if test "$pipe_works" = yes; then
7170    break
7171  else
7172    lt_cv_sys_global_symbol_pipe=
7173  fi
7174done
7175
7176fi
7177
7178if test -z "$lt_cv_sys_global_symbol_pipe"; then
7179  lt_cv_sys_global_symbol_to_cdecl=
7180fi
7181if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7182  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7183$as_echo "failed" >&6; }
7184else
7185  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7186$as_echo "ok" >&6; }
7187fi
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210# Check whether --enable-libtool-lock was given.
7211if test "${enable_libtool_lock+set}" = set; then :
7212  enableval=$enable_libtool_lock;
7213fi
7214
7215test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7216
7217# Some flags need to be propagated to the compiler or linker for good
7218# libtool support.
7219case $host in
7220ia64-*-hpux*)
7221  # Find out which ABI we are using.
7222  echo 'int i;' > conftest.$ac_ext
7223  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7224  (eval $ac_compile) 2>&5
7225  ac_status=$?
7226  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7227  test $ac_status = 0; }; then
7228    case `/usr/bin/file conftest.$ac_objext` in
7229      *ELF-32*)
7230	HPUX_IA64_MODE="32"
7231	;;
7232      *ELF-64*)
7233	HPUX_IA64_MODE="64"
7234	;;
7235    esac
7236  fi
7237  rm -rf conftest*
7238  ;;
7239*-*-irix6*)
7240  # Find out which ABI we are using.
7241  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7242  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7243  (eval $ac_compile) 2>&5
7244  ac_status=$?
7245  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7246  test $ac_status = 0; }; then
7247    if test "$lt_cv_prog_gnu_ld" = yes; then
7248      case `/usr/bin/file conftest.$ac_objext` in
7249	*32-bit*)
7250	  LD="${LD-ld} -melf32bsmip"
7251	  ;;
7252	*N32*)
7253	  LD="${LD-ld} -melf32bmipn32"
7254	  ;;
7255	*64-bit*)
7256	  LD="${LD-ld} -melf64bmip"
7257	;;
7258      esac
7259    else
7260      case `/usr/bin/file conftest.$ac_objext` in
7261	*32-bit*)
7262	  LD="${LD-ld} -32"
7263	  ;;
7264	*N32*)
7265	  LD="${LD-ld} -n32"
7266	  ;;
7267	*64-bit*)
7268	  LD="${LD-ld} -64"
7269	  ;;
7270      esac
7271    fi
7272  fi
7273  rm -rf conftest*
7274  ;;
7275
7276x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7277s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7278  # Find out which ABI we are using.
7279  echo 'int i;' > conftest.$ac_ext
7280  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7281  (eval $ac_compile) 2>&5
7282  ac_status=$?
7283  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7284  test $ac_status = 0; }; then
7285    case `/usr/bin/file conftest.o` in
7286      *32-bit*)
7287	case $host in
7288	  x86_64-*kfreebsd*-gnu)
7289	    LD="${LD-ld} -m elf_i386_fbsd"
7290	    ;;
7291	  x86_64-*linux*)
7292	    case `/usr/bin/file conftest.o` in
7293	      *x86-64*)
7294		LD="${LD-ld} -m elf32_x86_64"
7295		;;
7296	      *)
7297		LD="${LD-ld} -m elf_i386"
7298		;;
7299	    esac
7300	    ;;
7301	  powerpc64le-*linux*)
7302	    LD="${LD-ld} -m elf32lppclinux"
7303	    ;;
7304	  powerpc64-*linux*)
7305	    LD="${LD-ld} -m elf32ppclinux"
7306	    ;;
7307	  s390x-*linux*)
7308	    LD="${LD-ld} -m elf_s390"
7309	    ;;
7310	  sparc64-*linux*)
7311	    LD="${LD-ld} -m elf32_sparc"
7312	    ;;
7313	esac
7314	;;
7315      *64-bit*)
7316	case $host in
7317	  x86_64-*kfreebsd*-gnu)
7318	    LD="${LD-ld} -m elf_x86_64_fbsd"
7319	    ;;
7320	  x86_64-*linux*)
7321	    LD="${LD-ld} -m elf_x86_64"
7322	    ;;
7323	  powerpcle-*linux*)
7324	    LD="${LD-ld} -m elf64lppc"
7325	    ;;
7326	  powerpc-*linux*)
7327	    LD="${LD-ld} -m elf64ppc"
7328	    ;;
7329	  s390*-*linux*|s390*-*tpf*)
7330	    LD="${LD-ld} -m elf64_s390"
7331	    ;;
7332	  sparc*-*linux*)
7333	    LD="${LD-ld} -m elf64_sparc"
7334	    ;;
7335	esac
7336	;;
7337    esac
7338  fi
7339  rm -rf conftest*
7340  ;;
7341
7342*-*-sco3.2v5*)
7343  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7344  SAVE_CFLAGS="$CFLAGS"
7345  CFLAGS="$CFLAGS -belf"
7346  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7347$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7348if ${lt_cv_cc_needs_belf+:} false; then :
7349  $as_echo_n "(cached) " >&6
7350else
7351  ac_ext=c
7352ac_cpp='$CPP $CPPFLAGS'
7353ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7354ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7355ac_compiler_gnu=$ac_cv_c_compiler_gnu
7356
7357     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7358/* end confdefs.h.  */
7359
7360int
7361main ()
7362{
7363
7364  ;
7365  return 0;
7366}
7367_ACEOF
7368if ac_fn_c_try_link "$LINENO"; then :
7369  lt_cv_cc_needs_belf=yes
7370else
7371  lt_cv_cc_needs_belf=no
7372fi
7373rm -f core conftest.err conftest.$ac_objext \
7374    conftest$ac_exeext conftest.$ac_ext
7375     ac_ext=c
7376ac_cpp='$CPP $CPPFLAGS'
7377ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7378ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7379ac_compiler_gnu=$ac_cv_c_compiler_gnu
7380
7381fi
7382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7383$as_echo "$lt_cv_cc_needs_belf" >&6; }
7384  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7385    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7386    CFLAGS="$SAVE_CFLAGS"
7387  fi
7388  ;;
7389sparc*-*solaris*)
7390  # Find out which ABI we are using.
7391  echo 'int i;' > conftest.$ac_ext
7392  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7393  (eval $ac_compile) 2>&5
7394  ac_status=$?
7395  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7396  test $ac_status = 0; }; then
7397    case `/usr/bin/file conftest.o` in
7398    *64-bit*)
7399      case $lt_cv_prog_gnu_ld in
7400      yes*) LD="${LD-ld} -m elf64_sparc" ;;
7401      *)
7402	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7403	  LD="${LD-ld} -64"
7404	fi
7405	;;
7406      esac
7407      ;;
7408    esac
7409  fi
7410  rm -rf conftest*
7411  ;;
7412esac
7413
7414need_locks="$enable_libtool_lock"
7415
7416
7417  case $host_os in
7418    rhapsody* | darwin*)
7419    if test -n "$ac_tool_prefix"; then
7420  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7421set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7423$as_echo_n "checking for $ac_word... " >&6; }
7424if ${ac_cv_prog_DSYMUTIL+:} false; then :
7425  $as_echo_n "(cached) " >&6
7426else
7427  if test -n "$DSYMUTIL"; then
7428  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7429else
7430as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7431for as_dir in $PATH
7432do
7433  IFS=$as_save_IFS
7434  test -z "$as_dir" && as_dir=.
7435    for ac_exec_ext in '' $ac_executable_extensions; do
7436  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7437    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7438    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7439    break 2
7440  fi
7441done
7442  done
7443IFS=$as_save_IFS
7444
7445fi
7446fi
7447DSYMUTIL=$ac_cv_prog_DSYMUTIL
7448if test -n "$DSYMUTIL"; then
7449  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7450$as_echo "$DSYMUTIL" >&6; }
7451else
7452  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7453$as_echo "no" >&6; }
7454fi
7455
7456
7457fi
7458if test -z "$ac_cv_prog_DSYMUTIL"; then
7459  ac_ct_DSYMUTIL=$DSYMUTIL
7460  # Extract the first word of "dsymutil", so it can be a program name with args.
7461set dummy dsymutil; ac_word=$2
7462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7463$as_echo_n "checking for $ac_word... " >&6; }
7464if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7465  $as_echo_n "(cached) " >&6
7466else
7467  if test -n "$ac_ct_DSYMUTIL"; then
7468  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7469else
7470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7471for as_dir in $PATH
7472do
7473  IFS=$as_save_IFS
7474  test -z "$as_dir" && as_dir=.
7475    for ac_exec_ext in '' $ac_executable_extensions; do
7476  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7477    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7478    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7479    break 2
7480  fi
7481done
7482  done
7483IFS=$as_save_IFS
7484
7485fi
7486fi
7487ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7488if test -n "$ac_ct_DSYMUTIL"; then
7489  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7490$as_echo "$ac_ct_DSYMUTIL" >&6; }
7491else
7492  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7493$as_echo "no" >&6; }
7494fi
7495
7496  if test "x$ac_ct_DSYMUTIL" = x; then
7497    DSYMUTIL=":"
7498  else
7499    case $cross_compiling:$ac_tool_warned in
7500yes:)
7501{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7502$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7503ac_tool_warned=yes ;;
7504esac
7505    DSYMUTIL=$ac_ct_DSYMUTIL
7506  fi
7507else
7508  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7509fi
7510
7511    if test -n "$ac_tool_prefix"; then
7512  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7513set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7515$as_echo_n "checking for $ac_word... " >&6; }
7516if ${ac_cv_prog_NMEDIT+:} false; then :
7517  $as_echo_n "(cached) " >&6
7518else
7519  if test -n "$NMEDIT"; then
7520  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7521else
7522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7523for as_dir in $PATH
7524do
7525  IFS=$as_save_IFS
7526  test -z "$as_dir" && as_dir=.
7527    for ac_exec_ext in '' $ac_executable_extensions; do
7528  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7529    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7530    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7531    break 2
7532  fi
7533done
7534  done
7535IFS=$as_save_IFS
7536
7537fi
7538fi
7539NMEDIT=$ac_cv_prog_NMEDIT
7540if test -n "$NMEDIT"; then
7541  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7542$as_echo "$NMEDIT" >&6; }
7543else
7544  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7545$as_echo "no" >&6; }
7546fi
7547
7548
7549fi
7550if test -z "$ac_cv_prog_NMEDIT"; then
7551  ac_ct_NMEDIT=$NMEDIT
7552  # Extract the first word of "nmedit", so it can be a program name with args.
7553set dummy nmedit; ac_word=$2
7554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7555$as_echo_n "checking for $ac_word... " >&6; }
7556if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7557  $as_echo_n "(cached) " >&6
7558else
7559  if test -n "$ac_ct_NMEDIT"; then
7560  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7561else
7562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7563for as_dir in $PATH
7564do
7565  IFS=$as_save_IFS
7566  test -z "$as_dir" && as_dir=.
7567    for ac_exec_ext in '' $ac_executable_extensions; do
7568  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7569    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7570    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7571    break 2
7572  fi
7573done
7574  done
7575IFS=$as_save_IFS
7576
7577fi
7578fi
7579ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7580if test -n "$ac_ct_NMEDIT"; then
7581  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7582$as_echo "$ac_ct_NMEDIT" >&6; }
7583else
7584  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7585$as_echo "no" >&6; }
7586fi
7587
7588  if test "x$ac_ct_NMEDIT" = x; then
7589    NMEDIT=":"
7590  else
7591    case $cross_compiling:$ac_tool_warned in
7592yes:)
7593{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7594$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7595ac_tool_warned=yes ;;
7596esac
7597    NMEDIT=$ac_ct_NMEDIT
7598  fi
7599else
7600  NMEDIT="$ac_cv_prog_NMEDIT"
7601fi
7602
7603    if test -n "$ac_tool_prefix"; then
7604  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7605set dummy ${ac_tool_prefix}lipo; ac_word=$2
7606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7607$as_echo_n "checking for $ac_word... " >&6; }
7608if ${ac_cv_prog_LIPO+:} false; then :
7609  $as_echo_n "(cached) " >&6
7610else
7611  if test -n "$LIPO"; then
7612  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7613else
7614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7615for as_dir in $PATH
7616do
7617  IFS=$as_save_IFS
7618  test -z "$as_dir" && as_dir=.
7619    for ac_exec_ext in '' $ac_executable_extensions; do
7620  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7621    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7622    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7623    break 2
7624  fi
7625done
7626  done
7627IFS=$as_save_IFS
7628
7629fi
7630fi
7631LIPO=$ac_cv_prog_LIPO
7632if test -n "$LIPO"; then
7633  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7634$as_echo "$LIPO" >&6; }
7635else
7636  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7637$as_echo "no" >&6; }
7638fi
7639
7640
7641fi
7642if test -z "$ac_cv_prog_LIPO"; then
7643  ac_ct_LIPO=$LIPO
7644  # Extract the first word of "lipo", so it can be a program name with args.
7645set dummy lipo; ac_word=$2
7646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7647$as_echo_n "checking for $ac_word... " >&6; }
7648if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7649  $as_echo_n "(cached) " >&6
7650else
7651  if test -n "$ac_ct_LIPO"; then
7652  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7653else
7654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7655for as_dir in $PATH
7656do
7657  IFS=$as_save_IFS
7658  test -z "$as_dir" && as_dir=.
7659    for ac_exec_ext in '' $ac_executable_extensions; do
7660  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7661    ac_cv_prog_ac_ct_LIPO="lipo"
7662    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7663    break 2
7664  fi
7665done
7666  done
7667IFS=$as_save_IFS
7668
7669fi
7670fi
7671ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7672if test -n "$ac_ct_LIPO"; then
7673  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7674$as_echo "$ac_ct_LIPO" >&6; }
7675else
7676  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7677$as_echo "no" >&6; }
7678fi
7679
7680  if test "x$ac_ct_LIPO" = x; then
7681    LIPO=":"
7682  else
7683    case $cross_compiling:$ac_tool_warned in
7684yes:)
7685{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7686$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7687ac_tool_warned=yes ;;
7688esac
7689    LIPO=$ac_ct_LIPO
7690  fi
7691else
7692  LIPO="$ac_cv_prog_LIPO"
7693fi
7694
7695    if test -n "$ac_tool_prefix"; then
7696  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7697set dummy ${ac_tool_prefix}otool; ac_word=$2
7698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7699$as_echo_n "checking for $ac_word... " >&6; }
7700if ${ac_cv_prog_OTOOL+:} false; then :
7701  $as_echo_n "(cached) " >&6
7702else
7703  if test -n "$OTOOL"; then
7704  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7705else
7706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7707for as_dir in $PATH
7708do
7709  IFS=$as_save_IFS
7710  test -z "$as_dir" && as_dir=.
7711    for ac_exec_ext in '' $ac_executable_extensions; do
7712  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7713    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7714    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7715    break 2
7716  fi
7717done
7718  done
7719IFS=$as_save_IFS
7720
7721fi
7722fi
7723OTOOL=$ac_cv_prog_OTOOL
7724if test -n "$OTOOL"; then
7725  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7726$as_echo "$OTOOL" >&6; }
7727else
7728  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7729$as_echo "no" >&6; }
7730fi
7731
7732
7733fi
7734if test -z "$ac_cv_prog_OTOOL"; then
7735  ac_ct_OTOOL=$OTOOL
7736  # Extract the first word of "otool", so it can be a program name with args.
7737set dummy otool; ac_word=$2
7738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7739$as_echo_n "checking for $ac_word... " >&6; }
7740if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7741  $as_echo_n "(cached) " >&6
7742else
7743  if test -n "$ac_ct_OTOOL"; then
7744  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7745else
7746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7747for as_dir in $PATH
7748do
7749  IFS=$as_save_IFS
7750  test -z "$as_dir" && as_dir=.
7751    for ac_exec_ext in '' $ac_executable_extensions; do
7752  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7753    ac_cv_prog_ac_ct_OTOOL="otool"
7754    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7755    break 2
7756  fi
7757done
7758  done
7759IFS=$as_save_IFS
7760
7761fi
7762fi
7763ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7764if test -n "$ac_ct_OTOOL"; then
7765  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7766$as_echo "$ac_ct_OTOOL" >&6; }
7767else
7768  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7769$as_echo "no" >&6; }
7770fi
7771
7772  if test "x$ac_ct_OTOOL" = x; then
7773    OTOOL=":"
7774  else
7775    case $cross_compiling:$ac_tool_warned in
7776yes:)
7777{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7778$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7779ac_tool_warned=yes ;;
7780esac
7781    OTOOL=$ac_ct_OTOOL
7782  fi
7783else
7784  OTOOL="$ac_cv_prog_OTOOL"
7785fi
7786
7787    if test -n "$ac_tool_prefix"; then
7788  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7789set dummy ${ac_tool_prefix}otool64; ac_word=$2
7790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7791$as_echo_n "checking for $ac_word... " >&6; }
7792if ${ac_cv_prog_OTOOL64+:} false; then :
7793  $as_echo_n "(cached) " >&6
7794else
7795  if test -n "$OTOOL64"; then
7796  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7797else
7798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7799for as_dir in $PATH
7800do
7801  IFS=$as_save_IFS
7802  test -z "$as_dir" && as_dir=.
7803    for ac_exec_ext in '' $ac_executable_extensions; do
7804  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7805    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7806    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7807    break 2
7808  fi
7809done
7810  done
7811IFS=$as_save_IFS
7812
7813fi
7814fi
7815OTOOL64=$ac_cv_prog_OTOOL64
7816if test -n "$OTOOL64"; then
7817  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7818$as_echo "$OTOOL64" >&6; }
7819else
7820  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7821$as_echo "no" >&6; }
7822fi
7823
7824
7825fi
7826if test -z "$ac_cv_prog_OTOOL64"; then
7827  ac_ct_OTOOL64=$OTOOL64
7828  # Extract the first word of "otool64", so it can be a program name with args.
7829set dummy otool64; ac_word=$2
7830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7831$as_echo_n "checking for $ac_word... " >&6; }
7832if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7833  $as_echo_n "(cached) " >&6
7834else
7835  if test -n "$ac_ct_OTOOL64"; then
7836  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7837else
7838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7839for as_dir in $PATH
7840do
7841  IFS=$as_save_IFS
7842  test -z "$as_dir" && as_dir=.
7843    for ac_exec_ext in '' $ac_executable_extensions; do
7844  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7845    ac_cv_prog_ac_ct_OTOOL64="otool64"
7846    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7847    break 2
7848  fi
7849done
7850  done
7851IFS=$as_save_IFS
7852
7853fi
7854fi
7855ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7856if test -n "$ac_ct_OTOOL64"; then
7857  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7858$as_echo "$ac_ct_OTOOL64" >&6; }
7859else
7860  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7861$as_echo "no" >&6; }
7862fi
7863
7864  if test "x$ac_ct_OTOOL64" = x; then
7865    OTOOL64=":"
7866  else
7867    case $cross_compiling:$ac_tool_warned in
7868yes:)
7869{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7870$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7871ac_tool_warned=yes ;;
7872esac
7873    OTOOL64=$ac_ct_OTOOL64
7874  fi
7875else
7876  OTOOL64="$ac_cv_prog_OTOOL64"
7877fi
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7906$as_echo_n "checking for -single_module linker flag... " >&6; }
7907if ${lt_cv_apple_cc_single_mod+:} false; then :
7908  $as_echo_n "(cached) " >&6
7909else
7910  lt_cv_apple_cc_single_mod=no
7911      if test -z "${LT_MULTI_MODULE}"; then
7912	# By default we will add the -single_module flag. You can override
7913	# by either setting the environment variable LT_MULTI_MODULE
7914	# non-empty at configure time, or by adding -multi_module to the
7915	# link flags.
7916	rm -rf libconftest.dylib*
7917	echo "int foo(void){return 1;}" > conftest.c
7918	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7919-dynamiclib -Wl,-single_module conftest.c" >&5
7920	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7921	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7922        _lt_result=$?
7923	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7924	  lt_cv_apple_cc_single_mod=yes
7925	else
7926	  cat conftest.err >&5
7927	fi
7928	rm -rf libconftest.dylib*
7929	rm -f conftest.*
7930      fi
7931fi
7932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7933$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7934    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7935$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7936if ${lt_cv_ld_exported_symbols_list+:} false; then :
7937  $as_echo_n "(cached) " >&6
7938else
7939  lt_cv_ld_exported_symbols_list=no
7940      save_LDFLAGS=$LDFLAGS
7941      echo "_main" > conftest.sym
7942      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7943      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7944/* end confdefs.h.  */
7945
7946int
7947main ()
7948{
7949
7950  ;
7951  return 0;
7952}
7953_ACEOF
7954if ac_fn_c_try_link "$LINENO"; then :
7955  lt_cv_ld_exported_symbols_list=yes
7956else
7957  lt_cv_ld_exported_symbols_list=no
7958fi
7959rm -f core conftest.err conftest.$ac_objext \
7960    conftest$ac_exeext conftest.$ac_ext
7961	LDFLAGS="$save_LDFLAGS"
7962
7963fi
7964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7965$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7966    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7967$as_echo_n "checking for -force_load linker flag... " >&6; }
7968if ${lt_cv_ld_force_load+:} false; then :
7969  $as_echo_n "(cached) " >&6
7970else
7971  lt_cv_ld_force_load=no
7972      cat > conftest.c << _LT_EOF
7973int forced_loaded() { return 2;}
7974_LT_EOF
7975      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7976      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7977      echo "$AR cru libconftest.a conftest.o" >&5
7978      $AR cru libconftest.a conftest.o 2>&5
7979      cat > conftest.c << _LT_EOF
7980int main() { return 0;}
7981_LT_EOF
7982      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7983      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7984      _lt_result=$?
7985      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7986	lt_cv_ld_force_load=yes
7987      else
7988	cat conftest.err >&5
7989      fi
7990        rm -f conftest.err libconftest.a conftest conftest.c
7991        rm -rf conftest.dSYM
7992
7993fi
7994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7995$as_echo "$lt_cv_ld_force_load" >&6; }
7996    case $host_os in
7997    rhapsody* | darwin1.[012])
7998      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7999    darwin1.*)
8000      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8001    darwin*) # darwin 5.x on
8002      # if running on 10.5 or later, the deployment target defaults
8003      # to the OS version, if on x86, and 10.4, the deployment
8004      # target defaults to 10.4. Don't you love it?
8005      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8006	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8007	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8008	10.[012][,.]*)
8009	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8010	10.*)
8011	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8012      esac
8013    ;;
8014  esac
8015    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8016      _lt_dar_single_mod='$single_module'
8017    fi
8018    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8019      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8020    else
8021      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8022    fi
8023    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8024      _lt_dsymutil='~$DSYMUTIL $lib || :'
8025    else
8026      _lt_dsymutil=
8027    fi
8028    ;;
8029  esac
8030
8031for ac_header in dlfcn.h
8032do :
8033  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8034"
8035if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8036  cat >>confdefs.h <<_ACEOF
8037#define HAVE_DLFCN_H 1
8038_ACEOF
8039
8040fi
8041
8042done
8043
8044
8045
8046
8047
8048# Set options
8049
8050
8051
8052        enable_dlopen=no
8053
8054
8055  enable_win32_dll=no
8056
8057
8058            # Check whether --enable-shared was given.
8059if test "${enable_shared+set}" = set; then :
8060  enableval=$enable_shared; p=${PACKAGE-default}
8061    case $enableval in
8062    yes) enable_shared=yes ;;
8063    no) enable_shared=no ;;
8064    *)
8065      enable_shared=no
8066      # Look at the argument we got.  We use all the common list separators.
8067      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8068      for pkg in $enableval; do
8069	IFS="$lt_save_ifs"
8070	if test "X$pkg" = "X$p"; then
8071	  enable_shared=yes
8072	fi
8073      done
8074      IFS="$lt_save_ifs"
8075      ;;
8076    esac
8077else
8078  enable_shared=yes
8079fi
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089  # Check whether --enable-static was given.
8090if test "${enable_static+set}" = set; then :
8091  enableval=$enable_static; p=${PACKAGE-default}
8092    case $enableval in
8093    yes) enable_static=yes ;;
8094    no) enable_static=no ;;
8095    *)
8096     enable_static=no
8097      # Look at the argument we got.  We use all the common list separators.
8098      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8099      for pkg in $enableval; do
8100	IFS="$lt_save_ifs"
8101	if test "X$pkg" = "X$p"; then
8102	  enable_static=yes
8103	fi
8104      done
8105      IFS="$lt_save_ifs"
8106      ;;
8107    esac
8108else
8109  enable_static=yes
8110fi
8111
8112
8113
8114
8115
8116
8117
8118
8119
8120
8121# Check whether --with-pic was given.
8122if test "${with_pic+set}" = set; then :
8123  withval=$with_pic; pic_mode="$withval"
8124else
8125  pic_mode=default
8126fi
8127
8128
8129test -z "$pic_mode" && pic_mode=default
8130
8131
8132
8133
8134
8135
8136
8137  # Check whether --enable-fast-install was given.
8138if test "${enable_fast_install+set}" = set; then :
8139  enableval=$enable_fast_install; p=${PACKAGE-default}
8140    case $enableval in
8141    yes) enable_fast_install=yes ;;
8142    no) enable_fast_install=no ;;
8143    *)
8144      enable_fast_install=no
8145      # Look at the argument we got.  We use all the common list separators.
8146      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8147      for pkg in $enableval; do
8148	IFS="$lt_save_ifs"
8149	if test "X$pkg" = "X$p"; then
8150	  enable_fast_install=yes
8151	fi
8152      done
8153      IFS="$lt_save_ifs"
8154      ;;
8155    esac
8156else
8157  enable_fast_install=yes
8158fi
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170# This can be used to rebuild libtool when needed
8171LIBTOOL_DEPS="$ltmain"
8172
8173# Always use our own libtool.
8174LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201test -z "$LN_S" && LN_S="ln -s"
8202
8203
8204
8205
8206
8207
8208
8209
8210
8211
8212
8213
8214
8215
8216if test -n "${ZSH_VERSION+set}" ; then
8217   setopt NO_GLOB_SUBST
8218fi
8219
8220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8221$as_echo_n "checking for objdir... " >&6; }
8222if ${lt_cv_objdir+:} false; then :
8223  $as_echo_n "(cached) " >&6
8224else
8225  rm -f .libs 2>/dev/null
8226mkdir .libs 2>/dev/null
8227if test -d .libs; then
8228  lt_cv_objdir=.libs
8229else
8230  # MS-DOS does not allow filenames that begin with a dot.
8231  lt_cv_objdir=_libs
8232fi
8233rmdir .libs 2>/dev/null
8234fi
8235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8236$as_echo "$lt_cv_objdir" >&6; }
8237objdir=$lt_cv_objdir
8238
8239
8240
8241
8242
8243cat >>confdefs.h <<_ACEOF
8244#define LT_OBJDIR "$lt_cv_objdir/"
8245_ACEOF
8246
8247
8248
8249
8250case $host_os in
8251aix3*)
8252  # AIX sometimes has problems with the GCC collect2 program.  For some
8253  # reason, if we set the COLLECT_NAMES environment variable, the problems
8254  # vanish in a puff of smoke.
8255  if test "X${COLLECT_NAMES+set}" != Xset; then
8256    COLLECT_NAMES=
8257    export COLLECT_NAMES
8258  fi
8259  ;;
8260esac
8261
8262# Global variables:
8263ofile=libtool
8264can_build_shared=yes
8265
8266# All known linkers require a `.a' archive for static linking (except MSVC,
8267# which needs '.lib').
8268libext=a
8269
8270with_gnu_ld="$lt_cv_prog_gnu_ld"
8271
8272old_CC="$CC"
8273old_CFLAGS="$CFLAGS"
8274
8275# Set sane defaults for various variables
8276test -z "$CC" && CC=cc
8277test -z "$LTCC" && LTCC=$CC
8278test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8279test -z "$LD" && LD=ld
8280test -z "$ac_objext" && ac_objext=o
8281
8282for cc_temp in $compiler""; do
8283  case $cc_temp in
8284    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8285    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8286    \-*) ;;
8287    *) break;;
8288  esac
8289done
8290cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8291
8292
8293# Only perform the check for file, if the check method requires it
8294test -z "$MAGIC_CMD" && MAGIC_CMD=file
8295case $deplibs_check_method in
8296file_magic*)
8297  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8298    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8299$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8300if ${lt_cv_path_MAGIC_CMD+:} false; then :
8301  $as_echo_n "(cached) " >&6
8302else
8303  case $MAGIC_CMD in
8304[\\/*] |  ?:[\\/]*)
8305  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8306  ;;
8307*)
8308  lt_save_MAGIC_CMD="$MAGIC_CMD"
8309  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8310  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8311  for ac_dir in $ac_dummy; do
8312    IFS="$lt_save_ifs"
8313    test -z "$ac_dir" && ac_dir=.
8314    if test -f $ac_dir/${ac_tool_prefix}file; then
8315      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8316      if test -n "$file_magic_test_file"; then
8317	case $deplibs_check_method in
8318	"file_magic "*)
8319	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8320	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8321	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8322	    $EGREP "$file_magic_regex" > /dev/null; then
8323	    :
8324	  else
8325	    cat <<_LT_EOF 1>&2
8326
8327*** Warning: the command libtool uses to detect shared libraries,
8328*** $file_magic_cmd, produces output that libtool cannot recognize.
8329*** The result is that libtool may fail to recognize shared libraries
8330*** as such.  This will affect the creation of libtool libraries that
8331*** depend on shared libraries, but programs linked with such libtool
8332*** libraries will work regardless of this problem.  Nevertheless, you
8333*** may want to report the problem to your system manager and/or to
8334*** bug-libtool@gnu.org
8335
8336_LT_EOF
8337	  fi ;;
8338	esac
8339      fi
8340      break
8341    fi
8342  done
8343  IFS="$lt_save_ifs"
8344  MAGIC_CMD="$lt_save_MAGIC_CMD"
8345  ;;
8346esac
8347fi
8348
8349MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8350if test -n "$MAGIC_CMD"; then
8351  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8352$as_echo "$MAGIC_CMD" >&6; }
8353else
8354  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8355$as_echo "no" >&6; }
8356fi
8357
8358
8359
8360
8361
8362if test -z "$lt_cv_path_MAGIC_CMD"; then
8363  if test -n "$ac_tool_prefix"; then
8364    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8365$as_echo_n "checking for file... " >&6; }
8366if ${lt_cv_path_MAGIC_CMD+:} false; then :
8367  $as_echo_n "(cached) " >&6
8368else
8369  case $MAGIC_CMD in
8370[\\/*] |  ?:[\\/]*)
8371  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8372  ;;
8373*)
8374  lt_save_MAGIC_CMD="$MAGIC_CMD"
8375  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8376  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8377  for ac_dir in $ac_dummy; do
8378    IFS="$lt_save_ifs"
8379    test -z "$ac_dir" && ac_dir=.
8380    if test -f $ac_dir/file; then
8381      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8382      if test -n "$file_magic_test_file"; then
8383	case $deplibs_check_method in
8384	"file_magic "*)
8385	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8386	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8387	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8388	    $EGREP "$file_magic_regex" > /dev/null; then
8389	    :
8390	  else
8391	    cat <<_LT_EOF 1>&2
8392
8393*** Warning: the command libtool uses to detect shared libraries,
8394*** $file_magic_cmd, produces output that libtool cannot recognize.
8395*** The result is that libtool may fail to recognize shared libraries
8396*** as such.  This will affect the creation of libtool libraries that
8397*** depend on shared libraries, but programs linked with such libtool
8398*** libraries will work regardless of this problem.  Nevertheless, you
8399*** may want to report the problem to your system manager and/or to
8400*** bug-libtool@gnu.org
8401
8402_LT_EOF
8403	  fi ;;
8404	esac
8405      fi
8406      break
8407    fi
8408  done
8409  IFS="$lt_save_ifs"
8410  MAGIC_CMD="$lt_save_MAGIC_CMD"
8411  ;;
8412esac
8413fi
8414
8415MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8416if test -n "$MAGIC_CMD"; then
8417  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8418$as_echo "$MAGIC_CMD" >&6; }
8419else
8420  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8421$as_echo "no" >&6; }
8422fi
8423
8424
8425  else
8426    MAGIC_CMD=:
8427  fi
8428fi
8429
8430  fi
8431  ;;
8432esac
8433
8434# Use C for the default configuration in the libtool script
8435
8436lt_save_CC="$CC"
8437ac_ext=c
8438ac_cpp='$CPP $CPPFLAGS'
8439ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8440ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8441ac_compiler_gnu=$ac_cv_c_compiler_gnu
8442
8443
8444# Source file extension for C test sources.
8445ac_ext=c
8446
8447# Object file extension for compiled C test sources.
8448objext=o
8449objext=$objext
8450
8451# Code to be used in simple compile tests
8452lt_simple_compile_test_code="int some_variable = 0;"
8453
8454# Code to be used in simple link tests
8455lt_simple_link_test_code='int main(){return(0);}'
8456
8457
8458
8459
8460
8461
8462
8463# If no C compiler was specified, use CC.
8464LTCC=${LTCC-"$CC"}
8465
8466# If no C compiler flags were specified, use CFLAGS.
8467LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8468
8469# Allow CC to be a program name with arguments.
8470compiler=$CC
8471
8472# Save the default compiler, since it gets overwritten when the other
8473# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8474compiler_DEFAULT=$CC
8475
8476# save warnings/boilerplate of simple test code
8477ac_outfile=conftest.$ac_objext
8478echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8479eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8480_lt_compiler_boilerplate=`cat conftest.err`
8481$RM conftest*
8482
8483ac_outfile=conftest.$ac_objext
8484echo "$lt_simple_link_test_code" >conftest.$ac_ext
8485eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8486_lt_linker_boilerplate=`cat conftest.err`
8487$RM -r conftest*
8488
8489
8490## CAVEAT EMPTOR:
8491## There is no encapsulation within the following macros, do not change
8492## the running order or otherwise move them around unless you know exactly
8493## what you are doing...
8494if test -n "$compiler"; then
8495
8496lt_prog_compiler_no_builtin_flag=
8497
8498if test "$GCC" = yes; then
8499  case $cc_basename in
8500  nvcc*)
8501    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8502  *)
8503    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8504  esac
8505
8506  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8507$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8508if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8509  $as_echo_n "(cached) " >&6
8510else
8511  lt_cv_prog_compiler_rtti_exceptions=no
8512   ac_outfile=conftest.$ac_objext
8513   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8514   lt_compiler_flag="-fno-rtti -fno-exceptions"
8515   # Insert the option either (1) after the last *FLAGS variable, or
8516   # (2) before a word containing "conftest.", or (3) at the end.
8517   # Note that $ac_compile itself does not contain backslashes and begins
8518   # with a dollar sign (not a hyphen), so the echo should work correctly.
8519   # The option is referenced via a variable to avoid confusing sed.
8520   lt_compile=`echo "$ac_compile" | $SED \
8521   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8522   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8523   -e 's:$: $lt_compiler_flag:'`
8524   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8525   (eval "$lt_compile" 2>conftest.err)
8526   ac_status=$?
8527   cat conftest.err >&5
8528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8529   if (exit $ac_status) && test -s "$ac_outfile"; then
8530     # The compiler can only warn and ignore the option if not recognized
8531     # So say no if there are warnings other than the usual output.
8532     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8533     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8534     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8535       lt_cv_prog_compiler_rtti_exceptions=yes
8536     fi
8537   fi
8538   $RM conftest*
8539
8540fi
8541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8542$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8543
8544if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8545    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8546else
8547    :
8548fi
8549
8550fi
8551
8552
8553
8554
8555
8556
8557  lt_prog_compiler_wl=
8558lt_prog_compiler_pic=
8559lt_prog_compiler_static=
8560
8561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8562$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8563
8564  if test "$GCC" = yes; then
8565    lt_prog_compiler_wl='-Wl,'
8566    lt_prog_compiler_static='-static'
8567
8568    case $host_os in
8569      aix*)
8570      # All AIX code is PIC.
8571      if test "$host_cpu" = ia64; then
8572	# AIX 5 now supports IA64 processor
8573	lt_prog_compiler_static='-Bstatic'
8574      fi
8575      lt_prog_compiler_pic='-fPIC'
8576      ;;
8577
8578    amigaos*)
8579      case $host_cpu in
8580      powerpc)
8581            # see comment about AmigaOS4 .so support
8582            lt_prog_compiler_pic='-fPIC'
8583        ;;
8584      m68k)
8585            # FIXME: we need at least 68020 code to build shared libraries, but
8586            # adding the `-m68020' flag to GCC prevents building anything better,
8587            # like `-m68040'.
8588            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8589        ;;
8590      esac
8591      ;;
8592
8593    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8594      # PIC is the default for these OSes.
8595      ;;
8596
8597    mingw* | cygwin* | pw32* | os2* | cegcc*)
8598      # This hack is so that the source file can tell whether it is being
8599      # built for inclusion in a dll (and should export symbols for example).
8600      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8601      # (--disable-auto-import) libraries
8602      lt_prog_compiler_pic='-DDLL_EXPORT'
8603      ;;
8604
8605    darwin* | rhapsody*)
8606      # PIC is the default on this platform
8607      # Common symbols not allowed in MH_DYLIB files
8608      lt_prog_compiler_pic='-fno-common'
8609      ;;
8610
8611    haiku*)
8612      # PIC is the default for Haiku.
8613      # The "-static" flag exists, but is broken.
8614      lt_prog_compiler_static=
8615      ;;
8616
8617    hpux*)
8618      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8619      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8620      # sets the default TLS model and affects inlining.
8621      case $host_cpu in
8622      hppa*64*)
8623	# +Z the default
8624	;;
8625      *)
8626	lt_prog_compiler_pic='-fPIC'
8627	;;
8628      esac
8629      ;;
8630
8631    interix[3-9]*)
8632      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8633      # Instead, we relocate shared libraries at runtime.
8634      ;;
8635
8636    msdosdjgpp*)
8637      # Just because we use GCC doesn't mean we suddenly get shared libraries
8638      # on systems that don't support them.
8639      lt_prog_compiler_can_build_shared=no
8640      enable_shared=no
8641      ;;
8642
8643    *nto* | *qnx*)
8644      # QNX uses GNU C++, but need to define -shared option too, otherwise
8645      # it will coredump.
8646      lt_prog_compiler_pic='-fPIC -shared'
8647      ;;
8648
8649    sysv4*MP*)
8650      if test -d /usr/nec; then
8651	lt_prog_compiler_pic=-Kconform_pic
8652      fi
8653      ;;
8654
8655    *)
8656      lt_prog_compiler_pic='-fPIC'
8657      ;;
8658    esac
8659
8660    case $cc_basename in
8661    nvcc*) # Cuda Compiler Driver 2.2
8662      lt_prog_compiler_wl='-Xlinker '
8663      lt_prog_compiler_pic='-Xcompiler -fPIC'
8664      ;;
8665    esac
8666  else
8667    # PORTME Check for flag to pass linker flags through the system compiler.
8668    case $host_os in
8669    aix*)
8670      lt_prog_compiler_wl='-Wl,'
8671      if test "$host_cpu" = ia64; then
8672	# AIX 5 now supports IA64 processor
8673	lt_prog_compiler_static='-Bstatic'
8674      else
8675	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8676      fi
8677      ;;
8678
8679    mingw* | cygwin* | pw32* | os2* | cegcc*)
8680      # This hack is so that the source file can tell whether it is being
8681      # built for inclusion in a dll (and should export symbols for example).
8682      lt_prog_compiler_pic='-DDLL_EXPORT'
8683      ;;
8684
8685    hpux9* | hpux10* | hpux11*)
8686      lt_prog_compiler_wl='-Wl,'
8687      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8688      # not for PA HP-UX.
8689      case $host_cpu in
8690      hppa*64*|ia64*)
8691	# +Z the default
8692	;;
8693      *)
8694	lt_prog_compiler_pic='+Z'
8695	;;
8696      esac
8697      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8698      lt_prog_compiler_static='${wl}-a ${wl}archive'
8699      ;;
8700
8701    irix5* | irix6* | nonstopux*)
8702      lt_prog_compiler_wl='-Wl,'
8703      # PIC (with -KPIC) is the default.
8704      lt_prog_compiler_static='-non_shared'
8705      ;;
8706
8707    linux* | k*bsd*-gnu | kopensolaris*-gnu)
8708      case $cc_basename in
8709      # old Intel for x86_64 which still supported -KPIC.
8710      ecc*)
8711	lt_prog_compiler_wl='-Wl,'
8712	lt_prog_compiler_pic='-KPIC'
8713	lt_prog_compiler_static='-static'
8714        ;;
8715      # icc used to be incompatible with GCC.
8716      # ICC 10 doesn't accept -KPIC any more.
8717      icc* | ifort*)
8718	lt_prog_compiler_wl='-Wl,'
8719	lt_prog_compiler_pic='-fPIC'
8720	lt_prog_compiler_static='-static'
8721        ;;
8722      # Lahey Fortran 8.1.
8723      lf95*)
8724	lt_prog_compiler_wl='-Wl,'
8725	lt_prog_compiler_pic='--shared'
8726	lt_prog_compiler_static='--static'
8727	;;
8728      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8729        # Portland Group compilers (*not* the Pentium gcc compiler,
8730	# which looks to be a dead project)
8731	lt_prog_compiler_wl='-Wl,'
8732	lt_prog_compiler_pic='-fpic'
8733	lt_prog_compiler_static='-Bstatic'
8734        ;;
8735      ccc*)
8736        lt_prog_compiler_wl='-Wl,'
8737        # All Alpha code is PIC.
8738        lt_prog_compiler_static='-non_shared'
8739        ;;
8740      xl* | bgxl* | bgf* | mpixl*)
8741	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8742	lt_prog_compiler_wl='-Wl,'
8743	lt_prog_compiler_pic='-qpic'
8744	lt_prog_compiler_static='-qstaticlink'
8745	;;
8746      *)
8747	case `$CC -V 2>&1 | sed 5q` in
8748	*Sun\ F* | *Sun*Fortran*)
8749	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8750	  lt_prog_compiler_pic='-KPIC'
8751	  lt_prog_compiler_static='-Bstatic'
8752	  lt_prog_compiler_wl=''
8753	  ;;
8754	*Sun\ C*)
8755	  # Sun C 5.9
8756	  lt_prog_compiler_pic='-KPIC'
8757	  lt_prog_compiler_static='-Bstatic'
8758	  lt_prog_compiler_wl='-Wl,'
8759	  ;;
8760	esac
8761	;;
8762      esac
8763      ;;
8764
8765    newsos6)
8766      lt_prog_compiler_pic='-KPIC'
8767      lt_prog_compiler_static='-Bstatic'
8768      ;;
8769
8770    *nto* | *qnx*)
8771      # QNX uses GNU C++, but need to define -shared option too, otherwise
8772      # it will coredump.
8773      lt_prog_compiler_pic='-fPIC -shared'
8774      ;;
8775
8776    osf3* | osf4* | osf5*)
8777      lt_prog_compiler_wl='-Wl,'
8778      # All OSF/1 code is PIC.
8779      lt_prog_compiler_static='-non_shared'
8780      ;;
8781
8782    rdos*)
8783      lt_prog_compiler_static='-non_shared'
8784      ;;
8785
8786    solaris*)
8787      lt_prog_compiler_pic='-KPIC'
8788      lt_prog_compiler_static='-Bstatic'
8789      case $cc_basename in
8790      f77* | f90* | f95*)
8791	lt_prog_compiler_wl='-Qoption ld ';;
8792      *)
8793	lt_prog_compiler_wl='-Wl,';;
8794      esac
8795      ;;
8796
8797    sunos4*)
8798      lt_prog_compiler_wl='-Qoption ld '
8799      lt_prog_compiler_pic='-PIC'
8800      lt_prog_compiler_static='-Bstatic'
8801      ;;
8802
8803    sysv4 | sysv4.2uw2* | sysv4.3*)
8804      lt_prog_compiler_wl='-Wl,'
8805      lt_prog_compiler_pic='-KPIC'
8806      lt_prog_compiler_static='-Bstatic'
8807      ;;
8808
8809    sysv4*MP*)
8810      if test -d /usr/nec ;then
8811	lt_prog_compiler_pic='-Kconform_pic'
8812	lt_prog_compiler_static='-Bstatic'
8813      fi
8814      ;;
8815
8816    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8817      lt_prog_compiler_wl='-Wl,'
8818      lt_prog_compiler_pic='-KPIC'
8819      lt_prog_compiler_static='-Bstatic'
8820      ;;
8821
8822    unicos*)
8823      lt_prog_compiler_wl='-Wl,'
8824      lt_prog_compiler_can_build_shared=no
8825      ;;
8826
8827    uts4*)
8828      lt_prog_compiler_pic='-pic'
8829      lt_prog_compiler_static='-Bstatic'
8830      ;;
8831
8832    *)
8833      lt_prog_compiler_can_build_shared=no
8834      ;;
8835    esac
8836  fi
8837
8838case $host_os in
8839  # For platforms which do not support PIC, -DPIC is meaningless:
8840  *djgpp*)
8841    lt_prog_compiler_pic=
8842    ;;
8843  *)
8844    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8845    ;;
8846esac
8847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8848$as_echo "$lt_prog_compiler_pic" >&6; }
8849
8850
8851
8852
8853
8854
8855#
8856# Check to make sure the PIC flag actually works.
8857#
8858if test -n "$lt_prog_compiler_pic"; then
8859  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8860$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8861if ${lt_cv_prog_compiler_pic_works+:} false; then :
8862  $as_echo_n "(cached) " >&6
8863else
8864  lt_cv_prog_compiler_pic_works=no
8865   ac_outfile=conftest.$ac_objext
8866   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8867   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8868   # Insert the option either (1) after the last *FLAGS variable, or
8869   # (2) before a word containing "conftest.", or (3) at the end.
8870   # Note that $ac_compile itself does not contain backslashes and begins
8871   # with a dollar sign (not a hyphen), so the echo should work correctly.
8872   # The option is referenced via a variable to avoid confusing sed.
8873   lt_compile=`echo "$ac_compile" | $SED \
8874   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8875   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8876   -e 's:$: $lt_compiler_flag:'`
8877   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8878   (eval "$lt_compile" 2>conftest.err)
8879   ac_status=$?
8880   cat conftest.err >&5
8881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8882   if (exit $ac_status) && test -s "$ac_outfile"; then
8883     # The compiler can only warn and ignore the option if not recognized
8884     # So say no if there are warnings other than the usual output.
8885     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8886     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8887     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8888       lt_cv_prog_compiler_pic_works=yes
8889     fi
8890   fi
8891   $RM conftest*
8892
8893fi
8894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8895$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8896
8897if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8898    case $lt_prog_compiler_pic in
8899     "" | " "*) ;;
8900     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8901     esac
8902else
8903    lt_prog_compiler_pic=
8904     lt_prog_compiler_can_build_shared=no
8905fi
8906
8907fi
8908
8909
8910
8911
8912
8913
8914#
8915# Check to make sure the static flag actually works.
8916#
8917wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8919$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8920if ${lt_cv_prog_compiler_static_works+:} false; then :
8921  $as_echo_n "(cached) " >&6
8922else
8923  lt_cv_prog_compiler_static_works=no
8924   save_LDFLAGS="$LDFLAGS"
8925   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8926   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8927   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8928     # The linker can only warn and ignore the option if not recognized
8929     # So say no if there are warnings
8930     if test -s conftest.err; then
8931       # Append any errors to the config.log.
8932       cat conftest.err 1>&5
8933       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8934       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8935       if diff conftest.exp conftest.er2 >/dev/null; then
8936         lt_cv_prog_compiler_static_works=yes
8937       fi
8938     else
8939       lt_cv_prog_compiler_static_works=yes
8940     fi
8941   fi
8942   $RM -r conftest*
8943   LDFLAGS="$save_LDFLAGS"
8944
8945fi
8946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8947$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8948
8949if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8950    :
8951else
8952    lt_prog_compiler_static=
8953fi
8954
8955
8956
8957
8958
8959
8960
8961  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8962$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8963if ${lt_cv_prog_compiler_c_o+:} false; then :
8964  $as_echo_n "(cached) " >&6
8965else
8966  lt_cv_prog_compiler_c_o=no
8967   $RM -r conftest 2>/dev/null
8968   mkdir conftest
8969   cd conftest
8970   mkdir out
8971   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8972
8973   lt_compiler_flag="-o out/conftest2.$ac_objext"
8974   # Insert the option either (1) after the last *FLAGS variable, or
8975   # (2) before a word containing "conftest.", or (3) at the end.
8976   # Note that $ac_compile itself does not contain backslashes and begins
8977   # with a dollar sign (not a hyphen), so the echo should work correctly.
8978   lt_compile=`echo "$ac_compile" | $SED \
8979   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8980   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8981   -e 's:$: $lt_compiler_flag:'`
8982   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8983   (eval "$lt_compile" 2>out/conftest.err)
8984   ac_status=$?
8985   cat out/conftest.err >&5
8986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8987   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8988   then
8989     # The compiler can only warn and ignore the option if not recognized
8990     # So say no if there are warnings
8991     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8992     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8993     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8994       lt_cv_prog_compiler_c_o=yes
8995     fi
8996   fi
8997   chmod u+w . 2>&5
8998   $RM conftest*
8999   # SGI C++ compiler will create directory out/ii_files/ for
9000   # template instantiation
9001   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9002   $RM out/* && rmdir out
9003   cd ..
9004   $RM -r conftest
9005   $RM conftest*
9006
9007fi
9008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9009$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9010
9011
9012
9013
9014
9015
9016  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9017$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9018if ${lt_cv_prog_compiler_c_o+:} false; then :
9019  $as_echo_n "(cached) " >&6
9020else
9021  lt_cv_prog_compiler_c_o=no
9022   $RM -r conftest 2>/dev/null
9023   mkdir conftest
9024   cd conftest
9025   mkdir out
9026   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9027
9028   lt_compiler_flag="-o out/conftest2.$ac_objext"
9029   # Insert the option either (1) after the last *FLAGS variable, or
9030   # (2) before a word containing "conftest.", or (3) at the end.
9031   # Note that $ac_compile itself does not contain backslashes and begins
9032   # with a dollar sign (not a hyphen), so the echo should work correctly.
9033   lt_compile=`echo "$ac_compile" | $SED \
9034   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9035   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9036   -e 's:$: $lt_compiler_flag:'`
9037   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9038   (eval "$lt_compile" 2>out/conftest.err)
9039   ac_status=$?
9040   cat out/conftest.err >&5
9041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9042   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9043   then
9044     # The compiler can only warn and ignore the option if not recognized
9045     # So say no if there are warnings
9046     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9047     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9048     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9049       lt_cv_prog_compiler_c_o=yes
9050     fi
9051   fi
9052   chmod u+w . 2>&5
9053   $RM conftest*
9054   # SGI C++ compiler will create directory out/ii_files/ for
9055   # template instantiation
9056   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9057   $RM out/* && rmdir out
9058   cd ..
9059   $RM -r conftest
9060   $RM conftest*
9061
9062fi
9063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9064$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9065
9066
9067
9068
9069hard_links="nottested"
9070if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9071  # do not overwrite the value of need_locks provided by the user
9072  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9073$as_echo_n "checking if we can lock with hard links... " >&6; }
9074  hard_links=yes
9075  $RM conftest*
9076  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9077  touch conftest.a
9078  ln conftest.a conftest.b 2>&5 || hard_links=no
9079  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9080  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9081$as_echo "$hard_links" >&6; }
9082  if test "$hard_links" = no; then
9083    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9084$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9085    need_locks=warn
9086  fi
9087else
9088  need_locks=no
9089fi
9090
9091
9092
9093
9094
9095
9096  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9097$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9098
9099  runpath_var=
9100  allow_undefined_flag=
9101  always_export_symbols=no
9102  archive_cmds=
9103  archive_expsym_cmds=
9104  compiler_needs_object=no
9105  enable_shared_with_static_runtimes=no
9106  export_dynamic_flag_spec=
9107  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9108  hardcode_automatic=no
9109  hardcode_direct=no
9110  hardcode_direct_absolute=no
9111  hardcode_libdir_flag_spec=
9112  hardcode_libdir_flag_spec_ld=
9113  hardcode_libdir_separator=
9114  hardcode_minus_L=no
9115  hardcode_shlibpath_var=unsupported
9116  inherit_rpath=no
9117  link_all_deplibs=unknown
9118  module_cmds=
9119  module_expsym_cmds=
9120  old_archive_from_new_cmds=
9121  old_archive_from_expsyms_cmds=
9122  thread_safe_flag_spec=
9123  whole_archive_flag_spec=
9124  # include_expsyms should be a list of space-separated symbols to be *always*
9125  # included in the symbol list
9126  include_expsyms=
9127  # exclude_expsyms can be an extended regexp of symbols to exclude
9128  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9129  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9130  # as well as any symbol that contains `d'.
9131  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9132  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9133  # platforms (ab)use it in PIC code, but their linkers get confused if
9134  # the symbol is explicitly referenced.  Since portable code cannot
9135  # rely on this symbol name, it's probably fine to never include it in
9136  # preloaded symbol tables.
9137  # Exclude shared library initialization/finalization symbols.
9138  extract_expsyms_cmds=
9139
9140  case $host_os in
9141  cygwin* | mingw* | pw32* | cegcc*)
9142    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9143    # When not using gcc, we currently assume that we are using
9144    # Microsoft Visual C++.
9145    if test "$GCC" != yes; then
9146      with_gnu_ld=no
9147    fi
9148    ;;
9149  interix*)
9150    # we just hope/assume this is gcc and not c89 (= MSVC++)
9151    with_gnu_ld=yes
9152    ;;
9153  openbsd*)
9154    with_gnu_ld=no
9155    ;;
9156  esac
9157
9158  ld_shlibs=yes
9159
9160  # On some targets, GNU ld is compatible enough with the native linker
9161  # that we're better off using the native interface for both.
9162  lt_use_gnu_ld_interface=no
9163  if test "$with_gnu_ld" = yes; then
9164    case $host_os in
9165      aix*)
9166	# The AIX port of GNU ld has always aspired to compatibility
9167	# with the native linker.  However, as the warning in the GNU ld
9168	# block says, versions before 2.19.5* couldn't really create working
9169	# shared libraries, regardless of the interface used.
9170	case `$LD -v 2>&1` in
9171	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9172	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9173	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9174	  *)
9175	    lt_use_gnu_ld_interface=yes
9176	    ;;
9177	esac
9178	;;
9179      *)
9180	lt_use_gnu_ld_interface=yes
9181	;;
9182    esac
9183  fi
9184
9185  if test "$lt_use_gnu_ld_interface" = yes; then
9186    # If archive_cmds runs LD, not CC, wlarc should be empty
9187    wlarc='${wl}'
9188
9189    # Set some defaults for GNU ld with shared library support. These
9190    # are reset later if shared libraries are not supported. Putting them
9191    # here allows them to be overridden if necessary.
9192    runpath_var=LD_RUN_PATH
9193    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9194    export_dynamic_flag_spec='${wl}--export-dynamic'
9195    # ancient GNU ld didn't support --whole-archive et. al.
9196    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9197      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9198    else
9199      whole_archive_flag_spec=
9200    fi
9201    supports_anon_versioning=no
9202    case `$LD -v 2>&1` in
9203      *GNU\ gold*) supports_anon_versioning=yes ;;
9204      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9205      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9206      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9207      *\ 2.11.*) ;; # other 2.11 versions
9208      *) supports_anon_versioning=yes ;;
9209    esac
9210
9211    # See if GNU ld supports shared libraries.
9212    case $host_os in
9213    aix[3-9]*)
9214      # On AIX/PPC, the GNU linker is very broken
9215      if test "$host_cpu" != ia64; then
9216	ld_shlibs=no
9217	cat <<_LT_EOF 1>&2
9218
9219*** Warning: the GNU linker, at least up to release 2.19, is reported
9220*** to be unable to reliably create shared libraries on AIX.
9221*** Therefore, libtool is disabling shared libraries support.  If you
9222*** really care for shared libraries, you may want to install binutils
9223*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9224*** You will then need to restart the configuration process.
9225
9226_LT_EOF
9227      fi
9228      ;;
9229
9230    amigaos*)
9231      case $host_cpu in
9232      powerpc)
9233            # see comment about AmigaOS4 .so support
9234            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9235            archive_expsym_cmds=''
9236        ;;
9237      m68k)
9238            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)'
9239            hardcode_libdir_flag_spec='-L$libdir'
9240            hardcode_minus_L=yes
9241        ;;
9242      esac
9243      ;;
9244
9245    beos*)
9246      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9247	allow_undefined_flag=unsupported
9248	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9249	# support --undefined.  This deserves some investigation.  FIXME
9250	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9251      else
9252	ld_shlibs=no
9253      fi
9254      ;;
9255
9256    cygwin* | mingw* | pw32* | cegcc*)
9257      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9258      # as there is no search path for DLLs.
9259      hardcode_libdir_flag_spec='-L$libdir'
9260      export_dynamic_flag_spec='${wl}--export-all-symbols'
9261      allow_undefined_flag=unsupported
9262      always_export_symbols=no
9263      enable_shared_with_static_runtimes=yes
9264      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9265
9266      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9267        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9268	# If the export-symbols file already is a .def file (1st line
9269	# is EXPORTS), use it as is; otherwise, prepend...
9270	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9271	  cp $export_symbols $output_objdir/$soname.def;
9272	else
9273	  echo EXPORTS > $output_objdir/$soname.def;
9274	  cat $export_symbols >> $output_objdir/$soname.def;
9275	fi~
9276	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9277      else
9278	ld_shlibs=no
9279      fi
9280      ;;
9281
9282    haiku*)
9283      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9284      link_all_deplibs=yes
9285      ;;
9286
9287    interix[3-9]*)
9288      hardcode_direct=no
9289      hardcode_shlibpath_var=no
9290      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9291      export_dynamic_flag_spec='${wl}-E'
9292      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9293      # Instead, shared libraries are loaded at an image base (0x10000000 by
9294      # default) and relocated if they conflict, which is a slow very memory
9295      # consuming and fragmenting process.  To avoid this, we pick a random,
9296      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9297      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9298      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9299      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'
9300      ;;
9301
9302    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9303      tmp_diet=no
9304      if test "$host_os" = linux-dietlibc; then
9305	case $cc_basename in
9306	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9307	esac
9308      fi
9309      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9310	 && test "$tmp_diet" = no
9311      then
9312	tmp_addflag=' $pic_flag'
9313	tmp_sharedflag='-shared'
9314	case $cc_basename,$host_cpu in
9315        pgcc*)				# Portland Group C compiler
9316	  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'
9317	  tmp_addflag=' $pic_flag'
9318	  ;;
9319	pgf77* | pgf90* | pgf95* | pgfortran*)
9320					# Portland Group f77 and f90 compilers
9321	  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'
9322	  tmp_addflag=' $pic_flag -Mnomain' ;;
9323	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9324	  tmp_addflag=' -i_dynamic' ;;
9325	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9326	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9327	ifc* | ifort*)			# Intel Fortran compiler
9328	  tmp_addflag=' -nofor_main' ;;
9329	lf95*)				# Lahey Fortran 8.1
9330	  whole_archive_flag_spec=
9331	  tmp_sharedflag='--shared' ;;
9332	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9333	  tmp_sharedflag='-qmkshrobj'
9334	  tmp_addflag= ;;
9335	nvcc*)	# Cuda Compiler Driver 2.2
9336	  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'
9337	  compiler_needs_object=yes
9338	  ;;
9339	esac
9340	case `$CC -V 2>&1 | sed 5q` in
9341	*Sun\ C*)			# Sun C 5.9
9342	  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'
9343	  compiler_needs_object=yes
9344	  tmp_sharedflag='-G' ;;
9345	*Sun\ F*)			# Sun Fortran 8.3
9346	  tmp_sharedflag='-G' ;;
9347	esac
9348	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9349
9350        if test "x$supports_anon_versioning" = xyes; then
9351          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9352	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9353	    echo "local: *; };" >> $output_objdir/$libname.ver~
9354	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9355        fi
9356
9357	case $cc_basename in
9358	xlf* | bgf* | bgxlf* | mpixlf*)
9359	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9360	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9361	  hardcode_libdir_flag_spec=
9362	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
9363	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9364	  if test "x$supports_anon_versioning" = xyes; then
9365	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9366	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9367	      echo "local: *; };" >> $output_objdir/$libname.ver~
9368	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9369	  fi
9370	  ;;
9371	esac
9372      else
9373        ld_shlibs=no
9374      fi
9375      ;;
9376
9377    netbsd*)
9378      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9379	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9380	wlarc=
9381      else
9382	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9383	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9384      fi
9385      ;;
9386
9387    solaris*)
9388      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9389	ld_shlibs=no
9390	cat <<_LT_EOF 1>&2
9391
9392*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9393*** create shared libraries on Solaris systems.  Therefore, libtool
9394*** is disabling shared libraries support.  We urge you to upgrade GNU
9395*** binutils to release 2.9.1 or newer.  Another option is to modify
9396*** your PATH or compiler configuration so that the native linker is
9397*** used, and then restart.
9398
9399_LT_EOF
9400      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9401	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9402	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9403      else
9404	ld_shlibs=no
9405      fi
9406      ;;
9407
9408    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9409      case `$LD -v 2>&1` in
9410        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9411	ld_shlibs=no
9412	cat <<_LT_EOF 1>&2
9413
9414*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9415*** reliably create shared libraries on SCO systems.  Therefore, libtool
9416*** is disabling shared libraries support.  We urge you to upgrade GNU
9417*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9418*** your PATH or compiler configuration so that the native linker is
9419*** used, and then restart.
9420
9421_LT_EOF
9422	;;
9423	*)
9424	  # For security reasons, it is highly recommended that you always
9425	  # use absolute paths for naming shared libraries, and exclude the
9426	  # DT_RUNPATH tag from executables and libraries.  But doing so
9427	  # requires that you compile everything twice, which is a pain.
9428	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9429	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9430	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9431	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9432	  else
9433	    ld_shlibs=no
9434	  fi
9435	;;
9436      esac
9437      ;;
9438
9439    sunos4*)
9440      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9441      wlarc=
9442      hardcode_direct=yes
9443      hardcode_shlibpath_var=no
9444      ;;
9445
9446    *)
9447      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9448	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9449	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9450      else
9451	ld_shlibs=no
9452      fi
9453      ;;
9454    esac
9455
9456    if test "$ld_shlibs" = no; then
9457      runpath_var=
9458      hardcode_libdir_flag_spec=
9459      export_dynamic_flag_spec=
9460      whole_archive_flag_spec=
9461    fi
9462  else
9463    # PORTME fill in a description of your system's linker (not GNU ld)
9464    case $host_os in
9465    aix3*)
9466      allow_undefined_flag=unsupported
9467      always_export_symbols=yes
9468      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'
9469      # Note: this linker hardcodes the directories in LIBPATH if there
9470      # are no directories specified by -L.
9471      hardcode_minus_L=yes
9472      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9473	# Neither direct hardcoding nor static linking is supported with a
9474	# broken collect2.
9475	hardcode_direct=unsupported
9476      fi
9477      ;;
9478
9479    aix[4-9]*)
9480      if test "$host_cpu" = ia64; then
9481	# On IA64, the linker does run time linking by default, so we don't
9482	# have to do anything special.
9483	aix_use_runtimelinking=no
9484	exp_sym_flag='-Bexport'
9485	no_entry_flag=""
9486      else
9487	# If we're using GNU nm, then we don't want the "-C" option.
9488	# -C means demangle to AIX nm, but means don't demangle with GNU nm
9489	# Also, AIX nm treats weak defined symbols like other global
9490	# defined symbols, whereas GNU nm marks them as "W".
9491	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9492	  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'
9493	else
9494	  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'
9495	fi
9496	aix_use_runtimelinking=no
9497
9498	# Test if we are trying to use run time linking or normal
9499	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9500	# need to do runtime linking.
9501	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9502	  for ld_flag in $LDFLAGS; do
9503	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9504	    aix_use_runtimelinking=yes
9505	    break
9506	  fi
9507	  done
9508	  ;;
9509	esac
9510
9511	exp_sym_flag='-bexport'
9512	no_entry_flag='-bnoentry'
9513      fi
9514
9515      # When large executables or shared objects are built, AIX ld can
9516      # have problems creating the table of contents.  If linking a library
9517      # or program results in "error TOC overflow" add -mminimal-toc to
9518      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9519      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9520
9521      archive_cmds=''
9522      hardcode_direct=yes
9523      hardcode_direct_absolute=yes
9524      hardcode_libdir_separator=':'
9525      link_all_deplibs=yes
9526      file_list_spec='${wl}-f,'
9527
9528      if test "$GCC" = yes; then
9529	case $host_os in aix4.[012]|aix4.[012].*)
9530	# We only want to do this on AIX 4.2 and lower, the check
9531	# below for broken collect2 doesn't work under 4.3+
9532	  collect2name=`${CC} -print-prog-name=collect2`
9533	  if test -f "$collect2name" &&
9534	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9535	  then
9536	  # We have reworked collect2
9537	  :
9538	  else
9539	  # We have old collect2
9540	  hardcode_direct=unsupported
9541	  # It fails to find uninstalled libraries when the uninstalled
9542	  # path is not listed in the libpath.  Setting hardcode_minus_L
9543	  # to unsupported forces relinking
9544	  hardcode_minus_L=yes
9545	  hardcode_libdir_flag_spec='-L$libdir'
9546	  hardcode_libdir_separator=
9547	  fi
9548	  ;;
9549	esac
9550	shared_flag='-shared'
9551	if test "$aix_use_runtimelinking" = yes; then
9552	  shared_flag="$shared_flag "'${wl}-G'
9553	fi
9554      else
9555	# not using gcc
9556	if test "$host_cpu" = ia64; then
9557	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9558	# chokes on -Wl,-G. The following line is correct:
9559	  shared_flag='-G'
9560	else
9561	  if test "$aix_use_runtimelinking" = yes; then
9562	    shared_flag='${wl}-G'
9563	  else
9564	    shared_flag='${wl}-bM:SRE'
9565	  fi
9566	fi
9567      fi
9568
9569      export_dynamic_flag_spec='${wl}-bexpall'
9570      # It seems that -bexpall does not export symbols beginning with
9571      # underscore (_), so it is better to generate a list of symbols to export.
9572      always_export_symbols=yes
9573      if test "$aix_use_runtimelinking" = yes; then
9574	# Warning - without using the other runtime loading flags (-brtl),
9575	# -berok will link without error, but may produce a broken library.
9576	allow_undefined_flag='-berok'
9577        # Determine the default libpath from the value encoded in an
9578        # empty executable.
9579        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9580/* end confdefs.h.  */
9581
9582int
9583main ()
9584{
9585
9586  ;
9587  return 0;
9588}
9589_ACEOF
9590if ac_fn_c_try_link "$LINENO"; then :
9591
9592lt_aix_libpath_sed='
9593    /Import File Strings/,/^$/ {
9594	/^0/ {
9595	    s/^0  *\(.*\)$/\1/
9596	    p
9597	}
9598    }'
9599aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9600# Check for a 64-bit object if we didn't find anything.
9601if test -z "$aix_libpath"; then
9602  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9603fi
9604fi
9605rm -f core conftest.err conftest.$ac_objext \
9606    conftest$ac_exeext conftest.$ac_ext
9607if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9608
9609        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9610        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"
9611      else
9612	if test "$host_cpu" = ia64; then
9613	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9614	  allow_undefined_flag="-z nodefs"
9615	  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"
9616	else
9617	 # Determine the default libpath from the value encoded in an
9618	 # empty executable.
9619	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9620/* end confdefs.h.  */
9621
9622int
9623main ()
9624{
9625
9626  ;
9627  return 0;
9628}
9629_ACEOF
9630if ac_fn_c_try_link "$LINENO"; then :
9631
9632lt_aix_libpath_sed='
9633    /Import File Strings/,/^$/ {
9634	/^0/ {
9635	    s/^0  *\(.*\)$/\1/
9636	    p
9637	}
9638    }'
9639aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9640# Check for a 64-bit object if we didn't find anything.
9641if test -z "$aix_libpath"; then
9642  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9643fi
9644fi
9645rm -f core conftest.err conftest.$ac_objext \
9646    conftest$ac_exeext conftest.$ac_ext
9647if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9648
9649	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9650	  # Warning - without using the other run time loading flags,
9651	  # -berok will link without error, but may produce a broken library.
9652	  no_undefined_flag=' ${wl}-bernotok'
9653	  allow_undefined_flag=' ${wl}-berok'
9654	  if test "$with_gnu_ld" = yes; then
9655	    # We only use this code for GNU lds that support --whole-archive.
9656	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9657	  else
9658	    # Exported symbols can be pulled into shared objects from archives
9659	    whole_archive_flag_spec='$convenience'
9660	  fi
9661	  archive_cmds_need_lc=yes
9662	  # This is similar to how AIX traditionally builds its shared libraries.
9663	  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'
9664	fi
9665      fi
9666      ;;
9667
9668    amigaos*)
9669      case $host_cpu in
9670      powerpc)
9671            # see comment about AmigaOS4 .so support
9672            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9673            archive_expsym_cmds=''
9674        ;;
9675      m68k)
9676            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)'
9677            hardcode_libdir_flag_spec='-L$libdir'
9678            hardcode_minus_L=yes
9679        ;;
9680      esac
9681      ;;
9682
9683    bsdi[45]*)
9684      export_dynamic_flag_spec=-rdynamic
9685      ;;
9686
9687    cygwin* | mingw* | pw32* | cegcc*)
9688      # When not using gcc, we currently assume that we are using
9689      # Microsoft Visual C++.
9690      # hardcode_libdir_flag_spec is actually meaningless, as there is
9691      # no search path for DLLs.
9692      hardcode_libdir_flag_spec=' '
9693      allow_undefined_flag=unsupported
9694      # Tell ltmain to make .lib files, not .a files.
9695      libext=lib
9696      # Tell ltmain to make .dll files, not .so files.
9697      shrext_cmds=".dll"
9698      # FIXME: Setting linknames here is a bad hack.
9699      archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9700      # The linker will automatically build a .lib file if we build a DLL.
9701      old_archive_from_new_cmds='true'
9702      # FIXME: Should let the user specify the lib program.
9703      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9704      fix_srcfile_path='`cygpath -w "$srcfile"`'
9705      enable_shared_with_static_runtimes=yes
9706      ;;
9707
9708    darwin* | rhapsody*)
9709
9710
9711  archive_cmds_need_lc=no
9712  hardcode_direct=no
9713  hardcode_automatic=yes
9714  hardcode_shlibpath_var=unsupported
9715  if test "$lt_cv_ld_force_load" = "yes"; then
9716    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\"`'
9717  else
9718    whole_archive_flag_spec=''
9719  fi
9720  link_all_deplibs=yes
9721  allow_undefined_flag="$_lt_dar_allow_undefined"
9722  case $cc_basename in
9723     ifort*) _lt_dar_can_shared=yes ;;
9724     *) _lt_dar_can_shared=$GCC ;;
9725  esac
9726  if test "$_lt_dar_can_shared" = "yes"; then
9727    output_verbose_link_cmd=func_echo_all
9728    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9729    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9730    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}"
9731    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}"
9732
9733  else
9734  ld_shlibs=no
9735  fi
9736
9737      ;;
9738
9739    dgux*)
9740      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9741      hardcode_libdir_flag_spec='-L$libdir'
9742      hardcode_shlibpath_var=no
9743      ;;
9744
9745    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9746    # support.  Future versions do this automatically, but an explicit c++rt0.o
9747    # does not break anything, and helps significantly (at the cost of a little
9748    # extra space).
9749    freebsd2.2*)
9750      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9751      hardcode_libdir_flag_spec='-R$libdir'
9752      hardcode_direct=yes
9753      hardcode_shlibpath_var=no
9754      ;;
9755
9756    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9757    freebsd2.*)
9758      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9759      hardcode_direct=yes
9760      hardcode_minus_L=yes
9761      hardcode_shlibpath_var=no
9762      ;;
9763
9764    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9765    freebsd* | dragonfly*)
9766      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9767      hardcode_libdir_flag_spec='-R$libdir'
9768      hardcode_direct=yes
9769      hardcode_shlibpath_var=no
9770      ;;
9771
9772    hpux9*)
9773      if test "$GCC" = yes; then
9774	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'
9775      else
9776	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'
9777      fi
9778      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9779      hardcode_libdir_separator=:
9780      hardcode_direct=yes
9781
9782      # hardcode_minus_L: Not really in the search PATH,
9783      # but as the default location of the library.
9784      hardcode_minus_L=yes
9785      export_dynamic_flag_spec='${wl}-E'
9786      ;;
9787
9788    hpux10*)
9789      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9790	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9791      else
9792	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9793      fi
9794      if test "$with_gnu_ld" = no; then
9795	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9796	hardcode_libdir_flag_spec_ld='+b $libdir'
9797	hardcode_libdir_separator=:
9798	hardcode_direct=yes
9799	hardcode_direct_absolute=yes
9800	export_dynamic_flag_spec='${wl}-E'
9801	# hardcode_minus_L: Not really in the search PATH,
9802	# but as the default location of the library.
9803	hardcode_minus_L=yes
9804      fi
9805      ;;
9806
9807    hpux11*)
9808      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9809	case $host_cpu in
9810	hppa*64*)
9811	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9812	  ;;
9813	ia64*)
9814	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9815	  ;;
9816	*)
9817	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9818	  ;;
9819	esac
9820      else
9821	case $host_cpu in
9822	hppa*64*)
9823	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9824	  ;;
9825	ia64*)
9826	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9827	  ;;
9828	*)
9829
9830	  # Older versions of the 11.00 compiler do not understand -b yet
9831	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9832	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9833$as_echo_n "checking if $CC understands -b... " >&6; }
9834if ${lt_cv_prog_compiler__b+:} false; then :
9835  $as_echo_n "(cached) " >&6
9836else
9837  lt_cv_prog_compiler__b=no
9838   save_LDFLAGS="$LDFLAGS"
9839   LDFLAGS="$LDFLAGS -b"
9840   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9841   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9842     # The linker can only warn and ignore the option if not recognized
9843     # So say no if there are warnings
9844     if test -s conftest.err; then
9845       # Append any errors to the config.log.
9846       cat conftest.err 1>&5
9847       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9848       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9849       if diff conftest.exp conftest.er2 >/dev/null; then
9850         lt_cv_prog_compiler__b=yes
9851       fi
9852     else
9853       lt_cv_prog_compiler__b=yes
9854     fi
9855   fi
9856   $RM -r conftest*
9857   LDFLAGS="$save_LDFLAGS"
9858
9859fi
9860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9861$as_echo "$lt_cv_prog_compiler__b" >&6; }
9862
9863if test x"$lt_cv_prog_compiler__b" = xyes; then
9864    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9865else
9866    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9867fi
9868
9869	  ;;
9870	esac
9871      fi
9872      if test "$with_gnu_ld" = no; then
9873	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9874	hardcode_libdir_separator=:
9875
9876	case $host_cpu in
9877	hppa*64*|ia64*)
9878	  hardcode_direct=no
9879	  hardcode_shlibpath_var=no
9880	  ;;
9881	*)
9882	  hardcode_direct=yes
9883	  hardcode_direct_absolute=yes
9884	  export_dynamic_flag_spec='${wl}-E'
9885
9886	  # hardcode_minus_L: Not really in the search PATH,
9887	  # but as the default location of the library.
9888	  hardcode_minus_L=yes
9889	  ;;
9890	esac
9891      fi
9892      ;;
9893
9894    irix5* | irix6* | nonstopux*)
9895      if test "$GCC" = yes; then
9896	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'
9897	# Try to use the -exported_symbol ld option, if it does not
9898	# work, assume that -exports_file does not work either and
9899	# implicitly export all symbols.
9900        save_LDFLAGS="$LDFLAGS"
9901        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9902        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9903/* end confdefs.h.  */
9904int foo(void) {}
9905_ACEOF
9906if ac_fn_c_try_link "$LINENO"; then :
9907  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'
9908
9909fi
9910rm -f core conftest.err conftest.$ac_objext \
9911    conftest$ac_exeext conftest.$ac_ext
9912        LDFLAGS="$save_LDFLAGS"
9913      else
9914	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'
9915	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'
9916      fi
9917      archive_cmds_need_lc='no'
9918      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9919      hardcode_libdir_separator=:
9920      inherit_rpath=yes
9921      link_all_deplibs=yes
9922      ;;
9923
9924    netbsd*)
9925      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9926	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9927      else
9928	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9929      fi
9930      hardcode_libdir_flag_spec='-R$libdir'
9931      hardcode_direct=yes
9932      hardcode_shlibpath_var=no
9933      ;;
9934
9935    newsos6)
9936      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9937      hardcode_direct=yes
9938      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9939      hardcode_libdir_separator=:
9940      hardcode_shlibpath_var=no
9941      ;;
9942
9943    *nto* | *qnx*)
9944      ;;
9945
9946    openbsd*)
9947      if test -f /usr/libexec/ld.so; then
9948	hardcode_direct=yes
9949	hardcode_shlibpath_var=no
9950	hardcode_direct_absolute=yes
9951	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9952	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9953	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9954	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9955	  export_dynamic_flag_spec='${wl}-E'
9956	else
9957	  case $host_os in
9958	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9959	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9960	     hardcode_libdir_flag_spec='-R$libdir'
9961	     ;;
9962	   *)
9963	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9964	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9965	     ;;
9966	  esac
9967	fi
9968      else
9969	ld_shlibs=no
9970      fi
9971      ;;
9972
9973    os2*)
9974      hardcode_libdir_flag_spec='-L$libdir'
9975      hardcode_minus_L=yes
9976      allow_undefined_flag=unsupported
9977      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'
9978      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9979      ;;
9980
9981    osf3*)
9982      if test "$GCC" = yes; then
9983	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9984	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'
9985      else
9986	allow_undefined_flag=' -expect_unresolved \*'
9987	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'
9988      fi
9989      archive_cmds_need_lc='no'
9990      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9991      hardcode_libdir_separator=:
9992      ;;
9993
9994    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9995      if test "$GCC" = yes; then
9996	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9997	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'
9998	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9999      else
10000	allow_undefined_flag=' -expect_unresolved \*'
10001	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'
10002	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~
10003	$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'
10004
10005	# Both c and cxx compiler support -rpath directly
10006	hardcode_libdir_flag_spec='-rpath $libdir'
10007      fi
10008      archive_cmds_need_lc='no'
10009      hardcode_libdir_separator=:
10010      ;;
10011
10012    solaris*)
10013      no_undefined_flag=' -z defs'
10014      if test "$GCC" = yes; then
10015	wlarc='${wl}'
10016	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10017	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10018	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10019      else
10020	case `$CC -V 2>&1` in
10021	*"Compilers 5.0"*)
10022	  wlarc=''
10023	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10024	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10025	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10026	  ;;
10027	*)
10028	  wlarc='${wl}'
10029	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10030	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10031	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10032	  ;;
10033	esac
10034      fi
10035      hardcode_libdir_flag_spec='-R$libdir'
10036      hardcode_shlibpath_var=no
10037      case $host_os in
10038      solaris2.[0-5] | solaris2.[0-5].*) ;;
10039      *)
10040	# The compiler driver will combine and reorder linker options,
10041	# but understands `-z linker_flag'.  GCC discards it without `$wl',
10042	# but is careful enough not to reorder.
10043	# Supported since Solaris 2.6 (maybe 2.5.1?)
10044	if test "$GCC" = yes; then
10045	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10046	else
10047	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10048	fi
10049	;;
10050      esac
10051      link_all_deplibs=yes
10052      ;;
10053
10054    sunos4*)
10055      if test "x$host_vendor" = xsequent; then
10056	# Use $CC to link under sequent, because it throws in some extra .o
10057	# files that make .init and .fini sections work.
10058	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10059      else
10060	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10061      fi
10062      hardcode_libdir_flag_spec='-L$libdir'
10063      hardcode_direct=yes
10064      hardcode_minus_L=yes
10065      hardcode_shlibpath_var=no
10066      ;;
10067
10068    sysv4)
10069      case $host_vendor in
10070	sni)
10071	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10072	  hardcode_direct=yes # is this really true???
10073	;;
10074	siemens)
10075	  ## LD is ld it makes a PLAMLIB
10076	  ## CC just makes a GrossModule.
10077	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10078	  reload_cmds='$CC -r -o $output$reload_objs'
10079	  hardcode_direct=no
10080        ;;
10081	motorola)
10082	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10083	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10084	;;
10085      esac
10086      runpath_var='LD_RUN_PATH'
10087      hardcode_shlibpath_var=no
10088      ;;
10089
10090    sysv4.3*)
10091      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10092      hardcode_shlibpath_var=no
10093      export_dynamic_flag_spec='-Bexport'
10094      ;;
10095
10096    sysv4*MP*)
10097      if test -d /usr/nec; then
10098	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10099	hardcode_shlibpath_var=no
10100	runpath_var=LD_RUN_PATH
10101	hardcode_runpath_var=yes
10102	ld_shlibs=yes
10103      fi
10104      ;;
10105
10106    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10107      no_undefined_flag='${wl}-z,text'
10108      archive_cmds_need_lc=no
10109      hardcode_shlibpath_var=no
10110      runpath_var='LD_RUN_PATH'
10111
10112      if test "$GCC" = yes; then
10113	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10114	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10115      else
10116	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10117	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10118      fi
10119      ;;
10120
10121    sysv5* | sco3.2v5* | sco5v6*)
10122      # Note: We can NOT use -z defs as we might desire, because we do not
10123      # link with -lc, and that would cause any symbols used from libc to
10124      # always be unresolved, which means just about no library would
10125      # ever link correctly.  If we're not using GNU ld we use -z text
10126      # though, which does catch some bad symbols but isn't as heavy-handed
10127      # as -z defs.
10128      no_undefined_flag='${wl}-z,text'
10129      allow_undefined_flag='${wl}-z,nodefs'
10130      archive_cmds_need_lc=no
10131      hardcode_shlibpath_var=no
10132      hardcode_libdir_flag_spec='${wl}-R,$libdir'
10133      hardcode_libdir_separator=':'
10134      link_all_deplibs=yes
10135      export_dynamic_flag_spec='${wl}-Bexport'
10136      runpath_var='LD_RUN_PATH'
10137
10138      if test "$GCC" = yes; then
10139	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10140	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10141      else
10142	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10143	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10144      fi
10145      ;;
10146
10147    uts4*)
10148      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10149      hardcode_libdir_flag_spec='-L$libdir'
10150      hardcode_shlibpath_var=no
10151      ;;
10152
10153    *)
10154      ld_shlibs=no
10155      ;;
10156    esac
10157
10158    if test x$host_vendor = xsni; then
10159      case $host in
10160      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10161	export_dynamic_flag_spec='${wl}-Blargedynsym'
10162	;;
10163      esac
10164    fi
10165  fi
10166
10167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10168$as_echo "$ld_shlibs" >&6; }
10169test "$ld_shlibs" = no && can_build_shared=no
10170
10171with_gnu_ld=$with_gnu_ld
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187#
10188# Do we need to explicitly link libc?
10189#
10190case "x$archive_cmds_need_lc" in
10191x|xyes)
10192  # Assume -lc should be added
10193  archive_cmds_need_lc=yes
10194
10195  if test "$enable_shared" = yes && test "$GCC" = yes; then
10196    case $archive_cmds in
10197    *'~'*)
10198      # FIXME: we may have to deal with multi-command sequences.
10199      ;;
10200    '$CC '*)
10201      # Test whether the compiler implicitly links with -lc since on some
10202      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10203      # to ld, don't add -lc before -lgcc.
10204      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10205$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10206if ${lt_cv_archive_cmds_need_lc+:} false; then :
10207  $as_echo_n "(cached) " >&6
10208else
10209  $RM conftest*
10210	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10211
10212	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10213  (eval $ac_compile) 2>&5
10214  ac_status=$?
10215  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10216  test $ac_status = 0; } 2>conftest.err; then
10217	  soname=conftest
10218	  lib=conftest
10219	  libobjs=conftest.$ac_objext
10220	  deplibs=
10221	  wl=$lt_prog_compiler_wl
10222	  pic_flag=$lt_prog_compiler_pic
10223	  compiler_flags=-v
10224	  linker_flags=-v
10225	  verstring=
10226	  output_objdir=.
10227	  libname=conftest
10228	  lt_save_allow_undefined_flag=$allow_undefined_flag
10229	  allow_undefined_flag=
10230	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10231  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10232  ac_status=$?
10233  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10234  test $ac_status = 0; }
10235	  then
10236	    lt_cv_archive_cmds_need_lc=no
10237	  else
10238	    lt_cv_archive_cmds_need_lc=yes
10239	  fi
10240	  allow_undefined_flag=$lt_save_allow_undefined_flag
10241	else
10242	  cat conftest.err 1>&5
10243	fi
10244	$RM conftest*
10245
10246fi
10247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10248$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10249      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10250      ;;
10251    esac
10252  fi
10253  ;;
10254esac
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10413$as_echo_n "checking dynamic linker characteristics... " >&6; }
10414
10415if test "$GCC" = yes; then
10416  case $host_os in
10417    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10418    *) lt_awk_arg="/^libraries:/" ;;
10419  esac
10420  case $host_os in
10421    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10422    *) lt_sed_strip_eq="s,=/,/,g" ;;
10423  esac
10424  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10425  case $lt_search_path_spec in
10426  *\;*)
10427    # if the path contains ";" then we assume it to be the separator
10428    # otherwise default to the standard path separator (i.e. ":") - it is
10429    # assumed that no part of a normal pathname contains ";" but that should
10430    # okay in the real world where ";" in dirpaths is itself problematic.
10431    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10432    ;;
10433  *)
10434    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10435    ;;
10436  esac
10437  # Ok, now we have the path, separated by spaces, we can step through it
10438  # and add multilib dir if necessary.
10439  lt_tmp_lt_search_path_spec=
10440  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10441  for lt_sys_path in $lt_search_path_spec; do
10442    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10443      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10444    else
10445      test -d "$lt_sys_path" && \
10446	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10447    fi
10448  done
10449  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10450BEGIN {RS=" "; FS="/|\n";} {
10451  lt_foo="";
10452  lt_count=0;
10453  for (lt_i = NF; lt_i > 0; lt_i--) {
10454    if ($lt_i != "" && $lt_i != ".") {
10455      if ($lt_i == "..") {
10456        lt_count++;
10457      } else {
10458        if (lt_count == 0) {
10459          lt_foo="/" $lt_i lt_foo;
10460        } else {
10461          lt_count--;
10462        }
10463      }
10464    }
10465  }
10466  if (lt_foo != "") { lt_freq[lt_foo]++; }
10467  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10468}'`
10469  # AWK program above erroneously prepends '/' to C:/dos/paths
10470  # for these hosts.
10471  case $host_os in
10472    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10473      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10474  esac
10475  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10476else
10477  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10478fi
10479library_names_spec=
10480libname_spec='lib$name'
10481soname_spec=
10482shrext_cmds=".so"
10483postinstall_cmds=
10484postuninstall_cmds=
10485finish_cmds=
10486finish_eval=
10487shlibpath_var=
10488shlibpath_overrides_runpath=unknown
10489version_type=none
10490dynamic_linker="$host_os ld.so"
10491sys_lib_dlsearch_path_spec="/lib /usr/lib"
10492need_lib_prefix=unknown
10493hardcode_into_libs=no
10494
10495# when you set need_version to no, make sure it does not cause -set_version
10496# flags to be left without arguments
10497need_version=unknown
10498
10499case $host_os in
10500aix3*)
10501  version_type=linux
10502  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10503  shlibpath_var=LIBPATH
10504
10505  # AIX 3 has no versioning support, so we append a major version to the name.
10506  soname_spec='${libname}${release}${shared_ext}$major'
10507  ;;
10508
10509aix[4-9]*)
10510  version_type=linux
10511  need_lib_prefix=no
10512  need_version=no
10513  hardcode_into_libs=yes
10514  if test "$host_cpu" = ia64; then
10515    # AIX 5 supports IA64
10516    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10517    shlibpath_var=LD_LIBRARY_PATH
10518  else
10519    # With GCC up to 2.95.x, collect2 would create an import file
10520    # for dependence libraries.  The import file would start with
10521    # the line `#! .'.  This would cause the generated library to
10522    # depend on `.', always an invalid library.  This was fixed in
10523    # development snapshots of GCC prior to 3.0.
10524    case $host_os in
10525      aix4 | aix4.[01] | aix4.[01].*)
10526      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10527	   echo ' yes '
10528	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10529	:
10530      else
10531	can_build_shared=no
10532      fi
10533      ;;
10534    esac
10535    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10536    # soname into executable. Probably we can add versioning support to
10537    # collect2, so additional links can be useful in future.
10538    if test "$aix_use_runtimelinking" = yes; then
10539      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10540      # instead of lib<name>.a to let people know that these are not
10541      # typical AIX shared libraries.
10542      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10543    else
10544      # We preserve .a as extension for shared libraries through AIX4.2
10545      # and later when we are not doing run time linking.
10546      library_names_spec='${libname}${release}.a $libname.a'
10547      soname_spec='${libname}${release}${shared_ext}$major'
10548    fi
10549    shlibpath_var=LIBPATH
10550  fi
10551  ;;
10552
10553amigaos*)
10554  case $host_cpu in
10555  powerpc)
10556    # Since July 2007 AmigaOS4 officially supports .so libraries.
10557    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10558    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10559    ;;
10560  m68k)
10561    library_names_spec='$libname.ixlibrary $libname.a'
10562    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10563    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'
10564    ;;
10565  esac
10566  ;;
10567
10568beos*)
10569  library_names_spec='${libname}${shared_ext}'
10570  dynamic_linker="$host_os ld.so"
10571  shlibpath_var=LIBRARY_PATH
10572  ;;
10573
10574bsdi[45]*)
10575  version_type=linux
10576  need_version=no
10577  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10578  soname_spec='${libname}${release}${shared_ext}$major'
10579  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10580  shlibpath_var=LD_LIBRARY_PATH
10581  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10582  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10583  # the default ld.so.conf also contains /usr/contrib/lib and
10584  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10585  # libtool to hard-code these into programs
10586  ;;
10587
10588cygwin* | mingw* | pw32* | cegcc*)
10589  version_type=windows
10590  shrext_cmds=".dll"
10591  need_version=no
10592  need_lib_prefix=no
10593
10594  case $GCC,$host_os in
10595  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10596    library_names_spec='$libname.dll.a'
10597    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10598    postinstall_cmds='base_file=`basename \${file}`~
10599      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10600      dldir=$destdir/`dirname \$dlpath`~
10601      test -d \$dldir || mkdir -p \$dldir~
10602      $install_prog $dir/$dlname \$dldir/$dlname~
10603      chmod a+x \$dldir/$dlname~
10604      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10605        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10606      fi'
10607    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10608      dlpath=$dir/\$dldll~
10609       $RM \$dlpath'
10610    shlibpath_overrides_runpath=yes
10611
10612    case $host_os in
10613    cygwin*)
10614      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10615      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10616
10617      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10618      ;;
10619    mingw* | cegcc*)
10620      # MinGW DLLs use traditional 'lib' prefix
10621      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10622      ;;
10623    pw32*)
10624      # pw32 DLLs use 'pw' prefix rather than 'lib'
10625      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10626      ;;
10627    esac
10628    ;;
10629
10630  *)
10631    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10632    ;;
10633  esac
10634  dynamic_linker='Win32 ld.exe'
10635  # FIXME: first we should search . and the directory the executable is in
10636  shlibpath_var=PATH
10637  ;;
10638
10639darwin* | rhapsody*)
10640  dynamic_linker="$host_os dyld"
10641  version_type=darwin
10642  need_lib_prefix=no
10643  need_version=no
10644  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10645  soname_spec='${libname}${release}${major}$shared_ext'
10646  shlibpath_overrides_runpath=yes
10647  shlibpath_var=DYLD_LIBRARY_PATH
10648  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10649
10650  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10651  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10652  ;;
10653
10654dgux*)
10655  version_type=linux
10656  need_lib_prefix=no
10657  need_version=no
10658  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10659  soname_spec='${libname}${release}${shared_ext}$major'
10660  shlibpath_var=LD_LIBRARY_PATH
10661  ;;
10662
10663freebsd* | dragonfly*)
10664  # DragonFly does not have aout.  When/if they implement a new
10665  # versioning mechanism, adjust this.
10666  if test -x /usr/bin/objformat; then
10667    objformat=`/usr/bin/objformat`
10668  else
10669    case $host_os in
10670    freebsd[23].*) objformat=aout ;;
10671    *) objformat=elf ;;
10672    esac
10673  fi
10674  version_type=freebsd-$objformat
10675  case $version_type in
10676    freebsd-elf*)
10677      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10678      need_version=no
10679      need_lib_prefix=no
10680      ;;
10681    freebsd-*)
10682      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10683      need_version=yes
10684      ;;
10685  esac
10686  shlibpath_var=LD_LIBRARY_PATH
10687  case $host_os in
10688  freebsd2.*)
10689    shlibpath_overrides_runpath=yes
10690    ;;
10691  freebsd3.[01]* | freebsdelf3.[01]*)
10692    shlibpath_overrides_runpath=yes
10693    hardcode_into_libs=yes
10694    ;;
10695  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10696  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10697    shlibpath_overrides_runpath=no
10698    hardcode_into_libs=yes
10699    ;;
10700  *) # from 4.6 on, and DragonFly
10701    shlibpath_overrides_runpath=yes
10702    hardcode_into_libs=yes
10703    ;;
10704  esac
10705  ;;
10706
10707gnu*)
10708  version_type=linux
10709  need_lib_prefix=no
10710  need_version=no
10711  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10712  soname_spec='${libname}${release}${shared_ext}$major'
10713  shlibpath_var=LD_LIBRARY_PATH
10714  hardcode_into_libs=yes
10715  ;;
10716
10717haiku*)
10718  version_type=linux
10719  need_lib_prefix=no
10720  need_version=no
10721  dynamic_linker="$host_os runtime_loader"
10722  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10723  soname_spec='${libname}${release}${shared_ext}$major'
10724  shlibpath_var=LIBRARY_PATH
10725  shlibpath_overrides_runpath=yes
10726  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10727  hardcode_into_libs=yes
10728  ;;
10729
10730hpux9* | hpux10* | hpux11*)
10731  # Give a soname corresponding to the major version so that dld.sl refuses to
10732  # link against other versions.
10733  version_type=sunos
10734  need_lib_prefix=no
10735  need_version=no
10736  case $host_cpu in
10737  ia64*)
10738    shrext_cmds='.so'
10739    hardcode_into_libs=yes
10740    dynamic_linker="$host_os dld.so"
10741    shlibpath_var=LD_LIBRARY_PATH
10742    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10743    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10744    soname_spec='${libname}${release}${shared_ext}$major'
10745    if test "X$HPUX_IA64_MODE" = X32; then
10746      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10747    else
10748      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10749    fi
10750    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10751    ;;
10752  hppa*64*)
10753    shrext_cmds='.sl'
10754    hardcode_into_libs=yes
10755    dynamic_linker="$host_os dld.sl"
10756    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10757    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10758    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10759    soname_spec='${libname}${release}${shared_ext}$major'
10760    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10761    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10762    ;;
10763  *)
10764    shrext_cmds='.sl'
10765    dynamic_linker="$host_os dld.sl"
10766    shlibpath_var=SHLIB_PATH
10767    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10768    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10769    soname_spec='${libname}${release}${shared_ext}$major'
10770    ;;
10771  esac
10772  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10773  postinstall_cmds='chmod 555 $lib'
10774  # or fails outright, so override atomically:
10775  install_override_mode=555
10776  ;;
10777
10778interix[3-9]*)
10779  version_type=linux
10780  need_lib_prefix=no
10781  need_version=no
10782  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10783  soname_spec='${libname}${release}${shared_ext}$major'
10784  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10785  shlibpath_var=LD_LIBRARY_PATH
10786  shlibpath_overrides_runpath=no
10787  hardcode_into_libs=yes
10788  ;;
10789
10790irix5* | irix6* | nonstopux*)
10791  case $host_os in
10792    nonstopux*) version_type=nonstopux ;;
10793    *)
10794	if test "$lt_cv_prog_gnu_ld" = yes; then
10795		version_type=linux
10796	else
10797		version_type=irix
10798	fi ;;
10799  esac
10800  need_lib_prefix=no
10801  need_version=no
10802  soname_spec='${libname}${release}${shared_ext}$major'
10803  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10804  case $host_os in
10805  irix5* | nonstopux*)
10806    libsuff= shlibsuff=
10807    ;;
10808  *)
10809    case $LD in # libtool.m4 will add one of these switches to LD
10810    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10811      libsuff= shlibsuff= libmagic=32-bit;;
10812    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10813      libsuff=32 shlibsuff=N32 libmagic=N32;;
10814    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10815      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10816    *) libsuff= shlibsuff= libmagic=never-match;;
10817    esac
10818    ;;
10819  esac
10820  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10821  shlibpath_overrides_runpath=no
10822  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10823  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10824  hardcode_into_libs=yes
10825  ;;
10826
10827# No shared lib support for Linux oldld, aout, or coff.
10828linux*oldld* | linux*aout* | linux*coff*)
10829  dynamic_linker=no
10830  ;;
10831
10832# This must be Linux ELF.
10833linux* | k*bsd*-gnu | kopensolaris*-gnu)
10834  version_type=linux
10835  need_lib_prefix=no
10836  need_version=no
10837  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10838  soname_spec='${libname}${release}${shared_ext}$major'
10839  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10840  shlibpath_var=LD_LIBRARY_PATH
10841  shlibpath_overrides_runpath=no
10842
10843  # Some binutils ld are patched to set DT_RUNPATH
10844  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10845  $as_echo_n "(cached) " >&6
10846else
10847  lt_cv_shlibpath_overrides_runpath=no
10848    save_LDFLAGS=$LDFLAGS
10849    save_libdir=$libdir
10850    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10851	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10852    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10853/* end confdefs.h.  */
10854
10855int
10856main ()
10857{
10858
10859  ;
10860  return 0;
10861}
10862_ACEOF
10863if ac_fn_c_try_link "$LINENO"; then :
10864  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10865  lt_cv_shlibpath_overrides_runpath=yes
10866fi
10867fi
10868rm -f core conftest.err conftest.$ac_objext \
10869    conftest$ac_exeext conftest.$ac_ext
10870    LDFLAGS=$save_LDFLAGS
10871    libdir=$save_libdir
10872
10873fi
10874
10875  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10876
10877  # This implies no fast_install, which is unacceptable.
10878  # Some rework will be needed to allow for fast_install
10879  # before this can be enabled.
10880  hardcode_into_libs=yes
10881
10882  # Append ld.so.conf contents to the search path
10883  if test -f /etc/ld.so.conf; then
10884    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' ' '`
10885    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10886  fi
10887
10888  # We used to test for /lib/ld.so.1 and disable shared libraries on
10889  # powerpc, because MkLinux only supported shared libraries with the
10890  # GNU dynamic linker.  Since this was broken with cross compilers,
10891  # most powerpc-linux boxes support dynamic linking these days and
10892  # people can always --disable-shared, the test was removed, and we
10893  # assume the GNU/Linux dynamic linker is in use.
10894  dynamic_linker='GNU/Linux ld.so'
10895  ;;
10896
10897netbsd*)
10898  version_type=sunos
10899  need_lib_prefix=no
10900  need_version=no
10901  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10902    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10903    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10904    dynamic_linker='NetBSD (a.out) ld.so'
10905  else
10906    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10907    soname_spec='${libname}${release}${shared_ext}$major'
10908    dynamic_linker='NetBSD ld.elf_so'
10909  fi
10910  shlibpath_var=LD_LIBRARY_PATH
10911  shlibpath_overrides_runpath=yes
10912  hardcode_into_libs=yes
10913  ;;
10914
10915newsos6)
10916  version_type=linux
10917  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10918  shlibpath_var=LD_LIBRARY_PATH
10919  shlibpath_overrides_runpath=yes
10920  ;;
10921
10922*nto* | *qnx*)
10923  version_type=qnx
10924  need_lib_prefix=no
10925  need_version=no
10926  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10927  soname_spec='${libname}${release}${shared_ext}$major'
10928  shlibpath_var=LD_LIBRARY_PATH
10929  shlibpath_overrides_runpath=no
10930  hardcode_into_libs=yes
10931  dynamic_linker='ldqnx.so'
10932  ;;
10933
10934openbsd*)
10935  version_type=sunos
10936  sys_lib_dlsearch_path_spec="/usr/lib"
10937  need_lib_prefix=no
10938  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10939  case $host_os in
10940    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
10941    *)				need_version=no  ;;
10942  esac
10943  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10944  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10945  shlibpath_var=LD_LIBRARY_PATH
10946  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10947    case $host_os in
10948      openbsd2.[89] | openbsd2.[89].*)
10949	shlibpath_overrides_runpath=no
10950	;;
10951      *)
10952	shlibpath_overrides_runpath=yes
10953	;;
10954      esac
10955  else
10956    shlibpath_overrides_runpath=yes
10957  fi
10958  ;;
10959
10960os2*)
10961  libname_spec='$name'
10962  shrext_cmds=".dll"
10963  need_lib_prefix=no
10964  library_names_spec='$libname${shared_ext} $libname.a'
10965  dynamic_linker='OS/2 ld.exe'
10966  shlibpath_var=LIBPATH
10967  ;;
10968
10969osf3* | osf4* | osf5*)
10970  version_type=osf
10971  need_lib_prefix=no
10972  need_version=no
10973  soname_spec='${libname}${release}${shared_ext}$major'
10974  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10975  shlibpath_var=LD_LIBRARY_PATH
10976  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10977  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10978  ;;
10979
10980rdos*)
10981  dynamic_linker=no
10982  ;;
10983
10984solaris*)
10985  version_type=linux
10986  need_lib_prefix=no
10987  need_version=no
10988  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10989  soname_spec='${libname}${release}${shared_ext}$major'
10990  shlibpath_var=LD_LIBRARY_PATH
10991  shlibpath_overrides_runpath=yes
10992  hardcode_into_libs=yes
10993  # ldd complains unless libraries are executable
10994  postinstall_cmds='chmod +x $lib'
10995  ;;
10996
10997sunos4*)
10998  version_type=sunos
10999  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11000  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11001  shlibpath_var=LD_LIBRARY_PATH
11002  shlibpath_overrides_runpath=yes
11003  if test "$with_gnu_ld" = yes; then
11004    need_lib_prefix=no
11005  fi
11006  need_version=yes
11007  ;;
11008
11009sysv4 | sysv4.3*)
11010  version_type=linux
11011  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11012  soname_spec='${libname}${release}${shared_ext}$major'
11013  shlibpath_var=LD_LIBRARY_PATH
11014  case $host_vendor in
11015    sni)
11016      shlibpath_overrides_runpath=no
11017      need_lib_prefix=no
11018      runpath_var=LD_RUN_PATH
11019      ;;
11020    siemens)
11021      need_lib_prefix=no
11022      ;;
11023    motorola)
11024      need_lib_prefix=no
11025      need_version=no
11026      shlibpath_overrides_runpath=no
11027      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11028      ;;
11029  esac
11030  ;;
11031
11032sysv4*MP*)
11033  if test -d /usr/nec ;then
11034    version_type=linux
11035    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11036    soname_spec='$libname${shared_ext}.$major'
11037    shlibpath_var=LD_LIBRARY_PATH
11038  fi
11039  ;;
11040
11041sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11042  version_type=freebsd-elf
11043  need_lib_prefix=no
11044  need_version=no
11045  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11046  soname_spec='${libname}${release}${shared_ext}$major'
11047  shlibpath_var=LD_LIBRARY_PATH
11048  shlibpath_overrides_runpath=yes
11049  hardcode_into_libs=yes
11050  if test "$with_gnu_ld" = yes; then
11051    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11052  else
11053    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11054    case $host_os in
11055      sco3.2v5*)
11056        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11057	;;
11058    esac
11059  fi
11060  sys_lib_dlsearch_path_spec='/usr/lib'
11061  ;;
11062
11063tpf*)
11064  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11065  version_type=linux
11066  need_lib_prefix=no
11067  need_version=no
11068  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11069  shlibpath_var=LD_LIBRARY_PATH
11070  shlibpath_overrides_runpath=no
11071  hardcode_into_libs=yes
11072  ;;
11073
11074uts4*)
11075  version_type=linux
11076  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11077  soname_spec='${libname}${release}${shared_ext}$major'
11078  shlibpath_var=LD_LIBRARY_PATH
11079  ;;
11080
11081*)
11082  dynamic_linker=no
11083  ;;
11084esac
11085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11086$as_echo "$dynamic_linker" >&6; }
11087test "$dynamic_linker" = no && can_build_shared=no
11088
11089variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11090if test "$GCC" = yes; then
11091  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11092fi
11093
11094if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11095  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11096fi
11097if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11098  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11099fi
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11193$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11194hardcode_action=
11195if test -n "$hardcode_libdir_flag_spec" ||
11196   test -n "$runpath_var" ||
11197   test "X$hardcode_automatic" = "Xyes" ; then
11198
11199  # We can hardcode non-existent directories.
11200  if test "$hardcode_direct" != no &&
11201     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11202     # have to relink, otherwise we might link with an installed library
11203     # when we should be linking with a yet-to-be-installed one
11204     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11205     test "$hardcode_minus_L" != no; then
11206    # Linking always hardcodes the temporary library directory.
11207    hardcode_action=relink
11208  else
11209    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11210    hardcode_action=immediate
11211  fi
11212else
11213  # We cannot hardcode anything, or else we can only hardcode existing
11214  # directories.
11215  hardcode_action=unsupported
11216fi
11217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11218$as_echo "$hardcode_action" >&6; }
11219
11220if test "$hardcode_action" = relink ||
11221   test "$inherit_rpath" = yes; then
11222  # Fast installation is not supported
11223  enable_fast_install=no
11224elif test "$shlibpath_overrides_runpath" = yes ||
11225     test "$enable_shared" = no; then
11226  # Fast installation is not necessary
11227  enable_fast_install=needless
11228fi
11229
11230
11231
11232
11233
11234
11235  if test "x$enable_dlopen" != xyes; then
11236  enable_dlopen=unknown
11237  enable_dlopen_self=unknown
11238  enable_dlopen_self_static=unknown
11239else
11240  lt_cv_dlopen=no
11241  lt_cv_dlopen_libs=
11242
11243  case $host_os in
11244  beos*)
11245    lt_cv_dlopen="load_add_on"
11246    lt_cv_dlopen_libs=
11247    lt_cv_dlopen_self=yes
11248    ;;
11249
11250  mingw* | pw32* | cegcc*)
11251    lt_cv_dlopen="LoadLibrary"
11252    lt_cv_dlopen_libs=
11253    ;;
11254
11255  cygwin*)
11256    lt_cv_dlopen="dlopen"
11257    lt_cv_dlopen_libs=
11258    ;;
11259
11260  darwin*)
11261  # if libdl is installed we need to link against it
11262    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11263$as_echo_n "checking for dlopen in -ldl... " >&6; }
11264if ${ac_cv_lib_dl_dlopen+:} false; then :
11265  $as_echo_n "(cached) " >&6
11266else
11267  ac_check_lib_save_LIBS=$LIBS
11268LIBS="-ldl  $LIBS"
11269cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11270/* end confdefs.h.  */
11271
11272/* Override any GCC internal prototype to avoid an error.
11273   Use char because int might match the return type of a GCC
11274   builtin and then its argument prototype would still apply.  */
11275#ifdef __cplusplus
11276extern "C"
11277#endif
11278char dlopen ();
11279int
11280main ()
11281{
11282return dlopen ();
11283  ;
11284  return 0;
11285}
11286_ACEOF
11287if ac_fn_c_try_link "$LINENO"; then :
11288  ac_cv_lib_dl_dlopen=yes
11289else
11290  ac_cv_lib_dl_dlopen=no
11291fi
11292rm -f core conftest.err conftest.$ac_objext \
11293    conftest$ac_exeext conftest.$ac_ext
11294LIBS=$ac_check_lib_save_LIBS
11295fi
11296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11297$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11298if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11299  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11300else
11301
11302    lt_cv_dlopen="dyld"
11303    lt_cv_dlopen_libs=
11304    lt_cv_dlopen_self=yes
11305
11306fi
11307
11308    ;;
11309
11310  *)
11311    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11312if test "x$ac_cv_func_shl_load" = xyes; then :
11313  lt_cv_dlopen="shl_load"
11314else
11315  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11316$as_echo_n "checking for shl_load in -ldld... " >&6; }
11317if ${ac_cv_lib_dld_shl_load+:} false; then :
11318  $as_echo_n "(cached) " >&6
11319else
11320  ac_check_lib_save_LIBS=$LIBS
11321LIBS="-ldld  $LIBS"
11322cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11323/* end confdefs.h.  */
11324
11325/* Override any GCC internal prototype to avoid an error.
11326   Use char because int might match the return type of a GCC
11327   builtin and then its argument prototype would still apply.  */
11328#ifdef __cplusplus
11329extern "C"
11330#endif
11331char shl_load ();
11332int
11333main ()
11334{
11335return shl_load ();
11336  ;
11337  return 0;
11338}
11339_ACEOF
11340if ac_fn_c_try_link "$LINENO"; then :
11341  ac_cv_lib_dld_shl_load=yes
11342else
11343  ac_cv_lib_dld_shl_load=no
11344fi
11345rm -f core conftest.err conftest.$ac_objext \
11346    conftest$ac_exeext conftest.$ac_ext
11347LIBS=$ac_check_lib_save_LIBS
11348fi
11349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11350$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11351if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11352  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11353else
11354  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11355if test "x$ac_cv_func_dlopen" = xyes; then :
11356  lt_cv_dlopen="dlopen"
11357else
11358  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11359$as_echo_n "checking for dlopen in -ldl... " >&6; }
11360if ${ac_cv_lib_dl_dlopen+:} false; then :
11361  $as_echo_n "(cached) " >&6
11362else
11363  ac_check_lib_save_LIBS=$LIBS
11364LIBS="-ldl  $LIBS"
11365cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11366/* end confdefs.h.  */
11367
11368/* Override any GCC internal prototype to avoid an error.
11369   Use char because int might match the return type of a GCC
11370   builtin and then its argument prototype would still apply.  */
11371#ifdef __cplusplus
11372extern "C"
11373#endif
11374char dlopen ();
11375int
11376main ()
11377{
11378return dlopen ();
11379  ;
11380  return 0;
11381}
11382_ACEOF
11383if ac_fn_c_try_link "$LINENO"; then :
11384  ac_cv_lib_dl_dlopen=yes
11385else
11386  ac_cv_lib_dl_dlopen=no
11387fi
11388rm -f core conftest.err conftest.$ac_objext \
11389    conftest$ac_exeext conftest.$ac_ext
11390LIBS=$ac_check_lib_save_LIBS
11391fi
11392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11393$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11394if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11395  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11396else
11397  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11398$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11399if ${ac_cv_lib_svld_dlopen+:} false; then :
11400  $as_echo_n "(cached) " >&6
11401else
11402  ac_check_lib_save_LIBS=$LIBS
11403LIBS="-lsvld  $LIBS"
11404cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11405/* end confdefs.h.  */
11406
11407/* Override any GCC internal prototype to avoid an error.
11408   Use char because int might match the return type of a GCC
11409   builtin and then its argument prototype would still apply.  */
11410#ifdef __cplusplus
11411extern "C"
11412#endif
11413char dlopen ();
11414int
11415main ()
11416{
11417return dlopen ();
11418  ;
11419  return 0;
11420}
11421_ACEOF
11422if ac_fn_c_try_link "$LINENO"; then :
11423  ac_cv_lib_svld_dlopen=yes
11424else
11425  ac_cv_lib_svld_dlopen=no
11426fi
11427rm -f core conftest.err conftest.$ac_objext \
11428    conftest$ac_exeext conftest.$ac_ext
11429LIBS=$ac_check_lib_save_LIBS
11430fi
11431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11432$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11433if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11434  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11435else
11436  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11437$as_echo_n "checking for dld_link in -ldld... " >&6; }
11438if ${ac_cv_lib_dld_dld_link+:} false; then :
11439  $as_echo_n "(cached) " >&6
11440else
11441  ac_check_lib_save_LIBS=$LIBS
11442LIBS="-ldld  $LIBS"
11443cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11444/* end confdefs.h.  */
11445
11446/* Override any GCC internal prototype to avoid an error.
11447   Use char because int might match the return type of a GCC
11448   builtin and then its argument prototype would still apply.  */
11449#ifdef __cplusplus
11450extern "C"
11451#endif
11452char dld_link ();
11453int
11454main ()
11455{
11456return dld_link ();
11457  ;
11458  return 0;
11459}
11460_ACEOF
11461if ac_fn_c_try_link "$LINENO"; then :
11462  ac_cv_lib_dld_dld_link=yes
11463else
11464  ac_cv_lib_dld_dld_link=no
11465fi
11466rm -f core conftest.err conftest.$ac_objext \
11467    conftest$ac_exeext conftest.$ac_ext
11468LIBS=$ac_check_lib_save_LIBS
11469fi
11470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11471$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11472if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11473  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11474fi
11475
11476
11477fi
11478
11479
11480fi
11481
11482
11483fi
11484
11485
11486fi
11487
11488
11489fi
11490
11491    ;;
11492  esac
11493
11494  if test "x$lt_cv_dlopen" != xno; then
11495    enable_dlopen=yes
11496  else
11497    enable_dlopen=no
11498  fi
11499
11500  case $lt_cv_dlopen in
11501  dlopen)
11502    save_CPPFLAGS="$CPPFLAGS"
11503    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11504
11505    save_LDFLAGS="$LDFLAGS"
11506    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11507
11508    save_LIBS="$LIBS"
11509    LIBS="$lt_cv_dlopen_libs $LIBS"
11510
11511    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11512$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11513if ${lt_cv_dlopen_self+:} false; then :
11514  $as_echo_n "(cached) " >&6
11515else
11516  	  if test "$cross_compiling" = yes; then :
11517  lt_cv_dlopen_self=cross
11518else
11519  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11520  lt_status=$lt_dlunknown
11521  cat > conftest.$ac_ext <<_LT_EOF
11522#line 11522 "configure"
11523#include "confdefs.h"
11524
11525#if HAVE_DLFCN_H
11526#include <dlfcn.h>
11527#endif
11528
11529#include <stdio.h>
11530
11531#ifdef RTLD_GLOBAL
11532#  define LT_DLGLOBAL		RTLD_GLOBAL
11533#else
11534#  ifdef DL_GLOBAL
11535#    define LT_DLGLOBAL		DL_GLOBAL
11536#  else
11537#    define LT_DLGLOBAL		0
11538#  endif
11539#endif
11540
11541/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11542   find out it does not work in some platform. */
11543#ifndef LT_DLLAZY_OR_NOW
11544#  ifdef RTLD_LAZY
11545#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11546#  else
11547#    ifdef DL_LAZY
11548#      define LT_DLLAZY_OR_NOW		DL_LAZY
11549#    else
11550#      ifdef RTLD_NOW
11551#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11552#      else
11553#        ifdef DL_NOW
11554#          define LT_DLLAZY_OR_NOW	DL_NOW
11555#        else
11556#          define LT_DLLAZY_OR_NOW	0
11557#        endif
11558#      endif
11559#    endif
11560#  endif
11561#endif
11562
11563/* When -fvisbility=hidden is used, assume the code has been annotated
11564   correspondingly for the symbols needed.  */
11565#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11566void fnord () __attribute__((visibility("default")));
11567#endif
11568
11569void fnord () { int i=42; }
11570int main ()
11571{
11572  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11573  int status = $lt_dlunknown;
11574
11575  if (self)
11576    {
11577      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11578      else
11579        {
11580	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11581          else puts (dlerror ());
11582	}
11583      /* dlclose (self); */
11584    }
11585  else
11586    puts (dlerror ());
11587
11588  return status;
11589}
11590_LT_EOF
11591  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11592  (eval $ac_link) 2>&5
11593  ac_status=$?
11594  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11595  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11596    (./conftest; exit; ) >&5 2>/dev/null
11597    lt_status=$?
11598    case x$lt_status in
11599      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11600      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11601      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11602    esac
11603  else :
11604    # compilation failed
11605    lt_cv_dlopen_self=no
11606  fi
11607fi
11608rm -fr conftest*
11609
11610
11611fi
11612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11613$as_echo "$lt_cv_dlopen_self" >&6; }
11614
11615    if test "x$lt_cv_dlopen_self" = xyes; then
11616      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11617      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11618$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11619if ${lt_cv_dlopen_self_static+:} false; then :
11620  $as_echo_n "(cached) " >&6
11621else
11622  	  if test "$cross_compiling" = yes; then :
11623  lt_cv_dlopen_self_static=cross
11624else
11625  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11626  lt_status=$lt_dlunknown
11627  cat > conftest.$ac_ext <<_LT_EOF
11628#line 11628 "configure"
11629#include "confdefs.h"
11630
11631#if HAVE_DLFCN_H
11632#include <dlfcn.h>
11633#endif
11634
11635#include <stdio.h>
11636
11637#ifdef RTLD_GLOBAL
11638#  define LT_DLGLOBAL		RTLD_GLOBAL
11639#else
11640#  ifdef DL_GLOBAL
11641#    define LT_DLGLOBAL		DL_GLOBAL
11642#  else
11643#    define LT_DLGLOBAL		0
11644#  endif
11645#endif
11646
11647/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11648   find out it does not work in some platform. */
11649#ifndef LT_DLLAZY_OR_NOW
11650#  ifdef RTLD_LAZY
11651#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11652#  else
11653#    ifdef DL_LAZY
11654#      define LT_DLLAZY_OR_NOW		DL_LAZY
11655#    else
11656#      ifdef RTLD_NOW
11657#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11658#      else
11659#        ifdef DL_NOW
11660#          define LT_DLLAZY_OR_NOW	DL_NOW
11661#        else
11662#          define LT_DLLAZY_OR_NOW	0
11663#        endif
11664#      endif
11665#    endif
11666#  endif
11667#endif
11668
11669/* When -fvisbility=hidden is used, assume the code has been annotated
11670   correspondingly for the symbols needed.  */
11671#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11672void fnord () __attribute__((visibility("default")));
11673#endif
11674
11675void fnord () { int i=42; }
11676int main ()
11677{
11678  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11679  int status = $lt_dlunknown;
11680
11681  if (self)
11682    {
11683      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11684      else
11685        {
11686	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11687          else puts (dlerror ());
11688	}
11689      /* dlclose (self); */
11690    }
11691  else
11692    puts (dlerror ());
11693
11694  return status;
11695}
11696_LT_EOF
11697  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11698  (eval $ac_link) 2>&5
11699  ac_status=$?
11700  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11701  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11702    (./conftest; exit; ) >&5 2>/dev/null
11703    lt_status=$?
11704    case x$lt_status in
11705      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11706      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11707      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11708    esac
11709  else :
11710    # compilation failed
11711    lt_cv_dlopen_self_static=no
11712  fi
11713fi
11714rm -fr conftest*
11715
11716
11717fi
11718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11719$as_echo "$lt_cv_dlopen_self_static" >&6; }
11720    fi
11721
11722    CPPFLAGS="$save_CPPFLAGS"
11723    LDFLAGS="$save_LDFLAGS"
11724    LIBS="$save_LIBS"
11725    ;;
11726  esac
11727
11728  case $lt_cv_dlopen_self in
11729  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11730  *) enable_dlopen_self=unknown ;;
11731  esac
11732
11733  case $lt_cv_dlopen_self_static in
11734  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11735  *) enable_dlopen_self_static=unknown ;;
11736  esac
11737fi
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755striplib=
11756old_striplib=
11757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11758$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11759if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11760  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11761  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11762  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11763$as_echo "yes" >&6; }
11764else
11765# FIXME - insert some real tests, host_os isn't really good enough
11766  case $host_os in
11767  darwin*)
11768    if test -n "$STRIP" ; then
11769      striplib="$STRIP -x"
11770      old_striplib="$STRIP -S"
11771      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11772$as_echo "yes" >&6; }
11773    else
11774      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11775$as_echo "no" >&6; }
11776    fi
11777    ;;
11778  *)
11779    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11780$as_echo "no" >&6; }
11781    ;;
11782  esac
11783fi
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796  # Report which library types will actually be built
11797  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11798$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11799  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11800$as_echo "$can_build_shared" >&6; }
11801
11802  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11803$as_echo_n "checking whether to build shared libraries... " >&6; }
11804  test "$can_build_shared" = "no" && enable_shared=no
11805
11806  # On AIX, shared libraries and static libraries use the same namespace, and
11807  # are all built from PIC.
11808  case $host_os in
11809  aix3*)
11810    test "$enable_shared" = yes && enable_static=no
11811    if test -n "$RANLIB"; then
11812      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11813      postinstall_cmds='$RANLIB $lib'
11814    fi
11815    ;;
11816
11817  aix[4-9]*)
11818    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11819      test "$enable_shared" = yes && enable_static=no
11820    fi
11821    ;;
11822  esac
11823  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11824$as_echo "$enable_shared" >&6; }
11825
11826  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11827$as_echo_n "checking whether to build static libraries... " >&6; }
11828  # Make sure either enable_shared or enable_static is yes.
11829  test "$enable_shared" = yes || enable_static=yes
11830  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11831$as_echo "$enable_static" >&6; }
11832
11833
11834
11835
11836fi
11837ac_ext=c
11838ac_cpp='$CPP $CPPFLAGS'
11839ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11840ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11841ac_compiler_gnu=$ac_cv_c_compiler_gnu
11842
11843CC="$lt_save_CC"
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857        ac_config_commands="$ac_config_commands libtool"
11858
11859
11860
11861
11862# Only expand once:
11863
11864
11865
11866# The tests for host and target for $enable_largefile require
11867# canonical names.
11868
11869
11870
11871# As the $enable_largefile decision depends on --enable-plugins we must set it
11872# even in directories otherwise not depending on the $plugins option.
11873
11874
11875  maybe_plugins=no
11876  for ac_header in dlfcn.h
11877do :
11878  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11879"
11880if test "x$ac_cv_header_dlfcn_h" = xyes; then :
11881  cat >>confdefs.h <<_ACEOF
11882#define HAVE_DLFCN_H 1
11883_ACEOF
11884 maybe_plugins=yes
11885fi
11886
11887done
11888
11889  for ac_header in windows.h
11890do :
11891  ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
11892"
11893if test "x$ac_cv_header_windows_h" = xyes; then :
11894  cat >>confdefs.h <<_ACEOF
11895#define HAVE_WINDOWS_H 1
11896_ACEOF
11897 maybe_plugins=yes
11898fi
11899
11900done
11901
11902
11903  # Check whether --enable-plugins was given.
11904if test "${enable_plugins+set}" = set; then :
11905  enableval=$enable_plugins; case "${enableval}" in
11906      no) plugins=no ;;
11907      *) plugins=yes
11908         if test "$maybe_plugins" != "yes" ; then
11909	   as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
11910	 fi ;;
11911     esac
11912else
11913  plugins=$maybe_plugins
11914
11915fi
11916
11917  if test "$plugins" = "yes"; then
11918    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
11919$as_echo_n "checking for library containing dlsym... " >&6; }
11920if ${ac_cv_search_dlsym+:} false; then :
11921  $as_echo_n "(cached) " >&6
11922else
11923  ac_func_search_save_LIBS=$LIBS
11924cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11925/* end confdefs.h.  */
11926
11927/* Override any GCC internal prototype to avoid an error.
11928   Use char because int might match the return type of a GCC
11929   builtin and then its argument prototype would still apply.  */
11930#ifdef __cplusplus
11931extern "C"
11932#endif
11933char dlsym ();
11934int
11935main ()
11936{
11937return dlsym ();
11938  ;
11939  return 0;
11940}
11941_ACEOF
11942for ac_lib in '' dl; do
11943  if test -z "$ac_lib"; then
11944    ac_res="none required"
11945  else
11946    ac_res=-l$ac_lib
11947    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11948  fi
11949  if ac_fn_c_try_link "$LINENO"; then :
11950  ac_cv_search_dlsym=$ac_res
11951fi
11952rm -f core conftest.err conftest.$ac_objext \
11953    conftest$ac_exeext
11954  if ${ac_cv_search_dlsym+:} false; then :
11955  break
11956fi
11957done
11958if ${ac_cv_search_dlsym+:} false; then :
11959
11960else
11961  ac_cv_search_dlsym=no
11962fi
11963rm conftest.$ac_ext
11964LIBS=$ac_func_search_save_LIBS
11965fi
11966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
11967$as_echo "$ac_cv_search_dlsym" >&6; }
11968ac_res=$ac_cv_search_dlsym
11969if test "$ac_res" != no; then :
11970  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11971
11972fi
11973
11974  fi
11975
11976
11977case "${host}" in
11978  sparc-*-solaris*|i[3-7]86-*-solaris*)
11979    # On native 32bit sparc and ia32 solaris, large-file and procfs support
11980    # are mutually exclusive; and without procfs support, the bfd/ elf module
11981    # cannot provide certain routines such as elfcore_write_prpsinfo
11982    # or elfcore_write_prstatus.  So unless the user explicitly requested
11983    # large-file support through the --enable-largefile switch, disable
11984    # large-file support in favor of procfs support.
11985    test "${target}" = "${host}" -a "x$plugins" = xno \
11986      && : ${enable_largefile="no"}
11987    ;;
11988esac
11989
11990# Check whether --enable-largefile was given.
11991if test "${enable_largefile+set}" = set; then :
11992  enableval=$enable_largefile;
11993fi
11994
11995if test "$enable_largefile" != no; then
11996
11997  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
11998$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
11999if ${ac_cv_sys_largefile_CC+:} false; then :
12000  $as_echo_n "(cached) " >&6
12001else
12002  ac_cv_sys_largefile_CC=no
12003     if test "$GCC" != yes; then
12004       ac_save_CC=$CC
12005       while :; do
12006	 # IRIX 6.2 and later do not support large files by default,
12007	 # so use the C compiler's -n32 option if that helps.
12008	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12009/* end confdefs.h.  */
12010#include <sys/types.h>
12011 /* Check that off_t can represent 2**63 - 1 correctly.
12012    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12013    since some C++ compilers masquerading as C compilers
12014    incorrectly reject 9223372036854775807.  */
12015#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12016  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12017		       && LARGE_OFF_T % 2147483647 == 1)
12018		      ? 1 : -1];
12019int
12020main ()
12021{
12022
12023  ;
12024  return 0;
12025}
12026_ACEOF
12027	 if ac_fn_c_try_compile "$LINENO"; then :
12028  break
12029fi
12030rm -f core conftest.err conftest.$ac_objext
12031	 CC="$CC -n32"
12032	 if ac_fn_c_try_compile "$LINENO"; then :
12033  ac_cv_sys_largefile_CC=' -n32'; break
12034fi
12035rm -f core conftest.err conftest.$ac_objext
12036	 break
12037       done
12038       CC=$ac_save_CC
12039       rm -f conftest.$ac_ext
12040    fi
12041fi
12042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
12043$as_echo "$ac_cv_sys_largefile_CC" >&6; }
12044  if test "$ac_cv_sys_largefile_CC" != no; then
12045    CC=$CC$ac_cv_sys_largefile_CC
12046  fi
12047
12048  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
12049$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
12050if ${ac_cv_sys_file_offset_bits+:} false; then :
12051  $as_echo_n "(cached) " >&6
12052else
12053  while :; do
12054  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12055/* end confdefs.h.  */
12056#include <sys/types.h>
12057 /* Check that off_t can represent 2**63 - 1 correctly.
12058    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12059    since some C++ compilers masquerading as C compilers
12060    incorrectly reject 9223372036854775807.  */
12061#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12062  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12063		       && LARGE_OFF_T % 2147483647 == 1)
12064		      ? 1 : -1];
12065int
12066main ()
12067{
12068
12069  ;
12070  return 0;
12071}
12072_ACEOF
12073if ac_fn_c_try_compile "$LINENO"; then :
12074  ac_cv_sys_file_offset_bits=no; break
12075fi
12076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12077  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12078/* end confdefs.h.  */
12079#define _FILE_OFFSET_BITS 64
12080#include <sys/types.h>
12081 /* Check that off_t can represent 2**63 - 1 correctly.
12082    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12083    since some C++ compilers masquerading as C compilers
12084    incorrectly reject 9223372036854775807.  */
12085#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12086  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12087		       && LARGE_OFF_T % 2147483647 == 1)
12088		      ? 1 : -1];
12089int
12090main ()
12091{
12092
12093  ;
12094  return 0;
12095}
12096_ACEOF
12097if ac_fn_c_try_compile "$LINENO"; then :
12098  ac_cv_sys_file_offset_bits=64; break
12099fi
12100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12101  ac_cv_sys_file_offset_bits=unknown
12102  break
12103done
12104fi
12105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
12106$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
12107case $ac_cv_sys_file_offset_bits in #(
12108  no | unknown) ;;
12109  *)
12110cat >>confdefs.h <<_ACEOF
12111#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
12112_ACEOF
12113;;
12114esac
12115rm -rf conftest*
12116  if test $ac_cv_sys_file_offset_bits = unknown; then
12117    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
12118$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
12119if ${ac_cv_sys_large_files+:} false; then :
12120  $as_echo_n "(cached) " >&6
12121else
12122  while :; do
12123  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12124/* end confdefs.h.  */
12125#include <sys/types.h>
12126 /* Check that off_t can represent 2**63 - 1 correctly.
12127    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12128    since some C++ compilers masquerading as C compilers
12129    incorrectly reject 9223372036854775807.  */
12130#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12131  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12132		       && LARGE_OFF_T % 2147483647 == 1)
12133		      ? 1 : -1];
12134int
12135main ()
12136{
12137
12138  ;
12139  return 0;
12140}
12141_ACEOF
12142if ac_fn_c_try_compile "$LINENO"; then :
12143  ac_cv_sys_large_files=no; break
12144fi
12145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12146  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12147/* end confdefs.h.  */
12148#define _LARGE_FILES 1
12149#include <sys/types.h>
12150 /* Check that off_t can represent 2**63 - 1 correctly.
12151    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12152    since some C++ compilers masquerading as C compilers
12153    incorrectly reject 9223372036854775807.  */
12154#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12155  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12156		       && LARGE_OFF_T % 2147483647 == 1)
12157		      ? 1 : -1];
12158int
12159main ()
12160{
12161
12162  ;
12163  return 0;
12164}
12165_ACEOF
12166if ac_fn_c_try_compile "$LINENO"; then :
12167  ac_cv_sys_large_files=1; break
12168fi
12169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12170  ac_cv_sys_large_files=unknown
12171  break
12172done
12173fi
12174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
12175$as_echo "$ac_cv_sys_large_files" >&6; }
12176case $ac_cv_sys_large_files in #(
12177  no | unknown) ;;
12178  *)
12179cat >>confdefs.h <<_ACEOF
12180#define _LARGE_FILES $ac_cv_sys_large_files
12181_ACEOF
12182;;
12183esac
12184rm -rf conftest*
12185  fi
12186
12187
12188fi
12189
12190
12191
12192# Check whether --enable-targets was given.
12193if test "${enable_targets+set}" = set; then :
12194  enableval=$enable_targets; case "${enableval}" in
12195  yes | "") as_fn_error $? "enable-targets option must specify target names or 'all'" "$LINENO" 5
12196            ;;
12197  no)       enable_targets= ;;
12198  *)        enable_targets=$enableval ;;
12199esac
12200fi
12201
12202# Check whether --enable-deterministic-archives was given.
12203if test "${enable_deterministic_archives+set}" = set; then :
12204  enableval=$enable_deterministic_archives;
12205if test "${enableval}" = no; then
12206  default_ar_deterministic=0
12207else
12208  default_ar_deterministic=1
12209fi
12210else
12211  default_ar_deterministic=0
12212fi
12213
12214
12215
12216cat >>confdefs.h <<_ACEOF
12217#define DEFAULT_AR_DETERMINISTIC $default_ar_deterministic
12218_ACEOF
12219
12220
12221# Check whether --enable-default-strings-all was given.
12222if test "${enable_default_strings_all+set}" = set; then :
12223  enableval=$enable_default_strings_all;
12224if test "${enableval}" = no; then
12225  default_strings_all=0
12226else
12227  default_strings_all=1
12228fi
12229else
12230  default_strings_all=1
12231fi
12232
12233
12234
12235cat >>confdefs.h <<_ACEOF
12236#define DEFAULT_STRINGS_ALL $default_strings_all
12237_ACEOF
12238
12239
12240
12241# Set the 'development' global.
12242. $srcdir/../bfd/development.sh
12243
12244# Set acp_cpp_for_build variable
12245ac_cpp_for_build="$CC_FOR_BUILD -E $CPPFLAGS_FOR_BUILD"
12246
12247# Default set of GCC warnings to enable.
12248GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
12249GCC_WARN_CFLAGS_FOR_BUILD="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
12250
12251# Add -Wshadow if the compiler is a sufficiently recent version of GCC.
12252cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12253/* end confdefs.h.  */
12254__GNUC__
12255_ACEOF
12256if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12257  $EGREP "^[0-3]$" >/dev/null 2>&1; then :
12258
12259else
12260  GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
12261fi
12262rm -f conftest*
12263
12264
12265# Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
12266cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12267/* end confdefs.h.  */
12268__GNUC__
12269_ACEOF
12270if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12271  $EGREP "^[0-4]$" >/dev/null 2>&1; then :
12272
12273else
12274  GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144"
12275fi
12276rm -f conftest*
12277
12278
12279# Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings.
12280WARN_WRITE_STRINGS=""
12281cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12282/* end confdefs.h.  */
12283__GNUC__
12284_ACEOF
12285if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12286  $EGREP "^[0-3]$" >/dev/null 2>&1; then :
12287
12288else
12289  WARN_WRITE_STRINGS="-Wwrite-strings"
12290fi
12291rm -f conftest*
12292
12293
12294# Verify CC_FOR_BUILD to be compatible with warning flags
12295
12296# Add -Wshadow if the compiler is a sufficiently recent version of GCC.
12297cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12298/* end confdefs.h.  */
12299__GNUC__
12300_ACEOF
12301if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
12302  $EGREP "^[0-3]$" >/dev/null 2>&1; then :
12303
12304else
12305  GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wshadow"
12306fi
12307rm -f conftest*
12308
12309
12310# Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
12311cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12312/* end confdefs.h.  */
12313__GNUC__
12314_ACEOF
12315if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
12316  $EGREP "^[0-4]$" >/dev/null 2>&1; then :
12317
12318else
12319  GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wstack-usage=262144"
12320fi
12321rm -f conftest*
12322
12323
12324# Check whether --enable-werror was given.
12325if test "${enable_werror+set}" = set; then :
12326  enableval=$enable_werror; case "${enableval}" in
12327     yes | y) ERROR_ON_WARNING="yes" ;;
12328     no | n)  ERROR_ON_WARNING="no" ;;
12329     *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
12330   esac
12331fi
12332
12333
12334# Disable -Wformat by default when using gcc on mingw
12335case "${host}" in
12336  *-*-mingw32*)
12337    if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
12338      GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
12339      GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wno-format"
12340    fi
12341    ;;
12342  *) ;;
12343esac
12344
12345# Enable -Werror by default when using gcc.  Turn it off for releases.
12346if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then
12347    ERROR_ON_WARNING=yes
12348fi
12349
12350NO_WERROR=
12351if test "${ERROR_ON_WARNING}" = yes ; then
12352    GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
12353    GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Werror"
12354    NO_WERROR="-Wno-error"
12355fi
12356
12357if test "${GCC}" = yes ; then
12358  WARN_CFLAGS="${GCC_WARN_CFLAGS}"
12359  WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}"
12360fi
12361
12362# Check whether --enable-build-warnings was given.
12363if test "${enable_build_warnings+set}" = set; then :
12364  enableval=$enable_build_warnings; case "${enableval}" in
12365  yes)	WARN_CFLAGS="${GCC_WARN_CFLAGS}"
12366        WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}";;
12367  no)	if test "${GCC}" = yes ; then
12368	  WARN_CFLAGS="-w"
12369      WARN_CFLAGS_FOR_BUILD="-w"
12370	fi;;
12371  ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
12372        WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}"
12373        WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD} ${t}";;
12374  *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
12375        WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}"
12376        WARN_CFLAGS_FOR_BUILD="${t} ${GCC_WARN_CFLAGS_FOR_BUILD}";;
12377  *)    WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`
12378        WARN_CFLAGS_FOR_BUILD=`echo "${enableval}" | sed -e "s/,/ /g"`;;
12379esac
12380fi
12381
12382
12383if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
12384  echo "Setting warning flags = $WARN_CFLAGS" 6>&1
12385fi
12386
12387
12388
12389
12390
12391
12392
12393ac_config_headers="$ac_config_headers config.h:config.in"
12394
12395
12396
12397
12398if test -z "$target" ; then
12399    as_fn_error $? "Unrecognized target system type; please check config.sub." "$LINENO" 5
12400fi
12401if test -z "$host" ; then
12402    as_fn_error $? "Unrecognized host system type; please check config.sub." "$LINENO" 5
12403fi
12404
12405for ac_prog in 'bison -y' byacc
12406do
12407  # Extract the first word of "$ac_prog", so it can be a program name with args.
12408set dummy $ac_prog; ac_word=$2
12409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12410$as_echo_n "checking for $ac_word... " >&6; }
12411if ${ac_cv_prog_YACC+:} false; then :
12412  $as_echo_n "(cached) " >&6
12413else
12414  if test -n "$YACC"; then
12415  ac_cv_prog_YACC="$YACC" # Let the user override the test.
12416else
12417as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12418for as_dir in $PATH
12419do
12420  IFS=$as_save_IFS
12421  test -z "$as_dir" && as_dir=.
12422    for ac_exec_ext in '' $ac_executable_extensions; do
12423  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12424    ac_cv_prog_YACC="$ac_prog"
12425    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12426    break 2
12427  fi
12428done
12429  done
12430IFS=$as_save_IFS
12431
12432fi
12433fi
12434YACC=$ac_cv_prog_YACC
12435if test -n "$YACC"; then
12436  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
12437$as_echo "$YACC" >&6; }
12438else
12439  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12440$as_echo "no" >&6; }
12441fi
12442
12443
12444  test -n "$YACC" && break
12445done
12446test -n "$YACC" || YACC="yacc"
12447
12448for ac_prog in flex lex
12449do
12450  # Extract the first word of "$ac_prog", so it can be a program name with args.
12451set dummy $ac_prog; ac_word=$2
12452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12453$as_echo_n "checking for $ac_word... " >&6; }
12454if ${ac_cv_prog_LEX+:} false; then :
12455  $as_echo_n "(cached) " >&6
12456else
12457  if test -n "$LEX"; then
12458  ac_cv_prog_LEX="$LEX" # Let the user override the test.
12459else
12460as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12461for as_dir in $PATH
12462do
12463  IFS=$as_save_IFS
12464  test -z "$as_dir" && as_dir=.
12465    for ac_exec_ext in '' $ac_executable_extensions; do
12466  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12467    ac_cv_prog_LEX="$ac_prog"
12468    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12469    break 2
12470  fi
12471done
12472  done
12473IFS=$as_save_IFS
12474
12475fi
12476fi
12477LEX=$ac_cv_prog_LEX
12478if test -n "$LEX"; then
12479  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
12480$as_echo "$LEX" >&6; }
12481else
12482  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12483$as_echo "no" >&6; }
12484fi
12485
12486
12487  test -n "$LEX" && break
12488done
12489test -n "$LEX" || LEX=":"
12490
12491case "$LEX" in
12492  :|*"missing "*) ;;
12493  *) cat >conftest.l <<_ACEOF
12494%%
12495a { ECHO; }
12496b { REJECT; }
12497c { yymore (); }
12498d { yyless (1); }
12499e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument.  */
12500    yyless ((input () != 0)); }
12501f { unput (yytext[0]); }
12502. { BEGIN INITIAL; }
12503%%
12504#ifdef YYTEXT_POINTER
12505extern char *yytext;
12506#endif
12507int
12508main (void)
12509{
12510  return ! yylex () + ! yywrap ();
12511}
12512_ACEOF
12513{ { ac_try="$LEX conftest.l"
12514case "(($ac_try" in
12515  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12516  *) ac_try_echo=$ac_try;;
12517esac
12518eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12519$as_echo "$ac_try_echo"; } >&5
12520  (eval "$LEX conftest.l") 2>&5
12521  ac_status=$?
12522  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12523  test $ac_status = 0; }
12524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
12525$as_echo_n "checking lex output file root... " >&6; }
12526if ${ac_cv_prog_lex_root+:} false; then :
12527  $as_echo_n "(cached) " >&6
12528else
12529
12530if test -f lex.yy.c; then
12531  ac_cv_prog_lex_root=lex.yy
12532elif test -f lexyy.c; then
12533  ac_cv_prog_lex_root=lexyy
12534else
12535  as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
12536fi
12537fi
12538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
12539$as_echo "$ac_cv_prog_lex_root" >&6; }
12540LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
12541
12542if test -z "${LEXLIB+set}"; then
12543  { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
12544$as_echo_n "checking lex library... " >&6; }
12545if ${ac_cv_lib_lex+:} false; then :
12546  $as_echo_n "(cached) " >&6
12547else
12548
12549    ac_save_LIBS=$LIBS
12550    ac_cv_lib_lex='none needed'
12551    for ac_lib in '' -lfl -ll; do
12552      LIBS="$ac_lib $ac_save_LIBS"
12553      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12554/* end confdefs.h.  */
12555`cat $LEX_OUTPUT_ROOT.c`
12556_ACEOF
12557if ac_fn_c_try_link "$LINENO"; then :
12558  ac_cv_lib_lex=$ac_lib
12559fi
12560rm -f core conftest.err conftest.$ac_objext \
12561    conftest$ac_exeext conftest.$ac_ext
12562      test "$ac_cv_lib_lex" != 'none needed' && break
12563    done
12564    LIBS=$ac_save_LIBS
12565
12566fi
12567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
12568$as_echo "$ac_cv_lib_lex" >&6; }
12569  test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
12570fi
12571
12572
12573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
12574$as_echo_n "checking whether yytext is a pointer... " >&6; }
12575if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
12576  $as_echo_n "(cached) " >&6
12577else
12578  # POSIX says lex can declare yytext either as a pointer or an array; the
12579# default is implementation-dependent.  Figure out which it is, since
12580# not all implementations provide the %pointer and %array declarations.
12581ac_cv_prog_lex_yytext_pointer=no
12582ac_save_LIBS=$LIBS
12583LIBS="$LEXLIB $ac_save_LIBS"
12584cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12585/* end confdefs.h.  */
12586
12587  #define YYTEXT_POINTER 1
12588`cat $LEX_OUTPUT_ROOT.c`
12589_ACEOF
12590if ac_fn_c_try_link "$LINENO"; then :
12591  ac_cv_prog_lex_yytext_pointer=yes
12592fi
12593rm -f core conftest.err conftest.$ac_objext \
12594    conftest$ac_exeext conftest.$ac_ext
12595LIBS=$ac_save_LIBS
12596
12597fi
12598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
12599$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
12600if test $ac_cv_prog_lex_yytext_pointer = yes; then
12601
12602$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
12603
12604fi
12605rm -f conftest.l $LEX_OUTPUT_ROOT.c
12606 ;;
12607esac
12608if test "$LEX" = :; then
12609  LEX=${am_missing_run}flex
12610fi
12611
12612ALL_LINGUAS="bg ca da es fi fr hr id it ja pt ro ru rw sk sr sv tr uk vi zh_CN zh_TW"
12613# If we haven't got the data from the intl directory,
12614# assume NLS is disabled.
12615USE_NLS=no
12616LIBINTL=
12617LIBINTL_DEP=
12618INCINTL=
12619XGETTEXT=
12620GMSGFMT=
12621POSUB=
12622
12623if test -f  ../intl/config.intl; then
12624  .  ../intl/config.intl
12625fi
12626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12627$as_echo_n "checking whether NLS is requested... " >&6; }
12628if test x"$USE_NLS" != xyes; then
12629  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12630$as_echo "no" >&6; }
12631else
12632  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12633$as_echo "yes" >&6; }
12634
12635$as_echo "#define ENABLE_NLS 1" >>confdefs.h
12636
12637
12638  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
12639$as_echo_n "checking for catalogs to be installed... " >&6; }
12640  # Look for .po and .gmo files in the source directory.
12641  CATALOGS=
12642  XLINGUAS=
12643  for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12644    # If there aren't any .gmo files the shell will give us the
12645    # literal string "../path/to/srcdir/po/*.gmo" which has to be
12646    # weeded out.
12647    case "$cat" in *\**)
12648      continue;;
12649    esac
12650    # The quadruple backslash is collapsed to a double backslash
12651    # by the backticks, then collapsed again by the double quotes,
12652    # leaving us with one backslash in the sed expression (right
12653    # before the dot that mustn't act as a wildcard).
12654    cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
12655    lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
12656    # The user is allowed to set LINGUAS to a list of languages to
12657    # install catalogs for.  If it's empty that means "all of them."
12658    if test "x$LINGUAS" = x; then
12659      CATALOGS="$CATALOGS $cat"
12660      XLINGUAS="$XLINGUAS $lang"
12661    else
12662      case "$LINGUAS" in *$lang*)
12663        CATALOGS="$CATALOGS $cat"
12664        XLINGUAS="$XLINGUAS $lang"
12665        ;;
12666      esac
12667    fi
12668  done
12669  LINGUAS="$XLINGUAS"
12670  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
12671$as_echo "$LINGUAS" >&6; }
12672
12673
12674    DATADIRNAME=share
12675
12676  INSTOBJEXT=.mo
12677
12678  GENCAT=gencat
12679
12680  CATOBJEXT=.gmo
12681
12682fi
12683
12684        MKINSTALLDIRS=
12685  if test -n "$ac_aux_dir"; then
12686    case "$ac_aux_dir" in
12687      /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
12688      *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
12689    esac
12690  fi
12691  if test -z "$MKINSTALLDIRS"; then
12692    MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
12693  fi
12694
12695
12696
12697  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12698$as_echo_n "checking whether NLS is requested... " >&6; }
12699    # Check whether --enable-nls was given.
12700if test "${enable_nls+set}" = set; then :
12701  enableval=$enable_nls; USE_NLS=$enableval
12702else
12703  USE_NLS=yes
12704fi
12705
12706  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
12707$as_echo "$USE_NLS" >&6; }
12708
12709
12710
12711
12712
12713
12714# Prepare PATH_SEPARATOR.
12715# The user is always right.
12716if test "${PATH_SEPARATOR+set}" != set; then
12717  echo "#! /bin/sh" >conf$$.sh
12718  echo  "exit 0"   >>conf$$.sh
12719  chmod +x conf$$.sh
12720  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12721    PATH_SEPARATOR=';'
12722  else
12723    PATH_SEPARATOR=:
12724  fi
12725  rm -f conf$$.sh
12726fi
12727
12728# Find out how to test for executable files. Don't use a zero-byte file,
12729# as systems may use methods other than mode bits to determine executability.
12730cat >conf$$.file <<_ASEOF
12731#! /bin/sh
12732exit 0
12733_ASEOF
12734chmod +x conf$$.file
12735if test -x conf$$.file >/dev/null 2>&1; then
12736  ac_executable_p="test -x"
12737else
12738  ac_executable_p="test -f"
12739fi
12740rm -f conf$$.file
12741
12742# Extract the first word of "msgfmt", so it can be a program name with args.
12743set dummy msgfmt; ac_word=$2
12744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12745$as_echo_n "checking for $ac_word... " >&6; }
12746if ${ac_cv_path_MSGFMT+:} false; then :
12747  $as_echo_n "(cached) " >&6
12748else
12749  case "$MSGFMT" in
12750  [\\/]* | ?:[\\/]*)
12751    ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12752    ;;
12753  *)
12754    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12755    for ac_dir in $PATH; do
12756      IFS="$ac_save_IFS"
12757      test -z "$ac_dir" && ac_dir=.
12758      for ac_exec_ext in '' $ac_executable_extensions; do
12759        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12760          if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
12761     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12762            ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
12763            break 2
12764          fi
12765        fi
12766      done
12767    done
12768    IFS="$ac_save_IFS"
12769  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
12770    ;;
12771esac
12772fi
12773MSGFMT="$ac_cv_path_MSGFMT"
12774if test "$MSGFMT" != ":"; then
12775  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
12776$as_echo "$MSGFMT" >&6; }
12777else
12778  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12779$as_echo "no" >&6; }
12780fi
12781
12782  # Extract the first word of "gmsgfmt", so it can be a program name with args.
12783set dummy gmsgfmt; ac_word=$2
12784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12785$as_echo_n "checking for $ac_word... " >&6; }
12786if ${ac_cv_path_GMSGFMT+:} false; then :
12787  $as_echo_n "(cached) " >&6
12788else
12789  case $GMSGFMT in
12790  [\\/]* | ?:[\\/]*)
12791  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12792  ;;
12793  *)
12794  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12795for as_dir in $PATH
12796do
12797  IFS=$as_save_IFS
12798  test -z "$as_dir" && as_dir=.
12799    for ac_exec_ext in '' $ac_executable_extensions; do
12800  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12801    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
12802    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12803    break 2
12804  fi
12805done
12806  done
12807IFS=$as_save_IFS
12808
12809  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12810  ;;
12811esac
12812fi
12813GMSGFMT=$ac_cv_path_GMSGFMT
12814if test -n "$GMSGFMT"; then
12815  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
12816$as_echo "$GMSGFMT" >&6; }
12817else
12818  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12819$as_echo "no" >&6; }
12820fi
12821
12822
12823
12824
12825# Prepare PATH_SEPARATOR.
12826# The user is always right.
12827if test "${PATH_SEPARATOR+set}" != set; then
12828  echo "#! /bin/sh" >conf$$.sh
12829  echo  "exit 0"   >>conf$$.sh
12830  chmod +x conf$$.sh
12831  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12832    PATH_SEPARATOR=';'
12833  else
12834    PATH_SEPARATOR=:
12835  fi
12836  rm -f conf$$.sh
12837fi
12838
12839# Find out how to test for executable files. Don't use a zero-byte file,
12840# as systems may use methods other than mode bits to determine executability.
12841cat >conf$$.file <<_ASEOF
12842#! /bin/sh
12843exit 0
12844_ASEOF
12845chmod +x conf$$.file
12846if test -x conf$$.file >/dev/null 2>&1; then
12847  ac_executable_p="test -x"
12848else
12849  ac_executable_p="test -f"
12850fi
12851rm -f conf$$.file
12852
12853# Extract the first word of "xgettext", so it can be a program name with args.
12854set dummy xgettext; ac_word=$2
12855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12856$as_echo_n "checking for $ac_word... " >&6; }
12857if ${ac_cv_path_XGETTEXT+:} false; then :
12858  $as_echo_n "(cached) " >&6
12859else
12860  case "$XGETTEXT" in
12861  [\\/]* | ?:[\\/]*)
12862    ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12863    ;;
12864  *)
12865    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12866    for ac_dir in $PATH; do
12867      IFS="$ac_save_IFS"
12868      test -z "$ac_dir" && ac_dir=.
12869      for ac_exec_ext in '' $ac_executable_extensions; do
12870        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12871          if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12872     (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
12873            ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
12874            break 2
12875          fi
12876        fi
12877      done
12878    done
12879    IFS="$ac_save_IFS"
12880  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12881    ;;
12882esac
12883fi
12884XGETTEXT="$ac_cv_path_XGETTEXT"
12885if test "$XGETTEXT" != ":"; then
12886  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
12887$as_echo "$XGETTEXT" >&6; }
12888else
12889  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12890$as_echo "no" >&6; }
12891fi
12892
12893    rm -f messages.po
12894
12895
12896# Prepare PATH_SEPARATOR.
12897# The user is always right.
12898if test "${PATH_SEPARATOR+set}" != set; then
12899  echo "#! /bin/sh" >conf$$.sh
12900  echo  "exit 0"   >>conf$$.sh
12901  chmod +x conf$$.sh
12902  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12903    PATH_SEPARATOR=';'
12904  else
12905    PATH_SEPARATOR=:
12906  fi
12907  rm -f conf$$.sh
12908fi
12909
12910# Find out how to test for executable files. Don't use a zero-byte file,
12911# as systems may use methods other than mode bits to determine executability.
12912cat >conf$$.file <<_ASEOF
12913#! /bin/sh
12914exit 0
12915_ASEOF
12916chmod +x conf$$.file
12917if test -x conf$$.file >/dev/null 2>&1; then
12918  ac_executable_p="test -x"
12919else
12920  ac_executable_p="test -f"
12921fi
12922rm -f conf$$.file
12923
12924# Extract the first word of "msgmerge", so it can be a program name with args.
12925set dummy msgmerge; ac_word=$2
12926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12927$as_echo_n "checking for $ac_word... " >&6; }
12928if ${ac_cv_path_MSGMERGE+:} false; then :
12929  $as_echo_n "(cached) " >&6
12930else
12931  case "$MSGMERGE" in
12932  [\\/]* | ?:[\\/]*)
12933    ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12934    ;;
12935  *)
12936    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12937    for ac_dir in $PATH; do
12938      IFS="$ac_save_IFS"
12939      test -z "$ac_dir" && ac_dir=.
12940      for ac_exec_ext in '' $ac_executable_extensions; do
12941        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12942          if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
12943            ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
12944            break 2
12945          fi
12946        fi
12947      done
12948    done
12949    IFS="$ac_save_IFS"
12950  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12951    ;;
12952esac
12953fi
12954MSGMERGE="$ac_cv_path_MSGMERGE"
12955if test "$MSGMERGE" != ":"; then
12956  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
12957$as_echo "$MSGMERGE" >&6; }
12958else
12959  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12960$as_echo "no" >&6; }
12961fi
12962
12963
12964      if test "$GMSGFMT" != ":"; then
12965            if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
12966       (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12967      : ;
12968    else
12969      GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
12970      { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
12971$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
12972      GMSGFMT=":"
12973    fi
12974  fi
12975
12976      if test "$XGETTEXT" != ":"; then
12977            if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12978       (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
12979      : ;
12980    else
12981      { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
12982$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
12983      XGETTEXT=":"
12984    fi
12985        rm -f messages.po
12986  fi
12987
12988  ac_config_commands="$ac_config_commands default-1"
12989
12990
12991
12992
12993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
12994$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
12995    # Check whether --enable-maintainer-mode was given.
12996if test "${enable_maintainer_mode+set}" = set; then :
12997  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
12998else
12999  USE_MAINTAINER_MODE=no
13000fi
13001
13002  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
13003$as_echo "$USE_MAINTAINER_MODE" >&6; }
13004   if test $USE_MAINTAINER_MODE = yes; then
13005  MAINTAINER_MODE_TRUE=
13006  MAINTAINER_MODE_FALSE='#'
13007else
13008  MAINTAINER_MODE_TRUE='#'
13009  MAINTAINER_MODE_FALSE=
13010fi
13011
13012  MAINT=$MAINTAINER_MODE_TRUE
13013
13014
13015 if false; then
13016  GENINSRC_NEVER_TRUE=
13017  GENINSRC_NEVER_FALSE='#'
13018else
13019  GENINSRC_NEVER_TRUE='#'
13020  GENINSRC_NEVER_FALSE=
13021fi
13022
13023
13024if test -n "$EXEEXT"; then
13025
13026$as_echo "#define HAVE_EXECUTABLE_SUFFIX 1" >>confdefs.h
13027
13028fi
13029
13030cat >>confdefs.h <<_ACEOF
13031#define EXECUTABLE_SUFFIX "${EXEEXT}"
13032_ACEOF
13033
13034
13035# host-specific stuff:
13036
13037HDEFINES=
13038
13039. ${srcdir}/../bfd/configure.host
13040
13041
13042AR=${AR-ar}
13043
13044if test -n "$ac_tool_prefix"; then
13045  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13046set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13048$as_echo_n "checking for $ac_word... " >&6; }
13049if ${ac_cv_prog_RANLIB+:} false; then :
13050  $as_echo_n "(cached) " >&6
13051else
13052  if test -n "$RANLIB"; then
13053  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13054else
13055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13056for as_dir in $PATH
13057do
13058  IFS=$as_save_IFS
13059  test -z "$as_dir" && as_dir=.
13060    for ac_exec_ext in '' $ac_executable_extensions; do
13061  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13062    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13063    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13064    break 2
13065  fi
13066done
13067  done
13068IFS=$as_save_IFS
13069
13070fi
13071fi
13072RANLIB=$ac_cv_prog_RANLIB
13073if test -n "$RANLIB"; then
13074  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13075$as_echo "$RANLIB" >&6; }
13076else
13077  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13078$as_echo "no" >&6; }
13079fi
13080
13081
13082fi
13083if test -z "$ac_cv_prog_RANLIB"; then
13084  ac_ct_RANLIB=$RANLIB
13085  # Extract the first word of "ranlib", so it can be a program name with args.
13086set dummy ranlib; ac_word=$2
13087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13088$as_echo_n "checking for $ac_word... " >&6; }
13089if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
13090  $as_echo_n "(cached) " >&6
13091else
13092  if test -n "$ac_ct_RANLIB"; then
13093  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13094else
13095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13096for as_dir in $PATH
13097do
13098  IFS=$as_save_IFS
13099  test -z "$as_dir" && as_dir=.
13100    for ac_exec_ext in '' $ac_executable_extensions; do
13101  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13102    ac_cv_prog_ac_ct_RANLIB="ranlib"
13103    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13104    break 2
13105  fi
13106done
13107  done
13108IFS=$as_save_IFS
13109
13110fi
13111fi
13112ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13113if test -n "$ac_ct_RANLIB"; then
13114  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13115$as_echo "$ac_ct_RANLIB" >&6; }
13116else
13117  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13118$as_echo "no" >&6; }
13119fi
13120
13121  if test "x$ac_ct_RANLIB" = x; then
13122    RANLIB=":"
13123  else
13124    case $cross_compiling:$ac_tool_warned in
13125yes:)
13126{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13127$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13128ac_tool_warned=yes ;;
13129esac
13130    RANLIB=$ac_ct_RANLIB
13131  fi
13132else
13133  RANLIB="$ac_cv_prog_RANLIB"
13134fi
13135
13136
13137
13138# Put a plausible default for CC_FOR_BUILD in Makefile.
13139if test -z "$CC_FOR_BUILD"; then
13140  if test "x$cross_compiling" = "xno"; then
13141    CC_FOR_BUILD='$(CC)'
13142  else
13143    CC_FOR_BUILD=gcc
13144  fi
13145fi
13146
13147# Also set EXEEXT_FOR_BUILD.
13148if test "x$cross_compiling" = "xno"; then
13149  EXEEXT_FOR_BUILD='$(EXEEXT)'
13150else
13151  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build system executable suffix" >&5
13152$as_echo_n "checking for build system executable suffix... " >&6; }
13153if ${bfd_cv_build_exeext+:} false; then :
13154  $as_echo_n "(cached) " >&6
13155else
13156  rm -f conftest*
13157     echo 'int main () { return 0; }' > conftest.c
13158     bfd_cv_build_exeext=
13159     ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
13160     for file in conftest.*; do
13161       case $file in
13162       *.c | *.o | *.obj | *.ilk | *.pdb) ;;
13163       *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
13164       esac
13165     done
13166     rm -f conftest*
13167     test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
13168fi
13169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_build_exeext" >&5
13170$as_echo "$bfd_cv_build_exeext" >&6; }
13171  EXEEXT_FOR_BUILD=""
13172  test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
13173fi
13174
13175
13176DEMANGLER_NAME=c++filt
13177case "${host}" in
13178  *-*-go32* | *-*-msdos*)
13179    DEMANGLER_NAME=cxxfilt
13180esac
13181
13182
13183# The cast to long int works around a bug in the HP C Compiler
13184# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13185# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13186# This bug is HP SR number 8606223364.
13187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
13188$as_echo_n "checking size of long... " >&6; }
13189if ${ac_cv_sizeof_long+:} false; then :
13190  $as_echo_n "(cached) " >&6
13191else
13192  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
13193
13194else
13195  if test "$ac_cv_type_long" = yes; then
13196     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13197$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13198as_fn_error 77 "cannot compute sizeof (long)
13199See \`config.log' for more details" "$LINENO" 5; }
13200   else
13201     ac_cv_sizeof_long=0
13202   fi
13203fi
13204
13205fi
13206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
13207$as_echo "$ac_cv_sizeof_long" >&6; }
13208
13209
13210
13211cat >>confdefs.h <<_ACEOF
13212#define SIZEOF_LONG $ac_cv_sizeof_long
13213_ACEOF
13214
13215
13216ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
13217if test "x$ac_cv_type_long_long" = xyes; then :
13218
13219cat >>confdefs.h <<_ACEOF
13220#define HAVE_LONG_LONG 1
13221_ACEOF
13222
13223# The cast to long int works around a bug in the HP C Compiler
13224# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13225# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13226# This bug is HP SR number 8606223364.
13227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
13228$as_echo_n "checking size of long long... " >&6; }
13229if ${ac_cv_sizeof_long_long+:} false; then :
13230  $as_echo_n "(cached) " >&6
13231else
13232  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
13233
13234else
13235  if test "$ac_cv_type_long_long" = yes; then
13236     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13237$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13238as_fn_error 77 "cannot compute sizeof (long long)
13239See \`config.log' for more details" "$LINENO" 5; }
13240   else
13241     ac_cv_sizeof_long_long=0
13242   fi
13243fi
13244
13245fi
13246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
13247$as_echo "$ac_cv_sizeof_long_long" >&6; }
13248
13249
13250
13251cat >>confdefs.h <<_ACEOF
13252#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
13253_ACEOF
13254
13255
13256fi
13257
13258
13259for ac_header in string.h strings.h stdlib.h unistd.h fcntl.h sys/file.h limits.h locale.h sys/param.h wchar.h
13260do :
13261  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13262ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13263if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13264  cat >>confdefs.h <<_ACEOF
13265#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13266_ACEOF
13267
13268fi
13269
13270done
13271
13272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
13273$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
13274if ${ac_cv_header_sys_wait_h+:} false; then :
13275  $as_echo_n "(cached) " >&6
13276else
13277  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13278/* end confdefs.h.  */
13279#include <sys/types.h>
13280#include <sys/wait.h>
13281#ifndef WEXITSTATUS
13282# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
13283#endif
13284#ifndef WIFEXITED
13285# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
13286#endif
13287
13288int
13289main ()
13290{
13291  int s;
13292  wait (&s);
13293  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
13294  ;
13295  return 0;
13296}
13297_ACEOF
13298if ac_fn_c_try_compile "$LINENO"; then :
13299  ac_cv_header_sys_wait_h=yes
13300else
13301  ac_cv_header_sys_wait_h=no
13302fi
13303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13304fi
13305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
13306$as_echo "$ac_cv_header_sys_wait_h" >&6; }
13307if test $ac_cv_header_sys_wait_h = yes; then
13308
13309$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
13310
13311fi
13312
13313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
13314$as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
13315if ${gcc_cv_header_string+:} false; then :
13316  $as_echo_n "(cached) " >&6
13317else
13318  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13319/* end confdefs.h.  */
13320#include <string.h>
13321#include <strings.h>
13322int
13323main ()
13324{
13325
13326  ;
13327  return 0;
13328}
13329_ACEOF
13330if ac_fn_c_try_compile "$LINENO"; then :
13331  gcc_cv_header_string=yes
13332else
13333  gcc_cv_header_string=no
13334fi
13335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13336fi
13337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
13338$as_echo "$gcc_cv_header_string" >&6; }
13339if test $gcc_cv_header_string = yes; then
13340
13341$as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
13342
13343fi
13344
13345ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13346if test "x$ac_cv_type_size_t" = xyes; then :
13347
13348else
13349
13350cat >>confdefs.h <<_ACEOF
13351#define size_t unsigned int
13352_ACEOF
13353
13354fi
13355
13356# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13357# for constant arguments.  Useless!
13358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
13359$as_echo_n "checking for working alloca.h... " >&6; }
13360if ${ac_cv_working_alloca_h+:} false; then :
13361  $as_echo_n "(cached) " >&6
13362else
13363  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13364/* end confdefs.h.  */
13365#include <alloca.h>
13366int
13367main ()
13368{
13369char *p = (char *) alloca (2 * sizeof (int));
13370			  if (p) return 0;
13371  ;
13372  return 0;
13373}
13374_ACEOF
13375if ac_fn_c_try_link "$LINENO"; then :
13376  ac_cv_working_alloca_h=yes
13377else
13378  ac_cv_working_alloca_h=no
13379fi
13380rm -f core conftest.err conftest.$ac_objext \
13381    conftest$ac_exeext conftest.$ac_ext
13382fi
13383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
13384$as_echo "$ac_cv_working_alloca_h" >&6; }
13385if test $ac_cv_working_alloca_h = yes; then
13386
13387$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
13388
13389fi
13390
13391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
13392$as_echo_n "checking for alloca... " >&6; }
13393if ${ac_cv_func_alloca_works+:} false; then :
13394  $as_echo_n "(cached) " >&6
13395else
13396  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13397/* end confdefs.h.  */
13398#ifdef __GNUC__
13399# define alloca __builtin_alloca
13400#else
13401# ifdef _MSC_VER
13402#  include <malloc.h>
13403#  define alloca _alloca
13404# else
13405#  ifdef HAVE_ALLOCA_H
13406#   include <alloca.h>
13407#  else
13408#   ifdef _AIX
13409 #pragma alloca
13410#   else
13411#    ifndef alloca /* predefined by HP cc +Olibcalls */
13412void *alloca (size_t);
13413#    endif
13414#   endif
13415#  endif
13416# endif
13417#endif
13418
13419int
13420main ()
13421{
13422char *p = (char *) alloca (1);
13423				    if (p) return 0;
13424  ;
13425  return 0;
13426}
13427_ACEOF
13428if ac_fn_c_try_link "$LINENO"; then :
13429  ac_cv_func_alloca_works=yes
13430else
13431  ac_cv_func_alloca_works=no
13432fi
13433rm -f core conftest.err conftest.$ac_objext \
13434    conftest$ac_exeext conftest.$ac_ext
13435fi
13436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
13437$as_echo "$ac_cv_func_alloca_works" >&6; }
13438
13439if test $ac_cv_func_alloca_works = yes; then
13440
13441$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
13442
13443else
13444  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13445# that cause trouble.  Some versions do not even contain alloca or
13446# contain a buggy version.  If you still want to use their alloca,
13447# use ar to extract alloca.o from them instead of compiling alloca.c.
13448
13449ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
13450
13451$as_echo "#define C_ALLOCA 1" >>confdefs.h
13452
13453
13454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
13455$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
13456if ${ac_cv_os_cray+:} false; then :
13457  $as_echo_n "(cached) " >&6
13458else
13459  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13460/* end confdefs.h.  */
13461#if defined CRAY && ! defined CRAY2
13462webecray
13463#else
13464wenotbecray
13465#endif
13466
13467_ACEOF
13468if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13469  $EGREP "webecray" >/dev/null 2>&1; then :
13470  ac_cv_os_cray=yes
13471else
13472  ac_cv_os_cray=no
13473fi
13474rm -f conftest*
13475
13476fi
13477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
13478$as_echo "$ac_cv_os_cray" >&6; }
13479if test $ac_cv_os_cray = yes; then
13480  for ac_func in _getb67 GETB67 getb67; do
13481    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13482ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13483if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13484
13485cat >>confdefs.h <<_ACEOF
13486#define CRAY_STACKSEG_END $ac_func
13487_ACEOF
13488
13489    break
13490fi
13491
13492  done
13493fi
13494
13495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
13496$as_echo_n "checking stack direction for C alloca... " >&6; }
13497if ${ac_cv_c_stack_direction+:} false; then :
13498  $as_echo_n "(cached) " >&6
13499else
13500  if test "$cross_compiling" = yes; then :
13501  ac_cv_c_stack_direction=0
13502else
13503  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13504/* end confdefs.h.  */
13505$ac_includes_default
13506int
13507find_stack_direction (int *addr, int depth)
13508{
13509  int dir, dummy = 0;
13510  if (! addr)
13511    addr = &dummy;
13512  *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
13513  dir = depth ? find_stack_direction (addr, depth - 1) : 0;
13514  return dir + dummy;
13515}
13516
13517int
13518main (int argc, char **argv)
13519{
13520  return find_stack_direction (0, argc + !argv + 20) < 0;
13521}
13522_ACEOF
13523if ac_fn_c_try_run "$LINENO"; then :
13524  ac_cv_c_stack_direction=1
13525else
13526  ac_cv_c_stack_direction=-1
13527fi
13528rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13529  conftest.$ac_objext conftest.beam conftest.$ac_ext
13530fi
13531
13532fi
13533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
13534$as_echo "$ac_cv_c_stack_direction" >&6; }
13535cat >>confdefs.h <<_ACEOF
13536#define STACK_DIRECTION $ac_cv_c_stack_direction
13537_ACEOF
13538
13539
13540fi
13541
13542for ac_func in sbrk utimes setmode getc_unlocked strcoll setlocale
13543do :
13544  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13545ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13546if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13547  cat >>confdefs.h <<_ACEOF
13548#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13549_ACEOF
13550
13551fi
13552done
13553
13554ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
13555if test "x$ac_cv_func_mkstemp" = xyes; then :
13556
13557$as_echo "#define HAVE_MKSTEMP 1" >>confdefs.h
13558
13559fi
13560
13561ac_fn_c_check_func "$LINENO" "mkdtemp" "ac_cv_func_mkdtemp"
13562if test "x$ac_cv_func_mkdtemp" = xyes; then :
13563
13564$as_echo "#define HAVE_MKDTEMP 1" >>confdefs.h
13565
13566fi
13567
13568  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
13569$as_echo_n "checking for mbstate_t... " >&6; }
13570  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13571/* end confdefs.h.  */
13572#include <wchar.h>
13573int
13574main ()
13575{
13576mbstate_t teststate;
13577  ;
13578  return 0;
13579}
13580_ACEOF
13581if ac_fn_c_try_compile "$LINENO"; then :
13582  have_mbstate_t=yes
13583else
13584  have_mbstate_t=no
13585fi
13586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13587  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mbstate_t" >&5
13588$as_echo "$have_mbstate_t" >&6; }
13589  if test x"$have_mbstate_t" = xyes; then
13590
13591$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
13592
13593  fi
13594
13595# Some systems have frexp only in -lm, not in -lc.
13596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing frexp" >&5
13597$as_echo_n "checking for library containing frexp... " >&6; }
13598if ${ac_cv_search_frexp+:} false; then :
13599  $as_echo_n "(cached) " >&6
13600else
13601  ac_func_search_save_LIBS=$LIBS
13602cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13603/* end confdefs.h.  */
13604
13605/* Override any GCC internal prototype to avoid an error.
13606   Use char because int might match the return type of a GCC
13607   builtin and then its argument prototype would still apply.  */
13608#ifdef __cplusplus
13609extern "C"
13610#endif
13611char frexp ();
13612int
13613main ()
13614{
13615return frexp ();
13616  ;
13617  return 0;
13618}
13619_ACEOF
13620for ac_lib in '' m; do
13621  if test -z "$ac_lib"; then
13622    ac_res="none required"
13623  else
13624    ac_res=-l$ac_lib
13625    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13626  fi
13627  if ac_fn_c_try_link "$LINENO"; then :
13628  ac_cv_search_frexp=$ac_res
13629fi
13630rm -f core conftest.err conftest.$ac_objext \
13631    conftest$ac_exeext
13632  if ${ac_cv_search_frexp+:} false; then :
13633  break
13634fi
13635done
13636if ${ac_cv_search_frexp+:} false; then :
13637
13638else
13639  ac_cv_search_frexp=no
13640fi
13641rm conftest.$ac_ext
13642LIBS=$ac_func_search_save_LIBS
13643fi
13644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_frexp" >&5
13645$as_echo "$ac_cv_search_frexp" >&6; }
13646ac_res=$ac_cv_search_frexp
13647if test "$ac_res" != no; then :
13648  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13649
13650fi
13651
13652
13653
13654  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
13655$as_echo_n "checking for LC_MESSAGES... " >&6; }
13656if ${am_cv_val_LC_MESSAGES+:} false; then :
13657  $as_echo_n "(cached) " >&6
13658else
13659  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13660/* end confdefs.h.  */
13661#include <locale.h>
13662int
13663main ()
13664{
13665return LC_MESSAGES
13666  ;
13667  return 0;
13668}
13669_ACEOF
13670if ac_fn_c_try_link "$LINENO"; then :
13671  am_cv_val_LC_MESSAGES=yes
13672else
13673  am_cv_val_LC_MESSAGES=no
13674fi
13675rm -f core conftest.err conftest.$ac_objext \
13676    conftest$ac_exeext conftest.$ac_ext
13677fi
13678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
13679$as_echo "$am_cv_val_LC_MESSAGES" >&6; }
13680  if test $am_cv_val_LC_MESSAGES = yes; then
13681
13682$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
13683
13684  fi
13685
13686
13687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for time_t in time.h" >&5
13688$as_echo_n "checking for time_t in time.h... " >&6; }
13689if ${bu_cv_decl_time_t_time_h+:} false; then :
13690  $as_echo_n "(cached) " >&6
13691else
13692  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13693/* end confdefs.h.  */
13694#include <time.h>
13695int
13696main ()
13697{
13698time_t i;
13699  ;
13700  return 0;
13701}
13702_ACEOF
13703if ac_fn_c_try_compile "$LINENO"; then :
13704  bu_cv_decl_time_t_time_h=yes
13705else
13706  bu_cv_decl_time_t_time_h=no
13707fi
13708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13709fi
13710
13711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bu_cv_decl_time_t_time_h" >&5
13712$as_echo "$bu_cv_decl_time_t_time_h" >&6; }
13713if test $bu_cv_decl_time_t_time_h = yes; then
13714
13715$as_echo "#define HAVE_TIME_T_IN_TIME_H 1" >>confdefs.h
13716
13717fi
13718
13719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for time_t in sys/types.h" >&5
13720$as_echo_n "checking for time_t in sys/types.h... " >&6; }
13721if ${bu_cv_decl_time_t_types_h+:} false; then :
13722  $as_echo_n "(cached) " >&6
13723else
13724  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13725/* end confdefs.h.  */
13726#include <sys/types.h>
13727int
13728main ()
13729{
13730time_t i;
13731  ;
13732  return 0;
13733}
13734_ACEOF
13735if ac_fn_c_try_compile "$LINENO"; then :
13736  bu_cv_decl_time_t_types_h=yes
13737else
13738  bu_cv_decl_time_t_types_h=no
13739fi
13740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13741fi
13742
13743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bu_cv_decl_time_t_types_h" >&5
13744$as_echo "$bu_cv_decl_time_t_types_h" >&6; }
13745if test $bu_cv_decl_time_t_types_h = yes; then
13746
13747$as_echo "#define HAVE_TIME_T_IN_TYPES_H 1" >>confdefs.h
13748
13749fi
13750
13751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
13752$as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
13753if ${bu_cv_decl_getopt_unistd_h+:} false; then :
13754  $as_echo_n "(cached) " >&6
13755else
13756  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13757/* end confdefs.h.  */
13758#include <unistd.h>
13759int
13760main ()
13761{
13762extern int getopt (int, char *const*, const char *);
13763  ;
13764  return 0;
13765}
13766_ACEOF
13767if ac_fn_c_try_compile "$LINENO"; then :
13768  bu_cv_decl_getopt_unistd_h=yes
13769else
13770  bu_cv_decl_getopt_unistd_h=no
13771fi
13772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13773fi
13774
13775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bu_cv_decl_getopt_unistd_h" >&5
13776$as_echo "$bu_cv_decl_getopt_unistd_h" >&6; }
13777if test $bu_cv_decl_getopt_unistd_h = yes; then
13778
13779$as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
13780
13781fi
13782
13783# Under Next 3.2 <utime.h> apparently does not define struct utimbuf
13784# by default.
13785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for utime.h" >&5
13786$as_echo_n "checking for utime.h... " >&6; }
13787if ${bu_cv_header_utime_h+:} false; then :
13788  $as_echo_n "(cached) " >&6
13789else
13790  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13791/* end confdefs.h.  */
13792#include <sys/types.h>
13793#ifdef HAVE_TIME_H
13794#include <time.h>
13795#endif
13796#include <utime.h>
13797int
13798main ()
13799{
13800struct utimbuf s;
13801  ;
13802  return 0;
13803}
13804_ACEOF
13805if ac_fn_c_try_compile "$LINENO"; then :
13806  bu_cv_header_utime_h=yes
13807else
13808  bu_cv_header_utime_h=no
13809fi
13810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13811fi
13812
13813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bu_cv_header_utime_h" >&5
13814$as_echo "$bu_cv_header_utime_h" >&6; }
13815if test $bu_cv_header_utime_h = yes; then
13816
13817$as_echo "#define HAVE_GOOD_UTIME_H 1" >>confdefs.h
13818
13819fi
13820
13821ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
13822if test "x$ac_cv_have_decl_asprintf" = xyes; then :
13823  ac_have_decl=1
13824else
13825  ac_have_decl=0
13826fi
13827
13828cat >>confdefs.h <<_ACEOF
13829#define HAVE_DECL_ASPRINTF $ac_have_decl
13830_ACEOF
13831ac_fn_c_check_decl "$LINENO" "environ" "ac_cv_have_decl_environ" "$ac_includes_default"
13832if test "x$ac_cv_have_decl_environ" = xyes; then :
13833  ac_have_decl=1
13834else
13835  ac_have_decl=0
13836fi
13837
13838cat >>confdefs.h <<_ACEOF
13839#define HAVE_DECL_ENVIRON $ac_have_decl
13840_ACEOF
13841ac_fn_c_check_decl "$LINENO" "fprintf" "ac_cv_have_decl_fprintf" "$ac_includes_default"
13842if test "x$ac_cv_have_decl_fprintf" = xyes; then :
13843  ac_have_decl=1
13844else
13845  ac_have_decl=0
13846fi
13847
13848cat >>confdefs.h <<_ACEOF
13849#define HAVE_DECL_FPRINTF $ac_have_decl
13850_ACEOF
13851ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
13852if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
13853  ac_have_decl=1
13854else
13855  ac_have_decl=0
13856fi
13857
13858cat >>confdefs.h <<_ACEOF
13859#define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
13860_ACEOF
13861ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
13862if test "x$ac_cv_have_decl_getenv" = xyes; then :
13863  ac_have_decl=1
13864else
13865  ac_have_decl=0
13866fi
13867
13868cat >>confdefs.h <<_ACEOF
13869#define HAVE_DECL_GETENV $ac_have_decl
13870_ACEOF
13871ac_fn_c_check_decl "$LINENO" "sbrk" "ac_cv_have_decl_sbrk" "$ac_includes_default"
13872if test "x$ac_cv_have_decl_sbrk" = xyes; then :
13873  ac_have_decl=1
13874else
13875  ac_have_decl=0
13876fi
13877
13878cat >>confdefs.h <<_ACEOF
13879#define HAVE_DECL_SBRK $ac_have_decl
13880_ACEOF
13881ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
13882if test "x$ac_cv_have_decl_snprintf" = xyes; then :
13883  ac_have_decl=1
13884else
13885  ac_have_decl=0
13886fi
13887
13888cat >>confdefs.h <<_ACEOF
13889#define HAVE_DECL_SNPRINTF $ac_have_decl
13890_ACEOF
13891ac_fn_c_check_decl "$LINENO" "stpcpy" "ac_cv_have_decl_stpcpy" "$ac_includes_default"
13892if test "x$ac_cv_have_decl_stpcpy" = xyes; then :
13893  ac_have_decl=1
13894else
13895  ac_have_decl=0
13896fi
13897
13898cat >>confdefs.h <<_ACEOF
13899#define HAVE_DECL_STPCPY $ac_have_decl
13900_ACEOF
13901ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
13902if test "x$ac_cv_have_decl_strnlen" = xyes; then :
13903  ac_have_decl=1
13904else
13905  ac_have_decl=0
13906fi
13907
13908cat >>confdefs.h <<_ACEOF
13909#define HAVE_DECL_STRNLEN $ac_have_decl
13910_ACEOF
13911ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
13912if test "x$ac_cv_have_decl_strstr" = xyes; then :
13913  ac_have_decl=1
13914else
13915  ac_have_decl=0
13916fi
13917
13918cat >>confdefs.h <<_ACEOF
13919#define HAVE_DECL_STRSTR $ac_have_decl
13920_ACEOF
13921ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
13922if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
13923  ac_have_decl=1
13924else
13925  ac_have_decl=0
13926fi
13927
13928cat >>confdefs.h <<_ACEOF
13929#define HAVE_DECL_VSNPRINTF $ac_have_decl
13930_ACEOF
13931
13932
13933# Link in zlib if we can.  This allows us to read compressed debug
13934# sections.  This is used only by readelf.c (objdump uses bfd for
13935# reading compressed sections).
13936
13937  # Use the system's zlib library.
13938  zlibdir="-L\$(top_builddir)/../zlib"
13939  zlibinc="-I\$(top_srcdir)/../zlib"
13940
13941# Check whether --with-system-zlib was given.
13942if test "${with_system_zlib+set}" = set; then :
13943  withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
13944    zlibdir=
13945    zlibinc=
13946  fi
13947
13948fi
13949
13950
13951
13952
13953
13954
13955case "${host}" in
13956*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
13957
13958$as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
13959 ;;
13960esac
13961
13962# target-specific stuff:
13963
13964# Canonicalize the secondary target names.
13965if test -n "$enable_targets"; then
13966    for targ in `echo $enable_targets | sed 's/,/ /g'`
13967    do
13968	result=`$ac_config_sub $targ 2>/dev/null`
13969	if test -n "$result"; then
13970	    canon_targets="$canon_targets $result"
13971	else
13972	    # Allow targets that config.sub doesn't recognize, like "all".
13973	    canon_targets="$canon_targets $targ"
13974	fi
13975    done
13976fi
13977
13978ac_fn_c_check_header_mongrel "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
13979if test "x$ac_cv_header_iconv_h" = xyes; then :
13980
13981fi
13982
13983
13984
13985      if test "X$prefix" = "XNONE"; then
13986    acl_final_prefix="$ac_default_prefix"
13987  else
13988    acl_final_prefix="$prefix"
13989  fi
13990  if test "X$exec_prefix" = "XNONE"; then
13991    acl_final_exec_prefix='${prefix}'
13992  else
13993    acl_final_exec_prefix="$exec_prefix"
13994  fi
13995  acl_save_prefix="$prefix"
13996  prefix="$acl_final_prefix"
13997  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
13998  prefix="$acl_save_prefix"
13999
14000
14001# Check whether --with-gnu-ld was given.
14002if test "${with_gnu_ld+set}" = set; then :
14003  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14004else
14005  with_gnu_ld=no
14006fi
14007
14008# Prepare PATH_SEPARATOR.
14009# The user is always right.
14010if test "${PATH_SEPARATOR+set}" != set; then
14011  echo "#! /bin/sh" >conf$$.sh
14012  echo  "exit 0"   >>conf$$.sh
14013  chmod +x conf$$.sh
14014  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14015    PATH_SEPARATOR=';'
14016  else
14017    PATH_SEPARATOR=:
14018  fi
14019  rm -f conf$$.sh
14020fi
14021ac_prog=ld
14022if test "$GCC" = yes; then
14023  # Check if gcc -print-prog-name=ld gives a path.
14024  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
14025$as_echo_n "checking for ld used by GCC... " >&6; }
14026  case $host in
14027  *-*-mingw*)
14028    # gcc leaves a trailing carriage return which upsets mingw
14029    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14030  *)
14031    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14032  esac
14033  case $ac_prog in
14034    # Accept absolute paths.
14035    [\\/]* | [A-Za-z]:[\\/]*)
14036      re_direlt='/[^/][^/]*/\.\./'
14037      # Canonicalize the path of ld
14038      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
14039      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
14040	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
14041      done
14042      test -z "$LD" && LD="$ac_prog"
14043      ;;
14044  "")
14045    # If it fails, then pretend we aren't using GCC.
14046    ac_prog=ld
14047    ;;
14048  *)
14049    # If it is relative, then search for the first ld in PATH.
14050    with_gnu_ld=unknown
14051    ;;
14052  esac
14053elif test "$with_gnu_ld" = yes; then
14054  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14055$as_echo_n "checking for GNU ld... " >&6; }
14056else
14057  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14058$as_echo_n "checking for non-GNU ld... " >&6; }
14059fi
14060if ${acl_cv_path_LD+:} false; then :
14061  $as_echo_n "(cached) " >&6
14062else
14063  if test -z "$LD"; then
14064  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
14065  for ac_dir in $PATH; do
14066    test -z "$ac_dir" && ac_dir=.
14067    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14068      acl_cv_path_LD="$ac_dir/$ac_prog"
14069      # Check to see if the program is GNU ld.  I'd rather use --version,
14070      # but apparently some GNU ld's only accept -v.
14071      # Break only if it was the GNU/non-GNU ld that we prefer.
14072      if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
14073	test "$with_gnu_ld" != no && break
14074      else
14075	test "$with_gnu_ld" != yes && break
14076      fi
14077    fi
14078  done
14079  IFS="$ac_save_ifs"
14080else
14081  acl_cv_path_LD="$LD" # Let the user override the test with a path.
14082fi
14083fi
14084
14085LD="$acl_cv_path_LD"
14086if test -n "$LD"; then
14087  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14088$as_echo "$LD" >&6; }
14089else
14090  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14091$as_echo "no" >&6; }
14092fi
14093test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14095$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14096if ${acl_cv_prog_gnu_ld+:} false; then :
14097  $as_echo_n "(cached) " >&6
14098else
14099  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
14100if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
14101  acl_cv_prog_gnu_ld=yes
14102else
14103  acl_cv_prog_gnu_ld=no
14104fi
14105fi
14106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
14107$as_echo "$acl_cv_prog_gnu_ld" >&6; }
14108with_gnu_ld=$acl_cv_prog_gnu_ld
14109
14110
14111
14112                                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
14113$as_echo_n "checking for shared library run path origin... " >&6; }
14114if ${acl_cv_rpath+:} false; then :
14115  $as_echo_n "(cached) " >&6
14116else
14117
14118    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
14119    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
14120    . ./conftest.sh
14121    rm -f ./conftest.sh
14122    acl_cv_rpath=done
14123
14124fi
14125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
14126$as_echo "$acl_cv_rpath" >&6; }
14127  wl="$acl_cv_wl"
14128  libext="$acl_cv_libext"
14129  shlibext="$acl_cv_shlibext"
14130  hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
14131  hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
14132  hardcode_direct="$acl_cv_hardcode_direct"
14133  hardcode_minus_L="$acl_cv_hardcode_minus_L"
14134    # Check whether --enable-rpath was given.
14135if test "${enable_rpath+set}" = set; then :
14136  enableval=$enable_rpath; :
14137else
14138  enable_rpath=yes
14139fi
14140
14141
14142
14143
14144
14145
14146
14147
14148    use_additional=yes
14149
14150  acl_save_prefix="$prefix"
14151  prefix="$acl_final_prefix"
14152  acl_save_exec_prefix="$exec_prefix"
14153  exec_prefix="$acl_final_exec_prefix"
14154
14155    eval additional_includedir=\"$includedir\"
14156    eval additional_libdir=\"$libdir\"
14157
14158  exec_prefix="$acl_save_exec_prefix"
14159  prefix="$acl_save_prefix"
14160
14161
14162# Check whether --with-libiconv-prefix was given.
14163if test "${with_libiconv_prefix+set}" = set; then :
14164  withval=$with_libiconv_prefix;
14165    if test "X$withval" = "Xno"; then
14166      use_additional=no
14167    else
14168      if test "X$withval" = "X"; then
14169
14170  acl_save_prefix="$prefix"
14171  prefix="$acl_final_prefix"
14172  acl_save_exec_prefix="$exec_prefix"
14173  exec_prefix="$acl_final_exec_prefix"
14174
14175          eval additional_includedir=\"$includedir\"
14176          eval additional_libdir=\"$libdir\"
14177
14178  exec_prefix="$acl_save_exec_prefix"
14179  prefix="$acl_save_prefix"
14180
14181      else
14182        additional_includedir="$withval/include"
14183        additional_libdir="$withval/lib"
14184      fi
14185    fi
14186
14187fi
14188
14189      LIBICONV=
14190  LTLIBICONV=
14191  INCICONV=
14192  rpathdirs=
14193  ltrpathdirs=
14194  names_already_handled=
14195  names_next_round='iconv '
14196  while test -n "$names_next_round"; do
14197    names_this_round="$names_next_round"
14198    names_next_round=
14199    for name in $names_this_round; do
14200      already_handled=
14201      for n in $names_already_handled; do
14202        if test "$n" = "$name"; then
14203          already_handled=yes
14204          break
14205        fi
14206      done
14207      if test -z "$already_handled"; then
14208        names_already_handled="$names_already_handled $name"
14209                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14210        eval value=\"\$HAVE_LIB$uppername\"
14211        if test -n "$value"; then
14212          if test "$value" = yes; then
14213            eval value=\"\$LIB$uppername\"
14214            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
14215            eval value=\"\$LTLIB$uppername\"
14216            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
14217          else
14218                                    :
14219          fi
14220        else
14221                              found_dir=
14222          found_la=
14223          found_so=
14224          found_a=
14225          if test $use_additional = yes; then
14226            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
14227              found_dir="$additional_libdir"
14228              found_so="$additional_libdir/lib$name.$shlibext"
14229              if test -f "$additional_libdir/lib$name.la"; then
14230                found_la="$additional_libdir/lib$name.la"
14231              fi
14232            else
14233              if test -f "$additional_libdir/lib$name.$libext"; then
14234                found_dir="$additional_libdir"
14235                found_a="$additional_libdir/lib$name.$libext"
14236                if test -f "$additional_libdir/lib$name.la"; then
14237                  found_la="$additional_libdir/lib$name.la"
14238                fi
14239              fi
14240            fi
14241          fi
14242          if test "X$found_dir" = "X"; then
14243            for x in $LDFLAGS $LTLIBICONV; do
14244
14245  acl_save_prefix="$prefix"
14246  prefix="$acl_final_prefix"
14247  acl_save_exec_prefix="$exec_prefix"
14248  exec_prefix="$acl_final_exec_prefix"
14249  eval x=\"$x\"
14250  exec_prefix="$acl_save_exec_prefix"
14251  prefix="$acl_save_prefix"
14252
14253              case "$x" in
14254                -L*)
14255                  dir=`echo "X$x" | sed -e 's/^X-L//'`
14256                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
14257                    found_dir="$dir"
14258                    found_so="$dir/lib$name.$shlibext"
14259                    if test -f "$dir/lib$name.la"; then
14260                      found_la="$dir/lib$name.la"
14261                    fi
14262                  else
14263                    if test -f "$dir/lib$name.$libext"; then
14264                      found_dir="$dir"
14265                      found_a="$dir/lib$name.$libext"
14266                      if test -f "$dir/lib$name.la"; then
14267                        found_la="$dir/lib$name.la"
14268                      fi
14269                    fi
14270                  fi
14271                  ;;
14272              esac
14273              if test "X$found_dir" != "X"; then
14274                break
14275              fi
14276            done
14277          fi
14278          if test "X$found_dir" != "X"; then
14279                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
14280            if test "X$found_so" != "X"; then
14281                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
14282                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14283              else
14284                                                                                haveit=
14285                for x in $ltrpathdirs; do
14286                  if test "X$x" = "X$found_dir"; then
14287                    haveit=yes
14288                    break
14289                  fi
14290                done
14291                if test -z "$haveit"; then
14292                  ltrpathdirs="$ltrpathdirs $found_dir"
14293                fi
14294                                if test "$hardcode_direct" = yes; then
14295                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14296                else
14297                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
14298                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14299                                                            haveit=
14300                    for x in $rpathdirs; do
14301                      if test "X$x" = "X$found_dir"; then
14302                        haveit=yes
14303                        break
14304                      fi
14305                    done
14306                    if test -z "$haveit"; then
14307                      rpathdirs="$rpathdirs $found_dir"
14308                    fi
14309                  else
14310                                                                                haveit=
14311                    for x in $LDFLAGS $LIBICONV; do
14312
14313  acl_save_prefix="$prefix"
14314  prefix="$acl_final_prefix"
14315  acl_save_exec_prefix="$exec_prefix"
14316  exec_prefix="$acl_final_exec_prefix"
14317  eval x=\"$x\"
14318  exec_prefix="$acl_save_exec_prefix"
14319  prefix="$acl_save_prefix"
14320
14321                      if test "X$x" = "X-L$found_dir"; then
14322                        haveit=yes
14323                        break
14324                      fi
14325                    done
14326                    if test -z "$haveit"; then
14327                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
14328                    fi
14329                    if test "$hardcode_minus_L" != no; then
14330                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14331                    else
14332                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14333                    fi
14334                  fi
14335                fi
14336              fi
14337            else
14338              if test "X$found_a" != "X"; then
14339                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
14340              else
14341                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
14342              fi
14343            fi
14344                        additional_includedir=
14345            case "$found_dir" in
14346              */lib | */lib/)
14347                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
14348                additional_includedir="$basedir/include"
14349                ;;
14350            esac
14351            if test "X$additional_includedir" != "X"; then
14352                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
14353                haveit=
14354                if test "X$additional_includedir" = "X/usr/local/include"; then
14355                  if test -n "$GCC"; then
14356                    case $host_os in
14357                      linux*) haveit=yes;;
14358                    esac
14359                  fi
14360                fi
14361                if test -z "$haveit"; then
14362                  for x in $CPPFLAGS $INCICONV; do
14363
14364  acl_save_prefix="$prefix"
14365  prefix="$acl_final_prefix"
14366  acl_save_exec_prefix="$exec_prefix"
14367  exec_prefix="$acl_final_exec_prefix"
14368  eval x=\"$x\"
14369  exec_prefix="$acl_save_exec_prefix"
14370  prefix="$acl_save_prefix"
14371
14372                    if test "X$x" = "X-I$additional_includedir"; then
14373                      haveit=yes
14374                      break
14375                    fi
14376                  done
14377                  if test -z "$haveit"; then
14378                    if test -d "$additional_includedir"; then
14379                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
14380                    fi
14381                  fi
14382                fi
14383              fi
14384            fi
14385                        if test -n "$found_la"; then
14386                                                        save_libdir="$libdir"
14387              case "$found_la" in
14388                */* | *\\*) . "$found_la" ;;
14389                *) . "./$found_la" ;;
14390              esac
14391              libdir="$save_libdir"
14392                            for dep in $dependency_libs; do
14393                case "$dep" in
14394                  -L*)
14395                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14396                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
14397                      haveit=
14398                      if test "X$additional_libdir" = "X/usr/local/lib"; then
14399                        if test -n "$GCC"; then
14400                          case $host_os in
14401                            linux*) haveit=yes;;
14402                          esac
14403                        fi
14404                      fi
14405                      if test -z "$haveit"; then
14406                        haveit=
14407                        for x in $LDFLAGS $LIBICONV; do
14408
14409  acl_save_prefix="$prefix"
14410  prefix="$acl_final_prefix"
14411  acl_save_exec_prefix="$exec_prefix"
14412  exec_prefix="$acl_final_exec_prefix"
14413  eval x=\"$x\"
14414  exec_prefix="$acl_save_exec_prefix"
14415  prefix="$acl_save_prefix"
14416
14417                          if test "X$x" = "X-L$additional_libdir"; then
14418                            haveit=yes
14419                            break
14420                          fi
14421                        done
14422                        if test -z "$haveit"; then
14423                          if test -d "$additional_libdir"; then
14424                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
14425                          fi
14426                        fi
14427                        haveit=
14428                        for x in $LDFLAGS $LTLIBICONV; do
14429
14430  acl_save_prefix="$prefix"
14431  prefix="$acl_final_prefix"
14432  acl_save_exec_prefix="$exec_prefix"
14433  exec_prefix="$acl_final_exec_prefix"
14434  eval x=\"$x\"
14435  exec_prefix="$acl_save_exec_prefix"
14436  prefix="$acl_save_prefix"
14437
14438                          if test "X$x" = "X-L$additional_libdir"; then
14439                            haveit=yes
14440                            break
14441                          fi
14442                        done
14443                        if test -z "$haveit"; then
14444                          if test -d "$additional_libdir"; then
14445                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
14446                          fi
14447                        fi
14448                      fi
14449                    fi
14450                    ;;
14451                  -R*)
14452                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
14453                    if test "$enable_rpath" != no; then
14454                                                                  haveit=
14455                      for x in $rpathdirs; do
14456                        if test "X$x" = "X$dir"; then
14457                          haveit=yes
14458                          break
14459                        fi
14460                      done
14461                      if test -z "$haveit"; then
14462                        rpathdirs="$rpathdirs $dir"
14463                      fi
14464                                                                  haveit=
14465                      for x in $ltrpathdirs; do
14466                        if test "X$x" = "X$dir"; then
14467                          haveit=yes
14468                          break
14469                        fi
14470                      done
14471                      if test -z "$haveit"; then
14472                        ltrpathdirs="$ltrpathdirs $dir"
14473                      fi
14474                    fi
14475                    ;;
14476                  -l*)
14477                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14478                    ;;
14479                  *.la)
14480                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14481                    ;;
14482                  *)
14483                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
14484                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
14485                    ;;
14486                esac
14487              done
14488            fi
14489          else
14490                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14491            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
14492          fi
14493        fi
14494      fi
14495    done
14496  done
14497  if test "X$rpathdirs" != "X"; then
14498    if test -n "$hardcode_libdir_separator"; then
14499                        alldirs=
14500      for found_dir in $rpathdirs; do
14501        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14502      done
14503            acl_save_libdir="$libdir"
14504      libdir="$alldirs"
14505      eval flag=\"$hardcode_libdir_flag_spec\"
14506      libdir="$acl_save_libdir"
14507      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14508    else
14509            for found_dir in $rpathdirs; do
14510        acl_save_libdir="$libdir"
14511        libdir="$found_dir"
14512        eval flag=\"$hardcode_libdir_flag_spec\"
14513        libdir="$acl_save_libdir"
14514        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14515      done
14516    fi
14517  fi
14518  if test "X$ltrpathdirs" != "X"; then
14519            for found_dir in $ltrpathdirs; do
14520      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
14521    done
14522  fi
14523
14524
14525
14526
14527
14528
14529
14530  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
14531$as_echo_n "checking for iconv... " >&6; }
14532if ${am_cv_func_iconv+:} false; then :
14533  $as_echo_n "(cached) " >&6
14534else
14535
14536    am_cv_func_iconv="no, consider installing GNU libiconv"
14537    am_cv_lib_iconv=no
14538                    am_save_CPPFLAGS="$CPPFLAGS"
14539    CPPFLAGS="$CPPFLAGS $INCICONV"
14540    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14541/* end confdefs.h.  */
14542#include <stdlib.h>
14543#include <iconv.h>
14544int
14545main ()
14546{
14547iconv_t cd = iconv_open("","");
14548       iconv(cd,NULL,NULL,NULL,NULL);
14549       iconv_close(cd);
14550  ;
14551  return 0;
14552}
14553_ACEOF
14554if ac_fn_c_try_link "$LINENO"; then :
14555  am_cv_func_iconv=yes
14556fi
14557rm -f core conftest.err conftest.$ac_objext \
14558    conftest$ac_exeext conftest.$ac_ext
14559    CPPFLAGS="$am_save_CPPFLAGS"
14560
14561    if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
14562      for _libs in .libs _libs; do
14563        am_save_CPPFLAGS="$CPPFLAGS"
14564        am_save_LIBS="$LIBS"
14565        CPPFLAGS="$CPPFLAGS -I../libiconv/include"
14566        LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a"
14567        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14568/* end confdefs.h.  */
14569#include <stdlib.h>
14570#include <iconv.h>
14571int
14572main ()
14573{
14574iconv_t cd = iconv_open("","");
14575           iconv(cd,NULL,NULL,NULL,NULL);
14576           iconv_close(cd);
14577  ;
14578  return 0;
14579}
14580_ACEOF
14581if ac_fn_c_try_link "$LINENO"; then :
14582  INCICONV="-I../libiconv/include"
14583          LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a
14584          LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la
14585          am_cv_lib_iconv=yes
14586          am_cv_func_iconv=yes
14587fi
14588rm -f core conftest.err conftest.$ac_objext \
14589    conftest$ac_exeext conftest.$ac_ext
14590        CPPFLAGS="$am_save_CPPFLAGS"
14591        LIBS="$am_save_LIBS"
14592        if test "$am_cv_func_iconv" = "yes"; then
14593          break
14594        fi
14595      done
14596    fi
14597
14598    if test "$am_cv_func_iconv" != yes; then
14599      am_save_CPPFLAGS="$CPPFLAGS"
14600      am_save_LIBS="$LIBS"
14601      CPPFLAGS="$LIBS $INCICONV"
14602      LIBS="$LIBS $LIBICONV"
14603      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14604/* end confdefs.h.  */
14605#include <stdlib.h>
14606#include <iconv.h>
14607int
14608main ()
14609{
14610iconv_t cd = iconv_open("","");
14611         iconv(cd,NULL,NULL,NULL,NULL);
14612         iconv_close(cd);
14613  ;
14614  return 0;
14615}
14616_ACEOF
14617if ac_fn_c_try_link "$LINENO"; then :
14618  am_cv_lib_iconv=yes
14619        am_cv_func_iconv=yes
14620fi
14621rm -f core conftest.err conftest.$ac_objext \
14622    conftest$ac_exeext conftest.$ac_ext
14623      CPPFLAGS="$am_save_CPPFLAGS"
14624      LIBS="$am_save_LIBS"
14625    fi
14626
14627fi
14628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
14629$as_echo "$am_cv_func_iconv" >&6; }
14630  if test "$am_cv_func_iconv" = yes; then
14631
14632$as_echo "#define HAVE_ICONV 1" >>confdefs.h
14633
14634  fi
14635  if test "$am_cv_lib_iconv" = yes; then
14636
14637  for element in $INCICONV; do
14638    haveit=
14639    for x in $CPPFLAGS; do
14640
14641  acl_save_prefix="$prefix"
14642  prefix="$acl_final_prefix"
14643  acl_save_exec_prefix="$exec_prefix"
14644  exec_prefix="$acl_final_exec_prefix"
14645  eval x=\"$x\"
14646  exec_prefix="$acl_save_exec_prefix"
14647  prefix="$acl_save_prefix"
14648
14649      if test "X$x" = "X$element"; then
14650        haveit=yes
14651        break
14652      fi
14653    done
14654    if test -z "$haveit"; then
14655      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14656    fi
14657  done
14658
14659    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
14660$as_echo_n "checking how to link with libiconv... " >&6; }
14661    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
14662$as_echo "$LIBICONV" >&6; }
14663  else
14664    LIBICONV=
14665    LTLIBICONV=
14666  fi
14667
14668
14669
14670  if test "$am_cv_func_iconv" = yes; then
14671    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
14672$as_echo_n "checking for iconv declaration... " >&6; }
14673    if ${am_cv_proto_iconv+:} false; then :
14674  $as_echo_n "(cached) " >&6
14675else
14676
14677      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14678/* end confdefs.h.  */
14679
14680#include <stdlib.h>
14681#include <iconv.h>
14682extern
14683#ifdef __cplusplus
14684"C"
14685#endif
14686#if defined(__STDC__) || defined(__cplusplus)
14687size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
14688#else
14689size_t iconv();
14690#endif
14691
14692int
14693main ()
14694{
14695
14696  ;
14697  return 0;
14698}
14699_ACEOF
14700if ac_fn_c_try_compile "$LINENO"; then :
14701  am_cv_proto_iconv_arg1=""
14702else
14703  am_cv_proto_iconv_arg1="const"
14704fi
14705rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14706      am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
14707fi
14708
14709    am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
14710    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
14711         }$am_cv_proto_iconv" >&5
14712$as_echo "${ac_t:-
14713         }$am_cv_proto_iconv" >&6; }
14714
14715cat >>confdefs.h <<_ACEOF
14716#define ICONV_CONST $am_cv_proto_iconv_arg1
14717_ACEOF
14718
14719  fi
14720
14721
14722all_targets=false
14723BUILD_SRCONV=
14724BUILD_DLLTOOL=
14725DLLTOOL_DEFS=
14726DLLTOOL_DEFAULT=
14727BUILD_WINDRES=
14728BUILD_WINDMC=
14729BUILD_DLLWRAP=
14730BUILD_MISC=
14731BUILD_INSTALL_MISC=
14732OBJDUMP_DEFS=
14733OBJDUMP_PRIVATE_VECTORS=
14734OBJDUMP_PRIVATE_OFILES=
14735od_vectors=
14736
14737for targ in $target $canon_targets
14738do
14739    if test "x$targ" = "xall"; then
14740        all_targets=true
14741	BUILD_SRCONV='$(SRCONV_PROG)'
14742	BUILD_MISC="${BUILD_MISC} "'bin2c$(EXEEXT_FOR_BUILD)'
14743	BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14744	BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14745	BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14746	if test -z "$DLLTOOL_DEFAULT"; then
14747	  DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
14748	fi
14749	DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
14750	BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
14751	od_vectors="$od_vectors objdump_private_desc_xcoff"
14752    else
14753	case $targ in
14754	*-*-hms*) BUILD_SRCONV='$(SRCONV_PROG)' ;;
14755	esac
14756
14757	case $targ in
14758	arm-wince-pe* | arm-*-wince | arm*-*-cegcc* | arm*-*-mingw32ce*)
14759  	  BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14760	  if test -z "$DLLTOOL_DEFAULT"; then
14761	    DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM_WINCE"
14762	  fi
14763	  DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_WINCE -DDLLTOOL_ARM"
14764	  BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14765	  BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14766	  ;;
14767	arm-*-pe*)
14768  	  BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14769	  if test -z "$DLLTOOL_DEFAULT"; then
14770	    DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM"
14771	  fi
14772	  DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
14773	  BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14774	  BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14775	  ;;
14776	x86_64-*-mingw* | x86_64-*-cygwin*)
14777  	  BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14778	  if test -z "$DLLTOOL_DEFAULT"; then
14779	    DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MX86_64"
14780	  fi
14781	  DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MX86_64"
14782	  BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14783	  BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14784	  BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
14785	  ;;
14786	i[3-7]86-*-pe* | i[3-7]86-*-cygwin* | i[3-7]86-*-mingw32** | i[3-7]86-*-netbsdpe*)
14787  	  BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14788	  if test -z "$DLLTOOL_DEFAULT"; then
14789	    DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
14790	  fi
14791	  DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
14792	  BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14793	  BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14794	  BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
14795	  ;;
14796	i[3-7]86-*-interix)
14797	  BUILD_DLLTOOL='$(DLLTOOL_PROG)'
14798	  if test -z "$DLLTOOL_DEFAULT"; then
14799	    DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
14800	  fi
14801	  DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
14802	  ;;
14803	powerpc*-aix5.[01])
14804	  ;;
14805	powerpc*-aix[5-9].*)
14806	  OBJDUMP_DEFS="-DAIX_WEAK_SUPPORT"
14807	  ;;
14808	powerpc*-*-pe* | powerpc*-*-cygwin*)
14809  	  BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14810	  if test -z "$DLLTOOL_DEFAULT"; then
14811	    DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_PPC"
14812	  fi
14813	  DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_PPC"
14814	  BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14815	  BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14816	  ;;
14817	powerpc*-*-linux* | powerpc*-*-elf* | powerpc*-*-eabi*)
14818	  case "$BUILD_INSTALL_MISC" in
14819	    *embedspu*) ;;
14820	    *) BUILD_INSTALL_MISC="${BUILD_INSTALL_MISC} embedspu"
14821	  esac
14822	  ;;
14823	sh*-*-pe)
14824  	  BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14825	  if test -z "$DLLTOOL_DEFAULT"; then
14826	    DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_SH"
14827	  fi
14828	  DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_SH"
14829	  BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14830	  BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14831	  ;;
14832	spu-*-*)
14833	  BUILD_MISC="${BUILD_MISC} "'bin2c$(EXEEXT_FOR_BUILD)'
14834	  ;;
14835	mips*-*-pe)
14836  	  BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14837	  if test -z "$DLLTOOL_DEFAULT"; then
14838	    DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MIPS"
14839	  fi
14840	  DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MIPS"
14841	  BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14842	  BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14843	  ;;
14844	mcore-*-pe)
14845  	  BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14846	  if test -z "$DLLTOOL_DEFAULT"; then
14847	    DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MCORE"
14848	  fi
14849	  DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE"
14850	  BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14851	  BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14852	  ;;
14853	mcore-*-elf)
14854  	  BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14855	  if test -z "$DLLTOOL_DEFAULT"; then
14856	    DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MCORE_ELF"
14857	  fi
14858	  DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE_ELF"
14859	  ;;
14860  	mep-*)
14861	  OBJDUMP_DEFS="-DSKIP_ZEROES=256 -DSKIP_ZEROES_AT_END=0"
14862	  ;;
14863	esac
14864
14865	# Add objdump private vectors.
14866	case $targ in
14867	avr-*-*)
14868	  od_vectors="$od_vectors objdump_private_desc_elf32_avr"
14869	  ;;
14870	powerpc*-*-aix* | rs6000-*-aix*)
14871	  od_vectors="$od_vectors objdump_private_desc_xcoff"
14872	  ;;
14873        *-*-darwin*)
14874	  od_vectors="$od_vectors objdump_private_desc_mach_o"
14875	  ;;
14876	esac
14877    fi
14878done
14879
14880# Uniq objdump private vector, build objdump target ofiles.
14881od_files=
14882f=""
14883for i in $od_vectors ; do
14884    case " $f " in
14885    *" $i "*) ;;
14886    *)
14887	f="$f $i"
14888	OBJDUMP_PRIVATE_VECTORS="$OBJDUMP_PRIVATE_VECTORS &$i,"
14889	case $i in
14890	objdump_private_desc_elf32_avr)
14891	    od_files="$od_files od-elf32_avr" ;;
14892	objdump_private_desc_xcoff)
14893	    od_files="$od_files od-xcoff" ;;
14894	objdump_private_desc_mach_o)
14895	    od_files="$od_files od-macho" ;;
14896	*) as_fn_error $? "*** unknown private vector $i" "$LINENO" 5 ;;
14897	esac
14898	;;
14899    esac
14900done
14901
14902# Uniq objdump target ofiles
14903f=""
14904for i in $od_files ; do
14905    case " $f " in
14906    *" $i "*) ;;
14907    *)
14908	f="$f $i"
14909	OBJDUMP_PRIVATE_OFILES="$OBJDUMP_PRIVATE_OFILES $i.$objext"
14910	;;
14911    esac
14912done
14913
14914DLLTOOL_DEFS="$DLLTOOL_DEFS $DLLTOOL_DEFAULT"
14915
14916if test "${with_windres+set}" = set; then
14917	  BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14918fi
14919
14920if test "${with_windmc+set}" = set; then
14921	  BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14922fi
14923
14924OBJDUMP_DEFS="${OBJDUMP_DEFS} -DOBJDUMP_PRIVATE_VECTORS=\"${OBJDUMP_PRIVATE_VECTORS}\""
14925
14926
14927
14928
14929
14930
14931
14932
14933
14934
14935
14936
14937
14938cat >>confdefs.h <<_ACEOF
14939#define TARGET "${target}"
14940_ACEOF
14941
14942
14943targ=$target
14944. $srcdir/../bfd/config.bfd
14945if test "x$targ_underscore" = "xyes"; then
14946    UNDERSCORE=1
14947else
14948    UNDERSCORE=0
14949fi
14950
14951cat >>confdefs.h <<_ACEOF
14952#define TARGET_PREPENDS_UNDERSCORE $UNDERSCORE
14953_ACEOF
14954
14955
14956# Emulation
14957targ=$target
14958. ${srcdir}/configure.tgt
14959EMULATION=$targ_emul
14960EMULATION_VECTOR=$targ_emul_vector
14961
14962
14963
14964
14965# Required for html and install-html
14966
14967
14968
14969
14970
14971ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in"
14972
14973cat >confcache <<\_ACEOF
14974# This file is a shell script that caches the results of configure
14975# tests run on this system so they can be shared between configure
14976# scripts and configure runs, see configure's option --config-cache.
14977# It is not useful on other systems.  If it contains results you don't
14978# want to keep, you may remove or edit it.
14979#
14980# config.status only pays attention to the cache file if you give it
14981# the --recheck option to rerun configure.
14982#
14983# `ac_cv_env_foo' variables (set or unset) will be overridden when
14984# loading this file, other *unset* `ac_cv_foo' will be assigned the
14985# following values.
14986
14987_ACEOF
14988
14989# The following way of writing the cache mishandles newlines in values,
14990# but we know of no workaround that is simple, portable, and efficient.
14991# So, we kill variables containing newlines.
14992# Ultrix sh set writes to stderr and can't be redirected directly,
14993# and sets the high bit in the cache file unless we assign to the vars.
14994(
14995  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14996    eval ac_val=\$$ac_var
14997    case $ac_val in #(
14998    *${as_nl}*)
14999      case $ac_var in #(
15000      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15001$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15002      esac
15003      case $ac_var in #(
15004      _ | IFS | as_nl) ;; #(
15005      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15006      *) { eval $ac_var=; unset $ac_var;} ;;
15007      esac ;;
15008    esac
15009  done
15010
15011  (set) 2>&1 |
15012    case $as_nl`(ac_space=' '; set) 2>&1` in #(
15013    *${as_nl}ac_space=\ *)
15014      # `set' does not quote correctly, so add quotes: double-quote
15015      # substitution turns \\\\ into \\, and sed turns \\ into \.
15016      sed -n \
15017	"s/'/'\\\\''/g;
15018	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15019      ;; #(
15020    *)
15021      # `set' quotes correctly as required by POSIX, so do not add quotes.
15022      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15023      ;;
15024    esac |
15025    sort
15026) |
15027  sed '
15028     /^ac_cv_env_/b end
15029     t clear
15030     :clear
15031     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15032     t end
15033     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15034     :end' >>confcache
15035if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15036  if test -w "$cache_file"; then
15037    if test "x$cache_file" != "x/dev/null"; then
15038      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15039$as_echo "$as_me: updating cache $cache_file" >&6;}
15040      if test ! -f "$cache_file" || test -h "$cache_file"; then
15041	cat confcache >"$cache_file"
15042      else
15043        case $cache_file in #(
15044        */* | ?:*)
15045	  mv -f confcache "$cache_file"$$ &&
15046	  mv -f "$cache_file"$$ "$cache_file" ;; #(
15047        *)
15048	  mv -f confcache "$cache_file" ;;
15049	esac
15050      fi
15051    fi
15052  else
15053    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15054$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15055  fi
15056fi
15057rm -f confcache
15058
15059test "x$prefix" = xNONE && prefix=$ac_default_prefix
15060# Let make expand exec_prefix.
15061test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15062
15063DEFS=-DHAVE_CONFIG_H
15064
15065ac_libobjs=
15066ac_ltlibobjs=
15067U=
15068for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15069  # 1. Remove the extension, and $U if already installed.
15070  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15071  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15072  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15073  #    will be set to the directory where LIBOBJS objects are built.
15074  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15075  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15076done
15077LIBOBJS=$ac_libobjs
15078
15079LTLIBOBJS=$ac_ltlibobjs
15080
15081
15082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15083$as_echo_n "checking that generated files are newer than configure... " >&6; }
15084   if test -n "$am_sleep_pid"; then
15085     # Hide warnings about reused PIDs.
15086     wait $am_sleep_pid 2>/dev/null
15087   fi
15088   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15089$as_echo "done" >&6; }
15090if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15091  as_fn_error $? "conditional \"AMDEP\" was never defined.
15092Usually this means the macro was only invoked conditionally." "$LINENO" 5
15093fi
15094if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15095  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15096Usually this means the macro was only invoked conditionally." "$LINENO" 5
15097fi
15098 if test -n "$EXEEXT"; then
15099  am__EXEEXT_TRUE=
15100  am__EXEEXT_FALSE='#'
15101else
15102  am__EXEEXT_TRUE='#'
15103  am__EXEEXT_FALSE=
15104fi
15105
15106if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15107  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
15108Usually this means the macro was only invoked conditionally." "$LINENO" 5
15109fi
15110if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
15111  as_fn_error $? "conditional \"GENINSRC_NEVER\" was never defined.
15112Usually this means the macro was only invoked conditionally." "$LINENO" 5
15113fi
15114
15115: "${CONFIG_STATUS=./config.status}"
15116ac_write_fail=0
15117ac_clean_files_save=$ac_clean_files
15118ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15119{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15120$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15121as_write_fail=0
15122cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15123#! $SHELL
15124# Generated by $as_me.
15125# Run this file to recreate the current configuration.
15126# Compiler output produced by configure, useful for debugging
15127# configure, is in config.log if it exists.
15128
15129debug=false
15130ac_cs_recheck=false
15131ac_cs_silent=false
15132
15133SHELL=\${CONFIG_SHELL-$SHELL}
15134export SHELL
15135_ASEOF
15136cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15137## -------------------- ##
15138## M4sh Initialization. ##
15139## -------------------- ##
15140
15141# Be more Bourne compatible
15142DUALCASE=1; export DUALCASE # for MKS sh
15143if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15144  emulate sh
15145  NULLCMD=:
15146  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15147  # is contrary to our usage.  Disable this feature.
15148  alias -g '${1+"$@"}'='"$@"'
15149  setopt NO_GLOB_SUBST
15150else
15151  case `(set -o) 2>/dev/null` in #(
15152  *posix*) :
15153    set -o posix ;; #(
15154  *) :
15155     ;;
15156esac
15157fi
15158
15159
15160as_nl='
15161'
15162export as_nl
15163# Printing a long string crashes Solaris 7 /usr/bin/printf.
15164as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15165as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15166as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15167# Prefer a ksh shell builtin over an external printf program on Solaris,
15168# but without wasting forks for bash or zsh.
15169if test -z "$BASH_VERSION$ZSH_VERSION" \
15170    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15171  as_echo='print -r --'
15172  as_echo_n='print -rn --'
15173elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15174  as_echo='printf %s\n'
15175  as_echo_n='printf %s'
15176else
15177  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15178    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15179    as_echo_n='/usr/ucb/echo -n'
15180  else
15181    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15182    as_echo_n_body='eval
15183      arg=$1;
15184      case $arg in #(
15185      *"$as_nl"*)
15186	expr "X$arg" : "X\\(.*\\)$as_nl";
15187	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15188      esac;
15189      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15190    '
15191    export as_echo_n_body
15192    as_echo_n='sh -c $as_echo_n_body as_echo'
15193  fi
15194  export as_echo_body
15195  as_echo='sh -c $as_echo_body as_echo'
15196fi
15197
15198# The user is always right.
15199if test "${PATH_SEPARATOR+set}" != set; then
15200  PATH_SEPARATOR=:
15201  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15202    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15203      PATH_SEPARATOR=';'
15204  }
15205fi
15206
15207
15208# IFS
15209# We need space, tab and new line, in precisely that order.  Quoting is
15210# there to prevent editors from complaining about space-tab.
15211# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15212# splitting by setting IFS to empty value.)
15213IFS=" ""	$as_nl"
15214
15215# Find who we are.  Look in the path if we contain no directory separator.
15216as_myself=
15217case $0 in #((
15218  *[\\/]* ) as_myself=$0 ;;
15219  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15220for as_dir in $PATH
15221do
15222  IFS=$as_save_IFS
15223  test -z "$as_dir" && as_dir=.
15224    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15225  done
15226IFS=$as_save_IFS
15227
15228     ;;
15229esac
15230# We did not find ourselves, most probably we were run as `sh COMMAND'
15231# in which case we are not to be found in the path.
15232if test "x$as_myself" = x; then
15233  as_myself=$0
15234fi
15235if test ! -f "$as_myself"; then
15236  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15237  exit 1
15238fi
15239
15240# Unset variables that we do not need and which cause bugs (e.g. in
15241# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15242# suppresses any "Segmentation fault" message there.  '((' could
15243# trigger a bug in pdksh 5.2.14.
15244for as_var in BASH_ENV ENV MAIL MAILPATH
15245do eval test x\${$as_var+set} = xset \
15246  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15247done
15248PS1='$ '
15249PS2='> '
15250PS4='+ '
15251
15252# NLS nuisances.
15253LC_ALL=C
15254export LC_ALL
15255LANGUAGE=C
15256export LANGUAGE
15257
15258# CDPATH.
15259(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15260
15261
15262# as_fn_error STATUS ERROR [LINENO LOG_FD]
15263# ----------------------------------------
15264# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15265# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15266# script with STATUS, using 1 if that was 0.
15267as_fn_error ()
15268{
15269  as_status=$1; test $as_status -eq 0 && as_status=1
15270  if test "$4"; then
15271    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15272    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15273  fi
15274  $as_echo "$as_me: error: $2" >&2
15275  as_fn_exit $as_status
15276} # as_fn_error
15277
15278
15279# as_fn_set_status STATUS
15280# -----------------------
15281# Set $? to STATUS, without forking.
15282as_fn_set_status ()
15283{
15284  return $1
15285} # as_fn_set_status
15286
15287# as_fn_exit STATUS
15288# -----------------
15289# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15290as_fn_exit ()
15291{
15292  set +e
15293  as_fn_set_status $1
15294  exit $1
15295} # as_fn_exit
15296
15297# as_fn_unset VAR
15298# ---------------
15299# Portably unset VAR.
15300as_fn_unset ()
15301{
15302  { eval $1=; unset $1;}
15303}
15304as_unset=as_fn_unset
15305# as_fn_append VAR VALUE
15306# ----------------------
15307# Append the text in VALUE to the end of the definition contained in VAR. Take
15308# advantage of any shell optimizations that allow amortized linear growth over
15309# repeated appends, instead of the typical quadratic growth present in naive
15310# implementations.
15311if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15312  eval 'as_fn_append ()
15313  {
15314    eval $1+=\$2
15315  }'
15316else
15317  as_fn_append ()
15318  {
15319    eval $1=\$$1\$2
15320  }
15321fi # as_fn_append
15322
15323# as_fn_arith ARG...
15324# ------------------
15325# Perform arithmetic evaluation on the ARGs, and store the result in the
15326# global $as_val. Take advantage of shells that can avoid forks. The arguments
15327# must be portable across $(()) and expr.
15328if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15329  eval 'as_fn_arith ()
15330  {
15331    as_val=$(( $* ))
15332  }'
15333else
15334  as_fn_arith ()
15335  {
15336    as_val=`expr "$@" || test $? -eq 1`
15337  }
15338fi # as_fn_arith
15339
15340
15341if expr a : '\(a\)' >/dev/null 2>&1 &&
15342   test "X`expr 00001 : '.*\(...\)'`" = X001; then
15343  as_expr=expr
15344else
15345  as_expr=false
15346fi
15347
15348if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15349  as_basename=basename
15350else
15351  as_basename=false
15352fi
15353
15354if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15355  as_dirname=dirname
15356else
15357  as_dirname=false
15358fi
15359
15360as_me=`$as_basename -- "$0" ||
15361$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15362	 X"$0" : 'X\(//\)$' \| \
15363	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15364$as_echo X/"$0" |
15365    sed '/^.*\/\([^/][^/]*\)\/*$/{
15366	    s//\1/
15367	    q
15368	  }
15369	  /^X\/\(\/\/\)$/{
15370	    s//\1/
15371	    q
15372	  }
15373	  /^X\/\(\/\).*/{
15374	    s//\1/
15375	    q
15376	  }
15377	  s/.*/./; q'`
15378
15379# Avoid depending upon Character Ranges.
15380as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15381as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15382as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15383as_cr_digits='0123456789'
15384as_cr_alnum=$as_cr_Letters$as_cr_digits
15385
15386ECHO_C= ECHO_N= ECHO_T=
15387case `echo -n x` in #(((((
15388-n*)
15389  case `echo 'xy\c'` in
15390  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
15391  xy)  ECHO_C='\c';;
15392  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15393       ECHO_T='	';;
15394  esac;;
15395*)
15396  ECHO_N='-n';;
15397esac
15398
15399rm -f conf$$ conf$$.exe conf$$.file
15400if test -d conf$$.dir; then
15401  rm -f conf$$.dir/conf$$.file
15402else
15403  rm -f conf$$.dir
15404  mkdir conf$$.dir 2>/dev/null
15405fi
15406if (echo >conf$$.file) 2>/dev/null; then
15407  if ln -s conf$$.file conf$$ 2>/dev/null; then
15408    as_ln_s='ln -s'
15409    # ... but there are two gotchas:
15410    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15411    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15412    # In both cases, we have to default to `cp -pR'.
15413    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15414      as_ln_s='cp -pR'
15415  elif ln conf$$.file conf$$ 2>/dev/null; then
15416    as_ln_s=ln
15417  else
15418    as_ln_s='cp -pR'
15419  fi
15420else
15421  as_ln_s='cp -pR'
15422fi
15423rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15424rmdir conf$$.dir 2>/dev/null
15425
15426
15427# as_fn_mkdir_p
15428# -------------
15429# Create "$as_dir" as a directory, including parents if necessary.
15430as_fn_mkdir_p ()
15431{
15432
15433  case $as_dir in #(
15434  -*) as_dir=./$as_dir;;
15435  esac
15436  test -d "$as_dir" || eval $as_mkdir_p || {
15437    as_dirs=
15438    while :; do
15439      case $as_dir in #(
15440      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15441      *) as_qdir=$as_dir;;
15442      esac
15443      as_dirs="'$as_qdir' $as_dirs"
15444      as_dir=`$as_dirname -- "$as_dir" ||
15445$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15446	 X"$as_dir" : 'X\(//\)[^/]' \| \
15447	 X"$as_dir" : 'X\(//\)$' \| \
15448	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15449$as_echo X"$as_dir" |
15450    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15451	    s//\1/
15452	    q
15453	  }
15454	  /^X\(\/\/\)[^/].*/{
15455	    s//\1/
15456	    q
15457	  }
15458	  /^X\(\/\/\)$/{
15459	    s//\1/
15460	    q
15461	  }
15462	  /^X\(\/\).*/{
15463	    s//\1/
15464	    q
15465	  }
15466	  s/.*/./; q'`
15467      test -d "$as_dir" && break
15468    done
15469    test -z "$as_dirs" || eval "mkdir $as_dirs"
15470  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15471
15472
15473} # as_fn_mkdir_p
15474if mkdir -p . 2>/dev/null; then
15475  as_mkdir_p='mkdir -p "$as_dir"'
15476else
15477  test -d ./-p && rmdir ./-p
15478  as_mkdir_p=false
15479fi
15480
15481
15482# as_fn_executable_p FILE
15483# -----------------------
15484# Test if FILE is an executable regular file.
15485as_fn_executable_p ()
15486{
15487  test -f "$1" && test -x "$1"
15488} # as_fn_executable_p
15489as_test_x='test -x'
15490as_executable_p=as_fn_executable_p
15491
15492# Sed expression to map a string onto a valid CPP name.
15493as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15494
15495# Sed expression to map a string onto a valid variable name.
15496as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15497
15498
15499exec 6>&1
15500## ----------------------------------- ##
15501## Main body of $CONFIG_STATUS script. ##
15502## ----------------------------------- ##
15503_ASEOF
15504test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15505
15506cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15507# Save the log message, to keep $0 and so on meaningful, and to
15508# report actual input values of CONFIG_FILES etc. instead of their
15509# values after options handling.
15510ac_log="
15511This file was extended by binutils $as_me 2.31.1, which was
15512generated by GNU Autoconf 2.69.  Invocation command line was
15513
15514  CONFIG_FILES    = $CONFIG_FILES
15515  CONFIG_HEADERS  = $CONFIG_HEADERS
15516  CONFIG_LINKS    = $CONFIG_LINKS
15517  CONFIG_COMMANDS = $CONFIG_COMMANDS
15518  $ $0 $@
15519
15520on `(hostname || uname -n) 2>/dev/null | sed 1q`
15521"
15522
15523_ACEOF
15524
15525case $ac_config_files in *"
15526"*) set x $ac_config_files; shift; ac_config_files=$*;;
15527esac
15528
15529case $ac_config_headers in *"
15530"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15531esac
15532
15533
15534cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15535# Files that config.status was made for.
15536config_files="$ac_config_files"
15537config_headers="$ac_config_headers"
15538config_commands="$ac_config_commands"
15539
15540_ACEOF
15541
15542cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15543ac_cs_usage="\
15544\`$as_me' instantiates files and other configuration actions
15545from templates according to the current configuration.  Unless the files
15546and actions are specified as TAGs, all are instantiated by default.
15547
15548Usage: $0 [OPTION]... [TAG]...
15549
15550  -h, --help       print this help, then exit
15551  -V, --version    print version number and configuration settings, then exit
15552      --config     print configuration, then exit
15553  -q, --quiet, --silent
15554                   do not print progress messages
15555  -d, --debug      don't remove temporary files
15556      --recheck    update $as_me by reconfiguring in the same conditions
15557      --file=FILE[:TEMPLATE]
15558                   instantiate the configuration file FILE
15559      --header=FILE[:TEMPLATE]
15560                   instantiate the configuration header FILE
15561
15562Configuration files:
15563$config_files
15564
15565Configuration headers:
15566$config_headers
15567
15568Configuration commands:
15569$config_commands
15570
15571Report bugs to the package provider."
15572
15573_ACEOF
15574cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15575ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15576ac_cs_version="\\
15577binutils config.status 2.31.1
15578configured by $0, generated by GNU Autoconf 2.69,
15579  with options \\"\$ac_cs_config\\"
15580
15581Copyright (C) 2012 Free Software Foundation, Inc.
15582This config.status script is free software; the Free Software Foundation
15583gives unlimited permission to copy, distribute and modify it."
15584
15585ac_pwd='$ac_pwd'
15586srcdir='$srcdir'
15587INSTALL='$INSTALL'
15588MKDIR_P='$MKDIR_P'
15589AWK='$AWK'
15590test -n "\$AWK" || AWK=awk
15591_ACEOF
15592
15593cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15594# The default lists apply if the user does not specify any file.
15595ac_need_defaults=:
15596while test $# != 0
15597do
15598  case $1 in
15599  --*=?*)
15600    ac_option=`expr "X$1" : 'X\([^=]*\)='`
15601    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15602    ac_shift=:
15603    ;;
15604  --*=)
15605    ac_option=`expr "X$1" : 'X\([^=]*\)='`
15606    ac_optarg=
15607    ac_shift=:
15608    ;;
15609  *)
15610    ac_option=$1
15611    ac_optarg=$2
15612    ac_shift=shift
15613    ;;
15614  esac
15615
15616  case $ac_option in
15617  # Handling of the options.
15618  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15619    ac_cs_recheck=: ;;
15620  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15621    $as_echo "$ac_cs_version"; exit ;;
15622  --config | --confi | --conf | --con | --co | --c )
15623    $as_echo "$ac_cs_config"; exit ;;
15624  --debug | --debu | --deb | --de | --d | -d )
15625    debug=: ;;
15626  --file | --fil | --fi | --f )
15627    $ac_shift
15628    case $ac_optarg in
15629    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15630    '') as_fn_error $? "missing file argument" ;;
15631    esac
15632    as_fn_append CONFIG_FILES " '$ac_optarg'"
15633    ac_need_defaults=false;;
15634  --header | --heade | --head | --hea )
15635    $ac_shift
15636    case $ac_optarg in
15637    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15638    esac
15639    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15640    ac_need_defaults=false;;
15641  --he | --h)
15642    # Conflict between --help and --header
15643    as_fn_error $? "ambiguous option: \`$1'
15644Try \`$0 --help' for more information.";;
15645  --help | --hel | -h )
15646    $as_echo "$ac_cs_usage"; exit ;;
15647  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15648  | -silent | --silent | --silen | --sile | --sil | --si | --s)
15649    ac_cs_silent=: ;;
15650
15651  # This is an error.
15652  -*) as_fn_error $? "unrecognized option: \`$1'
15653Try \`$0 --help' for more information." ;;
15654
15655  *) as_fn_append ac_config_targets " $1"
15656     ac_need_defaults=false ;;
15657
15658  esac
15659  shift
15660done
15661
15662ac_configure_extra_args=
15663
15664if $ac_cs_silent; then
15665  exec 6>/dev/null
15666  ac_configure_extra_args="$ac_configure_extra_args --silent"
15667fi
15668
15669_ACEOF
15670cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15671if \$ac_cs_recheck; then
15672  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15673  shift
15674  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15675  CONFIG_SHELL='$SHELL'
15676  export CONFIG_SHELL
15677  exec "\$@"
15678fi
15679
15680_ACEOF
15681cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15682exec 5>>config.log
15683{
15684  echo
15685  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15686## Running $as_me. ##
15687_ASBOX
15688  $as_echo "$ac_log"
15689} >&5
15690
15691_ACEOF
15692cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15693#
15694# INIT-COMMANDS
15695#
15696AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15697
15698
15699# The HP-UX ksh and POSIX shell print the target directory to stdout
15700# if CDPATH is set.
15701(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15702
15703sed_quote_subst='$sed_quote_subst'
15704double_quote_subst='$double_quote_subst'
15705delay_variable_subst='$delay_variable_subst'
15706macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15707macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15708enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15709enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15710pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15711enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15712SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15713ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15714host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15715host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15716host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15717build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15718build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15719build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15720SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15721Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15722GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15723EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15724FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15725LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15726NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15727LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15728max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15729ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15730exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15731lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15732lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15733lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15734reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15735reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15736OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15737deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15738file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15739AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15740AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15741STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15742RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15743old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15744old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15745old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15746lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15747CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15748CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15749compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15750GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15751lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15752lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15753lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15754lt_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"`'
15755objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15756MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15757lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15758lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15759lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15760lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15761lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15762need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15763DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15764NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15765LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15766OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15767OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15768libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15769shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15770extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15771archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15772enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15773export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15774whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15775compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15776old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15777old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15778archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15779archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15780module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15781module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15782with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15783allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15784no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15785hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15786hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15787hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15788hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15789hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15790hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15791hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15792hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15793inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15794link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15795fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15796always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15797export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15798exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15799include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15800prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15801file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15802variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15803need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15804need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15805version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15806runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15807shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15808shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15809libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15810library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15811soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15812install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15813postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15814postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15815finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15816finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15817hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15818sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15819sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15820hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15821enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15822enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15823enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15824old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15825striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15826
15827LTCC='$LTCC'
15828LTCFLAGS='$LTCFLAGS'
15829compiler='$compiler_DEFAULT'
15830
15831# A function that is used when there is no print builtin or printf.
15832func_fallback_echo ()
15833{
15834  eval 'cat <<_LTECHO_EOF
15835\$1
15836_LTECHO_EOF'
15837}
15838
15839# Quote evaled strings.
15840for var in SHELL \
15841ECHO \
15842SED \
15843GREP \
15844EGREP \
15845FGREP \
15846LD \
15847NM \
15848LN_S \
15849lt_SP2NL \
15850lt_NL2SP \
15851reload_flag \
15852OBJDUMP \
15853deplibs_check_method \
15854file_magic_cmd \
15855AR \
15856AR_FLAGS \
15857STRIP \
15858RANLIB \
15859CC \
15860CFLAGS \
15861compiler \
15862lt_cv_sys_global_symbol_pipe \
15863lt_cv_sys_global_symbol_to_cdecl \
15864lt_cv_sys_global_symbol_to_c_name_address \
15865lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15866lt_prog_compiler_no_builtin_flag \
15867lt_prog_compiler_wl \
15868lt_prog_compiler_pic \
15869lt_prog_compiler_static \
15870lt_cv_prog_compiler_c_o \
15871need_locks \
15872DSYMUTIL \
15873NMEDIT \
15874LIPO \
15875OTOOL \
15876OTOOL64 \
15877shrext_cmds \
15878export_dynamic_flag_spec \
15879whole_archive_flag_spec \
15880compiler_needs_object \
15881with_gnu_ld \
15882allow_undefined_flag \
15883no_undefined_flag \
15884hardcode_libdir_flag_spec \
15885hardcode_libdir_flag_spec_ld \
15886hardcode_libdir_separator \
15887fix_srcfile_path \
15888exclude_expsyms \
15889include_expsyms \
15890file_list_spec \
15891variables_saved_for_relink \
15892libname_spec \
15893library_names_spec \
15894soname_spec \
15895install_override_mode \
15896finish_eval \
15897old_striplib \
15898striplib; do
15899    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15900    *[\\\\\\\`\\"\\\$]*)
15901      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15902      ;;
15903    *)
15904      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15905      ;;
15906    esac
15907done
15908
15909# Double-quote double-evaled strings.
15910for var in reload_cmds \
15911old_postinstall_cmds \
15912old_postuninstall_cmds \
15913old_archive_cmds \
15914extract_expsyms_cmds \
15915old_archive_from_new_cmds \
15916old_archive_from_expsyms_cmds \
15917archive_cmds \
15918archive_expsym_cmds \
15919module_cmds \
15920module_expsym_cmds \
15921export_symbols_cmds \
15922prelink_cmds \
15923postinstall_cmds \
15924postuninstall_cmds \
15925finish_cmds \
15926sys_lib_search_path_spec \
15927sys_lib_dlsearch_path_spec; do
15928    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15929    *[\\\\\\\`\\"\\\$]*)
15930      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15931      ;;
15932    *)
15933      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15934      ;;
15935    esac
15936done
15937
15938ac_aux_dir='$ac_aux_dir'
15939xsi_shell='$xsi_shell'
15940lt_shell_append='$lt_shell_append'
15941
15942# See if we are running on zsh, and set the options which allow our
15943# commands through without removal of \ escapes INIT.
15944if test -n "\${ZSH_VERSION+set}" ; then
15945   setopt NO_GLOB_SUBST
15946fi
15947
15948
15949    PACKAGE='$PACKAGE'
15950    VERSION='$VERSION'
15951    TIMESTAMP='$TIMESTAMP'
15952    RM='$RM'
15953    ofile='$ofile'
15954
15955
15956
15957# Capture the value of obsolete ALL_LINGUAS because we need it to compute
15958    # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
15959    # from automake.
15960    eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
15961    # Capture the value of LINGUAS because we need it to compute CATALOGS.
15962    LINGUAS="${LINGUAS-%UNSET%}"
15963
15964
15965_ACEOF
15966
15967cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15968
15969# Handling of arguments.
15970for ac_config_target in $ac_config_targets
15971do
15972  case $ac_config_target in
15973    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15974    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15975    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
15976    "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15977    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15978    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15979    "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
15980
15981  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15982  esac
15983done
15984
15985
15986# If the user did not use the arguments to specify the items to instantiate,
15987# then the envvar interface is used.  Set only those that are not.
15988# We use the long form for the default assignment because of an extremely
15989# bizarre bug on SunOS 4.1.3.
15990if $ac_need_defaults; then
15991  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15992  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15993  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15994fi
15995
15996# Have a temporary directory for convenience.  Make it in the build tree
15997# simply because there is no reason against having it here, and in addition,
15998# creating and moving files from /tmp can sometimes cause problems.
15999# Hook for its removal unless debugging.
16000# Note that there is a small window in which the directory will not be cleaned:
16001# after its creation but before its name has been assigned to `$tmp'.
16002$debug ||
16003{
16004  tmp= ac_tmp=
16005  trap 'exit_status=$?
16006  : "${ac_tmp:=$tmp}"
16007  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16008' 0
16009  trap 'as_fn_exit 1' 1 2 13 15
16010}
16011# Create a (secure) tmp directory for tmp files.
16012
16013{
16014  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16015  test -d "$tmp"
16016}  ||
16017{
16018  tmp=./conf$$-$RANDOM
16019  (umask 077 && mkdir "$tmp")
16020} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16021ac_tmp=$tmp
16022
16023# Set up the scripts for CONFIG_FILES section.
16024# No need to generate them if there are no CONFIG_FILES.
16025# This happens for instance with `./config.status config.h'.
16026if test -n "$CONFIG_FILES"; then
16027
16028
16029ac_cr=`echo X | tr X '\015'`
16030# On cygwin, bash can eat \r inside `` if the user requested igncr.
16031# But we know of no other shell where ac_cr would be empty at this
16032# point, so we can use a bashism as a fallback.
16033if test "x$ac_cr" = x; then
16034  eval ac_cr=\$\'\\r\'
16035fi
16036ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16037if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16038  ac_cs_awk_cr='\\r'
16039else
16040  ac_cs_awk_cr=$ac_cr
16041fi
16042
16043echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16044_ACEOF
16045
16046
16047{
16048  echo "cat >conf$$subs.awk <<_ACEOF" &&
16049  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16050  echo "_ACEOF"
16051} >conf$$subs.sh ||
16052  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16053ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16054ac_delim='%!_!# '
16055for ac_last_try in false false false false false :; do
16056  . ./conf$$subs.sh ||
16057    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16058
16059  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16060  if test $ac_delim_n = $ac_delim_num; then
16061    break
16062  elif $ac_last_try; then
16063    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16064  else
16065    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16066  fi
16067done
16068rm -f conf$$subs.sh
16069
16070cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16071cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16072_ACEOF
16073sed -n '
16074h
16075s/^/S["/; s/!.*/"]=/
16076p
16077g
16078s/^[^!]*!//
16079:repl
16080t repl
16081s/'"$ac_delim"'$//
16082t delim
16083:nl
16084h
16085s/\(.\{148\}\)..*/\1/
16086t more1
16087s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16088p
16089n
16090b repl
16091:more1
16092s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16093p
16094g
16095s/.\{148\}//
16096t nl
16097:delim
16098h
16099s/\(.\{148\}\)..*/\1/
16100t more2
16101s/["\\]/\\&/g; s/^/"/; s/$/"/
16102p
16103b
16104:more2
16105s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16106p
16107g
16108s/.\{148\}//
16109t delim
16110' <conf$$subs.awk | sed '
16111/^[^""]/{
16112  N
16113  s/\n//
16114}
16115' >>$CONFIG_STATUS || ac_write_fail=1
16116rm -f conf$$subs.awk
16117cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16118_ACAWK
16119cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16120  for (key in S) S_is_set[key] = 1
16121  FS = ""
16122
16123}
16124{
16125  line = $ 0
16126  nfields = split(line, field, "@")
16127  substed = 0
16128  len = length(field[1])
16129  for (i = 2; i < nfields; i++) {
16130    key = field[i]
16131    keylen = length(key)
16132    if (S_is_set[key]) {
16133      value = S[key]
16134      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16135      len += length(value) + length(field[++i])
16136      substed = 1
16137    } else
16138      len += 1 + keylen
16139  }
16140
16141  print line
16142}
16143
16144_ACAWK
16145_ACEOF
16146cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16147if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16148  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16149else
16150  cat
16151fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16152  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16153_ACEOF
16154
16155# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16156# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16157# trailing colons and then remove the whole line if VPATH becomes empty
16158# (actually we leave an empty line to preserve line numbers).
16159if test "x$srcdir" = x.; then
16160  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
16161h
16162s///
16163s/^/:/
16164s/[	 ]*$/:/
16165s/:\$(srcdir):/:/g
16166s/:\${srcdir}:/:/g
16167s/:@srcdir@:/:/g
16168s/^:*//
16169s/:*$//
16170x
16171s/\(=[	 ]*\).*/\1/
16172G
16173s/\n//
16174s/^[^=]*=[	 ]*$//
16175}'
16176fi
16177
16178cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16179fi # test -n "$CONFIG_FILES"
16180
16181# Set up the scripts for CONFIG_HEADERS section.
16182# No need to generate them if there are no CONFIG_HEADERS.
16183# This happens for instance with `./config.status Makefile'.
16184if test -n "$CONFIG_HEADERS"; then
16185cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16186BEGIN {
16187_ACEOF
16188
16189# Transform confdefs.h into an awk script `defines.awk', embedded as
16190# here-document in config.status, that substitutes the proper values into
16191# config.h.in to produce config.h.
16192
16193# Create a delimiter string that does not exist in confdefs.h, to ease
16194# handling of long lines.
16195ac_delim='%!_!# '
16196for ac_last_try in false false :; do
16197  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16198  if test -z "$ac_tt"; then
16199    break
16200  elif $ac_last_try; then
16201    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16202  else
16203    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16204  fi
16205done
16206
16207# For the awk script, D is an array of macro values keyed by name,
16208# likewise P contains macro parameters if any.  Preserve backslash
16209# newline sequences.
16210
16211ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16212sed -n '
16213s/.\{148\}/&'"$ac_delim"'/g
16214t rset
16215:rset
16216s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
16217t def
16218d
16219:def
16220s/\\$//
16221t bsnl
16222s/["\\]/\\&/g
16223s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
16224D["\1"]=" \3"/p
16225s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
16226d
16227:bsnl
16228s/["\\]/\\&/g
16229s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
16230D["\1"]=" \3\\\\\\n"\\/p
16231t cont
16232s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16233t cont
16234d
16235:cont
16236n
16237s/.\{148\}/&'"$ac_delim"'/g
16238t clear
16239:clear
16240s/\\$//
16241t bsnlc
16242s/["\\]/\\&/g; s/^/"/; s/$/"/p
16243d
16244:bsnlc
16245s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16246b cont
16247' <confdefs.h | sed '
16248s/'"$ac_delim"'/"\\\
16249"/g' >>$CONFIG_STATUS || ac_write_fail=1
16250
16251cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16252  for (key in D) D_is_set[key] = 1
16253  FS = ""
16254}
16255/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16256  line = \$ 0
16257  split(line, arg, " ")
16258  if (arg[1] == "#") {
16259    defundef = arg[2]
16260    mac1 = arg[3]
16261  } else {
16262    defundef = substr(arg[1], 2)
16263    mac1 = arg[2]
16264  }
16265  split(mac1, mac2, "(") #)
16266  macro = mac2[1]
16267  prefix = substr(line, 1, index(line, defundef) - 1)
16268  if (D_is_set[macro]) {
16269    # Preserve the white space surrounding the "#".
16270    print prefix "define", macro P[macro] D[macro]
16271    next
16272  } else {
16273    # Replace #undef with comments.  This is necessary, for example,
16274    # in the case of _POSIX_SOURCE, which is predefined and required
16275    # on some systems where configure will not decide to define it.
16276    if (defundef == "undef") {
16277      print "/*", prefix defundef, macro, "*/"
16278      next
16279    }
16280  }
16281}
16282{ print }
16283_ACAWK
16284_ACEOF
16285cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16286  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16287fi # test -n "$CONFIG_HEADERS"
16288
16289
16290eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
16291shift
16292for ac_tag
16293do
16294  case $ac_tag in
16295  :[FHLC]) ac_mode=$ac_tag; continue;;
16296  esac
16297  case $ac_mode$ac_tag in
16298  :[FHL]*:*);;
16299  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16300  :[FH]-) ac_tag=-:-;;
16301  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16302  esac
16303  ac_save_IFS=$IFS
16304  IFS=:
16305  set x $ac_tag
16306  IFS=$ac_save_IFS
16307  shift
16308  ac_file=$1
16309  shift
16310
16311  case $ac_mode in
16312  :L) ac_source=$1;;
16313  :[FH])
16314    ac_file_inputs=
16315    for ac_f
16316    do
16317      case $ac_f in
16318      -) ac_f="$ac_tmp/stdin";;
16319      *) # Look for the file first in the build tree, then in the source tree
16320	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
16321	 # because $ac_f cannot contain `:'.
16322	 test -f "$ac_f" ||
16323	   case $ac_f in
16324	   [\\/$]*) false;;
16325	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16326	   esac ||
16327	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16328      esac
16329      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16330      as_fn_append ac_file_inputs " '$ac_f'"
16331    done
16332
16333    # Let's still pretend it is `configure' which instantiates (i.e., don't
16334    # use $as_me), people would be surprised to read:
16335    #    /* config.h.  Generated by config.status.  */
16336    configure_input='Generated from '`
16337	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16338	`' by configure.'
16339    if test x"$ac_file" != x-; then
16340      configure_input="$ac_file.  $configure_input"
16341      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16342$as_echo "$as_me: creating $ac_file" >&6;}
16343    fi
16344    # Neutralize special characters interpreted by sed in replacement strings.
16345    case $configure_input in #(
16346    *\&* | *\|* | *\\* )
16347       ac_sed_conf_input=`$as_echo "$configure_input" |
16348       sed 's/[\\\\&|]/\\\\&/g'`;; #(
16349    *) ac_sed_conf_input=$configure_input;;
16350    esac
16351
16352    case $ac_tag in
16353    *:-:* | *:-) cat >"$ac_tmp/stdin" \
16354      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16355    esac
16356    ;;
16357  esac
16358
16359  ac_dir=`$as_dirname -- "$ac_file" ||
16360$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16361	 X"$ac_file" : 'X\(//\)[^/]' \| \
16362	 X"$ac_file" : 'X\(//\)$' \| \
16363	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16364$as_echo X"$ac_file" |
16365    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16366	    s//\1/
16367	    q
16368	  }
16369	  /^X\(\/\/\)[^/].*/{
16370	    s//\1/
16371	    q
16372	  }
16373	  /^X\(\/\/\)$/{
16374	    s//\1/
16375	    q
16376	  }
16377	  /^X\(\/\).*/{
16378	    s//\1/
16379	    q
16380	  }
16381	  s/.*/./; q'`
16382  as_dir="$ac_dir"; as_fn_mkdir_p
16383  ac_builddir=.
16384
16385case "$ac_dir" in
16386.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16387*)
16388  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16389  # A ".." for each directory in $ac_dir_suffix.
16390  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16391  case $ac_top_builddir_sub in
16392  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16393  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16394  esac ;;
16395esac
16396ac_abs_top_builddir=$ac_pwd
16397ac_abs_builddir=$ac_pwd$ac_dir_suffix
16398# for backward compatibility:
16399ac_top_builddir=$ac_top_build_prefix
16400
16401case $srcdir in
16402  .)  # We are building in place.
16403    ac_srcdir=.
16404    ac_top_srcdir=$ac_top_builddir_sub
16405    ac_abs_top_srcdir=$ac_pwd ;;
16406  [\\/]* | ?:[\\/]* )  # Absolute name.
16407    ac_srcdir=$srcdir$ac_dir_suffix;
16408    ac_top_srcdir=$srcdir
16409    ac_abs_top_srcdir=$srcdir ;;
16410  *) # Relative name.
16411    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16412    ac_top_srcdir=$ac_top_build_prefix$srcdir
16413    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16414esac
16415ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16416
16417
16418  case $ac_mode in
16419  :F)
16420  #
16421  # CONFIG_FILE
16422  #
16423
16424  case $INSTALL in
16425  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16426  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16427  esac
16428  ac_MKDIR_P=$MKDIR_P
16429  case $MKDIR_P in
16430  [\\/$]* | ?:[\\/]* ) ;;
16431  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16432  esac
16433_ACEOF
16434
16435cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16436# If the template does not know about datarootdir, expand it.
16437# FIXME: This hack should be removed a few years after 2.60.
16438ac_datarootdir_hack=; ac_datarootdir_seen=
16439ac_sed_dataroot='
16440/datarootdir/ {
16441  p
16442  q
16443}
16444/@datadir@/p
16445/@docdir@/p
16446/@infodir@/p
16447/@localedir@/p
16448/@mandir@/p'
16449case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16450*datarootdir*) ac_datarootdir_seen=yes;;
16451*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16452  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16453$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16454_ACEOF
16455cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16456  ac_datarootdir_hack='
16457  s&@datadir@&$datadir&g
16458  s&@docdir@&$docdir&g
16459  s&@infodir@&$infodir&g
16460  s&@localedir@&$localedir&g
16461  s&@mandir@&$mandir&g
16462  s&\\\${datarootdir}&$datarootdir&g' ;;
16463esac
16464_ACEOF
16465
16466# Neutralize VPATH when `$srcdir' = `.'.
16467# Shell code in configure.ac might set extrasub.
16468# FIXME: do we really want to maintain this feature?
16469cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16470ac_sed_extra="$ac_vpsub
16471$extrasub
16472_ACEOF
16473cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16474:t
16475/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16476s|@configure_input@|$ac_sed_conf_input|;t t
16477s&@top_builddir@&$ac_top_builddir_sub&;t t
16478s&@top_build_prefix@&$ac_top_build_prefix&;t t
16479s&@srcdir@&$ac_srcdir&;t t
16480s&@abs_srcdir@&$ac_abs_srcdir&;t t
16481s&@top_srcdir@&$ac_top_srcdir&;t t
16482s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16483s&@builddir@&$ac_builddir&;t t
16484s&@abs_builddir@&$ac_abs_builddir&;t t
16485s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16486s&@INSTALL@&$ac_INSTALL&;t t
16487s&@MKDIR_P@&$ac_MKDIR_P&;t t
16488$ac_datarootdir_hack
16489"
16490eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16491  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16492
16493test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16494  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16495  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
16496      "$ac_tmp/out"`; test -z "$ac_out"; } &&
16497  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16498which seems to be undefined.  Please make sure it is defined" >&5
16499$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16500which seems to be undefined.  Please make sure it is defined" >&2;}
16501
16502  rm -f "$ac_tmp/stdin"
16503  case $ac_file in
16504  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16505  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16506  esac \
16507  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16508 ;;
16509  :H)
16510  #
16511  # CONFIG_HEADER
16512  #
16513  if test x"$ac_file" != x-; then
16514    {
16515      $as_echo "/* $configure_input  */" \
16516      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16517    } >"$ac_tmp/config.h" \
16518      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16519    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16520      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16521$as_echo "$as_me: $ac_file is unchanged" >&6;}
16522    else
16523      rm -f "$ac_file"
16524      mv "$ac_tmp/config.h" "$ac_file" \
16525	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
16526    fi
16527  else
16528    $as_echo "/* $configure_input  */" \
16529      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16530      || as_fn_error $? "could not create -" "$LINENO" 5
16531  fi
16532# Compute "$ac_file"'s index in $config_headers.
16533_am_arg="$ac_file"
16534_am_stamp_count=1
16535for _am_header in $config_headers :; do
16536  case $_am_header in
16537    $_am_arg | $_am_arg:* )
16538      break ;;
16539    * )
16540      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16541  esac
16542done
16543echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16544$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16545	 X"$_am_arg" : 'X\(//\)[^/]' \| \
16546	 X"$_am_arg" : 'X\(//\)$' \| \
16547	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16548$as_echo X"$_am_arg" |
16549    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16550	    s//\1/
16551	    q
16552	  }
16553	  /^X\(\/\/\)[^/].*/{
16554	    s//\1/
16555	    q
16556	  }
16557	  /^X\(\/\/\)$/{
16558	    s//\1/
16559	    q
16560	  }
16561	  /^X\(\/\).*/{
16562	    s//\1/
16563	    q
16564	  }
16565	  s/.*/./; q'`/stamp-h$_am_stamp_count
16566 ;;
16567
16568  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16569$as_echo "$as_me: executing $ac_file commands" >&6;}
16570 ;;
16571  esac
16572
16573
16574  case $ac_file$ac_mode in
16575    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16576  # Older Autoconf quotes --file arguments for eval, but not when files
16577  # are listed without --file.  Let's play safe and only enable the eval
16578  # if we detect the quoting.
16579  case $CONFIG_FILES in
16580  *\'*) eval set x "$CONFIG_FILES" ;;
16581  *)   set x $CONFIG_FILES ;;
16582  esac
16583  shift
16584  for mf
16585  do
16586    # Strip MF so we end up with the name of the file.
16587    mf=`echo "$mf" | sed -e 's/:.*$//'`
16588    # Check whether this is an Automake generated Makefile or not.
16589    # We used to match only the files named 'Makefile.in', but
16590    # some people rename them; so instead we look at the file content.
16591    # Grep'ing the first line is not enough: some people post-process
16592    # each Makefile.in and add a new line on top of each file to say so.
16593    # Grep'ing the whole file is not good either: AIX grep has a line
16594    # limit of 2048, but all sed's we know have understand at least 4000.
16595    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16596      dirpart=`$as_dirname -- "$mf" ||
16597$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16598	 X"$mf" : 'X\(//\)[^/]' \| \
16599	 X"$mf" : 'X\(//\)$' \| \
16600	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16601$as_echo X"$mf" |
16602    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16603	    s//\1/
16604	    q
16605	  }
16606	  /^X\(\/\/\)[^/].*/{
16607	    s//\1/
16608	    q
16609	  }
16610	  /^X\(\/\/\)$/{
16611	    s//\1/
16612	    q
16613	  }
16614	  /^X\(\/\).*/{
16615	    s//\1/
16616	    q
16617	  }
16618	  s/.*/./; q'`
16619    else
16620      continue
16621    fi
16622    # Extract the definition of DEPDIR, am__include, and am__quote
16623    # from the Makefile without running 'make'.
16624    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16625    test -z "$DEPDIR" && continue
16626    am__include=`sed -n 's/^am__include = //p' < "$mf"`
16627    test -z "$am__include" && continue
16628    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16629    # Find all dependency output files, they are included files with
16630    # $(DEPDIR) in their names.  We invoke sed twice because it is the
16631    # simplest approach to changing $(DEPDIR) to its actual value in the
16632    # expansion.
16633    for file in `sed -n "
16634      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16635	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
16636      # Make sure the directory exists.
16637      test -f "$dirpart/$file" && continue
16638      fdir=`$as_dirname -- "$file" ||
16639$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16640	 X"$file" : 'X\(//\)[^/]' \| \
16641	 X"$file" : 'X\(//\)$' \| \
16642	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16643$as_echo X"$file" |
16644    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16645	    s//\1/
16646	    q
16647	  }
16648	  /^X\(\/\/\)[^/].*/{
16649	    s//\1/
16650	    q
16651	  }
16652	  /^X\(\/\/\)$/{
16653	    s//\1/
16654	    q
16655	  }
16656	  /^X\(\/\).*/{
16657	    s//\1/
16658	    q
16659	  }
16660	  s/.*/./; q'`
16661      as_dir=$dirpart/$fdir; as_fn_mkdir_p
16662      # echo "creating $dirpart/$file"
16663      echo '# dummy' > "$dirpart/$file"
16664    done
16665  done
16666}
16667 ;;
16668    "libtool":C)
16669
16670    # See if we are running on zsh, and set the options which allow our
16671    # commands through without removal of \ escapes.
16672    if test -n "${ZSH_VERSION+set}" ; then
16673      setopt NO_GLOB_SUBST
16674    fi
16675
16676    cfgfile="${ofile}T"
16677    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16678    $RM "$cfgfile"
16679
16680    cat <<_LT_EOF >> "$cfgfile"
16681#! $SHELL
16682
16683# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16684# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16685# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16686# NOTE: Changes made to this file will be lost: look at ltmain.sh.
16687#
16688#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16689#                 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
16690#   Written by Gordon Matzigkeit, 1996
16691#
16692#   This file is part of GNU Libtool.
16693#
16694# GNU Libtool is free software; you can redistribute it and/or
16695# modify it under the terms of the GNU General Public License as
16696# published by the Free Software Foundation; either version 2 of
16697# the License, or (at your option) any later version.
16698#
16699# As a special exception to the GNU General Public License,
16700# if you distribute this file as part of a program or library that
16701# is built using GNU Libtool, you may include this file under the
16702# same distribution terms that you use for the rest of that program.
16703#
16704# GNU Libtool is distributed in the hope that it will be useful,
16705# but WITHOUT ANY WARRANTY; without even the implied warranty of
16706# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16707# GNU General Public License for more details.
16708#
16709# You should have received a copy of the GNU General Public License
16710# along with GNU Libtool; see the file COPYING.  If not, a copy
16711# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16712# obtained by writing to the Free Software Foundation, Inc.,
16713# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16714
16715
16716# The names of the tagged configurations supported by this script.
16717available_tags=""
16718
16719# ### BEGIN LIBTOOL CONFIG
16720
16721# Which release of libtool.m4 was used?
16722macro_version=$macro_version
16723macro_revision=$macro_revision
16724
16725# Whether or not to build shared libraries.
16726build_libtool_libs=$enable_shared
16727
16728# Whether or not to build static libraries.
16729build_old_libs=$enable_static
16730
16731# What type of objects to build.
16732pic_mode=$pic_mode
16733
16734# Whether or not to optimize for fast installation.
16735fast_install=$enable_fast_install
16736
16737# Shell to use when invoking shell scripts.
16738SHELL=$lt_SHELL
16739
16740# An echo program that protects backslashes.
16741ECHO=$lt_ECHO
16742
16743# The host system.
16744host_alias=$host_alias
16745host=$host
16746host_os=$host_os
16747
16748# The build system.
16749build_alias=$build_alias
16750build=$build
16751build_os=$build_os
16752
16753# A sed program that does not truncate output.
16754SED=$lt_SED
16755
16756# Sed that helps us avoid accidentally triggering echo(1) options like -n.
16757Xsed="\$SED -e 1s/^X//"
16758
16759# A grep program that handles long lines.
16760GREP=$lt_GREP
16761
16762# An ERE matcher.
16763EGREP=$lt_EGREP
16764
16765# A literal string matcher.
16766FGREP=$lt_FGREP
16767
16768# A BSD- or MS-compatible name lister.
16769NM=$lt_NM
16770
16771# Whether we need soft or hard links.
16772LN_S=$lt_LN_S
16773
16774# What is the maximum length of a command?
16775max_cmd_len=$max_cmd_len
16776
16777# Object file suffix (normally "o").
16778objext=$ac_objext
16779
16780# Executable file suffix (normally "").
16781exeext=$exeext
16782
16783# whether the shell understands "unset".
16784lt_unset=$lt_unset
16785
16786# turn spaces into newlines.
16787SP2NL=$lt_lt_SP2NL
16788
16789# turn newlines into spaces.
16790NL2SP=$lt_lt_NL2SP
16791
16792# An object symbol dumper.
16793OBJDUMP=$lt_OBJDUMP
16794
16795# Method to check whether dependent libraries are shared objects.
16796deplibs_check_method=$lt_deplibs_check_method
16797
16798# Command to use when deplibs_check_method == "file_magic".
16799file_magic_cmd=$lt_file_magic_cmd
16800
16801# The archiver.
16802AR=$lt_AR
16803AR_FLAGS=$lt_AR_FLAGS
16804
16805# A symbol stripping program.
16806STRIP=$lt_STRIP
16807
16808# Commands used to install an old-style archive.
16809RANLIB=$lt_RANLIB
16810old_postinstall_cmds=$lt_old_postinstall_cmds
16811old_postuninstall_cmds=$lt_old_postuninstall_cmds
16812
16813# Whether to use a lock for old archive extraction.
16814lock_old_archive_extraction=$lock_old_archive_extraction
16815
16816# A C compiler.
16817LTCC=$lt_CC
16818
16819# LTCC compiler flags.
16820LTCFLAGS=$lt_CFLAGS
16821
16822# Take the output of nm and produce a listing of raw symbols and C names.
16823global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16824
16825# Transform the output of nm in a proper C declaration.
16826global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16827
16828# Transform the output of nm in a C name address pair.
16829global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16830
16831# Transform the output of nm in a C name address pair when lib prefix is needed.
16832global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16833
16834# The name of the directory that contains temporary libtool files.
16835objdir=$objdir
16836
16837# Used to examine libraries when file_magic_cmd begins with "file".
16838MAGIC_CMD=$MAGIC_CMD
16839
16840# Must we lock files when doing compilation?
16841need_locks=$lt_need_locks
16842
16843# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16844DSYMUTIL=$lt_DSYMUTIL
16845
16846# Tool to change global to local symbols on Mac OS X.
16847NMEDIT=$lt_NMEDIT
16848
16849# Tool to manipulate fat objects and archives on Mac OS X.
16850LIPO=$lt_LIPO
16851
16852# ldd/readelf like tool for Mach-O binaries on Mac OS X.
16853OTOOL=$lt_OTOOL
16854
16855# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16856OTOOL64=$lt_OTOOL64
16857
16858# Old archive suffix (normally "a").
16859libext=$libext
16860
16861# Shared library suffix (normally ".so").
16862shrext_cmds=$lt_shrext_cmds
16863
16864# The commands to extract the exported symbol list from a shared archive.
16865extract_expsyms_cmds=$lt_extract_expsyms_cmds
16866
16867# Variables whose values should be saved in libtool wrapper scripts and
16868# restored at link time.
16869variables_saved_for_relink=$lt_variables_saved_for_relink
16870
16871# Do we need the "lib" prefix for modules?
16872need_lib_prefix=$need_lib_prefix
16873
16874# Do we need a version for libraries?
16875need_version=$need_version
16876
16877# Library versioning type.
16878version_type=$version_type
16879
16880# Shared library runtime path variable.
16881runpath_var=$runpath_var
16882
16883# Shared library path variable.
16884shlibpath_var=$shlibpath_var
16885
16886# Is shlibpath searched before the hard-coded library search path?
16887shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16888
16889# Format of library name prefix.
16890libname_spec=$lt_libname_spec
16891
16892# List of archive names.  First name is the real one, the rest are links.
16893# The last name is the one that the linker finds with -lNAME
16894library_names_spec=$lt_library_names_spec
16895
16896# The coded name of the library, if different from the real name.
16897soname_spec=$lt_soname_spec
16898
16899# Permission mode override for installation of shared libraries.
16900install_override_mode=$lt_install_override_mode
16901
16902# Command to use after installation of a shared archive.
16903postinstall_cmds=$lt_postinstall_cmds
16904
16905# Command to use after uninstallation of a shared archive.
16906postuninstall_cmds=$lt_postuninstall_cmds
16907
16908# Commands used to finish a libtool library installation in a directory.
16909finish_cmds=$lt_finish_cmds
16910
16911# As "finish_cmds", except a single script fragment to be evaled but
16912# not shown.
16913finish_eval=$lt_finish_eval
16914
16915# Whether we should hardcode library paths into libraries.
16916hardcode_into_libs=$hardcode_into_libs
16917
16918# Compile-time system search path for libraries.
16919sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16920
16921# Run-time system search path for libraries.
16922sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16923
16924# Whether dlopen is supported.
16925dlopen_support=$enable_dlopen
16926
16927# Whether dlopen of programs is supported.
16928dlopen_self=$enable_dlopen_self
16929
16930# Whether dlopen of statically linked programs is supported.
16931dlopen_self_static=$enable_dlopen_self_static
16932
16933# Commands to strip libraries.
16934old_striplib=$lt_old_striplib
16935striplib=$lt_striplib
16936
16937
16938# The linker used to build libraries.
16939LD=$lt_LD
16940
16941# How to create reloadable object files.
16942reload_flag=$lt_reload_flag
16943reload_cmds=$lt_reload_cmds
16944
16945# Commands used to build an old-style archive.
16946old_archive_cmds=$lt_old_archive_cmds
16947
16948# A language specific compiler.
16949CC=$lt_compiler
16950
16951# Is the compiler the GNU compiler?
16952with_gcc=$GCC
16953
16954# Compiler flag to turn off builtin functions.
16955no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16956
16957# How to pass a linker flag through the compiler.
16958wl=$lt_lt_prog_compiler_wl
16959
16960# Additional compiler flags for building library objects.
16961pic_flag=$lt_lt_prog_compiler_pic
16962
16963# Compiler flag to prevent dynamic linking.
16964link_static_flag=$lt_lt_prog_compiler_static
16965
16966# Does compiler simultaneously support -c and -o options?
16967compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16968
16969# Whether or not to add -lc for building shared libraries.
16970build_libtool_need_lc=$archive_cmds_need_lc
16971
16972# Whether or not to disallow shared libs when runtime libs are static.
16973allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16974
16975# Compiler flag to allow reflexive dlopens.
16976export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16977
16978# Compiler flag to generate shared objects directly from archives.
16979whole_archive_flag_spec=$lt_whole_archive_flag_spec
16980
16981# Whether the compiler copes with passing no objects directly.
16982compiler_needs_object=$lt_compiler_needs_object
16983
16984# Create an old-style archive from a shared archive.
16985old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16986
16987# Create a temporary old-style archive to link instead of a shared archive.
16988old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16989
16990# Commands used to build a shared archive.
16991archive_cmds=$lt_archive_cmds
16992archive_expsym_cmds=$lt_archive_expsym_cmds
16993
16994# Commands used to build a loadable module if different from building
16995# a shared archive.
16996module_cmds=$lt_module_cmds
16997module_expsym_cmds=$lt_module_expsym_cmds
16998
16999# Whether we are building with GNU ld or not.
17000with_gnu_ld=$lt_with_gnu_ld
17001
17002# Flag that allows shared libraries with undefined symbols to be built.
17003allow_undefined_flag=$lt_allow_undefined_flag
17004
17005# Flag that enforces no undefined symbols.
17006no_undefined_flag=$lt_no_undefined_flag
17007
17008# Flag to hardcode \$libdir into a binary during linking.
17009# This must work even if \$libdir does not exist
17010hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17011
17012# If ld is used when linking, flag to hardcode \$libdir into a binary
17013# during linking.  This must work even if \$libdir does not exist.
17014hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17015
17016# Whether we need a single "-rpath" flag with a separated argument.
17017hardcode_libdir_separator=$lt_hardcode_libdir_separator
17018
17019# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17020# DIR into the resulting binary.
17021hardcode_direct=$hardcode_direct
17022
17023# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17024# DIR into the resulting binary and the resulting library dependency is
17025# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17026# library is relocated.
17027hardcode_direct_absolute=$hardcode_direct_absolute
17028
17029# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17030# into the resulting binary.
17031hardcode_minus_L=$hardcode_minus_L
17032
17033# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17034# into the resulting binary.
17035hardcode_shlibpath_var=$hardcode_shlibpath_var
17036
17037# Set to "yes" if building a shared library automatically hardcodes DIR
17038# into the library and all subsequent libraries and executables linked
17039# against it.
17040hardcode_automatic=$hardcode_automatic
17041
17042# Set to yes if linker adds runtime paths of dependent libraries
17043# to runtime path list.
17044inherit_rpath=$inherit_rpath
17045
17046# Whether libtool must link a program against all its dependency libraries.
17047link_all_deplibs=$link_all_deplibs
17048
17049# Fix the shell variable \$srcfile for the compiler.
17050fix_srcfile_path=$lt_fix_srcfile_path
17051
17052# Set to "yes" if exported symbols are required.
17053always_export_symbols=$always_export_symbols
17054
17055# The commands to list exported symbols.
17056export_symbols_cmds=$lt_export_symbols_cmds
17057
17058# Symbols that should not be listed in the preloaded symbols.
17059exclude_expsyms=$lt_exclude_expsyms
17060
17061# Symbols that must always be exported.
17062include_expsyms=$lt_include_expsyms
17063
17064# Commands necessary for linking programs (against libraries) with templates.
17065prelink_cmds=$lt_prelink_cmds
17066
17067# Specify filename containing input files.
17068file_list_spec=$lt_file_list_spec
17069
17070# How to hardcode a shared library path into an executable.
17071hardcode_action=$hardcode_action
17072
17073# ### END LIBTOOL CONFIG
17074
17075_LT_EOF
17076
17077  case $host_os in
17078  aix3*)
17079    cat <<\_LT_EOF >> "$cfgfile"
17080# AIX sometimes has problems with the GCC collect2 program.  For some
17081# reason, if we set the COLLECT_NAMES environment variable, the problems
17082# vanish in a puff of smoke.
17083if test "X${COLLECT_NAMES+set}" != Xset; then
17084  COLLECT_NAMES=
17085  export COLLECT_NAMES
17086fi
17087_LT_EOF
17088    ;;
17089  esac
17090
17091
17092ltmain="$ac_aux_dir/ltmain.sh"
17093
17094
17095  # We use sed instead of cat because bash on DJGPP gets confused if
17096  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17097  # text mode, it properly converts lines to CR/LF.  This bash problem
17098  # is reportedly fixed, but why not run on old versions too?
17099  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17100    || (rm -f "$cfgfile"; exit 1)
17101
17102  case $xsi_shell in
17103  yes)
17104    cat << \_LT_EOF >> "$cfgfile"
17105
17106# func_dirname file append nondir_replacement
17107# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
17108# otherwise set result to NONDIR_REPLACEMENT.
17109func_dirname ()
17110{
17111  case ${1} in
17112    */*) func_dirname_result="${1%/*}${2}" ;;
17113    *  ) func_dirname_result="${3}" ;;
17114  esac
17115}
17116
17117# func_basename file
17118func_basename ()
17119{
17120  func_basename_result="${1##*/}"
17121}
17122
17123# func_dirname_and_basename file append nondir_replacement
17124# perform func_basename and func_dirname in a single function
17125# call:
17126#   dirname:  Compute the dirname of FILE.  If nonempty,
17127#             add APPEND to the result, otherwise set result
17128#             to NONDIR_REPLACEMENT.
17129#             value returned in "$func_dirname_result"
17130#   basename: Compute filename of FILE.
17131#             value retuned in "$func_basename_result"
17132# Implementation must be kept synchronized with func_dirname
17133# and func_basename. For efficiency, we do not delegate to
17134# those functions but instead duplicate the functionality here.
17135func_dirname_and_basename ()
17136{
17137  case ${1} in
17138    */*) func_dirname_result="${1%/*}${2}" ;;
17139    *  ) func_dirname_result="${3}" ;;
17140  esac
17141  func_basename_result="${1##*/}"
17142}
17143
17144# func_stripname prefix suffix name
17145# strip PREFIX and SUFFIX off of NAME.
17146# PREFIX and SUFFIX must not contain globbing or regex special
17147# characters, hashes, percent signs, but SUFFIX may contain a leading
17148# dot (in which case that matches only a dot).
17149func_stripname ()
17150{
17151  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17152  # positional parameters, so assign one to ordinary parameter first.
17153  func_stripname_result=${3}
17154  func_stripname_result=${func_stripname_result#"${1}"}
17155  func_stripname_result=${func_stripname_result%"${2}"}
17156}
17157
17158# func_opt_split
17159func_opt_split ()
17160{
17161  func_opt_split_opt=${1%%=*}
17162  func_opt_split_arg=${1#*=}
17163}
17164
17165# func_lo2o object
17166func_lo2o ()
17167{
17168  case ${1} in
17169    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17170    *)    func_lo2o_result=${1} ;;
17171  esac
17172}
17173
17174# func_xform libobj-or-source
17175func_xform ()
17176{
17177  func_xform_result=${1%.*}.lo
17178}
17179
17180# func_arith arithmetic-term...
17181func_arith ()
17182{
17183  func_arith_result=$(( $* ))
17184}
17185
17186# func_len string
17187# STRING may not start with a hyphen.
17188func_len ()
17189{
17190  func_len_result=${#1}
17191}
17192
17193_LT_EOF
17194    ;;
17195  *) # Bourne compatible functions.
17196    cat << \_LT_EOF >> "$cfgfile"
17197
17198# func_dirname file append nondir_replacement
17199# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
17200# otherwise set result to NONDIR_REPLACEMENT.
17201func_dirname ()
17202{
17203  # Extract subdirectory from the argument.
17204  func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17205  if test "X$func_dirname_result" = "X${1}"; then
17206    func_dirname_result="${3}"
17207  else
17208    func_dirname_result="$func_dirname_result${2}"
17209  fi
17210}
17211
17212# func_basename file
17213func_basename ()
17214{
17215  func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17216}
17217
17218
17219# func_stripname prefix suffix name
17220# strip PREFIX and SUFFIX off of NAME.
17221# PREFIX and SUFFIX must not contain globbing or regex special
17222# characters, hashes, percent signs, but SUFFIX may contain a leading
17223# dot (in which case that matches only a dot).
17224# func_strip_suffix prefix name
17225func_stripname ()
17226{
17227  case ${2} in
17228    .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17229    *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17230  esac
17231}
17232
17233# sed scripts:
17234my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17235my_sed_long_arg='1s/^-[^=]*=//'
17236
17237# func_opt_split
17238func_opt_split ()
17239{
17240  func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17241  func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17242}
17243
17244# func_lo2o object
17245func_lo2o ()
17246{
17247  func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17248}
17249
17250# func_xform libobj-or-source
17251func_xform ()
17252{
17253  func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17254}
17255
17256# func_arith arithmetic-term...
17257func_arith ()
17258{
17259  func_arith_result=`expr "$@"`
17260}
17261
17262# func_len string
17263# STRING may not start with a hyphen.
17264func_len ()
17265{
17266  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17267}
17268
17269_LT_EOF
17270esac
17271
17272case $lt_shell_append in
17273  yes)
17274    cat << \_LT_EOF >> "$cfgfile"
17275
17276# func_append var value
17277# Append VALUE to the end of shell variable VAR.
17278func_append ()
17279{
17280  eval "$1+=\$2"
17281}
17282_LT_EOF
17283    ;;
17284  *)
17285    cat << \_LT_EOF >> "$cfgfile"
17286
17287# func_append var value
17288# Append VALUE to the end of shell variable VAR.
17289func_append ()
17290{
17291  eval "$1=\$$1\$2"
17292}
17293
17294_LT_EOF
17295    ;;
17296  esac
17297
17298
17299  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17300    || (rm -f "$cfgfile"; exit 1)
17301
17302  mv -f "$cfgfile" "$ofile" ||
17303    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17304  chmod +x "$ofile"
17305
17306 ;;
17307    "default-1":C)
17308    for ac_file in $CONFIG_FILES; do
17309      # Support "outfile[:infile[:infile...]]"
17310      case "$ac_file" in
17311        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17312      esac
17313      # PO directories have a Makefile.in generated from Makefile.in.in.
17314      case "$ac_file" in */Makefile.in)
17315        # Adjust a relative srcdir.
17316        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
17317        ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
17318        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
17319        # In autoconf-2.13 it is called $ac_given_srcdir.
17320        # In autoconf-2.50 it is called $srcdir.
17321        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
17322        case "$ac_given_srcdir" in
17323          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
17324          /*) top_srcdir="$ac_given_srcdir" ;;
17325          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
17326        esac
17327        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
17328          rm -f "$ac_dir/POTFILES"
17329          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
17330          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ 	]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
17331          POMAKEFILEDEPS="POTFILES.in"
17332          # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
17333          # on $ac_dir but don't depend on user-specified configuration
17334          # parameters.
17335          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
17336            # The LINGUAS file contains the set of available languages.
17337            if test -n "$OBSOLETE_ALL_LINGUAS"; then
17338              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete"
17339            fi
17340            ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
17341            # Hide the ALL_LINGUAS assigment from automake.
17342            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
17343            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
17344          else
17345            # The set of available languages was given in configure.ac.
17346            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
17347          fi
17348          case "$ac_given_srcdir" in
17349            .) srcdirpre= ;;
17350            *) srcdirpre='$(srcdir)/' ;;
17351          esac
17352          POFILES=
17353          GMOFILES=
17354          UPDATEPOFILES=
17355          DUMMYPOFILES=
17356          for lang in $ALL_LINGUAS; do
17357            POFILES="$POFILES $srcdirpre$lang.po"
17358            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
17359            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
17360            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
17361          done
17362          # CATALOGS depends on both $ac_dir and the user's LINGUAS
17363          # environment variable.
17364          INST_LINGUAS=
17365          if test -n "$ALL_LINGUAS"; then
17366            for presentlang in $ALL_LINGUAS; do
17367              useit=no
17368              if test "%UNSET%" != "$LINGUAS"; then
17369                desiredlanguages="$LINGUAS"
17370              else
17371                desiredlanguages="$ALL_LINGUAS"
17372              fi
17373              for desiredlang in $desiredlanguages; do
17374                # Use the presentlang catalog if desiredlang is
17375                #   a. equal to presentlang, or
17376                #   b. a variant of presentlang (because in this case,
17377                #      presentlang can be used as a fallback for messages
17378                #      which are not translated in the desiredlang catalog).
17379                case "$desiredlang" in
17380                  "$presentlang"*) useit=yes;;
17381                esac
17382              done
17383              if test $useit = yes; then
17384                INST_LINGUAS="$INST_LINGUAS $presentlang"
17385              fi
17386            done
17387          fi
17388          CATALOGS=
17389          if test -n "$INST_LINGUAS"; then
17390            for lang in $INST_LINGUAS; do
17391              CATALOGS="$CATALOGS $lang.gmo"
17392            done
17393          fi
17394          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
17395          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"
17396          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
17397            if test -f "$f"; then
17398              case "$f" in
17399                *.orig | *.bak | *~) ;;
17400                *) cat "$f" >> "$ac_dir/Makefile" ;;
17401              esac
17402            fi
17403          done
17404        fi
17405        ;;
17406      esac
17407    done ;;
17408
17409  esac
17410done # for ac_tag
17411
17412
17413as_fn_exit 0
17414_ACEOF
17415ac_clean_files=$ac_clean_files_save
17416
17417test $ac_write_fail = 0 ||
17418  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17419
17420
17421# configure is writing to config.log, and then calls config.status.
17422# config.status does its own redirection, appending to config.log.
17423# Unfortunately, on DOS this fails, as config.log is still kept open
17424# by configure, so config.status won't be able to write to it; its
17425# output is simply discarded.  So we exec the FD to /dev/null,
17426# effectively closing config.log, so it can be properly (re)opened and
17427# appended to by config.status.  When coming back to configure, we
17428# need to make the FD available again.
17429if test "$no_create" != yes; then
17430  ac_cs_success=:
17431  ac_config_status_args=
17432  test "$silent" = yes &&
17433    ac_config_status_args="$ac_config_status_args --quiet"
17434  exec 5>/dev/null
17435  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17436  exec 5>>config.log
17437  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17438  # would make configure fail if this is the last instruction.
17439  $ac_cs_success || as_fn_exit 1
17440fi
17441if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17442  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17443$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17444fi
17445
17446