configure revision 1.5
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.64 for binutils 2.27.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7# Foundation, Inc.
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.
90case $0 in #((
91  *[\\/]* ) as_myself=$0 ;;
92  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93for as_dir in $PATH
94do
95  IFS=$as_save_IFS
96  test -z "$as_dir" && as_dir=.
97    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98  done
99IFS=$as_save_IFS
100
101     ;;
102esac
103# We did not find ourselves, most probably we were run as `sh COMMAND'
104# in which case we are not to be found in the path.
105if test "x$as_myself" = x; then
106  as_myself=$0
107fi
108if test ! -f "$as_myself"; then
109  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110  exit 1
111fi
112
113# Unset variables that we do not need and which cause bugs (e.g. in
114# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
115# suppresses any "Segmentation fault" message there.  '((' could
116# trigger a bug in pdksh 5.2.14.
117for as_var in BASH_ENV ENV MAIL MAILPATH
118do eval test x\${$as_var+set} = xset \
119  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120done
121PS1='$ '
122PS2='> '
123PS4='+ '
124
125# NLS nuisances.
126LC_ALL=C
127export LC_ALL
128LANGUAGE=C
129export LANGUAGE
130
131# CDPATH.
132(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134if test "x$CONFIG_SHELL" = x; then
135  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136  emulate sh
137  NULLCMD=:
138  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139  # is contrary to our usage.  Disable this feature.
140  alias -g '\${1+\"\$@\"}'='\"\$@\"'
141  setopt NO_GLOB_SUBST
142else
143  case \`(set -o) 2>/dev/null\` in #(
144  *posix*) :
145    set -o posix ;; #(
146  *) :
147     ;;
148esac
149fi
150"
151  as_required="as_fn_return () { (exit \$1); }
152as_fn_success () { as_fn_return 0; }
153as_fn_failure () { as_fn_return 1; }
154as_fn_ret_success () { return 0; }
155as_fn_ret_failure () { return 1; }
156
157exitcode=0
158as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164else
165  exitcode=1; echo positional parameters were not saved.
166fi
167test x\$exitcode = x0 || exit 1"
168  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172test \$(( 1 + 1 )) = 2 || exit 1
173
174  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178    PATH=/empty FPATH=/empty; export PATH FPATH
179    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181  if (eval "$as_required") 2>/dev/null; then :
182  as_have_required=yes
183else
184  as_have_required=no
185fi
186  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187
188else
189  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190as_found=false
191for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
192do
193  IFS=$as_save_IFS
194  test -z "$as_dir" && as_dir=.
195  as_found=:
196  case $as_dir in #(
197	 /*)
198	   for as_base in sh bash ksh sh5; do
199	     # Try only shells that exist, to save several forks.
200	     as_shell=$as_dir/$as_base
201	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203  CONFIG_SHELL=$as_shell as_have_required=yes
204		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205  break 2
206fi
207fi
208	   done;;
209       esac
210  as_found=false
211done
212$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214  CONFIG_SHELL=$SHELL as_have_required=yes
215fi; }
216IFS=$as_save_IFS
217
218
219      if test "x$CONFIG_SHELL" != x; then :
220  # We cannot yet assume a decent shell, so we have to provide a
221	# neutralization value for shells without unset; and this also
222	# works around shells that cannot unset nonexistent variables.
223	BASH_ENV=/dev/null
224	ENV=/dev/null
225	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226	export CONFIG_SHELL
227	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
228fi
229
230    if test x$as_have_required = xno; then :
231  $as_echo "$0: This script requires a shell more modern than all"
232  $as_echo "$0: the shells that I found on your system."
233  if test x${ZSH_VERSION+set} = xset ; then
234    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236  else
237    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238$0: including any error possibly output before this
239$0: message. Then install a modern shell, or manually run
240$0: the script under such a shell if you do have one."
241  fi
242  exit 1
243fi
244fi
245fi
246SHELL=${CONFIG_SHELL-/bin/sh}
247export SHELL
248# Unset more variables known to interfere with behavior of common tools.
249CLICOLOR_FORCE= GREP_OPTIONS=
250unset CLICOLOR_FORCE GREP_OPTIONS
251
252## --------------------- ##
253## M4sh Shell Functions. ##
254## --------------------- ##
255# as_fn_unset VAR
256# ---------------
257# Portably unset VAR.
258as_fn_unset ()
259{
260  { eval $1=; unset $1;}
261}
262as_unset=as_fn_unset
263
264# as_fn_set_status STATUS
265# -----------------------
266# Set $? to STATUS, without forking.
267as_fn_set_status ()
268{
269  return $1
270} # as_fn_set_status
271
272# as_fn_exit STATUS
273# -----------------
274# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275as_fn_exit ()
276{
277  set +e
278  as_fn_set_status $1
279  exit $1
280} # as_fn_exit
281
282# as_fn_mkdir_p
283# -------------
284# Create "$as_dir" as a directory, including parents if necessary.
285as_fn_mkdir_p ()
286{
287
288  case $as_dir in #(
289  -*) as_dir=./$as_dir;;
290  esac
291  test -d "$as_dir" || eval $as_mkdir_p || {
292    as_dirs=
293    while :; do
294      case $as_dir in #(
295      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296      *) as_qdir=$as_dir;;
297      esac
298      as_dirs="'$as_qdir' $as_dirs"
299      as_dir=`$as_dirname -- "$as_dir" ||
300$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301	 X"$as_dir" : 'X\(//\)[^/]' \| \
302	 X"$as_dir" : 'X\(//\)$' \| \
303	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304$as_echo X"$as_dir" |
305    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306	    s//\1/
307	    q
308	  }
309	  /^X\(\/\/\)[^/].*/{
310	    s//\1/
311	    q
312	  }
313	  /^X\(\/\/\)$/{
314	    s//\1/
315	    q
316	  }
317	  /^X\(\/\).*/{
318	    s//\1/
319	    q
320	  }
321	  s/.*/./; q'`
322      test -d "$as_dir" && break
323    done
324    test -z "$as_dirs" || eval "mkdir $as_dirs"
325  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326
327
328} # as_fn_mkdir_p
329# as_fn_append VAR VALUE
330# ----------------------
331# Append the text in VALUE to the end of the definition contained in VAR. Take
332# advantage of any shell optimizations that allow amortized linear growth over
333# repeated appends, instead of the typical quadratic growth present in naive
334# implementations.
335if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336  eval 'as_fn_append ()
337  {
338    eval $1+=\$2
339  }'
340else
341  as_fn_append ()
342  {
343    eval $1=\$$1\$2
344  }
345fi # as_fn_append
346
347# as_fn_arith ARG...
348# ------------------
349# Perform arithmetic evaluation on the ARGs, and store the result in the
350# global $as_val. Take advantage of shells that can avoid forks. The arguments
351# must be portable across $(()) and expr.
352if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353  eval 'as_fn_arith ()
354  {
355    as_val=$(( $* ))
356  }'
357else
358  as_fn_arith ()
359  {
360    as_val=`expr "$@" || test $? -eq 1`
361  }
362fi # as_fn_arith
363
364
365# as_fn_error ERROR [LINENO LOG_FD]
366# ---------------------------------
367# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369# script with status $?, using 1 if that was 0.
370as_fn_error ()
371{
372  as_status=$?; test $as_status -eq 0 && as_status=1
373  if test "$3"; then
374    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
376  fi
377  $as_echo "$as_me: error: $1" >&2
378  as_fn_exit $as_status
379} # as_fn_error
380
381if expr a : '\(a\)' >/dev/null 2>&1 &&
382   test "X`expr 00001 : '.*\(...\)'`" = X001; then
383  as_expr=expr
384else
385  as_expr=false
386fi
387
388if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389  as_basename=basename
390else
391  as_basename=false
392fi
393
394if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395  as_dirname=dirname
396else
397  as_dirname=false
398fi
399
400as_me=`$as_basename -- "$0" ||
401$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402	 X"$0" : 'X\(//\)$' \| \
403	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404$as_echo X/"$0" |
405    sed '/^.*\/\([^/][^/]*\)\/*$/{
406	    s//\1/
407	    q
408	  }
409	  /^X\/\(\/\/\)$/{
410	    s//\1/
411	    q
412	  }
413	  /^X\/\(\/\).*/{
414	    s//\1/
415	    q
416	  }
417	  s/.*/./; q'`
418
419# Avoid depending upon Character Ranges.
420as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423as_cr_digits='0123456789'
424as_cr_alnum=$as_cr_Letters$as_cr_digits
425
426
427  as_lineno_1=$LINENO as_lineno_1a=$LINENO
428  as_lineno_2=$LINENO as_lineno_2a=$LINENO
429  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
432  sed -n '
433    p
434    /[$]LINENO/=
435  ' <$as_myself |
436    sed '
437      s/[$]LINENO.*/&-/
438      t lineno
439      b
440      :lineno
441      N
442      :loop
443      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444      t loop
445      s/-\n.*//
446    ' >$as_me.lineno &&
447  chmod +x "$as_me.lineno" ||
448    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
449
450  # Don't try to exec as it changes $[0], causing all sort of problems
451  # (the dirname of $[0] is not the place where we might find the
452  # original and so on.  Autoconf is especially sensitive to this).
453  . "./$as_me.lineno"
454  # Exit status is that of the last command.
455  exit
456}
457
458ECHO_C= ECHO_N= ECHO_T=
459case `echo -n x` in #(((((
460-n*)
461  case `echo 'xy\c'` in
462  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
463  xy)  ECHO_C='\c';;
464  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
465       ECHO_T='	';;
466  esac;;
467*)
468  ECHO_N='-n';;
469esac
470
471rm -f conf$$ conf$$.exe conf$$.file
472if test -d conf$$.dir; then
473  rm -f conf$$.dir/conf$$.file
474else
475  rm -f conf$$.dir
476  mkdir conf$$.dir 2>/dev/null
477fi
478if (echo >conf$$.file) 2>/dev/null; then
479  if ln -s conf$$.file conf$$ 2>/dev/null; then
480    as_ln_s='ln -s'
481    # ... but there are two gotchas:
482    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484    # In both cases, we have to default to `cp -p'.
485    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486      as_ln_s='cp -p'
487  elif ln conf$$.file conf$$ 2>/dev/null; then
488    as_ln_s=ln
489  else
490    as_ln_s='cp -p'
491  fi
492else
493  as_ln_s='cp -p'
494fi
495rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496rmdir conf$$.dir 2>/dev/null
497
498if mkdir -p . 2>/dev/null; then
499  as_mkdir_p='mkdir -p "$as_dir"'
500else
501  test -d ./-p && rmdir ./-p
502  as_mkdir_p=false
503fi
504
505if test -x / >/dev/null 2>&1; then
506  as_test_x='test -x'
507else
508  if ls -dL / >/dev/null 2>&1; then
509    as_ls_L_option=L
510  else
511    as_ls_L_option=
512  fi
513  as_test_x='
514    eval sh -c '\''
515      if test -d "$1"; then
516	test -d "$1/.";
517      else
518	case $1 in #(
519	-*)set "./$1";;
520	esac;
521	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522	???[sx]*):;;*)false;;esac;fi
523    '\'' sh
524  '
525fi
526as_executable_p=$as_test_x
527
528# Sed expression to map a string onto a valid CPP name.
529as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
530
531# Sed expression to map a string onto a valid variable name.
532as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533
534SHELL=${CONFIG_SHELL-/bin/sh}
535
536
537exec 7<&0 </dev/null 6>&1
538
539# Name of the host.
540# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541# so uname gets run too.
542ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543
544#
545# Initializations.
546#
547ac_default_prefix=/usr/local
548ac_clean_files=
549ac_config_libobj_dir=.
550LIBOBJS=
551cross_compiling=no
552subdirs=
553MFLAGS=
554MAKEFLAGS=
555
556# Identity of this package.
557PACKAGE_NAME='binutils'
558PACKAGE_TARNAME='binutils'
559PACKAGE_VERSION='2.27'
560PACKAGE_STRING='binutils 2.27'
561PACKAGE_BUGREPORT=''
562PACKAGE_URL=''
563
564ac_unique_file="ar.c"
565# Factoring default headers for most tests.
566ac_includes_default="\
567#include <stdio.h>
568#ifdef HAVE_SYS_TYPES_H
569# include <sys/types.h>
570#endif
571#ifdef HAVE_SYS_STAT_H
572# include <sys/stat.h>
573#endif
574#ifdef STDC_HEADERS
575# include <stdlib.h>
576# include <stddef.h>
577#else
578# ifdef HAVE_STDLIB_H
579#  include <stdlib.h>
580# endif
581#endif
582#ifdef HAVE_STRING_H
583# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584#  include <memory.h>
585# endif
586# include <string.h>
587#endif
588#ifdef HAVE_STRINGS_H
589# include <strings.h>
590#endif
591#ifdef HAVE_INTTYPES_H
592# include <inttypes.h>
593#endif
594#ifdef HAVE_STDINT_H
595# include <stdint.h>
596#endif
597#ifdef HAVE_UNISTD_H
598# include <unistd.h>
599#endif"
600
601ac_subst_vars='am__EXEEXT_FALSE
602am__EXEEXT_TRUE
603LTLIBOBJS
604LIBOBJS
605EMULATION_VECTOR
606EMULATION
607OBJDUMP_PRIVATE_OFILES
608OBJDUMP_DEFS
609BUILD_INSTALL_MISC
610BUILD_MISC
611BUILD_DLLWRAP
612BUILD_WINDMC
613BUILD_WINDRES
614DLLTOOL_DEFS
615BUILD_DLLTOOL
616BUILD_SRCONV
617BUILD_NLMCONV
618NLMCONV_DEFS
619LTLIBICONV
620LIBICONV
621zlibinc
622zlibdir
623ALLOCA
624DEMANGLER_NAME
625EXEEXT_FOR_BUILD
626CC_FOR_BUILD
627HDEFINES
628GENINSRC_NEVER_FALSE
629GENINSRC_NEVER_TRUE
630MAINT
631MAINTAINER_MODE_FALSE
632MAINTAINER_MODE_TRUE
633MSGMERGE
634MSGFMT
635MKINSTALLDIRS
636CATOBJEXT
637GENCAT
638INSTOBJEXT
639DATADIRNAME
640CATALOGS
641POSUB
642GMSGFMT
643XGETTEXT
644INCINTL
645LIBINTL_DEP
646LIBINTL
647USE_NLS
648LEXLIB
649LEX_OUTPUT_ROOT
650LEX
651YFLAGS
652YACC
653WARN_WRITE_STRINGS
654NO_WERROR
655WARN_CFLAGS
656OTOOL64
657OTOOL
658LIPO
659NMEDIT
660DSYMUTIL
661RANLIB
662AR
663OBJDUMP
664LN_S
665NM
666ac_ct_DUMPBIN
667DUMPBIN
668LD
669FGREP
670SED
671LIBTOOL
672EGREP
673GREP
674CPP
675am__fastdepCC_FALSE
676am__fastdepCC_TRUE
677CCDEPMODE
678am__nodep
679AMDEPBACKSLASH
680AMDEP_FALSE
681AMDEP_TRUE
682am__quote
683am__include
684DEPDIR
685am__untar
686am__tar
687AMTAR
688am__leading_dot
689SET_MAKE
690AWK
691mkdir_p
692MKDIR_P
693INSTALL_STRIP_PROGRAM
694STRIP
695install_sh
696MAKEINFO
697AUTOHEADER
698AUTOMAKE
699AUTOCONF
700ACLOCAL
701VERSION
702PACKAGE
703CYGPATH_W
704am__isrc
705INSTALL_DATA
706INSTALL_SCRIPT
707INSTALL_PROGRAM
708OBJEXT
709EXEEXT
710ac_ct_CC
711CPPFLAGS
712LDFLAGS
713CFLAGS
714CC
715target_os
716target_vendor
717target_cpu
718target
719host_os
720host_vendor
721host_cpu
722host
723build_os
724build_vendor
725build_cpu
726build
727target_alias
728host_alias
729build_alias
730LIBS
731ECHO_T
732ECHO_N
733ECHO_C
734DEFS
735mandir
736localedir
737libdir
738psdir
739pdfdir
740dvidir
741htmldir
742infodir
743docdir
744oldincludedir
745includedir
746localstatedir
747sharedstatedir
748sysconfdir
749datadir
750datarootdir
751libexecdir
752sbindir
753bindir
754program_transform_name
755prefix
756exec_prefix
757PACKAGE_URL
758PACKAGE_BUGREPORT
759PACKAGE_STRING
760PACKAGE_VERSION
761PACKAGE_TARNAME
762PACKAGE_NAME
763PATH_SEPARATOR
764SHELL'
765ac_subst_files=''
766ac_user_opts='
767enable_option_checking
768enable_dependency_tracking
769enable_shared
770enable_static
771with_pic
772enable_fast_install
773with_gnu_ld
774enable_libtool_lock
775enable_plugins
776enable_largefile
777enable_targets
778enable_deterministic_archives
779enable_default_strings_all
780enable_werror
781enable_build_warnings
782enable_nls
783enable_maintainer_mode
784with_system_zlib
785enable_rpath
786with_libiconv_prefix
787'
788      ac_precious_vars='build_alias
789host_alias
790target_alias
791CC
792CFLAGS
793LDFLAGS
794LIBS
795CPPFLAGS
796CPP
797YACC
798YFLAGS'
799
800
801# Initialize some variables set by options.
802ac_init_help=
803ac_init_version=false
804ac_unrecognized_opts=
805ac_unrecognized_sep=
806# The variables have the same names as the options, with
807# dashes changed to underlines.
808cache_file=/dev/null
809exec_prefix=NONE
810no_create=
811no_recursion=
812prefix=NONE
813program_prefix=NONE
814program_suffix=NONE
815program_transform_name=s,x,x,
816silent=
817site=
818srcdir=
819verbose=
820x_includes=NONE
821x_libraries=NONE
822
823# Installation directory options.
824# These are left unexpanded so users can "make install exec_prefix=/foo"
825# and all the variables that are supposed to be based on exec_prefix
826# by default will actually change.
827# Use braces instead of parens because sh, perl, etc. also accept them.
828# (The list follows the same order as the GNU Coding Standards.)
829bindir='${exec_prefix}/bin'
830sbindir='${exec_prefix}/sbin'
831libexecdir='${exec_prefix}/libexec'
832datarootdir='${prefix}/share'
833datadir='${datarootdir}'
834sysconfdir='${prefix}/etc'
835sharedstatedir='${prefix}/com'
836localstatedir='${prefix}/var'
837includedir='${prefix}/include'
838oldincludedir='/usr/include'
839docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
840infodir='${datarootdir}/info'
841htmldir='${docdir}'
842dvidir='${docdir}'
843pdfdir='${docdir}'
844psdir='${docdir}'
845libdir='${exec_prefix}/lib'
846localedir='${datarootdir}/locale'
847mandir='${datarootdir}/man'
848
849ac_prev=
850ac_dashdash=
851for ac_option
852do
853  # If the previous option needs an argument, assign it.
854  if test -n "$ac_prev"; then
855    eval $ac_prev=\$ac_option
856    ac_prev=
857    continue
858  fi
859
860  case $ac_option in
861  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
862  *)	ac_optarg=yes ;;
863  esac
864
865  # Accept the important Cygnus configure options, so we can diagnose typos.
866
867  case $ac_dashdash$ac_option in
868  --)
869    ac_dashdash=yes ;;
870
871  -bindir | --bindir | --bindi | --bind | --bin | --bi)
872    ac_prev=bindir ;;
873  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
874    bindir=$ac_optarg ;;
875
876  -build | --build | --buil | --bui | --bu)
877    ac_prev=build_alias ;;
878  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
879    build_alias=$ac_optarg ;;
880
881  -cache-file | --cache-file | --cache-fil | --cache-fi \
882  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
883    ac_prev=cache_file ;;
884  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
885  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
886    cache_file=$ac_optarg ;;
887
888  --config-cache | -C)
889    cache_file=config.cache ;;
890
891  -datadir | --datadir | --datadi | --datad)
892    ac_prev=datadir ;;
893  -datadir=* | --datadir=* | --datadi=* | --datad=*)
894    datadir=$ac_optarg ;;
895
896  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
897  | --dataroo | --dataro | --datar)
898    ac_prev=datarootdir ;;
899  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
900  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
901    datarootdir=$ac_optarg ;;
902
903  -disable-* | --disable-*)
904    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
905    # Reject names that are not valid shell variable names.
906    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
907      as_fn_error "invalid feature name: $ac_useropt"
908    ac_useropt_orig=$ac_useropt
909    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
910    case $ac_user_opts in
911      *"
912"enable_$ac_useropt"
913"*) ;;
914      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
915	 ac_unrecognized_sep=', ';;
916    esac
917    eval enable_$ac_useropt=no ;;
918
919  -docdir | --docdir | --docdi | --doc | --do)
920    ac_prev=docdir ;;
921  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
922    docdir=$ac_optarg ;;
923
924  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
925    ac_prev=dvidir ;;
926  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
927    dvidir=$ac_optarg ;;
928
929  -enable-* | --enable-*)
930    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
931    # Reject names that are not valid shell variable names.
932    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
933      as_fn_error "invalid feature name: $ac_useropt"
934    ac_useropt_orig=$ac_useropt
935    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
936    case $ac_user_opts in
937      *"
938"enable_$ac_useropt"
939"*) ;;
940      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
941	 ac_unrecognized_sep=', ';;
942    esac
943    eval enable_$ac_useropt=\$ac_optarg ;;
944
945  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
946  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
947  | --exec | --exe | --ex)
948    ac_prev=exec_prefix ;;
949  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
950  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
951  | --exec=* | --exe=* | --ex=*)
952    exec_prefix=$ac_optarg ;;
953
954  -gas | --gas | --ga | --g)
955    # Obsolete; use --with-gas.
956    with_gas=yes ;;
957
958  -help | --help | --hel | --he | -h)
959    ac_init_help=long ;;
960  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
961    ac_init_help=recursive ;;
962  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
963    ac_init_help=short ;;
964
965  -host | --host | --hos | --ho)
966    ac_prev=host_alias ;;
967  -host=* | --host=* | --hos=* | --ho=*)
968    host_alias=$ac_optarg ;;
969
970  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
971    ac_prev=htmldir ;;
972  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
973  | --ht=*)
974    htmldir=$ac_optarg ;;
975
976  -includedir | --includedir | --includedi | --included | --include \
977  | --includ | --inclu | --incl | --inc)
978    ac_prev=includedir ;;
979  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
980  | --includ=* | --inclu=* | --incl=* | --inc=*)
981    includedir=$ac_optarg ;;
982
983  -infodir | --infodir | --infodi | --infod | --info | --inf)
984    ac_prev=infodir ;;
985  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
986    infodir=$ac_optarg ;;
987
988  -libdir | --libdir | --libdi | --libd)
989    ac_prev=libdir ;;
990  -libdir=* | --libdir=* | --libdi=* | --libd=*)
991    libdir=$ac_optarg ;;
992
993  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
994  | --libexe | --libex | --libe)
995    ac_prev=libexecdir ;;
996  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
997  | --libexe=* | --libex=* | --libe=*)
998    libexecdir=$ac_optarg ;;
999
1000  -localedir | --localedir | --localedi | --localed | --locale)
1001    ac_prev=localedir ;;
1002  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1003    localedir=$ac_optarg ;;
1004
1005  -localstatedir | --localstatedir | --localstatedi | --localstated \
1006  | --localstate | --localstat | --localsta | --localst | --locals)
1007    ac_prev=localstatedir ;;
1008  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1009  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1010    localstatedir=$ac_optarg ;;
1011
1012  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1013    ac_prev=mandir ;;
1014  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1015    mandir=$ac_optarg ;;
1016
1017  -nfp | --nfp | --nf)
1018    # Obsolete; use --without-fp.
1019    with_fp=no ;;
1020
1021  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1022  | --no-cr | --no-c | -n)
1023    no_create=yes ;;
1024
1025  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1026  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1027    no_recursion=yes ;;
1028
1029  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1030  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1031  | --oldin | --oldi | --old | --ol | --o)
1032    ac_prev=oldincludedir ;;
1033  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1034  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1035  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1036    oldincludedir=$ac_optarg ;;
1037
1038  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1039    ac_prev=prefix ;;
1040  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1041    prefix=$ac_optarg ;;
1042
1043  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1044  | --program-pre | --program-pr | --program-p)
1045    ac_prev=program_prefix ;;
1046  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1047  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1048    program_prefix=$ac_optarg ;;
1049
1050  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1051  | --program-suf | --program-su | --program-s)
1052    ac_prev=program_suffix ;;
1053  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1054  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1055    program_suffix=$ac_optarg ;;
1056
1057  -program-transform-name | --program-transform-name \
1058  | --program-transform-nam | --program-transform-na \
1059  | --program-transform-n | --program-transform- \
1060  | --program-transform | --program-transfor \
1061  | --program-transfo | --program-transf \
1062  | --program-trans | --program-tran \
1063  | --progr-tra | --program-tr | --program-t)
1064    ac_prev=program_transform_name ;;
1065  -program-transform-name=* | --program-transform-name=* \
1066  | --program-transform-nam=* | --program-transform-na=* \
1067  | --program-transform-n=* | --program-transform-=* \
1068  | --program-transform=* | --program-transfor=* \
1069  | --program-transfo=* | --program-transf=* \
1070  | --program-trans=* | --program-tran=* \
1071  | --progr-tra=* | --program-tr=* | --program-t=*)
1072    program_transform_name=$ac_optarg ;;
1073
1074  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1075    ac_prev=pdfdir ;;
1076  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1077    pdfdir=$ac_optarg ;;
1078
1079  -psdir | --psdir | --psdi | --psd | --ps)
1080    ac_prev=psdir ;;
1081  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1082    psdir=$ac_optarg ;;
1083
1084  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1085  | -silent | --silent | --silen | --sile | --sil)
1086    silent=yes ;;
1087
1088  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1089    ac_prev=sbindir ;;
1090  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1091  | --sbi=* | --sb=*)
1092    sbindir=$ac_optarg ;;
1093
1094  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1095  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1096  | --sharedst | --shareds | --shared | --share | --shar \
1097  | --sha | --sh)
1098    ac_prev=sharedstatedir ;;
1099  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1100  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1101  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1102  | --sha=* | --sh=*)
1103    sharedstatedir=$ac_optarg ;;
1104
1105  -site | --site | --sit)
1106    ac_prev=site ;;
1107  -site=* | --site=* | --sit=*)
1108    site=$ac_optarg ;;
1109
1110  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1111    ac_prev=srcdir ;;
1112  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1113    srcdir=$ac_optarg ;;
1114
1115  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1116  | --syscon | --sysco | --sysc | --sys | --sy)
1117    ac_prev=sysconfdir ;;
1118  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1119  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1120    sysconfdir=$ac_optarg ;;
1121
1122  -target | --target | --targe | --targ | --tar | --ta | --t)
1123    ac_prev=target_alias ;;
1124  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1125    target_alias=$ac_optarg ;;
1126
1127  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1128    verbose=yes ;;
1129
1130  -version | --version | --versio | --versi | --vers | -V)
1131    ac_init_version=: ;;
1132
1133  -with-* | --with-*)
1134    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1135    # Reject names that are not valid shell variable names.
1136    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1137      as_fn_error "invalid package name: $ac_useropt"
1138    ac_useropt_orig=$ac_useropt
1139    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1140    case $ac_user_opts in
1141      *"
1142"with_$ac_useropt"
1143"*) ;;
1144      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1145	 ac_unrecognized_sep=', ';;
1146    esac
1147    eval with_$ac_useropt=\$ac_optarg ;;
1148
1149  -without-* | --without-*)
1150    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1151    # Reject names that are not valid shell variable names.
1152    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1153      as_fn_error "invalid package name: $ac_useropt"
1154    ac_useropt_orig=$ac_useropt
1155    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1156    case $ac_user_opts in
1157      *"
1158"with_$ac_useropt"
1159"*) ;;
1160      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1161	 ac_unrecognized_sep=', ';;
1162    esac
1163    eval with_$ac_useropt=no ;;
1164
1165  --x)
1166    # Obsolete; use --with-x.
1167    with_x=yes ;;
1168
1169  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1170  | --x-incl | --x-inc | --x-in | --x-i)
1171    ac_prev=x_includes ;;
1172  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1173  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1174    x_includes=$ac_optarg ;;
1175
1176  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1177  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1178    ac_prev=x_libraries ;;
1179  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1180  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1181    x_libraries=$ac_optarg ;;
1182
1183  -*) as_fn_error "unrecognized option: \`$ac_option'
1184Try \`$0 --help' for more information."
1185    ;;
1186
1187  *=*)
1188    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1189    # Reject names that are not valid shell variable names.
1190    case $ac_envvar in #(
1191      '' | [0-9]* | *[!_$as_cr_alnum]* )
1192      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1193    esac
1194    eval $ac_envvar=\$ac_optarg
1195    export $ac_envvar ;;
1196
1197  *)
1198    # FIXME: should be removed in autoconf 3.0.
1199    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1200    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1201      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1202    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1203    ;;
1204
1205  esac
1206done
1207
1208if test -n "$ac_prev"; then
1209  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1210  as_fn_error "missing argument to $ac_option"
1211fi
1212
1213if test -n "$ac_unrecognized_opts"; then
1214  case $enable_option_checking in
1215    no) ;;
1216    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1217    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1218  esac
1219fi
1220
1221# Check all directory arguments for consistency.
1222for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1223		datadir sysconfdir sharedstatedir localstatedir includedir \
1224		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1225		libdir localedir mandir
1226do
1227  eval ac_val=\$$ac_var
1228  # Remove trailing slashes.
1229  case $ac_val in
1230    */ )
1231      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1232      eval $ac_var=\$ac_val;;
1233  esac
1234  # Be sure to have absolute directory names.
1235  case $ac_val in
1236    [\\/$]* | ?:[\\/]* )  continue;;
1237    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1238  esac
1239  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1240done
1241
1242# There might be people who depend on the old broken behavior: `$host'
1243# used to hold the argument of --host etc.
1244# FIXME: To remove some day.
1245build=$build_alias
1246host=$host_alias
1247target=$target_alias
1248
1249# FIXME: To remove some day.
1250if test "x$host_alias" != x; then
1251  if test "x$build_alias" = x; then
1252    cross_compiling=maybe
1253    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1254    If a cross compiler is detected then cross compile mode will be used." >&2
1255  elif test "x$build_alias" != "x$host_alias"; then
1256    cross_compiling=yes
1257  fi
1258fi
1259
1260ac_tool_prefix=
1261test -n "$host_alias" && ac_tool_prefix=$host_alias-
1262
1263test "$silent" = yes && exec 6>/dev/null
1264
1265
1266ac_pwd=`pwd` && test -n "$ac_pwd" &&
1267ac_ls_di=`ls -di .` &&
1268ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1269  as_fn_error "working directory cannot be determined"
1270test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1271  as_fn_error "pwd does not report name of working directory"
1272
1273
1274# Find the source files, if location was not specified.
1275if test -z "$srcdir"; then
1276  ac_srcdir_defaulted=yes
1277  # Try the directory containing this script, then the parent directory.
1278  ac_confdir=`$as_dirname -- "$as_myself" ||
1279$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1280	 X"$as_myself" : 'X\(//\)[^/]' \| \
1281	 X"$as_myself" : 'X\(//\)$' \| \
1282	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1283$as_echo X"$as_myself" |
1284    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1285	    s//\1/
1286	    q
1287	  }
1288	  /^X\(\/\/\)[^/].*/{
1289	    s//\1/
1290	    q
1291	  }
1292	  /^X\(\/\/\)$/{
1293	    s//\1/
1294	    q
1295	  }
1296	  /^X\(\/\).*/{
1297	    s//\1/
1298	    q
1299	  }
1300	  s/.*/./; q'`
1301  srcdir=$ac_confdir
1302  if test ! -r "$srcdir/$ac_unique_file"; then
1303    srcdir=..
1304  fi
1305else
1306  ac_srcdir_defaulted=no
1307fi
1308if test ! -r "$srcdir/$ac_unique_file"; then
1309  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1310  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1311fi
1312ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1313ac_abs_confdir=`(
1314	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1315	pwd)`
1316# When building in place, set srcdir=.
1317if test "$ac_abs_confdir" = "$ac_pwd"; then
1318  srcdir=.
1319fi
1320# Remove unnecessary trailing slashes from srcdir.
1321# Double slashes in file names in object file debugging info
1322# mess up M-x gdb in Emacs.
1323case $srcdir in
1324*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1325esac
1326for ac_var in $ac_precious_vars; do
1327  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1328  eval ac_env_${ac_var}_value=\$${ac_var}
1329  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1330  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1331done
1332
1333#
1334# Report the --help message.
1335#
1336if test "$ac_init_help" = "long"; then
1337  # Omit some internal or obsolete options to make the list less imposing.
1338  # This message is too long to be a string in the A/UX 3.1 sh.
1339  cat <<_ACEOF
1340\`configure' configures binutils 2.27 to adapt to many kinds of systems.
1341
1342Usage: $0 [OPTION]... [VAR=VALUE]...
1343
1344To assign environment variables (e.g., CC, CFLAGS...), specify them as
1345VAR=VALUE.  See below for descriptions of some of the useful variables.
1346
1347Defaults for the options are specified in brackets.
1348
1349Configuration:
1350  -h, --help              display this help and exit
1351      --help=short        display options specific to this package
1352      --help=recursive    display the short help of all the included packages
1353  -V, --version           display version information and exit
1354  -q, --quiet, --silent   do not print \`checking...' messages
1355      --cache-file=FILE   cache test results in FILE [disabled]
1356  -C, --config-cache      alias for \`--cache-file=config.cache'
1357  -n, --no-create         do not create output files
1358      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1359
1360Installation directories:
1361  --prefix=PREFIX         install architecture-independent files in PREFIX
1362                          [$ac_default_prefix]
1363  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1364                          [PREFIX]
1365
1366By default, \`make install' will install all the files in
1367\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1368an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1369for instance \`--prefix=\$HOME'.
1370
1371For better control, use the options below.
1372
1373Fine tuning of the installation directories:
1374  --bindir=DIR            user executables [EPREFIX/bin]
1375  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1376  --libexecdir=DIR        program executables [EPREFIX/libexec]
1377  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1378  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1379  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1380  --libdir=DIR            object code libraries [EPREFIX/lib]
1381  --includedir=DIR        C header files [PREFIX/include]
1382  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1383  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1384  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1385  --infodir=DIR           info documentation [DATAROOTDIR/info]
1386  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1387  --mandir=DIR            man documentation [DATAROOTDIR/man]
1388  --docdir=DIR            documentation root [DATAROOTDIR/doc/binutils]
1389  --htmldir=DIR           html documentation [DOCDIR]
1390  --dvidir=DIR            dvi documentation [DOCDIR]
1391  --pdfdir=DIR            pdf documentation [DOCDIR]
1392  --psdir=DIR             ps documentation [DOCDIR]
1393_ACEOF
1394
1395  cat <<\_ACEOF
1396
1397Program names:
1398  --program-prefix=PREFIX            prepend PREFIX to installed program names
1399  --program-suffix=SUFFIX            append SUFFIX to installed program names
1400  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1401
1402System types:
1403  --build=BUILD     configure for building on BUILD [guessed]
1404  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1405  --target=TARGET   configure for building compilers for TARGET [HOST]
1406_ACEOF
1407fi
1408
1409if test -n "$ac_init_help"; then
1410  case $ac_init_help in
1411     short | recursive ) echo "Configuration of binutils 2.27:";;
1412   esac
1413  cat <<\_ACEOF
1414
1415Optional Features:
1416  --disable-option-checking  ignore unrecognized --enable/--with options
1417  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1418  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1419  --disable-dependency-tracking  speeds up one-time build
1420  --enable-dependency-tracking   do not reject slow dependency extractors
1421  --enable-shared[=PKGS]  build shared libraries [default=yes]
1422  --enable-static[=PKGS]  build static libraries [default=yes]
1423  --enable-fast-install[=PKGS]
1424                          optimize for fast installation [default=yes]
1425  --disable-libtool-lock  avoid locking (might break parallel builds)
1426  --enable-plugins        Enable support for plugins
1427  --disable-largefile     omit support for large files
1428  --enable-targets        alternative target configurations
1429  --enable-deterministic-archives
1430                          ar and ranlib default to -D behavior
1431  --disable-default-strings-all
1432                          strings defaults to --data behavior
1433  --enable-werror         treat compile warnings as errors
1434  --enable-build-warnings enable build-time compiler warnings
1435  --disable-nls           do not use Native Language Support
1436  --enable-maintainer-mode  enable make rules and dependencies not useful
1437			  (and sometimes confusing) to the casual installer
1438  --disable-rpath         do not hardcode runtime library paths
1439
1440Optional Packages:
1441  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1442  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1443  --with-pic              try to use only PIC/non-PIC objects [default=use
1444                          both]
1445  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1446  --with-system-zlib      use installed libz
1447  --with-gnu-ld           assume the C compiler uses GNU ld default=no
1448  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1449  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1450
1451Some influential environment variables:
1452  CC          C compiler command
1453  CFLAGS      C compiler flags
1454  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1455              nonstandard directory <lib dir>
1456  LIBS        libraries to pass to the linker, e.g. -l<library>
1457  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1458              you have headers in a nonstandard directory <include dir>
1459  CPP         C preprocessor
1460  YACC        The `Yet Another C Compiler' implementation to use. Defaults to
1461              the first program found out of: `bison -y', `byacc', `yacc'.
1462  YFLAGS      The list of arguments that will be passed by default to $YACC.
1463              This script will default YFLAGS to the empty string to avoid a
1464              default value of `-d' given by some make applications.
1465
1466Use these variables to override the choices made by `configure' or to help
1467it to find libraries and programs with nonstandard names/locations.
1468
1469Report bugs to the package provider.
1470_ACEOF
1471ac_status=$?
1472fi
1473
1474if test "$ac_init_help" = "recursive"; then
1475  # If there are subdirs, report their specific --help.
1476  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1477    test -d "$ac_dir" ||
1478      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1479      continue
1480    ac_builddir=.
1481
1482case "$ac_dir" in
1483.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1484*)
1485  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1486  # A ".." for each directory in $ac_dir_suffix.
1487  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1488  case $ac_top_builddir_sub in
1489  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1490  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1491  esac ;;
1492esac
1493ac_abs_top_builddir=$ac_pwd
1494ac_abs_builddir=$ac_pwd$ac_dir_suffix
1495# for backward compatibility:
1496ac_top_builddir=$ac_top_build_prefix
1497
1498case $srcdir in
1499  .)  # We are building in place.
1500    ac_srcdir=.
1501    ac_top_srcdir=$ac_top_builddir_sub
1502    ac_abs_top_srcdir=$ac_pwd ;;
1503  [\\/]* | ?:[\\/]* )  # Absolute name.
1504    ac_srcdir=$srcdir$ac_dir_suffix;
1505    ac_top_srcdir=$srcdir
1506    ac_abs_top_srcdir=$srcdir ;;
1507  *) # Relative name.
1508    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1509    ac_top_srcdir=$ac_top_build_prefix$srcdir
1510    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1511esac
1512ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1513
1514    cd "$ac_dir" || { ac_status=$?; continue; }
1515    # Check for guested configure.
1516    if test -f "$ac_srcdir/configure.gnu"; then
1517      echo &&
1518      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1519    elif test -f "$ac_srcdir/configure"; then
1520      echo &&
1521      $SHELL "$ac_srcdir/configure" --help=recursive
1522    else
1523      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1524    fi || ac_status=$?
1525    cd "$ac_pwd" || { ac_status=$?; break; }
1526  done
1527fi
1528
1529test -n "$ac_init_help" && exit $ac_status
1530if $ac_init_version; then
1531  cat <<\_ACEOF
1532binutils configure 2.27
1533generated by GNU Autoconf 2.64
1534
1535Copyright (C) 2009 Free Software Foundation, Inc.
1536This configure script is free software; the Free Software Foundation
1537gives unlimited permission to copy, distribute and modify it.
1538_ACEOF
1539  exit
1540fi
1541
1542## ------------------------ ##
1543## Autoconf initialization. ##
1544## ------------------------ ##
1545
1546# ac_fn_c_try_compile LINENO
1547# --------------------------
1548# Try to compile conftest.$ac_ext, and return whether this succeeded.
1549ac_fn_c_try_compile ()
1550{
1551  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1552  rm -f conftest.$ac_objext
1553  if { { ac_try="$ac_compile"
1554case "(($ac_try" in
1555  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1556  *) ac_try_echo=$ac_try;;
1557esac
1558eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1559$as_echo "$ac_try_echo"; } >&5
1560  (eval "$ac_compile") 2>conftest.err
1561  ac_status=$?
1562  if test -s conftest.err; then
1563    grep -v '^ *+' conftest.err >conftest.er1
1564    cat conftest.er1 >&5
1565    mv -f conftest.er1 conftest.err
1566  fi
1567  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1568  test $ac_status = 0; } && {
1569	 test -z "$ac_c_werror_flag" ||
1570	 test ! -s conftest.err
1571       } && test -s conftest.$ac_objext; then :
1572  ac_retval=0
1573else
1574  $as_echo "$as_me: failed program was:" >&5
1575sed 's/^/| /' conftest.$ac_ext >&5
1576
1577	ac_retval=1
1578fi
1579  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1580  return $ac_retval
1581
1582} # ac_fn_c_try_compile
1583
1584# ac_fn_c_try_link LINENO
1585# -----------------------
1586# Try to link conftest.$ac_ext, and return whether this succeeded.
1587ac_fn_c_try_link ()
1588{
1589  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1590  rm -f conftest.$ac_objext conftest$ac_exeext
1591  if { { ac_try="$ac_link"
1592case "(($ac_try" in
1593  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1594  *) ac_try_echo=$ac_try;;
1595esac
1596eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1597$as_echo "$ac_try_echo"; } >&5
1598  (eval "$ac_link") 2>conftest.err
1599  ac_status=$?
1600  if test -s conftest.err; then
1601    grep -v '^ *+' conftest.err >conftest.er1
1602    cat conftest.er1 >&5
1603    mv -f conftest.er1 conftest.err
1604  fi
1605  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1606  test $ac_status = 0; } && {
1607	 test -z "$ac_c_werror_flag" ||
1608	 test ! -s conftest.err
1609       } && test -s conftest$ac_exeext && {
1610	 test "$cross_compiling" = yes ||
1611	 $as_test_x conftest$ac_exeext
1612       }; then :
1613  ac_retval=0
1614else
1615  $as_echo "$as_me: failed program was:" >&5
1616sed 's/^/| /' conftest.$ac_ext >&5
1617
1618	ac_retval=1
1619fi
1620  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1621  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1622  # interfere with the next link command; also delete a directory that is
1623  # left behind by Apple's compiler.  We do this before executing the actions.
1624  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1625  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1626  return $ac_retval
1627
1628} # ac_fn_c_try_link
1629
1630# ac_fn_c_try_cpp LINENO
1631# ----------------------
1632# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1633ac_fn_c_try_cpp ()
1634{
1635  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1636  if { { ac_try="$ac_cpp conftest.$ac_ext"
1637case "(($ac_try" in
1638  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1639  *) ac_try_echo=$ac_try;;
1640esac
1641eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1642$as_echo "$ac_try_echo"; } >&5
1643  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1644  ac_status=$?
1645  if test -s conftest.err; then
1646    grep -v '^ *+' conftest.err >conftest.er1
1647    cat conftest.er1 >&5
1648    mv -f conftest.er1 conftest.err
1649  fi
1650  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1651  test $ac_status = 0; } >/dev/null && {
1652	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1653	 test ! -s conftest.err
1654       }; then :
1655  ac_retval=0
1656else
1657  $as_echo "$as_me: failed program was:" >&5
1658sed 's/^/| /' conftest.$ac_ext >&5
1659
1660    ac_retval=1
1661fi
1662  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1663  return $ac_retval
1664
1665} # ac_fn_c_try_cpp
1666
1667# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1668# -------------------------------------------------------
1669# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1670# the include files in INCLUDES and setting the cache variable VAR
1671# accordingly.
1672ac_fn_c_check_header_mongrel ()
1673{
1674  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1675  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1676  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1677$as_echo_n "checking for $2... " >&6; }
1678if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1679  $as_echo_n "(cached) " >&6
1680fi
1681eval ac_res=\$$3
1682	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1683$as_echo "$ac_res" >&6; }
1684else
1685  # Is the header compilable?
1686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1687$as_echo_n "checking $2 usability... " >&6; }
1688cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1689/* end confdefs.h.  */
1690$4
1691#include <$2>
1692_ACEOF
1693if ac_fn_c_try_compile "$LINENO"; then :
1694  ac_header_compiler=yes
1695else
1696  ac_header_compiler=no
1697fi
1698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1700$as_echo "$ac_header_compiler" >&6; }
1701
1702# Is the header present?
1703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1704$as_echo_n "checking $2 presence... " >&6; }
1705cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1706/* end confdefs.h.  */
1707#include <$2>
1708_ACEOF
1709if ac_fn_c_try_cpp "$LINENO"; then :
1710  ac_header_preproc=yes
1711else
1712  ac_header_preproc=no
1713fi
1714rm -f conftest.err conftest.$ac_ext
1715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1716$as_echo "$ac_header_preproc" >&6; }
1717
1718# So?  What about this header?
1719case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1720  yes:no: )
1721    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1722$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1723    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1724$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1725    ;;
1726  no:yes:* )
1727    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1728$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1729    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1730$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1731    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1732$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1733    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1734$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1735    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1736$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1737    ;;
1738esac
1739  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1740$as_echo_n "checking for $2... " >&6; }
1741if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1742  $as_echo_n "(cached) " >&6
1743else
1744  eval "$3=\$ac_header_compiler"
1745fi
1746eval ac_res=\$$3
1747	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1748$as_echo "$ac_res" >&6; }
1749fi
1750  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1751
1752} # ac_fn_c_check_header_mongrel
1753
1754# ac_fn_c_try_run LINENO
1755# ----------------------
1756# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1757# that executables *can* be run.
1758ac_fn_c_try_run ()
1759{
1760  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1761  if { { ac_try="$ac_link"
1762case "(($ac_try" in
1763  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1764  *) ac_try_echo=$ac_try;;
1765esac
1766eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1767$as_echo "$ac_try_echo"; } >&5
1768  (eval "$ac_link") 2>&5
1769  ac_status=$?
1770  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1771  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1772  { { case "(($ac_try" in
1773  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1774  *) ac_try_echo=$ac_try;;
1775esac
1776eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1777$as_echo "$ac_try_echo"; } >&5
1778  (eval "$ac_try") 2>&5
1779  ac_status=$?
1780  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1781  test $ac_status = 0; }; }; then :
1782  ac_retval=0
1783else
1784  $as_echo "$as_me: program exited with status $ac_status" >&5
1785       $as_echo "$as_me: failed program was:" >&5
1786sed 's/^/| /' conftest.$ac_ext >&5
1787
1788       ac_retval=$ac_status
1789fi
1790  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1791  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1792  return $ac_retval
1793
1794} # ac_fn_c_try_run
1795
1796# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1797# -------------------------------------------------------
1798# Tests whether HEADER exists and can be compiled using the include files in
1799# INCLUDES, setting the cache variable VAR accordingly.
1800ac_fn_c_check_header_compile ()
1801{
1802  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1803  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1804$as_echo_n "checking for $2... " >&6; }
1805if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1806  $as_echo_n "(cached) " >&6
1807else
1808  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1809/* end confdefs.h.  */
1810$4
1811#include <$2>
1812_ACEOF
1813if ac_fn_c_try_compile "$LINENO"; then :
1814  eval "$3=yes"
1815else
1816  eval "$3=no"
1817fi
1818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1819fi
1820eval ac_res=\$$3
1821	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1822$as_echo "$ac_res" >&6; }
1823  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1824
1825} # ac_fn_c_check_header_compile
1826
1827# ac_fn_c_check_func LINENO FUNC VAR
1828# ----------------------------------
1829# Tests whether FUNC exists, setting the cache variable VAR accordingly
1830ac_fn_c_check_func ()
1831{
1832  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1833  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1834$as_echo_n "checking for $2... " >&6; }
1835if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1836  $as_echo_n "(cached) " >&6
1837else
1838  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1839/* end confdefs.h.  */
1840/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1841   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1842#define $2 innocuous_$2
1843
1844/* System header to define __stub macros and hopefully few prototypes,
1845    which can conflict with char $2 (); below.
1846    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1847    <limits.h> exists even on freestanding compilers.  */
1848
1849#ifdef __STDC__
1850# include <limits.h>
1851#else
1852# include <assert.h>
1853#endif
1854
1855#undef $2
1856
1857/* Override any GCC internal prototype to avoid an error.
1858   Use char because int might match the return type of a GCC
1859   builtin and then its argument prototype would still apply.  */
1860#ifdef __cplusplus
1861extern "C"
1862#endif
1863char $2 ();
1864/* The GNU C library defines this for functions which it implements
1865    to always fail with ENOSYS.  Some functions are actually named
1866    something starting with __ and the normal name is an alias.  */
1867#if defined __stub_$2 || defined __stub___$2
1868choke me
1869#endif
1870
1871int
1872main ()
1873{
1874return $2 ();
1875  ;
1876  return 0;
1877}
1878_ACEOF
1879if ac_fn_c_try_link "$LINENO"; then :
1880  eval "$3=yes"
1881else
1882  eval "$3=no"
1883fi
1884rm -f core conftest.err conftest.$ac_objext \
1885    conftest$ac_exeext conftest.$ac_ext
1886fi
1887eval ac_res=\$$3
1888	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1889$as_echo "$ac_res" >&6; }
1890  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1891
1892} # ac_fn_c_check_func
1893
1894# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1895# --------------------------------------------
1896# Tries to find the compile-time value of EXPR in a program that includes
1897# INCLUDES, setting VAR accordingly. Returns whether the value could be
1898# computed
1899ac_fn_c_compute_int ()
1900{
1901  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1902  if test "$cross_compiling" = yes; then
1903    # Depending upon the size, compute the lo and hi bounds.
1904cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1905/* end confdefs.h.  */
1906$4
1907int
1908main ()
1909{
1910static int test_array [1 - 2 * !(($2) >= 0)];
1911test_array [0] = 0
1912
1913  ;
1914  return 0;
1915}
1916_ACEOF
1917if ac_fn_c_try_compile "$LINENO"; then :
1918  ac_lo=0 ac_mid=0
1919  while :; do
1920    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1921/* end confdefs.h.  */
1922$4
1923int
1924main ()
1925{
1926static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1927test_array [0] = 0
1928
1929  ;
1930  return 0;
1931}
1932_ACEOF
1933if ac_fn_c_try_compile "$LINENO"; then :
1934  ac_hi=$ac_mid; break
1935else
1936  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1937			if test $ac_lo -le $ac_mid; then
1938			  ac_lo= ac_hi=
1939			  break
1940			fi
1941			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1942fi
1943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1944  done
1945else
1946  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1947/* end confdefs.h.  */
1948$4
1949int
1950main ()
1951{
1952static int test_array [1 - 2 * !(($2) < 0)];
1953test_array [0] = 0
1954
1955  ;
1956  return 0;
1957}
1958_ACEOF
1959if ac_fn_c_try_compile "$LINENO"; then :
1960  ac_hi=-1 ac_mid=-1
1961  while :; do
1962    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1963/* end confdefs.h.  */
1964$4
1965int
1966main ()
1967{
1968static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1969test_array [0] = 0
1970
1971  ;
1972  return 0;
1973}
1974_ACEOF
1975if ac_fn_c_try_compile "$LINENO"; then :
1976  ac_lo=$ac_mid; break
1977else
1978  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1979			if test $ac_mid -le $ac_hi; then
1980			  ac_lo= ac_hi=
1981			  break
1982			fi
1983			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1984fi
1985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1986  done
1987else
1988  ac_lo= ac_hi=
1989fi
1990rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1991fi
1992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1993# Binary search between lo and hi bounds.
1994while test "x$ac_lo" != "x$ac_hi"; do
1995  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1996  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1997/* end confdefs.h.  */
1998$4
1999int
2000main ()
2001{
2002static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2003test_array [0] = 0
2004
2005  ;
2006  return 0;
2007}
2008_ACEOF
2009if ac_fn_c_try_compile "$LINENO"; then :
2010  ac_hi=$ac_mid
2011else
2012  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2013fi
2014rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2015done
2016case $ac_lo in #((
2017?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2018'') ac_retval=1 ;;
2019esac
2020  else
2021    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2022/* end confdefs.h.  */
2023$4
2024static long int longval () { return $2; }
2025static unsigned long int ulongval () { return $2; }
2026#include <stdio.h>
2027#include <stdlib.h>
2028int
2029main ()
2030{
2031
2032  FILE *f = fopen ("conftest.val", "w");
2033  if (! f)
2034    return 1;
2035  if (($2) < 0)
2036    {
2037      long int i = longval ();
2038      if (i != ($2))
2039	return 1;
2040      fprintf (f, "%ld", i);
2041    }
2042  else
2043    {
2044      unsigned long int i = ulongval ();
2045      if (i != ($2))
2046	return 1;
2047      fprintf (f, "%lu", i);
2048    }
2049  /* Do not output a trailing newline, as this causes \r\n confusion
2050     on some platforms.  */
2051  return ferror (f) || fclose (f) != 0;
2052
2053  ;
2054  return 0;
2055}
2056_ACEOF
2057if ac_fn_c_try_run "$LINENO"; then :
2058  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2059else
2060  ac_retval=1
2061fi
2062rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2063  conftest.$ac_objext conftest.beam conftest.$ac_ext
2064rm -f conftest.val
2065
2066  fi
2067  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2068  return $ac_retval
2069
2070} # ac_fn_c_compute_int
2071
2072# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2073# -------------------------------------------
2074# Tests whether TYPE exists after having included INCLUDES, setting cache
2075# variable VAR accordingly.
2076ac_fn_c_check_type ()
2077{
2078  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2079  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2080$as_echo_n "checking for $2... " >&6; }
2081if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2082  $as_echo_n "(cached) " >&6
2083else
2084  eval "$3=no"
2085  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2086/* end confdefs.h.  */
2087$4
2088int
2089main ()
2090{
2091if (sizeof ($2))
2092	 return 0;
2093  ;
2094  return 0;
2095}
2096_ACEOF
2097if ac_fn_c_try_compile "$LINENO"; then :
2098  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2099/* end confdefs.h.  */
2100$4
2101int
2102main ()
2103{
2104if (sizeof (($2)))
2105	    return 0;
2106  ;
2107  return 0;
2108}
2109_ACEOF
2110if ac_fn_c_try_compile "$LINENO"; then :
2111
2112else
2113  eval "$3=yes"
2114fi
2115rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2116fi
2117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2118fi
2119eval ac_res=\$$3
2120	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2121$as_echo "$ac_res" >&6; }
2122  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2123
2124} # ac_fn_c_check_type
2125
2126# ac_fn_c_check_decl LINENO SYMBOL VAR
2127# ------------------------------------
2128# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2129ac_fn_c_check_decl ()
2130{
2131  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2132  as_decl_name=`echo $2|sed 's/ *(.*//'`
2133  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2134  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2135$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2136if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2137  $as_echo_n "(cached) " >&6
2138else
2139  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2140/* end confdefs.h.  */
2141$4
2142int
2143main ()
2144{
2145#ifndef $as_decl_name
2146#ifdef __cplusplus
2147  (void) $as_decl_use;
2148#else
2149  (void) $as_decl_name;
2150#endif
2151#endif
2152
2153  ;
2154  return 0;
2155}
2156_ACEOF
2157if ac_fn_c_try_compile "$LINENO"; then :
2158  eval "$3=yes"
2159else
2160  eval "$3=no"
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; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2168
2169} # ac_fn_c_check_decl
2170cat >config.log <<_ACEOF
2171This file contains any messages produced by compilers while
2172running configure, to aid debugging if configure makes a mistake.
2173
2174It was created by binutils $as_me 2.27, which was
2175generated by GNU Autoconf 2.64.  Invocation command line was
2176
2177  $ $0 $@
2178
2179_ACEOF
2180exec 5>>config.log
2181{
2182cat <<_ASUNAME
2183## --------- ##
2184## Platform. ##
2185## --------- ##
2186
2187hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2188uname -m = `(uname -m) 2>/dev/null || echo unknown`
2189uname -r = `(uname -r) 2>/dev/null || echo unknown`
2190uname -s = `(uname -s) 2>/dev/null || echo unknown`
2191uname -v = `(uname -v) 2>/dev/null || echo unknown`
2192
2193/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2194/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2195
2196/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2197/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2198/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2199/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2200/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2201/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2202/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2203
2204_ASUNAME
2205
2206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2207for as_dir in $PATH
2208do
2209  IFS=$as_save_IFS
2210  test -z "$as_dir" && as_dir=.
2211    $as_echo "PATH: $as_dir"
2212  done
2213IFS=$as_save_IFS
2214
2215} >&5
2216
2217cat >&5 <<_ACEOF
2218
2219
2220## ----------- ##
2221## Core tests. ##
2222## ----------- ##
2223
2224_ACEOF
2225
2226
2227# Keep a trace of the command line.
2228# Strip out --no-create and --no-recursion so they do not pile up.
2229# Strip out --silent because we don't want to record it for future runs.
2230# Also quote any args containing shell meta-characters.
2231# Make two passes to allow for proper duplicate-argument suppression.
2232ac_configure_args=
2233ac_configure_args0=
2234ac_configure_args1=
2235ac_must_keep_next=false
2236for ac_pass in 1 2
2237do
2238  for ac_arg
2239  do
2240    case $ac_arg in
2241    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2242    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2243    | -silent | --silent | --silen | --sile | --sil)
2244      continue ;;
2245    *\'*)
2246      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2247    esac
2248    case $ac_pass in
2249    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2250    2)
2251      as_fn_append ac_configure_args1 " '$ac_arg'"
2252      if test $ac_must_keep_next = true; then
2253	ac_must_keep_next=false # Got value, back to normal.
2254      else
2255	case $ac_arg in
2256	  *=* | --config-cache | -C | -disable-* | --disable-* \
2257	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2258	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2259	  | -with-* | --with-* | -without-* | --without-* | --x)
2260	    case "$ac_configure_args0 " in
2261	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2262	    esac
2263	    ;;
2264	  -* ) ac_must_keep_next=true ;;
2265	esac
2266      fi
2267      as_fn_append ac_configure_args " '$ac_arg'"
2268      ;;
2269    esac
2270  done
2271done
2272{ ac_configure_args0=; unset ac_configure_args0;}
2273{ ac_configure_args1=; unset ac_configure_args1;}
2274
2275# When interrupted or exit'd, cleanup temporary files, and complete
2276# config.log.  We remove comments because anyway the quotes in there
2277# would cause problems or look ugly.
2278# WARNING: Use '\'' to represent an apostrophe within the trap.
2279# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2280trap 'exit_status=$?
2281  # Save into config.log some information that might help in debugging.
2282  {
2283    echo
2284
2285    cat <<\_ASBOX
2286## ---------------- ##
2287## Cache variables. ##
2288## ---------------- ##
2289_ASBOX
2290    echo
2291    # The following way of writing the cache mishandles newlines in values,
2292(
2293  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2294    eval ac_val=\$$ac_var
2295    case $ac_val in #(
2296    *${as_nl}*)
2297      case $ac_var in #(
2298      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2299$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2300      esac
2301      case $ac_var in #(
2302      _ | IFS | as_nl) ;; #(
2303      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2304      *) { eval $ac_var=; unset $ac_var;} ;;
2305      esac ;;
2306    esac
2307  done
2308  (set) 2>&1 |
2309    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2310    *${as_nl}ac_space=\ *)
2311      sed -n \
2312	"s/'\''/'\''\\\\'\'''\''/g;
2313	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2314      ;; #(
2315    *)
2316      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2317      ;;
2318    esac |
2319    sort
2320)
2321    echo
2322
2323    cat <<\_ASBOX
2324## ----------------- ##
2325## Output variables. ##
2326## ----------------- ##
2327_ASBOX
2328    echo
2329    for ac_var in $ac_subst_vars
2330    do
2331      eval ac_val=\$$ac_var
2332      case $ac_val in
2333      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2334      esac
2335      $as_echo "$ac_var='\''$ac_val'\''"
2336    done | sort
2337    echo
2338
2339    if test -n "$ac_subst_files"; then
2340      cat <<\_ASBOX
2341## ------------------- ##
2342## File substitutions. ##
2343## ------------------- ##
2344_ASBOX
2345      echo
2346      for ac_var in $ac_subst_files
2347      do
2348	eval ac_val=\$$ac_var
2349	case $ac_val in
2350	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2351	esac
2352	$as_echo "$ac_var='\''$ac_val'\''"
2353      done | sort
2354      echo
2355    fi
2356
2357    if test -s confdefs.h; then
2358      cat <<\_ASBOX
2359## ----------- ##
2360## confdefs.h. ##
2361## ----------- ##
2362_ASBOX
2363      echo
2364      cat confdefs.h
2365      echo
2366    fi
2367    test "$ac_signal" != 0 &&
2368      $as_echo "$as_me: caught signal $ac_signal"
2369    $as_echo "$as_me: exit $exit_status"
2370  } >&5
2371  rm -f core *.core core.conftest.* &&
2372    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2373    exit $exit_status
2374' 0
2375for ac_signal in 1 2 13 15; do
2376  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2377done
2378ac_signal=0
2379
2380# confdefs.h avoids OS command line length limits that DEFS can exceed.
2381rm -f -r conftest* confdefs.h
2382
2383$as_echo "/* confdefs.h */" > confdefs.h
2384
2385# Predefined preprocessor variables.
2386
2387cat >>confdefs.h <<_ACEOF
2388#define PACKAGE_NAME "$PACKAGE_NAME"
2389_ACEOF
2390
2391cat >>confdefs.h <<_ACEOF
2392#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2393_ACEOF
2394
2395cat >>confdefs.h <<_ACEOF
2396#define PACKAGE_VERSION "$PACKAGE_VERSION"
2397_ACEOF
2398
2399cat >>confdefs.h <<_ACEOF
2400#define PACKAGE_STRING "$PACKAGE_STRING"
2401_ACEOF
2402
2403cat >>confdefs.h <<_ACEOF
2404#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2405_ACEOF
2406
2407cat >>confdefs.h <<_ACEOF
2408#define PACKAGE_URL "$PACKAGE_URL"
2409_ACEOF
2410
2411
2412# Let the site file select an alternate cache file if it wants to.
2413# Prefer an explicitly selected file to automatically selected ones.
2414ac_site_file1=NONE
2415ac_site_file2=NONE
2416if test -n "$CONFIG_SITE"; then
2417  ac_site_file1=$CONFIG_SITE
2418elif test "x$prefix" != xNONE; then
2419  ac_site_file1=$prefix/share/config.site
2420  ac_site_file2=$prefix/etc/config.site
2421else
2422  ac_site_file1=$ac_default_prefix/share/config.site
2423  ac_site_file2=$ac_default_prefix/etc/config.site
2424fi
2425for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2426do
2427  test "x$ac_site_file" = xNONE && continue
2428  if test -r "$ac_site_file"; then
2429    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2430$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2431    sed 's/^/| /' "$ac_site_file" >&5
2432    . "$ac_site_file"
2433  fi
2434done
2435
2436if test -r "$cache_file"; then
2437  # Some versions of bash will fail to source /dev/null (special
2438  # files actually), so we avoid doing that.
2439  if test -f "$cache_file"; then
2440    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2441$as_echo "$as_me: loading cache $cache_file" >&6;}
2442    case $cache_file in
2443      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2444      *)                      . "./$cache_file";;
2445    esac
2446  fi
2447else
2448  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2449$as_echo "$as_me: creating cache $cache_file" >&6;}
2450  >$cache_file
2451fi
2452
2453# Check that the precious variables saved in the cache have kept the same
2454# value.
2455ac_cache_corrupted=false
2456for ac_var in $ac_precious_vars; do
2457  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2458  eval ac_new_set=\$ac_env_${ac_var}_set
2459  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2460  eval ac_new_val=\$ac_env_${ac_var}_value
2461  case $ac_old_set,$ac_new_set in
2462    set,)
2463      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2464$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2465      ac_cache_corrupted=: ;;
2466    ,set)
2467      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2468$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2469      ac_cache_corrupted=: ;;
2470    ,);;
2471    *)
2472      if test "x$ac_old_val" != "x$ac_new_val"; then
2473	# differences in whitespace do not lead to failure.
2474	ac_old_val_w=`echo x $ac_old_val`
2475	ac_new_val_w=`echo x $ac_new_val`
2476	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2477	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2478$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2479	  ac_cache_corrupted=:
2480	else
2481	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2482$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2483	  eval $ac_var=\$ac_old_val
2484	fi
2485	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2486$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2487	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2488$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2489      fi;;
2490  esac
2491  # Pass precious variables to config.status.
2492  if test "$ac_new_set" = set; then
2493    case $ac_new_val in
2494    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2495    *) ac_arg=$ac_var=$ac_new_val ;;
2496    esac
2497    case " $ac_configure_args " in
2498      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2499      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2500    esac
2501  fi
2502done
2503if $ac_cache_corrupted; then
2504  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2505$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2506  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2507$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2508  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2509fi
2510## -------------------- ##
2511## Main body of script. ##
2512## -------------------- ##
2513
2514ac_ext=c
2515ac_cpp='$CPP $CPPFLAGS'
2516ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2517ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2518ac_compiler_gnu=$ac_cv_c_compiler_gnu
2519
2520
2521
2522
2523
2524
2525
2526ac_aux_dir=
2527for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2528  for ac_t in install-sh install.sh shtool; do
2529    if test -f "$ac_dir/$ac_t"; then
2530      ac_aux_dir=$ac_dir
2531      ac_install_sh="$ac_aux_dir/$ac_t -c"
2532      break 2
2533    fi
2534  done
2535done
2536if test -z "$ac_aux_dir"; then
2537  as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2538fi
2539
2540# These three variables are undocumented and unsupported,
2541# and are intended to be withdrawn in a future Autoconf release.
2542# They can cause serious problems if a builder's source tree is in a directory
2543# whose full name contains unusual characters.
2544ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2545ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2546ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2547
2548
2549# Make sure we can run config.sub.
2550$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2551  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2552
2553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2554$as_echo_n "checking build system type... " >&6; }
2555if test "${ac_cv_build+set}" = set; then :
2556  $as_echo_n "(cached) " >&6
2557else
2558  ac_build_alias=$build_alias
2559test "x$ac_build_alias" = x &&
2560  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2561test "x$ac_build_alias" = x &&
2562  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2563ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2564  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2565
2566fi
2567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2568$as_echo "$ac_cv_build" >&6; }
2569case $ac_cv_build in
2570*-*-*) ;;
2571*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2572esac
2573build=$ac_cv_build
2574ac_save_IFS=$IFS; IFS='-'
2575set x $ac_cv_build
2576shift
2577build_cpu=$1
2578build_vendor=$2
2579shift; shift
2580# Remember, the first character of IFS is used to create $*,
2581# except with old shells:
2582build_os=$*
2583IFS=$ac_save_IFS
2584case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2585
2586
2587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2588$as_echo_n "checking host system type... " >&6; }
2589if test "${ac_cv_host+set}" = set; then :
2590  $as_echo_n "(cached) " >&6
2591else
2592  if test "x$host_alias" = x; then
2593  ac_cv_host=$ac_cv_build
2594else
2595  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2596    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2597fi
2598
2599fi
2600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2601$as_echo "$ac_cv_host" >&6; }
2602case $ac_cv_host in
2603*-*-*) ;;
2604*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2605esac
2606host=$ac_cv_host
2607ac_save_IFS=$IFS; IFS='-'
2608set x $ac_cv_host
2609shift
2610host_cpu=$1
2611host_vendor=$2
2612shift; shift
2613# Remember, the first character of IFS is used to create $*,
2614# except with old shells:
2615host_os=$*
2616IFS=$ac_save_IFS
2617case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2618
2619
2620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2621$as_echo_n "checking target system type... " >&6; }
2622if test "${ac_cv_target+set}" = set; then :
2623  $as_echo_n "(cached) " >&6
2624else
2625  if test "x$target_alias" = x; then
2626  ac_cv_target=$ac_cv_host
2627else
2628  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2629    as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2630fi
2631
2632fi
2633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2634$as_echo "$ac_cv_target" >&6; }
2635case $ac_cv_target in
2636*-*-*) ;;
2637*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2638esac
2639target=$ac_cv_target
2640ac_save_IFS=$IFS; IFS='-'
2641set x $ac_cv_target
2642shift
2643target_cpu=$1
2644target_vendor=$2
2645shift; shift
2646# Remember, the first character of IFS is used to create $*,
2647# except with old shells:
2648target_os=$*
2649IFS=$ac_save_IFS
2650case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2651
2652
2653# The aliases save the names the user supplied, while $host etc.
2654# will get canonicalized.
2655test -n "$target_alias" &&
2656  test "$program_prefix$program_suffix$program_transform_name" = \
2657    NONENONEs,x,x, &&
2658  program_prefix=${target_alias}-
2659ac_ext=c
2660ac_cpp='$CPP $CPPFLAGS'
2661ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2662ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2663ac_compiler_gnu=$ac_cv_c_compiler_gnu
2664if test -n "$ac_tool_prefix"; then
2665  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2666set dummy ${ac_tool_prefix}gcc; ac_word=$2
2667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2668$as_echo_n "checking for $ac_word... " >&6; }
2669if test "${ac_cv_prog_CC+set}" = set; then :
2670  $as_echo_n "(cached) " >&6
2671else
2672  if test -n "$CC"; then
2673  ac_cv_prog_CC="$CC" # Let the user override the test.
2674else
2675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2676for as_dir in $PATH
2677do
2678  IFS=$as_save_IFS
2679  test -z "$as_dir" && as_dir=.
2680    for ac_exec_ext in '' $ac_executable_extensions; do
2681  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2682    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2683    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2684    break 2
2685  fi
2686done
2687  done
2688IFS=$as_save_IFS
2689
2690fi
2691fi
2692CC=$ac_cv_prog_CC
2693if test -n "$CC"; then
2694  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2695$as_echo "$CC" >&6; }
2696else
2697  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2698$as_echo "no" >&6; }
2699fi
2700
2701
2702fi
2703if test -z "$ac_cv_prog_CC"; then
2704  ac_ct_CC=$CC
2705  # Extract the first word of "gcc", so it can be a program name with args.
2706set dummy gcc; ac_word=$2
2707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2708$as_echo_n "checking for $ac_word... " >&6; }
2709if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2710  $as_echo_n "(cached) " >&6
2711else
2712  if test -n "$ac_ct_CC"; then
2713  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2714else
2715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2716for as_dir in $PATH
2717do
2718  IFS=$as_save_IFS
2719  test -z "$as_dir" && as_dir=.
2720    for ac_exec_ext in '' $ac_executable_extensions; do
2721  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2722    ac_cv_prog_ac_ct_CC="gcc"
2723    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2724    break 2
2725  fi
2726done
2727  done
2728IFS=$as_save_IFS
2729
2730fi
2731fi
2732ac_ct_CC=$ac_cv_prog_ac_ct_CC
2733if test -n "$ac_ct_CC"; then
2734  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2735$as_echo "$ac_ct_CC" >&6; }
2736else
2737  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2738$as_echo "no" >&6; }
2739fi
2740
2741  if test "x$ac_ct_CC" = x; then
2742    CC=""
2743  else
2744    case $cross_compiling:$ac_tool_warned in
2745yes:)
2746{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2747$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2748ac_tool_warned=yes ;;
2749esac
2750    CC=$ac_ct_CC
2751  fi
2752else
2753  CC="$ac_cv_prog_CC"
2754fi
2755
2756if test -z "$CC"; then
2757          if test -n "$ac_tool_prefix"; then
2758    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2759set dummy ${ac_tool_prefix}cc; ac_word=$2
2760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2761$as_echo_n "checking for $ac_word... " >&6; }
2762if test "${ac_cv_prog_CC+set}" = set; then :
2763  $as_echo_n "(cached) " >&6
2764else
2765  if test -n "$CC"; then
2766  ac_cv_prog_CC="$CC" # Let the user override the test.
2767else
2768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2769for as_dir in $PATH
2770do
2771  IFS=$as_save_IFS
2772  test -z "$as_dir" && as_dir=.
2773    for ac_exec_ext in '' $ac_executable_extensions; do
2774  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2775    ac_cv_prog_CC="${ac_tool_prefix}cc"
2776    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2777    break 2
2778  fi
2779done
2780  done
2781IFS=$as_save_IFS
2782
2783fi
2784fi
2785CC=$ac_cv_prog_CC
2786if test -n "$CC"; then
2787  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2788$as_echo "$CC" >&6; }
2789else
2790  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2791$as_echo "no" >&6; }
2792fi
2793
2794
2795  fi
2796fi
2797if test -z "$CC"; then
2798  # Extract the first word of "cc", so it can be a program name with args.
2799set dummy cc; ac_word=$2
2800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2801$as_echo_n "checking for $ac_word... " >&6; }
2802if test "${ac_cv_prog_CC+set}" = set; then :
2803  $as_echo_n "(cached) " >&6
2804else
2805  if test -n "$CC"; then
2806  ac_cv_prog_CC="$CC" # Let the user override the test.
2807else
2808  ac_prog_rejected=no
2809as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2810for as_dir in $PATH
2811do
2812  IFS=$as_save_IFS
2813  test -z "$as_dir" && as_dir=.
2814    for ac_exec_ext in '' $ac_executable_extensions; do
2815  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2816    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2817       ac_prog_rejected=yes
2818       continue
2819     fi
2820    ac_cv_prog_CC="cc"
2821    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2822    break 2
2823  fi
2824done
2825  done
2826IFS=$as_save_IFS
2827
2828if test $ac_prog_rejected = yes; then
2829  # We found a bogon in the path, so make sure we never use it.
2830  set dummy $ac_cv_prog_CC
2831  shift
2832  if test $# != 0; then
2833    # We chose a different compiler from the bogus one.
2834    # However, it has the same basename, so the bogon will be chosen
2835    # first if we set CC to just the basename; use the full file name.
2836    shift
2837    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2838  fi
2839fi
2840fi
2841fi
2842CC=$ac_cv_prog_CC
2843if test -n "$CC"; then
2844  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2845$as_echo "$CC" >&6; }
2846else
2847  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2848$as_echo "no" >&6; }
2849fi
2850
2851
2852fi
2853if test -z "$CC"; then
2854  if test -n "$ac_tool_prefix"; then
2855  for ac_prog in cl.exe
2856  do
2857    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2858set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2860$as_echo_n "checking for $ac_word... " >&6; }
2861if test "${ac_cv_prog_CC+set}" = set; then :
2862  $as_echo_n "(cached) " >&6
2863else
2864  if test -n "$CC"; then
2865  ac_cv_prog_CC="$CC" # Let the user override the test.
2866else
2867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2868for as_dir in $PATH
2869do
2870  IFS=$as_save_IFS
2871  test -z "$as_dir" && as_dir=.
2872    for ac_exec_ext in '' $ac_executable_extensions; do
2873  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2874    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2875    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2876    break 2
2877  fi
2878done
2879  done
2880IFS=$as_save_IFS
2881
2882fi
2883fi
2884CC=$ac_cv_prog_CC
2885if test -n "$CC"; then
2886  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2887$as_echo "$CC" >&6; }
2888else
2889  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2890$as_echo "no" >&6; }
2891fi
2892
2893
2894    test -n "$CC" && break
2895  done
2896fi
2897if test -z "$CC"; then
2898  ac_ct_CC=$CC
2899  for ac_prog in cl.exe
2900do
2901  # Extract the first word of "$ac_prog", so it can be a program name with args.
2902set dummy $ac_prog; ac_word=$2
2903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2904$as_echo_n "checking for $ac_word... " >&6; }
2905if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2906  $as_echo_n "(cached) " >&6
2907else
2908  if test -n "$ac_ct_CC"; then
2909  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2910else
2911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2912for as_dir in $PATH
2913do
2914  IFS=$as_save_IFS
2915  test -z "$as_dir" && as_dir=.
2916    for ac_exec_ext in '' $ac_executable_extensions; do
2917  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2918    ac_cv_prog_ac_ct_CC="$ac_prog"
2919    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2920    break 2
2921  fi
2922done
2923  done
2924IFS=$as_save_IFS
2925
2926fi
2927fi
2928ac_ct_CC=$ac_cv_prog_ac_ct_CC
2929if test -n "$ac_ct_CC"; then
2930  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2931$as_echo "$ac_ct_CC" >&6; }
2932else
2933  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2934$as_echo "no" >&6; }
2935fi
2936
2937
2938  test -n "$ac_ct_CC" && break
2939done
2940
2941  if test "x$ac_ct_CC" = x; then
2942    CC=""
2943  else
2944    case $cross_compiling:$ac_tool_warned in
2945yes:)
2946{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2947$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2948ac_tool_warned=yes ;;
2949esac
2950    CC=$ac_ct_CC
2951  fi
2952fi
2953
2954fi
2955
2956
2957test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2958$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2959as_fn_error "no acceptable C compiler found in \$PATH
2960See \`config.log' for more details." "$LINENO" 5; }
2961
2962# Provide some information about the compiler.
2963$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2964set X $ac_compile
2965ac_compiler=$2
2966for ac_option in --version -v -V -qversion; do
2967  { { ac_try="$ac_compiler $ac_option >&5"
2968case "(($ac_try" in
2969  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2970  *) ac_try_echo=$ac_try;;
2971esac
2972eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2973$as_echo "$ac_try_echo"; } >&5
2974  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2975  ac_status=$?
2976  if test -s conftest.err; then
2977    sed '10a\
2978... rest of stderr output deleted ...
2979         10q' conftest.err >conftest.er1
2980    cat conftest.er1 >&5
2981    rm -f conftest.er1 conftest.err
2982  fi
2983  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2984  test $ac_status = 0; }
2985done
2986
2987cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2988/* end confdefs.h.  */
2989
2990int
2991main ()
2992{
2993
2994  ;
2995  return 0;
2996}
2997_ACEOF
2998ac_clean_files_save=$ac_clean_files
2999ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3000# Try to create an executable without -o first, disregard a.out.
3001# It will help us diagnose broken compilers, and finding out an intuition
3002# of exeext.
3003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3004$as_echo_n "checking for C compiler default output file name... " >&6; }
3005ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3006
3007# The possible output files:
3008ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3009
3010ac_rmfiles=
3011for ac_file in $ac_files
3012do
3013  case $ac_file in
3014    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3015    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3016  esac
3017done
3018rm -f $ac_rmfiles
3019
3020if { { ac_try="$ac_link_default"
3021case "(($ac_try" in
3022  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3023  *) ac_try_echo=$ac_try;;
3024esac
3025eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3026$as_echo "$ac_try_echo"; } >&5
3027  (eval "$ac_link_default") 2>&5
3028  ac_status=$?
3029  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3030  test $ac_status = 0; }; then :
3031  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3032# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3033# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3034# so that the user can short-circuit this test for compilers unknown to
3035# Autoconf.
3036for ac_file in $ac_files ''
3037do
3038  test -f "$ac_file" || continue
3039  case $ac_file in
3040    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3041	;;
3042    [ab].out )
3043	# We found the default executable, but exeext='' is most
3044	# certainly right.
3045	break;;
3046    *.* )
3047	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3048	then :; else
3049	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3050	fi
3051	# We set ac_cv_exeext here because the later test for it is not
3052	# safe: cross compilers may not add the suffix if given an `-o'
3053	# argument, so we may need to know it at that point already.
3054	# Even if this section looks crufty: it has the advantage of
3055	# actually working.
3056	break;;
3057    * )
3058	break;;
3059  esac
3060done
3061test "$ac_cv_exeext" = no && ac_cv_exeext=
3062
3063else
3064  ac_file=''
3065fi
3066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3067$as_echo "$ac_file" >&6; }
3068if test -z "$ac_file"; then :
3069  $as_echo "$as_me: failed program was:" >&5
3070sed 's/^/| /' conftest.$ac_ext >&5
3071
3072{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3073$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3074{ as_fn_set_status 77
3075as_fn_error "C compiler cannot create executables
3076See \`config.log' for more details." "$LINENO" 5; }; }
3077fi
3078ac_exeext=$ac_cv_exeext
3079
3080# Check that the compiler produces executables we can run.  If not, either
3081# the compiler is broken, or we cross compile.
3082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3083$as_echo_n "checking whether the C compiler works... " >&6; }
3084# If not cross compiling, check that we can run a simple program.
3085if test "$cross_compiling" != yes; then
3086  if { ac_try='./$ac_file'
3087  { { case "(($ac_try" in
3088  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3089  *) ac_try_echo=$ac_try;;
3090esac
3091eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3092$as_echo "$ac_try_echo"; } >&5
3093  (eval "$ac_try") 2>&5
3094  ac_status=$?
3095  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3096  test $ac_status = 0; }; }; then
3097    cross_compiling=no
3098  else
3099    if test "$cross_compiling" = maybe; then
3100	cross_compiling=yes
3101    else
3102	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3103$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3104as_fn_error "cannot run C compiled programs.
3105If you meant to cross compile, use \`--host'.
3106See \`config.log' for more details." "$LINENO" 5; }
3107    fi
3108  fi
3109fi
3110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3111$as_echo "yes" >&6; }
3112
3113rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3114ac_clean_files=$ac_clean_files_save
3115# Check that the compiler produces executables we can run.  If not, either
3116# the compiler is broken, or we cross compile.
3117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3118$as_echo_n "checking whether we are cross compiling... " >&6; }
3119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3120$as_echo "$cross_compiling" >&6; }
3121
3122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3123$as_echo_n "checking for suffix of executables... " >&6; }
3124if { { ac_try="$ac_link"
3125case "(($ac_try" in
3126  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3127  *) ac_try_echo=$ac_try;;
3128esac
3129eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3130$as_echo "$ac_try_echo"; } >&5
3131  (eval "$ac_link") 2>&5
3132  ac_status=$?
3133  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3134  test $ac_status = 0; }; then :
3135  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3136# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3137# work properly (i.e., refer to `conftest.exe'), while it won't with
3138# `rm'.
3139for ac_file in conftest.exe conftest conftest.*; do
3140  test -f "$ac_file" || continue
3141  case $ac_file in
3142    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3143    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3144	  break;;
3145    * ) break;;
3146  esac
3147done
3148else
3149  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3150$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3151as_fn_error "cannot compute suffix of executables: cannot compile and link
3152See \`config.log' for more details." "$LINENO" 5; }
3153fi
3154rm -f conftest$ac_cv_exeext
3155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3156$as_echo "$ac_cv_exeext" >&6; }
3157
3158rm -f conftest.$ac_ext
3159EXEEXT=$ac_cv_exeext
3160ac_exeext=$EXEEXT
3161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3162$as_echo_n "checking for suffix of object files... " >&6; }
3163if test "${ac_cv_objext+set}" = set; then :
3164  $as_echo_n "(cached) " >&6
3165else
3166  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3167/* end confdefs.h.  */
3168
3169int
3170main ()
3171{
3172
3173  ;
3174  return 0;
3175}
3176_ACEOF
3177rm -f conftest.o conftest.obj
3178if { { ac_try="$ac_compile"
3179case "(($ac_try" in
3180  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3181  *) ac_try_echo=$ac_try;;
3182esac
3183eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3184$as_echo "$ac_try_echo"; } >&5
3185  (eval "$ac_compile") 2>&5
3186  ac_status=$?
3187  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3188  test $ac_status = 0; }; then :
3189  for ac_file in conftest.o conftest.obj conftest.*; do
3190  test -f "$ac_file" || continue;
3191  case $ac_file in
3192    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3193    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3194       break;;
3195  esac
3196done
3197else
3198  $as_echo "$as_me: failed program was:" >&5
3199sed 's/^/| /' conftest.$ac_ext >&5
3200
3201{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3202$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3203as_fn_error "cannot compute suffix of object files: cannot compile
3204See \`config.log' for more details." "$LINENO" 5; }
3205fi
3206rm -f conftest.$ac_cv_objext conftest.$ac_ext
3207fi
3208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3209$as_echo "$ac_cv_objext" >&6; }
3210OBJEXT=$ac_cv_objext
3211ac_objext=$OBJEXT
3212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3213$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3214if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3215  $as_echo_n "(cached) " >&6
3216else
3217  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3218/* end confdefs.h.  */
3219
3220int
3221main ()
3222{
3223#ifndef __GNUC__
3224       choke me
3225#endif
3226
3227  ;
3228  return 0;
3229}
3230_ACEOF
3231if ac_fn_c_try_compile "$LINENO"; then :
3232  ac_compiler_gnu=yes
3233else
3234  ac_compiler_gnu=no
3235fi
3236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3237ac_cv_c_compiler_gnu=$ac_compiler_gnu
3238
3239fi
3240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3241$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3242if test $ac_compiler_gnu = yes; then
3243  GCC=yes
3244else
3245  GCC=
3246fi
3247ac_test_CFLAGS=${CFLAGS+set}
3248ac_save_CFLAGS=$CFLAGS
3249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3250$as_echo_n "checking whether $CC accepts -g... " >&6; }
3251if test "${ac_cv_prog_cc_g+set}" = set; then :
3252  $as_echo_n "(cached) " >&6
3253else
3254  ac_save_c_werror_flag=$ac_c_werror_flag
3255   ac_c_werror_flag=yes
3256   ac_cv_prog_cc_g=no
3257   CFLAGS="-g"
3258   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3259/* end confdefs.h.  */
3260
3261int
3262main ()
3263{
3264
3265  ;
3266  return 0;
3267}
3268_ACEOF
3269if ac_fn_c_try_compile "$LINENO"; then :
3270  ac_cv_prog_cc_g=yes
3271else
3272  CFLAGS=""
3273      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3274/* end confdefs.h.  */
3275
3276int
3277main ()
3278{
3279
3280  ;
3281  return 0;
3282}
3283_ACEOF
3284if ac_fn_c_try_compile "$LINENO"; then :
3285
3286else
3287  ac_c_werror_flag=$ac_save_c_werror_flag
3288	 CFLAGS="-g"
3289	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3290/* end confdefs.h.  */
3291
3292int
3293main ()
3294{
3295
3296  ;
3297  return 0;
3298}
3299_ACEOF
3300if ac_fn_c_try_compile "$LINENO"; then :
3301  ac_cv_prog_cc_g=yes
3302fi
3303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3304fi
3305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3306fi
3307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3308   ac_c_werror_flag=$ac_save_c_werror_flag
3309fi
3310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3311$as_echo "$ac_cv_prog_cc_g" >&6; }
3312if test "$ac_test_CFLAGS" = set; then
3313  CFLAGS=$ac_save_CFLAGS
3314elif test $ac_cv_prog_cc_g = yes; then
3315  if test "$GCC" = yes; then
3316    CFLAGS="-g -O2"
3317  else
3318    CFLAGS="-g"
3319  fi
3320else
3321  if test "$GCC" = yes; then
3322    CFLAGS="-O2"
3323  else
3324    CFLAGS=
3325  fi
3326fi
3327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3328$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3329if test "${ac_cv_prog_cc_c89+set}" = set; then :
3330  $as_echo_n "(cached) " >&6
3331else
3332  ac_cv_prog_cc_c89=no
3333ac_save_CC=$CC
3334cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3335/* end confdefs.h.  */
3336#include <stdarg.h>
3337#include <stdio.h>
3338#include <sys/types.h>
3339#include <sys/stat.h>
3340/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3341struct buf { int x; };
3342FILE * (*rcsopen) (struct buf *, struct stat *, int);
3343static char *e (p, i)
3344     char **p;
3345     int i;
3346{
3347  return p[i];
3348}
3349static char *f (char * (*g) (char **, int), char **p, ...)
3350{
3351  char *s;
3352  va_list v;
3353  va_start (v,p);
3354  s = g (p, va_arg (v,int));
3355  va_end (v);
3356  return s;
3357}
3358
3359/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3360   function prototypes and stuff, but not '\xHH' hex character constants.
3361   These don't provoke an error unfortunately, instead are silently treated
3362   as 'x'.  The following induces an error, until -std is added to get
3363   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3364   array size at least.  It's necessary to write '\x00'==0 to get something
3365   that's true only with -std.  */
3366int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3367
3368/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3369   inside strings and character constants.  */
3370#define FOO(x) 'x'
3371int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3372
3373int test (int i, double x);
3374struct s1 {int (*f) (int a);};
3375struct s2 {int (*f) (double a);};
3376int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3377int argc;
3378char **argv;
3379int
3380main ()
3381{
3382return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3383  ;
3384  return 0;
3385}
3386_ACEOF
3387for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3388	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3389do
3390  CC="$ac_save_CC $ac_arg"
3391  if ac_fn_c_try_compile "$LINENO"; then :
3392  ac_cv_prog_cc_c89=$ac_arg
3393fi
3394rm -f core conftest.err conftest.$ac_objext
3395  test "x$ac_cv_prog_cc_c89" != "xno" && break
3396done
3397rm -f conftest.$ac_ext
3398CC=$ac_save_CC
3399
3400fi
3401# AC_CACHE_VAL
3402case "x$ac_cv_prog_cc_c89" in
3403  x)
3404    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3405$as_echo "none needed" >&6; } ;;
3406  xno)
3407    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3408$as_echo "unsupported" >&6; } ;;
3409  *)
3410    CC="$CC $ac_cv_prog_cc_c89"
3411    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3412$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3413esac
3414if test "x$ac_cv_prog_cc_c89" != xno; then :
3415
3416fi
3417
3418ac_ext=c
3419ac_cpp='$CPP $CPPFLAGS'
3420ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3421ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3422ac_compiler_gnu=$ac_cv_c_compiler_gnu
3423
3424
3425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3426$as_echo_n "checking for library containing strerror... " >&6; }
3427if test "${ac_cv_search_strerror+set}" = set; then :
3428  $as_echo_n "(cached) " >&6
3429else
3430  ac_func_search_save_LIBS=$LIBS
3431cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3432/* end confdefs.h.  */
3433
3434/* Override any GCC internal prototype to avoid an error.
3435   Use char because int might match the return type of a GCC
3436   builtin and then its argument prototype would still apply.  */
3437#ifdef __cplusplus
3438extern "C"
3439#endif
3440char strerror ();
3441int
3442main ()
3443{
3444return strerror ();
3445  ;
3446  return 0;
3447}
3448_ACEOF
3449for ac_lib in '' cposix; do
3450  if test -z "$ac_lib"; then
3451    ac_res="none required"
3452  else
3453    ac_res=-l$ac_lib
3454    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3455  fi
3456  if ac_fn_c_try_link "$LINENO"; then :
3457  ac_cv_search_strerror=$ac_res
3458fi
3459rm -f core conftest.err conftest.$ac_objext \
3460    conftest$ac_exeext
3461  if test "${ac_cv_search_strerror+set}" = set; then :
3462  break
3463fi
3464done
3465if test "${ac_cv_search_strerror+set}" = set; then :
3466
3467else
3468  ac_cv_search_strerror=no
3469fi
3470rm conftest.$ac_ext
3471LIBS=$ac_func_search_save_LIBS
3472fi
3473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3474$as_echo "$ac_cv_search_strerror" >&6; }
3475ac_res=$ac_cv_search_strerror
3476if test "$ac_res" != no; then :
3477  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3478
3479fi
3480
3481
3482am__api_version='1.11'
3483
3484# Find a good install program.  We prefer a C program (faster),
3485# so one script is as good as another.  But avoid the broken or
3486# incompatible versions:
3487# SysV /etc/install, /usr/sbin/install
3488# SunOS /usr/etc/install
3489# IRIX /sbin/install
3490# AIX /bin/install
3491# AmigaOS /C/install, which installs bootblocks on floppy discs
3492# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3493# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3494# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3495# OS/2's system install, which has a completely different semantic
3496# ./install, which can be erroneously created by make from ./install.sh.
3497# Reject install programs that cannot install multiple files.
3498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3499$as_echo_n "checking for a BSD-compatible install... " >&6; }
3500if test -z "$INSTALL"; then
3501if test "${ac_cv_path_install+set}" = set; then :
3502  $as_echo_n "(cached) " >&6
3503else
3504  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3505for as_dir in $PATH
3506do
3507  IFS=$as_save_IFS
3508  test -z "$as_dir" && as_dir=.
3509    # Account for people who put trailing slashes in PATH elements.
3510case $as_dir/ in #((
3511  ./ | .// | /[cC]/* | \
3512  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3513  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3514  /usr/ucb/* ) ;;
3515  *)
3516    # OSF1 and SCO ODT 3.0 have their own names for install.
3517    # Don't use installbsd from OSF since it installs stuff as root
3518    # by default.
3519    for ac_prog in ginstall scoinst install; do
3520      for ac_exec_ext in '' $ac_executable_extensions; do
3521	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3522	  if test $ac_prog = install &&
3523	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3524	    # AIX install.  It has an incompatible calling convention.
3525	    :
3526	  elif test $ac_prog = install &&
3527	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3528	    # program-specific install script used by HP pwplus--don't use.
3529	    :
3530	  else
3531	    rm -rf conftest.one conftest.two conftest.dir
3532	    echo one > conftest.one
3533	    echo two > conftest.two
3534	    mkdir conftest.dir
3535	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3536	      test -s conftest.one && test -s conftest.two &&
3537	      test -s conftest.dir/conftest.one &&
3538	      test -s conftest.dir/conftest.two
3539	    then
3540	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3541	      break 3
3542	    fi
3543	  fi
3544	fi
3545      done
3546    done
3547    ;;
3548esac
3549
3550  done
3551IFS=$as_save_IFS
3552
3553rm -rf conftest.one conftest.two conftest.dir
3554
3555fi
3556  if test "${ac_cv_path_install+set}" = set; then
3557    INSTALL=$ac_cv_path_install
3558  else
3559    # As a last resort, use the slow shell script.  Don't cache a
3560    # value for INSTALL within a source directory, because that will
3561    # break other packages using the cache if that directory is
3562    # removed, or if the value is a relative name.
3563    INSTALL=$ac_install_sh
3564  fi
3565fi
3566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3567$as_echo "$INSTALL" >&6; }
3568
3569# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3570# It thinks the first close brace ends the variable substitution.
3571test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3572
3573test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3574
3575test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3576
3577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3578$as_echo_n "checking whether build environment is sane... " >&6; }
3579# Just in case
3580sleep 1
3581echo timestamp > conftest.file
3582# Reject unsafe characters in $srcdir or the absolute working directory
3583# name.  Accept space and tab only in the latter.
3584am_lf='
3585'
3586case `pwd` in
3587  *[\\\"\#\$\&\'\`$am_lf]*)
3588    as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3589esac
3590case $srcdir in
3591  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
3592    as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3593esac
3594
3595# Do `set' in a subshell so we don't clobber the current shell's
3596# arguments.  Must try -L first in case configure is actually a
3597# symlink; some systems play weird games with the mod time of symlinks
3598# (eg FreeBSD returns the mod time of the symlink's containing
3599# directory).
3600if (
3601   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3602   if test "$*" = "X"; then
3603      # -L didn't work.
3604      set X `ls -t "$srcdir/configure" conftest.file`
3605   fi
3606   rm -f conftest.file
3607   if test "$*" != "X $srcdir/configure conftest.file" \
3608      && test "$*" != "X conftest.file $srcdir/configure"; then
3609
3610      # If neither matched, then we have a broken ls.  This can happen
3611      # if, for instance, CONFIG_SHELL is bash and it inherits a
3612      # broken ls alias from the environment.  This has actually
3613      # happened.  Such a system could not be considered "sane".
3614      as_fn_error "ls -t appears to fail.  Make sure there is not a broken
3615alias in your environment" "$LINENO" 5
3616   fi
3617
3618   test "$2" = conftest.file
3619   )
3620then
3621   # Ok.
3622   :
3623else
3624   as_fn_error "newly created file is older than distributed files!
3625Check your system clock" "$LINENO" 5
3626fi
3627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3628$as_echo "yes" >&6; }
3629test "$program_prefix" != NONE &&
3630  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3631# Use a double $ so make ignores it.
3632test "$program_suffix" != NONE &&
3633  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3634# Double any \ or $.
3635# By default was `s,x,x', remove it if useless.
3636ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3637program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3638
3639# expand $ac_aux_dir to an absolute path
3640am_aux_dir=`cd $ac_aux_dir && pwd`
3641
3642if test x"${MISSING+set}" != xset; then
3643  case $am_aux_dir in
3644  *\ * | *\	*)
3645    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3646  *)
3647    MISSING="\${SHELL} $am_aux_dir/missing" ;;
3648  esac
3649fi
3650# Use eval to expand $SHELL
3651if eval "$MISSING --run true"; then
3652  am_missing_run="$MISSING --run "
3653else
3654  am_missing_run=
3655  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3656$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3657fi
3658
3659if test x"${install_sh}" != xset; then
3660  case $am_aux_dir in
3661  *\ * | *\	*)
3662    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3663  *)
3664    install_sh="\${SHELL} $am_aux_dir/install-sh"
3665  esac
3666fi
3667
3668# Installed binaries are usually stripped using `strip' when the user
3669# run `make install-strip'.  However `strip' might not be the right
3670# tool to use in cross-compilation environments, therefore Automake
3671# will honor the `STRIP' environment variable to overrule this program.
3672if test "$cross_compiling" != no; then
3673  if test -n "$ac_tool_prefix"; then
3674  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3675set dummy ${ac_tool_prefix}strip; ac_word=$2
3676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3677$as_echo_n "checking for $ac_word... " >&6; }
3678if test "${ac_cv_prog_STRIP+set}" = set; then :
3679  $as_echo_n "(cached) " >&6
3680else
3681  if test -n "$STRIP"; then
3682  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3683else
3684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3685for as_dir in $PATH
3686do
3687  IFS=$as_save_IFS
3688  test -z "$as_dir" && as_dir=.
3689    for ac_exec_ext in '' $ac_executable_extensions; do
3690  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3691    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3692    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3693    break 2
3694  fi
3695done
3696  done
3697IFS=$as_save_IFS
3698
3699fi
3700fi
3701STRIP=$ac_cv_prog_STRIP
3702if test -n "$STRIP"; then
3703  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3704$as_echo "$STRIP" >&6; }
3705else
3706  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3707$as_echo "no" >&6; }
3708fi
3709
3710
3711fi
3712if test -z "$ac_cv_prog_STRIP"; then
3713  ac_ct_STRIP=$STRIP
3714  # Extract the first word of "strip", so it can be a program name with args.
3715set dummy strip; ac_word=$2
3716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3717$as_echo_n "checking for $ac_word... " >&6; }
3718if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3719  $as_echo_n "(cached) " >&6
3720else
3721  if test -n "$ac_ct_STRIP"; then
3722  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3723else
3724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3725for as_dir in $PATH
3726do
3727  IFS=$as_save_IFS
3728  test -z "$as_dir" && as_dir=.
3729    for ac_exec_ext in '' $ac_executable_extensions; do
3730  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3731    ac_cv_prog_ac_ct_STRIP="strip"
3732    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3733    break 2
3734  fi
3735done
3736  done
3737IFS=$as_save_IFS
3738
3739fi
3740fi
3741ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3742if test -n "$ac_ct_STRIP"; then
3743  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3744$as_echo "$ac_ct_STRIP" >&6; }
3745else
3746  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3747$as_echo "no" >&6; }
3748fi
3749
3750  if test "x$ac_ct_STRIP" = x; then
3751    STRIP=":"
3752  else
3753    case $cross_compiling:$ac_tool_warned in
3754yes:)
3755{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3756$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3757ac_tool_warned=yes ;;
3758esac
3759    STRIP=$ac_ct_STRIP
3760  fi
3761else
3762  STRIP="$ac_cv_prog_STRIP"
3763fi
3764
3765fi
3766INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3767
3768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3769$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3770if test -z "$MKDIR_P"; then
3771  if test "${ac_cv_path_mkdir+set}" = set; then :
3772  $as_echo_n "(cached) " >&6
3773else
3774  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3775for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3776do
3777  IFS=$as_save_IFS
3778  test -z "$as_dir" && as_dir=.
3779    for ac_prog in mkdir gmkdir; do
3780	 for ac_exec_ext in '' $ac_executable_extensions; do
3781	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3782	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3783	     'mkdir (GNU coreutils) '* | \
3784	     'mkdir (coreutils) '* | \
3785	     'mkdir (fileutils) '4.1*)
3786	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3787	       break 3;;
3788	   esac
3789	 done
3790       done
3791  done
3792IFS=$as_save_IFS
3793
3794fi
3795
3796  if test "${ac_cv_path_mkdir+set}" = set; then
3797    MKDIR_P="$ac_cv_path_mkdir -p"
3798  else
3799    # As a last resort, use the slow shell script.  Don't cache a
3800    # value for MKDIR_P within a source directory, because that will
3801    # break other packages using the cache if that directory is
3802    # removed, or if the value is a relative name.
3803    test -d ./--version && rmdir ./--version
3804    MKDIR_P="$ac_install_sh -d"
3805  fi
3806fi
3807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3808$as_echo "$MKDIR_P" >&6; }
3809
3810mkdir_p="$MKDIR_P"
3811case $mkdir_p in
3812  [\\/$]* | ?:[\\/]*) ;;
3813  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3814esac
3815
3816for ac_prog in gawk mawk nawk awk
3817do
3818  # Extract the first word of "$ac_prog", so it can be a program name with args.
3819set dummy $ac_prog; ac_word=$2
3820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3821$as_echo_n "checking for $ac_word... " >&6; }
3822if test "${ac_cv_prog_AWK+set}" = set; then :
3823  $as_echo_n "(cached) " >&6
3824else
3825  if test -n "$AWK"; then
3826  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3827else
3828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3829for as_dir in $PATH
3830do
3831  IFS=$as_save_IFS
3832  test -z "$as_dir" && as_dir=.
3833    for ac_exec_ext in '' $ac_executable_extensions; do
3834  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3835    ac_cv_prog_AWK="$ac_prog"
3836    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3837    break 2
3838  fi
3839done
3840  done
3841IFS=$as_save_IFS
3842
3843fi
3844fi
3845AWK=$ac_cv_prog_AWK
3846if test -n "$AWK"; then
3847  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3848$as_echo "$AWK" >&6; }
3849else
3850  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3851$as_echo "no" >&6; }
3852fi
3853
3854
3855  test -n "$AWK" && break
3856done
3857
3858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3859$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3860set x ${MAKE-make}
3861ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3862if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3863  $as_echo_n "(cached) " >&6
3864else
3865  cat >conftest.make <<\_ACEOF
3866SHELL = /bin/sh
3867all:
3868	@echo '@@@%%%=$(MAKE)=@@@%%%'
3869_ACEOF
3870# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3871case `${MAKE-make} -f conftest.make 2>/dev/null` in
3872  *@@@%%%=?*=@@@%%%*)
3873    eval ac_cv_prog_make_${ac_make}_set=yes;;
3874  *)
3875    eval ac_cv_prog_make_${ac_make}_set=no;;
3876esac
3877rm -f conftest.make
3878fi
3879if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3880  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3881$as_echo "yes" >&6; }
3882  SET_MAKE=
3883else
3884  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3885$as_echo "no" >&6; }
3886  SET_MAKE="MAKE=${MAKE-make}"
3887fi
3888
3889rm -rf .tst 2>/dev/null
3890mkdir .tst 2>/dev/null
3891if test -d .tst; then
3892  am__leading_dot=.
3893else
3894  am__leading_dot=_
3895fi
3896rmdir .tst 2>/dev/null
3897
3898DEPDIR="${am__leading_dot}deps"
3899
3900ac_config_commands="$ac_config_commands depfiles"
3901
3902
3903am_make=${MAKE-make}
3904cat > confinc << 'END'
3905am__doit:
3906	@echo this is the am__doit target
3907.PHONY: am__doit
3908END
3909# If we don't find an include directive, just comment out the code.
3910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3911$as_echo_n "checking for style of include used by $am_make... " >&6; }
3912am__include="#"
3913am__quote=
3914_am_result=none
3915# First try GNU make style include.
3916echo "include confinc" > confmf
3917# Ignore all kinds of additional output from `make'.
3918case `$am_make -s -f confmf 2> /dev/null` in #(
3919*the\ am__doit\ target*)
3920  am__include=include
3921  am__quote=
3922  _am_result=GNU
3923  ;;
3924esac
3925# Now try BSD make style include.
3926if test "$am__include" = "#"; then
3927   echo '.include "confinc"' > confmf
3928   case `$am_make -s -f confmf 2> /dev/null` in #(
3929   *the\ am__doit\ target*)
3930     am__include=.include
3931     am__quote="\""
3932     _am_result=BSD
3933     ;;
3934   esac
3935fi
3936
3937
3938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3939$as_echo "$_am_result" >&6; }
3940rm -f confinc confmf
3941
3942# Check whether --enable-dependency-tracking was given.
3943if test "${enable_dependency_tracking+set}" = set; then :
3944  enableval=$enable_dependency_tracking;
3945fi
3946
3947if test "x$enable_dependency_tracking" != xno; then
3948  am_depcomp="$ac_aux_dir/depcomp"
3949  AMDEPBACKSLASH='\'
3950  am__nodep='_no'
3951fi
3952 if test "x$enable_dependency_tracking" != xno; then
3953  AMDEP_TRUE=
3954  AMDEP_FALSE='#'
3955else
3956  AMDEP_TRUE='#'
3957  AMDEP_FALSE=
3958fi
3959
3960
3961if test "`cd $srcdir && pwd`" != "`pwd`"; then
3962  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3963  # is not polluted with repeated "-I."
3964  am__isrc=' -I$(srcdir)'
3965  # test to see if srcdir already configured
3966  if test -f $srcdir/config.status; then
3967    as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3968  fi
3969fi
3970
3971# test whether we have cygpath
3972if test -z "$CYGPATH_W"; then
3973  if (cygpath --version) >/dev/null 2>/dev/null; then
3974    CYGPATH_W='cygpath -w'
3975  else
3976    CYGPATH_W=echo
3977  fi
3978fi
3979
3980
3981# Define the identity of the package.
3982 PACKAGE='binutils'
3983 VERSION='2.27'
3984
3985
3986cat >>confdefs.h <<_ACEOF
3987#define PACKAGE "$PACKAGE"
3988_ACEOF
3989
3990
3991cat >>confdefs.h <<_ACEOF
3992#define VERSION "$VERSION"
3993_ACEOF
3994
3995# Some tools Automake needs.
3996
3997ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3998
3999
4000AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4001
4002
4003AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4004
4005
4006AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4007
4008
4009MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4010
4011# We need awk for the "check" target.  The system "awk" is bad on
4012# some platforms.
4013# Always define AMTAR for backward compatibility.  Yes, it's still used
4014# in the wild :-(  We should find a proper way to deprecate it ...
4015AMTAR='$${TAR-tar}'
4016
4017am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4018
4019
4020
4021
4022depcc="$CC"   am_compiler_list=
4023
4024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4025$as_echo_n "checking dependency style of $depcc... " >&6; }
4026if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4027  $as_echo_n "(cached) " >&6
4028else
4029  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4030  # We make a subdir and do the tests there.  Otherwise we can end up
4031  # making bogus files that we don't know about and never remove.  For
4032  # instance it was reported that on HP-UX the gcc test will end up
4033  # making a dummy file named `D' -- because `-MD' means `put the output
4034  # in D'.
4035  rm -rf conftest.dir
4036  mkdir conftest.dir
4037  # Copy depcomp to subdir because otherwise we won't find it if we're
4038  # using a relative directory.
4039  cp "$am_depcomp" conftest.dir
4040  cd conftest.dir
4041  # We will build objects and dependencies in a subdirectory because
4042  # it helps to detect inapplicable dependency modes.  For instance
4043  # both Tru64's cc and ICC support -MD to output dependencies as a
4044  # side effect of compilation, but ICC will put the dependencies in
4045  # the current directory while Tru64 will put them in the object
4046  # directory.
4047  mkdir sub
4048
4049  am_cv_CC_dependencies_compiler_type=none
4050  if test "$am_compiler_list" = ""; then
4051     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4052  fi
4053  am__universal=false
4054  case " $depcc " in #(
4055     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4056     esac
4057
4058  for depmode in $am_compiler_list; do
4059    # Setup a source with many dependencies, because some compilers
4060    # like to wrap large dependency lists on column 80 (with \), and
4061    # we should not choose a depcomp mode which is confused by this.
4062    #
4063    # We need to recreate these files for each test, as the compiler may
4064    # overwrite some of them when testing with obscure command lines.
4065    # This happens at least with the AIX C compiler.
4066    : > sub/conftest.c
4067    for i in 1 2 3 4 5 6; do
4068      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4069      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4070      # Solaris 8's {/usr,}/bin/sh.
4071      touch sub/conftst$i.h
4072    done
4073    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4074
4075    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4076    # mode.  It turns out that the SunPro C++ compiler does not properly
4077    # handle `-M -o', and we need to detect this.  Also, some Intel
4078    # versions had trouble with output in subdirs
4079    am__obj=sub/conftest.${OBJEXT-o}
4080    am__minus_obj="-o $am__obj"
4081    case $depmode in
4082    gcc)
4083      # This depmode causes a compiler race in universal mode.
4084      test "$am__universal" = false || continue
4085      ;;
4086    nosideeffect)
4087      # after this tag, mechanisms are not by side-effect, so they'll
4088      # only be used when explicitly requested
4089      if test "x$enable_dependency_tracking" = xyes; then
4090	continue
4091      else
4092	break
4093      fi
4094      ;;
4095    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4096      # This compiler won't grok `-c -o', but also, the minuso test has
4097      # not run yet.  These depmodes are late enough in the game, and
4098      # so weak that their functioning should not be impacted.
4099      am__obj=conftest.${OBJEXT-o}
4100      am__minus_obj=
4101      ;;
4102    none) break ;;
4103    esac
4104    if depmode=$depmode \
4105       source=sub/conftest.c object=$am__obj \
4106       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4107       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4108         >/dev/null 2>conftest.err &&
4109       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4110       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4111       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4112       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4113      # icc doesn't choke on unknown options, it will just issue warnings
4114      # or remarks (even with -Werror).  So we grep stderr for any message
4115      # that says an option was ignored or not supported.
4116      # When given -MP, icc 7.0 and 7.1 complain thusly:
4117      #   icc: Command line warning: ignoring option '-M'; no argument required
4118      # The diagnosis changed in icc 8.0:
4119      #   icc: Command line remark: option '-MP' not supported
4120      if (grep 'ignoring option' conftest.err ||
4121          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4122        am_cv_CC_dependencies_compiler_type=$depmode
4123        break
4124      fi
4125    fi
4126  done
4127
4128  cd ..
4129  rm -rf conftest.dir
4130else
4131  am_cv_CC_dependencies_compiler_type=none
4132fi
4133
4134fi
4135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4136$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4137CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4138
4139 if
4140  test "x$enable_dependency_tracking" != xno \
4141  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4142  am__fastdepCC_TRUE=
4143  am__fastdepCC_FALSE='#'
4144else
4145  am__fastdepCC_TRUE='#'
4146  am__fastdepCC_FALSE=
4147fi
4148
4149
4150
4151
4152ac_ext=c
4153ac_cpp='$CPP $CPPFLAGS'
4154ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4155ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4156ac_compiler_gnu=$ac_cv_c_compiler_gnu
4157if test -n "$ac_tool_prefix"; then
4158  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4159set dummy ${ac_tool_prefix}gcc; ac_word=$2
4160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4161$as_echo_n "checking for $ac_word... " >&6; }
4162if test "${ac_cv_prog_CC+set}" = set; then :
4163  $as_echo_n "(cached) " >&6
4164else
4165  if test -n "$CC"; then
4166  ac_cv_prog_CC="$CC" # Let the user override the test.
4167else
4168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4169for as_dir in $PATH
4170do
4171  IFS=$as_save_IFS
4172  test -z "$as_dir" && as_dir=.
4173    for ac_exec_ext in '' $ac_executable_extensions; do
4174  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4175    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4176    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4177    break 2
4178  fi
4179done
4180  done
4181IFS=$as_save_IFS
4182
4183fi
4184fi
4185CC=$ac_cv_prog_CC
4186if test -n "$CC"; then
4187  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4188$as_echo "$CC" >&6; }
4189else
4190  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4191$as_echo "no" >&6; }
4192fi
4193
4194
4195fi
4196if test -z "$ac_cv_prog_CC"; then
4197  ac_ct_CC=$CC
4198  # Extract the first word of "gcc", so it can be a program name with args.
4199set dummy gcc; ac_word=$2
4200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4201$as_echo_n "checking for $ac_word... " >&6; }
4202if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4203  $as_echo_n "(cached) " >&6
4204else
4205  if test -n "$ac_ct_CC"; then
4206  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4207else
4208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4209for as_dir in $PATH
4210do
4211  IFS=$as_save_IFS
4212  test -z "$as_dir" && as_dir=.
4213    for ac_exec_ext in '' $ac_executable_extensions; do
4214  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4215    ac_cv_prog_ac_ct_CC="gcc"
4216    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4217    break 2
4218  fi
4219done
4220  done
4221IFS=$as_save_IFS
4222
4223fi
4224fi
4225ac_ct_CC=$ac_cv_prog_ac_ct_CC
4226if test -n "$ac_ct_CC"; then
4227  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4228$as_echo "$ac_ct_CC" >&6; }
4229else
4230  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4231$as_echo "no" >&6; }
4232fi
4233
4234  if test "x$ac_ct_CC" = x; then
4235    CC=""
4236  else
4237    case $cross_compiling:$ac_tool_warned in
4238yes:)
4239{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4240$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4241ac_tool_warned=yes ;;
4242esac
4243    CC=$ac_ct_CC
4244  fi
4245else
4246  CC="$ac_cv_prog_CC"
4247fi
4248
4249if test -z "$CC"; then
4250          if test -n "$ac_tool_prefix"; then
4251    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4252set dummy ${ac_tool_prefix}cc; ac_word=$2
4253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4254$as_echo_n "checking for $ac_word... " >&6; }
4255if test "${ac_cv_prog_CC+set}" = set; then :
4256  $as_echo_n "(cached) " >&6
4257else
4258  if test -n "$CC"; then
4259  ac_cv_prog_CC="$CC" # Let the user override the test.
4260else
4261as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4262for as_dir in $PATH
4263do
4264  IFS=$as_save_IFS
4265  test -z "$as_dir" && as_dir=.
4266    for ac_exec_ext in '' $ac_executable_extensions; do
4267  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4268    ac_cv_prog_CC="${ac_tool_prefix}cc"
4269    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4270    break 2
4271  fi
4272done
4273  done
4274IFS=$as_save_IFS
4275
4276fi
4277fi
4278CC=$ac_cv_prog_CC
4279if test -n "$CC"; then
4280  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4281$as_echo "$CC" >&6; }
4282else
4283  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4284$as_echo "no" >&6; }
4285fi
4286
4287
4288  fi
4289fi
4290if test -z "$CC"; then
4291  # Extract the first word of "cc", so it can be a program name with args.
4292set dummy cc; ac_word=$2
4293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4294$as_echo_n "checking for $ac_word... " >&6; }
4295if test "${ac_cv_prog_CC+set}" = set; then :
4296  $as_echo_n "(cached) " >&6
4297else
4298  if test -n "$CC"; then
4299  ac_cv_prog_CC="$CC" # Let the user override the test.
4300else
4301  ac_prog_rejected=no
4302as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4303for as_dir in $PATH
4304do
4305  IFS=$as_save_IFS
4306  test -z "$as_dir" && as_dir=.
4307    for ac_exec_ext in '' $ac_executable_extensions; do
4308  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4309    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4310       ac_prog_rejected=yes
4311       continue
4312     fi
4313    ac_cv_prog_CC="cc"
4314    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4315    break 2
4316  fi
4317done
4318  done
4319IFS=$as_save_IFS
4320
4321if test $ac_prog_rejected = yes; then
4322  # We found a bogon in the path, so make sure we never use it.
4323  set dummy $ac_cv_prog_CC
4324  shift
4325  if test $# != 0; then
4326    # We chose a different compiler from the bogus one.
4327    # However, it has the same basename, so the bogon will be chosen
4328    # first if we set CC to just the basename; use the full file name.
4329    shift
4330    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4331  fi
4332fi
4333fi
4334fi
4335CC=$ac_cv_prog_CC
4336if test -n "$CC"; then
4337  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4338$as_echo "$CC" >&6; }
4339else
4340  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4341$as_echo "no" >&6; }
4342fi
4343
4344
4345fi
4346if test -z "$CC"; then
4347  if test -n "$ac_tool_prefix"; then
4348  for ac_prog in cl.exe
4349  do
4350    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4351set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4353$as_echo_n "checking for $ac_word... " >&6; }
4354if test "${ac_cv_prog_CC+set}" = set; then :
4355  $as_echo_n "(cached) " >&6
4356else
4357  if test -n "$CC"; then
4358  ac_cv_prog_CC="$CC" # Let the user override the test.
4359else
4360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4361for as_dir in $PATH
4362do
4363  IFS=$as_save_IFS
4364  test -z "$as_dir" && as_dir=.
4365    for ac_exec_ext in '' $ac_executable_extensions; do
4366  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4367    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4368    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4369    break 2
4370  fi
4371done
4372  done
4373IFS=$as_save_IFS
4374
4375fi
4376fi
4377CC=$ac_cv_prog_CC
4378if test -n "$CC"; then
4379  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4380$as_echo "$CC" >&6; }
4381else
4382  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4383$as_echo "no" >&6; }
4384fi
4385
4386
4387    test -n "$CC" && break
4388  done
4389fi
4390if test -z "$CC"; then
4391  ac_ct_CC=$CC
4392  for ac_prog in cl.exe
4393do
4394  # Extract the first word of "$ac_prog", so it can be a program name with args.
4395set dummy $ac_prog; ac_word=$2
4396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4397$as_echo_n "checking for $ac_word... " >&6; }
4398if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4399  $as_echo_n "(cached) " >&6
4400else
4401  if test -n "$ac_ct_CC"; then
4402  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4403else
4404as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4405for as_dir in $PATH
4406do
4407  IFS=$as_save_IFS
4408  test -z "$as_dir" && as_dir=.
4409    for ac_exec_ext in '' $ac_executable_extensions; do
4410  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4411    ac_cv_prog_ac_ct_CC="$ac_prog"
4412    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4413    break 2
4414  fi
4415done
4416  done
4417IFS=$as_save_IFS
4418
4419fi
4420fi
4421ac_ct_CC=$ac_cv_prog_ac_ct_CC
4422if test -n "$ac_ct_CC"; then
4423  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4424$as_echo "$ac_ct_CC" >&6; }
4425else
4426  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4427$as_echo "no" >&6; }
4428fi
4429
4430
4431  test -n "$ac_ct_CC" && break
4432done
4433
4434  if test "x$ac_ct_CC" = x; then
4435    CC=""
4436  else
4437    case $cross_compiling:$ac_tool_warned in
4438yes:)
4439{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4440$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4441ac_tool_warned=yes ;;
4442esac
4443    CC=$ac_ct_CC
4444  fi
4445fi
4446
4447fi
4448
4449
4450test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4451$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4452as_fn_error "no acceptable C compiler found in \$PATH
4453See \`config.log' for more details." "$LINENO" 5; }
4454
4455# Provide some information about the compiler.
4456$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4457set X $ac_compile
4458ac_compiler=$2
4459for ac_option in --version -v -V -qversion; do
4460  { { ac_try="$ac_compiler $ac_option >&5"
4461case "(($ac_try" in
4462  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4463  *) ac_try_echo=$ac_try;;
4464esac
4465eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4466$as_echo "$ac_try_echo"; } >&5
4467  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4468  ac_status=$?
4469  if test -s conftest.err; then
4470    sed '10a\
4471... rest of stderr output deleted ...
4472         10q' conftest.err >conftest.er1
4473    cat conftest.er1 >&5
4474    rm -f conftest.er1 conftest.err
4475  fi
4476  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4477  test $ac_status = 0; }
4478done
4479
4480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4481$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4482if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4483  $as_echo_n "(cached) " >&6
4484else
4485  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4486/* end confdefs.h.  */
4487
4488int
4489main ()
4490{
4491#ifndef __GNUC__
4492       choke me
4493#endif
4494
4495  ;
4496  return 0;
4497}
4498_ACEOF
4499if ac_fn_c_try_compile "$LINENO"; then :
4500  ac_compiler_gnu=yes
4501else
4502  ac_compiler_gnu=no
4503fi
4504rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4505ac_cv_c_compiler_gnu=$ac_compiler_gnu
4506
4507fi
4508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4509$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4510if test $ac_compiler_gnu = yes; then
4511  GCC=yes
4512else
4513  GCC=
4514fi
4515ac_test_CFLAGS=${CFLAGS+set}
4516ac_save_CFLAGS=$CFLAGS
4517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4518$as_echo_n "checking whether $CC accepts -g... " >&6; }
4519if test "${ac_cv_prog_cc_g+set}" = set; then :
4520  $as_echo_n "(cached) " >&6
4521else
4522  ac_save_c_werror_flag=$ac_c_werror_flag
4523   ac_c_werror_flag=yes
4524   ac_cv_prog_cc_g=no
4525   CFLAGS="-g"
4526   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4527/* end confdefs.h.  */
4528
4529int
4530main ()
4531{
4532
4533  ;
4534  return 0;
4535}
4536_ACEOF
4537if ac_fn_c_try_compile "$LINENO"; then :
4538  ac_cv_prog_cc_g=yes
4539else
4540  CFLAGS=""
4541      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4542/* end confdefs.h.  */
4543
4544int
4545main ()
4546{
4547
4548  ;
4549  return 0;
4550}
4551_ACEOF
4552if ac_fn_c_try_compile "$LINENO"; then :
4553
4554else
4555  ac_c_werror_flag=$ac_save_c_werror_flag
4556	 CFLAGS="-g"
4557	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4558/* end confdefs.h.  */
4559
4560int
4561main ()
4562{
4563
4564  ;
4565  return 0;
4566}
4567_ACEOF
4568if ac_fn_c_try_compile "$LINENO"; then :
4569  ac_cv_prog_cc_g=yes
4570fi
4571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4572fi
4573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4574fi
4575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4576   ac_c_werror_flag=$ac_save_c_werror_flag
4577fi
4578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4579$as_echo "$ac_cv_prog_cc_g" >&6; }
4580if test "$ac_test_CFLAGS" = set; then
4581  CFLAGS=$ac_save_CFLAGS
4582elif test $ac_cv_prog_cc_g = yes; then
4583  if test "$GCC" = yes; then
4584    CFLAGS="-g -O2"
4585  else
4586    CFLAGS="-g"
4587  fi
4588else
4589  if test "$GCC" = yes; then
4590    CFLAGS="-O2"
4591  else
4592    CFLAGS=
4593  fi
4594fi
4595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4596$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4597if test "${ac_cv_prog_cc_c89+set}" = set; then :
4598  $as_echo_n "(cached) " >&6
4599else
4600  ac_cv_prog_cc_c89=no
4601ac_save_CC=$CC
4602cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4603/* end confdefs.h.  */
4604#include <stdarg.h>
4605#include <stdio.h>
4606#include <sys/types.h>
4607#include <sys/stat.h>
4608/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4609struct buf { int x; };
4610FILE * (*rcsopen) (struct buf *, struct stat *, int);
4611static char *e (p, i)
4612     char **p;
4613     int i;
4614{
4615  return p[i];
4616}
4617static char *f (char * (*g) (char **, int), char **p, ...)
4618{
4619  char *s;
4620  va_list v;
4621  va_start (v,p);
4622  s = g (p, va_arg (v,int));
4623  va_end (v);
4624  return s;
4625}
4626
4627/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4628   function prototypes and stuff, but not '\xHH' hex character constants.
4629   These don't provoke an error unfortunately, instead are silently treated
4630   as 'x'.  The following induces an error, until -std is added to get
4631   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4632   array size at least.  It's necessary to write '\x00'==0 to get something
4633   that's true only with -std.  */
4634int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4635
4636/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4637   inside strings and character constants.  */
4638#define FOO(x) 'x'
4639int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4640
4641int test (int i, double x);
4642struct s1 {int (*f) (int a);};
4643struct s2 {int (*f) (double a);};
4644int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4645int argc;
4646char **argv;
4647int
4648main ()
4649{
4650return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4651  ;
4652  return 0;
4653}
4654_ACEOF
4655for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4656	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4657do
4658  CC="$ac_save_CC $ac_arg"
4659  if ac_fn_c_try_compile "$LINENO"; then :
4660  ac_cv_prog_cc_c89=$ac_arg
4661fi
4662rm -f core conftest.err conftest.$ac_objext
4663  test "x$ac_cv_prog_cc_c89" != "xno" && break
4664done
4665rm -f conftest.$ac_ext
4666CC=$ac_save_CC
4667
4668fi
4669# AC_CACHE_VAL
4670case "x$ac_cv_prog_cc_c89" in
4671  x)
4672    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4673$as_echo "none needed" >&6; } ;;
4674  xno)
4675    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4676$as_echo "unsupported" >&6; } ;;
4677  *)
4678    CC="$CC $ac_cv_prog_cc_c89"
4679    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4680$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4681esac
4682if test "x$ac_cv_prog_cc_c89" != xno; then :
4683
4684fi
4685
4686ac_ext=c
4687ac_cpp='$CPP $CPPFLAGS'
4688ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4689ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4690ac_compiler_gnu=$ac_cv_c_compiler_gnu
4691
4692ac_ext=c
4693ac_cpp='$CPP $CPPFLAGS'
4694ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4695ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4696ac_compiler_gnu=$ac_cv_c_compiler_gnu
4697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4698$as_echo_n "checking how to run the C preprocessor... " >&6; }
4699# On Suns, sometimes $CPP names a directory.
4700if test -n "$CPP" && test -d "$CPP"; then
4701  CPP=
4702fi
4703if test -z "$CPP"; then
4704  if test "${ac_cv_prog_CPP+set}" = set; then :
4705  $as_echo_n "(cached) " >&6
4706else
4707      # Double quotes because CPP needs to be expanded
4708    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4709    do
4710      ac_preproc_ok=false
4711for ac_c_preproc_warn_flag in '' yes
4712do
4713  # Use a header file that comes with gcc, so configuring glibc
4714  # with a fresh cross-compiler works.
4715  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4716  # <limits.h> exists even on freestanding compilers.
4717  # On the NeXT, cc -E runs the code through the compiler's parser,
4718  # not just through cpp. "Syntax error" is here to catch this case.
4719  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4720/* end confdefs.h.  */
4721#ifdef __STDC__
4722# include <limits.h>
4723#else
4724# include <assert.h>
4725#endif
4726		     Syntax error
4727_ACEOF
4728if ac_fn_c_try_cpp "$LINENO"; then :
4729
4730else
4731  # Broken: fails on valid input.
4732continue
4733fi
4734rm -f conftest.err conftest.$ac_ext
4735
4736  # OK, works on sane cases.  Now check whether nonexistent headers
4737  # can be detected and how.
4738  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4739/* end confdefs.h.  */
4740#include <ac_nonexistent.h>
4741_ACEOF
4742if ac_fn_c_try_cpp "$LINENO"; then :
4743  # Broken: success on invalid input.
4744continue
4745else
4746  # Passes both tests.
4747ac_preproc_ok=:
4748break
4749fi
4750rm -f conftest.err conftest.$ac_ext
4751
4752done
4753# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4754rm -f conftest.err conftest.$ac_ext
4755if $ac_preproc_ok; then :
4756  break
4757fi
4758
4759    done
4760    ac_cv_prog_CPP=$CPP
4761
4762fi
4763  CPP=$ac_cv_prog_CPP
4764else
4765  ac_cv_prog_CPP=$CPP
4766fi
4767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4768$as_echo "$CPP" >&6; }
4769ac_preproc_ok=false
4770for ac_c_preproc_warn_flag in '' yes
4771do
4772  # Use a header file that comes with gcc, so configuring glibc
4773  # with a fresh cross-compiler works.
4774  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4775  # <limits.h> exists even on freestanding compilers.
4776  # On the NeXT, cc -E runs the code through the compiler's parser,
4777  # not just through cpp. "Syntax error" is here to catch this case.
4778  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4779/* end confdefs.h.  */
4780#ifdef __STDC__
4781# include <limits.h>
4782#else
4783# include <assert.h>
4784#endif
4785		     Syntax error
4786_ACEOF
4787if ac_fn_c_try_cpp "$LINENO"; then :
4788
4789else
4790  # Broken: fails on valid input.
4791continue
4792fi
4793rm -f conftest.err conftest.$ac_ext
4794
4795  # OK, works on sane cases.  Now check whether nonexistent headers
4796  # can be detected and how.
4797  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4798/* end confdefs.h.  */
4799#include <ac_nonexistent.h>
4800_ACEOF
4801if ac_fn_c_try_cpp "$LINENO"; then :
4802  # Broken: success on invalid input.
4803continue
4804else
4805  # Passes both tests.
4806ac_preproc_ok=:
4807break
4808fi
4809rm -f conftest.err conftest.$ac_ext
4810
4811done
4812# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4813rm -f conftest.err conftest.$ac_ext
4814if $ac_preproc_ok; then :
4815
4816else
4817  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4818$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4819as_fn_error "C preprocessor \"$CPP\" fails sanity check
4820See \`config.log' for more details." "$LINENO" 5; }
4821fi
4822
4823ac_ext=c
4824ac_cpp='$CPP $CPPFLAGS'
4825ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4826ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4827ac_compiler_gnu=$ac_cv_c_compiler_gnu
4828
4829
4830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4831$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4832if test "${ac_cv_path_GREP+set}" = set; then :
4833  $as_echo_n "(cached) " >&6
4834else
4835  if test -z "$GREP"; then
4836  ac_path_GREP_found=false
4837  # Loop through the user's path and test for each of PROGNAME-LIST
4838  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4839for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4840do
4841  IFS=$as_save_IFS
4842  test -z "$as_dir" && as_dir=.
4843    for ac_prog in grep ggrep; do
4844    for ac_exec_ext in '' $ac_executable_extensions; do
4845      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4846      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4847# Check for GNU ac_path_GREP and select it if it is found.
4848  # Check for GNU $ac_path_GREP
4849case `"$ac_path_GREP" --version 2>&1` in
4850*GNU*)
4851  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4852*)
4853  ac_count=0
4854  $as_echo_n 0123456789 >"conftest.in"
4855  while :
4856  do
4857    cat "conftest.in" "conftest.in" >"conftest.tmp"
4858    mv "conftest.tmp" "conftest.in"
4859    cp "conftest.in" "conftest.nl"
4860    $as_echo 'GREP' >> "conftest.nl"
4861    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4862    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4863    as_fn_arith $ac_count + 1 && ac_count=$as_val
4864    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4865      # Best one so far, save it but keep looking for a better one
4866      ac_cv_path_GREP="$ac_path_GREP"
4867      ac_path_GREP_max=$ac_count
4868    fi
4869    # 10*(2^10) chars as input seems more than enough
4870    test $ac_count -gt 10 && break
4871  done
4872  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4873esac
4874
4875      $ac_path_GREP_found && break 3
4876    done
4877  done
4878  done
4879IFS=$as_save_IFS
4880  if test -z "$ac_cv_path_GREP"; then
4881    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4882  fi
4883else
4884  ac_cv_path_GREP=$GREP
4885fi
4886
4887fi
4888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4889$as_echo "$ac_cv_path_GREP" >&6; }
4890 GREP="$ac_cv_path_GREP"
4891
4892
4893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4894$as_echo_n "checking for egrep... " >&6; }
4895if test "${ac_cv_path_EGREP+set}" = set; then :
4896  $as_echo_n "(cached) " >&6
4897else
4898  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4899   then ac_cv_path_EGREP="$GREP -E"
4900   else
4901     if test -z "$EGREP"; then
4902  ac_path_EGREP_found=false
4903  # Loop through the user's path and test for each of PROGNAME-LIST
4904  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4905for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4906do
4907  IFS=$as_save_IFS
4908  test -z "$as_dir" && as_dir=.
4909    for ac_prog in egrep; do
4910    for ac_exec_ext in '' $ac_executable_extensions; do
4911      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4912      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4913# Check for GNU ac_path_EGREP and select it if it is found.
4914  # Check for GNU $ac_path_EGREP
4915case `"$ac_path_EGREP" --version 2>&1` in
4916*GNU*)
4917  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4918*)
4919  ac_count=0
4920  $as_echo_n 0123456789 >"conftest.in"
4921  while :
4922  do
4923    cat "conftest.in" "conftest.in" >"conftest.tmp"
4924    mv "conftest.tmp" "conftest.in"
4925    cp "conftest.in" "conftest.nl"
4926    $as_echo 'EGREP' >> "conftest.nl"
4927    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4928    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4929    as_fn_arith $ac_count + 1 && ac_count=$as_val
4930    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4931      # Best one so far, save it but keep looking for a better one
4932      ac_cv_path_EGREP="$ac_path_EGREP"
4933      ac_path_EGREP_max=$ac_count
4934    fi
4935    # 10*(2^10) chars as input seems more than enough
4936    test $ac_count -gt 10 && break
4937  done
4938  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4939esac
4940
4941      $ac_path_EGREP_found && break 3
4942    done
4943  done
4944  done
4945IFS=$as_save_IFS
4946  if test -z "$ac_cv_path_EGREP"; then
4947    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4948  fi
4949else
4950  ac_cv_path_EGREP=$EGREP
4951fi
4952
4953   fi
4954fi
4955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4956$as_echo "$ac_cv_path_EGREP" >&6; }
4957 EGREP="$ac_cv_path_EGREP"
4958
4959
4960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4961$as_echo_n "checking for ANSI C header files... " >&6; }
4962if test "${ac_cv_header_stdc+set}" = set; then :
4963  $as_echo_n "(cached) " >&6
4964else
4965  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4966/* end confdefs.h.  */
4967#include <stdlib.h>
4968#include <stdarg.h>
4969#include <string.h>
4970#include <float.h>
4971
4972int
4973main ()
4974{
4975
4976  ;
4977  return 0;
4978}
4979_ACEOF
4980if ac_fn_c_try_compile "$LINENO"; then :
4981  ac_cv_header_stdc=yes
4982else
4983  ac_cv_header_stdc=no
4984fi
4985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4986
4987if test $ac_cv_header_stdc = yes; then
4988  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4989  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4990/* end confdefs.h.  */
4991#include <string.h>
4992
4993_ACEOF
4994if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4995  $EGREP "memchr" >/dev/null 2>&1; then :
4996
4997else
4998  ac_cv_header_stdc=no
4999fi
5000rm -f conftest*
5001
5002fi
5003
5004if test $ac_cv_header_stdc = yes; then
5005  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5006  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5007/* end confdefs.h.  */
5008#include <stdlib.h>
5009
5010_ACEOF
5011if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5012  $EGREP "free" >/dev/null 2>&1; then :
5013
5014else
5015  ac_cv_header_stdc=no
5016fi
5017rm -f conftest*
5018
5019fi
5020
5021if test $ac_cv_header_stdc = yes; then
5022  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5023  if test "$cross_compiling" = yes; then :
5024  :
5025else
5026  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5027/* end confdefs.h.  */
5028#include <ctype.h>
5029#include <stdlib.h>
5030#if ((' ' & 0x0FF) == 0x020)
5031# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5032# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5033#else
5034# define ISLOWER(c) \
5035		   (('a' <= (c) && (c) <= 'i') \
5036		     || ('j' <= (c) && (c) <= 'r') \
5037		     || ('s' <= (c) && (c) <= 'z'))
5038# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5039#endif
5040
5041#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5042int
5043main ()
5044{
5045  int i;
5046  for (i = 0; i < 256; i++)
5047    if (XOR (islower (i), ISLOWER (i))
5048	|| toupper (i) != TOUPPER (i))
5049      return 2;
5050  return 0;
5051}
5052_ACEOF
5053if ac_fn_c_try_run "$LINENO"; then :
5054
5055else
5056  ac_cv_header_stdc=no
5057fi
5058rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5059  conftest.$ac_objext conftest.beam conftest.$ac_ext
5060fi
5061
5062fi
5063fi
5064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5065$as_echo "$ac_cv_header_stdc" >&6; }
5066if test $ac_cv_header_stdc = yes; then
5067
5068$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5069
5070fi
5071
5072# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5073for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5074		  inttypes.h stdint.h unistd.h
5075do :
5076  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5077ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5078"
5079eval as_val=\$$as_ac_Header
5080   if test "x$as_val" = x""yes; then :
5081  cat >>confdefs.h <<_ACEOF
5082#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5083_ACEOF
5084
5085fi
5086
5087done
5088
5089
5090
5091  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5092if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5093  MINIX=yes
5094else
5095  MINIX=
5096fi
5097
5098
5099  if test "$MINIX" = yes; then
5100
5101$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5102
5103
5104$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5105
5106
5107$as_echo "#define _MINIX 1" >>confdefs.h
5108
5109  fi
5110
5111
5112  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5113$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5114if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5115  $as_echo_n "(cached) " >&6
5116else
5117  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5118/* end confdefs.h.  */
5119
5120#	  define __EXTENSIONS__ 1
5121	  $ac_includes_default
5122int
5123main ()
5124{
5125
5126  ;
5127  return 0;
5128}
5129_ACEOF
5130if ac_fn_c_try_compile "$LINENO"; then :
5131  ac_cv_safe_to_define___extensions__=yes
5132else
5133  ac_cv_safe_to_define___extensions__=no
5134fi
5135rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5136fi
5137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5138$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5139  test $ac_cv_safe_to_define___extensions__ = yes &&
5140    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5141
5142  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5143
5144  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5145
5146  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5147
5148  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5149
5150
5151
5152
5153
5154case `pwd` in
5155  *\ * | *\	*)
5156    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5157$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5158esac
5159
5160
5161
5162macro_version='2.2.7a'
5163macro_revision='1.3134'
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177ltmain="$ac_aux_dir/ltmain.sh"
5178
5179# Backslashify metacharacters that are still active within
5180# double-quoted strings.
5181sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5182
5183# Same as above, but do not quote variable references.
5184double_quote_subst='s/\(["`\\]\)/\\\1/g'
5185
5186# Sed substitution to delay expansion of an escaped shell variable in a
5187# double_quote_subst'ed string.
5188delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5189
5190# Sed substitution to delay expansion of an escaped single quote.
5191delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5192
5193# Sed substitution to avoid accidental globbing in evaled expressions
5194no_glob_subst='s/\*/\\\*/g'
5195
5196ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5197ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5198ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5199
5200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5201$as_echo_n "checking how to print strings... " >&6; }
5202# Test print first, because it will be a builtin if present.
5203if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5204   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5205  ECHO='print -r --'
5206elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5207  ECHO='printf %s\n'
5208else
5209  # Use this function as a fallback that always works.
5210  func_fallback_echo ()
5211  {
5212    eval 'cat <<_LTECHO_EOF
5213$1
5214_LTECHO_EOF'
5215  }
5216  ECHO='func_fallback_echo'
5217fi
5218
5219# func_echo_all arg...
5220# Invoke $ECHO with all args, space-separated.
5221func_echo_all ()
5222{
5223    $ECHO ""
5224}
5225
5226case "$ECHO" in
5227  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5228$as_echo "printf" >&6; } ;;
5229  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5230$as_echo "print -r" >&6; } ;;
5231  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5232$as_echo "cat" >&6; } ;;
5233esac
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5249$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5250if test "${ac_cv_path_SED+set}" = set; then :
5251  $as_echo_n "(cached) " >&6
5252else
5253            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5254     for ac_i in 1 2 3 4 5 6 7; do
5255       ac_script="$ac_script$as_nl$ac_script"
5256     done
5257     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5258     { ac_script=; unset ac_script;}
5259     if test -z "$SED"; then
5260  ac_path_SED_found=false
5261  # Loop through the user's path and test for each of PROGNAME-LIST
5262  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5263for as_dir in $PATH
5264do
5265  IFS=$as_save_IFS
5266  test -z "$as_dir" && as_dir=.
5267    for ac_prog in sed gsed; do
5268    for ac_exec_ext in '' $ac_executable_extensions; do
5269      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5270      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5271# Check for GNU ac_path_SED and select it if it is found.
5272  # Check for GNU $ac_path_SED
5273case `"$ac_path_SED" --version 2>&1` in
5274*GNU*)
5275  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5276*)
5277  ac_count=0
5278  $as_echo_n 0123456789 >"conftest.in"
5279  while :
5280  do
5281    cat "conftest.in" "conftest.in" >"conftest.tmp"
5282    mv "conftest.tmp" "conftest.in"
5283    cp "conftest.in" "conftest.nl"
5284    $as_echo '' >> "conftest.nl"
5285    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5286    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5287    as_fn_arith $ac_count + 1 && ac_count=$as_val
5288    if test $ac_count -gt ${ac_path_SED_max-0}; then
5289      # Best one so far, save it but keep looking for a better one
5290      ac_cv_path_SED="$ac_path_SED"
5291      ac_path_SED_max=$ac_count
5292    fi
5293    # 10*(2^10) chars as input seems more than enough
5294    test $ac_count -gt 10 && break
5295  done
5296  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5297esac
5298
5299      $ac_path_SED_found && break 3
5300    done
5301  done
5302  done
5303IFS=$as_save_IFS
5304  if test -z "$ac_cv_path_SED"; then
5305    as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5306  fi
5307else
5308  ac_cv_path_SED=$SED
5309fi
5310
5311fi
5312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5313$as_echo "$ac_cv_path_SED" >&6; }
5314 SED="$ac_cv_path_SED"
5315  rm -f conftest.sed
5316
5317test -z "$SED" && SED=sed
5318Xsed="$SED -e 1s/^X//"
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5331$as_echo_n "checking for fgrep... " >&6; }
5332if test "${ac_cv_path_FGREP+set}" = set; then :
5333  $as_echo_n "(cached) " >&6
5334else
5335  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5336   then ac_cv_path_FGREP="$GREP -F"
5337   else
5338     if test -z "$FGREP"; then
5339  ac_path_FGREP_found=false
5340  # Loop through the user's path and test for each of PROGNAME-LIST
5341  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5342for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5343do
5344  IFS=$as_save_IFS
5345  test -z "$as_dir" && as_dir=.
5346    for ac_prog in fgrep; do
5347    for ac_exec_ext in '' $ac_executable_extensions; do
5348      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5349      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5350# Check for GNU ac_path_FGREP and select it if it is found.
5351  # Check for GNU $ac_path_FGREP
5352case `"$ac_path_FGREP" --version 2>&1` in
5353*GNU*)
5354  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5355*)
5356  ac_count=0
5357  $as_echo_n 0123456789 >"conftest.in"
5358  while :
5359  do
5360    cat "conftest.in" "conftest.in" >"conftest.tmp"
5361    mv "conftest.tmp" "conftest.in"
5362    cp "conftest.in" "conftest.nl"
5363    $as_echo 'FGREP' >> "conftest.nl"
5364    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5365    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5366    as_fn_arith $ac_count + 1 && ac_count=$as_val
5367    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5368      # Best one so far, save it but keep looking for a better one
5369      ac_cv_path_FGREP="$ac_path_FGREP"
5370      ac_path_FGREP_max=$ac_count
5371    fi
5372    # 10*(2^10) chars as input seems more than enough
5373    test $ac_count -gt 10 && break
5374  done
5375  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5376esac
5377
5378      $ac_path_FGREP_found && break 3
5379    done
5380  done
5381  done
5382IFS=$as_save_IFS
5383  if test -z "$ac_cv_path_FGREP"; then
5384    as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5385  fi
5386else
5387  ac_cv_path_FGREP=$FGREP
5388fi
5389
5390   fi
5391fi
5392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5393$as_echo "$ac_cv_path_FGREP" >&6; }
5394 FGREP="$ac_cv_path_FGREP"
5395
5396
5397test -z "$GREP" && GREP=grep
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417# Check whether --with-gnu-ld was given.
5418if test "${with_gnu_ld+set}" = set; then :
5419  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5420else
5421  with_gnu_ld=no
5422fi
5423
5424ac_prog=ld
5425if test "$GCC" = yes; then
5426  # Check if gcc -print-prog-name=ld gives a path.
5427  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5428$as_echo_n "checking for ld used by $CC... " >&6; }
5429  case $host in
5430  *-*-mingw*)
5431    # gcc leaves a trailing carriage return which upsets mingw
5432    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5433  *)
5434    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5435  esac
5436  case $ac_prog in
5437    # Accept absolute paths.
5438    [\\/]* | ?:[\\/]*)
5439      re_direlt='/[^/][^/]*/\.\./'
5440      # Canonicalize the pathname of ld
5441      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5442      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5443	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5444      done
5445      test -z "$LD" && LD="$ac_prog"
5446      ;;
5447  "")
5448    # If it fails, then pretend we aren't using GCC.
5449    ac_prog=ld
5450    ;;
5451  *)
5452    # If it is relative, then search for the first ld in PATH.
5453    with_gnu_ld=unknown
5454    ;;
5455  esac
5456elif test "$with_gnu_ld" = yes; then
5457  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5458$as_echo_n "checking for GNU ld... " >&6; }
5459else
5460  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5461$as_echo_n "checking for non-GNU ld... " >&6; }
5462fi
5463if test "${lt_cv_path_LD+set}" = set; then :
5464  $as_echo_n "(cached) " >&6
5465else
5466  if test -z "$LD"; then
5467  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5468  for ac_dir in $PATH; do
5469    IFS="$lt_save_ifs"
5470    test -z "$ac_dir" && ac_dir=.
5471    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5472      lt_cv_path_LD="$ac_dir/$ac_prog"
5473      # Check to see if the program is GNU ld.  I'd rather use --version,
5474      # but apparently some variants of GNU ld only accept -v.
5475      # Break only if it was the GNU/non-GNU ld that we prefer.
5476      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5477      *GNU* | *'with BFD'*)
5478	test "$with_gnu_ld" != no && break
5479	;;
5480      *)
5481	test "$with_gnu_ld" != yes && break
5482	;;
5483      esac
5484    fi
5485  done
5486  IFS="$lt_save_ifs"
5487else
5488  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5489fi
5490fi
5491
5492LD="$lt_cv_path_LD"
5493if test -n "$LD"; then
5494  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5495$as_echo "$LD" >&6; }
5496else
5497  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5498$as_echo "no" >&6; }
5499fi
5500test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5502$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5503if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5504  $as_echo_n "(cached) " >&6
5505else
5506  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5507case `$LD -v 2>&1 </dev/null` in
5508*GNU* | *'with BFD'*)
5509  lt_cv_prog_gnu_ld=yes
5510  ;;
5511*)
5512  lt_cv_prog_gnu_ld=no
5513  ;;
5514esac
5515fi
5516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5517$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5518with_gnu_ld=$lt_cv_prog_gnu_ld
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5529$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5530if test "${lt_cv_path_NM+set}" = set; then :
5531  $as_echo_n "(cached) " >&6
5532else
5533  if test -n "$NM"; then
5534  # Let the user override the test.
5535  lt_cv_path_NM="$NM"
5536else
5537  lt_nm_to_check="${ac_tool_prefix}nm"
5538  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5539    lt_nm_to_check="$lt_nm_to_check nm"
5540  fi
5541  for lt_tmp_nm in $lt_nm_to_check; do
5542    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5543    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5544      IFS="$lt_save_ifs"
5545      test -z "$ac_dir" && ac_dir=.
5546      tmp_nm="$ac_dir/$lt_tmp_nm"
5547      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5548	# Check to see if the nm accepts a BSD-compat flag.
5549	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5550	#   nm: unknown option "B" ignored
5551	# Tru64's nm complains that /dev/null is an invalid object file
5552	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5553	*/dev/null* | *'Invalid file or object type'*)
5554	  lt_cv_path_NM="$tmp_nm -B"
5555	  break
5556	  ;;
5557	*)
5558	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5559	  */dev/null*)
5560	    lt_cv_path_NM="$tmp_nm -p"
5561	    break
5562	    ;;
5563	  *)
5564	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5565	    continue # so that we can try to find one that supports BSD flags
5566	    ;;
5567	  esac
5568	  ;;
5569	esac
5570      fi
5571    done
5572    IFS="$lt_save_ifs"
5573  done
5574  : ${lt_cv_path_NM=no}
5575fi
5576fi
5577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5578$as_echo "$lt_cv_path_NM" >&6; }
5579if test "$lt_cv_path_NM" != "no"; then
5580  NM="$lt_cv_path_NM"
5581else
5582  # Didn't find any BSD compatible name lister, look for dumpbin.
5583  if test -n "$DUMPBIN"; then :
5584    # Let the user override the test.
5585  else
5586    if test -n "$ac_tool_prefix"; then
5587  for ac_prog in dumpbin "link -dump"
5588  do
5589    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5590set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5592$as_echo_n "checking for $ac_word... " >&6; }
5593if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5594  $as_echo_n "(cached) " >&6
5595else
5596  if test -n "$DUMPBIN"; then
5597  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5598else
5599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5600for as_dir in $PATH
5601do
5602  IFS=$as_save_IFS
5603  test -z "$as_dir" && as_dir=.
5604    for ac_exec_ext in '' $ac_executable_extensions; do
5605  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5606    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5607    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5608    break 2
5609  fi
5610done
5611  done
5612IFS=$as_save_IFS
5613
5614fi
5615fi
5616DUMPBIN=$ac_cv_prog_DUMPBIN
5617if test -n "$DUMPBIN"; then
5618  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5619$as_echo "$DUMPBIN" >&6; }
5620else
5621  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5622$as_echo "no" >&6; }
5623fi
5624
5625
5626    test -n "$DUMPBIN" && break
5627  done
5628fi
5629if test -z "$DUMPBIN"; then
5630  ac_ct_DUMPBIN=$DUMPBIN
5631  for ac_prog in dumpbin "link -dump"
5632do
5633  # Extract the first word of "$ac_prog", so it can be a program name with args.
5634set dummy $ac_prog; ac_word=$2
5635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5636$as_echo_n "checking for $ac_word... " >&6; }
5637if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5638  $as_echo_n "(cached) " >&6
5639else
5640  if test -n "$ac_ct_DUMPBIN"; then
5641  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5642else
5643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5644for as_dir in $PATH
5645do
5646  IFS=$as_save_IFS
5647  test -z "$as_dir" && as_dir=.
5648    for ac_exec_ext in '' $ac_executable_extensions; do
5649  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5650    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5651    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5652    break 2
5653  fi
5654done
5655  done
5656IFS=$as_save_IFS
5657
5658fi
5659fi
5660ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5661if test -n "$ac_ct_DUMPBIN"; then
5662  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5663$as_echo "$ac_ct_DUMPBIN" >&6; }
5664else
5665  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5666$as_echo "no" >&6; }
5667fi
5668
5669
5670  test -n "$ac_ct_DUMPBIN" && break
5671done
5672
5673  if test "x$ac_ct_DUMPBIN" = x; then
5674    DUMPBIN=":"
5675  else
5676    case $cross_compiling:$ac_tool_warned in
5677yes:)
5678{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5679$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5680ac_tool_warned=yes ;;
5681esac
5682    DUMPBIN=$ac_ct_DUMPBIN
5683  fi
5684fi
5685
5686    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5687    *COFF*)
5688      DUMPBIN="$DUMPBIN -symbols"
5689      ;;
5690    *)
5691      DUMPBIN=:
5692      ;;
5693    esac
5694  fi
5695
5696  if test "$DUMPBIN" != ":"; then
5697    NM="$DUMPBIN"
5698  fi
5699fi
5700test -z "$NM" && NM=nm
5701
5702
5703
5704
5705
5706
5707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5708$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5709if test "${lt_cv_nm_interface+set}" = set; then :
5710  $as_echo_n "(cached) " >&6
5711else
5712  lt_cv_nm_interface="BSD nm"
5713  echo "int some_variable = 0;" > conftest.$ac_ext
5714  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5715  (eval "$ac_compile" 2>conftest.err)
5716  cat conftest.err >&5
5717  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5718  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5719  cat conftest.err >&5
5720  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5721  cat conftest.out >&5
5722  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5723    lt_cv_nm_interface="MS dumpbin"
5724  fi
5725  rm -f conftest*
5726fi
5727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5728$as_echo "$lt_cv_nm_interface" >&6; }
5729
5730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5731$as_echo_n "checking whether ln -s works... " >&6; }
5732LN_S=$as_ln_s
5733if test "$LN_S" = "ln -s"; then
5734  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5735$as_echo "yes" >&6; }
5736else
5737  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5738$as_echo "no, using $LN_S" >&6; }
5739fi
5740
5741# find the maximum length of command line arguments
5742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5743$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5744if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5745  $as_echo_n "(cached) " >&6
5746else
5747    i=0
5748  teststring="ABCD"
5749
5750  case $build_os in
5751  msdosdjgpp*)
5752    # On DJGPP, this test can blow up pretty badly due to problems in libc
5753    # (any single argument exceeding 2000 bytes causes a buffer overrun
5754    # during glob expansion).  Even if it were fixed, the result of this
5755    # check would be larger than it should be.
5756    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5757    ;;
5758
5759  gnu*)
5760    # Under GNU Hurd, this test is not required because there is
5761    # no limit to the length of command line arguments.
5762    # Libtool will interpret -1 as no limit whatsoever
5763    lt_cv_sys_max_cmd_len=-1;
5764    ;;
5765
5766  cygwin* | mingw* | cegcc*)
5767    # On Win9x/ME, this test blows up -- it succeeds, but takes
5768    # about 5 minutes as the teststring grows exponentially.
5769    # Worse, since 9x/ME are not pre-emptively multitasking,
5770    # you end up with a "frozen" computer, even though with patience
5771    # the test eventually succeeds (with a max line length of 256k).
5772    # Instead, let's just punt: use the minimum linelength reported by
5773    # all of the supported platforms: 8192 (on NT/2K/XP).
5774    lt_cv_sys_max_cmd_len=8192;
5775    ;;
5776
5777  mint*)
5778    # On MiNT this can take a long time and run out of memory.
5779    lt_cv_sys_max_cmd_len=8192;
5780    ;;
5781
5782  amigaos*)
5783    # On AmigaOS with pdksh, this test takes hours, literally.
5784    # So we just punt and use a minimum line length of 8192.
5785    lt_cv_sys_max_cmd_len=8192;
5786    ;;
5787
5788  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5789    # This has been around since 386BSD, at least.  Likely further.
5790    if test -x /sbin/sysctl; then
5791      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5792    elif test -x /usr/sbin/sysctl; then
5793      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5794    else
5795      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5796    fi
5797    # And add a safety zone
5798    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5799    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5800    ;;
5801
5802  interix*)
5803    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5804    lt_cv_sys_max_cmd_len=196608
5805    ;;
5806
5807  osf*)
5808    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5809    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5810    # nice to cause kernel panics so lets avoid the loop below.
5811    # First set a reasonable default.
5812    lt_cv_sys_max_cmd_len=16384
5813    #
5814    if test -x /sbin/sysconfig; then
5815      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5816        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5817      esac
5818    fi
5819    ;;
5820  sco3.2v5*)
5821    lt_cv_sys_max_cmd_len=102400
5822    ;;
5823  sysv5* | sco5v6* | sysv4.2uw2*)
5824    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5825    if test -n "$kargmax"; then
5826      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5827    else
5828      lt_cv_sys_max_cmd_len=32768
5829    fi
5830    ;;
5831  *)
5832    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5833    if test -n "$lt_cv_sys_max_cmd_len"; then
5834      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5835      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5836    else
5837      # Make teststring a little bigger before we do anything with it.
5838      # a 1K string should be a reasonable start.
5839      for i in 1 2 3 4 5 6 7 8 ; do
5840        teststring=$teststring$teststring
5841      done
5842      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5843      # If test is not a shell built-in, we'll probably end up computing a
5844      # maximum length that is only half of the actual maximum length, but
5845      # we can't tell.
5846      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5847	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5848	      test $i != 17 # 1/2 MB should be enough
5849      do
5850        i=`expr $i + 1`
5851        teststring=$teststring$teststring
5852      done
5853      # Only check the string length outside the loop.
5854      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5855      teststring=
5856      # Add a significant safety factor because C++ compilers can tack on
5857      # massive amounts of additional arguments before passing them to the
5858      # linker.  It appears as though 1/2 is a usable value.
5859      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5860    fi
5861    ;;
5862  esac
5863
5864fi
5865
5866if test -n $lt_cv_sys_max_cmd_len ; then
5867  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5868$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5869else
5870  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5871$as_echo "none" >&6; }
5872fi
5873max_cmd_len=$lt_cv_sys_max_cmd_len
5874
5875
5876
5877
5878
5879
5880: ${CP="cp -f"}
5881: ${MV="mv -f"}
5882: ${RM="rm -f"}
5883
5884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5885$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5886# Try some XSI features
5887xsi_shell=no
5888( _lt_dummy="a/b/c"
5889  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5890      = c,a/b,, \
5891    && eval 'test $(( 1 + 1 )) -eq 2 \
5892    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5893  && xsi_shell=yes
5894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5895$as_echo "$xsi_shell" >&6; }
5896
5897
5898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5899$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5900lt_shell_append=no
5901( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5902    >/dev/null 2>&1 \
5903  && lt_shell_append=yes
5904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5905$as_echo "$lt_shell_append" >&6; }
5906
5907
5908if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5909  lt_unset=unset
5910else
5911  lt_unset=false
5912fi
5913
5914
5915
5916
5917
5918# test EBCDIC or ASCII
5919case `echo X|tr X '\101'` in
5920 A) # ASCII based system
5921    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5922  lt_SP2NL='tr \040 \012'
5923  lt_NL2SP='tr \015\012 \040\040'
5924  ;;
5925 *) # EBCDIC based system
5926  lt_SP2NL='tr \100 \n'
5927  lt_NL2SP='tr \r\n \100\100'
5928  ;;
5929esac
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5940$as_echo_n "checking for $LD option to reload object files... " >&6; }
5941if test "${lt_cv_ld_reload_flag+set}" = set; then :
5942  $as_echo_n "(cached) " >&6
5943else
5944  lt_cv_ld_reload_flag='-r'
5945fi
5946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5947$as_echo "$lt_cv_ld_reload_flag" >&6; }
5948reload_flag=$lt_cv_ld_reload_flag
5949case $reload_flag in
5950"" | " "*) ;;
5951*) reload_flag=" $reload_flag" ;;
5952esac
5953reload_cmds='$LD$reload_flag -o $output$reload_objs'
5954case $host_os in
5955  darwin*)
5956    if test "$GCC" = yes; then
5957      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5958    else
5959      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5960    fi
5961    ;;
5962esac
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972if test -n "$ac_tool_prefix"; then
5973  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5974set dummy ${ac_tool_prefix}objdump; ac_word=$2
5975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5976$as_echo_n "checking for $ac_word... " >&6; }
5977if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5978  $as_echo_n "(cached) " >&6
5979else
5980  if test -n "$OBJDUMP"; then
5981  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5982else
5983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5984for as_dir in $PATH
5985do
5986  IFS=$as_save_IFS
5987  test -z "$as_dir" && as_dir=.
5988    for ac_exec_ext in '' $ac_executable_extensions; do
5989  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5990    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5991    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5992    break 2
5993  fi
5994done
5995  done
5996IFS=$as_save_IFS
5997
5998fi
5999fi
6000OBJDUMP=$ac_cv_prog_OBJDUMP
6001if test -n "$OBJDUMP"; then
6002  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6003$as_echo "$OBJDUMP" >&6; }
6004else
6005  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6006$as_echo "no" >&6; }
6007fi
6008
6009
6010fi
6011if test -z "$ac_cv_prog_OBJDUMP"; then
6012  ac_ct_OBJDUMP=$OBJDUMP
6013  # Extract the first word of "objdump", so it can be a program name with args.
6014set dummy objdump; ac_word=$2
6015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6016$as_echo_n "checking for $ac_word... " >&6; }
6017if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6018  $as_echo_n "(cached) " >&6
6019else
6020  if test -n "$ac_ct_OBJDUMP"; then
6021  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6022else
6023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6024for as_dir in $PATH
6025do
6026  IFS=$as_save_IFS
6027  test -z "$as_dir" && as_dir=.
6028    for ac_exec_ext in '' $ac_executable_extensions; do
6029  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6030    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6031    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6032    break 2
6033  fi
6034done
6035  done
6036IFS=$as_save_IFS
6037
6038fi
6039fi
6040ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6041if test -n "$ac_ct_OBJDUMP"; then
6042  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6043$as_echo "$ac_ct_OBJDUMP" >&6; }
6044else
6045  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6046$as_echo "no" >&6; }
6047fi
6048
6049  if test "x$ac_ct_OBJDUMP" = x; then
6050    OBJDUMP="false"
6051  else
6052    case $cross_compiling:$ac_tool_warned in
6053yes:)
6054{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6055$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6056ac_tool_warned=yes ;;
6057esac
6058    OBJDUMP=$ac_ct_OBJDUMP
6059  fi
6060else
6061  OBJDUMP="$ac_cv_prog_OBJDUMP"
6062fi
6063
6064test -z "$OBJDUMP" && OBJDUMP=objdump
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6075$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6076if test "${lt_cv_deplibs_check_method+set}" = set; then :
6077  $as_echo_n "(cached) " >&6
6078else
6079  lt_cv_file_magic_cmd='$MAGIC_CMD'
6080lt_cv_file_magic_test_file=
6081lt_cv_deplibs_check_method='unknown'
6082# Need to set the preceding variable on all platforms that support
6083# interlibrary dependencies.
6084# 'none' -- dependencies not supported.
6085# `unknown' -- same as none, but documents that we really don't know.
6086# 'pass_all' -- all dependencies passed with no checks.
6087# 'test_compile' -- check by making test program.
6088# 'file_magic [[regex]]' -- check by looking for files in library path
6089# which responds to the $file_magic_cmd with a given extended regex.
6090# If you have `file' or equivalent on your system and you're not sure
6091# whether `pass_all' will *always* work, you probably want this one.
6092
6093case $host_os in
6094aix[4-9]*)
6095  lt_cv_deplibs_check_method=pass_all
6096  ;;
6097
6098beos*)
6099  lt_cv_deplibs_check_method=pass_all
6100  ;;
6101
6102bsdi[45]*)
6103  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6104  lt_cv_file_magic_cmd='/usr/bin/file -L'
6105  lt_cv_file_magic_test_file=/shlib/libc.so
6106  ;;
6107
6108cygwin*)
6109  # func_win32_libid is a shell function defined in ltmain.sh
6110  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6111  lt_cv_file_magic_cmd='func_win32_libid'
6112  ;;
6113
6114mingw* | pw32*)
6115  # Base MSYS/MinGW do not provide the 'file' command needed by
6116  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6117  # unless we find 'file', for example because we are cross-compiling.
6118  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6119  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6120    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6121    lt_cv_file_magic_cmd='func_win32_libid'
6122  else
6123    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6124    lt_cv_file_magic_cmd='$OBJDUMP -f'
6125  fi
6126  ;;
6127
6128cegcc*)
6129  # use the weaker test based on 'objdump'. See mingw*.
6130  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6131  lt_cv_file_magic_cmd='$OBJDUMP -f'
6132  ;;
6133
6134darwin* | rhapsody*)
6135  lt_cv_deplibs_check_method=pass_all
6136  ;;
6137
6138freebsd* | dragonfly*)
6139  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6140    case $host_cpu in
6141    i*86 )
6142      # Not sure whether the presence of OpenBSD here was a mistake.
6143      # Let's accept both of them until this is cleared up.
6144      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6145      lt_cv_file_magic_cmd=/usr/bin/file
6146      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6147      ;;
6148    esac
6149  else
6150    lt_cv_deplibs_check_method=pass_all
6151  fi
6152  ;;
6153
6154gnu*)
6155  lt_cv_deplibs_check_method=pass_all
6156  ;;
6157
6158haiku*)
6159  lt_cv_deplibs_check_method=pass_all
6160  ;;
6161
6162hpux10.20* | hpux11*)
6163  lt_cv_file_magic_cmd=/usr/bin/file
6164  case $host_cpu in
6165  ia64*)
6166    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6167    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6168    ;;
6169  hppa*64*)
6170    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]'
6171    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6172    ;;
6173  *)
6174    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6175    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6176    ;;
6177  esac
6178  ;;
6179
6180interix[3-9]*)
6181  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6182  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6183  ;;
6184
6185irix5* | irix6* | nonstopux*)
6186  case $LD in
6187  *-32|*"-32 ") libmagic=32-bit;;
6188  *-n32|*"-n32 ") libmagic=N32;;
6189  *-64|*"-64 ") libmagic=64-bit;;
6190  *) libmagic=never-match;;
6191  esac
6192  lt_cv_deplibs_check_method=pass_all
6193  ;;
6194
6195# This must be Linux ELF.
6196linux* | k*bsd*-gnu | kopensolaris*-gnu)
6197  lt_cv_deplibs_check_method=pass_all
6198  ;;
6199
6200netbsd*)
6201  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6202    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6203  else
6204    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6205  fi
6206  ;;
6207
6208newos6*)
6209  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6210  lt_cv_file_magic_cmd=/usr/bin/file
6211  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6212  ;;
6213
6214*nto* | *qnx*)
6215  lt_cv_deplibs_check_method=pass_all
6216  ;;
6217
6218openbsd*)
6219  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6220    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6221  else
6222    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6223  fi
6224  ;;
6225
6226osf3* | osf4* | osf5*)
6227  lt_cv_deplibs_check_method=pass_all
6228  ;;
6229
6230rdos*)
6231  lt_cv_deplibs_check_method=pass_all
6232  ;;
6233
6234solaris*)
6235  lt_cv_deplibs_check_method=pass_all
6236  ;;
6237
6238sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6239  lt_cv_deplibs_check_method=pass_all
6240  ;;
6241
6242sysv4 | sysv4.3*)
6243  case $host_vendor in
6244  motorola)
6245    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]'
6246    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6247    ;;
6248  ncr)
6249    lt_cv_deplibs_check_method=pass_all
6250    ;;
6251  sequent)
6252    lt_cv_file_magic_cmd='/bin/file'
6253    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6254    ;;
6255  sni)
6256    lt_cv_file_magic_cmd='/bin/file'
6257    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6258    lt_cv_file_magic_test_file=/lib/libc.so
6259    ;;
6260  siemens)
6261    lt_cv_deplibs_check_method=pass_all
6262    ;;
6263  pc)
6264    lt_cv_deplibs_check_method=pass_all
6265    ;;
6266  esac
6267  ;;
6268
6269tpf*)
6270  lt_cv_deplibs_check_method=pass_all
6271  ;;
6272esac
6273
6274fi
6275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6276$as_echo "$lt_cv_deplibs_check_method" >&6; }
6277file_magic_cmd=$lt_cv_file_magic_cmd
6278deplibs_check_method=$lt_cv_deplibs_check_method
6279test -z "$deplibs_check_method" && deplibs_check_method=unknown
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292if test -n "$ac_tool_prefix"; then
6293  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6294set dummy ${ac_tool_prefix}ar; ac_word=$2
6295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6296$as_echo_n "checking for $ac_word... " >&6; }
6297if test "${ac_cv_prog_AR+set}" = set; then :
6298  $as_echo_n "(cached) " >&6
6299else
6300  if test -n "$AR"; then
6301  ac_cv_prog_AR="$AR" # Let the user override the test.
6302else
6303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6304for as_dir in $PATH
6305do
6306  IFS=$as_save_IFS
6307  test -z "$as_dir" && as_dir=.
6308    for ac_exec_ext in '' $ac_executable_extensions; do
6309  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6310    ac_cv_prog_AR="${ac_tool_prefix}ar"
6311    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6312    break 2
6313  fi
6314done
6315  done
6316IFS=$as_save_IFS
6317
6318fi
6319fi
6320AR=$ac_cv_prog_AR
6321if test -n "$AR"; then
6322  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6323$as_echo "$AR" >&6; }
6324else
6325  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6326$as_echo "no" >&6; }
6327fi
6328
6329
6330fi
6331if test -z "$ac_cv_prog_AR"; then
6332  ac_ct_AR=$AR
6333  # Extract the first word of "ar", so it can be a program name with args.
6334set dummy ar; ac_word=$2
6335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6336$as_echo_n "checking for $ac_word... " >&6; }
6337if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6338  $as_echo_n "(cached) " >&6
6339else
6340  if test -n "$ac_ct_AR"; then
6341  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6342else
6343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6344for as_dir in $PATH
6345do
6346  IFS=$as_save_IFS
6347  test -z "$as_dir" && as_dir=.
6348    for ac_exec_ext in '' $ac_executable_extensions; do
6349  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6350    ac_cv_prog_ac_ct_AR="ar"
6351    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6352    break 2
6353  fi
6354done
6355  done
6356IFS=$as_save_IFS
6357
6358fi
6359fi
6360ac_ct_AR=$ac_cv_prog_ac_ct_AR
6361if test -n "$ac_ct_AR"; then
6362  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6363$as_echo "$ac_ct_AR" >&6; }
6364else
6365  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6366$as_echo "no" >&6; }
6367fi
6368
6369  if test "x$ac_ct_AR" = x; then
6370    AR="false"
6371  else
6372    case $cross_compiling:$ac_tool_warned in
6373yes:)
6374{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6375$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6376ac_tool_warned=yes ;;
6377esac
6378    AR=$ac_ct_AR
6379  fi
6380else
6381  AR="$ac_cv_prog_AR"
6382fi
6383
6384test -z "$AR" && AR=ar
6385test -z "$AR_FLAGS" && AR_FLAGS=cru
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397if test -n "$ac_tool_prefix"; then
6398  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6399set dummy ${ac_tool_prefix}strip; ac_word=$2
6400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6401$as_echo_n "checking for $ac_word... " >&6; }
6402if test "${ac_cv_prog_STRIP+set}" = set; then :
6403  $as_echo_n "(cached) " >&6
6404else
6405  if test -n "$STRIP"; then
6406  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6407else
6408as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6409for as_dir in $PATH
6410do
6411  IFS=$as_save_IFS
6412  test -z "$as_dir" && as_dir=.
6413    for ac_exec_ext in '' $ac_executable_extensions; do
6414  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6415    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6416    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6417    break 2
6418  fi
6419done
6420  done
6421IFS=$as_save_IFS
6422
6423fi
6424fi
6425STRIP=$ac_cv_prog_STRIP
6426if test -n "$STRIP"; then
6427  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6428$as_echo "$STRIP" >&6; }
6429else
6430  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6431$as_echo "no" >&6; }
6432fi
6433
6434
6435fi
6436if test -z "$ac_cv_prog_STRIP"; then
6437  ac_ct_STRIP=$STRIP
6438  # Extract the first word of "strip", so it can be a program name with args.
6439set dummy strip; ac_word=$2
6440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6441$as_echo_n "checking for $ac_word... " >&6; }
6442if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6443  $as_echo_n "(cached) " >&6
6444else
6445  if test -n "$ac_ct_STRIP"; then
6446  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6447else
6448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6449for as_dir in $PATH
6450do
6451  IFS=$as_save_IFS
6452  test -z "$as_dir" && as_dir=.
6453    for ac_exec_ext in '' $ac_executable_extensions; do
6454  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6455    ac_cv_prog_ac_ct_STRIP="strip"
6456    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6457    break 2
6458  fi
6459done
6460  done
6461IFS=$as_save_IFS
6462
6463fi
6464fi
6465ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6466if test -n "$ac_ct_STRIP"; then
6467  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6468$as_echo "$ac_ct_STRIP" >&6; }
6469else
6470  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6471$as_echo "no" >&6; }
6472fi
6473
6474  if test "x$ac_ct_STRIP" = x; then
6475    STRIP=":"
6476  else
6477    case $cross_compiling:$ac_tool_warned in
6478yes:)
6479{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6480$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6481ac_tool_warned=yes ;;
6482esac
6483    STRIP=$ac_ct_STRIP
6484  fi
6485else
6486  STRIP="$ac_cv_prog_STRIP"
6487fi
6488
6489test -z "$STRIP" && STRIP=:
6490
6491
6492
6493
6494
6495
6496if test -n "$ac_tool_prefix"; then
6497  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6498set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6500$as_echo_n "checking for $ac_word... " >&6; }
6501if test "${ac_cv_prog_RANLIB+set}" = set; then :
6502  $as_echo_n "(cached) " >&6
6503else
6504  if test -n "$RANLIB"; then
6505  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6506else
6507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6508for as_dir in $PATH
6509do
6510  IFS=$as_save_IFS
6511  test -z "$as_dir" && as_dir=.
6512    for ac_exec_ext in '' $ac_executable_extensions; do
6513  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6514    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6515    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6516    break 2
6517  fi
6518done
6519  done
6520IFS=$as_save_IFS
6521
6522fi
6523fi
6524RANLIB=$ac_cv_prog_RANLIB
6525if test -n "$RANLIB"; then
6526  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6527$as_echo "$RANLIB" >&6; }
6528else
6529  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6530$as_echo "no" >&6; }
6531fi
6532
6533
6534fi
6535if test -z "$ac_cv_prog_RANLIB"; then
6536  ac_ct_RANLIB=$RANLIB
6537  # Extract the first word of "ranlib", so it can be a program name with args.
6538set dummy ranlib; ac_word=$2
6539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6540$as_echo_n "checking for $ac_word... " >&6; }
6541if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6542  $as_echo_n "(cached) " >&6
6543else
6544  if test -n "$ac_ct_RANLIB"; then
6545  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6546else
6547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6548for as_dir in $PATH
6549do
6550  IFS=$as_save_IFS
6551  test -z "$as_dir" && as_dir=.
6552    for ac_exec_ext in '' $ac_executable_extensions; do
6553  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6554    ac_cv_prog_ac_ct_RANLIB="ranlib"
6555    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6556    break 2
6557  fi
6558done
6559  done
6560IFS=$as_save_IFS
6561
6562fi
6563fi
6564ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6565if test -n "$ac_ct_RANLIB"; then
6566  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6567$as_echo "$ac_ct_RANLIB" >&6; }
6568else
6569  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6570$as_echo "no" >&6; }
6571fi
6572
6573  if test "x$ac_ct_RANLIB" = x; then
6574    RANLIB=":"
6575  else
6576    case $cross_compiling:$ac_tool_warned in
6577yes:)
6578{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6579$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6580ac_tool_warned=yes ;;
6581esac
6582    RANLIB=$ac_ct_RANLIB
6583  fi
6584else
6585  RANLIB="$ac_cv_prog_RANLIB"
6586fi
6587
6588test -z "$RANLIB" && RANLIB=:
6589
6590
6591
6592
6593
6594
6595# Determine commands to create old-style static archives.
6596old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6597old_postinstall_cmds='chmod 644 $oldlib'
6598old_postuninstall_cmds=
6599
6600if test -n "$RANLIB"; then
6601  case $host_os in
6602  openbsd*)
6603    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6604    ;;
6605  *)
6606    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6607    ;;
6608  esac
6609  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6610fi
6611
6612case $host_os in
6613  darwin*)
6614    lock_old_archive_extraction=yes ;;
6615  *)
6616    lock_old_archive_extraction=no ;;
6617esac
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657# If no C compiler was specified, use CC.
6658LTCC=${LTCC-"$CC"}
6659
6660# If no C compiler flags were specified, use CFLAGS.
6661LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6662
6663# Allow CC to be a program name with arguments.
6664compiler=$CC
6665
6666
6667# Check for command to grab the raw symbol name followed by C symbol from nm.
6668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6669$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6670if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6671  $as_echo_n "(cached) " >&6
6672else
6673
6674# These are sane defaults that work on at least a few old systems.
6675# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6676
6677# Character class describing NM global symbol codes.
6678symcode='[BCDEGRST]'
6679
6680# Regexp to match symbols that can be accessed directly from C.
6681sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6682
6683# Define system-specific variables.
6684case $host_os in
6685aix*)
6686  symcode='[BCDT]'
6687  ;;
6688cygwin* | mingw* | pw32* | cegcc*)
6689  symcode='[ABCDGISTW]'
6690  ;;
6691hpux*)
6692  if test "$host_cpu" = ia64; then
6693    symcode='[ABCDEGRST]'
6694  fi
6695  ;;
6696irix* | nonstopux*)
6697  symcode='[BCDEGRST]'
6698  ;;
6699osf*)
6700  symcode='[BCDEGQRST]'
6701  ;;
6702solaris*)
6703  symcode='[BDRT]'
6704  ;;
6705sco3.2v5*)
6706  symcode='[DT]'
6707  ;;
6708sysv4.2uw2*)
6709  symcode='[DT]'
6710  ;;
6711sysv5* | sco5v6* | unixware* | OpenUNIX*)
6712  symcode='[ABDT]'
6713  ;;
6714sysv4)
6715  symcode='[DFNSTU]'
6716  ;;
6717esac
6718
6719# If we're using GNU nm, then use its standard symbol codes.
6720case `$NM -V 2>&1` in
6721*GNU* | *'with BFD'*)
6722  symcode='[ABCDGIRSTW]' ;;
6723esac
6724
6725# Transform an extracted symbol line into a proper C declaration.
6726# Some systems (esp. on ia64) link data and code symbols differently,
6727# so use this general approach.
6728lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6729
6730# Transform an extracted symbol line into symbol name and symbol address
6731lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6732lt_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'"
6733
6734# Handle CRLF in mingw tool chain
6735opt_cr=
6736case $build_os in
6737mingw*)
6738  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6739  ;;
6740esac
6741
6742# Try without a prefix underscore, then with it.
6743for ac_symprfx in "" "_"; do
6744
6745  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6746  symxfrm="\\1 $ac_symprfx\\2 \\2"
6747
6748  # Write the raw and C identifiers.
6749  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6750    # Fake it for dumpbin and say T for any non-static function
6751    # and D for any global variable.
6752    # Also find C++ and __fastcall symbols from MSVC++,
6753    # which start with @ or ?.
6754    lt_cv_sys_global_symbol_pipe="$AWK '"\
6755"     {last_section=section; section=\$ 3};"\
6756"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6757"     \$ 0!~/External *\|/{next};"\
6758"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6759"     {if(hide[section]) next};"\
6760"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6761"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6762"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6763"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6764"     ' prfx=^$ac_symprfx"
6765  else
6766    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6767  fi
6768
6769  # Check to see that the pipe works correctly.
6770  pipe_works=no
6771
6772  rm -f conftest*
6773  cat > conftest.$ac_ext <<_LT_EOF
6774#ifdef __cplusplus
6775extern "C" {
6776#endif
6777char nm_test_var;
6778void nm_test_func(void);
6779void nm_test_func(void){}
6780#ifdef __cplusplus
6781}
6782#endif
6783int main(){nm_test_var='a';nm_test_func();return(0);}
6784_LT_EOF
6785
6786  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6787  (eval $ac_compile) 2>&5
6788  ac_status=$?
6789  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6790  test $ac_status = 0; }; then
6791    # Now try to grab the symbols.
6792    nlist=conftest.nm
6793    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6794  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6795  ac_status=$?
6796  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6797  test $ac_status = 0; } && test -s "$nlist"; then
6798      # Try sorting and uniquifying the output.
6799      if sort "$nlist" | uniq > "$nlist"T; then
6800	mv -f "$nlist"T "$nlist"
6801      else
6802	rm -f "$nlist"T
6803      fi
6804
6805      # Make sure that we snagged all the symbols we need.
6806      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6807	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6808	  cat <<_LT_EOF > conftest.$ac_ext
6809#ifdef __cplusplus
6810extern "C" {
6811#endif
6812
6813_LT_EOF
6814	  # Now generate the symbol file.
6815	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6816
6817	  cat <<_LT_EOF >> conftest.$ac_ext
6818
6819/* The mapping between symbol names and symbols.  */
6820const struct {
6821  const char *name;
6822  void       *address;
6823}
6824lt__PROGRAM__LTX_preloaded_symbols[] =
6825{
6826  { "@PROGRAM@", (void *) 0 },
6827_LT_EOF
6828	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6829	  cat <<\_LT_EOF >> conftest.$ac_ext
6830  {0, (void *) 0}
6831};
6832
6833/* This works around a problem in FreeBSD linker */
6834#ifdef FREEBSD_WORKAROUND
6835static const void *lt_preloaded_setup() {
6836  return lt__PROGRAM__LTX_preloaded_symbols;
6837}
6838#endif
6839
6840#ifdef __cplusplus
6841}
6842#endif
6843_LT_EOF
6844	  # Now try linking the two files.
6845	  mv conftest.$ac_objext conftstm.$ac_objext
6846	  lt_save_LIBS="$LIBS"
6847	  lt_save_CFLAGS="$CFLAGS"
6848	  LIBS="conftstm.$ac_objext"
6849	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6850	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6851  (eval $ac_link) 2>&5
6852  ac_status=$?
6853  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6854  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6855	    pipe_works=yes
6856	  fi
6857	  LIBS="$lt_save_LIBS"
6858	  CFLAGS="$lt_save_CFLAGS"
6859	else
6860	  echo "cannot find nm_test_func in $nlist" >&5
6861	fi
6862      else
6863	echo "cannot find nm_test_var in $nlist" >&5
6864      fi
6865    else
6866      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6867    fi
6868  else
6869    echo "$progname: failed program was:" >&5
6870    cat conftest.$ac_ext >&5
6871  fi
6872  rm -rf conftest* conftst*
6873
6874  # Do not use the global_symbol_pipe unless it works.
6875  if test "$pipe_works" = yes; then
6876    break
6877  else
6878    lt_cv_sys_global_symbol_pipe=
6879  fi
6880done
6881
6882fi
6883
6884if test -z "$lt_cv_sys_global_symbol_pipe"; then
6885  lt_cv_sys_global_symbol_to_cdecl=
6886fi
6887if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6888  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6889$as_echo "failed" >&6; }
6890else
6891  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6892$as_echo "ok" >&6; }
6893fi
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916# Check whether --enable-libtool-lock was given.
6917if test "${enable_libtool_lock+set}" = set; then :
6918  enableval=$enable_libtool_lock;
6919fi
6920
6921test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6922
6923# Some flags need to be propagated to the compiler or linker for good
6924# libtool support.
6925case $host in
6926ia64-*-hpux*)
6927  # Find out which ABI we are using.
6928  echo 'int i;' > conftest.$ac_ext
6929  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6930  (eval $ac_compile) 2>&5
6931  ac_status=$?
6932  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6933  test $ac_status = 0; }; then
6934    case `/usr/bin/file conftest.$ac_objext` in
6935      *ELF-32*)
6936	HPUX_IA64_MODE="32"
6937	;;
6938      *ELF-64*)
6939	HPUX_IA64_MODE="64"
6940	;;
6941    esac
6942  fi
6943  rm -rf conftest*
6944  ;;
6945*-*-irix6*)
6946  # Find out which ABI we are using.
6947  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6948  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6949  (eval $ac_compile) 2>&5
6950  ac_status=$?
6951  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6952  test $ac_status = 0; }; then
6953    if test "$lt_cv_prog_gnu_ld" = yes; then
6954      case `/usr/bin/file conftest.$ac_objext` in
6955	*32-bit*)
6956	  LD="${LD-ld} -melf32bsmip"
6957	  ;;
6958	*N32*)
6959	  LD="${LD-ld} -melf32bmipn32"
6960	  ;;
6961	*64-bit*)
6962	  LD="${LD-ld} -melf64bmip"
6963	;;
6964      esac
6965    else
6966      case `/usr/bin/file conftest.$ac_objext` in
6967	*32-bit*)
6968	  LD="${LD-ld} -32"
6969	  ;;
6970	*N32*)
6971	  LD="${LD-ld} -n32"
6972	  ;;
6973	*64-bit*)
6974	  LD="${LD-ld} -64"
6975	  ;;
6976      esac
6977    fi
6978  fi
6979  rm -rf conftest*
6980  ;;
6981
6982x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6983s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6984  # Find out which ABI we are using.
6985  echo 'int i;' > conftest.$ac_ext
6986  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6987  (eval $ac_compile) 2>&5
6988  ac_status=$?
6989  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6990  test $ac_status = 0; }; then
6991    case `/usr/bin/file conftest.o` in
6992      *32-bit*)
6993	case $host in
6994	  x86_64-*kfreebsd*-gnu)
6995	    LD="${LD-ld} -m elf_i386_fbsd"
6996	    ;;
6997	  x86_64-*linux*)
6998	    case `/usr/bin/file conftest.o` in
6999	      *x86-64*)
7000		LD="${LD-ld} -m elf32_x86_64"
7001		;;
7002	      *)
7003		LD="${LD-ld} -m elf_i386"
7004		;;
7005	    esac
7006	    ;;
7007	  powerpc64le-*linux*)
7008	    LD="${LD-ld} -m elf32lppclinux"
7009	    ;;
7010	  powerpc64-*linux*)
7011	    LD="${LD-ld} -m elf32ppclinux"
7012	    ;;
7013	  s390x-*linux*)
7014	    LD="${LD-ld} -m elf_s390"
7015	    ;;
7016	  sparc64-*linux*)
7017	    LD="${LD-ld} -m elf32_sparc"
7018	    ;;
7019	esac
7020	;;
7021      *64-bit*)
7022	case $host in
7023	  x86_64-*kfreebsd*-gnu)
7024	    LD="${LD-ld} -m elf_x86_64_fbsd"
7025	    ;;
7026	  x86_64-*linux*)
7027	    LD="${LD-ld} -m elf_x86_64"
7028	    ;;
7029	  powerpcle-*linux*)
7030	    LD="${LD-ld} -m elf64lppc"
7031	    ;;
7032	  powerpc-*linux*)
7033	    LD="${LD-ld} -m elf64ppc"
7034	    ;;
7035	  s390*-*linux*|s390*-*tpf*)
7036	    LD="${LD-ld} -m elf64_s390"
7037	    ;;
7038	  sparc*-*linux*)
7039	    LD="${LD-ld} -m elf64_sparc"
7040	    ;;
7041	esac
7042	;;
7043    esac
7044  fi
7045  rm -rf conftest*
7046  ;;
7047
7048*-*-sco3.2v5*)
7049  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7050  SAVE_CFLAGS="$CFLAGS"
7051  CFLAGS="$CFLAGS -belf"
7052  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7053$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7054if test "${lt_cv_cc_needs_belf+set}" = set; then :
7055  $as_echo_n "(cached) " >&6
7056else
7057  ac_ext=c
7058ac_cpp='$CPP $CPPFLAGS'
7059ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7060ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7061ac_compiler_gnu=$ac_cv_c_compiler_gnu
7062
7063     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7064/* end confdefs.h.  */
7065
7066int
7067main ()
7068{
7069
7070  ;
7071  return 0;
7072}
7073_ACEOF
7074if ac_fn_c_try_link "$LINENO"; then :
7075  lt_cv_cc_needs_belf=yes
7076else
7077  lt_cv_cc_needs_belf=no
7078fi
7079rm -f core conftest.err conftest.$ac_objext \
7080    conftest$ac_exeext conftest.$ac_ext
7081     ac_ext=c
7082ac_cpp='$CPP $CPPFLAGS'
7083ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7084ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7085ac_compiler_gnu=$ac_cv_c_compiler_gnu
7086
7087fi
7088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7089$as_echo "$lt_cv_cc_needs_belf" >&6; }
7090  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7091    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7092    CFLAGS="$SAVE_CFLAGS"
7093  fi
7094  ;;
7095sparc*-*solaris*)
7096  # Find out which ABI we are using.
7097  echo 'int i;' > conftest.$ac_ext
7098  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7099  (eval $ac_compile) 2>&5
7100  ac_status=$?
7101  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7102  test $ac_status = 0; }; then
7103    case `/usr/bin/file conftest.o` in
7104    *64-bit*)
7105      case $lt_cv_prog_gnu_ld in
7106      yes*) LD="${LD-ld} -m elf64_sparc" ;;
7107      *)
7108	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7109	  LD="${LD-ld} -64"
7110	fi
7111	;;
7112      esac
7113      ;;
7114    esac
7115  fi
7116  rm -rf conftest*
7117  ;;
7118esac
7119
7120need_locks="$enable_libtool_lock"
7121
7122
7123  case $host_os in
7124    rhapsody* | darwin*)
7125    if test -n "$ac_tool_prefix"; then
7126  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7127set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7129$as_echo_n "checking for $ac_word... " >&6; }
7130if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7131  $as_echo_n "(cached) " >&6
7132else
7133  if test -n "$DSYMUTIL"; then
7134  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7135else
7136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7137for as_dir in $PATH
7138do
7139  IFS=$as_save_IFS
7140  test -z "$as_dir" && as_dir=.
7141    for ac_exec_ext in '' $ac_executable_extensions; do
7142  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7143    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7144    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7145    break 2
7146  fi
7147done
7148  done
7149IFS=$as_save_IFS
7150
7151fi
7152fi
7153DSYMUTIL=$ac_cv_prog_DSYMUTIL
7154if test -n "$DSYMUTIL"; then
7155  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7156$as_echo "$DSYMUTIL" >&6; }
7157else
7158  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7159$as_echo "no" >&6; }
7160fi
7161
7162
7163fi
7164if test -z "$ac_cv_prog_DSYMUTIL"; then
7165  ac_ct_DSYMUTIL=$DSYMUTIL
7166  # Extract the first word of "dsymutil", so it can be a program name with args.
7167set dummy dsymutil; ac_word=$2
7168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7169$as_echo_n "checking for $ac_word... " >&6; }
7170if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7171  $as_echo_n "(cached) " >&6
7172else
7173  if test -n "$ac_ct_DSYMUTIL"; then
7174  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7175else
7176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7177for as_dir in $PATH
7178do
7179  IFS=$as_save_IFS
7180  test -z "$as_dir" && as_dir=.
7181    for ac_exec_ext in '' $ac_executable_extensions; do
7182  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7183    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7184    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7185    break 2
7186  fi
7187done
7188  done
7189IFS=$as_save_IFS
7190
7191fi
7192fi
7193ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7194if test -n "$ac_ct_DSYMUTIL"; then
7195  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7196$as_echo "$ac_ct_DSYMUTIL" >&6; }
7197else
7198  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7199$as_echo "no" >&6; }
7200fi
7201
7202  if test "x$ac_ct_DSYMUTIL" = x; then
7203    DSYMUTIL=":"
7204  else
7205    case $cross_compiling:$ac_tool_warned in
7206yes:)
7207{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7208$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7209ac_tool_warned=yes ;;
7210esac
7211    DSYMUTIL=$ac_ct_DSYMUTIL
7212  fi
7213else
7214  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7215fi
7216
7217    if test -n "$ac_tool_prefix"; then
7218  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7219set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7221$as_echo_n "checking for $ac_word... " >&6; }
7222if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7223  $as_echo_n "(cached) " >&6
7224else
7225  if test -n "$NMEDIT"; then
7226  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7227else
7228as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7229for as_dir in $PATH
7230do
7231  IFS=$as_save_IFS
7232  test -z "$as_dir" && as_dir=.
7233    for ac_exec_ext in '' $ac_executable_extensions; do
7234  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7235    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7236    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7237    break 2
7238  fi
7239done
7240  done
7241IFS=$as_save_IFS
7242
7243fi
7244fi
7245NMEDIT=$ac_cv_prog_NMEDIT
7246if test -n "$NMEDIT"; then
7247  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7248$as_echo "$NMEDIT" >&6; }
7249else
7250  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7251$as_echo "no" >&6; }
7252fi
7253
7254
7255fi
7256if test -z "$ac_cv_prog_NMEDIT"; then
7257  ac_ct_NMEDIT=$NMEDIT
7258  # Extract the first word of "nmedit", so it can be a program name with args.
7259set dummy nmedit; ac_word=$2
7260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7261$as_echo_n "checking for $ac_word... " >&6; }
7262if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7263  $as_echo_n "(cached) " >&6
7264else
7265  if test -n "$ac_ct_NMEDIT"; then
7266  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7267else
7268as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7269for as_dir in $PATH
7270do
7271  IFS=$as_save_IFS
7272  test -z "$as_dir" && as_dir=.
7273    for ac_exec_ext in '' $ac_executable_extensions; do
7274  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7275    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7276    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7277    break 2
7278  fi
7279done
7280  done
7281IFS=$as_save_IFS
7282
7283fi
7284fi
7285ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7286if test -n "$ac_ct_NMEDIT"; then
7287  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7288$as_echo "$ac_ct_NMEDIT" >&6; }
7289else
7290  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7291$as_echo "no" >&6; }
7292fi
7293
7294  if test "x$ac_ct_NMEDIT" = x; then
7295    NMEDIT=":"
7296  else
7297    case $cross_compiling:$ac_tool_warned in
7298yes:)
7299{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7300$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7301ac_tool_warned=yes ;;
7302esac
7303    NMEDIT=$ac_ct_NMEDIT
7304  fi
7305else
7306  NMEDIT="$ac_cv_prog_NMEDIT"
7307fi
7308
7309    if test -n "$ac_tool_prefix"; then
7310  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7311set dummy ${ac_tool_prefix}lipo; ac_word=$2
7312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7313$as_echo_n "checking for $ac_word... " >&6; }
7314if test "${ac_cv_prog_LIPO+set}" = set; then :
7315  $as_echo_n "(cached) " >&6
7316else
7317  if test -n "$LIPO"; then
7318  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7319else
7320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7321for as_dir in $PATH
7322do
7323  IFS=$as_save_IFS
7324  test -z "$as_dir" && as_dir=.
7325    for ac_exec_ext in '' $ac_executable_extensions; do
7326  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7327    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7328    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7329    break 2
7330  fi
7331done
7332  done
7333IFS=$as_save_IFS
7334
7335fi
7336fi
7337LIPO=$ac_cv_prog_LIPO
7338if test -n "$LIPO"; then
7339  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7340$as_echo "$LIPO" >&6; }
7341else
7342  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7343$as_echo "no" >&6; }
7344fi
7345
7346
7347fi
7348if test -z "$ac_cv_prog_LIPO"; then
7349  ac_ct_LIPO=$LIPO
7350  # Extract the first word of "lipo", so it can be a program name with args.
7351set dummy lipo; ac_word=$2
7352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7353$as_echo_n "checking for $ac_word... " >&6; }
7354if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7355  $as_echo_n "(cached) " >&6
7356else
7357  if test -n "$ac_ct_LIPO"; then
7358  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7359else
7360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7361for as_dir in $PATH
7362do
7363  IFS=$as_save_IFS
7364  test -z "$as_dir" && as_dir=.
7365    for ac_exec_ext in '' $ac_executable_extensions; do
7366  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7367    ac_cv_prog_ac_ct_LIPO="lipo"
7368    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7369    break 2
7370  fi
7371done
7372  done
7373IFS=$as_save_IFS
7374
7375fi
7376fi
7377ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7378if test -n "$ac_ct_LIPO"; then
7379  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7380$as_echo "$ac_ct_LIPO" >&6; }
7381else
7382  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7383$as_echo "no" >&6; }
7384fi
7385
7386  if test "x$ac_ct_LIPO" = x; then
7387    LIPO=":"
7388  else
7389    case $cross_compiling:$ac_tool_warned in
7390yes:)
7391{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7392$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7393ac_tool_warned=yes ;;
7394esac
7395    LIPO=$ac_ct_LIPO
7396  fi
7397else
7398  LIPO="$ac_cv_prog_LIPO"
7399fi
7400
7401    if test -n "$ac_tool_prefix"; then
7402  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7403set dummy ${ac_tool_prefix}otool; ac_word=$2
7404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7405$as_echo_n "checking for $ac_word... " >&6; }
7406if test "${ac_cv_prog_OTOOL+set}" = set; then :
7407  $as_echo_n "(cached) " >&6
7408else
7409  if test -n "$OTOOL"; then
7410  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7411else
7412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7413for as_dir in $PATH
7414do
7415  IFS=$as_save_IFS
7416  test -z "$as_dir" && as_dir=.
7417    for ac_exec_ext in '' $ac_executable_extensions; do
7418  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7419    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7420    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7421    break 2
7422  fi
7423done
7424  done
7425IFS=$as_save_IFS
7426
7427fi
7428fi
7429OTOOL=$ac_cv_prog_OTOOL
7430if test -n "$OTOOL"; then
7431  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7432$as_echo "$OTOOL" >&6; }
7433else
7434  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7435$as_echo "no" >&6; }
7436fi
7437
7438
7439fi
7440if test -z "$ac_cv_prog_OTOOL"; then
7441  ac_ct_OTOOL=$OTOOL
7442  # Extract the first word of "otool", so it can be a program name with args.
7443set dummy otool; ac_word=$2
7444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7445$as_echo_n "checking for $ac_word... " >&6; }
7446if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7447  $as_echo_n "(cached) " >&6
7448else
7449  if test -n "$ac_ct_OTOOL"; then
7450  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7451else
7452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7453for as_dir in $PATH
7454do
7455  IFS=$as_save_IFS
7456  test -z "$as_dir" && as_dir=.
7457    for ac_exec_ext in '' $ac_executable_extensions; do
7458  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7459    ac_cv_prog_ac_ct_OTOOL="otool"
7460    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7461    break 2
7462  fi
7463done
7464  done
7465IFS=$as_save_IFS
7466
7467fi
7468fi
7469ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7470if test -n "$ac_ct_OTOOL"; then
7471  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7472$as_echo "$ac_ct_OTOOL" >&6; }
7473else
7474  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7475$as_echo "no" >&6; }
7476fi
7477
7478  if test "x$ac_ct_OTOOL" = x; then
7479    OTOOL=":"
7480  else
7481    case $cross_compiling:$ac_tool_warned in
7482yes:)
7483{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7484$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7485ac_tool_warned=yes ;;
7486esac
7487    OTOOL=$ac_ct_OTOOL
7488  fi
7489else
7490  OTOOL="$ac_cv_prog_OTOOL"
7491fi
7492
7493    if test -n "$ac_tool_prefix"; then
7494  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7495set dummy ${ac_tool_prefix}otool64; ac_word=$2
7496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7497$as_echo_n "checking for $ac_word... " >&6; }
7498if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7499  $as_echo_n "(cached) " >&6
7500else
7501  if test -n "$OTOOL64"; then
7502  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7503else
7504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7505for as_dir in $PATH
7506do
7507  IFS=$as_save_IFS
7508  test -z "$as_dir" && as_dir=.
7509    for ac_exec_ext in '' $ac_executable_extensions; do
7510  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7511    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7512    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7513    break 2
7514  fi
7515done
7516  done
7517IFS=$as_save_IFS
7518
7519fi
7520fi
7521OTOOL64=$ac_cv_prog_OTOOL64
7522if test -n "$OTOOL64"; then
7523  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7524$as_echo "$OTOOL64" >&6; }
7525else
7526  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7527$as_echo "no" >&6; }
7528fi
7529
7530
7531fi
7532if test -z "$ac_cv_prog_OTOOL64"; then
7533  ac_ct_OTOOL64=$OTOOL64
7534  # Extract the first word of "otool64", so it can be a program name with args.
7535set dummy otool64; ac_word=$2
7536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7537$as_echo_n "checking for $ac_word... " >&6; }
7538if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7539  $as_echo_n "(cached) " >&6
7540else
7541  if test -n "$ac_ct_OTOOL64"; then
7542  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7543else
7544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7545for as_dir in $PATH
7546do
7547  IFS=$as_save_IFS
7548  test -z "$as_dir" && as_dir=.
7549    for ac_exec_ext in '' $ac_executable_extensions; do
7550  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7551    ac_cv_prog_ac_ct_OTOOL64="otool64"
7552    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7553    break 2
7554  fi
7555done
7556  done
7557IFS=$as_save_IFS
7558
7559fi
7560fi
7561ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7562if test -n "$ac_ct_OTOOL64"; then
7563  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7564$as_echo "$ac_ct_OTOOL64" >&6; }
7565else
7566  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7567$as_echo "no" >&6; }
7568fi
7569
7570  if test "x$ac_ct_OTOOL64" = x; then
7571    OTOOL64=":"
7572  else
7573    case $cross_compiling:$ac_tool_warned in
7574yes:)
7575{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7576$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7577ac_tool_warned=yes ;;
7578esac
7579    OTOOL64=$ac_ct_OTOOL64
7580  fi
7581else
7582  OTOOL64="$ac_cv_prog_OTOOL64"
7583fi
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7612$as_echo_n "checking for -single_module linker flag... " >&6; }
7613if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7614  $as_echo_n "(cached) " >&6
7615else
7616  lt_cv_apple_cc_single_mod=no
7617      if test -z "${LT_MULTI_MODULE}"; then
7618	# By default we will add the -single_module flag. You can override
7619	# by either setting the environment variable LT_MULTI_MODULE
7620	# non-empty at configure time, or by adding -multi_module to the
7621	# link flags.
7622	rm -rf libconftest.dylib*
7623	echo "int foo(void){return 1;}" > conftest.c
7624	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7625-dynamiclib -Wl,-single_module conftest.c" >&5
7626	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7627	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7628        _lt_result=$?
7629	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7630	  lt_cv_apple_cc_single_mod=yes
7631	else
7632	  cat conftest.err >&5
7633	fi
7634	rm -rf libconftest.dylib*
7635	rm -f conftest.*
7636      fi
7637fi
7638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7639$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7640    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7641$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7642if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7643  $as_echo_n "(cached) " >&6
7644else
7645  lt_cv_ld_exported_symbols_list=no
7646      save_LDFLAGS=$LDFLAGS
7647      echo "_main" > conftest.sym
7648      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7649      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7650/* end confdefs.h.  */
7651
7652int
7653main ()
7654{
7655
7656  ;
7657  return 0;
7658}
7659_ACEOF
7660if ac_fn_c_try_link "$LINENO"; then :
7661  lt_cv_ld_exported_symbols_list=yes
7662else
7663  lt_cv_ld_exported_symbols_list=no
7664fi
7665rm -f core conftest.err conftest.$ac_objext \
7666    conftest$ac_exeext conftest.$ac_ext
7667	LDFLAGS="$save_LDFLAGS"
7668
7669fi
7670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7671$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7672    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7673$as_echo_n "checking for -force_load linker flag... " >&6; }
7674if test "${lt_cv_ld_force_load+set}" = set; then :
7675  $as_echo_n "(cached) " >&6
7676else
7677  lt_cv_ld_force_load=no
7678      cat > conftest.c << _LT_EOF
7679int forced_loaded() { return 2;}
7680_LT_EOF
7681      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7682      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7683      echo "$AR cru libconftest.a conftest.o" >&5
7684      $AR cru libconftest.a conftest.o 2>&5
7685      cat > conftest.c << _LT_EOF
7686int main() { return 0;}
7687_LT_EOF
7688      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7689      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7690      _lt_result=$?
7691      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7692	lt_cv_ld_force_load=yes
7693      else
7694	cat conftest.err >&5
7695      fi
7696        rm -f conftest.err libconftest.a conftest conftest.c
7697        rm -rf conftest.dSYM
7698
7699fi
7700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7701$as_echo "$lt_cv_ld_force_load" >&6; }
7702    case $host_os in
7703    rhapsody* | darwin1.[012])
7704      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7705    darwin1.*)
7706      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7707    darwin*) # darwin 5.x on
7708      # if running on 10.5 or later, the deployment target defaults
7709      # to the OS version, if on x86, and 10.4, the deployment
7710      # target defaults to 10.4. Don't you love it?
7711      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7712	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7713	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7714	10.[012][,.]*)
7715	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7716	10.*)
7717	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7718      esac
7719    ;;
7720  esac
7721    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7722      _lt_dar_single_mod='$single_module'
7723    fi
7724    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7725      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7726    else
7727      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7728    fi
7729    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7730      _lt_dsymutil='~$DSYMUTIL $lib || :'
7731    else
7732      _lt_dsymutil=
7733    fi
7734    ;;
7735  esac
7736
7737for ac_header in dlfcn.h
7738do :
7739  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7740"
7741if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7742  cat >>confdefs.h <<_ACEOF
7743#define HAVE_DLFCN_H 1
7744_ACEOF
7745
7746fi
7747
7748done
7749
7750
7751
7752
7753
7754# Set options
7755
7756
7757
7758        enable_dlopen=no
7759
7760
7761  enable_win32_dll=no
7762
7763
7764            # Check whether --enable-shared was given.
7765if test "${enable_shared+set}" = set; then :
7766  enableval=$enable_shared; p=${PACKAGE-default}
7767    case $enableval in
7768    yes) enable_shared=yes ;;
7769    no) enable_shared=no ;;
7770    *)
7771      enable_shared=no
7772      # Look at the argument we got.  We use all the common list separators.
7773      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7774      for pkg in $enableval; do
7775	IFS="$lt_save_ifs"
7776	if test "X$pkg" = "X$p"; then
7777	  enable_shared=yes
7778	fi
7779      done
7780      IFS="$lt_save_ifs"
7781      ;;
7782    esac
7783else
7784  enable_shared=yes
7785fi
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795  # Check whether --enable-static was given.
7796if test "${enable_static+set}" = set; then :
7797  enableval=$enable_static; p=${PACKAGE-default}
7798    case $enableval in
7799    yes) enable_static=yes ;;
7800    no) enable_static=no ;;
7801    *)
7802     enable_static=no
7803      # Look at the argument we got.  We use all the common list separators.
7804      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7805      for pkg in $enableval; do
7806	IFS="$lt_save_ifs"
7807	if test "X$pkg" = "X$p"; then
7808	  enable_static=yes
7809	fi
7810      done
7811      IFS="$lt_save_ifs"
7812      ;;
7813    esac
7814else
7815  enable_static=yes
7816fi
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827# Check whether --with-pic was given.
7828if test "${with_pic+set}" = set; then :
7829  withval=$with_pic; pic_mode="$withval"
7830else
7831  pic_mode=default
7832fi
7833
7834
7835test -z "$pic_mode" && pic_mode=default
7836
7837
7838
7839
7840
7841
7842
7843  # Check whether --enable-fast-install was given.
7844if test "${enable_fast_install+set}" = set; then :
7845  enableval=$enable_fast_install; p=${PACKAGE-default}
7846    case $enableval in
7847    yes) enable_fast_install=yes ;;
7848    no) enable_fast_install=no ;;
7849    *)
7850      enable_fast_install=no
7851      # Look at the argument we got.  We use all the common list separators.
7852      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7853      for pkg in $enableval; do
7854	IFS="$lt_save_ifs"
7855	if test "X$pkg" = "X$p"; then
7856	  enable_fast_install=yes
7857	fi
7858      done
7859      IFS="$lt_save_ifs"
7860      ;;
7861    esac
7862else
7863  enable_fast_install=yes
7864fi
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876# This can be used to rebuild libtool when needed
7877LIBTOOL_DEPS="$ltmain"
7878
7879# Always use our own libtool.
7880LIBTOOL='$(SHELL) $(top_builddir)/libtool'
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
7906
7907test -z "$LN_S" && LN_S="ln -s"
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920
7921
7922if test -n "${ZSH_VERSION+set}" ; then
7923   setopt NO_GLOB_SUBST
7924fi
7925
7926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7927$as_echo_n "checking for objdir... " >&6; }
7928if test "${lt_cv_objdir+set}" = set; then :
7929  $as_echo_n "(cached) " >&6
7930else
7931  rm -f .libs 2>/dev/null
7932mkdir .libs 2>/dev/null
7933if test -d .libs; then
7934  lt_cv_objdir=.libs
7935else
7936  # MS-DOS does not allow filenames that begin with a dot.
7937  lt_cv_objdir=_libs
7938fi
7939rmdir .libs 2>/dev/null
7940fi
7941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7942$as_echo "$lt_cv_objdir" >&6; }
7943objdir=$lt_cv_objdir
7944
7945
7946
7947
7948
7949cat >>confdefs.h <<_ACEOF
7950#define LT_OBJDIR "$lt_cv_objdir/"
7951_ACEOF
7952
7953
7954
7955
7956case $host_os in
7957aix3*)
7958  # AIX sometimes has problems with the GCC collect2 program.  For some
7959  # reason, if we set the COLLECT_NAMES environment variable, the problems
7960  # vanish in a puff of smoke.
7961  if test "X${COLLECT_NAMES+set}" != Xset; then
7962    COLLECT_NAMES=
7963    export COLLECT_NAMES
7964  fi
7965  ;;
7966esac
7967
7968# Global variables:
7969ofile=libtool
7970can_build_shared=yes
7971
7972# All known linkers require a `.a' archive for static linking (except MSVC,
7973# which needs '.lib').
7974libext=a
7975
7976with_gnu_ld="$lt_cv_prog_gnu_ld"
7977
7978old_CC="$CC"
7979old_CFLAGS="$CFLAGS"
7980
7981# Set sane defaults for various variables
7982test -z "$CC" && CC=cc
7983test -z "$LTCC" && LTCC=$CC
7984test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7985test -z "$LD" && LD=ld
7986test -z "$ac_objext" && ac_objext=o
7987
7988for cc_temp in $compiler""; do
7989  case $cc_temp in
7990    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7991    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7992    \-*) ;;
7993    *) break;;
7994  esac
7995done
7996cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7997
7998
7999# Only perform the check for file, if the check method requires it
8000test -z "$MAGIC_CMD" && MAGIC_CMD=file
8001case $deplibs_check_method in
8002file_magic*)
8003  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8004    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8005$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8006if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8007  $as_echo_n "(cached) " >&6
8008else
8009  case $MAGIC_CMD in
8010[\\/*] |  ?:[\\/]*)
8011  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8012  ;;
8013*)
8014  lt_save_MAGIC_CMD="$MAGIC_CMD"
8015  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8016  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8017  for ac_dir in $ac_dummy; do
8018    IFS="$lt_save_ifs"
8019    test -z "$ac_dir" && ac_dir=.
8020    if test -f $ac_dir/${ac_tool_prefix}file; then
8021      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8022      if test -n "$file_magic_test_file"; then
8023	case $deplibs_check_method in
8024	"file_magic "*)
8025	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8026	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8027	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8028	    $EGREP "$file_magic_regex" > /dev/null; then
8029	    :
8030	  else
8031	    cat <<_LT_EOF 1>&2
8032
8033*** Warning: the command libtool uses to detect shared libraries,
8034*** $file_magic_cmd, produces output that libtool cannot recognize.
8035*** The result is that libtool may fail to recognize shared libraries
8036*** as such.  This will affect the creation of libtool libraries that
8037*** depend on shared libraries, but programs linked with such libtool
8038*** libraries will work regardless of this problem.  Nevertheless, you
8039*** may want to report the problem to your system manager and/or to
8040*** bug-libtool@gnu.org
8041
8042_LT_EOF
8043	  fi ;;
8044	esac
8045      fi
8046      break
8047    fi
8048  done
8049  IFS="$lt_save_ifs"
8050  MAGIC_CMD="$lt_save_MAGIC_CMD"
8051  ;;
8052esac
8053fi
8054
8055MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8056if test -n "$MAGIC_CMD"; then
8057  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8058$as_echo "$MAGIC_CMD" >&6; }
8059else
8060  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8061$as_echo "no" >&6; }
8062fi
8063
8064
8065
8066
8067
8068if test -z "$lt_cv_path_MAGIC_CMD"; then
8069  if test -n "$ac_tool_prefix"; then
8070    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8071$as_echo_n "checking for file... " >&6; }
8072if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8073  $as_echo_n "(cached) " >&6
8074else
8075  case $MAGIC_CMD in
8076[\\/*] |  ?:[\\/]*)
8077  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8078  ;;
8079*)
8080  lt_save_MAGIC_CMD="$MAGIC_CMD"
8081  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8082  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8083  for ac_dir in $ac_dummy; do
8084    IFS="$lt_save_ifs"
8085    test -z "$ac_dir" && ac_dir=.
8086    if test -f $ac_dir/file; then
8087      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8088      if test -n "$file_magic_test_file"; then
8089	case $deplibs_check_method in
8090	"file_magic "*)
8091	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8092	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8093	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8094	    $EGREP "$file_magic_regex" > /dev/null; then
8095	    :
8096	  else
8097	    cat <<_LT_EOF 1>&2
8098
8099*** Warning: the command libtool uses to detect shared libraries,
8100*** $file_magic_cmd, produces output that libtool cannot recognize.
8101*** The result is that libtool may fail to recognize shared libraries
8102*** as such.  This will affect the creation of libtool libraries that
8103*** depend on shared libraries, but programs linked with such libtool
8104*** libraries will work regardless of this problem.  Nevertheless, you
8105*** may want to report the problem to your system manager and/or to
8106*** bug-libtool@gnu.org
8107
8108_LT_EOF
8109	  fi ;;
8110	esac
8111      fi
8112      break
8113    fi
8114  done
8115  IFS="$lt_save_ifs"
8116  MAGIC_CMD="$lt_save_MAGIC_CMD"
8117  ;;
8118esac
8119fi
8120
8121MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8122if test -n "$MAGIC_CMD"; then
8123  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8124$as_echo "$MAGIC_CMD" >&6; }
8125else
8126  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8127$as_echo "no" >&6; }
8128fi
8129
8130
8131  else
8132    MAGIC_CMD=:
8133  fi
8134fi
8135
8136  fi
8137  ;;
8138esac
8139
8140# Use C for the default configuration in the libtool script
8141
8142lt_save_CC="$CC"
8143ac_ext=c
8144ac_cpp='$CPP $CPPFLAGS'
8145ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8146ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8147ac_compiler_gnu=$ac_cv_c_compiler_gnu
8148
8149
8150# Source file extension for C test sources.
8151ac_ext=c
8152
8153# Object file extension for compiled C test sources.
8154objext=o
8155objext=$objext
8156
8157# Code to be used in simple compile tests
8158lt_simple_compile_test_code="int some_variable = 0;"
8159
8160# Code to be used in simple link tests
8161lt_simple_link_test_code='int main(){return(0);}'
8162
8163
8164
8165
8166
8167
8168
8169# If no C compiler was specified, use CC.
8170LTCC=${LTCC-"$CC"}
8171
8172# If no C compiler flags were specified, use CFLAGS.
8173LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8174
8175# Allow CC to be a program name with arguments.
8176compiler=$CC
8177
8178# Save the default compiler, since it gets overwritten when the other
8179# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8180compiler_DEFAULT=$CC
8181
8182# save warnings/boilerplate of simple test code
8183ac_outfile=conftest.$ac_objext
8184echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8185eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8186_lt_compiler_boilerplate=`cat conftest.err`
8187$RM conftest*
8188
8189ac_outfile=conftest.$ac_objext
8190echo "$lt_simple_link_test_code" >conftest.$ac_ext
8191eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8192_lt_linker_boilerplate=`cat conftest.err`
8193$RM -r conftest*
8194
8195
8196## CAVEAT EMPTOR:
8197## There is no encapsulation within the following macros, do not change
8198## the running order or otherwise move them around unless you know exactly
8199## what you are doing...
8200if test -n "$compiler"; then
8201
8202lt_prog_compiler_no_builtin_flag=
8203
8204if test "$GCC" = yes; then
8205  case $cc_basename in
8206  nvcc*)
8207    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8208  *)
8209    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8210  esac
8211
8212  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8213$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8214if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8215  $as_echo_n "(cached) " >&6
8216else
8217  lt_cv_prog_compiler_rtti_exceptions=no
8218   ac_outfile=conftest.$ac_objext
8219   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8220   lt_compiler_flag="-fno-rtti -fno-exceptions"
8221   # Insert the option either (1) after the last *FLAGS variable, or
8222   # (2) before a word containing "conftest.", or (3) at the end.
8223   # Note that $ac_compile itself does not contain backslashes and begins
8224   # with a dollar sign (not a hyphen), so the echo should work correctly.
8225   # The option is referenced via a variable to avoid confusing sed.
8226   lt_compile=`echo "$ac_compile" | $SED \
8227   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8228   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8229   -e 's:$: $lt_compiler_flag:'`
8230   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8231   (eval "$lt_compile" 2>conftest.err)
8232   ac_status=$?
8233   cat conftest.err >&5
8234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8235   if (exit $ac_status) && test -s "$ac_outfile"; then
8236     # The compiler can only warn and ignore the option if not recognized
8237     # So say no if there are warnings other than the usual output.
8238     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8239     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8240     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8241       lt_cv_prog_compiler_rtti_exceptions=yes
8242     fi
8243   fi
8244   $RM conftest*
8245
8246fi
8247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8248$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8249
8250if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8251    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8252else
8253    :
8254fi
8255
8256fi
8257
8258
8259
8260
8261
8262
8263  lt_prog_compiler_wl=
8264lt_prog_compiler_pic=
8265lt_prog_compiler_static=
8266
8267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8268$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8269
8270  if test "$GCC" = yes; then
8271    lt_prog_compiler_wl='-Wl,'
8272    lt_prog_compiler_static='-static'
8273
8274    case $host_os in
8275      aix*)
8276      # All AIX code is PIC.
8277      if test "$host_cpu" = ia64; then
8278	# AIX 5 now supports IA64 processor
8279	lt_prog_compiler_static='-Bstatic'
8280      fi
8281      lt_prog_compiler_pic='-fPIC'
8282      ;;
8283
8284    amigaos*)
8285      case $host_cpu in
8286      powerpc)
8287            # see comment about AmigaOS4 .so support
8288            lt_prog_compiler_pic='-fPIC'
8289        ;;
8290      m68k)
8291            # FIXME: we need at least 68020 code to build shared libraries, but
8292            # adding the `-m68020' flag to GCC prevents building anything better,
8293            # like `-m68040'.
8294            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8295        ;;
8296      esac
8297      ;;
8298
8299    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8300      # PIC is the default for these OSes.
8301      ;;
8302
8303    mingw* | cygwin* | pw32* | os2* | cegcc*)
8304      # This hack is so that the source file can tell whether it is being
8305      # built for inclusion in a dll (and should export symbols for example).
8306      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8307      # (--disable-auto-import) libraries
8308      lt_prog_compiler_pic='-DDLL_EXPORT'
8309      ;;
8310
8311    darwin* | rhapsody*)
8312      # PIC is the default on this platform
8313      # Common symbols not allowed in MH_DYLIB files
8314      lt_prog_compiler_pic='-fno-common'
8315      ;;
8316
8317    haiku*)
8318      # PIC is the default for Haiku.
8319      # The "-static" flag exists, but is broken.
8320      lt_prog_compiler_static=
8321      ;;
8322
8323    hpux*)
8324      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8325      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8326      # sets the default TLS model and affects inlining.
8327      case $host_cpu in
8328      hppa*64*)
8329	# +Z the default
8330	;;
8331      *)
8332	lt_prog_compiler_pic='-fPIC'
8333	;;
8334      esac
8335      ;;
8336
8337    interix[3-9]*)
8338      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8339      # Instead, we relocate shared libraries at runtime.
8340      ;;
8341
8342    msdosdjgpp*)
8343      # Just because we use GCC doesn't mean we suddenly get shared libraries
8344      # on systems that don't support them.
8345      lt_prog_compiler_can_build_shared=no
8346      enable_shared=no
8347      ;;
8348
8349    *nto* | *qnx*)
8350      # QNX uses GNU C++, but need to define -shared option too, otherwise
8351      # it will coredump.
8352      lt_prog_compiler_pic='-fPIC -shared'
8353      ;;
8354
8355    sysv4*MP*)
8356      if test -d /usr/nec; then
8357	lt_prog_compiler_pic=-Kconform_pic
8358      fi
8359      ;;
8360
8361    *)
8362      lt_prog_compiler_pic='-fPIC'
8363      ;;
8364    esac
8365
8366    case $cc_basename in
8367    nvcc*) # Cuda Compiler Driver 2.2
8368      lt_prog_compiler_wl='-Xlinker '
8369      lt_prog_compiler_pic='-Xcompiler -fPIC'
8370      ;;
8371    esac
8372  else
8373    # PORTME Check for flag to pass linker flags through the system compiler.
8374    case $host_os in
8375    aix*)
8376      lt_prog_compiler_wl='-Wl,'
8377      if test "$host_cpu" = ia64; then
8378	# AIX 5 now supports IA64 processor
8379	lt_prog_compiler_static='-Bstatic'
8380      else
8381	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8382      fi
8383      ;;
8384
8385    mingw* | cygwin* | pw32* | os2* | cegcc*)
8386      # This hack is so that the source file can tell whether it is being
8387      # built for inclusion in a dll (and should export symbols for example).
8388      lt_prog_compiler_pic='-DDLL_EXPORT'
8389      ;;
8390
8391    hpux9* | hpux10* | hpux11*)
8392      lt_prog_compiler_wl='-Wl,'
8393      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8394      # not for PA HP-UX.
8395      case $host_cpu in
8396      hppa*64*|ia64*)
8397	# +Z the default
8398	;;
8399      *)
8400	lt_prog_compiler_pic='+Z'
8401	;;
8402      esac
8403      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8404      lt_prog_compiler_static='${wl}-a ${wl}archive'
8405      ;;
8406
8407    irix5* | irix6* | nonstopux*)
8408      lt_prog_compiler_wl='-Wl,'
8409      # PIC (with -KPIC) is the default.
8410      lt_prog_compiler_static='-non_shared'
8411      ;;
8412
8413    linux* | k*bsd*-gnu | kopensolaris*-gnu)
8414      case $cc_basename in
8415      # old Intel for x86_64 which still supported -KPIC.
8416      ecc*)
8417	lt_prog_compiler_wl='-Wl,'
8418	lt_prog_compiler_pic='-KPIC'
8419	lt_prog_compiler_static='-static'
8420        ;;
8421      # icc used to be incompatible with GCC.
8422      # ICC 10 doesn't accept -KPIC any more.
8423      icc* | ifort*)
8424	lt_prog_compiler_wl='-Wl,'
8425	lt_prog_compiler_pic='-fPIC'
8426	lt_prog_compiler_static='-static'
8427        ;;
8428      # Lahey Fortran 8.1.
8429      lf95*)
8430	lt_prog_compiler_wl='-Wl,'
8431	lt_prog_compiler_pic='--shared'
8432	lt_prog_compiler_static='--static'
8433	;;
8434      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8435        # Portland Group compilers (*not* the Pentium gcc compiler,
8436	# which looks to be a dead project)
8437	lt_prog_compiler_wl='-Wl,'
8438	lt_prog_compiler_pic='-fpic'
8439	lt_prog_compiler_static='-Bstatic'
8440        ;;
8441      ccc*)
8442        lt_prog_compiler_wl='-Wl,'
8443        # All Alpha code is PIC.
8444        lt_prog_compiler_static='-non_shared'
8445        ;;
8446      xl* | bgxl* | bgf* | mpixl*)
8447	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8448	lt_prog_compiler_wl='-Wl,'
8449	lt_prog_compiler_pic='-qpic'
8450	lt_prog_compiler_static='-qstaticlink'
8451	;;
8452      *)
8453	case `$CC -V 2>&1 | sed 5q` in
8454	*Sun\ F* | *Sun*Fortran*)
8455	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8456	  lt_prog_compiler_pic='-KPIC'
8457	  lt_prog_compiler_static='-Bstatic'
8458	  lt_prog_compiler_wl=''
8459	  ;;
8460	*Sun\ C*)
8461	  # Sun C 5.9
8462	  lt_prog_compiler_pic='-KPIC'
8463	  lt_prog_compiler_static='-Bstatic'
8464	  lt_prog_compiler_wl='-Wl,'
8465	  ;;
8466	esac
8467	;;
8468      esac
8469      ;;
8470
8471    newsos6)
8472      lt_prog_compiler_pic='-KPIC'
8473      lt_prog_compiler_static='-Bstatic'
8474      ;;
8475
8476    *nto* | *qnx*)
8477      # QNX uses GNU C++, but need to define -shared option too, otherwise
8478      # it will coredump.
8479      lt_prog_compiler_pic='-fPIC -shared'
8480      ;;
8481
8482    osf3* | osf4* | osf5*)
8483      lt_prog_compiler_wl='-Wl,'
8484      # All OSF/1 code is PIC.
8485      lt_prog_compiler_static='-non_shared'
8486      ;;
8487
8488    rdos*)
8489      lt_prog_compiler_static='-non_shared'
8490      ;;
8491
8492    solaris*)
8493      lt_prog_compiler_pic='-KPIC'
8494      lt_prog_compiler_static='-Bstatic'
8495      case $cc_basename in
8496      f77* | f90* | f95*)
8497	lt_prog_compiler_wl='-Qoption ld ';;
8498      *)
8499	lt_prog_compiler_wl='-Wl,';;
8500      esac
8501      ;;
8502
8503    sunos4*)
8504      lt_prog_compiler_wl='-Qoption ld '
8505      lt_prog_compiler_pic='-PIC'
8506      lt_prog_compiler_static='-Bstatic'
8507      ;;
8508
8509    sysv4 | sysv4.2uw2* | sysv4.3*)
8510      lt_prog_compiler_wl='-Wl,'
8511      lt_prog_compiler_pic='-KPIC'
8512      lt_prog_compiler_static='-Bstatic'
8513      ;;
8514
8515    sysv4*MP*)
8516      if test -d /usr/nec ;then
8517	lt_prog_compiler_pic='-Kconform_pic'
8518	lt_prog_compiler_static='-Bstatic'
8519      fi
8520      ;;
8521
8522    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8523      lt_prog_compiler_wl='-Wl,'
8524      lt_prog_compiler_pic='-KPIC'
8525      lt_prog_compiler_static='-Bstatic'
8526      ;;
8527
8528    unicos*)
8529      lt_prog_compiler_wl='-Wl,'
8530      lt_prog_compiler_can_build_shared=no
8531      ;;
8532
8533    uts4*)
8534      lt_prog_compiler_pic='-pic'
8535      lt_prog_compiler_static='-Bstatic'
8536      ;;
8537
8538    *)
8539      lt_prog_compiler_can_build_shared=no
8540      ;;
8541    esac
8542  fi
8543
8544case $host_os in
8545  # For platforms which do not support PIC, -DPIC is meaningless:
8546  *djgpp*)
8547    lt_prog_compiler_pic=
8548    ;;
8549  *)
8550    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8551    ;;
8552esac
8553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8554$as_echo "$lt_prog_compiler_pic" >&6; }
8555
8556
8557
8558
8559
8560
8561#
8562# Check to make sure the PIC flag actually works.
8563#
8564if test -n "$lt_prog_compiler_pic"; then
8565  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8566$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8567if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8568  $as_echo_n "(cached) " >&6
8569else
8570  lt_cv_prog_compiler_pic_works=no
8571   ac_outfile=conftest.$ac_objext
8572   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8573   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8574   # Insert the option either (1) after the last *FLAGS variable, or
8575   # (2) before a word containing "conftest.", or (3) at the end.
8576   # Note that $ac_compile itself does not contain backslashes and begins
8577   # with a dollar sign (not a hyphen), so the echo should work correctly.
8578   # The option is referenced via a variable to avoid confusing sed.
8579   lt_compile=`echo "$ac_compile" | $SED \
8580   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8581   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8582   -e 's:$: $lt_compiler_flag:'`
8583   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8584   (eval "$lt_compile" 2>conftest.err)
8585   ac_status=$?
8586   cat conftest.err >&5
8587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8588   if (exit $ac_status) && test -s "$ac_outfile"; then
8589     # The compiler can only warn and ignore the option if not recognized
8590     # So say no if there are warnings other than the usual output.
8591     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8592     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8593     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8594       lt_cv_prog_compiler_pic_works=yes
8595     fi
8596   fi
8597   $RM conftest*
8598
8599fi
8600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8601$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8602
8603if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8604    case $lt_prog_compiler_pic in
8605     "" | " "*) ;;
8606     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8607     esac
8608else
8609    lt_prog_compiler_pic=
8610     lt_prog_compiler_can_build_shared=no
8611fi
8612
8613fi
8614
8615
8616
8617
8618
8619
8620#
8621# Check to make sure the static flag actually works.
8622#
8623wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8625$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8626if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8627  $as_echo_n "(cached) " >&6
8628else
8629  lt_cv_prog_compiler_static_works=no
8630   save_LDFLAGS="$LDFLAGS"
8631   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8632   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8633   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8634     # The linker can only warn and ignore the option if not recognized
8635     # So say no if there are warnings
8636     if test -s conftest.err; then
8637       # Append any errors to the config.log.
8638       cat conftest.err 1>&5
8639       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8640       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8641       if diff conftest.exp conftest.er2 >/dev/null; then
8642         lt_cv_prog_compiler_static_works=yes
8643       fi
8644     else
8645       lt_cv_prog_compiler_static_works=yes
8646     fi
8647   fi
8648   $RM -r conftest*
8649   LDFLAGS="$save_LDFLAGS"
8650
8651fi
8652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8653$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8654
8655if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8656    :
8657else
8658    lt_prog_compiler_static=
8659fi
8660
8661
8662
8663
8664
8665
8666
8667  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8668$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8669if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8670  $as_echo_n "(cached) " >&6
8671else
8672  lt_cv_prog_compiler_c_o=no
8673   $RM -r conftest 2>/dev/null
8674   mkdir conftest
8675   cd conftest
8676   mkdir out
8677   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8678
8679   lt_compiler_flag="-o out/conftest2.$ac_objext"
8680   # Insert the option either (1) after the last *FLAGS variable, or
8681   # (2) before a word containing "conftest.", or (3) at the end.
8682   # Note that $ac_compile itself does not contain backslashes and begins
8683   # with a dollar sign (not a hyphen), so the echo should work correctly.
8684   lt_compile=`echo "$ac_compile" | $SED \
8685   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8686   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8687   -e 's:$: $lt_compiler_flag:'`
8688   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8689   (eval "$lt_compile" 2>out/conftest.err)
8690   ac_status=$?
8691   cat out/conftest.err >&5
8692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8693   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8694   then
8695     # The compiler can only warn and ignore the option if not recognized
8696     # So say no if there are warnings
8697     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8698     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8699     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8700       lt_cv_prog_compiler_c_o=yes
8701     fi
8702   fi
8703   chmod u+w . 2>&5
8704   $RM conftest*
8705   # SGI C++ compiler will create directory out/ii_files/ for
8706   # template instantiation
8707   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8708   $RM out/* && rmdir out
8709   cd ..
8710   $RM -r conftest
8711   $RM conftest*
8712
8713fi
8714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8715$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8716
8717
8718
8719
8720
8721
8722  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8723$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8724if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8725  $as_echo_n "(cached) " >&6
8726else
8727  lt_cv_prog_compiler_c_o=no
8728   $RM -r conftest 2>/dev/null
8729   mkdir conftest
8730   cd conftest
8731   mkdir out
8732   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8733
8734   lt_compiler_flag="-o out/conftest2.$ac_objext"
8735   # Insert the option either (1) after the last *FLAGS variable, or
8736   # (2) before a word containing "conftest.", or (3) at the end.
8737   # Note that $ac_compile itself does not contain backslashes and begins
8738   # with a dollar sign (not a hyphen), so the echo should work correctly.
8739   lt_compile=`echo "$ac_compile" | $SED \
8740   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8741   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8742   -e 's:$: $lt_compiler_flag:'`
8743   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8744   (eval "$lt_compile" 2>out/conftest.err)
8745   ac_status=$?
8746   cat out/conftest.err >&5
8747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8748   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8749   then
8750     # The compiler can only warn and ignore the option if not recognized
8751     # So say no if there are warnings
8752     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8753     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8754     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8755       lt_cv_prog_compiler_c_o=yes
8756     fi
8757   fi
8758   chmod u+w . 2>&5
8759   $RM conftest*
8760   # SGI C++ compiler will create directory out/ii_files/ for
8761   # template instantiation
8762   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8763   $RM out/* && rmdir out
8764   cd ..
8765   $RM -r conftest
8766   $RM conftest*
8767
8768fi
8769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8770$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8771
8772
8773
8774
8775hard_links="nottested"
8776if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8777  # do not overwrite the value of need_locks provided by the user
8778  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8779$as_echo_n "checking if we can lock with hard links... " >&6; }
8780  hard_links=yes
8781  $RM conftest*
8782  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8783  touch conftest.a
8784  ln conftest.a conftest.b 2>&5 || hard_links=no
8785  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8786  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8787$as_echo "$hard_links" >&6; }
8788  if test "$hard_links" = no; then
8789    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8790$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8791    need_locks=warn
8792  fi
8793else
8794  need_locks=no
8795fi
8796
8797
8798
8799
8800
8801
8802  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8803$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8804
8805  runpath_var=
8806  allow_undefined_flag=
8807  always_export_symbols=no
8808  archive_cmds=
8809  archive_expsym_cmds=
8810  compiler_needs_object=no
8811  enable_shared_with_static_runtimes=no
8812  export_dynamic_flag_spec=
8813  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8814  hardcode_automatic=no
8815  hardcode_direct=no
8816  hardcode_direct_absolute=no
8817  hardcode_libdir_flag_spec=
8818  hardcode_libdir_flag_spec_ld=
8819  hardcode_libdir_separator=
8820  hardcode_minus_L=no
8821  hardcode_shlibpath_var=unsupported
8822  inherit_rpath=no
8823  link_all_deplibs=unknown
8824  module_cmds=
8825  module_expsym_cmds=
8826  old_archive_from_new_cmds=
8827  old_archive_from_expsyms_cmds=
8828  thread_safe_flag_spec=
8829  whole_archive_flag_spec=
8830  # include_expsyms should be a list of space-separated symbols to be *always*
8831  # included in the symbol list
8832  include_expsyms=
8833  # exclude_expsyms can be an extended regexp of symbols to exclude
8834  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8835  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8836  # as well as any symbol that contains `d'.
8837  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8838  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8839  # platforms (ab)use it in PIC code, but their linkers get confused if
8840  # the symbol is explicitly referenced.  Since portable code cannot
8841  # rely on this symbol name, it's probably fine to never include it in
8842  # preloaded symbol tables.
8843  # Exclude shared library initialization/finalization symbols.
8844  extract_expsyms_cmds=
8845
8846  case $host_os in
8847  cygwin* | mingw* | pw32* | cegcc*)
8848    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8849    # When not using gcc, we currently assume that we are using
8850    # Microsoft Visual C++.
8851    if test "$GCC" != yes; then
8852      with_gnu_ld=no
8853    fi
8854    ;;
8855  interix*)
8856    # we just hope/assume this is gcc and not c89 (= MSVC++)
8857    with_gnu_ld=yes
8858    ;;
8859  openbsd*)
8860    with_gnu_ld=no
8861    ;;
8862  esac
8863
8864  ld_shlibs=yes
8865
8866  # On some targets, GNU ld is compatible enough with the native linker
8867  # that we're better off using the native interface for both.
8868  lt_use_gnu_ld_interface=no
8869  if test "$with_gnu_ld" = yes; then
8870    case $host_os in
8871      aix*)
8872	# The AIX port of GNU ld has always aspired to compatibility
8873	# with the native linker.  However, as the warning in the GNU ld
8874	# block says, versions before 2.19.5* couldn't really create working
8875	# shared libraries, regardless of the interface used.
8876	case `$LD -v 2>&1` in
8877	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8878	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8879	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8880	  *)
8881	    lt_use_gnu_ld_interface=yes
8882	    ;;
8883	esac
8884	;;
8885      *)
8886	lt_use_gnu_ld_interface=yes
8887	;;
8888    esac
8889  fi
8890
8891  if test "$lt_use_gnu_ld_interface" = yes; then
8892    # If archive_cmds runs LD, not CC, wlarc should be empty
8893    wlarc='${wl}'
8894
8895    # Set some defaults for GNU ld with shared library support. These
8896    # are reset later if shared libraries are not supported. Putting them
8897    # here allows them to be overridden if necessary.
8898    runpath_var=LD_RUN_PATH
8899    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8900    export_dynamic_flag_spec='${wl}--export-dynamic'
8901    # ancient GNU ld didn't support --whole-archive et. al.
8902    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8903      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8904    else
8905      whole_archive_flag_spec=
8906    fi
8907    supports_anon_versioning=no
8908    case `$LD -v 2>&1` in
8909      *GNU\ gold*) supports_anon_versioning=yes ;;
8910      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8911      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8912      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8913      *\ 2.11.*) ;; # other 2.11 versions
8914      *) supports_anon_versioning=yes ;;
8915    esac
8916
8917    # See if GNU ld supports shared libraries.
8918    case $host_os in
8919    aix[3-9]*)
8920      # On AIX/PPC, the GNU linker is very broken
8921      if test "$host_cpu" != ia64; then
8922	ld_shlibs=no
8923	cat <<_LT_EOF 1>&2
8924
8925*** Warning: the GNU linker, at least up to release 2.19, is reported
8926*** to be unable to reliably create shared libraries on AIX.
8927*** Therefore, libtool is disabling shared libraries support.  If you
8928*** really care for shared libraries, you may want to install binutils
8929*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8930*** You will then need to restart the configuration process.
8931
8932_LT_EOF
8933      fi
8934      ;;
8935
8936    amigaos*)
8937      case $host_cpu in
8938      powerpc)
8939            # see comment about AmigaOS4 .so support
8940            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8941            archive_expsym_cmds=''
8942        ;;
8943      m68k)
8944            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)'
8945            hardcode_libdir_flag_spec='-L$libdir'
8946            hardcode_minus_L=yes
8947        ;;
8948      esac
8949      ;;
8950
8951    beos*)
8952      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8953	allow_undefined_flag=unsupported
8954	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8955	# support --undefined.  This deserves some investigation.  FIXME
8956	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8957      else
8958	ld_shlibs=no
8959      fi
8960      ;;
8961
8962    cygwin* | mingw* | pw32* | cegcc*)
8963      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8964      # as there is no search path for DLLs.
8965      hardcode_libdir_flag_spec='-L$libdir'
8966      export_dynamic_flag_spec='${wl}--export-all-symbols'
8967      allow_undefined_flag=unsupported
8968      always_export_symbols=no
8969      enable_shared_with_static_runtimes=yes
8970      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8971
8972      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8973        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8974	# If the export-symbols file already is a .def file (1st line
8975	# is EXPORTS), use it as is; otherwise, prepend...
8976	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8977	  cp $export_symbols $output_objdir/$soname.def;
8978	else
8979	  echo EXPORTS > $output_objdir/$soname.def;
8980	  cat $export_symbols >> $output_objdir/$soname.def;
8981	fi~
8982	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8983      else
8984	ld_shlibs=no
8985      fi
8986      ;;
8987
8988    haiku*)
8989      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8990      link_all_deplibs=yes
8991      ;;
8992
8993    interix[3-9]*)
8994      hardcode_direct=no
8995      hardcode_shlibpath_var=no
8996      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8997      export_dynamic_flag_spec='${wl}-E'
8998      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8999      # Instead, shared libraries are loaded at an image base (0x10000000 by
9000      # default) and relocated if they conflict, which is a slow very memory
9001      # consuming and fragmenting process.  To avoid this, we pick a random,
9002      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9003      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9004      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9005      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'
9006      ;;
9007
9008    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9009      tmp_diet=no
9010      if test "$host_os" = linux-dietlibc; then
9011	case $cc_basename in
9012	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9013	esac
9014      fi
9015      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9016	 && test "$tmp_diet" = no
9017      then
9018	tmp_addflag=' $pic_flag'
9019	tmp_sharedflag='-shared'
9020	case $cc_basename,$host_cpu in
9021        pgcc*)				# Portland Group C compiler
9022	  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'
9023	  tmp_addflag=' $pic_flag'
9024	  ;;
9025	pgf77* | pgf90* | pgf95* | pgfortran*)
9026					# Portland Group f77 and f90 compilers
9027	  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'
9028	  tmp_addflag=' $pic_flag -Mnomain' ;;
9029	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9030	  tmp_addflag=' -i_dynamic' ;;
9031	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9032	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9033	ifc* | ifort*)			# Intel Fortran compiler
9034	  tmp_addflag=' -nofor_main' ;;
9035	lf95*)				# Lahey Fortran 8.1
9036	  whole_archive_flag_spec=
9037	  tmp_sharedflag='--shared' ;;
9038	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9039	  tmp_sharedflag='-qmkshrobj'
9040	  tmp_addflag= ;;
9041	nvcc*)	# Cuda Compiler Driver 2.2
9042	  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'
9043	  compiler_needs_object=yes
9044	  ;;
9045	esac
9046	case `$CC -V 2>&1 | sed 5q` in
9047	*Sun\ C*)			# Sun C 5.9
9048	  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'
9049	  compiler_needs_object=yes
9050	  tmp_sharedflag='-G' ;;
9051	*Sun\ F*)			# Sun Fortran 8.3
9052	  tmp_sharedflag='-G' ;;
9053	esac
9054	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9055
9056        if test "x$supports_anon_versioning" = xyes; then
9057          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9058	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9059	    echo "local: *; };" >> $output_objdir/$libname.ver~
9060	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9061        fi
9062
9063	case $cc_basename in
9064	xlf* | bgf* | bgxlf* | mpixlf*)
9065	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9066	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9067	  hardcode_libdir_flag_spec=
9068	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
9069	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9070	  if test "x$supports_anon_versioning" = xyes; then
9071	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9072	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9073	      echo "local: *; };" >> $output_objdir/$libname.ver~
9074	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9075	  fi
9076	  ;;
9077	esac
9078      else
9079        ld_shlibs=no
9080      fi
9081      ;;
9082
9083    netbsd*)
9084      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9085	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9086	wlarc=
9087      else
9088	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9089	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9090      fi
9091      ;;
9092
9093    solaris*)
9094      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9095	ld_shlibs=no
9096	cat <<_LT_EOF 1>&2
9097
9098*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9099*** create shared libraries on Solaris systems.  Therefore, libtool
9100*** is disabling shared libraries support.  We urge you to upgrade GNU
9101*** binutils to release 2.9.1 or newer.  Another option is to modify
9102*** your PATH or compiler configuration so that the native linker is
9103*** used, and then restart.
9104
9105_LT_EOF
9106      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9107	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9108	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9109      else
9110	ld_shlibs=no
9111      fi
9112      ;;
9113
9114    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9115      case `$LD -v 2>&1` in
9116        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9117	ld_shlibs=no
9118	cat <<_LT_EOF 1>&2
9119
9120*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9121*** reliably create shared libraries on SCO systems.  Therefore, libtool
9122*** is disabling shared libraries support.  We urge you to upgrade GNU
9123*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9124*** your PATH or compiler configuration so that the native linker is
9125*** used, and then restart.
9126
9127_LT_EOF
9128	;;
9129	*)
9130	  # For security reasons, it is highly recommended that you always
9131	  # use absolute paths for naming shared libraries, and exclude the
9132	  # DT_RUNPATH tag from executables and libraries.  But doing so
9133	  # requires that you compile everything twice, which is a pain.
9134	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9135	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9136	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9137	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9138	  else
9139	    ld_shlibs=no
9140	  fi
9141	;;
9142      esac
9143      ;;
9144
9145    sunos4*)
9146      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9147      wlarc=
9148      hardcode_direct=yes
9149      hardcode_shlibpath_var=no
9150      ;;
9151
9152    *)
9153      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9154	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9155	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9156      else
9157	ld_shlibs=no
9158      fi
9159      ;;
9160    esac
9161
9162    if test "$ld_shlibs" = no; then
9163      runpath_var=
9164      hardcode_libdir_flag_spec=
9165      export_dynamic_flag_spec=
9166      whole_archive_flag_spec=
9167    fi
9168  else
9169    # PORTME fill in a description of your system's linker (not GNU ld)
9170    case $host_os in
9171    aix3*)
9172      allow_undefined_flag=unsupported
9173      always_export_symbols=yes
9174      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'
9175      # Note: this linker hardcodes the directories in LIBPATH if there
9176      # are no directories specified by -L.
9177      hardcode_minus_L=yes
9178      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9179	# Neither direct hardcoding nor static linking is supported with a
9180	# broken collect2.
9181	hardcode_direct=unsupported
9182      fi
9183      ;;
9184
9185    aix[4-9]*)
9186      if test "$host_cpu" = ia64; then
9187	# On IA64, the linker does run time linking by default, so we don't
9188	# have to do anything special.
9189	aix_use_runtimelinking=no
9190	exp_sym_flag='-Bexport'
9191	no_entry_flag=""
9192      else
9193	# If we're using GNU nm, then we don't want the "-C" option.
9194	# -C means demangle to AIX nm, but means don't demangle with GNU nm
9195	# Also, AIX nm treats weak defined symbols like other global
9196	# defined symbols, whereas GNU nm marks them as "W".
9197	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9198	  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'
9199	else
9200	  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'
9201	fi
9202	aix_use_runtimelinking=no
9203
9204	# Test if we are trying to use run time linking or normal
9205	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9206	# need to do runtime linking.
9207	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9208	  for ld_flag in $LDFLAGS; do
9209	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9210	    aix_use_runtimelinking=yes
9211	    break
9212	  fi
9213	  done
9214	  ;;
9215	esac
9216
9217	exp_sym_flag='-bexport'
9218	no_entry_flag='-bnoentry'
9219      fi
9220
9221      # When large executables or shared objects are built, AIX ld can
9222      # have problems creating the table of contents.  If linking a library
9223      # or program results in "error TOC overflow" add -mminimal-toc to
9224      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9225      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9226
9227      archive_cmds=''
9228      hardcode_direct=yes
9229      hardcode_direct_absolute=yes
9230      hardcode_libdir_separator=':'
9231      link_all_deplibs=yes
9232      file_list_spec='${wl}-f,'
9233
9234      if test "$GCC" = yes; then
9235	case $host_os in aix4.[012]|aix4.[012].*)
9236	# We only want to do this on AIX 4.2 and lower, the check
9237	# below for broken collect2 doesn't work under 4.3+
9238	  collect2name=`${CC} -print-prog-name=collect2`
9239	  if test -f "$collect2name" &&
9240	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9241	  then
9242	  # We have reworked collect2
9243	  :
9244	  else
9245	  # We have old collect2
9246	  hardcode_direct=unsupported
9247	  # It fails to find uninstalled libraries when the uninstalled
9248	  # path is not listed in the libpath.  Setting hardcode_minus_L
9249	  # to unsupported forces relinking
9250	  hardcode_minus_L=yes
9251	  hardcode_libdir_flag_spec='-L$libdir'
9252	  hardcode_libdir_separator=
9253	  fi
9254	  ;;
9255	esac
9256	shared_flag='-shared'
9257	if test "$aix_use_runtimelinking" = yes; then
9258	  shared_flag="$shared_flag "'${wl}-G'
9259	fi
9260      else
9261	# not using gcc
9262	if test "$host_cpu" = ia64; then
9263	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9264	# chokes on -Wl,-G. The following line is correct:
9265	  shared_flag='-G'
9266	else
9267	  if test "$aix_use_runtimelinking" = yes; then
9268	    shared_flag='${wl}-G'
9269	  else
9270	    shared_flag='${wl}-bM:SRE'
9271	  fi
9272	fi
9273      fi
9274
9275      export_dynamic_flag_spec='${wl}-bexpall'
9276      # It seems that -bexpall does not export symbols beginning with
9277      # underscore (_), so it is better to generate a list of symbols to export.
9278      always_export_symbols=yes
9279      if test "$aix_use_runtimelinking" = yes; then
9280	# Warning - without using the other runtime loading flags (-brtl),
9281	# -berok will link without error, but may produce a broken library.
9282	allow_undefined_flag='-berok'
9283        # Determine the default libpath from the value encoded in an
9284        # empty executable.
9285        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9286/* end confdefs.h.  */
9287
9288int
9289main ()
9290{
9291
9292  ;
9293  return 0;
9294}
9295_ACEOF
9296if ac_fn_c_try_link "$LINENO"; then :
9297
9298lt_aix_libpath_sed='
9299    /Import File Strings/,/^$/ {
9300	/^0/ {
9301	    s/^0  *\(.*\)$/\1/
9302	    p
9303	}
9304    }'
9305aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9306# Check for a 64-bit object if we didn't find anything.
9307if test -z "$aix_libpath"; then
9308  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9309fi
9310fi
9311rm -f core conftest.err conftest.$ac_objext \
9312    conftest$ac_exeext conftest.$ac_ext
9313if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9314
9315        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9316        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"
9317      else
9318	if test "$host_cpu" = ia64; then
9319	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9320	  allow_undefined_flag="-z nodefs"
9321	  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"
9322	else
9323	 # Determine the default libpath from the value encoded in an
9324	 # empty executable.
9325	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9326/* end confdefs.h.  */
9327
9328int
9329main ()
9330{
9331
9332  ;
9333  return 0;
9334}
9335_ACEOF
9336if ac_fn_c_try_link "$LINENO"; then :
9337
9338lt_aix_libpath_sed='
9339    /Import File Strings/,/^$/ {
9340	/^0/ {
9341	    s/^0  *\(.*\)$/\1/
9342	    p
9343	}
9344    }'
9345aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9346# Check for a 64-bit object if we didn't find anything.
9347if test -z "$aix_libpath"; then
9348  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9349fi
9350fi
9351rm -f core conftest.err conftest.$ac_objext \
9352    conftest$ac_exeext conftest.$ac_ext
9353if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9354
9355	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9356	  # Warning - without using the other run time loading flags,
9357	  # -berok will link without error, but may produce a broken library.
9358	  no_undefined_flag=' ${wl}-bernotok'
9359	  allow_undefined_flag=' ${wl}-berok'
9360	  if test "$with_gnu_ld" = yes; then
9361	    # We only use this code for GNU lds that support --whole-archive.
9362	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9363	  else
9364	    # Exported symbols can be pulled into shared objects from archives
9365	    whole_archive_flag_spec='$convenience'
9366	  fi
9367	  archive_cmds_need_lc=yes
9368	  # This is similar to how AIX traditionally builds its shared libraries.
9369	  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'
9370	fi
9371      fi
9372      ;;
9373
9374    amigaos*)
9375      case $host_cpu in
9376      powerpc)
9377            # see comment about AmigaOS4 .so support
9378            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9379            archive_expsym_cmds=''
9380        ;;
9381      m68k)
9382            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)'
9383            hardcode_libdir_flag_spec='-L$libdir'
9384            hardcode_minus_L=yes
9385        ;;
9386      esac
9387      ;;
9388
9389    bsdi[45]*)
9390      export_dynamic_flag_spec=-rdynamic
9391      ;;
9392
9393    cygwin* | mingw* | pw32* | cegcc*)
9394      # When not using gcc, we currently assume that we are using
9395      # Microsoft Visual C++.
9396      # hardcode_libdir_flag_spec is actually meaningless, as there is
9397      # no search path for DLLs.
9398      hardcode_libdir_flag_spec=' '
9399      allow_undefined_flag=unsupported
9400      # Tell ltmain to make .lib files, not .a files.
9401      libext=lib
9402      # Tell ltmain to make .dll files, not .so files.
9403      shrext_cmds=".dll"
9404      # FIXME: Setting linknames here is a bad hack.
9405      archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9406      # The linker will automatically build a .lib file if we build a DLL.
9407      old_archive_from_new_cmds='true'
9408      # FIXME: Should let the user specify the lib program.
9409      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9410      fix_srcfile_path='`cygpath -w "$srcfile"`'
9411      enable_shared_with_static_runtimes=yes
9412      ;;
9413
9414    darwin* | rhapsody*)
9415
9416
9417  archive_cmds_need_lc=no
9418  hardcode_direct=no
9419  hardcode_automatic=yes
9420  hardcode_shlibpath_var=unsupported
9421  if test "$lt_cv_ld_force_load" = "yes"; then
9422    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\"`'
9423  else
9424    whole_archive_flag_spec=''
9425  fi
9426  link_all_deplibs=yes
9427  allow_undefined_flag="$_lt_dar_allow_undefined"
9428  case $cc_basename in
9429     ifort*) _lt_dar_can_shared=yes ;;
9430     *) _lt_dar_can_shared=$GCC ;;
9431  esac
9432  if test "$_lt_dar_can_shared" = "yes"; then
9433    output_verbose_link_cmd=func_echo_all
9434    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9435    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9436    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}"
9437    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}"
9438
9439  else
9440  ld_shlibs=no
9441  fi
9442
9443      ;;
9444
9445    dgux*)
9446      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9447      hardcode_libdir_flag_spec='-L$libdir'
9448      hardcode_shlibpath_var=no
9449      ;;
9450
9451    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9452    # support.  Future versions do this automatically, but an explicit c++rt0.o
9453    # does not break anything, and helps significantly (at the cost of a little
9454    # extra space).
9455    freebsd2.2*)
9456      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9457      hardcode_libdir_flag_spec='-R$libdir'
9458      hardcode_direct=yes
9459      hardcode_shlibpath_var=no
9460      ;;
9461
9462    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9463    freebsd2.*)
9464      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9465      hardcode_direct=yes
9466      hardcode_minus_L=yes
9467      hardcode_shlibpath_var=no
9468      ;;
9469
9470    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9471    freebsd* | dragonfly*)
9472      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9473      hardcode_libdir_flag_spec='-R$libdir'
9474      hardcode_direct=yes
9475      hardcode_shlibpath_var=no
9476      ;;
9477
9478    hpux9*)
9479      if test "$GCC" = yes; then
9480	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'
9481      else
9482	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'
9483      fi
9484      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9485      hardcode_libdir_separator=:
9486      hardcode_direct=yes
9487
9488      # hardcode_minus_L: Not really in the search PATH,
9489      # but as the default location of the library.
9490      hardcode_minus_L=yes
9491      export_dynamic_flag_spec='${wl}-E'
9492      ;;
9493
9494    hpux10*)
9495      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9496	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9497      else
9498	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9499      fi
9500      if test "$with_gnu_ld" = no; then
9501	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9502	hardcode_libdir_flag_spec_ld='+b $libdir'
9503	hardcode_libdir_separator=:
9504	hardcode_direct=yes
9505	hardcode_direct_absolute=yes
9506	export_dynamic_flag_spec='${wl}-E'
9507	# hardcode_minus_L: Not really in the search PATH,
9508	# but as the default location of the library.
9509	hardcode_minus_L=yes
9510      fi
9511      ;;
9512
9513    hpux11*)
9514      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9515	case $host_cpu in
9516	hppa*64*)
9517	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9518	  ;;
9519	ia64*)
9520	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9521	  ;;
9522	*)
9523	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9524	  ;;
9525	esac
9526      else
9527	case $host_cpu in
9528	hppa*64*)
9529	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9530	  ;;
9531	ia64*)
9532	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9533	  ;;
9534	*)
9535
9536	  # Older versions of the 11.00 compiler do not understand -b yet
9537	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9538	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9539$as_echo_n "checking if $CC understands -b... " >&6; }
9540if test "${lt_cv_prog_compiler__b+set}" = set; then :
9541  $as_echo_n "(cached) " >&6
9542else
9543  lt_cv_prog_compiler__b=no
9544   save_LDFLAGS="$LDFLAGS"
9545   LDFLAGS="$LDFLAGS -b"
9546   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9547   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9548     # The linker can only warn and ignore the option if not recognized
9549     # So say no if there are warnings
9550     if test -s conftest.err; then
9551       # Append any errors to the config.log.
9552       cat conftest.err 1>&5
9553       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9554       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9555       if diff conftest.exp conftest.er2 >/dev/null; then
9556         lt_cv_prog_compiler__b=yes
9557       fi
9558     else
9559       lt_cv_prog_compiler__b=yes
9560     fi
9561   fi
9562   $RM -r conftest*
9563   LDFLAGS="$save_LDFLAGS"
9564
9565fi
9566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9567$as_echo "$lt_cv_prog_compiler__b" >&6; }
9568
9569if test x"$lt_cv_prog_compiler__b" = xyes; then
9570    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9571else
9572    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9573fi
9574
9575	  ;;
9576	esac
9577      fi
9578      if test "$with_gnu_ld" = no; then
9579	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9580	hardcode_libdir_separator=:
9581
9582	case $host_cpu in
9583	hppa*64*|ia64*)
9584	  hardcode_direct=no
9585	  hardcode_shlibpath_var=no
9586	  ;;
9587	*)
9588	  hardcode_direct=yes
9589	  hardcode_direct_absolute=yes
9590	  export_dynamic_flag_spec='${wl}-E'
9591
9592	  # hardcode_minus_L: Not really in the search PATH,
9593	  # but as the default location of the library.
9594	  hardcode_minus_L=yes
9595	  ;;
9596	esac
9597      fi
9598      ;;
9599
9600    irix5* | irix6* | nonstopux*)
9601      if test "$GCC" = yes; then
9602	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'
9603	# Try to use the -exported_symbol ld option, if it does not
9604	# work, assume that -exports_file does not work either and
9605	# implicitly export all symbols.
9606        save_LDFLAGS="$LDFLAGS"
9607        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9608        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9609/* end confdefs.h.  */
9610int foo(void) {}
9611_ACEOF
9612if ac_fn_c_try_link "$LINENO"; then :
9613  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'
9614
9615fi
9616rm -f core conftest.err conftest.$ac_objext \
9617    conftest$ac_exeext conftest.$ac_ext
9618        LDFLAGS="$save_LDFLAGS"
9619      else
9620	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'
9621	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'
9622      fi
9623      archive_cmds_need_lc='no'
9624      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9625      hardcode_libdir_separator=:
9626      inherit_rpath=yes
9627      link_all_deplibs=yes
9628      ;;
9629
9630    netbsd*)
9631      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9632	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9633      else
9634	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9635      fi
9636      hardcode_libdir_flag_spec='-R$libdir'
9637      hardcode_direct=yes
9638      hardcode_shlibpath_var=no
9639      ;;
9640
9641    newsos6)
9642      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9643      hardcode_direct=yes
9644      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9645      hardcode_libdir_separator=:
9646      hardcode_shlibpath_var=no
9647      ;;
9648
9649    *nto* | *qnx*)
9650      ;;
9651
9652    openbsd*)
9653      if test -f /usr/libexec/ld.so; then
9654	hardcode_direct=yes
9655	hardcode_shlibpath_var=no
9656	hardcode_direct_absolute=yes
9657	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9658	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9659	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9660	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9661	  export_dynamic_flag_spec='${wl}-E'
9662	else
9663	  case $host_os in
9664	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9665	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9666	     hardcode_libdir_flag_spec='-R$libdir'
9667	     ;;
9668	   *)
9669	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9670	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9671	     ;;
9672	  esac
9673	fi
9674      else
9675	ld_shlibs=no
9676      fi
9677      ;;
9678
9679    os2*)
9680      hardcode_libdir_flag_spec='-L$libdir'
9681      hardcode_minus_L=yes
9682      allow_undefined_flag=unsupported
9683      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'
9684      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9685      ;;
9686
9687    osf3*)
9688      if test "$GCC" = yes; then
9689	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9690	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'
9691      else
9692	allow_undefined_flag=' -expect_unresolved \*'
9693	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'
9694      fi
9695      archive_cmds_need_lc='no'
9696      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9697      hardcode_libdir_separator=:
9698      ;;
9699
9700    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9701      if test "$GCC" = yes; then
9702	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9703	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'
9704	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9705      else
9706	allow_undefined_flag=' -expect_unresolved \*'
9707	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'
9708	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~
9709	$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'
9710
9711	# Both c and cxx compiler support -rpath directly
9712	hardcode_libdir_flag_spec='-rpath $libdir'
9713      fi
9714      archive_cmds_need_lc='no'
9715      hardcode_libdir_separator=:
9716      ;;
9717
9718    solaris*)
9719      no_undefined_flag=' -z defs'
9720      if test "$GCC" = yes; then
9721	wlarc='${wl}'
9722	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9723	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9724	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9725      else
9726	case `$CC -V 2>&1` in
9727	*"Compilers 5.0"*)
9728	  wlarc=''
9729	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9730	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9731	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9732	  ;;
9733	*)
9734	  wlarc='${wl}'
9735	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9736	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9737	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9738	  ;;
9739	esac
9740      fi
9741      hardcode_libdir_flag_spec='-R$libdir'
9742      hardcode_shlibpath_var=no
9743      case $host_os in
9744      solaris2.[0-5] | solaris2.[0-5].*) ;;
9745      *)
9746	# The compiler driver will combine and reorder linker options,
9747	# but understands `-z linker_flag'.  GCC discards it without `$wl',
9748	# but is careful enough not to reorder.
9749	# Supported since Solaris 2.6 (maybe 2.5.1?)
9750	if test "$GCC" = yes; then
9751	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9752	else
9753	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9754	fi
9755	;;
9756      esac
9757      link_all_deplibs=yes
9758      ;;
9759
9760    sunos4*)
9761      if test "x$host_vendor" = xsequent; then
9762	# Use $CC to link under sequent, because it throws in some extra .o
9763	# files that make .init and .fini sections work.
9764	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9765      else
9766	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9767      fi
9768      hardcode_libdir_flag_spec='-L$libdir'
9769      hardcode_direct=yes
9770      hardcode_minus_L=yes
9771      hardcode_shlibpath_var=no
9772      ;;
9773
9774    sysv4)
9775      case $host_vendor in
9776	sni)
9777	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9778	  hardcode_direct=yes # is this really true???
9779	;;
9780	siemens)
9781	  ## LD is ld it makes a PLAMLIB
9782	  ## CC just makes a GrossModule.
9783	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9784	  reload_cmds='$CC -r -o $output$reload_objs'
9785	  hardcode_direct=no
9786        ;;
9787	motorola)
9788	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9789	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9790	;;
9791      esac
9792      runpath_var='LD_RUN_PATH'
9793      hardcode_shlibpath_var=no
9794      ;;
9795
9796    sysv4.3*)
9797      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9798      hardcode_shlibpath_var=no
9799      export_dynamic_flag_spec='-Bexport'
9800      ;;
9801
9802    sysv4*MP*)
9803      if test -d /usr/nec; then
9804	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9805	hardcode_shlibpath_var=no
9806	runpath_var=LD_RUN_PATH
9807	hardcode_runpath_var=yes
9808	ld_shlibs=yes
9809      fi
9810      ;;
9811
9812    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9813      no_undefined_flag='${wl}-z,text'
9814      archive_cmds_need_lc=no
9815      hardcode_shlibpath_var=no
9816      runpath_var='LD_RUN_PATH'
9817
9818      if test "$GCC" = yes; then
9819	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9820	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9821      else
9822	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9823	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9824      fi
9825      ;;
9826
9827    sysv5* | sco3.2v5* | sco5v6*)
9828      # Note: We can NOT use -z defs as we might desire, because we do not
9829      # link with -lc, and that would cause any symbols used from libc to
9830      # always be unresolved, which means just about no library would
9831      # ever link correctly.  If we're not using GNU ld we use -z text
9832      # though, which does catch some bad symbols but isn't as heavy-handed
9833      # as -z defs.
9834      no_undefined_flag='${wl}-z,text'
9835      allow_undefined_flag='${wl}-z,nodefs'
9836      archive_cmds_need_lc=no
9837      hardcode_shlibpath_var=no
9838      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9839      hardcode_libdir_separator=':'
9840      link_all_deplibs=yes
9841      export_dynamic_flag_spec='${wl}-Bexport'
9842      runpath_var='LD_RUN_PATH'
9843
9844      if test "$GCC" = yes; then
9845	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9846	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9847      else
9848	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9849	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9850      fi
9851      ;;
9852
9853    uts4*)
9854      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9855      hardcode_libdir_flag_spec='-L$libdir'
9856      hardcode_shlibpath_var=no
9857      ;;
9858
9859    *)
9860      ld_shlibs=no
9861      ;;
9862    esac
9863
9864    if test x$host_vendor = xsni; then
9865      case $host in
9866      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9867	export_dynamic_flag_spec='${wl}-Blargedynsym'
9868	;;
9869      esac
9870    fi
9871  fi
9872
9873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9874$as_echo "$ld_shlibs" >&6; }
9875test "$ld_shlibs" = no && can_build_shared=no
9876
9877with_gnu_ld=$with_gnu_ld
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893#
9894# Do we need to explicitly link libc?
9895#
9896case "x$archive_cmds_need_lc" in
9897x|xyes)
9898  # Assume -lc should be added
9899  archive_cmds_need_lc=yes
9900
9901  if test "$enable_shared" = yes && test "$GCC" = yes; then
9902    case $archive_cmds in
9903    *'~'*)
9904      # FIXME: we may have to deal with multi-command sequences.
9905      ;;
9906    '$CC '*)
9907      # Test whether the compiler implicitly links with -lc since on some
9908      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9909      # to ld, don't add -lc before -lgcc.
9910      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9911$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9912if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9913  $as_echo_n "(cached) " >&6
9914else
9915  $RM conftest*
9916	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9917
9918	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9919  (eval $ac_compile) 2>&5
9920  ac_status=$?
9921  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9922  test $ac_status = 0; } 2>conftest.err; then
9923	  soname=conftest
9924	  lib=conftest
9925	  libobjs=conftest.$ac_objext
9926	  deplibs=
9927	  wl=$lt_prog_compiler_wl
9928	  pic_flag=$lt_prog_compiler_pic
9929	  compiler_flags=-v
9930	  linker_flags=-v
9931	  verstring=
9932	  output_objdir=.
9933	  libname=conftest
9934	  lt_save_allow_undefined_flag=$allow_undefined_flag
9935	  allow_undefined_flag=
9936	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9937  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9938  ac_status=$?
9939  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9940  test $ac_status = 0; }
9941	  then
9942	    lt_cv_archive_cmds_need_lc=no
9943	  else
9944	    lt_cv_archive_cmds_need_lc=yes
9945	  fi
9946	  allow_undefined_flag=$lt_save_allow_undefined_flag
9947	else
9948	  cat conftest.err 1>&5
9949	fi
9950	$RM conftest*
9951
9952fi
9953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9954$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9955      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9956      ;;
9957    esac
9958  fi
9959  ;;
9960esac
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10119$as_echo_n "checking dynamic linker characteristics... " >&6; }
10120
10121if test "$GCC" = yes; then
10122  case $host_os in
10123    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10124    *) lt_awk_arg="/^libraries:/" ;;
10125  esac
10126  case $host_os in
10127    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10128    *) lt_sed_strip_eq="s,=/,/,g" ;;
10129  esac
10130  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10131  case $lt_search_path_spec in
10132  *\;*)
10133    # if the path contains ";" then we assume it to be the separator
10134    # otherwise default to the standard path separator (i.e. ":") - it is
10135    # assumed that no part of a normal pathname contains ";" but that should
10136    # okay in the real world where ";" in dirpaths is itself problematic.
10137    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10138    ;;
10139  *)
10140    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10141    ;;
10142  esac
10143  # Ok, now we have the path, separated by spaces, we can step through it
10144  # and add multilib dir if necessary.
10145  lt_tmp_lt_search_path_spec=
10146  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10147  for lt_sys_path in $lt_search_path_spec; do
10148    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10149      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10150    else
10151      test -d "$lt_sys_path" && \
10152	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10153    fi
10154  done
10155  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10156BEGIN {RS=" "; FS="/|\n";} {
10157  lt_foo="";
10158  lt_count=0;
10159  for (lt_i = NF; lt_i > 0; lt_i--) {
10160    if ($lt_i != "" && $lt_i != ".") {
10161      if ($lt_i == "..") {
10162        lt_count++;
10163      } else {
10164        if (lt_count == 0) {
10165          lt_foo="/" $lt_i lt_foo;
10166        } else {
10167          lt_count--;
10168        }
10169      }
10170    }
10171  }
10172  if (lt_foo != "") { lt_freq[lt_foo]++; }
10173  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10174}'`
10175  # AWK program above erroneously prepends '/' to C:/dos/paths
10176  # for these hosts.
10177  case $host_os in
10178    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10179      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10180  esac
10181  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10182else
10183  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10184fi
10185library_names_spec=
10186libname_spec='lib$name'
10187soname_spec=
10188shrext_cmds=".so"
10189postinstall_cmds=
10190postuninstall_cmds=
10191finish_cmds=
10192finish_eval=
10193shlibpath_var=
10194shlibpath_overrides_runpath=unknown
10195version_type=none
10196dynamic_linker="$host_os ld.so"
10197sys_lib_dlsearch_path_spec="/lib /usr/lib"
10198need_lib_prefix=unknown
10199hardcode_into_libs=no
10200
10201# when you set need_version to no, make sure it does not cause -set_version
10202# flags to be left without arguments
10203need_version=unknown
10204
10205case $host_os in
10206aix3*)
10207  version_type=linux
10208  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10209  shlibpath_var=LIBPATH
10210
10211  # AIX 3 has no versioning support, so we append a major version to the name.
10212  soname_spec='${libname}${release}${shared_ext}$major'
10213  ;;
10214
10215aix[4-9]*)
10216  version_type=linux
10217  need_lib_prefix=no
10218  need_version=no
10219  hardcode_into_libs=yes
10220  if test "$host_cpu" = ia64; then
10221    # AIX 5 supports IA64
10222    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10223    shlibpath_var=LD_LIBRARY_PATH
10224  else
10225    # With GCC up to 2.95.x, collect2 would create an import file
10226    # for dependence libraries.  The import file would start with
10227    # the line `#! .'.  This would cause the generated library to
10228    # depend on `.', always an invalid library.  This was fixed in
10229    # development snapshots of GCC prior to 3.0.
10230    case $host_os in
10231      aix4 | aix4.[01] | aix4.[01].*)
10232      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10233	   echo ' yes '
10234	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10235	:
10236      else
10237	can_build_shared=no
10238      fi
10239      ;;
10240    esac
10241    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10242    # soname into executable. Probably we can add versioning support to
10243    # collect2, so additional links can be useful in future.
10244    if test "$aix_use_runtimelinking" = yes; then
10245      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10246      # instead of lib<name>.a to let people know that these are not
10247      # typical AIX shared libraries.
10248      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10249    else
10250      # We preserve .a as extension for shared libraries through AIX4.2
10251      # and later when we are not doing run time linking.
10252      library_names_spec='${libname}${release}.a $libname.a'
10253      soname_spec='${libname}${release}${shared_ext}$major'
10254    fi
10255    shlibpath_var=LIBPATH
10256  fi
10257  ;;
10258
10259amigaos*)
10260  case $host_cpu in
10261  powerpc)
10262    # Since July 2007 AmigaOS4 officially supports .so libraries.
10263    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10264    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10265    ;;
10266  m68k)
10267    library_names_spec='$libname.ixlibrary $libname.a'
10268    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10269    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'
10270    ;;
10271  esac
10272  ;;
10273
10274beos*)
10275  library_names_spec='${libname}${shared_ext}'
10276  dynamic_linker="$host_os ld.so"
10277  shlibpath_var=LIBRARY_PATH
10278  ;;
10279
10280bsdi[45]*)
10281  version_type=linux
10282  need_version=no
10283  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10284  soname_spec='${libname}${release}${shared_ext}$major'
10285  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10286  shlibpath_var=LD_LIBRARY_PATH
10287  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10288  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10289  # the default ld.so.conf also contains /usr/contrib/lib and
10290  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10291  # libtool to hard-code these into programs
10292  ;;
10293
10294cygwin* | mingw* | pw32* | cegcc*)
10295  version_type=windows
10296  shrext_cmds=".dll"
10297  need_version=no
10298  need_lib_prefix=no
10299
10300  case $GCC,$host_os in
10301  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10302    library_names_spec='$libname.dll.a'
10303    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10304    postinstall_cmds='base_file=`basename \${file}`~
10305      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10306      dldir=$destdir/`dirname \$dlpath`~
10307      test -d \$dldir || mkdir -p \$dldir~
10308      $install_prog $dir/$dlname \$dldir/$dlname~
10309      chmod a+x \$dldir/$dlname~
10310      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10311        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10312      fi'
10313    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10314      dlpath=$dir/\$dldll~
10315       $RM \$dlpath'
10316    shlibpath_overrides_runpath=yes
10317
10318    case $host_os in
10319    cygwin*)
10320      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10321      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10322
10323      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10324      ;;
10325    mingw* | cegcc*)
10326      # MinGW DLLs use traditional 'lib' prefix
10327      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10328      ;;
10329    pw32*)
10330      # pw32 DLLs use 'pw' prefix rather than 'lib'
10331      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10332      ;;
10333    esac
10334    ;;
10335
10336  *)
10337    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10338    ;;
10339  esac
10340  dynamic_linker='Win32 ld.exe'
10341  # FIXME: first we should search . and the directory the executable is in
10342  shlibpath_var=PATH
10343  ;;
10344
10345darwin* | rhapsody*)
10346  dynamic_linker="$host_os dyld"
10347  version_type=darwin
10348  need_lib_prefix=no
10349  need_version=no
10350  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10351  soname_spec='${libname}${release}${major}$shared_ext'
10352  shlibpath_overrides_runpath=yes
10353  shlibpath_var=DYLD_LIBRARY_PATH
10354  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10355
10356  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10357  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10358  ;;
10359
10360dgux*)
10361  version_type=linux
10362  need_lib_prefix=no
10363  need_version=no
10364  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10365  soname_spec='${libname}${release}${shared_ext}$major'
10366  shlibpath_var=LD_LIBRARY_PATH
10367  ;;
10368
10369freebsd* | dragonfly*)
10370  # DragonFly does not have aout.  When/if they implement a new
10371  # versioning mechanism, adjust this.
10372  if test -x /usr/bin/objformat; then
10373    objformat=`/usr/bin/objformat`
10374  else
10375    case $host_os in
10376    freebsd[23].*) objformat=aout ;;
10377    *) objformat=elf ;;
10378    esac
10379  fi
10380  version_type=freebsd-$objformat
10381  case $version_type in
10382    freebsd-elf*)
10383      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10384      need_version=no
10385      need_lib_prefix=no
10386      ;;
10387    freebsd-*)
10388      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10389      need_version=yes
10390      ;;
10391  esac
10392  shlibpath_var=LD_LIBRARY_PATH
10393  case $host_os in
10394  freebsd2.*)
10395    shlibpath_overrides_runpath=yes
10396    ;;
10397  freebsd3.[01]* | freebsdelf3.[01]*)
10398    shlibpath_overrides_runpath=yes
10399    hardcode_into_libs=yes
10400    ;;
10401  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10402  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10403    shlibpath_overrides_runpath=no
10404    hardcode_into_libs=yes
10405    ;;
10406  *) # from 4.6 on, and DragonFly
10407    shlibpath_overrides_runpath=yes
10408    hardcode_into_libs=yes
10409    ;;
10410  esac
10411  ;;
10412
10413gnu*)
10414  version_type=linux
10415  need_lib_prefix=no
10416  need_version=no
10417  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10418  soname_spec='${libname}${release}${shared_ext}$major'
10419  shlibpath_var=LD_LIBRARY_PATH
10420  hardcode_into_libs=yes
10421  ;;
10422
10423haiku*)
10424  version_type=linux
10425  need_lib_prefix=no
10426  need_version=no
10427  dynamic_linker="$host_os runtime_loader"
10428  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10429  soname_spec='${libname}${release}${shared_ext}$major'
10430  shlibpath_var=LIBRARY_PATH
10431  shlibpath_overrides_runpath=yes
10432  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10433  hardcode_into_libs=yes
10434  ;;
10435
10436hpux9* | hpux10* | hpux11*)
10437  # Give a soname corresponding to the major version so that dld.sl refuses to
10438  # link against other versions.
10439  version_type=sunos
10440  need_lib_prefix=no
10441  need_version=no
10442  case $host_cpu in
10443  ia64*)
10444    shrext_cmds='.so'
10445    hardcode_into_libs=yes
10446    dynamic_linker="$host_os dld.so"
10447    shlibpath_var=LD_LIBRARY_PATH
10448    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10449    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10450    soname_spec='${libname}${release}${shared_ext}$major'
10451    if test "X$HPUX_IA64_MODE" = X32; then
10452      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10453    else
10454      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10455    fi
10456    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10457    ;;
10458  hppa*64*)
10459    shrext_cmds='.sl'
10460    hardcode_into_libs=yes
10461    dynamic_linker="$host_os dld.sl"
10462    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10463    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10464    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10465    soname_spec='${libname}${release}${shared_ext}$major'
10466    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10467    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10468    ;;
10469  *)
10470    shrext_cmds='.sl'
10471    dynamic_linker="$host_os dld.sl"
10472    shlibpath_var=SHLIB_PATH
10473    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10474    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10475    soname_spec='${libname}${release}${shared_ext}$major'
10476    ;;
10477  esac
10478  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10479  postinstall_cmds='chmod 555 $lib'
10480  # or fails outright, so override atomically:
10481  install_override_mode=555
10482  ;;
10483
10484interix[3-9]*)
10485  version_type=linux
10486  need_lib_prefix=no
10487  need_version=no
10488  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10489  soname_spec='${libname}${release}${shared_ext}$major'
10490  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10491  shlibpath_var=LD_LIBRARY_PATH
10492  shlibpath_overrides_runpath=no
10493  hardcode_into_libs=yes
10494  ;;
10495
10496irix5* | irix6* | nonstopux*)
10497  case $host_os in
10498    nonstopux*) version_type=nonstopux ;;
10499    *)
10500	if test "$lt_cv_prog_gnu_ld" = yes; then
10501		version_type=linux
10502	else
10503		version_type=irix
10504	fi ;;
10505  esac
10506  need_lib_prefix=no
10507  need_version=no
10508  soname_spec='${libname}${release}${shared_ext}$major'
10509  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10510  case $host_os in
10511  irix5* | nonstopux*)
10512    libsuff= shlibsuff=
10513    ;;
10514  *)
10515    case $LD in # libtool.m4 will add one of these switches to LD
10516    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10517      libsuff= shlibsuff= libmagic=32-bit;;
10518    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10519      libsuff=32 shlibsuff=N32 libmagic=N32;;
10520    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10521      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10522    *) libsuff= shlibsuff= libmagic=never-match;;
10523    esac
10524    ;;
10525  esac
10526  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10527  shlibpath_overrides_runpath=no
10528  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10529  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10530  hardcode_into_libs=yes
10531  ;;
10532
10533# No shared lib support for Linux oldld, aout, or coff.
10534linux*oldld* | linux*aout* | linux*coff*)
10535  dynamic_linker=no
10536  ;;
10537
10538# This must be Linux ELF.
10539linux* | k*bsd*-gnu | kopensolaris*-gnu)
10540  version_type=linux
10541  need_lib_prefix=no
10542  need_version=no
10543  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10544  soname_spec='${libname}${release}${shared_ext}$major'
10545  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10546  shlibpath_var=LD_LIBRARY_PATH
10547  shlibpath_overrides_runpath=no
10548
10549  # Some binutils ld are patched to set DT_RUNPATH
10550  if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10551  $as_echo_n "(cached) " >&6
10552else
10553  lt_cv_shlibpath_overrides_runpath=no
10554    save_LDFLAGS=$LDFLAGS
10555    save_libdir=$libdir
10556    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10557	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10558    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10559/* end confdefs.h.  */
10560
10561int
10562main ()
10563{
10564
10565  ;
10566  return 0;
10567}
10568_ACEOF
10569if ac_fn_c_try_link "$LINENO"; then :
10570  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10571  lt_cv_shlibpath_overrides_runpath=yes
10572fi
10573fi
10574rm -f core conftest.err conftest.$ac_objext \
10575    conftest$ac_exeext conftest.$ac_ext
10576    LDFLAGS=$save_LDFLAGS
10577    libdir=$save_libdir
10578
10579fi
10580
10581  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10582
10583  # This implies no fast_install, which is unacceptable.
10584  # Some rework will be needed to allow for fast_install
10585  # before this can be enabled.
10586  hardcode_into_libs=yes
10587
10588  # Append ld.so.conf contents to the search path
10589  if test -f /etc/ld.so.conf; then
10590    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' ' '`
10591    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10592  fi
10593
10594  # We used to test for /lib/ld.so.1 and disable shared libraries on
10595  # powerpc, because MkLinux only supported shared libraries with the
10596  # GNU dynamic linker.  Since this was broken with cross compilers,
10597  # most powerpc-linux boxes support dynamic linking these days and
10598  # people can always --disable-shared, the test was removed, and we
10599  # assume the GNU/Linux dynamic linker is in use.
10600  dynamic_linker='GNU/Linux ld.so'
10601  ;;
10602
10603netbsd*)
10604  version_type=sunos
10605  need_lib_prefix=no
10606  need_version=no
10607  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10608    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10609    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10610    dynamic_linker='NetBSD (a.out) ld.so'
10611  else
10612    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10613    soname_spec='${libname}${release}${shared_ext}$major'
10614    dynamic_linker='NetBSD ld.elf_so'
10615  fi
10616  shlibpath_var=LD_LIBRARY_PATH
10617  shlibpath_overrides_runpath=yes
10618  hardcode_into_libs=yes
10619  ;;
10620
10621newsos6)
10622  version_type=linux
10623  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10624  shlibpath_var=LD_LIBRARY_PATH
10625  shlibpath_overrides_runpath=yes
10626  ;;
10627
10628*nto* | *qnx*)
10629  version_type=qnx
10630  need_lib_prefix=no
10631  need_version=no
10632  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10633  soname_spec='${libname}${release}${shared_ext}$major'
10634  shlibpath_var=LD_LIBRARY_PATH
10635  shlibpath_overrides_runpath=no
10636  hardcode_into_libs=yes
10637  dynamic_linker='ldqnx.so'
10638  ;;
10639
10640openbsd*)
10641  version_type=sunos
10642  sys_lib_dlsearch_path_spec="/usr/lib"
10643  need_lib_prefix=no
10644  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10645  case $host_os in
10646    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
10647    *)				need_version=no  ;;
10648  esac
10649  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10650  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10651  shlibpath_var=LD_LIBRARY_PATH
10652  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10653    case $host_os in
10654      openbsd2.[89] | openbsd2.[89].*)
10655	shlibpath_overrides_runpath=no
10656	;;
10657      *)
10658	shlibpath_overrides_runpath=yes
10659	;;
10660      esac
10661  else
10662    shlibpath_overrides_runpath=yes
10663  fi
10664  ;;
10665
10666os2*)
10667  libname_spec='$name'
10668  shrext_cmds=".dll"
10669  need_lib_prefix=no
10670  library_names_spec='$libname${shared_ext} $libname.a'
10671  dynamic_linker='OS/2 ld.exe'
10672  shlibpath_var=LIBPATH
10673  ;;
10674
10675osf3* | osf4* | osf5*)
10676  version_type=osf
10677  need_lib_prefix=no
10678  need_version=no
10679  soname_spec='${libname}${release}${shared_ext}$major'
10680  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10681  shlibpath_var=LD_LIBRARY_PATH
10682  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10683  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10684  ;;
10685
10686rdos*)
10687  dynamic_linker=no
10688  ;;
10689
10690solaris*)
10691  version_type=linux
10692  need_lib_prefix=no
10693  need_version=no
10694  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10695  soname_spec='${libname}${release}${shared_ext}$major'
10696  shlibpath_var=LD_LIBRARY_PATH
10697  shlibpath_overrides_runpath=yes
10698  hardcode_into_libs=yes
10699  # ldd complains unless libraries are executable
10700  postinstall_cmds='chmod +x $lib'
10701  ;;
10702
10703sunos4*)
10704  version_type=sunos
10705  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10706  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10707  shlibpath_var=LD_LIBRARY_PATH
10708  shlibpath_overrides_runpath=yes
10709  if test "$with_gnu_ld" = yes; then
10710    need_lib_prefix=no
10711  fi
10712  need_version=yes
10713  ;;
10714
10715sysv4 | sysv4.3*)
10716  version_type=linux
10717  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10718  soname_spec='${libname}${release}${shared_ext}$major'
10719  shlibpath_var=LD_LIBRARY_PATH
10720  case $host_vendor in
10721    sni)
10722      shlibpath_overrides_runpath=no
10723      need_lib_prefix=no
10724      runpath_var=LD_RUN_PATH
10725      ;;
10726    siemens)
10727      need_lib_prefix=no
10728      ;;
10729    motorola)
10730      need_lib_prefix=no
10731      need_version=no
10732      shlibpath_overrides_runpath=no
10733      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10734      ;;
10735  esac
10736  ;;
10737
10738sysv4*MP*)
10739  if test -d /usr/nec ;then
10740    version_type=linux
10741    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10742    soname_spec='$libname${shared_ext}.$major'
10743    shlibpath_var=LD_LIBRARY_PATH
10744  fi
10745  ;;
10746
10747sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10748  version_type=freebsd-elf
10749  need_lib_prefix=no
10750  need_version=no
10751  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10752  soname_spec='${libname}${release}${shared_ext}$major'
10753  shlibpath_var=LD_LIBRARY_PATH
10754  shlibpath_overrides_runpath=yes
10755  hardcode_into_libs=yes
10756  if test "$with_gnu_ld" = yes; then
10757    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10758  else
10759    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10760    case $host_os in
10761      sco3.2v5*)
10762        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10763	;;
10764    esac
10765  fi
10766  sys_lib_dlsearch_path_spec='/usr/lib'
10767  ;;
10768
10769tpf*)
10770  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10771  version_type=linux
10772  need_lib_prefix=no
10773  need_version=no
10774  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10775  shlibpath_var=LD_LIBRARY_PATH
10776  shlibpath_overrides_runpath=no
10777  hardcode_into_libs=yes
10778  ;;
10779
10780uts4*)
10781  version_type=linux
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  shlibpath_var=LD_LIBRARY_PATH
10785  ;;
10786
10787*)
10788  dynamic_linker=no
10789  ;;
10790esac
10791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10792$as_echo "$dynamic_linker" >&6; }
10793test "$dynamic_linker" = no && can_build_shared=no
10794
10795variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10796if test "$GCC" = yes; then
10797  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10798fi
10799
10800if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10801  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10802fi
10803if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10804  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10805fi
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10899$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10900hardcode_action=
10901if test -n "$hardcode_libdir_flag_spec" ||
10902   test -n "$runpath_var" ||
10903   test "X$hardcode_automatic" = "Xyes" ; then
10904
10905  # We can hardcode non-existent directories.
10906  if test "$hardcode_direct" != no &&
10907     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10908     # have to relink, otherwise we might link with an installed library
10909     # when we should be linking with a yet-to-be-installed one
10910     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10911     test "$hardcode_minus_L" != no; then
10912    # Linking always hardcodes the temporary library directory.
10913    hardcode_action=relink
10914  else
10915    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10916    hardcode_action=immediate
10917  fi
10918else
10919  # We cannot hardcode anything, or else we can only hardcode existing
10920  # directories.
10921  hardcode_action=unsupported
10922fi
10923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10924$as_echo "$hardcode_action" >&6; }
10925
10926if test "$hardcode_action" = relink ||
10927   test "$inherit_rpath" = yes; then
10928  # Fast installation is not supported
10929  enable_fast_install=no
10930elif test "$shlibpath_overrides_runpath" = yes ||
10931     test "$enable_shared" = no; then
10932  # Fast installation is not necessary
10933  enable_fast_install=needless
10934fi
10935
10936
10937
10938
10939
10940
10941  if test "x$enable_dlopen" != xyes; then
10942  enable_dlopen=unknown
10943  enable_dlopen_self=unknown
10944  enable_dlopen_self_static=unknown
10945else
10946  lt_cv_dlopen=no
10947  lt_cv_dlopen_libs=
10948
10949  case $host_os in
10950  beos*)
10951    lt_cv_dlopen="load_add_on"
10952    lt_cv_dlopen_libs=
10953    lt_cv_dlopen_self=yes
10954    ;;
10955
10956  mingw* | pw32* | cegcc*)
10957    lt_cv_dlopen="LoadLibrary"
10958    lt_cv_dlopen_libs=
10959    ;;
10960
10961  cygwin*)
10962    lt_cv_dlopen="dlopen"
10963    lt_cv_dlopen_libs=
10964    ;;
10965
10966  darwin*)
10967  # if libdl is installed we need to link against it
10968    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10969$as_echo_n "checking for dlopen in -ldl... " >&6; }
10970if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10971  $as_echo_n "(cached) " >&6
10972else
10973  ac_check_lib_save_LIBS=$LIBS
10974LIBS="-ldl  $LIBS"
10975cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10976/* end confdefs.h.  */
10977
10978/* Override any GCC internal prototype to avoid an error.
10979   Use char because int might match the return type of a GCC
10980   builtin and then its argument prototype would still apply.  */
10981#ifdef __cplusplus
10982extern "C"
10983#endif
10984char dlopen ();
10985int
10986main ()
10987{
10988return dlopen ();
10989  ;
10990  return 0;
10991}
10992_ACEOF
10993if ac_fn_c_try_link "$LINENO"; then :
10994  ac_cv_lib_dl_dlopen=yes
10995else
10996  ac_cv_lib_dl_dlopen=no
10997fi
10998rm -f core conftest.err conftest.$ac_objext \
10999    conftest$ac_exeext conftest.$ac_ext
11000LIBS=$ac_check_lib_save_LIBS
11001fi
11002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11003$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11004if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11005  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11006else
11007
11008    lt_cv_dlopen="dyld"
11009    lt_cv_dlopen_libs=
11010    lt_cv_dlopen_self=yes
11011
11012fi
11013
11014    ;;
11015
11016  *)
11017    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11018if test "x$ac_cv_func_shl_load" = x""yes; then :
11019  lt_cv_dlopen="shl_load"
11020else
11021  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11022$as_echo_n "checking for shl_load in -ldld... " >&6; }
11023if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11024  $as_echo_n "(cached) " >&6
11025else
11026  ac_check_lib_save_LIBS=$LIBS
11027LIBS="-ldld  $LIBS"
11028cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11029/* end confdefs.h.  */
11030
11031/* Override any GCC internal prototype to avoid an error.
11032   Use char because int might match the return type of a GCC
11033   builtin and then its argument prototype would still apply.  */
11034#ifdef __cplusplus
11035extern "C"
11036#endif
11037char shl_load ();
11038int
11039main ()
11040{
11041return shl_load ();
11042  ;
11043  return 0;
11044}
11045_ACEOF
11046if ac_fn_c_try_link "$LINENO"; then :
11047  ac_cv_lib_dld_shl_load=yes
11048else
11049  ac_cv_lib_dld_shl_load=no
11050fi
11051rm -f core conftest.err conftest.$ac_objext \
11052    conftest$ac_exeext conftest.$ac_ext
11053LIBS=$ac_check_lib_save_LIBS
11054fi
11055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11056$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11057if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11058  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11059else
11060  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11061if test "x$ac_cv_func_dlopen" = x""yes; then :
11062  lt_cv_dlopen="dlopen"
11063else
11064  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11065$as_echo_n "checking for dlopen in -ldl... " >&6; }
11066if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11067  $as_echo_n "(cached) " >&6
11068else
11069  ac_check_lib_save_LIBS=$LIBS
11070LIBS="-ldl  $LIBS"
11071cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11072/* end confdefs.h.  */
11073
11074/* Override any GCC internal prototype to avoid an error.
11075   Use char because int might match the return type of a GCC
11076   builtin and then its argument prototype would still apply.  */
11077#ifdef __cplusplus
11078extern "C"
11079#endif
11080char dlopen ();
11081int
11082main ()
11083{
11084return dlopen ();
11085  ;
11086  return 0;
11087}
11088_ACEOF
11089if ac_fn_c_try_link "$LINENO"; then :
11090  ac_cv_lib_dl_dlopen=yes
11091else
11092  ac_cv_lib_dl_dlopen=no
11093fi
11094rm -f core conftest.err conftest.$ac_objext \
11095    conftest$ac_exeext conftest.$ac_ext
11096LIBS=$ac_check_lib_save_LIBS
11097fi
11098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11099$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11100if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11101  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11102else
11103  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11104$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11105if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11106  $as_echo_n "(cached) " >&6
11107else
11108  ac_check_lib_save_LIBS=$LIBS
11109LIBS="-lsvld  $LIBS"
11110cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11111/* end confdefs.h.  */
11112
11113/* Override any GCC internal prototype to avoid an error.
11114   Use char because int might match the return type of a GCC
11115   builtin and then its argument prototype would still apply.  */
11116#ifdef __cplusplus
11117extern "C"
11118#endif
11119char dlopen ();
11120int
11121main ()
11122{
11123return dlopen ();
11124  ;
11125  return 0;
11126}
11127_ACEOF
11128if ac_fn_c_try_link "$LINENO"; then :
11129  ac_cv_lib_svld_dlopen=yes
11130else
11131  ac_cv_lib_svld_dlopen=no
11132fi
11133rm -f core conftest.err conftest.$ac_objext \
11134    conftest$ac_exeext conftest.$ac_ext
11135LIBS=$ac_check_lib_save_LIBS
11136fi
11137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11138$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11139if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11140  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11141else
11142  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11143$as_echo_n "checking for dld_link in -ldld... " >&6; }
11144if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11145  $as_echo_n "(cached) " >&6
11146else
11147  ac_check_lib_save_LIBS=$LIBS
11148LIBS="-ldld  $LIBS"
11149cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11150/* end confdefs.h.  */
11151
11152/* Override any GCC internal prototype to avoid an error.
11153   Use char because int might match the return type of a GCC
11154   builtin and then its argument prototype would still apply.  */
11155#ifdef __cplusplus
11156extern "C"
11157#endif
11158char dld_link ();
11159int
11160main ()
11161{
11162return dld_link ();
11163  ;
11164  return 0;
11165}
11166_ACEOF
11167if ac_fn_c_try_link "$LINENO"; then :
11168  ac_cv_lib_dld_dld_link=yes
11169else
11170  ac_cv_lib_dld_dld_link=no
11171fi
11172rm -f core conftest.err conftest.$ac_objext \
11173    conftest$ac_exeext conftest.$ac_ext
11174LIBS=$ac_check_lib_save_LIBS
11175fi
11176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11177$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11178if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11179  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11180fi
11181
11182
11183fi
11184
11185
11186fi
11187
11188
11189fi
11190
11191
11192fi
11193
11194
11195fi
11196
11197    ;;
11198  esac
11199
11200  if test "x$lt_cv_dlopen" != xno; then
11201    enable_dlopen=yes
11202  else
11203    enable_dlopen=no
11204  fi
11205
11206  case $lt_cv_dlopen in
11207  dlopen)
11208    save_CPPFLAGS="$CPPFLAGS"
11209    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11210
11211    save_LDFLAGS="$LDFLAGS"
11212    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11213
11214    save_LIBS="$LIBS"
11215    LIBS="$lt_cv_dlopen_libs $LIBS"
11216
11217    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11218$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11219if test "${lt_cv_dlopen_self+set}" = set; then :
11220  $as_echo_n "(cached) " >&6
11221else
11222  	  if test "$cross_compiling" = yes; then :
11223  lt_cv_dlopen_self=cross
11224else
11225  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11226  lt_status=$lt_dlunknown
11227  cat > conftest.$ac_ext <<_LT_EOF
11228#line 11228 "configure"
11229#include "confdefs.h"
11230
11231#if HAVE_DLFCN_H
11232#include <dlfcn.h>
11233#endif
11234
11235#include <stdio.h>
11236
11237#ifdef RTLD_GLOBAL
11238#  define LT_DLGLOBAL		RTLD_GLOBAL
11239#else
11240#  ifdef DL_GLOBAL
11241#    define LT_DLGLOBAL		DL_GLOBAL
11242#  else
11243#    define LT_DLGLOBAL		0
11244#  endif
11245#endif
11246
11247/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11248   find out it does not work in some platform. */
11249#ifndef LT_DLLAZY_OR_NOW
11250#  ifdef RTLD_LAZY
11251#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11252#  else
11253#    ifdef DL_LAZY
11254#      define LT_DLLAZY_OR_NOW		DL_LAZY
11255#    else
11256#      ifdef RTLD_NOW
11257#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11258#      else
11259#        ifdef DL_NOW
11260#          define LT_DLLAZY_OR_NOW	DL_NOW
11261#        else
11262#          define LT_DLLAZY_OR_NOW	0
11263#        endif
11264#      endif
11265#    endif
11266#  endif
11267#endif
11268
11269/* When -fvisbility=hidden is used, assume the code has been annotated
11270   correspondingly for the symbols needed.  */
11271#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11272void fnord () __attribute__((visibility("default")));
11273#endif
11274
11275void fnord () { int i=42; }
11276int main ()
11277{
11278  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11279  int status = $lt_dlunknown;
11280
11281  if (self)
11282    {
11283      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11284      else
11285        {
11286	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11287          else puts (dlerror ());
11288	}
11289      /* dlclose (self); */
11290    }
11291  else
11292    puts (dlerror ());
11293
11294  return status;
11295}
11296_LT_EOF
11297  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11298  (eval $ac_link) 2>&5
11299  ac_status=$?
11300  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11301  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11302    (./conftest; exit; ) >&5 2>/dev/null
11303    lt_status=$?
11304    case x$lt_status in
11305      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11306      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11307      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11308    esac
11309  else :
11310    # compilation failed
11311    lt_cv_dlopen_self=no
11312  fi
11313fi
11314rm -fr conftest*
11315
11316
11317fi
11318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11319$as_echo "$lt_cv_dlopen_self" >&6; }
11320
11321    if test "x$lt_cv_dlopen_self" = xyes; then
11322      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11323      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11324$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11325if test "${lt_cv_dlopen_self_static+set}" = set; then :
11326  $as_echo_n "(cached) " >&6
11327else
11328  	  if test "$cross_compiling" = yes; then :
11329  lt_cv_dlopen_self_static=cross
11330else
11331  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11332  lt_status=$lt_dlunknown
11333  cat > conftest.$ac_ext <<_LT_EOF
11334#line 11334 "configure"
11335#include "confdefs.h"
11336
11337#if HAVE_DLFCN_H
11338#include <dlfcn.h>
11339#endif
11340
11341#include <stdio.h>
11342
11343#ifdef RTLD_GLOBAL
11344#  define LT_DLGLOBAL		RTLD_GLOBAL
11345#else
11346#  ifdef DL_GLOBAL
11347#    define LT_DLGLOBAL		DL_GLOBAL
11348#  else
11349#    define LT_DLGLOBAL		0
11350#  endif
11351#endif
11352
11353/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11354   find out it does not work in some platform. */
11355#ifndef LT_DLLAZY_OR_NOW
11356#  ifdef RTLD_LAZY
11357#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11358#  else
11359#    ifdef DL_LAZY
11360#      define LT_DLLAZY_OR_NOW		DL_LAZY
11361#    else
11362#      ifdef RTLD_NOW
11363#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11364#      else
11365#        ifdef DL_NOW
11366#          define LT_DLLAZY_OR_NOW	DL_NOW
11367#        else
11368#          define LT_DLLAZY_OR_NOW	0
11369#        endif
11370#      endif
11371#    endif
11372#  endif
11373#endif
11374
11375/* When -fvisbility=hidden is used, assume the code has been annotated
11376   correspondingly for the symbols needed.  */
11377#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11378void fnord () __attribute__((visibility("default")));
11379#endif
11380
11381void fnord () { int i=42; }
11382int main ()
11383{
11384  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11385  int status = $lt_dlunknown;
11386
11387  if (self)
11388    {
11389      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11390      else
11391        {
11392	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11393          else puts (dlerror ());
11394	}
11395      /* dlclose (self); */
11396    }
11397  else
11398    puts (dlerror ());
11399
11400  return status;
11401}
11402_LT_EOF
11403  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11404  (eval $ac_link) 2>&5
11405  ac_status=$?
11406  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11407  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11408    (./conftest; exit; ) >&5 2>/dev/null
11409    lt_status=$?
11410    case x$lt_status in
11411      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11412      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11413      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11414    esac
11415  else :
11416    # compilation failed
11417    lt_cv_dlopen_self_static=no
11418  fi
11419fi
11420rm -fr conftest*
11421
11422
11423fi
11424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11425$as_echo "$lt_cv_dlopen_self_static" >&6; }
11426    fi
11427
11428    CPPFLAGS="$save_CPPFLAGS"
11429    LDFLAGS="$save_LDFLAGS"
11430    LIBS="$save_LIBS"
11431    ;;
11432  esac
11433
11434  case $lt_cv_dlopen_self in
11435  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11436  *) enable_dlopen_self=unknown ;;
11437  esac
11438
11439  case $lt_cv_dlopen_self_static in
11440  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11441  *) enable_dlopen_self_static=unknown ;;
11442  esac
11443fi
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461striplib=
11462old_striplib=
11463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11464$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11465if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11466  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11467  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11468  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11469$as_echo "yes" >&6; }
11470else
11471# FIXME - insert some real tests, host_os isn't really good enough
11472  case $host_os in
11473  darwin*)
11474    if test -n "$STRIP" ; then
11475      striplib="$STRIP -x"
11476      old_striplib="$STRIP -S"
11477      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11478$as_echo "yes" >&6; }
11479    else
11480      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11481$as_echo "no" >&6; }
11482    fi
11483    ;;
11484  *)
11485    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11486$as_echo "no" >&6; }
11487    ;;
11488  esac
11489fi
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502  # Report which library types will actually be built
11503  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11504$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11505  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11506$as_echo "$can_build_shared" >&6; }
11507
11508  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11509$as_echo_n "checking whether to build shared libraries... " >&6; }
11510  test "$can_build_shared" = "no" && enable_shared=no
11511
11512  # On AIX, shared libraries and static libraries use the same namespace, and
11513  # are all built from PIC.
11514  case $host_os in
11515  aix3*)
11516    test "$enable_shared" = yes && enable_static=no
11517    if test -n "$RANLIB"; then
11518      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11519      postinstall_cmds='$RANLIB $lib'
11520    fi
11521    ;;
11522
11523  aix[4-9]*)
11524    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11525      test "$enable_shared" = yes && enable_static=no
11526    fi
11527    ;;
11528  esac
11529  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11530$as_echo "$enable_shared" >&6; }
11531
11532  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11533$as_echo_n "checking whether to build static libraries... " >&6; }
11534  # Make sure either enable_shared or enable_static is yes.
11535  test "$enable_shared" = yes || enable_static=yes
11536  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11537$as_echo "$enable_static" >&6; }
11538
11539
11540
11541
11542fi
11543ac_ext=c
11544ac_cpp='$CPP $CPPFLAGS'
11545ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11546ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11547ac_compiler_gnu=$ac_cv_c_compiler_gnu
11548
11549CC="$lt_save_CC"
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563        ac_config_commands="$ac_config_commands libtool"
11564
11565
11566
11567
11568# Only expand once:
11569
11570
11571
11572# The tests for host and target for $enable_largefile require
11573# canonical names.
11574
11575
11576
11577# As the $enable_largefile decision depends on --enable-plugins we must set it
11578# even in directories otherwise not depending on the $plugins option.
11579
11580
11581  maybe_plugins=no
11582  for ac_header in dlfcn.h
11583do :
11584  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11585"
11586if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
11587  cat >>confdefs.h <<_ACEOF
11588#define HAVE_DLFCN_H 1
11589_ACEOF
11590 maybe_plugins=yes
11591fi
11592
11593done
11594
11595  for ac_header in windows.h
11596do :
11597  ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
11598"
11599if test "x$ac_cv_header_windows_h" = x""yes; then :
11600  cat >>confdefs.h <<_ACEOF
11601#define HAVE_WINDOWS_H 1
11602_ACEOF
11603 maybe_plugins=yes
11604fi
11605
11606done
11607
11608
11609  # Check whether --enable-plugins was given.
11610if test "${enable_plugins+set}" = set; then :
11611  enableval=$enable_plugins; case "${enableval}" in
11612      no) plugins=no ;;
11613      *) plugins=yes
11614         if test "$maybe_plugins" != "yes" ; then
11615	   as_fn_error "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
11616	 fi ;;
11617     esac
11618else
11619  plugins=$maybe_plugins
11620
11621fi
11622
11623  if test "$plugins" = "yes"; then
11624    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
11625$as_echo_n "checking for library containing dlopen... " >&6; }
11626if test "${ac_cv_search_dlopen+set}" = set; then :
11627  $as_echo_n "(cached) " >&6
11628else
11629  ac_func_search_save_LIBS=$LIBS
11630cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11631/* end confdefs.h.  */
11632
11633/* Override any GCC internal prototype to avoid an error.
11634   Use char because int might match the return type of a GCC
11635   builtin and then its argument prototype would still apply.  */
11636#ifdef __cplusplus
11637extern "C"
11638#endif
11639char dlopen ();
11640int
11641main ()
11642{
11643return dlopen ();
11644  ;
11645  return 0;
11646}
11647_ACEOF
11648for ac_lib in '' dl; do
11649  if test -z "$ac_lib"; then
11650    ac_res="none required"
11651  else
11652    ac_res=-l$ac_lib
11653    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11654  fi
11655  if ac_fn_c_try_link "$LINENO"; then :
11656  ac_cv_search_dlopen=$ac_res
11657fi
11658rm -f core conftest.err conftest.$ac_objext \
11659    conftest$ac_exeext
11660  if test "${ac_cv_search_dlopen+set}" = set; then :
11661  break
11662fi
11663done
11664if test "${ac_cv_search_dlopen+set}" = set; then :
11665
11666else
11667  ac_cv_search_dlopen=no
11668fi
11669rm conftest.$ac_ext
11670LIBS=$ac_func_search_save_LIBS
11671fi
11672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
11673$as_echo "$ac_cv_search_dlopen" >&6; }
11674ac_res=$ac_cv_search_dlopen
11675if test "$ac_res" != no; then :
11676  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11677
11678fi
11679
11680  fi
11681
11682
11683case "${host}" in
11684  sparc-*-solaris*|i[3-7]86-*-solaris*)
11685    # On native 32bit sparc and ia32 solaris, large-file and procfs support
11686    # are mutually exclusive; and without procfs support, the bfd/ elf module
11687    # cannot provide certain routines such as elfcore_write_prpsinfo
11688    # or elfcore_write_prstatus.  So unless the user explicitly requested
11689    # large-file support through the --enable-largefile switch, disable
11690    # large-file support in favor of procfs support.
11691    test "${target}" = "${host}" -a "x$plugins" = xno \
11692      && : ${enable_largefile="no"}
11693    ;;
11694esac
11695
11696# Check whether --enable-largefile was given.
11697if test "${enable_largefile+set}" = set; then :
11698  enableval=$enable_largefile;
11699fi
11700
11701if test "$enable_largefile" != no; then
11702
11703  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
11704$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
11705if test "${ac_cv_sys_largefile_CC+set}" = set; then :
11706  $as_echo_n "(cached) " >&6
11707else
11708  ac_cv_sys_largefile_CC=no
11709     if test "$GCC" != yes; then
11710       ac_save_CC=$CC
11711       while :; do
11712	 # IRIX 6.2 and later do not support large files by default,
11713	 # so use the C compiler's -n32 option if that helps.
11714	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11715/* end confdefs.h.  */
11716#include <sys/types.h>
11717 /* Check that off_t can represent 2**63 - 1 correctly.
11718    We can't simply define LARGE_OFF_T to be 9223372036854775807,
11719    since some C++ compilers masquerading as C compilers
11720    incorrectly reject 9223372036854775807.  */
11721#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11722  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11723		       && LARGE_OFF_T % 2147483647 == 1)
11724		      ? 1 : -1];
11725int
11726main ()
11727{
11728
11729  ;
11730  return 0;
11731}
11732_ACEOF
11733	 if ac_fn_c_try_compile "$LINENO"; then :
11734  break
11735fi
11736rm -f core conftest.err conftest.$ac_objext
11737	 CC="$CC -n32"
11738	 if ac_fn_c_try_compile "$LINENO"; then :
11739  ac_cv_sys_largefile_CC=' -n32'; break
11740fi
11741rm -f core conftest.err conftest.$ac_objext
11742	 break
11743       done
11744       CC=$ac_save_CC
11745       rm -f conftest.$ac_ext
11746    fi
11747fi
11748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
11749$as_echo "$ac_cv_sys_largefile_CC" >&6; }
11750  if test "$ac_cv_sys_largefile_CC" != no; then
11751    CC=$CC$ac_cv_sys_largefile_CC
11752  fi
11753
11754  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
11755$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
11756if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
11757  $as_echo_n "(cached) " >&6
11758else
11759  while :; do
11760  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11761/* end confdefs.h.  */
11762#include <sys/types.h>
11763 /* Check that off_t can represent 2**63 - 1 correctly.
11764    We can't simply define LARGE_OFF_T to be 9223372036854775807,
11765    since some C++ compilers masquerading as C compilers
11766    incorrectly reject 9223372036854775807.  */
11767#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11768  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11769		       && LARGE_OFF_T % 2147483647 == 1)
11770		      ? 1 : -1];
11771int
11772main ()
11773{
11774
11775  ;
11776  return 0;
11777}
11778_ACEOF
11779if ac_fn_c_try_compile "$LINENO"; then :
11780  ac_cv_sys_file_offset_bits=no; break
11781fi
11782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11783  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11784/* end confdefs.h.  */
11785#define _FILE_OFFSET_BITS 64
11786#include <sys/types.h>
11787 /* Check that off_t can represent 2**63 - 1 correctly.
11788    We can't simply define LARGE_OFF_T to be 9223372036854775807,
11789    since some C++ compilers masquerading as C compilers
11790    incorrectly reject 9223372036854775807.  */
11791#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11792  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11793		       && LARGE_OFF_T % 2147483647 == 1)
11794		      ? 1 : -1];
11795int
11796main ()
11797{
11798
11799  ;
11800  return 0;
11801}
11802_ACEOF
11803if ac_fn_c_try_compile "$LINENO"; then :
11804  ac_cv_sys_file_offset_bits=64; break
11805fi
11806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11807  ac_cv_sys_file_offset_bits=unknown
11808  break
11809done
11810fi
11811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
11812$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
11813case $ac_cv_sys_file_offset_bits in #(
11814  no | unknown) ;;
11815  *)
11816cat >>confdefs.h <<_ACEOF
11817#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
11818_ACEOF
11819;;
11820esac
11821rm -rf conftest*
11822  if test $ac_cv_sys_file_offset_bits = unknown; then
11823    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
11824$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
11825if test "${ac_cv_sys_large_files+set}" = set; then :
11826  $as_echo_n "(cached) " >&6
11827else
11828  while :; do
11829  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11830/* end confdefs.h.  */
11831#include <sys/types.h>
11832 /* Check that off_t can represent 2**63 - 1 correctly.
11833    We can't simply define LARGE_OFF_T to be 9223372036854775807,
11834    since some C++ compilers masquerading as C compilers
11835    incorrectly reject 9223372036854775807.  */
11836#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11837  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11838		       && LARGE_OFF_T % 2147483647 == 1)
11839		      ? 1 : -1];
11840int
11841main ()
11842{
11843
11844  ;
11845  return 0;
11846}
11847_ACEOF
11848if ac_fn_c_try_compile "$LINENO"; then :
11849  ac_cv_sys_large_files=no; break
11850fi
11851rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11852  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11853/* end confdefs.h.  */
11854#define _LARGE_FILES 1
11855#include <sys/types.h>
11856 /* Check that off_t can represent 2**63 - 1 correctly.
11857    We can't simply define LARGE_OFF_T to be 9223372036854775807,
11858    since some C++ compilers masquerading as C compilers
11859    incorrectly reject 9223372036854775807.  */
11860#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11861  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11862		       && LARGE_OFF_T % 2147483647 == 1)
11863		      ? 1 : -1];
11864int
11865main ()
11866{
11867
11868  ;
11869  return 0;
11870}
11871_ACEOF
11872if ac_fn_c_try_compile "$LINENO"; then :
11873  ac_cv_sys_large_files=1; break
11874fi
11875rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11876  ac_cv_sys_large_files=unknown
11877  break
11878done
11879fi
11880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
11881$as_echo "$ac_cv_sys_large_files" >&6; }
11882case $ac_cv_sys_large_files in #(
11883  no | unknown) ;;
11884  *)
11885cat >>confdefs.h <<_ACEOF
11886#define _LARGE_FILES $ac_cv_sys_large_files
11887_ACEOF
11888;;
11889esac
11890rm -rf conftest*
11891  fi
11892fi
11893
11894
11895
11896# Check whether --enable-targets was given.
11897if test "${enable_targets+set}" = set; then :
11898  enableval=$enable_targets; case "${enableval}" in
11899  yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5
11900            ;;
11901  no)       enable_targets= ;;
11902  *)        enable_targets=$enableval ;;
11903esac
11904fi
11905
11906# Check whether --enable-deterministic-archives was given.
11907if test "${enable_deterministic_archives+set}" = set; then :
11908  enableval=$enable_deterministic_archives;
11909if test "${enableval}" = no; then
11910  default_ar_deterministic=0
11911else
11912  default_ar_deterministic=1
11913fi
11914else
11915  default_ar_deterministic=0
11916fi
11917
11918
11919
11920cat >>confdefs.h <<_ACEOF
11921#define DEFAULT_AR_DETERMINISTIC $default_ar_deterministic
11922_ACEOF
11923
11924
11925# Check whether --enable-default-strings-all was given.
11926if test "${enable_default_strings_all+set}" = set; then :
11927  enableval=$enable_default_strings_all;
11928if test "${enableval}" = no; then
11929  default_strings_all=0
11930else
11931  default_strings_all=1
11932fi
11933else
11934  default_strings_all=1
11935fi
11936
11937
11938
11939cat >>confdefs.h <<_ACEOF
11940#define DEFAULT_STRINGS_ALL $default_strings_all
11941_ACEOF
11942
11943
11944
11945# Set the 'development' global.
11946. $srcdir/../bfd/development.sh
11947
11948# Default set of GCC warnings to enable.
11949GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
11950
11951# Add -Wshadow if the compiler is a sufficiently recent version of GCC.
11952cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11953/* end confdefs.h.  */
11954__GNUC__
11955_ACEOF
11956if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11957  $EGREP "^[0-3]$" >/dev/null 2>&1; then :
11958
11959else
11960  GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
11961fi
11962rm -f conftest*
11963
11964
11965# Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
11966cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11967/* end confdefs.h.  */
11968__GNUC__
11969_ACEOF
11970if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11971  $EGREP "^[0-4]$" >/dev/null 2>&1; then :
11972
11973else
11974  GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144"
11975fi
11976rm -f conftest*
11977
11978
11979# Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings.
11980WARN_WRITE_STRINGS=""
11981cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11982/* end confdefs.h.  */
11983__GNUC__
11984_ACEOF
11985if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11986  $EGREP "^[0-3]$" >/dev/null 2>&1; then :
11987
11988else
11989  WARN_WRITE_STRINGS="-Wwrite-strings"
11990fi
11991rm -f conftest*
11992
11993
11994# Check whether --enable-werror was given.
11995if test "${enable_werror+set}" = set; then :
11996  enableval=$enable_werror; case "${enableval}" in
11997     yes | y) ERROR_ON_WARNING="yes" ;;
11998     no | n)  ERROR_ON_WARNING="no" ;;
11999     *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
12000   esac
12001fi
12002
12003
12004# Disable -Wformat by default when using gcc on mingw
12005case "${host}" in
12006  *-*-mingw32*)
12007    if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
12008      GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
12009    fi
12010    ;;
12011  *) ;;
12012esac
12013
12014# Enable -Werror by default when using gcc.  Turn it off for releases.
12015if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then
12016    ERROR_ON_WARNING=yes
12017fi
12018
12019NO_WERROR=
12020if test "${ERROR_ON_WARNING}" = yes ; then
12021    GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
12022    NO_WERROR="-Wno-error"
12023fi
12024
12025if test "${GCC}" = yes ; then
12026  WARN_CFLAGS="${GCC_WARN_CFLAGS}"
12027fi
12028
12029# Check whether --enable-build-warnings was given.
12030if test "${enable_build_warnings+set}" = set; then :
12031  enableval=$enable_build_warnings; case "${enableval}" in
12032  yes)	WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
12033  no)	if test "${GCC}" = yes ; then
12034	  WARN_CFLAGS="-w"
12035	fi;;
12036  ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
12037        WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
12038  *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
12039        WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
12040  *)    WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
12041esac
12042fi
12043
12044
12045if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
12046  echo "Setting warning flags = $WARN_CFLAGS" 6>&1
12047fi
12048
12049
12050
12051
12052
12053
12054ac_config_headers="$ac_config_headers config.h:config.in"
12055
12056
12057
12058
12059if test -z "$target" ; then
12060    as_fn_error "Unrecognized target system type; please check config.sub." "$LINENO" 5
12061fi
12062if test -z "$host" ; then
12063    as_fn_error "Unrecognized host system type; please check config.sub." "$LINENO" 5
12064fi
12065
12066for ac_prog in 'bison -y' byacc
12067do
12068  # Extract the first word of "$ac_prog", so it can be a program name with args.
12069set dummy $ac_prog; ac_word=$2
12070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12071$as_echo_n "checking for $ac_word... " >&6; }
12072if test "${ac_cv_prog_YACC+set}" = set; then :
12073  $as_echo_n "(cached) " >&6
12074else
12075  if test -n "$YACC"; then
12076  ac_cv_prog_YACC="$YACC" # Let the user override the test.
12077else
12078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12079for as_dir in $PATH
12080do
12081  IFS=$as_save_IFS
12082  test -z "$as_dir" && as_dir=.
12083    for ac_exec_ext in '' $ac_executable_extensions; do
12084  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12085    ac_cv_prog_YACC="$ac_prog"
12086    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12087    break 2
12088  fi
12089done
12090  done
12091IFS=$as_save_IFS
12092
12093fi
12094fi
12095YACC=$ac_cv_prog_YACC
12096if test -n "$YACC"; then
12097  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
12098$as_echo "$YACC" >&6; }
12099else
12100  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12101$as_echo "no" >&6; }
12102fi
12103
12104
12105  test -n "$YACC" && break
12106done
12107test -n "$YACC" || YACC="yacc"
12108
12109for ac_prog in flex lex
12110do
12111  # Extract the first word of "$ac_prog", so it can be a program name with args.
12112set dummy $ac_prog; ac_word=$2
12113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12114$as_echo_n "checking for $ac_word... " >&6; }
12115if test "${ac_cv_prog_LEX+set}" = set; then :
12116  $as_echo_n "(cached) " >&6
12117else
12118  if test -n "$LEX"; then
12119  ac_cv_prog_LEX="$LEX" # Let the user override the test.
12120else
12121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12122for as_dir in $PATH
12123do
12124  IFS=$as_save_IFS
12125  test -z "$as_dir" && as_dir=.
12126    for ac_exec_ext in '' $ac_executable_extensions; do
12127  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12128    ac_cv_prog_LEX="$ac_prog"
12129    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12130    break 2
12131  fi
12132done
12133  done
12134IFS=$as_save_IFS
12135
12136fi
12137fi
12138LEX=$ac_cv_prog_LEX
12139if test -n "$LEX"; then
12140  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
12141$as_echo "$LEX" >&6; }
12142else
12143  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12144$as_echo "no" >&6; }
12145fi
12146
12147
12148  test -n "$LEX" && break
12149done
12150test -n "$LEX" || LEX=":"
12151
12152case "$LEX" in
12153  :|*"missing "*) ;;
12154  *) cat >conftest.l <<_ACEOF
12155%%
12156a { ECHO; }
12157b { REJECT; }
12158c { yymore (); }
12159d { yyless (1); }
12160e { yyless (input () != 0); }
12161f { unput (yytext[0]); }
12162. { BEGIN INITIAL; }
12163%%
12164#ifdef YYTEXT_POINTER
12165extern char *yytext;
12166#endif
12167int
12168main (void)
12169{
12170  return ! yylex () + ! yywrap ();
12171}
12172_ACEOF
12173{ { ac_try="$LEX conftest.l"
12174case "(($ac_try" in
12175  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12176  *) ac_try_echo=$ac_try;;
12177esac
12178eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12179$as_echo "$ac_try_echo"; } >&5
12180  (eval "$LEX conftest.l") 2>&5
12181  ac_status=$?
12182  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12183  test $ac_status = 0; }
12184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
12185$as_echo_n "checking lex output file root... " >&6; }
12186if test "${ac_cv_prog_lex_root+set}" = set; then :
12187  $as_echo_n "(cached) " >&6
12188else
12189
12190if test -f lex.yy.c; then
12191  ac_cv_prog_lex_root=lex.yy
12192elif test -f lexyy.c; then
12193  ac_cv_prog_lex_root=lexyy
12194else
12195  as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
12196fi
12197fi
12198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
12199$as_echo "$ac_cv_prog_lex_root" >&6; }
12200LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
12201
12202if test -z "${LEXLIB+set}"; then
12203  { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
12204$as_echo_n "checking lex library... " >&6; }
12205if test "${ac_cv_lib_lex+set}" = set; then :
12206  $as_echo_n "(cached) " >&6
12207else
12208
12209    ac_save_LIBS=$LIBS
12210    ac_cv_lib_lex='none needed'
12211    for ac_lib in '' -lfl -ll; do
12212      LIBS="$ac_lib $ac_save_LIBS"
12213      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12214/* end confdefs.h.  */
12215`cat $LEX_OUTPUT_ROOT.c`
12216_ACEOF
12217if ac_fn_c_try_link "$LINENO"; then :
12218  ac_cv_lib_lex=$ac_lib
12219fi
12220rm -f core conftest.err conftest.$ac_objext \
12221    conftest$ac_exeext conftest.$ac_ext
12222      test "$ac_cv_lib_lex" != 'none needed' && break
12223    done
12224    LIBS=$ac_save_LIBS
12225
12226fi
12227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
12228$as_echo "$ac_cv_lib_lex" >&6; }
12229  test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
12230fi
12231
12232
12233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
12234$as_echo_n "checking whether yytext is a pointer... " >&6; }
12235if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
12236  $as_echo_n "(cached) " >&6
12237else
12238  # POSIX says lex can declare yytext either as a pointer or an array; the
12239# default is implementation-dependent.  Figure out which it is, since
12240# not all implementations provide the %pointer and %array declarations.
12241ac_cv_prog_lex_yytext_pointer=no
12242ac_save_LIBS=$LIBS
12243LIBS="$LEXLIB $ac_save_LIBS"
12244cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12245/* end confdefs.h.  */
12246#define YYTEXT_POINTER 1
12247`cat $LEX_OUTPUT_ROOT.c`
12248_ACEOF
12249if ac_fn_c_try_link "$LINENO"; then :
12250  ac_cv_prog_lex_yytext_pointer=yes
12251fi
12252rm -f core conftest.err conftest.$ac_objext \
12253    conftest$ac_exeext conftest.$ac_ext
12254LIBS=$ac_save_LIBS
12255
12256fi
12257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
12258$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
12259if test $ac_cv_prog_lex_yytext_pointer = yes; then
12260
12261$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
12262
12263fi
12264rm -f conftest.l $LEX_OUTPUT_ROOT.c
12265 ;;
12266esac
12267if test "$LEX" = :; then
12268  LEX=${am_missing_run}flex
12269fi
12270
12271ALL_LINGUAS="bg da es fi fr id it ja ro ru rw sk sv tr uk vi zh_CN zh_TW hr ca"
12272# If we haven't got the data from the intl directory,
12273# assume NLS is disabled.
12274USE_NLS=no
12275LIBINTL=
12276LIBINTL_DEP=
12277INCINTL=
12278XGETTEXT=
12279GMSGFMT=
12280POSUB=
12281
12282if test -f  ../intl/config.intl; then
12283  .  ../intl/config.intl
12284fi
12285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12286$as_echo_n "checking whether NLS is requested... " >&6; }
12287if test x"$USE_NLS" != xyes; then
12288  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12289$as_echo "no" >&6; }
12290else
12291  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12292$as_echo "yes" >&6; }
12293
12294$as_echo "#define ENABLE_NLS 1" >>confdefs.h
12295
12296
12297  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
12298$as_echo_n "checking for catalogs to be installed... " >&6; }
12299  # Look for .po and .gmo files in the source directory.
12300  CATALOGS=
12301  XLINGUAS=
12302  for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12303    # If there aren't any .gmo files the shell will give us the
12304    # literal string "../path/to/srcdir/po/*.gmo" which has to be
12305    # weeded out.
12306    case "$cat" in *\**)
12307      continue;;
12308    esac
12309    # The quadruple backslash is collapsed to a double backslash
12310    # by the backticks, then collapsed again by the double quotes,
12311    # leaving us with one backslash in the sed expression (right
12312    # before the dot that mustn't act as a wildcard).
12313    cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
12314    lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
12315    # The user is allowed to set LINGUAS to a list of languages to
12316    # install catalogs for.  If it's empty that means "all of them."
12317    if test "x$LINGUAS" = x; then
12318      CATALOGS="$CATALOGS $cat"
12319      XLINGUAS="$XLINGUAS $lang"
12320    else
12321      case "$LINGUAS" in *$lang*)
12322        CATALOGS="$CATALOGS $cat"
12323        XLINGUAS="$XLINGUAS $lang"
12324        ;;
12325      esac
12326    fi
12327  done
12328  LINGUAS="$XLINGUAS"
12329  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
12330$as_echo "$LINGUAS" >&6; }
12331
12332
12333    DATADIRNAME=share
12334
12335  INSTOBJEXT=.mo
12336
12337  GENCAT=gencat
12338
12339  CATOBJEXT=.gmo
12340
12341fi
12342
12343        MKINSTALLDIRS=
12344  if test -n "$ac_aux_dir"; then
12345    case "$ac_aux_dir" in
12346      /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
12347      *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
12348    esac
12349  fi
12350  if test -z "$MKINSTALLDIRS"; then
12351    MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
12352  fi
12353
12354
12355
12356  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12357$as_echo_n "checking whether NLS is requested... " >&6; }
12358    # Check whether --enable-nls was given.
12359if test "${enable_nls+set}" = set; then :
12360  enableval=$enable_nls; USE_NLS=$enableval
12361else
12362  USE_NLS=yes
12363fi
12364
12365  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
12366$as_echo "$USE_NLS" >&6; }
12367
12368
12369
12370
12371
12372
12373# Prepare PATH_SEPARATOR.
12374# The user is always right.
12375if test "${PATH_SEPARATOR+set}" != set; then
12376  echo "#! /bin/sh" >conf$$.sh
12377  echo  "exit 0"   >>conf$$.sh
12378  chmod +x conf$$.sh
12379  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12380    PATH_SEPARATOR=';'
12381  else
12382    PATH_SEPARATOR=:
12383  fi
12384  rm -f conf$$.sh
12385fi
12386
12387# Find out how to test for executable files. Don't use a zero-byte file,
12388# as systems may use methods other than mode bits to determine executability.
12389cat >conf$$.file <<_ASEOF
12390#! /bin/sh
12391exit 0
12392_ASEOF
12393chmod +x conf$$.file
12394if test -x conf$$.file >/dev/null 2>&1; then
12395  ac_executable_p="test -x"
12396else
12397  ac_executable_p="test -f"
12398fi
12399rm -f conf$$.file
12400
12401# Extract the first word of "msgfmt", so it can be a program name with args.
12402set dummy msgfmt; ac_word=$2
12403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12404$as_echo_n "checking for $ac_word... " >&6; }
12405if test "${ac_cv_path_MSGFMT+set}" = set; then :
12406  $as_echo_n "(cached) " >&6
12407else
12408  case "$MSGFMT" in
12409  [\\/]* | ?:[\\/]*)
12410    ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12411    ;;
12412  *)
12413    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12414    for ac_dir in $PATH; do
12415      IFS="$ac_save_IFS"
12416      test -z "$ac_dir" && ac_dir=.
12417      for ac_exec_ext in '' $ac_executable_extensions; do
12418        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12419          if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
12420     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12421            ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
12422            break 2
12423          fi
12424        fi
12425      done
12426    done
12427    IFS="$ac_save_IFS"
12428  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
12429    ;;
12430esac
12431fi
12432MSGFMT="$ac_cv_path_MSGFMT"
12433if test "$MSGFMT" != ":"; then
12434  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
12435$as_echo "$MSGFMT" >&6; }
12436else
12437  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12438$as_echo "no" >&6; }
12439fi
12440
12441  # Extract the first word of "gmsgfmt", so it can be a program name with args.
12442set dummy gmsgfmt; ac_word=$2
12443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12444$as_echo_n "checking for $ac_word... " >&6; }
12445if test "${ac_cv_path_GMSGFMT+set}" = set; then :
12446  $as_echo_n "(cached) " >&6
12447else
12448  case $GMSGFMT in
12449  [\\/]* | ?:[\\/]*)
12450  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12451  ;;
12452  *)
12453  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12454for as_dir in $PATH
12455do
12456  IFS=$as_save_IFS
12457  test -z "$as_dir" && as_dir=.
12458    for ac_exec_ext in '' $ac_executable_extensions; do
12459  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12460    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
12461    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12462    break 2
12463  fi
12464done
12465  done
12466IFS=$as_save_IFS
12467
12468  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12469  ;;
12470esac
12471fi
12472GMSGFMT=$ac_cv_path_GMSGFMT
12473if test -n "$GMSGFMT"; then
12474  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
12475$as_echo "$GMSGFMT" >&6; }
12476else
12477  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12478$as_echo "no" >&6; }
12479fi
12480
12481
12482
12483
12484# Prepare PATH_SEPARATOR.
12485# The user is always right.
12486if test "${PATH_SEPARATOR+set}" != set; then
12487  echo "#! /bin/sh" >conf$$.sh
12488  echo  "exit 0"   >>conf$$.sh
12489  chmod +x conf$$.sh
12490  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12491    PATH_SEPARATOR=';'
12492  else
12493    PATH_SEPARATOR=:
12494  fi
12495  rm -f conf$$.sh
12496fi
12497
12498# Find out how to test for executable files. Don't use a zero-byte file,
12499# as systems may use methods other than mode bits to determine executability.
12500cat >conf$$.file <<_ASEOF
12501#! /bin/sh
12502exit 0
12503_ASEOF
12504chmod +x conf$$.file
12505if test -x conf$$.file >/dev/null 2>&1; then
12506  ac_executable_p="test -x"
12507else
12508  ac_executable_p="test -f"
12509fi
12510rm -f conf$$.file
12511
12512# Extract the first word of "xgettext", so it can be a program name with args.
12513set dummy xgettext; ac_word=$2
12514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12515$as_echo_n "checking for $ac_word... " >&6; }
12516if test "${ac_cv_path_XGETTEXT+set}" = set; then :
12517  $as_echo_n "(cached) " >&6
12518else
12519  case "$XGETTEXT" in
12520  [\\/]* | ?:[\\/]*)
12521    ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12522    ;;
12523  *)
12524    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12525    for ac_dir in $PATH; do
12526      IFS="$ac_save_IFS"
12527      test -z "$ac_dir" && ac_dir=.
12528      for ac_exec_ext in '' $ac_executable_extensions; do
12529        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12530          if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12531     (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
12532            ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
12533            break 2
12534          fi
12535        fi
12536      done
12537    done
12538    IFS="$ac_save_IFS"
12539  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12540    ;;
12541esac
12542fi
12543XGETTEXT="$ac_cv_path_XGETTEXT"
12544if test "$XGETTEXT" != ":"; then
12545  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
12546$as_echo "$XGETTEXT" >&6; }
12547else
12548  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12549$as_echo "no" >&6; }
12550fi
12551
12552    rm -f messages.po
12553
12554
12555# Prepare PATH_SEPARATOR.
12556# The user is always right.
12557if test "${PATH_SEPARATOR+set}" != set; then
12558  echo "#! /bin/sh" >conf$$.sh
12559  echo  "exit 0"   >>conf$$.sh
12560  chmod +x conf$$.sh
12561  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12562    PATH_SEPARATOR=';'
12563  else
12564    PATH_SEPARATOR=:
12565  fi
12566  rm -f conf$$.sh
12567fi
12568
12569# Find out how to test for executable files. Don't use a zero-byte file,
12570# as systems may use methods other than mode bits to determine executability.
12571cat >conf$$.file <<_ASEOF
12572#! /bin/sh
12573exit 0
12574_ASEOF
12575chmod +x conf$$.file
12576if test -x conf$$.file >/dev/null 2>&1; then
12577  ac_executable_p="test -x"
12578else
12579  ac_executable_p="test -f"
12580fi
12581rm -f conf$$.file
12582
12583# Extract the first word of "msgmerge", so it can be a program name with args.
12584set dummy msgmerge; ac_word=$2
12585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12586$as_echo_n "checking for $ac_word... " >&6; }
12587if test "${ac_cv_path_MSGMERGE+set}" = set; then :
12588  $as_echo_n "(cached) " >&6
12589else
12590  case "$MSGMERGE" in
12591  [\\/]* | ?:[\\/]*)
12592    ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12593    ;;
12594  *)
12595    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12596    for ac_dir in $PATH; do
12597      IFS="$ac_save_IFS"
12598      test -z "$ac_dir" && ac_dir=.
12599      for ac_exec_ext in '' $ac_executable_extensions; do
12600        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12601          if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
12602            ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
12603            break 2
12604          fi
12605        fi
12606      done
12607    done
12608    IFS="$ac_save_IFS"
12609  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12610    ;;
12611esac
12612fi
12613MSGMERGE="$ac_cv_path_MSGMERGE"
12614if test "$MSGMERGE" != ":"; then
12615  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
12616$as_echo "$MSGMERGE" >&6; }
12617else
12618  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12619$as_echo "no" >&6; }
12620fi
12621
12622
12623      if test "$GMSGFMT" != ":"; then
12624            if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
12625       (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12626      : ;
12627    else
12628      GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
12629      { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
12630$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
12631      GMSGFMT=":"
12632    fi
12633  fi
12634
12635      if test "$XGETTEXT" != ":"; then
12636            if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12637       (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
12638      : ;
12639    else
12640      { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
12641$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
12642      XGETTEXT=":"
12643    fi
12644        rm -f messages.po
12645  fi
12646
12647  ac_config_commands="$ac_config_commands default-1"
12648
12649
12650
12651
12652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
12653$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
12654    # Check whether --enable-maintainer-mode was given.
12655if test "${enable_maintainer_mode+set}" = set; then :
12656  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
12657else
12658  USE_MAINTAINER_MODE=no
12659fi
12660
12661  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
12662$as_echo "$USE_MAINTAINER_MODE" >&6; }
12663   if test $USE_MAINTAINER_MODE = yes; then
12664  MAINTAINER_MODE_TRUE=
12665  MAINTAINER_MODE_FALSE='#'
12666else
12667  MAINTAINER_MODE_TRUE='#'
12668  MAINTAINER_MODE_FALSE=
12669fi
12670
12671  MAINT=$MAINTAINER_MODE_TRUE
12672
12673
12674 if false; then
12675  GENINSRC_NEVER_TRUE=
12676  GENINSRC_NEVER_FALSE='#'
12677else
12678  GENINSRC_NEVER_TRUE='#'
12679  GENINSRC_NEVER_FALSE=
12680fi
12681
12682
12683if test -n "$EXEEXT"; then
12684
12685$as_echo "#define HAVE_EXECUTABLE_SUFFIX 1" >>confdefs.h
12686
12687fi
12688
12689cat >>confdefs.h <<_ACEOF
12690#define EXECUTABLE_SUFFIX "${EXEEXT}"
12691_ACEOF
12692
12693
12694# host-specific stuff:
12695
12696HDEFINES=
12697
12698. ${srcdir}/../bfd/configure.host
12699
12700
12701AR=${AR-ar}
12702
12703if test -n "$ac_tool_prefix"; then
12704  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12705set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12707$as_echo_n "checking for $ac_word... " >&6; }
12708if test "${ac_cv_prog_RANLIB+set}" = set; then :
12709  $as_echo_n "(cached) " >&6
12710else
12711  if test -n "$RANLIB"; then
12712  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12713else
12714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12715for as_dir in $PATH
12716do
12717  IFS=$as_save_IFS
12718  test -z "$as_dir" && as_dir=.
12719    for ac_exec_ext in '' $ac_executable_extensions; do
12720  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12721    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12722    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12723    break 2
12724  fi
12725done
12726  done
12727IFS=$as_save_IFS
12728
12729fi
12730fi
12731RANLIB=$ac_cv_prog_RANLIB
12732if test -n "$RANLIB"; then
12733  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12734$as_echo "$RANLIB" >&6; }
12735else
12736  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12737$as_echo "no" >&6; }
12738fi
12739
12740
12741fi
12742if test -z "$ac_cv_prog_RANLIB"; then
12743  ac_ct_RANLIB=$RANLIB
12744  # Extract the first word of "ranlib", so it can be a program name with args.
12745set dummy ranlib; ac_word=$2
12746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12747$as_echo_n "checking for $ac_word... " >&6; }
12748if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
12749  $as_echo_n "(cached) " >&6
12750else
12751  if test -n "$ac_ct_RANLIB"; then
12752  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12753else
12754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12755for as_dir in $PATH
12756do
12757  IFS=$as_save_IFS
12758  test -z "$as_dir" && as_dir=.
12759    for ac_exec_ext in '' $ac_executable_extensions; do
12760  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12761    ac_cv_prog_ac_ct_RANLIB="ranlib"
12762    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12763    break 2
12764  fi
12765done
12766  done
12767IFS=$as_save_IFS
12768
12769fi
12770fi
12771ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12772if test -n "$ac_ct_RANLIB"; then
12773  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12774$as_echo "$ac_ct_RANLIB" >&6; }
12775else
12776  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12777$as_echo "no" >&6; }
12778fi
12779
12780  if test "x$ac_ct_RANLIB" = x; then
12781    RANLIB=":"
12782  else
12783    case $cross_compiling:$ac_tool_warned in
12784yes:)
12785{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12786$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12787ac_tool_warned=yes ;;
12788esac
12789    RANLIB=$ac_ct_RANLIB
12790  fi
12791else
12792  RANLIB="$ac_cv_prog_RANLIB"
12793fi
12794
12795
12796
12797# Put a plausible default for CC_FOR_BUILD in Makefile.
12798if test -z "$CC_FOR_BUILD"; then
12799  if test "x$cross_compiling" = "xno"; then
12800    CC_FOR_BUILD='$(CC)'
12801  else
12802    CC_FOR_BUILD=gcc
12803  fi
12804fi
12805
12806# Also set EXEEXT_FOR_BUILD.
12807if test "x$cross_compiling" = "xno"; then
12808  EXEEXT_FOR_BUILD='$(EXEEXT)'
12809else
12810  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build system executable suffix" >&5
12811$as_echo_n "checking for build system executable suffix... " >&6; }
12812if test "${bfd_cv_build_exeext+set}" = set; then :
12813  $as_echo_n "(cached) " >&6
12814else
12815  rm -f conftest*
12816     echo 'int main () { return 0; }' > conftest.c
12817     bfd_cv_build_exeext=
12818     ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
12819     for file in conftest.*; do
12820       case $file in
12821       *.c | *.o | *.obj | *.ilk | *.pdb) ;;
12822       *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
12823       esac
12824     done
12825     rm -f conftest*
12826     test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
12827fi
12828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_build_exeext" >&5
12829$as_echo "$bfd_cv_build_exeext" >&6; }
12830  EXEEXT_FOR_BUILD=""
12831  test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
12832fi
12833
12834
12835DEMANGLER_NAME=c++filt
12836case "${host}" in
12837  *-*-go32* | *-*-msdos*)
12838    DEMANGLER_NAME=cxxfilt
12839esac
12840
12841
12842# The cast to long int works around a bug in the HP C Compiler
12843# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12844# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12845# This bug is HP SR number 8606223364.
12846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12847$as_echo_n "checking size of long... " >&6; }
12848if test "${ac_cv_sizeof_long+set}" = set; then :
12849  $as_echo_n "(cached) " >&6
12850else
12851  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
12852
12853else
12854  if test "$ac_cv_type_long" = yes; then
12855     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12856$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12857{ as_fn_set_status 77
12858as_fn_error "cannot compute sizeof (long)
12859See \`config.log' for more details." "$LINENO" 5; }; }
12860   else
12861     ac_cv_sizeof_long=0
12862   fi
12863fi
12864
12865fi
12866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12867$as_echo "$ac_cv_sizeof_long" >&6; }
12868
12869
12870
12871cat >>confdefs.h <<_ACEOF
12872#define SIZEOF_LONG $ac_cv_sizeof_long
12873_ACEOF
12874
12875
12876ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
12877if test "x$ac_cv_type_long_long" = x""yes; then :
12878
12879cat >>confdefs.h <<_ACEOF
12880#define HAVE_LONG_LONG 1
12881_ACEOF
12882
12883# The cast to long int works around a bug in the HP C Compiler
12884# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12885# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12886# This bug is HP SR number 8606223364.
12887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12888$as_echo_n "checking size of long long... " >&6; }
12889if test "${ac_cv_sizeof_long_long+set}" = set; then :
12890  $as_echo_n "(cached) " >&6
12891else
12892  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
12893
12894else
12895  if test "$ac_cv_type_long_long" = yes; then
12896     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12897$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12898{ as_fn_set_status 77
12899as_fn_error "cannot compute sizeof (long long)
12900See \`config.log' for more details." "$LINENO" 5; }; }
12901   else
12902     ac_cv_sizeof_long_long=0
12903   fi
12904fi
12905
12906fi
12907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
12908$as_echo "$ac_cv_sizeof_long_long" >&6; }
12909
12910
12911
12912cat >>confdefs.h <<_ACEOF
12913#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12914_ACEOF
12915
12916
12917fi
12918
12919
12920for 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
12921do :
12922  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12923ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12924eval as_val=\$$as_ac_Header
12925   if test "x$as_val" = x""yes; then :
12926  cat >>confdefs.h <<_ACEOF
12927#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12928_ACEOF
12929
12930fi
12931
12932done
12933
12934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
12935$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
12936if test "${ac_cv_header_sys_wait_h+set}" = set; then :
12937  $as_echo_n "(cached) " >&6
12938else
12939  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12940/* end confdefs.h.  */
12941#include <sys/types.h>
12942#include <sys/wait.h>
12943#ifndef WEXITSTATUS
12944# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
12945#endif
12946#ifndef WIFEXITED
12947# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
12948#endif
12949
12950int
12951main ()
12952{
12953  int s;
12954  wait (&s);
12955  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
12956  ;
12957  return 0;
12958}
12959_ACEOF
12960if ac_fn_c_try_compile "$LINENO"; then :
12961  ac_cv_header_sys_wait_h=yes
12962else
12963  ac_cv_header_sys_wait_h=no
12964fi
12965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12966fi
12967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
12968$as_echo "$ac_cv_header_sys_wait_h" >&6; }
12969if test $ac_cv_header_sys_wait_h = yes; then
12970
12971$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
12972
12973fi
12974
12975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
12976$as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
12977if test "${gcc_cv_header_string+set}" = set; then :
12978  $as_echo_n "(cached) " >&6
12979else
12980  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12981/* end confdefs.h.  */
12982#include <string.h>
12983#include <strings.h>
12984int
12985main ()
12986{
12987
12988  ;
12989  return 0;
12990}
12991_ACEOF
12992if ac_fn_c_try_compile "$LINENO"; then :
12993  gcc_cv_header_string=yes
12994else
12995  gcc_cv_header_string=no
12996fi
12997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12998fi
12999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
13000$as_echo "$gcc_cv_header_string" >&6; }
13001if test $gcc_cv_header_string = yes; then
13002
13003$as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
13004
13005fi
13006
13007# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13008# for constant arguments.  Useless!
13009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
13010$as_echo_n "checking for working alloca.h... " >&6; }
13011if test "${ac_cv_working_alloca_h+set}" = set; then :
13012  $as_echo_n "(cached) " >&6
13013else
13014  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13015/* end confdefs.h.  */
13016#include <alloca.h>
13017int
13018main ()
13019{
13020char *p = (char *) alloca (2 * sizeof (int));
13021			  if (p) return 0;
13022  ;
13023  return 0;
13024}
13025_ACEOF
13026if ac_fn_c_try_link "$LINENO"; then :
13027  ac_cv_working_alloca_h=yes
13028else
13029  ac_cv_working_alloca_h=no
13030fi
13031rm -f core conftest.err conftest.$ac_objext \
13032    conftest$ac_exeext conftest.$ac_ext
13033fi
13034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
13035$as_echo "$ac_cv_working_alloca_h" >&6; }
13036if test $ac_cv_working_alloca_h = yes; then
13037
13038$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
13039
13040fi
13041
13042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
13043$as_echo_n "checking for alloca... " >&6; }
13044if test "${ac_cv_func_alloca_works+set}" = set; then :
13045  $as_echo_n "(cached) " >&6
13046else
13047  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13048/* end confdefs.h.  */
13049#ifdef __GNUC__
13050# define alloca __builtin_alloca
13051#else
13052# ifdef _MSC_VER
13053#  include <malloc.h>
13054#  define alloca _alloca
13055# else
13056#  ifdef HAVE_ALLOCA_H
13057#   include <alloca.h>
13058#  else
13059#   ifdef _AIX
13060 #pragma alloca
13061#   else
13062#    ifndef alloca /* predefined by HP cc +Olibcalls */
13063char *alloca ();
13064#    endif
13065#   endif
13066#  endif
13067# endif
13068#endif
13069
13070int
13071main ()
13072{
13073char *p = (char *) alloca (1);
13074				    if (p) return 0;
13075  ;
13076  return 0;
13077}
13078_ACEOF
13079if ac_fn_c_try_link "$LINENO"; then :
13080  ac_cv_func_alloca_works=yes
13081else
13082  ac_cv_func_alloca_works=no
13083fi
13084rm -f core conftest.err conftest.$ac_objext \
13085    conftest$ac_exeext conftest.$ac_ext
13086fi
13087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
13088$as_echo "$ac_cv_func_alloca_works" >&6; }
13089
13090if test $ac_cv_func_alloca_works = yes; then
13091
13092$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
13093
13094else
13095  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13096# that cause trouble.  Some versions do not even contain alloca or
13097# contain a buggy version.  If you still want to use their alloca,
13098# use ar to extract alloca.o from them instead of compiling alloca.c.
13099
13100ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
13101
13102$as_echo "#define C_ALLOCA 1" >>confdefs.h
13103
13104
13105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
13106$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
13107if test "${ac_cv_os_cray+set}" = set; then :
13108  $as_echo_n "(cached) " >&6
13109else
13110  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13111/* end confdefs.h.  */
13112#if defined CRAY && ! defined CRAY2
13113webecray
13114#else
13115wenotbecray
13116#endif
13117
13118_ACEOF
13119if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13120  $EGREP "webecray" >/dev/null 2>&1; then :
13121  ac_cv_os_cray=yes
13122else
13123  ac_cv_os_cray=no
13124fi
13125rm -f conftest*
13126
13127fi
13128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
13129$as_echo "$ac_cv_os_cray" >&6; }
13130if test $ac_cv_os_cray = yes; then
13131  for ac_func in _getb67 GETB67 getb67; do
13132    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13133ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13134eval as_val=\$$as_ac_var
13135   if test "x$as_val" = x""yes; then :
13136
13137cat >>confdefs.h <<_ACEOF
13138#define CRAY_STACKSEG_END $ac_func
13139_ACEOF
13140
13141    break
13142fi
13143
13144  done
13145fi
13146
13147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
13148$as_echo_n "checking stack direction for C alloca... " >&6; }
13149if test "${ac_cv_c_stack_direction+set}" = set; then :
13150  $as_echo_n "(cached) " >&6
13151else
13152  if test "$cross_compiling" = yes; then :
13153  ac_cv_c_stack_direction=0
13154else
13155  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13156/* end confdefs.h.  */
13157$ac_includes_default
13158int
13159find_stack_direction ()
13160{
13161  static char *addr = 0;
13162  auto char dummy;
13163  if (addr == 0)
13164    {
13165      addr = &dummy;
13166      return find_stack_direction ();
13167    }
13168  else
13169    return (&dummy > addr) ? 1 : -1;
13170}
13171
13172int
13173main ()
13174{
13175  return find_stack_direction () < 0;
13176}
13177_ACEOF
13178if ac_fn_c_try_run "$LINENO"; then :
13179  ac_cv_c_stack_direction=1
13180else
13181  ac_cv_c_stack_direction=-1
13182fi
13183rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13184  conftest.$ac_objext conftest.beam conftest.$ac_ext
13185fi
13186
13187fi
13188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
13189$as_echo "$ac_cv_c_stack_direction" >&6; }
13190cat >>confdefs.h <<_ACEOF
13191#define STACK_DIRECTION $ac_cv_c_stack_direction
13192_ACEOF
13193
13194
13195fi
13196
13197for ac_func in sbrk utimes setmode getc_unlocked strcoll setlocale
13198do :
13199  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13200ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13201eval as_val=\$$as_ac_var
13202   if test "x$as_val" = x""yes; then :
13203  cat >>confdefs.h <<_ACEOF
13204#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13205_ACEOF
13206
13207fi
13208done
13209
13210ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
13211if test "x$ac_cv_func_mkstemp" = x""yes; then :
13212
13213$as_echo "#define HAVE_MKSTEMP 1" >>confdefs.h
13214
13215fi
13216
13217ac_fn_c_check_func "$LINENO" "mkdtemp" "ac_cv_func_mkdtemp"
13218if test "x$ac_cv_func_mkdtemp" = x""yes; then :
13219
13220$as_echo "#define HAVE_MKDTEMP 1" >>confdefs.h
13221
13222fi
13223
13224  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
13225$as_echo_n "checking for mbstate_t... " >&6; }
13226  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13227/* end confdefs.h.  */
13228#include <wchar.h>
13229int
13230main ()
13231{
13232mbstate_t teststate;
13233  ;
13234  return 0;
13235}
13236_ACEOF
13237if ac_fn_c_try_compile "$LINENO"; then :
13238  have_mbstate_t=yes
13239else
13240  have_mbstate_t=no
13241fi
13242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13243  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mbstate_t" >&5
13244$as_echo "$have_mbstate_t" >&6; }
13245  if test x"$have_mbstate_t" = xyes; then
13246
13247$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
13248
13249  fi
13250
13251# Some systems have frexp only in -lm, not in -lc.
13252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing frexp" >&5
13253$as_echo_n "checking for library containing frexp... " >&6; }
13254if test "${ac_cv_search_frexp+set}" = set; then :
13255  $as_echo_n "(cached) " >&6
13256else
13257  ac_func_search_save_LIBS=$LIBS
13258cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13259/* end confdefs.h.  */
13260
13261/* Override any GCC internal prototype to avoid an error.
13262   Use char because int might match the return type of a GCC
13263   builtin and then its argument prototype would still apply.  */
13264#ifdef __cplusplus
13265extern "C"
13266#endif
13267char frexp ();
13268int
13269main ()
13270{
13271return frexp ();
13272  ;
13273  return 0;
13274}
13275_ACEOF
13276for ac_lib in '' m; do
13277  if test -z "$ac_lib"; then
13278    ac_res="none required"
13279  else
13280    ac_res=-l$ac_lib
13281    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13282  fi
13283  if ac_fn_c_try_link "$LINENO"; then :
13284  ac_cv_search_frexp=$ac_res
13285fi
13286rm -f core conftest.err conftest.$ac_objext \
13287    conftest$ac_exeext
13288  if test "${ac_cv_search_frexp+set}" = set; then :
13289  break
13290fi
13291done
13292if test "${ac_cv_search_frexp+set}" = set; then :
13293
13294else
13295  ac_cv_search_frexp=no
13296fi
13297rm conftest.$ac_ext
13298LIBS=$ac_func_search_save_LIBS
13299fi
13300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_frexp" >&5
13301$as_echo "$ac_cv_search_frexp" >&6; }
13302ac_res=$ac_cv_search_frexp
13303if test "$ac_res" != no; then :
13304  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13305
13306fi
13307
13308
13309
13310  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
13311$as_echo_n "checking for LC_MESSAGES... " >&6; }
13312if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
13313  $as_echo_n "(cached) " >&6
13314else
13315  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13316/* end confdefs.h.  */
13317#include <locale.h>
13318int
13319main ()
13320{
13321return LC_MESSAGES
13322  ;
13323  return 0;
13324}
13325_ACEOF
13326if ac_fn_c_try_link "$LINENO"; then :
13327  am_cv_val_LC_MESSAGES=yes
13328else
13329  am_cv_val_LC_MESSAGES=no
13330fi
13331rm -f core conftest.err conftest.$ac_objext \
13332    conftest$ac_exeext conftest.$ac_ext
13333fi
13334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
13335$as_echo "$am_cv_val_LC_MESSAGES" >&6; }
13336  if test $am_cv_val_LC_MESSAGES = yes; then
13337
13338$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
13339
13340  fi
13341
13342
13343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for time_t in time.h" >&5
13344$as_echo_n "checking for time_t in time.h... " >&6; }
13345if test "${bu_cv_decl_time_t_time_h+set}" = set; then :
13346  $as_echo_n "(cached) " >&6
13347else
13348  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13349/* end confdefs.h.  */
13350#include <time.h>
13351int
13352main ()
13353{
13354time_t i;
13355  ;
13356  return 0;
13357}
13358_ACEOF
13359if ac_fn_c_try_compile "$LINENO"; then :
13360  bu_cv_decl_time_t_time_h=yes
13361else
13362  bu_cv_decl_time_t_time_h=no
13363fi
13364rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13365fi
13366
13367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bu_cv_decl_time_t_time_h" >&5
13368$as_echo "$bu_cv_decl_time_t_time_h" >&6; }
13369if test $bu_cv_decl_time_t_time_h = yes; then
13370
13371$as_echo "#define HAVE_TIME_T_IN_TIME_H 1" >>confdefs.h
13372
13373fi
13374
13375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for time_t in sys/types.h" >&5
13376$as_echo_n "checking for time_t in sys/types.h... " >&6; }
13377if test "${bu_cv_decl_time_t_types_h+set}" = set; then :
13378  $as_echo_n "(cached) " >&6
13379else
13380  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13381/* end confdefs.h.  */
13382#include <sys/types.h>
13383int
13384main ()
13385{
13386time_t i;
13387  ;
13388  return 0;
13389}
13390_ACEOF
13391if ac_fn_c_try_compile "$LINENO"; then :
13392  bu_cv_decl_time_t_types_h=yes
13393else
13394  bu_cv_decl_time_t_types_h=no
13395fi
13396rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13397fi
13398
13399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bu_cv_decl_time_t_types_h" >&5
13400$as_echo "$bu_cv_decl_time_t_types_h" >&6; }
13401if test $bu_cv_decl_time_t_types_h = yes; then
13402
13403$as_echo "#define HAVE_TIME_T_IN_TYPES_H 1" >>confdefs.h
13404
13405fi
13406
13407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
13408$as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
13409if test "${bu_cv_decl_getopt_unistd_h+set}" = set; then :
13410  $as_echo_n "(cached) " >&6
13411else
13412  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13413/* end confdefs.h.  */
13414#include <unistd.h>
13415int
13416main ()
13417{
13418extern int getopt (int, char *const*, const char *);
13419  ;
13420  return 0;
13421}
13422_ACEOF
13423if ac_fn_c_try_compile "$LINENO"; then :
13424  bu_cv_decl_getopt_unistd_h=yes
13425else
13426  bu_cv_decl_getopt_unistd_h=no
13427fi
13428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13429fi
13430
13431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bu_cv_decl_getopt_unistd_h" >&5
13432$as_echo "$bu_cv_decl_getopt_unistd_h" >&6; }
13433if test $bu_cv_decl_getopt_unistd_h = yes; then
13434
13435$as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
13436
13437fi
13438
13439# Under Next 3.2 <utime.h> apparently does not define struct utimbuf
13440# by default.
13441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for utime.h" >&5
13442$as_echo_n "checking for utime.h... " >&6; }
13443if test "${bu_cv_header_utime_h+set}" = set; then :
13444  $as_echo_n "(cached) " >&6
13445else
13446  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13447/* end confdefs.h.  */
13448#include <sys/types.h>
13449#ifdef HAVE_TIME_H
13450#include <time.h>
13451#endif
13452#include <utime.h>
13453int
13454main ()
13455{
13456struct utimbuf s;
13457  ;
13458  return 0;
13459}
13460_ACEOF
13461if ac_fn_c_try_compile "$LINENO"; then :
13462  bu_cv_header_utime_h=yes
13463else
13464  bu_cv_header_utime_h=no
13465fi
13466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13467fi
13468
13469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bu_cv_header_utime_h" >&5
13470$as_echo "$bu_cv_header_utime_h" >&6; }
13471if test $bu_cv_header_utime_h = yes; then
13472
13473$as_echo "#define HAVE_GOOD_UTIME_H 1" >>confdefs.h
13474
13475fi
13476
13477ac_fn_c_check_decl "$LINENO" "environ" "ac_cv_have_decl_environ" "$ac_includes_default"
13478if test "x$ac_cv_have_decl_environ" = x""yes; then :
13479  ac_have_decl=1
13480else
13481  ac_have_decl=0
13482fi
13483
13484cat >>confdefs.h <<_ACEOF
13485#define HAVE_DECL_ENVIRON $ac_have_decl
13486_ACEOF
13487ac_fn_c_check_decl "$LINENO" "fprintf" "ac_cv_have_decl_fprintf" "$ac_includes_default"
13488if test "x$ac_cv_have_decl_fprintf" = x""yes; then :
13489  ac_have_decl=1
13490else
13491  ac_have_decl=0
13492fi
13493
13494cat >>confdefs.h <<_ACEOF
13495#define HAVE_DECL_FPRINTF $ac_have_decl
13496_ACEOF
13497ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
13498if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then :
13499  ac_have_decl=1
13500else
13501  ac_have_decl=0
13502fi
13503
13504cat >>confdefs.h <<_ACEOF
13505#define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
13506_ACEOF
13507ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
13508if test "x$ac_cv_have_decl_getenv" = x""yes; then :
13509  ac_have_decl=1
13510else
13511  ac_have_decl=0
13512fi
13513
13514cat >>confdefs.h <<_ACEOF
13515#define HAVE_DECL_GETENV $ac_have_decl
13516_ACEOF
13517ac_fn_c_check_decl "$LINENO" "sbrk" "ac_cv_have_decl_sbrk" "$ac_includes_default"
13518if test "x$ac_cv_have_decl_sbrk" = x""yes; then :
13519  ac_have_decl=1
13520else
13521  ac_have_decl=0
13522fi
13523
13524cat >>confdefs.h <<_ACEOF
13525#define HAVE_DECL_SBRK $ac_have_decl
13526_ACEOF
13527ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
13528if test "x$ac_cv_have_decl_snprintf" = x""yes; then :
13529  ac_have_decl=1
13530else
13531  ac_have_decl=0
13532fi
13533
13534cat >>confdefs.h <<_ACEOF
13535#define HAVE_DECL_SNPRINTF $ac_have_decl
13536_ACEOF
13537ac_fn_c_check_decl "$LINENO" "stpcpy" "ac_cv_have_decl_stpcpy" "$ac_includes_default"
13538if test "x$ac_cv_have_decl_stpcpy" = x""yes; then :
13539  ac_have_decl=1
13540else
13541  ac_have_decl=0
13542fi
13543
13544cat >>confdefs.h <<_ACEOF
13545#define HAVE_DECL_STPCPY $ac_have_decl
13546_ACEOF
13547ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
13548if test "x$ac_cv_have_decl_strnlen" = x""yes; then :
13549  ac_have_decl=1
13550else
13551  ac_have_decl=0
13552fi
13553
13554cat >>confdefs.h <<_ACEOF
13555#define HAVE_DECL_STRNLEN $ac_have_decl
13556_ACEOF
13557ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
13558if test "x$ac_cv_have_decl_strstr" = x""yes; then :
13559  ac_have_decl=1
13560else
13561  ac_have_decl=0
13562fi
13563
13564cat >>confdefs.h <<_ACEOF
13565#define HAVE_DECL_STRSTR $ac_have_decl
13566_ACEOF
13567ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
13568if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
13569  ac_have_decl=1
13570else
13571  ac_have_decl=0
13572fi
13573
13574cat >>confdefs.h <<_ACEOF
13575#define HAVE_DECL_VSNPRINTF $ac_have_decl
13576_ACEOF
13577
13578
13579# Link in zlib if we can.  This allows us to read compressed debug
13580# sections.  This is used only by readelf.c (objdump uses bfd for
13581# reading compressed sections).
13582
13583  # Use the system's zlib library.
13584  zlibdir="-L\$(top_builddir)/../zlib"
13585  zlibinc="-I\$(top_srcdir)/../zlib"
13586
13587# Check whether --with-system-zlib was given.
13588if test "${with_system_zlib+set}" = set; then :
13589  withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
13590    zlibdir=
13591    zlibinc=
13592  fi
13593
13594fi
13595
13596
13597
13598
13599
13600
13601case "${host}" in
13602*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
13603
13604$as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
13605 ;;
13606esac
13607
13608# target-specific stuff:
13609
13610# Canonicalize the secondary target names.
13611if test -n "$enable_targets"; then
13612    for targ in `echo $enable_targets | sed 's/,/ /g'`
13613    do
13614	result=`$ac_config_sub $targ 2>/dev/null`
13615	if test -n "$result"; then
13616	    canon_targets="$canon_targets $result"
13617	else
13618	    # Allow targets that config.sub doesn't recognize, like "all".
13619	    canon_targets="$canon_targets $targ"
13620	fi
13621    done
13622fi
13623
13624ac_fn_c_check_header_mongrel "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
13625if test "x$ac_cv_header_iconv_h" = x""yes; then :
13626
13627fi
13628
13629
13630
13631      if test "X$prefix" = "XNONE"; then
13632    acl_final_prefix="$ac_default_prefix"
13633  else
13634    acl_final_prefix="$prefix"
13635  fi
13636  if test "X$exec_prefix" = "XNONE"; then
13637    acl_final_exec_prefix='${prefix}'
13638  else
13639    acl_final_exec_prefix="$exec_prefix"
13640  fi
13641  acl_save_prefix="$prefix"
13642  prefix="$acl_final_prefix"
13643  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
13644  prefix="$acl_save_prefix"
13645
13646
13647# Check whether --with-gnu-ld was given.
13648if test "${with_gnu_ld+set}" = set; then :
13649  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13650else
13651  with_gnu_ld=no
13652fi
13653
13654# Prepare PATH_SEPARATOR.
13655# The user is always right.
13656if test "${PATH_SEPARATOR+set}" != set; then
13657  echo "#! /bin/sh" >conf$$.sh
13658  echo  "exit 0"   >>conf$$.sh
13659  chmod +x conf$$.sh
13660  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13661    PATH_SEPARATOR=';'
13662  else
13663    PATH_SEPARATOR=:
13664  fi
13665  rm -f conf$$.sh
13666fi
13667ac_prog=ld
13668if test "$GCC" = yes; then
13669  # Check if gcc -print-prog-name=ld gives a path.
13670  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
13671$as_echo_n "checking for ld used by GCC... " >&6; }
13672  case $host in
13673  *-*-mingw*)
13674    # gcc leaves a trailing carriage return which upsets mingw
13675    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13676  *)
13677    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13678  esac
13679  case $ac_prog in
13680    # Accept absolute paths.
13681    [\\/]* | [A-Za-z]:[\\/]*)
13682      re_direlt='/[^/][^/]*/\.\./'
13683      # Canonicalize the path of ld
13684      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
13685      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
13686	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
13687      done
13688      test -z "$LD" && LD="$ac_prog"
13689      ;;
13690  "")
13691    # If it fails, then pretend we aren't using GCC.
13692    ac_prog=ld
13693    ;;
13694  *)
13695    # If it is relative, then search for the first ld in PATH.
13696    with_gnu_ld=unknown
13697    ;;
13698  esac
13699elif test "$with_gnu_ld" = yes; then
13700  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13701$as_echo_n "checking for GNU ld... " >&6; }
13702else
13703  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13704$as_echo_n "checking for non-GNU ld... " >&6; }
13705fi
13706if test "${acl_cv_path_LD+set}" = set; then :
13707  $as_echo_n "(cached) " >&6
13708else
13709  if test -z "$LD"; then
13710  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
13711  for ac_dir in $PATH; do
13712    test -z "$ac_dir" && ac_dir=.
13713    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13714      acl_cv_path_LD="$ac_dir/$ac_prog"
13715      # Check to see if the program is GNU ld.  I'd rather use --version,
13716      # but apparently some GNU ld's only accept -v.
13717      # Break only if it was the GNU/non-GNU ld that we prefer.
13718      if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
13719	test "$with_gnu_ld" != no && break
13720      else
13721	test "$with_gnu_ld" != yes && break
13722      fi
13723    fi
13724  done
13725  IFS="$ac_save_ifs"
13726else
13727  acl_cv_path_LD="$LD" # Let the user override the test with a path.
13728fi
13729fi
13730
13731LD="$acl_cv_path_LD"
13732if test -n "$LD"; then
13733  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13734$as_echo "$LD" >&6; }
13735else
13736  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13737$as_echo "no" >&6; }
13738fi
13739test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
13740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13741$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13742if test "${acl_cv_prog_gnu_ld+set}" = set; then :
13743  $as_echo_n "(cached) " >&6
13744else
13745  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
13746if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
13747  acl_cv_prog_gnu_ld=yes
13748else
13749  acl_cv_prog_gnu_ld=no
13750fi
13751fi
13752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
13753$as_echo "$acl_cv_prog_gnu_ld" >&6; }
13754with_gnu_ld=$acl_cv_prog_gnu_ld
13755
13756
13757
13758                                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
13759$as_echo_n "checking for shared library run path origin... " >&6; }
13760if test "${acl_cv_rpath+set}" = set; then :
13761  $as_echo_n "(cached) " >&6
13762else
13763
13764    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
13765    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
13766    . ./conftest.sh
13767    rm -f ./conftest.sh
13768    acl_cv_rpath=done
13769
13770fi
13771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
13772$as_echo "$acl_cv_rpath" >&6; }
13773  wl="$acl_cv_wl"
13774  libext="$acl_cv_libext"
13775  shlibext="$acl_cv_shlibext"
13776  hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
13777  hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
13778  hardcode_direct="$acl_cv_hardcode_direct"
13779  hardcode_minus_L="$acl_cv_hardcode_minus_L"
13780    # Check whether --enable-rpath was given.
13781if test "${enable_rpath+set}" = set; then :
13782  enableval=$enable_rpath; :
13783else
13784  enable_rpath=yes
13785fi
13786
13787
13788
13789
13790
13791
13792
13793
13794    use_additional=yes
13795
13796  acl_save_prefix="$prefix"
13797  prefix="$acl_final_prefix"
13798  acl_save_exec_prefix="$exec_prefix"
13799  exec_prefix="$acl_final_exec_prefix"
13800
13801    eval additional_includedir=\"$includedir\"
13802    eval additional_libdir=\"$libdir\"
13803
13804  exec_prefix="$acl_save_exec_prefix"
13805  prefix="$acl_save_prefix"
13806
13807
13808# Check whether --with-libiconv-prefix was given.
13809if test "${with_libiconv_prefix+set}" = set; then :
13810  withval=$with_libiconv_prefix;
13811    if test "X$withval" = "Xno"; then
13812      use_additional=no
13813    else
13814      if test "X$withval" = "X"; then
13815
13816  acl_save_prefix="$prefix"
13817  prefix="$acl_final_prefix"
13818  acl_save_exec_prefix="$exec_prefix"
13819  exec_prefix="$acl_final_exec_prefix"
13820
13821          eval additional_includedir=\"$includedir\"
13822          eval additional_libdir=\"$libdir\"
13823
13824  exec_prefix="$acl_save_exec_prefix"
13825  prefix="$acl_save_prefix"
13826
13827      else
13828        additional_includedir="$withval/include"
13829        additional_libdir="$withval/lib"
13830      fi
13831    fi
13832
13833fi
13834
13835      LIBICONV=
13836  LTLIBICONV=
13837  INCICONV=
13838  rpathdirs=
13839  ltrpathdirs=
13840  names_already_handled=
13841  names_next_round='iconv '
13842  while test -n "$names_next_round"; do
13843    names_this_round="$names_next_round"
13844    names_next_round=
13845    for name in $names_this_round; do
13846      already_handled=
13847      for n in $names_already_handled; do
13848        if test "$n" = "$name"; then
13849          already_handled=yes
13850          break
13851        fi
13852      done
13853      if test -z "$already_handled"; then
13854        names_already_handled="$names_already_handled $name"
13855                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13856        eval value=\"\$HAVE_LIB$uppername\"
13857        if test -n "$value"; then
13858          if test "$value" = yes; then
13859            eval value=\"\$LIB$uppername\"
13860            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
13861            eval value=\"\$LTLIB$uppername\"
13862            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
13863          else
13864                                    :
13865          fi
13866        else
13867                              found_dir=
13868          found_la=
13869          found_so=
13870          found_a=
13871          if test $use_additional = yes; then
13872            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
13873              found_dir="$additional_libdir"
13874              found_so="$additional_libdir/lib$name.$shlibext"
13875              if test -f "$additional_libdir/lib$name.la"; then
13876                found_la="$additional_libdir/lib$name.la"
13877              fi
13878            else
13879              if test -f "$additional_libdir/lib$name.$libext"; then
13880                found_dir="$additional_libdir"
13881                found_a="$additional_libdir/lib$name.$libext"
13882                if test -f "$additional_libdir/lib$name.la"; then
13883                  found_la="$additional_libdir/lib$name.la"
13884                fi
13885              fi
13886            fi
13887          fi
13888          if test "X$found_dir" = "X"; then
13889            for x in $LDFLAGS $LTLIBICONV; do
13890
13891  acl_save_prefix="$prefix"
13892  prefix="$acl_final_prefix"
13893  acl_save_exec_prefix="$exec_prefix"
13894  exec_prefix="$acl_final_exec_prefix"
13895  eval x=\"$x\"
13896  exec_prefix="$acl_save_exec_prefix"
13897  prefix="$acl_save_prefix"
13898
13899              case "$x" in
13900                -L*)
13901                  dir=`echo "X$x" | sed -e 's/^X-L//'`
13902                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
13903                    found_dir="$dir"
13904                    found_so="$dir/lib$name.$shlibext"
13905                    if test -f "$dir/lib$name.la"; then
13906                      found_la="$dir/lib$name.la"
13907                    fi
13908                  else
13909                    if test -f "$dir/lib$name.$libext"; then
13910                      found_dir="$dir"
13911                      found_a="$dir/lib$name.$libext"
13912                      if test -f "$dir/lib$name.la"; then
13913                        found_la="$dir/lib$name.la"
13914                      fi
13915                    fi
13916                  fi
13917                  ;;
13918              esac
13919              if test "X$found_dir" != "X"; then
13920                break
13921              fi
13922            done
13923          fi
13924          if test "X$found_dir" != "X"; then
13925                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
13926            if test "X$found_so" != "X"; then
13927                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
13928                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13929              else
13930                                                                                haveit=
13931                for x in $ltrpathdirs; do
13932                  if test "X$x" = "X$found_dir"; then
13933                    haveit=yes
13934                    break
13935                  fi
13936                done
13937                if test -z "$haveit"; then
13938                  ltrpathdirs="$ltrpathdirs $found_dir"
13939                fi
13940                                if test "$hardcode_direct" = yes; then
13941                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13942                else
13943                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
13944                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13945                                                            haveit=
13946                    for x in $rpathdirs; do
13947                      if test "X$x" = "X$found_dir"; then
13948                        haveit=yes
13949                        break
13950                      fi
13951                    done
13952                    if test -z "$haveit"; then
13953                      rpathdirs="$rpathdirs $found_dir"
13954                    fi
13955                  else
13956                                                                                haveit=
13957                    for x in $LDFLAGS $LIBICONV; do
13958
13959  acl_save_prefix="$prefix"
13960  prefix="$acl_final_prefix"
13961  acl_save_exec_prefix="$exec_prefix"
13962  exec_prefix="$acl_final_exec_prefix"
13963  eval x=\"$x\"
13964  exec_prefix="$acl_save_exec_prefix"
13965  prefix="$acl_save_prefix"
13966
13967                      if test "X$x" = "X-L$found_dir"; then
13968                        haveit=yes
13969                        break
13970                      fi
13971                    done
13972                    if test -z "$haveit"; then
13973                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
13974                    fi
13975                    if test "$hardcode_minus_L" != no; then
13976                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13977                    else
13978                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
13979                    fi
13980                  fi
13981                fi
13982              fi
13983            else
13984              if test "X$found_a" != "X"; then
13985                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
13986              else
13987                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
13988              fi
13989            fi
13990                        additional_includedir=
13991            case "$found_dir" in
13992              */lib | */lib/)
13993                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
13994                additional_includedir="$basedir/include"
13995                ;;
13996            esac
13997            if test "X$additional_includedir" != "X"; then
13998                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
13999                haveit=
14000                if test "X$additional_includedir" = "X/usr/local/include"; then
14001                  if test -n "$GCC"; then
14002                    case $host_os in
14003                      linux*) haveit=yes;;
14004                    esac
14005                  fi
14006                fi
14007                if test -z "$haveit"; then
14008                  for x in $CPPFLAGS $INCICONV; do
14009
14010  acl_save_prefix="$prefix"
14011  prefix="$acl_final_prefix"
14012  acl_save_exec_prefix="$exec_prefix"
14013  exec_prefix="$acl_final_exec_prefix"
14014  eval x=\"$x\"
14015  exec_prefix="$acl_save_exec_prefix"
14016  prefix="$acl_save_prefix"
14017
14018                    if test "X$x" = "X-I$additional_includedir"; then
14019                      haveit=yes
14020                      break
14021                    fi
14022                  done
14023                  if test -z "$haveit"; then
14024                    if test -d "$additional_includedir"; then
14025                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
14026                    fi
14027                  fi
14028                fi
14029              fi
14030            fi
14031                        if test -n "$found_la"; then
14032                                                        save_libdir="$libdir"
14033              case "$found_la" in
14034                */* | *\\*) . "$found_la" ;;
14035                *) . "./$found_la" ;;
14036              esac
14037              libdir="$save_libdir"
14038                            for dep in $dependency_libs; do
14039                case "$dep" in
14040                  -L*)
14041                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14042                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
14043                      haveit=
14044                      if test "X$additional_libdir" = "X/usr/local/lib"; then
14045                        if test -n "$GCC"; then
14046                          case $host_os in
14047                            linux*) haveit=yes;;
14048                          esac
14049                        fi
14050                      fi
14051                      if test -z "$haveit"; then
14052                        haveit=
14053                        for x in $LDFLAGS $LIBICONV; do
14054
14055  acl_save_prefix="$prefix"
14056  prefix="$acl_final_prefix"
14057  acl_save_exec_prefix="$exec_prefix"
14058  exec_prefix="$acl_final_exec_prefix"
14059  eval x=\"$x\"
14060  exec_prefix="$acl_save_exec_prefix"
14061  prefix="$acl_save_prefix"
14062
14063                          if test "X$x" = "X-L$additional_libdir"; then
14064                            haveit=yes
14065                            break
14066                          fi
14067                        done
14068                        if test -z "$haveit"; then
14069                          if test -d "$additional_libdir"; then
14070                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
14071                          fi
14072                        fi
14073                        haveit=
14074                        for x in $LDFLAGS $LTLIBICONV; do
14075
14076  acl_save_prefix="$prefix"
14077  prefix="$acl_final_prefix"
14078  acl_save_exec_prefix="$exec_prefix"
14079  exec_prefix="$acl_final_exec_prefix"
14080  eval x=\"$x\"
14081  exec_prefix="$acl_save_exec_prefix"
14082  prefix="$acl_save_prefix"
14083
14084                          if test "X$x" = "X-L$additional_libdir"; then
14085                            haveit=yes
14086                            break
14087                          fi
14088                        done
14089                        if test -z "$haveit"; then
14090                          if test -d "$additional_libdir"; then
14091                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
14092                          fi
14093                        fi
14094                      fi
14095                    fi
14096                    ;;
14097                  -R*)
14098                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
14099                    if test "$enable_rpath" != no; then
14100                                                                  haveit=
14101                      for x in $rpathdirs; do
14102                        if test "X$x" = "X$dir"; then
14103                          haveit=yes
14104                          break
14105                        fi
14106                      done
14107                      if test -z "$haveit"; then
14108                        rpathdirs="$rpathdirs $dir"
14109                      fi
14110                                                                  haveit=
14111                      for x in $ltrpathdirs; do
14112                        if test "X$x" = "X$dir"; then
14113                          haveit=yes
14114                          break
14115                        fi
14116                      done
14117                      if test -z "$haveit"; then
14118                        ltrpathdirs="$ltrpathdirs $dir"
14119                      fi
14120                    fi
14121                    ;;
14122                  -l*)
14123                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14124                    ;;
14125                  *.la)
14126                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14127                    ;;
14128                  *)
14129                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
14130                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
14131                    ;;
14132                esac
14133              done
14134            fi
14135          else
14136                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14137            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
14138          fi
14139        fi
14140      fi
14141    done
14142  done
14143  if test "X$rpathdirs" != "X"; then
14144    if test -n "$hardcode_libdir_separator"; then
14145                        alldirs=
14146      for found_dir in $rpathdirs; do
14147        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14148      done
14149            acl_save_libdir="$libdir"
14150      libdir="$alldirs"
14151      eval flag=\"$hardcode_libdir_flag_spec\"
14152      libdir="$acl_save_libdir"
14153      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14154    else
14155            for found_dir in $rpathdirs; do
14156        acl_save_libdir="$libdir"
14157        libdir="$found_dir"
14158        eval flag=\"$hardcode_libdir_flag_spec\"
14159        libdir="$acl_save_libdir"
14160        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14161      done
14162    fi
14163  fi
14164  if test "X$ltrpathdirs" != "X"; then
14165            for found_dir in $ltrpathdirs; do
14166      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
14167    done
14168  fi
14169
14170
14171
14172
14173
14174
14175
14176  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
14177$as_echo_n "checking for iconv... " >&6; }
14178if test "${am_cv_func_iconv+set}" = set; then :
14179  $as_echo_n "(cached) " >&6
14180else
14181
14182    am_cv_func_iconv="no, consider installing GNU libiconv"
14183    am_cv_lib_iconv=no
14184                    am_save_CPPFLAGS="$CPPFLAGS"
14185    CPPFLAGS="$CPPFLAGS $INCICONV"
14186    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14187/* end confdefs.h.  */
14188#include <stdlib.h>
14189#include <iconv.h>
14190int
14191main ()
14192{
14193iconv_t cd = iconv_open("","");
14194       iconv(cd,NULL,NULL,NULL,NULL);
14195       iconv_close(cd);
14196  ;
14197  return 0;
14198}
14199_ACEOF
14200if ac_fn_c_try_link "$LINENO"; then :
14201  am_cv_func_iconv=yes
14202fi
14203rm -f core conftest.err conftest.$ac_objext \
14204    conftest$ac_exeext conftest.$ac_ext
14205    CPPFLAGS="$am_save_CPPFLAGS"
14206
14207    if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
14208      for _libs in .libs _libs; do
14209        am_save_CPPFLAGS="$CPPFLAGS"
14210        am_save_LIBS="$LIBS"
14211        CPPFLAGS="$CPPFLAGS -I../libiconv/include"
14212        LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a"
14213        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14214/* end confdefs.h.  */
14215#include <stdlib.h>
14216#include <iconv.h>
14217int
14218main ()
14219{
14220iconv_t cd = iconv_open("","");
14221           iconv(cd,NULL,NULL,NULL,NULL);
14222           iconv_close(cd);
14223  ;
14224  return 0;
14225}
14226_ACEOF
14227if ac_fn_c_try_link "$LINENO"; then :
14228  INCICONV="-I../libiconv/include"
14229          LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a
14230          LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la
14231          am_cv_lib_iconv=yes
14232          am_cv_func_iconv=yes
14233fi
14234rm -f core conftest.err conftest.$ac_objext \
14235    conftest$ac_exeext conftest.$ac_ext
14236        CPPFLAGS="$am_save_CPPFLAGS"
14237        LIBS="$am_save_LIBS"
14238        if test "$am_cv_func_iconv" = "yes"; then
14239          break
14240        fi
14241      done
14242    fi
14243
14244    if test "$am_cv_func_iconv" != yes; then
14245      am_save_CPPFLAGS="$CPPFLAGS"
14246      am_save_LIBS="$LIBS"
14247      CPPFLAGS="$LIBS $INCICONV"
14248      LIBS="$LIBS $LIBICONV"
14249      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14250/* end confdefs.h.  */
14251#include <stdlib.h>
14252#include <iconv.h>
14253int
14254main ()
14255{
14256iconv_t cd = iconv_open("","");
14257         iconv(cd,NULL,NULL,NULL,NULL);
14258         iconv_close(cd);
14259  ;
14260  return 0;
14261}
14262_ACEOF
14263if ac_fn_c_try_link "$LINENO"; then :
14264  am_cv_lib_iconv=yes
14265        am_cv_func_iconv=yes
14266fi
14267rm -f core conftest.err conftest.$ac_objext \
14268    conftest$ac_exeext conftest.$ac_ext
14269      CPPFLAGS="$am_save_CPPFLAGS"
14270      LIBS="$am_save_LIBS"
14271    fi
14272
14273fi
14274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
14275$as_echo "$am_cv_func_iconv" >&6; }
14276  if test "$am_cv_func_iconv" = yes; then
14277
14278$as_echo "#define HAVE_ICONV 1" >>confdefs.h
14279
14280  fi
14281  if test "$am_cv_lib_iconv" = yes; then
14282
14283  for element in $INCICONV; do
14284    haveit=
14285    for x in $CPPFLAGS; do
14286
14287  acl_save_prefix="$prefix"
14288  prefix="$acl_final_prefix"
14289  acl_save_exec_prefix="$exec_prefix"
14290  exec_prefix="$acl_final_exec_prefix"
14291  eval x=\"$x\"
14292  exec_prefix="$acl_save_exec_prefix"
14293  prefix="$acl_save_prefix"
14294
14295      if test "X$x" = "X$element"; then
14296        haveit=yes
14297        break
14298      fi
14299    done
14300    if test -z "$haveit"; then
14301      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14302    fi
14303  done
14304
14305    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
14306$as_echo_n "checking how to link with libiconv... " >&6; }
14307    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
14308$as_echo "$LIBICONV" >&6; }
14309  else
14310    LIBICONV=
14311    LTLIBICONV=
14312  fi
14313
14314
14315
14316  if test "$am_cv_func_iconv" = yes; then
14317    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
14318$as_echo_n "checking for iconv declaration... " >&6; }
14319    if test "${am_cv_proto_iconv+set}" = set; then :
14320  $as_echo_n "(cached) " >&6
14321else
14322
14323      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14324/* end confdefs.h.  */
14325
14326#include <stdlib.h>
14327#include <iconv.h>
14328extern
14329#ifdef __cplusplus
14330"C"
14331#endif
14332#if defined(__STDC__) || defined(__cplusplus)
14333size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
14334#else
14335size_t iconv();
14336#endif
14337
14338int
14339main ()
14340{
14341
14342  ;
14343  return 0;
14344}
14345_ACEOF
14346if ac_fn_c_try_compile "$LINENO"; then :
14347  am_cv_proto_iconv_arg1=""
14348else
14349  am_cv_proto_iconv_arg1="const"
14350fi
14351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14352      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);"
14353fi
14354
14355    am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
14356    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
14357         }$am_cv_proto_iconv" >&5
14358$as_echo "${ac_t:-
14359         }$am_cv_proto_iconv" >&6; }
14360
14361cat >>confdefs.h <<_ACEOF
14362#define ICONV_CONST $am_cv_proto_iconv_arg1
14363_ACEOF
14364
14365  fi
14366
14367
14368all_targets=false
14369BUILD_NLMCONV=
14370NLMCONV_DEFS=
14371BUILD_SRCONV=
14372BUILD_DLLTOOL=
14373DLLTOOL_DEFS=
14374DLLTOOL_DEFAULT=
14375BUILD_WINDRES=
14376BUILD_WINDMC=
14377BUILD_DLLWRAP=
14378BUILD_MISC=
14379BUILD_INSTALL_MISC=
14380OBJDUMP_DEFS=
14381OBJDUMP_PRIVATE_VECTORS=
14382OBJDUMP_PRIVATE_OFILES=
14383od_vectors=
14384
14385for targ in $target $canon_targets
14386do
14387    if test "x$targ" = "xall"; then
14388        all_targets=true
14389	BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
14390	BUILD_SRCONV='$(SRCONV_PROG)'
14391	NLMCONV_DEFS="-DNLMCONV_I386 -DNLMCONV_ALPHA -DNLMCONV_POWERPC -DNLMCONV_SPARC"
14392	BUILD_MISC="${BUILD_MISC} "'bin2c$(EXEEXT_FOR_BUILD)'
14393	BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14394	BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14395	BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14396	if test -z "$DLLTOOL_DEFAULT"; then
14397	  DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
14398	fi
14399	DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
14400	BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
14401	od_vectors="$od_vectors objdump_private_desc_xcoff"
14402    else
14403	case $targ in
14404	i[3-7]86*-*-netware*)
14405	  BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
14406	  NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_I386"
14407	  ;;
14408	alpha*-*-netware*)
14409	  BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
14410	  NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_ALPHA"
14411	  ;;
14412	powerpc*-*-netware*)
14413	  BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
14414	  NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_POWERPC"
14415	  ;;
14416	sparc*-*-netware*)
14417	  BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
14418	  NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_SPARC"
14419	  ;;
14420	esac
14421
14422	case $targ in
14423	*-*-hms*) BUILD_SRCONV='$(SRCONV_PROG)' ;;
14424	esac
14425
14426	case $targ in
14427	arm-epoc-pe*)
14428  	  BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14429	  if test -z "$DLLTOOL_DEFAULT"; then
14430	    DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM_EPOC"
14431	  fi
14432	  DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_EPOC -DDLLTOOL_ARM"
14433	  BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14434	  BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14435	  ;;
14436	arm-wince-pe* | arm-*-wince | arm*-*-cegcc* | arm*-*-mingw32ce*)
14437  	  BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14438	  if test -z "$DLLTOOL_DEFAULT"; then
14439	    DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM_WINCE"
14440	  fi
14441	  DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_WINCE -DDLLTOOL_ARM"
14442	  BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14443	  BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14444	  ;;
14445	arm-*-pe*)
14446  	  BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14447	  if test -z "$DLLTOOL_DEFAULT"; then
14448	    DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM"
14449	  fi
14450	  DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
14451	  BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14452	  BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14453	  ;;
14454	x86_64-*-mingw* | x86_64-*-cygwin*)
14455  	  BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14456	  if test -z "$DLLTOOL_DEFAULT"; then
14457	    DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MX86_64"
14458	  fi
14459	  DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MX86_64"
14460	  BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14461	  BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14462	  BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
14463	  ;;
14464	i[3-7]86-*-pe* | i[3-7]86-*-cygwin* | i[3-7]86-*-mingw32** | i[3-7]86-*-netbsdpe*)
14465  	  BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14466	  if test -z "$DLLTOOL_DEFAULT"; then
14467	    DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
14468	  fi
14469	  DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
14470	  BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14471	  BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14472	  BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
14473	  ;;
14474	i[3-7]86-*-interix)
14475	  BUILD_DLLTOOL='$(DLLTOOL_PROG)'
14476	  if test -z "$DLLTOOL_DEFAULT"; then
14477	    DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
14478	  fi
14479	  DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
14480	  ;;
14481	powerpc*-aix5.[01])
14482	  ;;
14483	powerpc*-aix[5-9].*)
14484	  OBJDUMP_DEFS="-DAIX_WEAK_SUPPORT"
14485	  ;;
14486	powerpc*-*-pe* | powerpc*-*-cygwin*)
14487  	  BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14488	  if test -z "$DLLTOOL_DEFAULT"; then
14489	    DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_PPC"
14490	  fi
14491	  DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_PPC"
14492	  BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14493	  BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14494	  ;;
14495	powerpc*-*-linux* | powerpc*-*-elf* | powerpc*-*-eabi*)
14496	  case "$BUILD_INSTALL_MISC" in
14497	    *embedspu*) ;;
14498	    *) BUILD_INSTALL_MISC="${BUILD_INSTALL_MISC} embedspu"
14499	  esac
14500	  ;;
14501	sh*-*-pe)
14502  	  BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14503	  if test -z "$DLLTOOL_DEFAULT"; then
14504	    DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_SH"
14505	  fi
14506	  DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_SH"
14507	  BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14508	  BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14509	  ;;
14510	spu-*-*)
14511	  BUILD_MISC="${BUILD_MISC} "'bin2c$(EXEEXT_FOR_BUILD)'
14512	  ;;
14513	mips*-*-pe)
14514  	  BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14515	  if test -z "$DLLTOOL_DEFAULT"; then
14516	    DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MIPS"
14517	  fi
14518	  DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MIPS"
14519	  BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14520	  BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14521	  ;;
14522	mcore-*-pe)
14523  	  BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14524	  if test -z "$DLLTOOL_DEFAULT"; then
14525	    DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MCORE"
14526	  fi
14527	  DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE"
14528	  BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14529	  BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14530	  ;;
14531	mcore-*-elf)
14532  	  BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14533	  if test -z "$DLLTOOL_DEFAULT"; then
14534	    DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MCORE_ELF"
14535	  fi
14536	  DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE_ELF"
14537	  ;;
14538  	mep-*)
14539	  OBJDUMP_DEFS="-DSKIP_ZEROES=256 -DSKIP_ZEROES_AT_END=0"
14540	  ;;
14541	esac
14542
14543	# Add objdump private vectors.
14544	case $targ in
14545	avr-*-*)
14546	  od_vectors="$od_vectors objdump_private_desc_elf32_avr"
14547	  ;;
14548	powerpc-*-aix*)
14549	  od_vectors="$od_vectors objdump_private_desc_xcoff"
14550	  ;;
14551        *-*-darwin*)
14552	  od_vectors="$od_vectors objdump_private_desc_mach_o"
14553	  ;;
14554	esac
14555    fi
14556done
14557
14558# Uniq objdump private vector, build objdump target ofiles.
14559od_files=
14560f=""
14561for i in $od_vectors ; do
14562    case " $f " in
14563    *" $i "*) ;;
14564    *)
14565	f="$f $i"
14566	OBJDUMP_PRIVATE_VECTORS="$OBJDUMP_PRIVATE_VECTORS &$i,"
14567	case $i in
14568	objdump_private_desc_elf32_avr)
14569	    od_files="$od_files od-elf32_avr" ;;
14570	objdump_private_desc_xcoff)
14571	    od_files="$od_files od-xcoff" ;;
14572	objdump_private_desc_mach_o)
14573	    od_files="$od_files od-macho" ;;
14574	*) as_fn_error "*** unknown private vector $i" "$LINENO" 5 ;;
14575	esac
14576	;;
14577    esac
14578done
14579
14580# Uniq objdump target ofiles
14581f=""
14582for i in $od_files ; do
14583    case " $f " in
14584    *" $i "*) ;;
14585    *)
14586	f="$f $i"
14587	OBJDUMP_PRIVATE_OFILES="$OBJDUMP_PRIVATE_OFILES $i.$objext"
14588	;;
14589    esac
14590done
14591
14592DLLTOOL_DEFS="$DLLTOOL_DEFS $DLLTOOL_DEFAULT"
14593
14594if test "${with_windres+set}" = set; then
14595	  BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14596fi
14597
14598if test "${with_windmc+set}" = set; then
14599	  BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14600fi
14601
14602OBJDUMP_DEFS="${OBJDUMP_DEFS} -DOBJDUMP_PRIVATE_VECTORS=\"${OBJDUMP_PRIVATE_VECTORS}\""
14603
14604
14605
14606
14607
14608
14609
14610
14611
14612
14613
14614
14615
14616
14617
14618cat >>confdefs.h <<_ACEOF
14619#define TARGET "${target}"
14620_ACEOF
14621
14622
14623targ=$target
14624. $srcdir/../bfd/config.bfd
14625if test "x$targ_underscore" = "xyes"; then
14626    UNDERSCORE=1
14627else
14628    UNDERSCORE=0
14629fi
14630
14631cat >>confdefs.h <<_ACEOF
14632#define TARGET_PREPENDS_UNDERSCORE $UNDERSCORE
14633_ACEOF
14634
14635
14636# Emulation
14637targ=$target
14638. ${srcdir}/configure.tgt
14639EMULATION=$targ_emul
14640EMULATION_VECTOR=$targ_emul_vector
14641
14642
14643
14644
14645# Required for html and install-html
14646
14647
14648
14649
14650
14651ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in"
14652
14653cat >confcache <<\_ACEOF
14654# This file is a shell script that caches the results of configure
14655# tests run on this system so they can be shared between configure
14656# scripts and configure runs, see configure's option --config-cache.
14657# It is not useful on other systems.  If it contains results you don't
14658# want to keep, you may remove or edit it.
14659#
14660# config.status only pays attention to the cache file if you give it
14661# the --recheck option to rerun configure.
14662#
14663# `ac_cv_env_foo' variables (set or unset) will be overridden when
14664# loading this file, other *unset* `ac_cv_foo' will be assigned the
14665# following values.
14666
14667_ACEOF
14668
14669# The following way of writing the cache mishandles newlines in values,
14670# but we know of no workaround that is simple, portable, and efficient.
14671# So, we kill variables containing newlines.
14672# Ultrix sh set writes to stderr and can't be redirected directly,
14673# and sets the high bit in the cache file unless we assign to the vars.
14674(
14675  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14676    eval ac_val=\$$ac_var
14677    case $ac_val in #(
14678    *${as_nl}*)
14679      case $ac_var in #(
14680      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14681$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14682      esac
14683      case $ac_var in #(
14684      _ | IFS | as_nl) ;; #(
14685      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14686      *) { eval $ac_var=; unset $ac_var;} ;;
14687      esac ;;
14688    esac
14689  done
14690
14691  (set) 2>&1 |
14692    case $as_nl`(ac_space=' '; set) 2>&1` in #(
14693    *${as_nl}ac_space=\ *)
14694      # `set' does not quote correctly, so add quotes: double-quote
14695      # substitution turns \\\\ into \\, and sed turns \\ into \.
14696      sed -n \
14697	"s/'/'\\\\''/g;
14698	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14699      ;; #(
14700    *)
14701      # `set' quotes correctly as required by POSIX, so do not add quotes.
14702      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14703      ;;
14704    esac |
14705    sort
14706) |
14707  sed '
14708     /^ac_cv_env_/b end
14709     t clear
14710     :clear
14711     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14712     t end
14713     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14714     :end' >>confcache
14715if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14716  if test -w "$cache_file"; then
14717    test "x$cache_file" != "x/dev/null" &&
14718      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14719$as_echo "$as_me: updating cache $cache_file" >&6;}
14720    cat confcache >$cache_file
14721  else
14722    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14723$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14724  fi
14725fi
14726rm -f confcache
14727
14728test "x$prefix" = xNONE && prefix=$ac_default_prefix
14729# Let make expand exec_prefix.
14730test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14731
14732DEFS=-DHAVE_CONFIG_H
14733
14734ac_libobjs=
14735ac_ltlibobjs=
14736for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14737  # 1. Remove the extension, and $U if already installed.
14738  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14739  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14740  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14741  #    will be set to the directory where LIBOBJS objects are built.
14742  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14743  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14744done
14745LIBOBJS=$ac_libobjs
14746
14747LTLIBOBJS=$ac_ltlibobjs
14748
14749
14750if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14751  as_fn_error "conditional \"AMDEP\" was never defined.
14752Usually this means the macro was only invoked conditionally." "$LINENO" 5
14753fi
14754if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14755  as_fn_error "conditional \"am__fastdepCC\" was never defined.
14756Usually this means the macro was only invoked conditionally." "$LINENO" 5
14757fi
14758 if test -n "$EXEEXT"; then
14759  am__EXEEXT_TRUE=
14760  am__EXEEXT_FALSE='#'
14761else
14762  am__EXEEXT_TRUE='#'
14763  am__EXEEXT_FALSE=
14764fi
14765
14766if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14767  as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
14768Usually this means the macro was only invoked conditionally." "$LINENO" 5
14769fi
14770if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
14771  as_fn_error "conditional \"GENINSRC_NEVER\" was never defined.
14772Usually this means the macro was only invoked conditionally." "$LINENO" 5
14773fi
14774
14775: ${CONFIG_STATUS=./config.status}
14776ac_write_fail=0
14777ac_clean_files_save=$ac_clean_files
14778ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14779{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14780$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14781as_write_fail=0
14782cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14783#! $SHELL
14784# Generated by $as_me.
14785# Run this file to recreate the current configuration.
14786# Compiler output produced by configure, useful for debugging
14787# configure, is in config.log if it exists.
14788
14789debug=false
14790ac_cs_recheck=false
14791ac_cs_silent=false
14792
14793SHELL=\${CONFIG_SHELL-$SHELL}
14794export SHELL
14795_ASEOF
14796cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14797## -------------------- ##
14798## M4sh Initialization. ##
14799## -------------------- ##
14800
14801# Be more Bourne compatible
14802DUALCASE=1; export DUALCASE # for MKS sh
14803if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14804  emulate sh
14805  NULLCMD=:
14806  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14807  # is contrary to our usage.  Disable this feature.
14808  alias -g '${1+"$@"}'='"$@"'
14809  setopt NO_GLOB_SUBST
14810else
14811  case `(set -o) 2>/dev/null` in #(
14812  *posix*) :
14813    set -o posix ;; #(
14814  *) :
14815     ;;
14816esac
14817fi
14818
14819
14820as_nl='
14821'
14822export as_nl
14823# Printing a long string crashes Solaris 7 /usr/bin/printf.
14824as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14825as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14826as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14827# Prefer a ksh shell builtin over an external printf program on Solaris,
14828# but without wasting forks for bash or zsh.
14829if test -z "$BASH_VERSION$ZSH_VERSION" \
14830    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14831  as_echo='print -r --'
14832  as_echo_n='print -rn --'
14833elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14834  as_echo='printf %s\n'
14835  as_echo_n='printf %s'
14836else
14837  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14838    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14839    as_echo_n='/usr/ucb/echo -n'
14840  else
14841    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14842    as_echo_n_body='eval
14843      arg=$1;
14844      case $arg in #(
14845      *"$as_nl"*)
14846	expr "X$arg" : "X\\(.*\\)$as_nl";
14847	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14848      esac;
14849      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14850    '
14851    export as_echo_n_body
14852    as_echo_n='sh -c $as_echo_n_body as_echo'
14853  fi
14854  export as_echo_body
14855  as_echo='sh -c $as_echo_body as_echo'
14856fi
14857
14858# The user is always right.
14859if test "${PATH_SEPARATOR+set}" != set; then
14860  PATH_SEPARATOR=:
14861  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14862    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14863      PATH_SEPARATOR=';'
14864  }
14865fi
14866
14867
14868# IFS
14869# We need space, tab and new line, in precisely that order.  Quoting is
14870# there to prevent editors from complaining about space-tab.
14871# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14872# splitting by setting IFS to empty value.)
14873IFS=" ""	$as_nl"
14874
14875# Find who we are.  Look in the path if we contain no directory separator.
14876case $0 in #((
14877  *[\\/]* ) as_myself=$0 ;;
14878  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14879for as_dir in $PATH
14880do
14881  IFS=$as_save_IFS
14882  test -z "$as_dir" && as_dir=.
14883    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14884  done
14885IFS=$as_save_IFS
14886
14887     ;;
14888esac
14889# We did not find ourselves, most probably we were run as `sh COMMAND'
14890# in which case we are not to be found in the path.
14891if test "x$as_myself" = x; then
14892  as_myself=$0
14893fi
14894if test ! -f "$as_myself"; then
14895  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14896  exit 1
14897fi
14898
14899# Unset variables that we do not need and which cause bugs (e.g. in
14900# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
14901# suppresses any "Segmentation fault" message there.  '((' could
14902# trigger a bug in pdksh 5.2.14.
14903for as_var in BASH_ENV ENV MAIL MAILPATH
14904do eval test x\${$as_var+set} = xset \
14905  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14906done
14907PS1='$ '
14908PS2='> '
14909PS4='+ '
14910
14911# NLS nuisances.
14912LC_ALL=C
14913export LC_ALL
14914LANGUAGE=C
14915export LANGUAGE
14916
14917# CDPATH.
14918(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14919
14920
14921# as_fn_error ERROR [LINENO LOG_FD]
14922# ---------------------------------
14923# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14924# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14925# script with status $?, using 1 if that was 0.
14926as_fn_error ()
14927{
14928  as_status=$?; test $as_status -eq 0 && as_status=1
14929  if test "$3"; then
14930    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14931    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14932  fi
14933  $as_echo "$as_me: error: $1" >&2
14934  as_fn_exit $as_status
14935} # as_fn_error
14936
14937
14938# as_fn_set_status STATUS
14939# -----------------------
14940# Set $? to STATUS, without forking.
14941as_fn_set_status ()
14942{
14943  return $1
14944} # as_fn_set_status
14945
14946# as_fn_exit STATUS
14947# -----------------
14948# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14949as_fn_exit ()
14950{
14951  set +e
14952  as_fn_set_status $1
14953  exit $1
14954} # as_fn_exit
14955
14956# as_fn_unset VAR
14957# ---------------
14958# Portably unset VAR.
14959as_fn_unset ()
14960{
14961  { eval $1=; unset $1;}
14962}
14963as_unset=as_fn_unset
14964# as_fn_append VAR VALUE
14965# ----------------------
14966# Append the text in VALUE to the end of the definition contained in VAR. Take
14967# advantage of any shell optimizations that allow amortized linear growth over
14968# repeated appends, instead of the typical quadratic growth present in naive
14969# implementations.
14970if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14971  eval 'as_fn_append ()
14972  {
14973    eval $1+=\$2
14974  }'
14975else
14976  as_fn_append ()
14977  {
14978    eval $1=\$$1\$2
14979  }
14980fi # as_fn_append
14981
14982# as_fn_arith ARG...
14983# ------------------
14984# Perform arithmetic evaluation on the ARGs, and store the result in the
14985# global $as_val. Take advantage of shells that can avoid forks. The arguments
14986# must be portable across $(()) and expr.
14987if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14988  eval 'as_fn_arith ()
14989  {
14990    as_val=$(( $* ))
14991  }'
14992else
14993  as_fn_arith ()
14994  {
14995    as_val=`expr "$@" || test $? -eq 1`
14996  }
14997fi # as_fn_arith
14998
14999
15000if expr a : '\(a\)' >/dev/null 2>&1 &&
15001   test "X`expr 00001 : '.*\(...\)'`" = X001; then
15002  as_expr=expr
15003else
15004  as_expr=false
15005fi
15006
15007if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15008  as_basename=basename
15009else
15010  as_basename=false
15011fi
15012
15013if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15014  as_dirname=dirname
15015else
15016  as_dirname=false
15017fi
15018
15019as_me=`$as_basename -- "$0" ||
15020$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15021	 X"$0" : 'X\(//\)$' \| \
15022	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15023$as_echo X/"$0" |
15024    sed '/^.*\/\([^/][^/]*\)\/*$/{
15025	    s//\1/
15026	    q
15027	  }
15028	  /^X\/\(\/\/\)$/{
15029	    s//\1/
15030	    q
15031	  }
15032	  /^X\/\(\/\).*/{
15033	    s//\1/
15034	    q
15035	  }
15036	  s/.*/./; q'`
15037
15038# Avoid depending upon Character Ranges.
15039as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15040as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15041as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15042as_cr_digits='0123456789'
15043as_cr_alnum=$as_cr_Letters$as_cr_digits
15044
15045ECHO_C= ECHO_N= ECHO_T=
15046case `echo -n x` in #(((((
15047-n*)
15048  case `echo 'xy\c'` in
15049  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
15050  xy)  ECHO_C='\c';;
15051  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15052       ECHO_T='	';;
15053  esac;;
15054*)
15055  ECHO_N='-n';;
15056esac
15057
15058rm -f conf$$ conf$$.exe conf$$.file
15059if test -d conf$$.dir; then
15060  rm -f conf$$.dir/conf$$.file
15061else
15062  rm -f conf$$.dir
15063  mkdir conf$$.dir 2>/dev/null
15064fi
15065if (echo >conf$$.file) 2>/dev/null; then
15066  if ln -s conf$$.file conf$$ 2>/dev/null; then
15067    as_ln_s='ln -s'
15068    # ... but there are two gotchas:
15069    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15070    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15071    # In both cases, we have to default to `cp -p'.
15072    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15073      as_ln_s='cp -p'
15074  elif ln conf$$.file conf$$ 2>/dev/null; then
15075    as_ln_s=ln
15076  else
15077    as_ln_s='cp -p'
15078  fi
15079else
15080  as_ln_s='cp -p'
15081fi
15082rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15083rmdir conf$$.dir 2>/dev/null
15084
15085
15086# as_fn_mkdir_p
15087# -------------
15088# Create "$as_dir" as a directory, including parents if necessary.
15089as_fn_mkdir_p ()
15090{
15091
15092  case $as_dir in #(
15093  -*) as_dir=./$as_dir;;
15094  esac
15095  test -d "$as_dir" || eval $as_mkdir_p || {
15096    as_dirs=
15097    while :; do
15098      case $as_dir in #(
15099      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15100      *) as_qdir=$as_dir;;
15101      esac
15102      as_dirs="'$as_qdir' $as_dirs"
15103      as_dir=`$as_dirname -- "$as_dir" ||
15104$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15105	 X"$as_dir" : 'X\(//\)[^/]' \| \
15106	 X"$as_dir" : 'X\(//\)$' \| \
15107	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15108$as_echo X"$as_dir" |
15109    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15110	    s//\1/
15111	    q
15112	  }
15113	  /^X\(\/\/\)[^/].*/{
15114	    s//\1/
15115	    q
15116	  }
15117	  /^X\(\/\/\)$/{
15118	    s//\1/
15119	    q
15120	  }
15121	  /^X\(\/\).*/{
15122	    s//\1/
15123	    q
15124	  }
15125	  s/.*/./; q'`
15126      test -d "$as_dir" && break
15127    done
15128    test -z "$as_dirs" || eval "mkdir $as_dirs"
15129  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15130
15131
15132} # as_fn_mkdir_p
15133if mkdir -p . 2>/dev/null; then
15134  as_mkdir_p='mkdir -p "$as_dir"'
15135else
15136  test -d ./-p && rmdir ./-p
15137  as_mkdir_p=false
15138fi
15139
15140if test -x / >/dev/null 2>&1; then
15141  as_test_x='test -x'
15142else
15143  if ls -dL / >/dev/null 2>&1; then
15144    as_ls_L_option=L
15145  else
15146    as_ls_L_option=
15147  fi
15148  as_test_x='
15149    eval sh -c '\''
15150      if test -d "$1"; then
15151	test -d "$1/.";
15152      else
15153	case $1 in #(
15154	-*)set "./$1";;
15155	esac;
15156	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15157	???[sx]*):;;*)false;;esac;fi
15158    '\'' sh
15159  '
15160fi
15161as_executable_p=$as_test_x
15162
15163# Sed expression to map a string onto a valid CPP name.
15164as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15165
15166# Sed expression to map a string onto a valid variable name.
15167as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15168
15169
15170exec 6>&1
15171## ----------------------------------- ##
15172## Main body of $CONFIG_STATUS script. ##
15173## ----------------------------------- ##
15174_ASEOF
15175test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15176
15177cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15178# Save the log message, to keep $0 and so on meaningful, and to
15179# report actual input values of CONFIG_FILES etc. instead of their
15180# values after options handling.
15181ac_log="
15182This file was extended by binutils $as_me 2.27, which was
15183generated by GNU Autoconf 2.64.  Invocation command line was
15184
15185  CONFIG_FILES    = $CONFIG_FILES
15186  CONFIG_HEADERS  = $CONFIG_HEADERS
15187  CONFIG_LINKS    = $CONFIG_LINKS
15188  CONFIG_COMMANDS = $CONFIG_COMMANDS
15189  $ $0 $@
15190
15191on `(hostname || uname -n) 2>/dev/null | sed 1q`
15192"
15193
15194_ACEOF
15195
15196case $ac_config_files in *"
15197"*) set x $ac_config_files; shift; ac_config_files=$*;;
15198esac
15199
15200case $ac_config_headers in *"
15201"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15202esac
15203
15204
15205cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15206# Files that config.status was made for.
15207config_files="$ac_config_files"
15208config_headers="$ac_config_headers"
15209config_commands="$ac_config_commands"
15210
15211_ACEOF
15212
15213cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15214ac_cs_usage="\
15215\`$as_me' instantiates files and other configuration actions
15216from templates according to the current configuration.  Unless the files
15217and actions are specified as TAGs, all are instantiated by default.
15218
15219Usage: $0 [OPTION]... [TAG]...
15220
15221  -h, --help       print this help, then exit
15222  -V, --version    print version number and configuration settings, then exit
15223  -q, --quiet, --silent
15224                   do not print progress messages
15225  -d, --debug      don't remove temporary files
15226      --recheck    update $as_me by reconfiguring in the same conditions
15227      --file=FILE[:TEMPLATE]
15228                   instantiate the configuration file FILE
15229      --header=FILE[:TEMPLATE]
15230                   instantiate the configuration header FILE
15231
15232Configuration files:
15233$config_files
15234
15235Configuration headers:
15236$config_headers
15237
15238Configuration commands:
15239$config_commands
15240
15241Report bugs to the package provider."
15242
15243_ACEOF
15244cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15245ac_cs_version="\\
15246binutils config.status 2.27
15247configured by $0, generated by GNU Autoconf 2.64,
15248  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15249
15250Copyright (C) 2009 Free Software Foundation, Inc.
15251This config.status script is free software; the Free Software Foundation
15252gives unlimited permission to copy, distribute and modify it."
15253
15254ac_pwd='$ac_pwd'
15255srcdir='$srcdir'
15256INSTALL='$INSTALL'
15257MKDIR_P='$MKDIR_P'
15258AWK='$AWK'
15259test -n "\$AWK" || AWK=awk
15260_ACEOF
15261
15262cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15263# The default lists apply if the user does not specify any file.
15264ac_need_defaults=:
15265while test $# != 0
15266do
15267  case $1 in
15268  --*=*)
15269    ac_option=`expr "X$1" : 'X\([^=]*\)='`
15270    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15271    ac_shift=:
15272    ;;
15273  *)
15274    ac_option=$1
15275    ac_optarg=$2
15276    ac_shift=shift
15277    ;;
15278  esac
15279
15280  case $ac_option in
15281  # Handling of the options.
15282  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15283    ac_cs_recheck=: ;;
15284  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15285    $as_echo "$ac_cs_version"; exit ;;
15286  --debug | --debu | --deb | --de | --d | -d )
15287    debug=: ;;
15288  --file | --fil | --fi | --f )
15289    $ac_shift
15290    case $ac_optarg in
15291    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15292    esac
15293    as_fn_append CONFIG_FILES " '$ac_optarg'"
15294    ac_need_defaults=false;;
15295  --header | --heade | --head | --hea )
15296    $ac_shift
15297    case $ac_optarg in
15298    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15299    esac
15300    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15301    ac_need_defaults=false;;
15302  --he | --h)
15303    # Conflict between --help and --header
15304    as_fn_error "ambiguous option: \`$1'
15305Try \`$0 --help' for more information.";;
15306  --help | --hel | -h )
15307    $as_echo "$ac_cs_usage"; exit ;;
15308  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15309  | -silent | --silent | --silen | --sile | --sil | --si | --s)
15310    ac_cs_silent=: ;;
15311
15312  # This is an error.
15313  -*) as_fn_error "unrecognized option: \`$1'
15314Try \`$0 --help' for more information." ;;
15315
15316  *) as_fn_append ac_config_targets " $1"
15317     ac_need_defaults=false ;;
15318
15319  esac
15320  shift
15321done
15322
15323ac_configure_extra_args=
15324
15325if $ac_cs_silent; then
15326  exec 6>/dev/null
15327  ac_configure_extra_args="$ac_configure_extra_args --silent"
15328fi
15329
15330_ACEOF
15331cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15332if \$ac_cs_recheck; then
15333  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15334  shift
15335  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15336  CONFIG_SHELL='$SHELL'
15337  export CONFIG_SHELL
15338  exec "\$@"
15339fi
15340
15341_ACEOF
15342cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15343exec 5>>config.log
15344{
15345  echo
15346  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15347## Running $as_me. ##
15348_ASBOX
15349  $as_echo "$ac_log"
15350} >&5
15351
15352_ACEOF
15353cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15354#
15355# INIT-COMMANDS
15356#
15357AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15358
15359
15360# The HP-UX ksh and POSIX shell print the target directory to stdout
15361# if CDPATH is set.
15362(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15363
15364sed_quote_subst='$sed_quote_subst'
15365double_quote_subst='$double_quote_subst'
15366delay_variable_subst='$delay_variable_subst'
15367macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15368macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15369enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15370enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15371pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15372enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15373SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15374ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15375host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15376host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15377host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15378build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15379build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15380build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15381SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15382Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15383GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15384EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15385FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15386LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15387NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15388LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15389max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15390ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15391exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15392lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15393lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15394lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15395reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15396reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15397OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15398deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15399file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15400AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15401AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15402STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15403RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15404old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15405old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15406old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15407lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15408CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15409CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15410compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15411GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15412lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15413lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15414lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15415lt_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"`'
15416objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15417MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15418lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15419lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15420lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15421lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15422lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15423need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15424DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15425NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15426LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15427OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15428OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15429libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15430shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15431extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15432archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15433enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15434export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15435whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15436compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15437old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15438old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15439archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15440archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15441module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15442module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15443with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15444allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15445no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15446hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15447hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15448hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15449hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15450hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15451hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15452hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15453hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15454inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15455link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15456fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15457always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15458export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15459exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15460include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15461prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15462file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15463variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15464need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15465need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15466version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15467runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15468shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15469shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15470libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15471library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15472soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15473install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15474postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15475postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15476finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15477finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15478hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15479sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15480sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15481hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15482enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15483enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15484enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15485old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15486striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15487
15488LTCC='$LTCC'
15489LTCFLAGS='$LTCFLAGS'
15490compiler='$compiler_DEFAULT'
15491
15492# A function that is used when there is no print builtin or printf.
15493func_fallback_echo ()
15494{
15495  eval 'cat <<_LTECHO_EOF
15496\$1
15497_LTECHO_EOF'
15498}
15499
15500# Quote evaled strings.
15501for var in SHELL \
15502ECHO \
15503SED \
15504GREP \
15505EGREP \
15506FGREP \
15507LD \
15508NM \
15509LN_S \
15510lt_SP2NL \
15511lt_NL2SP \
15512reload_flag \
15513OBJDUMP \
15514deplibs_check_method \
15515file_magic_cmd \
15516AR \
15517AR_FLAGS \
15518STRIP \
15519RANLIB \
15520CC \
15521CFLAGS \
15522compiler \
15523lt_cv_sys_global_symbol_pipe \
15524lt_cv_sys_global_symbol_to_cdecl \
15525lt_cv_sys_global_symbol_to_c_name_address \
15526lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15527lt_prog_compiler_no_builtin_flag \
15528lt_prog_compiler_wl \
15529lt_prog_compiler_pic \
15530lt_prog_compiler_static \
15531lt_cv_prog_compiler_c_o \
15532need_locks \
15533DSYMUTIL \
15534NMEDIT \
15535LIPO \
15536OTOOL \
15537OTOOL64 \
15538shrext_cmds \
15539export_dynamic_flag_spec \
15540whole_archive_flag_spec \
15541compiler_needs_object \
15542with_gnu_ld \
15543allow_undefined_flag \
15544no_undefined_flag \
15545hardcode_libdir_flag_spec \
15546hardcode_libdir_flag_spec_ld \
15547hardcode_libdir_separator \
15548fix_srcfile_path \
15549exclude_expsyms \
15550include_expsyms \
15551file_list_spec \
15552variables_saved_for_relink \
15553libname_spec \
15554library_names_spec \
15555soname_spec \
15556install_override_mode \
15557finish_eval \
15558old_striplib \
15559striplib; do
15560    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15561    *[\\\\\\\`\\"\\\$]*)
15562      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15563      ;;
15564    *)
15565      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15566      ;;
15567    esac
15568done
15569
15570# Double-quote double-evaled strings.
15571for var in reload_cmds \
15572old_postinstall_cmds \
15573old_postuninstall_cmds \
15574old_archive_cmds \
15575extract_expsyms_cmds \
15576old_archive_from_new_cmds \
15577old_archive_from_expsyms_cmds \
15578archive_cmds \
15579archive_expsym_cmds \
15580module_cmds \
15581module_expsym_cmds \
15582export_symbols_cmds \
15583prelink_cmds \
15584postinstall_cmds \
15585postuninstall_cmds \
15586finish_cmds \
15587sys_lib_search_path_spec \
15588sys_lib_dlsearch_path_spec; do
15589    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15590    *[\\\\\\\`\\"\\\$]*)
15591      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15592      ;;
15593    *)
15594      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15595      ;;
15596    esac
15597done
15598
15599ac_aux_dir='$ac_aux_dir'
15600xsi_shell='$xsi_shell'
15601lt_shell_append='$lt_shell_append'
15602
15603# See if we are running on zsh, and set the options which allow our
15604# commands through without removal of \ escapes INIT.
15605if test -n "\${ZSH_VERSION+set}" ; then
15606   setopt NO_GLOB_SUBST
15607fi
15608
15609
15610    PACKAGE='$PACKAGE'
15611    VERSION='$VERSION'
15612    TIMESTAMP='$TIMESTAMP'
15613    RM='$RM'
15614    ofile='$ofile'
15615
15616
15617
15618# Capture the value of obsolete ALL_LINGUAS because we need it to compute
15619    # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
15620    # from automake.
15621    eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
15622    # Capture the value of LINGUAS because we need it to compute CATALOGS.
15623    LINGUAS="${LINGUAS-%UNSET%}"
15624
15625
15626_ACEOF
15627
15628cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15629
15630# Handling of arguments.
15631for ac_config_target in $ac_config_targets
15632do
15633  case $ac_config_target in
15634    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15635    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15636    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
15637    "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15638    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15639    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15640    "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
15641
15642  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15643  esac
15644done
15645
15646
15647# If the user did not use the arguments to specify the items to instantiate,
15648# then the envvar interface is used.  Set only those that are not.
15649# We use the long form for the default assignment because of an extremely
15650# bizarre bug on SunOS 4.1.3.
15651if $ac_need_defaults; then
15652  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15653  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15654  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15655fi
15656
15657# Have a temporary directory for convenience.  Make it in the build tree
15658# simply because there is no reason against having it here, and in addition,
15659# creating and moving files from /tmp can sometimes cause problems.
15660# Hook for its removal unless debugging.
15661# Note that there is a small window in which the directory will not be cleaned:
15662# after its creation but before its name has been assigned to `$tmp'.
15663$debug ||
15664{
15665  tmp=
15666  trap 'exit_status=$?
15667  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15668' 0
15669  trap 'as_fn_exit 1' 1 2 13 15
15670}
15671# Create a (secure) tmp directory for tmp files.
15672
15673{
15674  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15675  test -n "$tmp" && test -d "$tmp"
15676}  ||
15677{
15678  tmp=./conf$$-$RANDOM
15679  (umask 077 && mkdir "$tmp")
15680} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15681
15682# Set up the scripts for CONFIG_FILES section.
15683# No need to generate them if there are no CONFIG_FILES.
15684# This happens for instance with `./config.status config.h'.
15685if test -n "$CONFIG_FILES"; then
15686
15687
15688ac_cr=`echo X | tr X '\015'`
15689# On cygwin, bash can eat \r inside `` if the user requested igncr.
15690# But we know of no other shell where ac_cr would be empty at this
15691# point, so we can use a bashism as a fallback.
15692if test "x$ac_cr" = x; then
15693  eval ac_cr=\$\'\\r\'
15694fi
15695ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15696if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15697  ac_cs_awk_cr='\r'
15698else
15699  ac_cs_awk_cr=$ac_cr
15700fi
15701
15702echo 'BEGIN {' >"$tmp/subs1.awk" &&
15703_ACEOF
15704
15705
15706{
15707  echo "cat >conf$$subs.awk <<_ACEOF" &&
15708  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15709  echo "_ACEOF"
15710} >conf$$subs.sh ||
15711  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15712ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15713ac_delim='%!_!# '
15714for ac_last_try in false false false false false :; do
15715  . ./conf$$subs.sh ||
15716    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15717
15718  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15719  if test $ac_delim_n = $ac_delim_num; then
15720    break
15721  elif $ac_last_try; then
15722    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15723  else
15724    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15725  fi
15726done
15727rm -f conf$$subs.sh
15728
15729cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15730cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15731_ACEOF
15732sed -n '
15733h
15734s/^/S["/; s/!.*/"]=/
15735p
15736g
15737s/^[^!]*!//
15738:repl
15739t repl
15740s/'"$ac_delim"'$//
15741t delim
15742:nl
15743h
15744s/\(.\{148\}\).*/\1/
15745t more1
15746s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15747p
15748n
15749b repl
15750:more1
15751s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15752p
15753g
15754s/.\{148\}//
15755t nl
15756:delim
15757h
15758s/\(.\{148\}\).*/\1/
15759t more2
15760s/["\\]/\\&/g; s/^/"/; s/$/"/
15761p
15762b
15763:more2
15764s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15765p
15766g
15767s/.\{148\}//
15768t delim
15769' <conf$$subs.awk | sed '
15770/^[^""]/{
15771  N
15772  s/\n//
15773}
15774' >>$CONFIG_STATUS || ac_write_fail=1
15775rm -f conf$$subs.awk
15776cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15777_ACAWK
15778cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15779  for (key in S) S_is_set[key] = 1
15780  FS = ""
15781
15782}
15783{
15784  line = $ 0
15785  nfields = split(line, field, "@")
15786  substed = 0
15787  len = length(field[1])
15788  for (i = 2; i < nfields; i++) {
15789    key = field[i]
15790    keylen = length(key)
15791    if (S_is_set[key]) {
15792      value = S[key]
15793      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15794      len += length(value) + length(field[++i])
15795      substed = 1
15796    } else
15797      len += 1 + keylen
15798  }
15799
15800  print line
15801}
15802
15803_ACAWK
15804_ACEOF
15805cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15806if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15807  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15808else
15809  cat
15810fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15811  || as_fn_error "could not setup config files machinery" "$LINENO" 5
15812_ACEOF
15813
15814# VPATH may cause trouble with some makes, so we remove $(srcdir),
15815# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15816# trailing colons and then remove the whole line if VPATH becomes empty
15817# (actually we leave an empty line to preserve line numbers).
15818if test "x$srcdir" = x.; then
15819  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
15820s/:*\$(srcdir):*/:/
15821s/:*\${srcdir}:*/:/
15822s/:*@srcdir@:*/:/
15823s/^\([^=]*=[	 ]*\):*/\1/
15824s/:*$//
15825s/^[^=]*=[	 ]*$//
15826}'
15827fi
15828
15829cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15830fi # test -n "$CONFIG_FILES"
15831
15832# Set up the scripts for CONFIG_HEADERS section.
15833# No need to generate them if there are no CONFIG_HEADERS.
15834# This happens for instance with `./config.status Makefile'.
15835if test -n "$CONFIG_HEADERS"; then
15836cat >"$tmp/defines.awk" <<\_ACAWK ||
15837BEGIN {
15838_ACEOF
15839
15840# Transform confdefs.h into an awk script `defines.awk', embedded as
15841# here-document in config.status, that substitutes the proper values into
15842# config.h.in to produce config.h.
15843
15844# Create a delimiter string that does not exist in confdefs.h, to ease
15845# handling of long lines.
15846ac_delim='%!_!# '
15847for ac_last_try in false false :; do
15848  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15849  if test -z "$ac_t"; then
15850    break
15851  elif $ac_last_try; then
15852    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
15853  else
15854    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15855  fi
15856done
15857
15858# For the awk script, D is an array of macro values keyed by name,
15859# likewise P contains macro parameters if any.  Preserve backslash
15860# newline sequences.
15861
15862ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15863sed -n '
15864s/.\{148\}/&'"$ac_delim"'/g
15865t rset
15866:rset
15867s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
15868t def
15869d
15870:def
15871s/\\$//
15872t bsnl
15873s/["\\]/\\&/g
15874s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
15875D["\1"]=" \3"/p
15876s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
15877d
15878:bsnl
15879s/["\\]/\\&/g
15880s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
15881D["\1"]=" \3\\\\\\n"\\/p
15882t cont
15883s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15884t cont
15885d
15886:cont
15887n
15888s/.\{148\}/&'"$ac_delim"'/g
15889t clear
15890:clear
15891s/\\$//
15892t bsnlc
15893s/["\\]/\\&/g; s/^/"/; s/$/"/p
15894d
15895:bsnlc
15896s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15897b cont
15898' <confdefs.h | sed '
15899s/'"$ac_delim"'/"\\\
15900"/g' >>$CONFIG_STATUS || ac_write_fail=1
15901
15902cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15903  for (key in D) D_is_set[key] = 1
15904  FS = ""
15905}
15906/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15907  line = \$ 0
15908  split(line, arg, " ")
15909  if (arg[1] == "#") {
15910    defundef = arg[2]
15911    mac1 = arg[3]
15912  } else {
15913    defundef = substr(arg[1], 2)
15914    mac1 = arg[2]
15915  }
15916  split(mac1, mac2, "(") #)
15917  macro = mac2[1]
15918  prefix = substr(line, 1, index(line, defundef) - 1)
15919  if (D_is_set[macro]) {
15920    # Preserve the white space surrounding the "#".
15921    print prefix "define", macro P[macro] D[macro]
15922    next
15923  } else {
15924    # Replace #undef with comments.  This is necessary, for example,
15925    # in the case of _POSIX_SOURCE, which is predefined and required
15926    # on some systems where configure will not decide to define it.
15927    if (defundef == "undef") {
15928      print "/*", prefix defundef, macro, "*/"
15929      next
15930    }
15931  }
15932}
15933{ print }
15934_ACAWK
15935_ACEOF
15936cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15937  as_fn_error "could not setup config headers machinery" "$LINENO" 5
15938fi # test -n "$CONFIG_HEADERS"
15939
15940
15941eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
15942shift
15943for ac_tag
15944do
15945  case $ac_tag in
15946  :[FHLC]) ac_mode=$ac_tag; continue;;
15947  esac
15948  case $ac_mode$ac_tag in
15949  :[FHL]*:*);;
15950  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15951  :[FH]-) ac_tag=-:-;;
15952  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15953  esac
15954  ac_save_IFS=$IFS
15955  IFS=:
15956  set x $ac_tag
15957  IFS=$ac_save_IFS
15958  shift
15959  ac_file=$1
15960  shift
15961
15962  case $ac_mode in
15963  :L) ac_source=$1;;
15964  :[FH])
15965    ac_file_inputs=
15966    for ac_f
15967    do
15968      case $ac_f in
15969      -) ac_f="$tmp/stdin";;
15970      *) # Look for the file first in the build tree, then in the source tree
15971	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
15972	 # because $ac_f cannot contain `:'.
15973	 test -f "$ac_f" ||
15974	   case $ac_f in
15975	   [\\/$]*) false;;
15976	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15977	   esac ||
15978	   as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15979      esac
15980      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15981      as_fn_append ac_file_inputs " '$ac_f'"
15982    done
15983
15984    # Let's still pretend it is `configure' which instantiates (i.e., don't
15985    # use $as_me), people would be surprised to read:
15986    #    /* config.h.  Generated by config.status.  */
15987    configure_input='Generated from '`
15988	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15989	`' by configure.'
15990    if test x"$ac_file" != x-; then
15991      configure_input="$ac_file.  $configure_input"
15992      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15993$as_echo "$as_me: creating $ac_file" >&6;}
15994    fi
15995    # Neutralize special characters interpreted by sed in replacement strings.
15996    case $configure_input in #(
15997    *\&* | *\|* | *\\* )
15998       ac_sed_conf_input=`$as_echo "$configure_input" |
15999       sed 's/[\\\\&|]/\\\\&/g'`;; #(
16000    *) ac_sed_conf_input=$configure_input;;
16001    esac
16002
16003    case $ac_tag in
16004    *:-:* | *:-) cat >"$tmp/stdin" \
16005      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
16006    esac
16007    ;;
16008  esac
16009
16010  ac_dir=`$as_dirname -- "$ac_file" ||
16011$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16012	 X"$ac_file" : 'X\(//\)[^/]' \| \
16013	 X"$ac_file" : 'X\(//\)$' \| \
16014	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16015$as_echo X"$ac_file" |
16016    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16017	    s//\1/
16018	    q
16019	  }
16020	  /^X\(\/\/\)[^/].*/{
16021	    s//\1/
16022	    q
16023	  }
16024	  /^X\(\/\/\)$/{
16025	    s//\1/
16026	    q
16027	  }
16028	  /^X\(\/\).*/{
16029	    s//\1/
16030	    q
16031	  }
16032	  s/.*/./; q'`
16033  as_dir="$ac_dir"; as_fn_mkdir_p
16034  ac_builddir=.
16035
16036case "$ac_dir" in
16037.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16038*)
16039  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16040  # A ".." for each directory in $ac_dir_suffix.
16041  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16042  case $ac_top_builddir_sub in
16043  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16044  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16045  esac ;;
16046esac
16047ac_abs_top_builddir=$ac_pwd
16048ac_abs_builddir=$ac_pwd$ac_dir_suffix
16049# for backward compatibility:
16050ac_top_builddir=$ac_top_build_prefix
16051
16052case $srcdir in
16053  .)  # We are building in place.
16054    ac_srcdir=.
16055    ac_top_srcdir=$ac_top_builddir_sub
16056    ac_abs_top_srcdir=$ac_pwd ;;
16057  [\\/]* | ?:[\\/]* )  # Absolute name.
16058    ac_srcdir=$srcdir$ac_dir_suffix;
16059    ac_top_srcdir=$srcdir
16060    ac_abs_top_srcdir=$srcdir ;;
16061  *) # Relative name.
16062    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16063    ac_top_srcdir=$ac_top_build_prefix$srcdir
16064    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16065esac
16066ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16067
16068
16069  case $ac_mode in
16070  :F)
16071  #
16072  # CONFIG_FILE
16073  #
16074
16075  case $INSTALL in
16076  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16077  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16078  esac
16079  ac_MKDIR_P=$MKDIR_P
16080  case $MKDIR_P in
16081  [\\/$]* | ?:[\\/]* ) ;;
16082  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16083  esac
16084_ACEOF
16085
16086cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16087# If the template does not know about datarootdir, expand it.
16088# FIXME: This hack should be removed a few years after 2.60.
16089ac_datarootdir_hack=; ac_datarootdir_seen=
16090ac_sed_dataroot='
16091/datarootdir/ {
16092  p
16093  q
16094}
16095/@datadir@/p
16096/@docdir@/p
16097/@infodir@/p
16098/@localedir@/p
16099/@mandir@/p'
16100case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16101*datarootdir*) ac_datarootdir_seen=yes;;
16102*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16103  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16104$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16105_ACEOF
16106cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16107  ac_datarootdir_hack='
16108  s&@datadir@&$datadir&g
16109  s&@docdir@&$docdir&g
16110  s&@infodir@&$infodir&g
16111  s&@localedir@&$localedir&g
16112  s&@mandir@&$mandir&g
16113  s&\\\${datarootdir}&$datarootdir&g' ;;
16114esac
16115_ACEOF
16116
16117# Neutralize VPATH when `$srcdir' = `.'.
16118# Shell code in configure.ac might set extrasub.
16119# FIXME: do we really want to maintain this feature?
16120cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16121ac_sed_extra="$ac_vpsub
16122$extrasub
16123_ACEOF
16124cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16125:t
16126/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16127s|@configure_input@|$ac_sed_conf_input|;t t
16128s&@top_builddir@&$ac_top_builddir_sub&;t t
16129s&@top_build_prefix@&$ac_top_build_prefix&;t t
16130s&@srcdir@&$ac_srcdir&;t t
16131s&@abs_srcdir@&$ac_abs_srcdir&;t t
16132s&@top_srcdir@&$ac_top_srcdir&;t t
16133s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16134s&@builddir@&$ac_builddir&;t t
16135s&@abs_builddir@&$ac_abs_builddir&;t t
16136s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16137s&@INSTALL@&$ac_INSTALL&;t t
16138s&@MKDIR_P@&$ac_MKDIR_P&;t t
16139$ac_datarootdir_hack
16140"
16141eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16142  || as_fn_error "could not create $ac_file" "$LINENO" 5
16143
16144test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16145  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16146  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16147  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16148which seems to be undefined.  Please make sure it is defined." >&5
16149$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16150which seems to be undefined.  Please make sure it is defined." >&2;}
16151
16152  rm -f "$tmp/stdin"
16153  case $ac_file in
16154  -) cat "$tmp/out" && rm -f "$tmp/out";;
16155  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16156  esac \
16157  || as_fn_error "could not create $ac_file" "$LINENO" 5
16158 ;;
16159  :H)
16160  #
16161  # CONFIG_HEADER
16162  #
16163  if test x"$ac_file" != x-; then
16164    {
16165      $as_echo "/* $configure_input  */" \
16166      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16167    } >"$tmp/config.h" \
16168      || as_fn_error "could not create $ac_file" "$LINENO" 5
16169    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16170      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16171$as_echo "$as_me: $ac_file is unchanged" >&6;}
16172    else
16173      rm -f "$ac_file"
16174      mv "$tmp/config.h" "$ac_file" \
16175	|| as_fn_error "could not create $ac_file" "$LINENO" 5
16176    fi
16177  else
16178    $as_echo "/* $configure_input  */" \
16179      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16180      || as_fn_error "could not create -" "$LINENO" 5
16181  fi
16182# Compute "$ac_file"'s index in $config_headers.
16183_am_arg="$ac_file"
16184_am_stamp_count=1
16185for _am_header in $config_headers :; do
16186  case $_am_header in
16187    $_am_arg | $_am_arg:* )
16188      break ;;
16189    * )
16190      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16191  esac
16192done
16193echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16194$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16195	 X"$_am_arg" : 'X\(//\)[^/]' \| \
16196	 X"$_am_arg" : 'X\(//\)$' \| \
16197	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16198$as_echo X"$_am_arg" |
16199    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16200	    s//\1/
16201	    q
16202	  }
16203	  /^X\(\/\/\)[^/].*/{
16204	    s//\1/
16205	    q
16206	  }
16207	  /^X\(\/\/\)$/{
16208	    s//\1/
16209	    q
16210	  }
16211	  /^X\(\/\).*/{
16212	    s//\1/
16213	    q
16214	  }
16215	  s/.*/./; q'`/stamp-h$_am_stamp_count
16216 ;;
16217
16218  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16219$as_echo "$as_me: executing $ac_file commands" >&6;}
16220 ;;
16221  esac
16222
16223
16224  case $ac_file$ac_mode in
16225    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16226  # Autoconf 2.62 quotes --file arguments for eval, but not when files
16227  # are listed without --file.  Let's play safe and only enable the eval
16228  # if we detect the quoting.
16229  case $CONFIG_FILES in
16230  *\'*) eval set x "$CONFIG_FILES" ;;
16231  *)   set x $CONFIG_FILES ;;
16232  esac
16233  shift
16234  for mf
16235  do
16236    # Strip MF so we end up with the name of the file.
16237    mf=`echo "$mf" | sed -e 's/:.*$//'`
16238    # Check whether this is an Automake generated Makefile or not.
16239    # We used to match only the files named `Makefile.in', but
16240    # some people rename them; so instead we look at the file content.
16241    # Grep'ing the first line is not enough: some people post-process
16242    # each Makefile.in and add a new line on top of each file to say so.
16243    # Grep'ing the whole file is not good either: AIX grep has a line
16244    # limit of 2048, but all sed's we know have understand at least 4000.
16245    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16246      dirpart=`$as_dirname -- "$mf" ||
16247$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16248	 X"$mf" : 'X\(//\)[^/]' \| \
16249	 X"$mf" : 'X\(//\)$' \| \
16250	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16251$as_echo X"$mf" |
16252    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16253	    s//\1/
16254	    q
16255	  }
16256	  /^X\(\/\/\)[^/].*/{
16257	    s//\1/
16258	    q
16259	  }
16260	  /^X\(\/\/\)$/{
16261	    s//\1/
16262	    q
16263	  }
16264	  /^X\(\/\).*/{
16265	    s//\1/
16266	    q
16267	  }
16268	  s/.*/./; q'`
16269    else
16270      continue
16271    fi
16272    # Extract the definition of DEPDIR, am__include, and am__quote
16273    # from the Makefile without running `make'.
16274    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16275    test -z "$DEPDIR" && continue
16276    am__include=`sed -n 's/^am__include = //p' < "$mf"`
16277    test -z "am__include" && continue
16278    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16279    # When using ansi2knr, U may be empty or an underscore; expand it
16280    U=`sed -n 's/^U = //p' < "$mf"`
16281    # Find all dependency output files, they are included files with
16282    # $(DEPDIR) in their names.  We invoke sed twice because it is the
16283    # simplest approach to changing $(DEPDIR) to its actual value in the
16284    # expansion.
16285    for file in `sed -n "
16286      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16287	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16288      # Make sure the directory exists.
16289      test -f "$dirpart/$file" && continue
16290      fdir=`$as_dirname -- "$file" ||
16291$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16292	 X"$file" : 'X\(//\)[^/]' \| \
16293	 X"$file" : 'X\(//\)$' \| \
16294	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16295$as_echo X"$file" |
16296    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16297	    s//\1/
16298	    q
16299	  }
16300	  /^X\(\/\/\)[^/].*/{
16301	    s//\1/
16302	    q
16303	  }
16304	  /^X\(\/\/\)$/{
16305	    s//\1/
16306	    q
16307	  }
16308	  /^X\(\/\).*/{
16309	    s//\1/
16310	    q
16311	  }
16312	  s/.*/./; q'`
16313      as_dir=$dirpart/$fdir; as_fn_mkdir_p
16314      # echo "creating $dirpart/$file"
16315      echo '# dummy' > "$dirpart/$file"
16316    done
16317  done
16318}
16319 ;;
16320    "libtool":C)
16321
16322    # See if we are running on zsh, and set the options which allow our
16323    # commands through without removal of \ escapes.
16324    if test -n "${ZSH_VERSION+set}" ; then
16325      setopt NO_GLOB_SUBST
16326    fi
16327
16328    cfgfile="${ofile}T"
16329    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16330    $RM "$cfgfile"
16331
16332    cat <<_LT_EOF >> "$cfgfile"
16333#! $SHELL
16334
16335# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16336# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16337# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16338# NOTE: Changes made to this file will be lost: look at ltmain.sh.
16339#
16340#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16341#                 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
16342#   Written by Gordon Matzigkeit, 1996
16343#
16344#   This file is part of GNU Libtool.
16345#
16346# GNU Libtool is free software; you can redistribute it and/or
16347# modify it under the terms of the GNU General Public License as
16348# published by the Free Software Foundation; either version 2 of
16349# the License, or (at your option) any later version.
16350#
16351# As a special exception to the GNU General Public License,
16352# if you distribute this file as part of a program or library that
16353# is built using GNU Libtool, you may include this file under the
16354# same distribution terms that you use for the rest of that program.
16355#
16356# GNU Libtool is distributed in the hope that it will be useful,
16357# but WITHOUT ANY WARRANTY; without even the implied warranty of
16358# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16359# GNU General Public License for more details.
16360#
16361# You should have received a copy of the GNU General Public License
16362# along with GNU Libtool; see the file COPYING.  If not, a copy
16363# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16364# obtained by writing to the Free Software Foundation, Inc.,
16365# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16366
16367
16368# The names of the tagged configurations supported by this script.
16369available_tags=""
16370
16371# ### BEGIN LIBTOOL CONFIG
16372
16373# Which release of libtool.m4 was used?
16374macro_version=$macro_version
16375macro_revision=$macro_revision
16376
16377# Whether or not to build shared libraries.
16378build_libtool_libs=$enable_shared
16379
16380# Whether or not to build static libraries.
16381build_old_libs=$enable_static
16382
16383# What type of objects to build.
16384pic_mode=$pic_mode
16385
16386# Whether or not to optimize for fast installation.
16387fast_install=$enable_fast_install
16388
16389# Shell to use when invoking shell scripts.
16390SHELL=$lt_SHELL
16391
16392# An echo program that protects backslashes.
16393ECHO=$lt_ECHO
16394
16395# The host system.
16396host_alias=$host_alias
16397host=$host
16398host_os=$host_os
16399
16400# The build system.
16401build_alias=$build_alias
16402build=$build
16403build_os=$build_os
16404
16405# A sed program that does not truncate output.
16406SED=$lt_SED
16407
16408# Sed that helps us avoid accidentally triggering echo(1) options like -n.
16409Xsed="\$SED -e 1s/^X//"
16410
16411# A grep program that handles long lines.
16412GREP=$lt_GREP
16413
16414# An ERE matcher.
16415EGREP=$lt_EGREP
16416
16417# A literal string matcher.
16418FGREP=$lt_FGREP
16419
16420# A BSD- or MS-compatible name lister.
16421NM=$lt_NM
16422
16423# Whether we need soft or hard links.
16424LN_S=$lt_LN_S
16425
16426# What is the maximum length of a command?
16427max_cmd_len=$max_cmd_len
16428
16429# Object file suffix (normally "o").
16430objext=$ac_objext
16431
16432# Executable file suffix (normally "").
16433exeext=$exeext
16434
16435# whether the shell understands "unset".
16436lt_unset=$lt_unset
16437
16438# turn spaces into newlines.
16439SP2NL=$lt_lt_SP2NL
16440
16441# turn newlines into spaces.
16442NL2SP=$lt_lt_NL2SP
16443
16444# An object symbol dumper.
16445OBJDUMP=$lt_OBJDUMP
16446
16447# Method to check whether dependent libraries are shared objects.
16448deplibs_check_method=$lt_deplibs_check_method
16449
16450# Command to use when deplibs_check_method == "file_magic".
16451file_magic_cmd=$lt_file_magic_cmd
16452
16453# The archiver.
16454AR=$lt_AR
16455AR_FLAGS=$lt_AR_FLAGS
16456
16457# A symbol stripping program.
16458STRIP=$lt_STRIP
16459
16460# Commands used to install an old-style archive.
16461RANLIB=$lt_RANLIB
16462old_postinstall_cmds=$lt_old_postinstall_cmds
16463old_postuninstall_cmds=$lt_old_postuninstall_cmds
16464
16465# Whether to use a lock for old archive extraction.
16466lock_old_archive_extraction=$lock_old_archive_extraction
16467
16468# A C compiler.
16469LTCC=$lt_CC
16470
16471# LTCC compiler flags.
16472LTCFLAGS=$lt_CFLAGS
16473
16474# Take the output of nm and produce a listing of raw symbols and C names.
16475global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16476
16477# Transform the output of nm in a proper C declaration.
16478global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16479
16480# Transform the output of nm in a C name address pair.
16481global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16482
16483# Transform the output of nm in a C name address pair when lib prefix is needed.
16484global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16485
16486# The name of the directory that contains temporary libtool files.
16487objdir=$objdir
16488
16489# Used to examine libraries when file_magic_cmd begins with "file".
16490MAGIC_CMD=$MAGIC_CMD
16491
16492# Must we lock files when doing compilation?
16493need_locks=$lt_need_locks
16494
16495# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16496DSYMUTIL=$lt_DSYMUTIL
16497
16498# Tool to change global to local symbols on Mac OS X.
16499NMEDIT=$lt_NMEDIT
16500
16501# Tool to manipulate fat objects and archives on Mac OS X.
16502LIPO=$lt_LIPO
16503
16504# ldd/readelf like tool for Mach-O binaries on Mac OS X.
16505OTOOL=$lt_OTOOL
16506
16507# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16508OTOOL64=$lt_OTOOL64
16509
16510# Old archive suffix (normally "a").
16511libext=$libext
16512
16513# Shared library suffix (normally ".so").
16514shrext_cmds=$lt_shrext_cmds
16515
16516# The commands to extract the exported symbol list from a shared archive.
16517extract_expsyms_cmds=$lt_extract_expsyms_cmds
16518
16519# Variables whose values should be saved in libtool wrapper scripts and
16520# restored at link time.
16521variables_saved_for_relink=$lt_variables_saved_for_relink
16522
16523# Do we need the "lib" prefix for modules?
16524need_lib_prefix=$need_lib_prefix
16525
16526# Do we need a version for libraries?
16527need_version=$need_version
16528
16529# Library versioning type.
16530version_type=$version_type
16531
16532# Shared library runtime path variable.
16533runpath_var=$runpath_var
16534
16535# Shared library path variable.
16536shlibpath_var=$shlibpath_var
16537
16538# Is shlibpath searched before the hard-coded library search path?
16539shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16540
16541# Format of library name prefix.
16542libname_spec=$lt_libname_spec
16543
16544# List of archive names.  First name is the real one, the rest are links.
16545# The last name is the one that the linker finds with -lNAME
16546library_names_spec=$lt_library_names_spec
16547
16548# The coded name of the library, if different from the real name.
16549soname_spec=$lt_soname_spec
16550
16551# Permission mode override for installation of shared libraries.
16552install_override_mode=$lt_install_override_mode
16553
16554# Command to use after installation of a shared archive.
16555postinstall_cmds=$lt_postinstall_cmds
16556
16557# Command to use after uninstallation of a shared archive.
16558postuninstall_cmds=$lt_postuninstall_cmds
16559
16560# Commands used to finish a libtool library installation in a directory.
16561finish_cmds=$lt_finish_cmds
16562
16563# As "finish_cmds", except a single script fragment to be evaled but
16564# not shown.
16565finish_eval=$lt_finish_eval
16566
16567# Whether we should hardcode library paths into libraries.
16568hardcode_into_libs=$hardcode_into_libs
16569
16570# Compile-time system search path for libraries.
16571sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16572
16573# Run-time system search path for libraries.
16574sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16575
16576# Whether dlopen is supported.
16577dlopen_support=$enable_dlopen
16578
16579# Whether dlopen of programs is supported.
16580dlopen_self=$enable_dlopen_self
16581
16582# Whether dlopen of statically linked programs is supported.
16583dlopen_self_static=$enable_dlopen_self_static
16584
16585# Commands to strip libraries.
16586old_striplib=$lt_old_striplib
16587striplib=$lt_striplib
16588
16589
16590# The linker used to build libraries.
16591LD=$lt_LD
16592
16593# How to create reloadable object files.
16594reload_flag=$lt_reload_flag
16595reload_cmds=$lt_reload_cmds
16596
16597# Commands used to build an old-style archive.
16598old_archive_cmds=$lt_old_archive_cmds
16599
16600# A language specific compiler.
16601CC=$lt_compiler
16602
16603# Is the compiler the GNU compiler?
16604with_gcc=$GCC
16605
16606# Compiler flag to turn off builtin functions.
16607no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16608
16609# How to pass a linker flag through the compiler.
16610wl=$lt_lt_prog_compiler_wl
16611
16612# Additional compiler flags for building library objects.
16613pic_flag=$lt_lt_prog_compiler_pic
16614
16615# Compiler flag to prevent dynamic linking.
16616link_static_flag=$lt_lt_prog_compiler_static
16617
16618# Does compiler simultaneously support -c and -o options?
16619compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16620
16621# Whether or not to add -lc for building shared libraries.
16622build_libtool_need_lc=$archive_cmds_need_lc
16623
16624# Whether or not to disallow shared libs when runtime libs are static.
16625allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16626
16627# Compiler flag to allow reflexive dlopens.
16628export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16629
16630# Compiler flag to generate shared objects directly from archives.
16631whole_archive_flag_spec=$lt_whole_archive_flag_spec
16632
16633# Whether the compiler copes with passing no objects directly.
16634compiler_needs_object=$lt_compiler_needs_object
16635
16636# Create an old-style archive from a shared archive.
16637old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16638
16639# Create a temporary old-style archive to link instead of a shared archive.
16640old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16641
16642# Commands used to build a shared archive.
16643archive_cmds=$lt_archive_cmds
16644archive_expsym_cmds=$lt_archive_expsym_cmds
16645
16646# Commands used to build a loadable module if different from building
16647# a shared archive.
16648module_cmds=$lt_module_cmds
16649module_expsym_cmds=$lt_module_expsym_cmds
16650
16651# Whether we are building with GNU ld or not.
16652with_gnu_ld=$lt_with_gnu_ld
16653
16654# Flag that allows shared libraries with undefined symbols to be built.
16655allow_undefined_flag=$lt_allow_undefined_flag
16656
16657# Flag that enforces no undefined symbols.
16658no_undefined_flag=$lt_no_undefined_flag
16659
16660# Flag to hardcode \$libdir into a binary during linking.
16661# This must work even if \$libdir does not exist
16662hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16663
16664# If ld is used when linking, flag to hardcode \$libdir into a binary
16665# during linking.  This must work even if \$libdir does not exist.
16666hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16667
16668# Whether we need a single "-rpath" flag with a separated argument.
16669hardcode_libdir_separator=$lt_hardcode_libdir_separator
16670
16671# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16672# DIR into the resulting binary.
16673hardcode_direct=$hardcode_direct
16674
16675# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16676# DIR into the resulting binary and the resulting library dependency is
16677# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16678# library is relocated.
16679hardcode_direct_absolute=$hardcode_direct_absolute
16680
16681# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16682# into the resulting binary.
16683hardcode_minus_L=$hardcode_minus_L
16684
16685# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16686# into the resulting binary.
16687hardcode_shlibpath_var=$hardcode_shlibpath_var
16688
16689# Set to "yes" if building a shared library automatically hardcodes DIR
16690# into the library and all subsequent libraries and executables linked
16691# against it.
16692hardcode_automatic=$hardcode_automatic
16693
16694# Set to yes if linker adds runtime paths of dependent libraries
16695# to runtime path list.
16696inherit_rpath=$inherit_rpath
16697
16698# Whether libtool must link a program against all its dependency libraries.
16699link_all_deplibs=$link_all_deplibs
16700
16701# Fix the shell variable \$srcfile for the compiler.
16702fix_srcfile_path=$lt_fix_srcfile_path
16703
16704# Set to "yes" if exported symbols are required.
16705always_export_symbols=$always_export_symbols
16706
16707# The commands to list exported symbols.
16708export_symbols_cmds=$lt_export_symbols_cmds
16709
16710# Symbols that should not be listed in the preloaded symbols.
16711exclude_expsyms=$lt_exclude_expsyms
16712
16713# Symbols that must always be exported.
16714include_expsyms=$lt_include_expsyms
16715
16716# Commands necessary for linking programs (against libraries) with templates.
16717prelink_cmds=$lt_prelink_cmds
16718
16719# Specify filename containing input files.
16720file_list_spec=$lt_file_list_spec
16721
16722# How to hardcode a shared library path into an executable.
16723hardcode_action=$hardcode_action
16724
16725# ### END LIBTOOL CONFIG
16726
16727_LT_EOF
16728
16729  case $host_os in
16730  aix3*)
16731    cat <<\_LT_EOF >> "$cfgfile"
16732# AIX sometimes has problems with the GCC collect2 program.  For some
16733# reason, if we set the COLLECT_NAMES environment variable, the problems
16734# vanish in a puff of smoke.
16735if test "X${COLLECT_NAMES+set}" != Xset; then
16736  COLLECT_NAMES=
16737  export COLLECT_NAMES
16738fi
16739_LT_EOF
16740    ;;
16741  esac
16742
16743
16744ltmain="$ac_aux_dir/ltmain.sh"
16745
16746
16747  # We use sed instead of cat because bash on DJGPP gets confused if
16748  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
16749  # text mode, it properly converts lines to CR/LF.  This bash problem
16750  # is reportedly fixed, but why not run on old versions too?
16751  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16752    || (rm -f "$cfgfile"; exit 1)
16753
16754  case $xsi_shell in
16755  yes)
16756    cat << \_LT_EOF >> "$cfgfile"
16757
16758# func_dirname file append nondir_replacement
16759# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
16760# otherwise set result to NONDIR_REPLACEMENT.
16761func_dirname ()
16762{
16763  case ${1} in
16764    */*) func_dirname_result="${1%/*}${2}" ;;
16765    *  ) func_dirname_result="${3}" ;;
16766  esac
16767}
16768
16769# func_basename file
16770func_basename ()
16771{
16772  func_basename_result="${1##*/}"
16773}
16774
16775# func_dirname_and_basename file append nondir_replacement
16776# perform func_basename and func_dirname in a single function
16777# call:
16778#   dirname:  Compute the dirname of FILE.  If nonempty,
16779#             add APPEND to the result, otherwise set result
16780#             to NONDIR_REPLACEMENT.
16781#             value returned in "$func_dirname_result"
16782#   basename: Compute filename of FILE.
16783#             value retuned in "$func_basename_result"
16784# Implementation must be kept synchronized with func_dirname
16785# and func_basename. For efficiency, we do not delegate to
16786# those functions but instead duplicate the functionality here.
16787func_dirname_and_basename ()
16788{
16789  case ${1} in
16790    */*) func_dirname_result="${1%/*}${2}" ;;
16791    *  ) func_dirname_result="${3}" ;;
16792  esac
16793  func_basename_result="${1##*/}"
16794}
16795
16796# func_stripname prefix suffix name
16797# strip PREFIX and SUFFIX off of NAME.
16798# PREFIX and SUFFIX must not contain globbing or regex special
16799# characters, hashes, percent signs, but SUFFIX may contain a leading
16800# dot (in which case that matches only a dot).
16801func_stripname ()
16802{
16803  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16804  # positional parameters, so assign one to ordinary parameter first.
16805  func_stripname_result=${3}
16806  func_stripname_result=${func_stripname_result#"${1}"}
16807  func_stripname_result=${func_stripname_result%"${2}"}
16808}
16809
16810# func_opt_split
16811func_opt_split ()
16812{
16813  func_opt_split_opt=${1%%=*}
16814  func_opt_split_arg=${1#*=}
16815}
16816
16817# func_lo2o object
16818func_lo2o ()
16819{
16820  case ${1} in
16821    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16822    *)    func_lo2o_result=${1} ;;
16823  esac
16824}
16825
16826# func_xform libobj-or-source
16827func_xform ()
16828{
16829  func_xform_result=${1%.*}.lo
16830}
16831
16832# func_arith arithmetic-term...
16833func_arith ()
16834{
16835  func_arith_result=$(( $* ))
16836}
16837
16838# func_len string
16839# STRING may not start with a hyphen.
16840func_len ()
16841{
16842  func_len_result=${#1}
16843}
16844
16845_LT_EOF
16846    ;;
16847  *) # Bourne compatible functions.
16848    cat << \_LT_EOF >> "$cfgfile"
16849
16850# func_dirname file append nondir_replacement
16851# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
16852# otherwise set result to NONDIR_REPLACEMENT.
16853func_dirname ()
16854{
16855  # Extract subdirectory from the argument.
16856  func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
16857  if test "X$func_dirname_result" = "X${1}"; then
16858    func_dirname_result="${3}"
16859  else
16860    func_dirname_result="$func_dirname_result${2}"
16861  fi
16862}
16863
16864# func_basename file
16865func_basename ()
16866{
16867  func_basename_result=`$ECHO "${1}" | $SED "$basename"`
16868}
16869
16870
16871# func_stripname prefix suffix name
16872# strip PREFIX and SUFFIX off of NAME.
16873# PREFIX and SUFFIX must not contain globbing or regex special
16874# characters, hashes, percent signs, but SUFFIX may contain a leading
16875# dot (in which case that matches only a dot).
16876# func_strip_suffix prefix name
16877func_stripname ()
16878{
16879  case ${2} in
16880    .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
16881    *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
16882  esac
16883}
16884
16885# sed scripts:
16886my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16887my_sed_long_arg='1s/^-[^=]*=//'
16888
16889# func_opt_split
16890func_opt_split ()
16891{
16892  func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
16893  func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
16894}
16895
16896# func_lo2o object
16897func_lo2o ()
16898{
16899  func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
16900}
16901
16902# func_xform libobj-or-source
16903func_xform ()
16904{
16905  func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
16906}
16907
16908# func_arith arithmetic-term...
16909func_arith ()
16910{
16911  func_arith_result=`expr "$@"`
16912}
16913
16914# func_len string
16915# STRING may not start with a hyphen.
16916func_len ()
16917{
16918  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16919}
16920
16921_LT_EOF
16922esac
16923
16924case $lt_shell_append in
16925  yes)
16926    cat << \_LT_EOF >> "$cfgfile"
16927
16928# func_append var value
16929# Append VALUE to the end of shell variable VAR.
16930func_append ()
16931{
16932  eval "$1+=\$2"
16933}
16934_LT_EOF
16935    ;;
16936  *)
16937    cat << \_LT_EOF >> "$cfgfile"
16938
16939# func_append var value
16940# Append VALUE to the end of shell variable VAR.
16941func_append ()
16942{
16943  eval "$1=\$$1\$2"
16944}
16945
16946_LT_EOF
16947    ;;
16948  esac
16949
16950
16951  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16952    || (rm -f "$cfgfile"; exit 1)
16953
16954  mv -f "$cfgfile" "$ofile" ||
16955    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16956  chmod +x "$ofile"
16957
16958 ;;
16959    "default-1":C)
16960    for ac_file in $CONFIG_FILES; do
16961      # Support "outfile[:infile[:infile...]]"
16962      case "$ac_file" in
16963        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16964      esac
16965      # PO directories have a Makefile.in generated from Makefile.in.in.
16966      case "$ac_file" in */Makefile.in)
16967        # Adjust a relative srcdir.
16968        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16969        ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
16970        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16971        # In autoconf-2.13 it is called $ac_given_srcdir.
16972        # In autoconf-2.50 it is called $srcdir.
16973        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16974        case "$ac_given_srcdir" in
16975          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16976          /*) top_srcdir="$ac_given_srcdir" ;;
16977          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
16978        esac
16979        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16980          rm -f "$ac_dir/POTFILES"
16981          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16982          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ 	]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
16983          POMAKEFILEDEPS="POTFILES.in"
16984          # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
16985          # on $ac_dir but don't depend on user-specified configuration
16986          # parameters.
16987          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16988            # The LINGUAS file contains the set of available languages.
16989            if test -n "$OBSOLETE_ALL_LINGUAS"; then
16990              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete"
16991            fi
16992            ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16993            # Hide the ALL_LINGUAS assigment from automake.
16994            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
16995            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
16996          else
16997            # The set of available languages was given in configure.ac.
16998            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
16999          fi
17000          case "$ac_given_srcdir" in
17001            .) srcdirpre= ;;
17002            *) srcdirpre='$(srcdir)/' ;;
17003          esac
17004          POFILES=
17005          GMOFILES=
17006          UPDATEPOFILES=
17007          DUMMYPOFILES=
17008          for lang in $ALL_LINGUAS; do
17009            POFILES="$POFILES $srcdirpre$lang.po"
17010            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
17011            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
17012            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
17013          done
17014          # CATALOGS depends on both $ac_dir and the user's LINGUAS
17015          # environment variable.
17016          INST_LINGUAS=
17017          if test -n "$ALL_LINGUAS"; then
17018            for presentlang in $ALL_LINGUAS; do
17019              useit=no
17020              if test "%UNSET%" != "$LINGUAS"; then
17021                desiredlanguages="$LINGUAS"
17022              else
17023                desiredlanguages="$ALL_LINGUAS"
17024              fi
17025              for desiredlang in $desiredlanguages; do
17026                # Use the presentlang catalog if desiredlang is
17027                #   a. equal to presentlang, or
17028                #   b. a variant of presentlang (because in this case,
17029                #      presentlang can be used as a fallback for messages
17030                #      which are not translated in the desiredlang catalog).
17031                case "$desiredlang" in
17032                  "$presentlang"*) useit=yes;;
17033                esac
17034              done
17035              if test $useit = yes; then
17036                INST_LINGUAS="$INST_LINGUAS $presentlang"
17037              fi
17038            done
17039          fi
17040          CATALOGS=
17041          if test -n "$INST_LINGUAS"; then
17042            for lang in $INST_LINGUAS; do
17043              CATALOGS="$CATALOGS $lang.gmo"
17044            done
17045          fi
17046          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
17047          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"
17048          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
17049            if test -f "$f"; then
17050              case "$f" in
17051                *.orig | *.bak | *~) ;;
17052                *) cat "$f" >> "$ac_dir/Makefile" ;;
17053              esac
17054            fi
17055          done
17056        fi
17057        ;;
17058      esac
17059    done ;;
17060
17061  esac
17062done # for ac_tag
17063
17064
17065as_fn_exit 0
17066_ACEOF
17067ac_clean_files=$ac_clean_files_save
17068
17069test $ac_write_fail = 0 ||
17070  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17071
17072
17073# configure is writing to config.log, and then calls config.status.
17074# config.status does its own redirection, appending to config.log.
17075# Unfortunately, on DOS this fails, as config.log is still kept open
17076# by configure, so config.status won't be able to write to it; its
17077# output is simply discarded.  So we exec the FD to /dev/null,
17078# effectively closing config.log, so it can be properly (re)opened and
17079# appended to by config.status.  When coming back to configure, we
17080# need to make the FD available again.
17081if test "$no_create" != yes; then
17082  ac_cs_success=:
17083  ac_config_status_args=
17084  test "$silent" = yes &&
17085    ac_config_status_args="$ac_config_status_args --quiet"
17086  exec 5>/dev/null
17087  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17088  exec 5>>config.log
17089  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17090  # would make configure fail if this is the last instruction.
17091  $ac_cs_success || as_fn_exit $?
17092fi
17093if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17094  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17095$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17096fi
17097
17098